/* =============================================================================
   Lamure Studio — Feuille de style
   Direction artistique « Terrain » : ancrage, matière, crédibilité d'artisan.
   Palette de 5 couleurs nommées + règles d'emploi WCAG AA (voir § Palette).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Polices — Space Grotesk, auto-hébergée (OFL). Fallback système propre.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Newsreader — serif éditoriale pour les TITRES (h1/h2), romain. OFL, self-host. */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Jetons de design
   --------------------------------------------------------------------------- */
:root {
  /* Palette nommée */
  --encre:      #14231b; /* vert botanique quasi-noir — fonds d'ancrage, texte foncé */
  --encre-doux: #414c46; /* dérivé foncé — TEXTE SECONDAIRE sur Pierre (7.4:1) */
  --pierre:     #efe9df; /* blanc minéral chaud — fond principal */
  --pierre-vive:#f6f2ea; /* surface légèrement plus claire — cartes */
  --ocre:       #c8863f; /* ACCENT UNIQUE — aplats CTA, traits, numéros (jamais texte fin) */
  --ocre-clair: #d8a35f; /* ocre éclairci — accents/numéros sur fond Encre (7.2:1) */
  --ocre-fonce: #95591f; /* ocre foncé — numéros/accents en TEXTE sur fond Pierre (4.7:1) */
  --mousse:     #5f7360; /* seconde teinte — grands titres sur Pierre, aplats, icônes */
  --brume:      #c9c3b6; /* texte secondaire UNIQUEMENT sur Encre / filets sur Encre */

  /* Bordures / filets */
  --filet-clair: rgba(20, 35, 27, 0.12);   /* sur Pierre */
  --filet-sombre: rgba(201, 195, 182, 0.20); /* sur Encre */

  /* Typographie */
  --police: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:  "Newsreader", Georgia, "Times New Roman", serif; /* TITRES h1/h2 (romain) */

  /* --- Cartes : DEUX traitements de relief (ajustables ici) ------------------
     A. Cartes sur fond CLAIR (crème) → élévation par l'OMBRE.
     B. Cartes sur fond SOMBRE (encre) → élévation par un HALO clair + top-light. */
  --rayon-carte: 14px;

  /* A · fond clair */
  --carte-claire-surface:  #fdfbf6;                 /* + claire que la section crème */
  --carte-claire-hairline: rgba(40, 50, 40, 0.06);  /* hairline très discrète */
  /* Intensité de l'OMBRE des cartes sur fond clair — réglable ici */
  --carte-claire-ombre:        0 4px 12px rgba(40, 50, 40, 0.12), 0 30px 60px -12px rgba(40, 50, 40, 0.34);
  --carte-claire-ombre-survol: 0 5px 14px rgba(40, 50, 40, 0.14), 0 36px 68px -12px rgba(40, 50, 40, 0.40);

  /* B · carte CRÈME posée sur une section SOMBRE (encre) : même surface que
     partout ; elle ressort par contraste, on ajoute un halo chaud + une ombre
     de calage. (Pas de surface verte, pas de bordure, pas de halo périphérique.) */
  /* Intensité du HALO (2 couches claires) + calage des cartes crème sur fond sombre — réglable ici */
  --carte-surdark-halo:        0 0 90px rgba(240, 232, 214, 0.30), 0 0 40px rgba(240, 232, 214, 0.20), 0 24px 55px -16px rgba(0, 0, 0, 0.60);
  --carte-surdark-halo-survol: 0 0 104px rgba(240, 232, 214, 0.36), 0 0 46px rgba(240, 232, 214, 0.26), 0 28px 62px -16px rgba(0, 0, 0, 0.64);
  /* Le calage est déjà inclus dans --carte-surdark-halo : on ne le rajoute pas ici (sinon doublon). */
  --carte-surdark-ombre:        var(--carte-surdark-halo);
  --carte-surdark-ombre-survol: var(--carte-surdark-halo-survol);
  /* Grain SVG (feTurbulence, N&B). Deux intensités : hero (visible en blend) et papier (très faible). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
  --grain-papier: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.035'/%3E%3C/svg%3E");

  /* Échelle typo fluide (mobile-first) */
  --pas-display: clamp(2.4rem, 7.5vw, 3.75rem);
  --pas-h2:      clamp(1.75rem, 4.5vw, 2.5rem);
  --pas-h3:      clamp(1.15rem, 2.5vw, 1.35rem);
  --pas-corps:   1.0625rem;
  --pas-legende: 0.875rem;

  /* Rythme */
  --rythme-section: clamp(4rem, 10vw, 7rem);
  --largeur-max: 68rem;
  --gouttiere: clamp(1.25rem, 5vw, 2.5rem);
  --rayon: 14px;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police);
  font-weight: 400;
  font-size: var(--pas-corps);
  line-height: 1.6;
  color: var(--encre);
  background-color: var(--pierre);
  background-image: var(--grain-papier); /* grain papier très subtil (sections claires) */
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0 0 0.6em; }
h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; } /* h3 : sans-serif (contraste éditorial) */
/* Titres h1/h2 : serif éditoriale, romain, interligne serré, chasse resserrée */
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.3px;
}
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Accessibilité : focus clavier toujours visible */
:focus-visible {
  outline: 3px solid var(--ocre);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Lien d'évitement */
.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ocre);
  color: var(--encre);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
}
.saut-contenu:focus { left: 0.5rem; top: 0.5rem; }

