/* Perpens — clair.css : refonte claire (DESIGN.md, section « Standard visuel
   obligatoire », décidée le 2026-10-09). Feuille séparée : seules les pages
   migrées la chargent ; les autres gardent refonte.css (piste B) jusqu'à
   leur migration. Couleurs pleines et espacements toujours en jetons.
   Contrastes calculés (WCAG) à côté de chaque jeton de texte. */

:root {
  --vert-profond: #04372A;   /* blanc dessus 13,3:1 ; sur ivoire 12,2:1 */
  --vert: #047857;           /* sur ivoire 5,1:1 ; blanc dessus 5,5:1 */
  --vert-accent: #065F46;    /* sur ivoire 7,2:1 */
  --vert-clair: #6FD1A9;     /* sur vert profond 7,9:1 (icônes, étiquettes) */
  --menthe: #CFEADF;         /* vert profond dessus 10,5:1 */
  --prune: #7C5295;          /* blanc dessus 6,0:1 ; sur ivoire 5,6:1 ; texte sur dégradés : toujours blanc (≥ 5,2:1 au point le plus clair) */
  --prune-fonce: #5F3D74;    /* blanc dessus 8,6:1 */
  --prune-nuit: #3A1734;     /* blanc dessus 14,6:1 */
  --lilas: #EDE3F2;
  /* Dégradés repris de l'accueil d'avant la refonte (piste B : portes
     émeraude 155° et prune 205°, lueurs radiales), posés sur fond clair. */
  --deg-pme: linear-gradient(155deg, #0B7A5A 0%, #04372A 70%);
  --deg-buy: linear-gradient(205deg, #8A5FA3 0%, #5F3D74 55%, #3A1734 100%);
  --deg-nuit: radial-gradient(900px 420px at 85% 0%, rgba(16, 185, 129, .28), transparent 60%),
              radial-gradient(760px 420px at 0% 100%, rgba(124, 82, 149, .34), transparent 62%),
              #04372A;
  --menthe-pale: #ECFDF5;
  --menthe-texte: #D8EFE6;   /* sur vert profond 11,4:1 */
  /* Textes des cartes « Nos accompagnements » (fond vert translucide sur la bande sombre) ;
     valeurs inchangées, sorties en jetons (audit Impeccable, 2026-10-13). */
  --carte-k-pme: #34D399;    /* 7,6:1 sur la carte */
  --carte-k-buy: #D9C6E4;    /* 9,5:1 sur la carte */
  --carte-texte: #A9CFC0;    /* 8,2:1 sur la carte */
  --ivoire: #F5F6F1;
  --blanc: #FFFFFF;
  --encre: #1B1F1D;          /* sur ivoire 15,4:1 */
  --encre-2: #3D4642;        /* sur ivoire 8,9:1, sur blanc 9,7:1 */
  --filet: #D9DED9;
  --corail: #F0643F;         /* décor uniquement (logo) */

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --r-btn: 999px; --r-carte: 20px; --r-photo: 8px;
  --page: 1200px;
  --gouttiere: 20px;
  --t-titre: clamp(1.875rem, .9rem + 5.4vw, 4.5rem);
  --t-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  --police-titre: 'Sora', system-ui, sans-serif;
  --police-texte: 'Instrument Sans', system-ui, sans-serif;
  --police-mono: 'Geist Mono', ui-monospace, monospace;
}
@media (min-width: 768px) { :root { --gouttiere: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivoire); color: var(--encre);
  font-family: var(--police-texte); font-size: 1rem; line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--vert); }
a:hover { color: var(--vert-profond); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
/* Fonds sombres : contour clair (7,2:1) ; le vert ne donnait que 2,4:1 sur #04372A. */
.c-bande :focus-visible, .c-accomp :focus-visible, .c-final :focus-visible { outline-color: var(--vert-clair); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 50; padding: var(--s1) var(--s2); background: var(--vert-profond); color: var(--blanc); border-radius: var(--r-btn); }
.skip:focus { top: var(--s2); color: var(--blanc); }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gouttiere); }
h1, h2, h3 { font-family: var(--police-titre); color: var(--vert-profond); margin: 0; }
.etiquette {
  margin: 0; font-family: var(--police-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--vert);
}

