/* ==========================================================================
   LA BOUCHERIE DU NEUFBOURG — Saint-Lô
   « L'étal blanc » — papier chaud, encre, un seul rouge (celui du logo).
   Vanilla CSS, aucun framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:    #fbf9f5;
  --paper-2:  #f4f1ea;
  --paper-3:  #ebe6dc;

  /* Encre */
  --ink:      #16110f;
  --ink-2:    rgba(22, 17, 15, 0.68);
  --ink-3:    rgba(22, 17, 15, 0.46);

  /* Accent — échantillonné dans le logo */
  --rouge:    #bd2127;
  --rouge-d:  #94161b;
  --vert:     #2e7d4f;

  /* Filets */
  --line:     rgba(22, 17, 15, 0.11);
  --line-2:   rgba(22, 17, 15, 0.22);

  /* Typographies */
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Échelle */
  --t-hero: clamp(2.9rem, 7.4vw, 5.9rem);
  --t-h2:   clamp(2rem, 4.2vw, 3.4rem);
  --t-h3:   clamp(1.0625rem, 1.2vw, 1.1875rem);
  --t-lead: clamp(1.0625rem, 1.15vw, 1.1875rem);
  --t-base: 1rem;
  --t-sm:   0.9375rem;
  --t-cap:  0.6875rem;

  /* Espaces */
  --sec:  clamp(4.5rem, 9vw, 8rem);
  --gut:  clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 1240px;

  /* Formes & mouvement */
  --r:  10px;
  --r-l: 16px;
  --r-s: 6px;
  --e:  cubic-bezier(0.22, 1, 0.36, 1);
  --tr: 220ms var(--e);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  position: relative;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: var(--t-base);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grain de papier — très léger, donne de la matière au fond */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }
p { text-wrap: pretty; }

::selection { background: var(--rouge); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. UTILITAIRES
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus { left: 0; }

.cap {
  font-family: var(--f-ui);
  font-size: var(--t-cap);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

/* Micro-titre rouge précédé d'un filet.
   align-items:flex-start + marge : quand le libellé passe à la ligne sur
   petit écran, le filet reste sur la première ligne au lieu de se centrer
   verticalement sur le bloc. */
.eyebrow {
  color: var(--rouge);
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  margin-top: 0.42em;
  background: currentColor;
  flex: none;
}

.it { font-style: italic; }

.titre {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Apparition au défilement — la seule animation du site */
[data-rv] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s var(--e), transform 0.75s var(--e);
  transition-delay: var(--d, 0ms);
}
[data-rv].vu { opacity: 1; transform: none; }
.no-js [data-rv] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   4. BOUTONS & LIENS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  white-space: nowrap;
}
.btn .fl { transition: transform var(--tr); }
.btn:hover .fl { transform: translateX(3px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #2c2320; transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22, 17, 15, 0.035); }

.lien-souligne {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rouge);
  font-weight: 500;
  font-size: var(--t-sm);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(189, 33, 39, 0.32);
  transition: border-color var(--tr), color var(--tr);
}
.lien-souligne:hover { border-color: var(--rouge); color: var(--rouge-d); }

/* Pastille ouvert / fermé */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-cap);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.pastille .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}
.pastille[data-state="open"] .dot {
  background: var(--vert);
  box-shadow: 0 0 0 3px rgba(46, 125, 79, 0.16);
}
.pastille[data-state="closed"] .dot { background: var(--rouge); }
.pastille .detail {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-3);
}

/* Étiquettes rondes */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: 0.78rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   5. EN-TÊTE
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--tr), background var(--tr);
}
.entete.dur {
  border-bottom-color: var(--line);
  background: rgba(251, 249, 245, 0.9);
}