.sr-seul {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Mise en page
   --------------------------------------------------------------------------- */
.enveloppe {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding-block: var(--rythme-section); }
.section--encre { background: var(--encre); color: var(--pierre); }
.section--encre h2 { color: var(--pierre); }

/* Étiquette de section (kicker) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ocre-fonce); /* ocre foncé lisible sur fond clair (4.7:1, AA) */
  margin-bottom: 1.1rem;
}
.section--encre .kicker { color: var(--ocre-clair); } /* ocre clair sur fond Encre (7.2:1) */
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--ocre);
}
.section--encre .kicker::before { background: var(--ocre-clair); }

.plomb {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--encre-doux);
  max-width: 44ch;
}
/* Sur fond Encre (sections sombres ET section contact), texte clair lisible (Brume, 9.3:1) */
.section--encre .plomb,
.contact .plomb { color: var(--brume); }

/* Paragraphe unique du constat : pleine largeur de lecture */
.constat__texte { max-width: 62ch; }

/* ---------------------------------------------------------------------------
   Élément signature — courbes de niveau topographiques
   --------------------------------------------------------------------------- */
.topo {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ocre); /* les tracés utilisent currentColor */
}
.topo--sombre { color: var(--ocre-clair); opacity: 0.5; }
.topo--clair { color: var(--mousse); opacity: 0.4; }

/* Séparateur topographique entre sections */
.separateur-topo {
  line-height: 0;
  overflow: hidden;
}
.separateur-topo svg { width: 100%; height: clamp(48px, 8vw, 96px); }

/* ---------------------------------------------------------------------------
   Boutons / CTA
   RÈGLE : fond Ocre + texte Encre. Jamais de texte clair sur l'ocre.
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primaire {
  background: var(--ocre);
  color: var(--encre); /* 5.39:1 — AA */
}
.btn--primaire:hover { background: var(--ocre-clair); transform: translateY(-2px); }

/* Bouton fantôme — texte lisible, bordure discrète. Se décline selon le fond. */
.btn--fantome {
  background: transparent;
  color: var(--encre);
  border-color: var(--encre);
}
.btn--fantome:hover { background: var(--encre); color: var(--pierre); transform: translateY(-2px); }