/* ---- En-tête ---------------------------------------------------------- */
.c-top { position: relative; z-index: 20; }
.c-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 72px; }
.c-brand { display: block; }
.c-brand img { height: 36px; width: auto; }
.c-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; border-radius: var(--r-btn);
  background: transparent; color: var(--vert-profond); cursor: pointer;
}
.c-menu-btn svg { width: 28px; height: 28px; }
.c-menu-btn .ferme { display: none; }
.c-menu-btn[aria-expanded="true"] .ouvre { display: none; }
.c-menu-btn[aria-expanded="true"] .ferme { display: block; }
.c-nav { display: none; }
.c-nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  padding: var(--s1) var(--gouttiere) var(--s3); background: var(--ivoire);
  border-bottom: 1px solid var(--filet); box-shadow: 0 16px 32px rgba(4, 55, 42, .10);
}
.c-nav a {
  display: flex; align-items: center; min-height: 52px; font-weight: 500; font-size: 1.0625rem;
  color: var(--vert-profond); text-decoration: none; border-bottom: 1px solid var(--filet);
}
.c-nav a.c-nav-cta {
  justify-content: center; margin-top: var(--s2); border: 1.5px solid var(--vert-profond);
  border-radius: var(--r-btn); font-weight: 600;
}
/* Sans JavaScript le bouton ne ferait rien : le menu reste ouvert, sous le logo. */
@media (max-width: 1023px) {
  html:not(.js) .c-menu-btn { display: none; }
  html:not(.js) .c-top .wrap { flex-wrap: wrap; }
  html:not(.js) .c-nav {
    display: flex; flex-direction: column; flex-basis: 100%; padding-bottom: var(--s2);
  }
}
@media (min-width: 1024px) {
  .c-menu-btn { display: none; }
  .c-nav, .c-nav.open {
    display: flex; flex-direction: row; align-items: center; gap: var(--s4);
    position: static; padding: 0; background: none; border: 0; box-shadow: none;
  }
  .c-nav a { min-height: 44px; border: 0; font-size: .9375rem; }
  .c-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .c-nav a.c-nav-cta { margin: 0; padding: 0 var(--s3); }
  .c-nav a.c-nav-cta:hover { background: var(--vert-profond); color: var(--blanc); text-decoration: none; }
}

/* ---- Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 56px; padding: 0 var(--s3); border-radius: var(--r-btn);
  font-family: var(--police-texte); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent;
  transition: background-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.btn-plein { background: var(--deg-pme); color: var(--blanc); box-shadow: 0 10px 24px -12px rgba(4, 120, 87, .7); }
.btn-plein:hover { background: var(--vert-profond); color: var(--blanc); box-shadow: 0 12px 26px -10px rgba(4, 120, 87, .75); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
@media (hover: none) { .btn:hover { box-shadow: none; } .btn:hover svg { transform: none; } }

/* ---- Hero ------------------------------------------------------------- */
.c-fond { position: relative; isolation: isolate; }
/* Fil rouge de la charte (§ 4), signature de la V2 : une seule fois, du
   haut de la page jusqu'aux portes. */
.c-fil { position: absolute; z-index: 1; top: 0; bottom: 64px; right: max(14px, calc((100% - var(--page)) / 2 + 6px)); width: 3px; background: var(--corail); pointer-events: none; }
.c-fil::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--corail); transform: translateX(-50%); }
.c-hero .wrap { padding-right: 36px; }
@media (min-width: 900px) { .c-hero .wrap { padding-right: 64px; } .c-fil { top: -72px; bottom: 96px; } }
.c-fond::before {
  content: ""; position: absolute; inset: -72px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 420px at 92% 6%, rgba(16, 185, 129, .16), transparent 62%),
    radial-gradient(640px 460px at 0% 72%, rgba(124, 82, 149, .13), transparent 64%);
}
.c-hero { padding: var(--s4) 0 var(--s6); }
.c-hero-grille { display: grid; gap: var(--s4); }
.c-hero h1 {
  font-size: var(--t-titre); font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
  max-width: 13ch; margin-top: var(--s2);
}
.c-hero h1 .l1, .c-hero h1 .l2 { display: block; white-space: nowrap; }
/* Petits écrans : la ligne la plus longue remplissait toute la boîte (marge nulle) ; ~7 % de marge. */
@media (max-width: 359px) { .c-hero h1 { font-size: 1.75rem; } }
.c-hero h1 { max-width: none; }
.c-hero-sous { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.c-hero-sous p { margin: 0; font-size: 1.125rem; line-height: 1.45; max-width: 30ch; text-wrap: balance; }
.c-portrait-mini { width: 72px; height: 90px; flex-shrink: 0; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-photo); }
.c-portrait { display: none; }
@media (max-width: 360px) {
  .c-hero { padding-top: var(--s2); }
  .c-hero .etiquette { font-size: .75rem; letter-spacing: .1em; }
  .c-hero-sous { margin-top: var(--s2); }
  .c-hero-sous p { font-size: 1.0625rem; }
  .c-portrait-mini { width: 56px; height: 70px; }
}
@media (min-width: 900px) {
  .c-hero { padding: var(--s6) 0 var(--s7); }
  .c-hero-grille { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: var(--s6); }
  .c-portrait-mini { display: none; }
  .c-portrait { display: block; margin: 0; justify-self: end; width: 100%; max-width: 360px; }
  .c-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-photo); }
  .c-portrait figcaption { margin-top: var(--s1); font-size: .875rem; color: var(--encre-2); }
  .c-hero-sous p { font-size: 1.375rem; }
}