.entete-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.marque {
  flex: none;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.marque .art { color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.nav a:hover { color: var(--ink); }
.nav a.actif { color: var(--ink); border-bottom-color: var(--rouge); }

.entete-fin { display: flex; align-items: center; gap: 1rem; flex: none; }

.tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--tr);
}
.tel-btn:hover { background: #2c2320; }
.tel-btn svg { width: 13px; height: 13px; flex: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  margin-right: -8px;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; width: 20px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--tr), opacity var(--tr);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* Menu mobile */
.voile {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: var(--paper);
  padding: 2.5rem var(--gut) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.voile.ouvert { opacity: 1; visibility: visible; transform: none; }
.voile nav { display: flex; flex-direction: column; }
.voile nav a {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.3;
  border-bottom: 1px solid var(--line);
  padding-block: 0.45rem;
}
.voile-pied {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding-top: 2rem;
}

/* --------------------------------------------------------------------------
   6. HÉRO
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(2.25rem, 4.5vw, 4rem); }

/* Bandeau de titre compact : titre à gauche, conduite et boutons à droite */
.hero-tete {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .it { color: var(--ink-2); }

.hero-aparte .lead { max-width: 42ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Grande photo du héros, carte de visite posée dessus */
.hero-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--paper-3);
}
.hero-photo img {
  /* La devanture doit se voir en entier : le cadre prend le format de la
     photo au lieu d'une hauteur fixe, sinon `cover` en rognerait les bords. */
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1360 / 618;
  object-fit: cover;
}

.hero-fiche {
  position: absolute;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: clamp(0.9rem, 2vw, 1.75rem);
  width: min(21rem, calc(100% - 1.8rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem 1.5rem;
}
.hero-fiche dl { display: grid; gap: 0.95rem; }
.hero-fiche dt { color: var(--rouge); margin-bottom: 0.35rem; }
.hero-fiche dd { font-size: var(--t-sm); line-height: 1.45; }
.hero-fiche .sep { height: 1px; background: var(--line); }
.hero-fiche .fiche-tel {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: inline-block;
}

/* Trois repères sous le héro */
.reperes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.repere b {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.repere span { font-size: var(--t-sm); color: var(--ink-2); }

/* Bandeaux photo pleine largeur */
.bande { width: 100%; overflow: hidden; }
.bande img { width: 100%; height: auto; object-fit: cover; }
.bande-terrines img { aspect-ratio: 2000 / 650; }
.bande-decoupe img { aspect-ratio: 1700 / 470; }

@media (max-width: 720px) {
  .bande-terrines img { aspect-ratio: 16 / 10; }
  .bande-decoupe img { aspect-ratio: 16 / 9; }
}

/* --------------------------------------------------------------------------
   7. SECTIONS
   -------------------------------------------------------------------------- */
.sec { padding-block: var(--sec); }
.sec-paper2 { background: var(--paper-2); }
.sec-paper3 { background: var(--paper-3); }

.sec-tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-tete .lead { padding-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   8. LA MAISON — composition deux photos + citation
   -------------------------------------------------------------------------- */
.maison {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.maison-photos { position: relative; padding-bottom: 4.5rem; }
.maison-photos figure { overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.maison-photos img { width: 100%; object-fit: cover; }
.maison-a img { aspect-ratio: 4 / 5; }
.maison-b {
  position: absolute;
  right: -1.5rem;
  bottom: 0;
  width: 46%;
  box-shadow: 0 0 0 8px var(--paper);
  border-radius: var(--r);
}
.maison-b img { aspect-ratio: 4 / 5; }

.maison-corps p { color: var(--ink-2); margin-top: 1.5rem; }

.citation {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-2);
}
.citation p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.citation footer { margin-top: 0.9rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   9. À L'ÉTAL — trois cartes
   -------------------------------------------------------------------------- */
.cartes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.carte figure {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-3);
  margin-bottom: 1.5rem;
}
.carte figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 900ms var(--e);
}
.carte:hover figure img { transform: scale(1.03); }

.carte h3 {
  font-family: var(--f-ui);
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.6rem;
}
.carte p { color: var(--ink-2); font-size: var(--t-sm); }
.carte .tags { margin-top: 1rem; }

/* --------------------------------------------------------------------------
   10. LA CARTE — listes typographiques
   -------------------------------------------------------------------------- */
.listes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.liste h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.01em;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 0.25rem;
}
.liste ul { list-style: none; }
.liste li {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.liste li span {
  color: var(--ink-3);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 0.15rem;
}

.note-liste {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-2);
}
.note-liste p { color: var(--ink-2); font-size: var(--t-sm); max-width: 58ch; }

/* --------------------------------------------------------------------------
   11. TRAITEUR
   -------------------------------------------------------------------------- */
.formules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.formule {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--tr);
}
.formule:hover { border-color: var(--line-2); }
.formule figure { overflow: hidden; background: var(--paper-3); }
.formule figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 900ms var(--e);
}
.formule:hover figure img { transform: scale(1.04); }

.formule-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.35rem;
}
.formule h3 {
  font-family: var(--f-ui);
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 0.6rem;
}
.formule p { color: var(--ink-2); font-size: var(--t-sm); flex: 1; }
.formule .mention {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--rouge);
}
.formule .mention::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Trois étapes */
.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-2);
}
.etape { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.etape .num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 0.8;
  color: var(--rouge);
  opacity: 0.5;
}
.etape h3 {
  font-family: var(--f-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.etape p { color: var(--ink-2); font-size: var(--t-sm); }

/* Occasions + appel */
.traiteur-pied {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.traiteur-pied .cap { color: var(--ink-3); margin-bottom: 0.9rem; }
.traiteur-pied .delai { display: block; margin-top: 0.7rem; font-size: 0.8125rem; color: var(--ink-3); text-align: right; }

/* Formulaire de devis */
.devis { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 100px; }

.devis-carte {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.devis-intro h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.devis-intro p { color: var(--ink-2); font-size: var(--t-sm); margin-top: 0.9rem; }
.devis-intro .ou { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.devis-intro .ou .cap { color: var(--rouge); margin: 0; }
.devis-intro .tel-gd {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.devis-intro .dispo { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--ink-3); }

.champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}
.champ { display: grid; gap: 0.4rem; margin: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label {
  font-size: var(--t-cap);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.req { color: var(--rouge); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: 0.5rem 0;
  font-size: var(--t-sm);
  color: var(--ink);
  transition: border-color var(--tr);
}
.champ textarea { resize: vertical; min-height: 5rem; line-height: 1.55; }
.champ input::placeholder,
.champ textarea::placeholder { color: var(--ink-3); }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-bottom-color: var(--rouge);
}
.champ input:focus-visible,
.champ select:focus-visible,
.champ textarea:focus-visible { outline: none; }
.champ input:user-invalid,
.champ textarea:user-invalid { border-bottom-color: var(--rouge); }

.champ select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2316110f' stroke-width='1.4'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
}

/* Piège à robots — masqué sans sortir du flux (pas de débordement horizontal) */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hp input { width: 1px; }

.devis-pied {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
}
.devis-pied .note { font-size: 0.78rem; color: var(--ink-3); max-width: 38ch; }
.devis-pied .btn:disabled { opacity: 0.55; cursor: default; }

.devis-err {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(189, 33, 39, 0.35);
  border-radius: var(--r-s);
  background: rgba(189, 33, 39, 0.06);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.devis-err a { color: var(--rouge); }

.devis-ok {
  display: none;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(46, 125, 79, 0.32);
  border-radius: var(--r-s);
  background: rgba(46, 125, 79, 0.07);
}
.devis-ok.visible { display: flex; }
.devis-ok:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; }
.devis-ok .coche {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
  font-size: 0.75rem;
  line-height: 22px;
  text-align: center;
}
.devis-ok b { display: block; margin-bottom: 0.2rem; font-weight: 600; }
.devis-ok p { font-size: var(--t-sm); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   12. NOUS TROUVER
   -------------------------------------------------------------------------- */
.trouver {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.adresse { font-style: normal; }
.adresse .lieu {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
}

.horaires { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; }
.horaires caption {
  text-align: left;
  color: var(--rouge);
  padding-bottom: 0.9rem;
}
.horaires td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--ink-2);
}
.horaires td:first-child { padding-left: 0; }
.horaires td:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; }
.horaires td:last-child .creneau { display: block; }
.horaires td:last-child .creneau + .creneau { margin-top: 0.25rem; }
.horaires tr.ferme td { color: var(--ink-3); }
.horaires tr.aujourdhui td { color: var(--ink); font-weight: 500; }
.horaires tr.aujourdhui td:first-child { position: relative; padding-left: 0.9rem; }
.horaires tr.aujourdhui td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rouge);
}

.contacts { display: grid; gap: 0.55rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contacts .tel {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.contacts .mail { font-size: var(--t-sm); color: var(--ink-2); border-bottom: 1px solid var(--line-2); justify-self: start; }
.contacts .mail:hover { border-bottom-color: var(--ink); }

/* Carte */
.map-cadre {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--paper-2);
}
#carte-map { height: clamp(320px, 46vw, 480px); width: 100%; z-index: 0; }

/* Repli quand le plan ne peut pas se charger */
#carte-map.carte-repli {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--paper-2);
}
#carte-map.carte-repli p { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.3; }
#carte-map.carte-repli a {
  font-size: var(--t-sm);
  color: var(--rouge);
  border-bottom: 1px solid rgba(189, 33, 39, 0.32);
}
.leaflet-container { background: var(--paper-2) !important; font-family: var(--f-ui) !important; }
.leaflet-control-attribution {
  background: rgba(251, 249, 245, 0.82) !important;
  font-size: 10px !important;
  color: var(--ink-3) !important;
}
.leaflet-control-attribution a { color: var(--ink-2) !important; }