.section--encre .btn--fantome,
.hero .btn--fantome {
  color: var(--pierre);
  border-color: rgba(239, 233, 223, 0.5);
}
.section--encre .btn--fantome:hover,
.hero .btn--fantome:hover { background: var(--pierre); color: var(--encre); }

.btn:active { transform: translateY(0); }

.groupe-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* ---------------------------------------------------------------------------
   En-tête
   --------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 35, 27, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--filet-sombre);
}
.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--pierre);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  white-space: nowrap;
}
.logo__point { color: var(--ocre-clair); }
.entete__nav { display: none; }
.entete__actions { display: flex; align-items: center; gap: 1rem; }
.entete__tel {
  display: none; /* masqué sur petit écran : l'appel reste très présent dans le hero */
  color: var(--pierre);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.entete__tel:hover { color: var(--ocre-clair); }
/* Téléphone dans l'en-tête seulement sur grand écran : évite le chevauchement
   logo + nav + tél + bouton dans la plage intermédiaire (il reste dans le hero,
   le contact et le pied de page). */
@media (min-width: 80rem) { .entete__tel { display: inline; } }

@media (min-width: 64rem) {
  .entete__nav { display: flex; align-items: center; gap: 1.25rem; }
  .entete__nav a {
    color: var(--brume);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap; /* chaque libellé reste sur une seule ligne */
    line-height: 1;
  }
  .entete__nav a:hover { color: var(--pierre); }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Fond : vignette radiale (plus profonde sur les bords) + grain fin en overlay */
  background-color: var(--encre);
  background-image: var(--grain),
    radial-gradient(120% 95% at 50% 20%, #1d3226 0%, var(--encre) 55%, #0e1812 100%);
  background-blend-mode: overlay, normal;
  background-size: 140px 140px, cover;
  color: var(--pierre);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
/* Lueur ocre diffuse derrière l'accroche */
.hero::before {
  content: "";
  position: absolute;
  left: -8%; top: 8%;
  width: 65%; height: 80%;
  background: radial-gradient(closest-side, rgba(200, 134, 63, 0.20), rgba(200, 134, 63, 0) 72%);
  pointer-events: none;
  z-index: 0;
}
.hero__fond {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.hero__fond svg { position: absolute; right: -8%; top: 50%; transform: translateY(-50%); width: 92%; height: auto; }
.hero__interieur { position: relative; z-index: 1; max-width: 46rem; }
/* Trait ocre décoratif au-dessus du titre (kicker graphique, sans libellé) */
.hero__interieur::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  background: var(--ocre);
  border-radius: 2px;
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: var(--pas-display);
  margin-bottom: 0.5em;
  color: var(--pierre);
}
.hero h1 .accent { color: var(--ocre-clair); }
.hero__sous {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--brume);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.hero__specialite {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet-sombre);
  font-size: var(--pas-legende);
  letter-spacing: 0.06em;
  color: var(--brume);
}
.hero__specialite b { color: var(--pierre); font-weight: 700; }

/* ---------------------------------------------------------------------------
   Constat
   --------------------------------------------------------------------------- */
.constat h2 { font-size: var(--pas-h2); max-width: 20ch; }
.constat__grille {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) {
  .constat__grille { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.constat__carte {
  padding: 1.75rem;
  border-radius: var(--rayon);
  border: 1px solid var(--filet-clair);
  background: var(--pierre-vive);
}
.constat__carte h3 { font-size: var(--pas-h3); color: var(--mousse); }
.constat__carte p { color: var(--encre-doux); margin-bottom: 0; }

/* Mise en page : texte à gauche, visuel schématique à droite (empilé sous le texte en mobile) */
.constat__interieur { display: grid; gap: 2rem; }
@media (min-width: 52rem) {
  .constat__interieur {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }
}
.constat__col .constat__texte { margin-bottom: 0; }

/* Carte schéma — HTML/CSS pur. Surface/halo/ombre : traitement CLAIR (voir bloc CARTES). */
.constat__schema { padding: clamp(1.5rem, 3.5vw, 2rem); }
.constat__schema-titre {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--encre);
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--filet-clair);
}
.constat__schema-liste { display: grid; gap: 0.9rem; }
.constat__schema-liste li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--encre-doux);
  font-weight: 500;
}
.constat__x {
  color: var(--ocre-fonce); /* croix ocre, lisible sur fond clair (5.45:1) */
  font-weight: 700;
  font-size: 1.05em;
  flex: none;
}