/* ---- Étiquettes de section (bandes sombres) ----------------------------- */
.c-label {
  display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s4);
  font-family: var(--police-mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--menthe-texte);
}
.c-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert-clair); flex-shrink: 0; }

/* ---- Choix du public : liste à filets de la V2 (demande du porteur,
   2026-10-09, remplace les portes sombres) ------------------------------- */
.c-choix { display: flex; flex-direction: column; margin-top: var(--s4); border-top: 1px solid var(--vert-profond); }
.c-choix a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 4px var(--s2);
  min-height: 84px; padding: var(--s2) 0; border-bottom: 1px solid var(--vert-profond);
  color: var(--vert-profond); text-decoration: none;
}
.c-choix .k { grid-column: 1; font-family: var(--police-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.c-choix .pme .k { color: var(--vert); }
.c-choix .buy .k { color: var(--prune); }
.c-choix .t { grid-column: 1; font-family: var(--police-titre); font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.c-choix svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 24px; height: 24px; transition: transform .2s; }
.c-choix a:hover { color: var(--vert-profond); }
.c-choix a:hover .t { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.c-choix a:hover svg { transform: translateX(4px); }
.c-regle {
  display: flex; gap: 10px; align-items: flex-start; margin: var(--s2) 0 0; max-width: 46ch;
  font-size: .9375rem; line-height: 1.5; color: var(--encre);
}
.c-regle svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--vert); margin-top: 2px; }
@media (min-width: 768px) {
  .c-choix { flex-direction: row; }
  .c-choix a { flex: 1 1 0; min-height: 112px; padding: var(--s3) var(--s4) var(--s3) 0; }
  .c-choix a + a { padding-left: var(--s4); border-left: 1px solid var(--vert-profond); }
  .c-choix .t { font-size: 1.5rem; }
}

/* ---- Bande sombre : les indicateurs ------------------------------------ */
.c-bande { background: var(--deg-nuit); color: var(--blanc); padding: var(--s6) 0; }
@media (min-width: 768px) { .c-bande { padding: var(--s7) 0; } }

/* ---- Indicateurs (dans la bande) : trois chiffres puis la frise des 15 ans
   (variante B, choix du porteur 2026-10-12). Couleurs : jetons existants. ---- */
.c-chiffres .c-label { margin-bottom: var(--s5); }
.c-trois { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.c-trois li { display: flex; flex-direction: column; gap: 6px; }
.c-chiffres .v { margin: 0; font-family: var(--police-titre); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--blanc); }
.c-trois .v { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); white-space: nowrap; }
.c-chiffres .l { margin: 0; font-size: .9375rem; line-height: 1.4; color: var(--menthe-texte); text-wrap: balance; }
.c-trois .l { max-width: 26ch; }
.c-frise .v { font-size: clamp(3rem, 1.8rem + 6vw, 6rem); }
.c-frise > .l { margin-top: var(--s1); font-size: 1.125rem; }
.c-frise .barre { display: grid; grid-template-columns: 4fr 11fr; gap: 4px; height: 14px; margin-top: var(--s3); }
.c-frise .barre i { display: block; border-radius: 3px; transform-origin: left; }
.c-frise .barre .e { background: var(--vert-clair); }
.c-frise .barre .a { background: var(--lilas); }
.c-frise .legende { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.c-frise .legende li { display: flex; align-items: center; gap: 8px; font-family: var(--police-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.c-frise .legende li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.c-frise .legende .e { color: var(--vert-clair); }
.c-frise .legende .a { color: var(--lilas); }
/* Tracé : refonte.js ajoute .pre si la frise est sous la ligne de flottaison
   (jamais en mouvement réduit) et le retire à l'arrivée à l'écran. */
.c-frise .barre .e { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.c-frise .barre .a { transition: transform 1s cubic-bezier(.22, 1, .36, 1) .55s; }
.c-frise.pre .barre i { transform: scaleX(0); }
@media (min-width: 768px) {
  .c-trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); margin-bottom: var(--s6); }
  .c-chiffres .l { font-size: 1rem; }
}

/* ---- Un cas réel : carte compacte d'après la maquette (2026-10-09).
   Fond crème de la page, sans rectangle blanc (demande du porteur) ; photo
   de balance fournie par le porteur, bords fondus dans le fond (masque radial). ----- */
.c-cas { padding: var(--s6) 0; }
.c-carte { display: grid; gap: var(--s3); align-items: center; }
.cas-texte { padding-left: var(--s3); border-left: 2px solid var(--vert); }
.cas-texte h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 12px; max-width: 16ch; }
.cas-desc { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--encre); max-width: 36ch; }
/* Un lien par volet (2026-10-12) : vert = entreprise, prune = acheteur,
   comme les portes. Prune sur ivoire 5,6:1 ; blanc sur prune 6,0:1. */