.pin { position: relative; width: 26px; height: 26px; }
.pin-coeur {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: var(--rouge);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.pin-onde {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(189, 33, 39, 0.2);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.map-actions a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  transition: border-color var(--tr), color var(--tr);
}
.map-actions a:hover { border-color: var(--ink); color: var(--ink); }

/* --------------------------------------------------------------------------
   13. PIED DE PAGE
   -------------------------------------------------------------------------- */
.pied {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.pied-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
}
.pied-marque .nom {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.pied-marque p { color: var(--ink-2); font-size: var(--t-sm); max-width: 34ch; }

.pied h4 { color: var(--rouge); margin-bottom: 1.1rem; }
.pied ul { list-style: none; display: grid; gap: 0.6rem; }
.pied li, .pied a { font-size: var(--t-sm); color: var(--ink-2); }
.pied a { transition: color var(--tr); }
.pied a:hover { color: var(--ink); }

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .trouver { grid-template-columns: minmax(0, 1fr); }
  .maison { grid-template-columns: minmax(0, 1fr); }
  .maison-photos { max-width: 30rem; }
  .listes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-tete { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-photo img { height: auto; }
  .hero-fiche {
    position: static;
    width: auto;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1.25rem clamp(1.1rem, 4vw, 1.5rem);
  }
  /* auto-fit plutôt que 2 colonnes fixes : sous ~440 px la fiche repasse
     seule sur une colonne, sinon « ferme à 19 h 30 » est tronqué. */
  .hero-fiche dl { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem 1.5rem; }
  .hero-fiche .sep { display: none; }
  .nav { display: none; }
  .burger { display: block; width: 44px; height: 44px; }
  .burger span { left: 12px; }
  .burger span:nth-child(1) { top: 19px; }
  .burger span:nth-child(2) { top: 25px; }
  .entete-fin .pastille { display: none; }
  .tel-btn span { display: none; }
  /* Cibles tactiles à 44 px minimum */
  .tel-btn { padding: 0; min-width: 44px; min-height: 44px; justify-content: center; }
  .tel-btn svg { width: 16px; height: 16px; }
  /* 16 px : en dessous, Safari iOS zoome automatiquement à la prise de focus */
  .champ input, .champ select, .champ textarea { font-size: 1rem; }
  .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sec-tete { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .traiteur-pied { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .traiteur-pied .delai { text-align: left; }
  .devis-carte { grid-template-columns: minmax(0, 1fr); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .reperes { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .repere { display: flex; align-items: baseline; gap: 0.75rem; }
  .repere b { margin-bottom: 0; }
}

@media (max-width: 640px) {
  .cartes { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .carte figure { margin-bottom: 1.1rem; }
  .formules { grid-template-columns: minmax(0, 1fr); }
  .listes { grid-template-columns: minmax(0, 1fr); }
  .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .maison-b { width: 52%; right: 0; }
  .champs { grid-template-columns: minmax(0, 1fr); }
  .devis-pied { flex-direction: column; align-items: stretch; }
  .devis-pied .btn { justify-content: center; }
}

@media (max-width: 460px) {
  .marque { font-size: 0.95rem; white-space: normal; line-height: 1.05; }
  .repere { flex-direction: column; gap: 0.15rem; }
  .eyebrow { font-size: 0.625rem; letter-spacing: 0.1em; }
  .eyebrow::before { width: 14px; }
  /* La vignette en surimpression mangeait trop de la grande photo */
  .maison-b { width: 46%; }
  .maison-photos { padding-bottom: 3.5rem; }
  /* Le SIRET ne doit pas se couper au milieu du numéro */
  .pied-bas .nw { white-space: nowrap; }
  .contacts .mail, .pied a { overflow-wrap: anywhere; }
}