/* ---------------------------------------------------------------------------
   Ce que je livre + Options
   --------------------------------------------------------------------------- */
.livraison__grille {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 40rem) { .livraison__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .livraison__grille { grid-template-columns: repeat(3, 1fr); } }

.livrable {
  padding: 1.5rem;
  border-radius: var(--rayon);
  background: var(--pierre-vive);
  border: 1px solid var(--filet-clair);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.livrable__icone {
  width: 2.5rem; height: 2.5rem;
  color: var(--ocre); /* trait ocre sur carte crème */
  flex: none;
}
/* Carte livrable CRÈME : titre encre foncé, texte gris-vert foncé */
.livrable h3 { font-size: 1.1rem; margin: 0; color: var(--encre); }
.livrable p { margin: 0; color: var(--encre-doux); font-size: 0.98rem; }

.options {
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--encre); /* carte CRÈME : contenu foncé (surface/ombre via bloc CARTES) */
}
.options h3 { color: var(--encre); font-size: var(--pas-h3); }
.options p.plomb { color: var(--encre-doux); }
.options__liste {
  display: grid;
  gap: 0.75rem 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 40rem) { .options__liste { grid-template-columns: repeat(2, 1fr); } }
.options__liste li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--filet-clair);
  color: var(--encre);
}
.options__liste li::before {
  content: "+";
  color: var(--ocre-fonce);
  font-weight: 700;
  flex: none;
}
.options__liste b { font-weight: 700; }
.options__liste span { color: var(--encre-doux); font-size: 0.95rem; }

/* ---------------------------------------------------------------------------
   Réalisations (rendu conditionnel par main.js)
   --------------------------------------------------------------------------- */
.realisations__grille {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) { .realisations__grille { grid-template-columns: repeat(2, 1fr); } }

.realisation {
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--filet-clair);
  background: var(--pierre-vive);
}
.realisation__paire { display: grid; grid-template-columns: 1fr 1fr; }
.realisation__paire figure { margin: 0; position: relative; }
.realisation__paire img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.realisation__paire figcaption {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: var(--encre); color: var(--pierre);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 4px;
}
.realisation__pied { padding: 1rem 1.25rem; }
.realisation__pied h3 { margin: 0; font-size: 1.05rem; }
.realisation__pied span { color: var(--encre-doux); font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   Process
   --------------------------------------------------------------------------- */
.process__liste {
  list-style: none; /* retire les puces décimales natives ; seul le gros numéro ocre reste */
  padding: 0;
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 52rem) { .process__liste { grid-template-columns: repeat(3, 1fr); } }
.etape {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--rayon);
  border: 1px solid var(--filet-clair);
  background: var(--pierre-vive);
}
.etape__num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ocre-fonce); /* lisible en texte sur fond clair (4.7:1) */
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}
.etape h3 { font-size: 1.1rem; color: var(--encre); }
.etape p { color: var(--encre-doux); margin: 0; font-size: 0.98rem; }

/* ---------------------------------------------------------------------------
   Accompagnement (formules)
   --------------------------------------------------------------------------- */
