/* Panakeo — site vitrine. Charte : docs/marque/LISEZ-MOI.md.
   Texte de marque TOUJOURS en vert profond (#0B3D3B, 12:1 sur blanc) ;
   vert vif et turquoise DÉCORATIFS uniquement (filets, dégradés). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

:root {
  --vert-profond: #0b3d3b;
  --menthe: #e6f7f5;
  --fond: #f2f9f8;
  --vert-vif: #22c55e;     /* décoratif */
  --turquoise: #14b8a6;    /* décoratif */
  --encre: #122b29;
  --discret: #4e6a67;      /* 5,5:1 sur fond clair */
  --ligne: #d6e8e5;
  --danger: #b42318;
  --ok: #15803d;
  --rayon: 1rem;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-titre: "Montserrat", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police-texte); color: var(--encre); background: #fff; line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; }
a { color: var(--vert-profond); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert-profond); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--police-titre); color: var(--vert-profond); line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.conteneur { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.evitement { position: absolute; left: -9999px; top: 0; background: var(--vert-profond); color: #fff; padding: .75rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; top: 1rem; }
.sr-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête */
.entete { background: #fff; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 5; }
.entete::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--vert-vif), var(--turquoise)); }
.entete__ligne { display: flex; align-items: center; gap: 1.25rem; padding-block: .8rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__nom { font-family: var(--police-titre); font-weight: 800; font-size: 1.45rem; color: var(--vert-profond); }
.navigation ul { list-style: none; display: flex; gap: .25rem 1.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.navigation a { text-decoration: none; font-weight: 600; font-size: .97rem; padding: .3rem 0; display: inline-block; }
.navigation a[aria-current="page"] { border-bottom: 3px solid var(--vert-vif); }
.entete__actions { margin-left: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.2rem; border-radius: .8rem; background: var(--vert-profond); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--vert-profond); font-size: 1rem; cursor: pointer; font-family: inherit; }
.bouton:hover { background: #0e4c49; }
.bouton--discret { background: #fff; color: var(--vert-profond); }
.bouton--discret:hover { background: var(--menthe); }
.bouton--grand { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.08rem; }

/* Sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--menthe { background: var(--fond); }
.section--sombre { background: var(--vert-profond); color: #fff; }
.section--sombre h2, .section--sombre h3, .section--sombre a { color: #fff; }
.chapeau { font-size: 1.2rem; color: var(--discret); max-width: 44rem; }
.section--sombre .chapeau { color: #d5ece9; }
.surtitre { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--vert-profond); margin-bottom: .6rem; }
.heros { background: linear-gradient(180deg, var(--menthe), #fff); padding-block: clamp(3rem, 8vw, 6rem); }
.heros__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.heros__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.heros__visuel { background: #fff; border: 1px solid var(--ligne); border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 20px 50px -25px rgba(11, 61, 59, .35); }
.heros__visuel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.heros__visuel li { display: flex; gap: .7rem; align-items: flex-start; background: var(--fond); border-radius: .8rem; padding: .75rem .9rem; font-size: .97rem; }
.pastille { flex: 0 0 auto; width: .7rem; height: .7rem; border-radius: 50%; margin-top: .45rem; background: linear-gradient(135deg, var(--vert-vif), var(--turquoise)); }
.grille { display: grid; gap: 1.25rem; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.4rem 1.5rem; }
.carte p:last-child, .carte ul:last-child { margin-bottom: 0; }
.carte ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.carte--accent { border-top: 4px solid var(--vert-vif); }
.liste-coches { list-style: none; padding: 0 !important; }
.liste-coches li { padding-left: 1.6rem; position: relative; margin-bottom: .45rem; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* Tarifs */
.formule { display: flex; flex-direction: column; }
.formule__prix { font-family: var(--police-titre); font-size: 2.6rem; font-weight: 800; color: var(--vert-profond); line-height: 1; margin: .4rem 0 .2rem; }
.formule__prix small { font-size: 1rem; font-weight: 600; color: var(--discret); }
.formule--phare { border: 2px solid var(--vert-profond); position: relative; }
.formule__etiquette { position: absolute; top: -.8rem; left: 1.5rem; background: var(--vert-profond); color: #fff; font-size: .8rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; }
.formule .bouton { margin-top: auto; }
.note { font-size: .93rem; color: var(--discret); }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; font-size: .97rem; }
.tableau th, .tableau td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau thead th { background: var(--menthe); color: var(--vert-profond); }
.tableau td.nombre, .tableau th.nombre { text-align: right; white-space: nowrap; }
.defilant { overflow-x: auto; }

/* Formulaires */
.formulaire { display: grid; gap: 1.1rem; max-width: 44rem; }
.formulaire__ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.champ { display: flex; flex-direction: column; gap: .35rem; }
.champ label, .champ legend { font-weight: 600; font-size: .97rem; }
.champ input, .champ select, .champ textarea { font: inherit; font-size: 1rem; padding: .65rem .8rem; min-height: 46px; border: 1.5px solid #8aa5a2; border-radius: .7rem; background: #fff; color: var(--encre); width: 100%; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 3px solid var(--vert-profond); outline-offset: 1px; }
.champ textarea { min-height: 7rem; resize: vertical; }
.champ .aide { font-size: .88rem; color: var(--discret); }
.obligatoire { color: var(--danger); }
.consentement { display: flex; gap: .7rem; align-items: flex-start; background: var(--fond); border: 1px solid var(--ligne); padding: .9rem 1rem; border-radius: .8rem; font-size: .95rem; }
.consentement input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: 0 0 auto; }
.pot-de-miel { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.message { padding: 1rem 1.2rem; border-radius: .8rem; font-weight: 600; }
.message--ok { background: #e7f7ec; color: #14532d; border: 1px solid #a7dcb6; }
.message--erreur { background: #fff1ec; color: var(--danger); border: 1px solid #f3c2b5; }

/* Calculateur */
.calcul { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.resultat { background: var(--vert-profond); color: #fff; border-radius: 1.2rem; padding: 1.6rem; }
.resultat h2, .resultat h3 { color: #fff; }
.resultat__chiffre { font-family: var(--police-titre); font-size: 3rem; font-weight: 800; line-height: 1; margin: .3rem 0 1rem; }
.resultat table { width: 100%; border-collapse: collapse; }
.resultat td { padding: .35rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.resultat td:last-child { text-align: right; font-weight: 700; }

/* Pages juridiques et texte long */
.texte { max-width: 50rem; }
.texte h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.texte h3 { margin-top: 1.6rem; }
.texte table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.texte th, .texte td { border: 1px solid var(--ligne); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.encadre { background: var(--fond); border-left: 4px solid var(--vert-vif); padding: 1rem 1.2rem; border-radius: 0 .8rem .8rem 0; margin: 1.2rem 0; }

/* Pied de page */
.pied { background: var(--vert-profond); color: #d5ece9; margin-top: 0; font-size: .95rem; }
.pied a { color: #fff; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.8rem 1.5rem; }
.pied__marque { font-family: var(--police-titre); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: .3rem; }
.pied__titre { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pied__note { font-size: .88rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .18); padding-block: 1rem 1.4rem; font-size: .88rem; }
.pied__bas p { margin: 0; }

@media (max-width: 900px) {
  .heros__grille, .grille--3, .grille--2, .calcul, .pied__grille { grid-template-columns: 1fr; }
  .entete { position: static; }
  .entete__actions { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .formulaire__ligne { grid-template-columns: 1fr; }
  .navigation ul { gap: .1rem .9rem; }
  body { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .bouton, a { transition: background-color .15s ease, color .15s ease; }
}
@media print {
  .entete, .pied, .evitement { display: none; }
}
