/* ========= Thème ========= */
:root {
  --maxw: 1100px;
  --gap: 1rem;
  --brand: #0e3a45;
  --text: #fff;
  --bg: #000;
  --muted: #e5e7eb;
}

/* ========= Reset de base ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin: 0 auto;
}

/* ========= Header / Navigation ========= */
.site-header {
  border-bottom: 1px solid var(--muted);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: .75rem 0;
}

.logo {
  height: 150px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .65rem;
  border-radius: .5rem;
  transition: background .2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--brand);
}

/* ========= Burger menu ========= */
.nav-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: .5rem;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ========= Hero ========= */
.hero {
  width: 100%;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========= Bandeaux ========= */
.bandeau {
  background: var(--brand);
  color: #fff;
  padding: 3rem 0;
}

.bandeau-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.bandeau-traiteur {
  background: #000;
  color: #fff;
  padding: 3rem 0;
}

.bandeau-traiteur a {
  color: #fff;
  text-decoration: underline;
}

.bandeau-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bandeau-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.bandeau-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.bandeau-logo {
  max-width: 120px;
  margin-bottom: 1rem;
}

.bandeau-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bandeau-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========= Cards ========= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding: 2rem 0;
}

/* ========= Bandeau info ========= */
.strip {
  background: #111;
  color: #fff;
}

/* ========= Footer ========= */
.site-footer {
  border-top: 1px solid var(--muted);
  margin-top: 2rem;
}

.site-footer .container {
  padding: 1rem 0;
  text-align: center;
}

/* =========================================================
   PAGE CONTACT
   ========================================================= */

/* ========= Zone générale ========= */
.contact-page {
  padding: 1.6rem 0 2rem;
}

/* ========= Intro ========= */
.contact-intro {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-intro h1 {
  font-size: 1.8rem;
  margin-bottom: .45rem;
}

.contact-intro p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .98rem;
}

/* ========= Conteneur du formulaire ========= */
.contact-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #0e3a45;
  border: 1px solid #2f4d55;
  border-radius: .85rem;
  padding: 1rem;
  overflow: hidden;
  min-width: 0;
}

/* ========= Formulaire global ========= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

/* ========= Grille des champs ========= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem .85rem;
  min-width: 0;
}

/* ========= Blocs champs ========= */
.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-group-full {
  grid-column: 1 / -1;
  min-width: 0;
}

/* ========= Labels ========= */
.form-group label,
.form-fieldset legend {
  margin-bottom: .3rem;
  font-weight: 600;
  font-size: .92rem;
}

/* ========= Inputs / select / textarea ========= */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  padding: .62rem .78rem;
  border: 1px solid #3b535a;
  border-radius: .55rem;
  background: #000;
  color: #fff;
  font: inherit;
  line-height: 1.35;
}

/* ========= Champs date / select mobile ========= */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

/* ========= Focus champs ========= */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff;
}

/* ========= Zone message ========= */
.form-group textarea {
  resize: none;
  min-height: 78px;
}

/* ========= Bloc options prestation ========= */
.form-fieldset {
  border: 1px solid #3b535a;
  border-radius: .55rem;
  padding: .7rem .85rem;
}

/* ========= Cases à cocher ========= */
.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 0;
  font-size: .92rem;
}

.checkbox-line input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #000;
}

/* ========= Google captcha ========= */
.g-recaptcha {
  margin-top: .2rem;
}

/* ========= Bouton ========= */
.btn-submit {
  align-self: flex-start;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: .72rem 1.1rem;
  border-radius: .55rem;
  cursor: pointer;
  font-size: .96rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}

.btn-submit:hover {
  background: #111;
  border-color: #fff;
}

/* ========= Messages ========= */
.form-errors,
.form-success {
  max-width: 760px;
  margin: 0 auto 1rem;
  padding: .85rem 1rem;
  border-radius: .75rem;
}

.form-errors {
  background: #3a0d10;
  border: 1px solid #901b22;
  color: #fff;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.form-success {
  background: #12351c;
  border: 1px solid #2e7d32;
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ========= Tablette ========= */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bandeau-grid {
    grid-template-columns: 1fr;
  }

  .bandeau-images {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding: 1.4rem 0 2rem;
  }

  .contact-form-wrap {
    max-width: 720px;
    padding: .95rem;
  }

  .form-grid {
    gap: .7rem .8rem;
  }
}

/* ========= Mobile ========= */
@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: var(--bg);
    border-bottom: 1px solid var(--muted);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform .2s ease;
  }

  .site-nav ul {
    flex-direction: column;
    padding: .5rem;
  }

  .site-nav a {
    display: block;
  }

  .nav-checkbox:checked ~ .site-nav {
    transform: scaleY(1);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.2rem 0 1.2rem;
  }

  .logo {
    height: 80px;
  }

  .contact-page {
    padding: 1.4rem 0 2rem;
  }

  .contact-intro h1 {
    font-size: 1.55rem;
  }

  .contact-intro p {
    font-size: .95rem;
  }

  .contact-form-wrap {
    width: 100%;
    max-width: 100%;
    padding: .9rem;
    border-radius: .75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  input[type="date"] {
    font-size: 16px;
    padding: .65rem .75rem;
  }

  .form-fieldset {
    padding: .75rem;
  }

  .form-options {
    flex-direction: column;
    gap: .55rem;
  }

  .btn-submit {
    width: 100%;
    align-self: stretch;
  }

  .g-recaptcha {
    transform: scale(0.92);
    transform-origin: left top;
  }
}

/* ========= Correctifs champs date WebKit ========= */
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
}