.formules__grille {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 48rem) { .formules__grille { grid-template-columns: repeat(2, 1fr); } }
.formule {
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--encre); /* carte CRÈME : texte foncé (titre hérite) */
  display: flex;
  flex-direction: column;
}
.formule--phare { border: 2px solid var(--ocre); position: relative; }
.formule__badge {
  position: absolute; top: -0.85rem; left: clamp(1.75rem, 3.5vw, 2.25rem);
  background: var(--ocre); color: var(--encre);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.formule h3 { font-size: var(--pas-h3); }
.formule__intro { color: var(--encre-doux); }
.formule__liste { margin: 1.25rem 0 1.75rem; display: grid; gap: 0.7rem; }
.formule__liste li { display: flex; gap: 0.65rem; align-items: baseline; color: var(--encre-doux); }
.formule__liste li::before {
  content: "";
  flex: none;
  width: 0.7rem; height: 0.7rem; margin-top: 0.35rem;
  border: 2px solid var(--mousse);
  border-radius: 50%;
}
.formule--phare .formule__liste li::before { border-color: var(--ocre); }

/* ---------------------------------------------------------------------------
   CARTES — deux traitements de relief selon le fond (AUCUN filet ocre en haut).
     A · fond CLAIR  → élévation par l'OMBRE .......... .etape, .realisation
     B · fond SOMBRE → élévation par un HALO clair .... .livrable, .formule,
                                                        .options, .formulaire
   Réglages : § « Cartes : DEUX traitements de relief » dans :root.
   --------------------------------------------------------------------------- */
/* A — cartes sur fond clair */
.etape, .realisation, .constat__schema {
  background: var(--carte-claire-surface);
  border: 1px solid var(--carte-claire-hairline);
  border-radius: var(--rayon-carte);
  box-shadow: var(--carte-claire-ombre);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* B — MÊME carte crème, mais posée sur une section sombre : halo chaud + calage */
.livrable, .formule, .options, .formulaire {
  background: var(--carte-claire-surface);
  border: none;
  border-radius: var(--rayon-carte);
  box-shadow: var(--carte-surdark-ombre);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* La formule « phare » garde son cadre ocre d'emphase (ce n'est pas le filet du haut) */
.formule--phare { border: 2px solid var(--ocre); }
/* Survol desktop uniquement : légère élévation + ombre/halo renforcés (~150ms) */
@media (hover: hover) and (min-width: 64rem) {
  .etape:hover, .realisation:hover, .constat__schema:hover {
    transform: translateY(-2px);
    box-shadow: var(--carte-claire-ombre-survol);
  }
  .livrable:hover, .formule:hover {
    transform: translateY(-2px);
    box-shadow: var(--carte-surdark-ombre-survol);
  }
  /* Grands blocs : renfort de l'ombre sans déplacement (le formulaire ne doit pas bouger sous le curseur) */
  .options:hover, .formulaire:hover { box-shadow: var(--carte-surdark-ombre-survol); }
}
.formule .btn { margin-top: auto; align-self: flex-start; }
/* La carte formule est CRÈME : bouton fantôme en version foncée. */
.formule .btn--fantome { color: var(--encre); border-color: var(--encre); }
.formule .btn--fantome:hover { background: var(--encre); color: var(--pierre); }
.note-honnete {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--brume);
  border-left: 2px solid var(--ocre-clair);
  padding-left: 1rem;
  max-width: 60ch;
}

/* ---------------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------------- */
.faq__liste { margin-top: 2rem; max-width: 52rem; }
.faq__item {
  border-bottom: 1px solid var(--filet-clair);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--encre);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute; right: 0.25rem; top: 50%;
  width: 0.75rem; height: 0.75rem;
  border-right: 2px solid var(--mousse);
  border-bottom: 2px solid var(--mousse);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { color: var(--encre-doux); padding-bottom: 1.35rem; margin: 0; max-width: 62ch; }
.faq__item p + p { padding-top: 0; margin-top: -0.5rem; }

/* ---------------------------------------------------------------------------
   Contact
   --------------------------------------------------------------------------- */
.contact { background: var(--encre); color: var(--pierre); }
.contact__grille { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 52rem) {
  .contact__grille { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
}
.contact__aparte h2 { color: var(--pierre); }
.contact__coord { margin-top: 1.75rem; display: grid; gap: 1rem; }
.contact__coord a {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--pierre); text-decoration: none; font-size: 1.05rem; font-weight: 500;
}
.contact__coord a:hover { color: var(--ocre-clair); }
.contact__coord svg { width: 1.35rem; height: 1.35rem; color: var(--ocre-clair); flex: none; }

/* Formulaire — carte CRÈME (surface/ombre fournis par le traitement des cartes).
   Libellés foncés ; les champs de saisie restent blancs à texte foncé. */
.formulaire {
  color: var(--encre);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.champ { margin-bottom: 1.15rem; }
.champ label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--encre);
}
.champ .requis { color: var(--ocre); }
.champ input,
.champ textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--encre);
  background: #ffffff; /* plus clair que la carte crème : zones à remplir bien distinctes */
  border: 1.6px solid rgba(20, 35, 27, 0.30); /* bordure renforcée */
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.champ input::placeholder,
.champ textarea::placeholder { color: #8a9088; }
.champ input:focus,
.champ textarea:focus {
  outline: none;
  border-color: var(--ocre);
  box-shadow: 0 0 0 3px rgba(200, 134, 63, 0.25);
}
.champ textarea { min-height: 8rem; resize: vertical; }
.champ--paire { display: grid; gap: 1.15rem; }
@media (min-width: 30rem) { .champ--paire { grid-template-columns: 1fr 1fr; } }

.consentement {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--encre-doux);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.consentement input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--ocre); }
.consentement a { color: var(--mousse); }