.cas-lire { margin: var(--s2) 0 var(--s1); font-size: .9375rem; font-weight: 600; color: var(--encre-2); }
.cas-cotes { display: flex; flex-wrap: wrap; gap: var(--s1); }
.cas-pilule {
  display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--vert); border-radius: var(--r-btn);
  font-weight: 600; font-size: .9375rem; color: var(--vert); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.cas-pilule.buy { border-color: var(--prune); color: var(--prune); }
.cas-pilule svg { width: 16px; height: 16px; transition: transform .2s; }
.cas-pilule:hover { background: var(--vert); color: var(--blanc); }
.cas-pilule.buy:hover { background: var(--prune); color: var(--blanc); }
.cas-pilule:hover svg { transform: translateX(3px); }
.cas-visuel { position: relative; margin: 0; }
.cas-visuel::before {
  content: ""; position: absolute; inset: 8% 6% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4, 120, 87, .10), rgba(4, 120, 87, .04) 60%, transparent 100%);
}
.cas-visuel img {
  position: relative; display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 60% at 50% 52%, #000 62%, transparent 100%);
}
@media (min-width: 640px) {
  .c-carte { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5); }
  .cas-visuel img { max-width: 520px; }
}
@media (min-width: 768px) {
  .c-cas { padding: var(--s7) 0; }
  .cas-texte { padding-left: var(--s4); }
  .cas-desc { font-size: 1.125rem; }
}

/* ---- Accompagnements (design des cartes « Même règle, deux lectures »
   de l'accueil d'avant la refonte, demande du porteur 2026-10-09) ------- */
.c-accomp { background: var(--deg-nuit); padding: var(--s6) 0; }
.c-accomp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.c-offre {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 28px; border-radius: 22px; text-decoration: none; color: var(--blanc);
  background: rgba(16, 72, 56, .42); border: 1px solid rgba(167, 243, 208, .32);
  transition: transform .2s, border-color .2s, background-color .2s;
}
.c-offre:hover { color: var(--blanc); transform: translateY(-2px); border-color: rgba(167, 243, 208, .45); background: rgba(16, 72, 56, .62); }
.c-offre .k { font-family: var(--police-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; }
.c-offre.pme .k { color: var(--carte-k-pme); }
.c-offre.buy .k { color: var(--carte-k-buy); }
.c-offre .t { font-family: var(--police-titre); font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.c-offre .d { font-size: 1rem; line-height: 1.55; color: var(--carte-texte); }
.c-offre .go { display: inline-flex; align-items: center; gap: var(--s1); margin-top: auto; padding-top: var(--s2); font-weight: 600; }
.c-offre.pme .go { color: var(--vert-clair); }
.c-offre.buy .go { color: var(--carte-k-buy); }
.c-offre .go svg { width: 18px; height: 18px; transition: transform .2s; }
.c-offre:hover .go svg { transform: translateX(3px); }
@media (hover: none) { .c-offre:hover { transform: none; } }
@media (min-width: 768px) {
  .c-accomp { padding: var(--s7) 0; }
  .c-accomp ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .c-offre { padding: 36px; }
}

/* ---- Appel final et pied ---------------------------------------------- */
.c-final { padding: var(--s6) 0; }
.c-final .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s6); }
.c-final h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -.025em; max-width: 18ch; }
.c-final-act { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.c-final-note { margin: 0; padding-left: 4px; font-size: .9375rem; line-height: 1.5; color: var(--encre-2); }
.c-final-act .mail { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
@media (min-width: 768px) { .c-final { padding: var(--s7) 0; } }
.c-pied { border-top: 1px solid var(--filet); padding: var(--s4) 0 var(--s5); }
.c-pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); }
.c-pied p { margin: 0; max-width: 60ch; font-size: .875rem; line-height: 1.5; color: var(--encre-2); }
.c-pied nav { display: flex; flex-wrap: wrap; gap: 0 var(--s3); font-size: .9375rem; }
.c-pied nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .c-frise.pre .barre i { transform: none; }
}