/* Honeypot anti-spam — masqué aux humains, visible aux robots */
.pot-de-miel {
  position: absolute !important;
  left: -9999px;
  height: 0; width: 0; overflow: hidden;
}

.rgpd-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--encre-doux);
  line-height: 1.5;
}

/* Message de confirmation / erreur (piloté par main.js) */
.form-statut {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}
.form-statut[data-etat="succes"] {
  display: block;
  background: rgba(95, 115, 96, 0.14);
  border: 1.5px solid var(--mousse);
  color: var(--encre);
}
.form-statut[data-etat="erreur"] {
  display: block;
  background: rgba(200, 134, 63, 0.16);
  border: 1.5px solid var(--ocre);
  color: var(--encre);
}
.form-statut[data-etat="envoi"] { display: block; color: var(--encre-doux); }

/* ---------------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------------- */
.pied {
  background: var(--encre);
  color: var(--brume);
  border-top: 1px solid var(--filet-sombre);
  padding-block: 2.5rem;
  font-size: 0.92rem;
}
.pied__interieur {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.pied__marque { color: var(--pierre); font-weight: 700; font-size: 1.05rem; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pied__liens a { color: var(--brume); text-decoration: none; }
.pied__liens a:hover { color: var(--pierre); }
.pied__geo { width: 100%; color: var(--brume); font-size: 0.85rem; opacity: 0.85; }

/* ---------------------------------------------------------------------------
   Mentions légales (page dédiée)
   --------------------------------------------------------------------------- */
.doc-legal { max-width: 46rem; }
.doc-legal h1 { font-size: var(--pas-h2); margin-top: 2rem; }
.doc-legal h2 { font-size: var(--pas-h3); margin-top: 2.5rem; }
.doc-legal p, .doc-legal li { color: var(--encre-doux); }
.doc-legal ul { list-style: disc; padding-left: 1.25rem; }
.avis-placeholder {
  background: var(--pierre-vive);
  border: 1px dashed var(--ocre);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--encre-doux);
  font-size: 0.92rem;
  margin: 1.5rem 0;
}
.retour {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.5rem; text-decoration: none; color: var(--mousse); font-weight: 500;
}
.retour:hover { color: var(--encre); }

/* ---------------------------------------------------------------------------
   Mouvement réduit
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
