/* PH Solutions — feuille de style unique
   Charte : blanc dominant, bleu marine, gris très clair, formes arrondies, interfaces sobres (Pack 15). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --marine: #0B1F3A;
  --bleu: #2B4C80;
  --chevron: #8A9FC2;
  --ciel: #D5DEEC;
  --teinte: #E6ECF5;
  --gris: #F2F4F8;
  --ligne: #DDE3EC;
  --texte: #4A5568;
  --doux: #6B7689;
  --blanc: #FFFFFF;
  /* Touche de couleur secondaire (≈10 %) : le vert « connecté ».
     --vert : voyants et signaux graphiques uniquement (jamais pour du texte : contraste insuffisant)
     --vert-fonce : tout texte ou icône en vert (contraste AA sur blanc et sur --vert-pale)
     --vert-pale : fond des badges et coches */
  --vert: #22C55E;
  --vert-fonce: #15803D;
  --vert-pale: #DCFCE7;
  --vert-halo: rgba(34, 197, 94, .22);
  --hausse: #B4442F;
  --hausse-fond: #FBEDEA;
  --baisse: var(--vert-fonce);
  --baisse-fond: var(--vert-pale);

  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  --r-s: 10px;
  --ombre: 0 1px 2px rgba(11, 31, 58, .05), 0 10px 30px rgba(11, 31, 58, .07);
  --ombre-forte: 0 2px 4px rgba(11, 31, 58, .06), 0 24px 60px rgba(11, 31, 58, .14);
  --largeur: 1180px;
  --gouttiere: 24px;
  --entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--marine); text-decoration-color: var(--vert); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--marine); margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1.02rem; line-height: 1.35; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4, p, li, dd { overflow-wrap: anywhere; }
strong { color: var(--marine); font-weight: 700; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--vert-pale); color: var(--marine); }
/* Mot clé surligné : trait vert pâle sous la fin du mot, comme un marqueur */
.surligne { background: linear-gradient(transparent 64%, var(--vert-pale) 64%, var(--vert-pale) 92%, transparent 92%); padding: 0 .06em; }
.section--marine .surligne, .bandeau .surligne { background: none; color: var(--vert); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--marine); color: #fff; padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.evitement:focus { top: 12px; color: #fff; }
mark.a-completer { background: #FFF1C2; color: #6B4A00; border-radius: 6px; padding: 0 .3em; font-weight: 600; }

.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin: 0 auto; padding: 0 var(--gouttiere); }
.conteneur--etroit { max-width: calc(820px + 2 * var(--gouttiere)); }

/* ---------- Boutons, pastilles, textes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .85em 1.45em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  color: #fff; background: var(--marine); border: 1.5px solid var(--marine); border-radius: 999px;
  cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn::after { content: ""; width: 1em; height: 1em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s; }
.btn:hover::after { transform: translateX(3px); }
.btn--sans-fleche::after { display: none; }
.btn--secondaire { background: transparent; color: var(--marine); border-color: var(--ligne); }
.btn--secondaire:hover { background: var(--gris); color: var(--marine); border-color: var(--ciel); }
.btn--clair { background: #fff; color: var(--marine); border-color: #fff; }
.btn--clair:hover { background: var(--teinte); border-color: var(--teinte); color: var(--marine); }
.btn--contour-clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--contour-clair:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--petit { min-height: 44px; padding: .6em 1.15em; font-size: .94rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.pastille { display: inline-flex; align-items: center; gap: .5em; padding: .38em .95em; border: 1.5px solid var(--ligne); border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--marine); background: #fff; line-height: 1.3; }
.pastille--marine { background: var(--marine); color: #fff; border-color: var(--marine); }
.pastille--teinte { background: var(--teinte); border-color: var(--teinte); color: var(--bleu); }
/* Voyant « connecté » : point vert avec halo, légère pulsation uniquement dans l'en-tête des pages */
.pastille__point { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px var(--vert-halo); }
.heros .pastille__point, .heros-page .pastille__point { animation: voyant 2.6s ease-in-out infinite; }
@keyframes voyant { 0%, 100% { box-shadow: 0 0 0 3px var(--vert-halo); } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .08); } }
.voyant { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.surtitre { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--vert-fonce); }
.surtitre::before { content: ""; flex: none; width: 18px; height: 2px; border-radius: 2px; background: var(--vert); }
.entete-section--centre .surtitre, .centre .surtitre, .carte .surtitre { justify-content: center; }
.carte .surtitre { justify-content: flex-start; }
.chapeau { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--texte); max-width: 62ch; }
.legende { display: inline-block; padding: .55em 1.1em; background: #fff; border-radius: 999px; box-shadow: var(--ombre); color: var(--marine); font-weight: 700; font-size: .95rem; }
.note { font-size: .9rem; color: var(--doux); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.entete--defile { border-bottom-color: var(--ligne); }
.entete__barre { display: flex; align-items: center; gap: 24px; height: var(--entete); }
.entete__logo { flex: none; display: block; }
.entete__logo img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__liste { display: flex; gap: 4px; list-style: none; }
.nav__cta { white-space: nowrap; }
.nav__liste a { display: block; padding: .5em .75em; border-radius: 999px; color: var(--marine); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav__liste a:hover { background: var(--gris); }
.nav__liste a[aria-current="page"] { background: var(--vert-pale); color: var(--vert-fonce); }
.entete__menu { display: none; margin-left: auto; width: 48px; height: 48px; border: 1.5px solid var(--ligne); border-radius: 14px; background: #fff; cursor: pointer; position: relative; }
.entete__menu-icone, .entete__menu-icone::before, .entete__menu-icone::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--marine); border-radius: 2px; transition: transform .2s, opacity .2s; }
.entete__menu-icone { top: 50%; }
.entete__menu-icone::before { content: ""; top: -6px; }
.entete__menu-icone::after { content: ""; top: 6px; }
.entete__menu[aria-expanded="true"] .entete__menu-icone { background: transparent; }
.entete__menu[aria-expanded="true"] .entete__menu-icone::before { transform: translateY(6px) rotate(45deg); }
.entete__menu[aria-expanded="true"] .entete__menu-icone::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav__liste a { padding: .5em .55em; font-size: .9rem; }
  .nav { gap: 12px; }
}
@media (max-width: 1100px) {
  .entete__menu { display: block; }
  .nav { position: fixed; inset: var(--entete) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gouttiere) 28px; background: #fff; border-bottom: 1px solid var(--ligne); box-shadow: var(--ombre-forte); max-height: calc(100dvh - var(--entete)); overflow-y: auto; }
  .nav--ouverte { display: flex; }
  .nav__liste { flex-direction: column; gap: 2px; }
  .nav__liste a { padding: .85em 1em; font-size: 1.05rem; border-radius: var(--r-m); }
  .nav__cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 5vw + 32px, 112px) 0; }
.section--serree { padding: clamp(48px, 3vw + 24px, 72px) 0; }
.section--grise { background: var(--gris); }
.section--marine { background: var(--marine); color: var(--ciel); }
.section--marine h2, .section--marine h3, .section--marine strong { color: #fff; }
.section--marine .surtitre, .bandeau .surtitre, .carte--marine .surtitre { color: var(--vert); }
.section + .section:not(.section--grise):not(.section--marine) { padding-top: 0; }
.section--grise + .section--grise { padding-top: 0; }
.entete-section { max-width: 760px; margin-bottom: clamp(32px, 3vw, 52px); }
.entete-section h2 + p, .entete-section h1 + p { margin-top: 18px; }
.entete-section--centre { margin-left: auto; margin-right: auto; text-align: center; }
.entete-section--centre .chapeau { margin-left: auto; margin-right: auto; }

.grille { display: grid; gap: 20px; }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.duo--inverse > :first-child { order: 2; }
@media (max-width: 960px) {
  .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grille--3 { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo--inverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  :root { --gouttiere: 16px; --entete: 66px; }
  .grille--2, .grille--4 { grid-template-columns: minmax(0, 1fr); }
  .entete__logo img { width: 168px; }
  .btn { width: 100%; }
  .actions .btn { width: 100%; }
}

/* ---------- Cartes ---------- */
.carte { position: relative; background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--r-l); padding: clamp(22px, 2vw, 30px); }
.carte--grise { background: var(--gris); border-color: var(--gris); }
.carte--marine { background: var(--marine); border-color: var(--marine); color: var(--ciel); }
.carte--marine h3, .carte--marine strong { color: #fff; }
.carte h3 + p, .carte h3 + ul { margin-top: 10px; }
.carte p:last-child { margin-bottom: 0; }
.carte--large { grid-column: span 2; }
@media (max-width: 640px) { .carte--large { grid-column: auto; } }
.carte--lien { display: flex; flex-direction: column; text-decoration: none; color: var(--texte); transition: border-color .18s, box-shadow .18s, transform .18s; }
.carte--lien:hover { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale), var(--ombre); transform: translateY(-2px); color: var(--texte); }
.carte__suite { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--vert-fonce); display: inline-flex; gap: .4em; align-items: center; }
.carte__suite::after { content: "→"; transition: transform .18s; }
.carte--lien:hover .carte__suite::after { transform: translateX(4px); }
.icone { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--vert-pale); color: var(--vert-fonce); }
.carte--marine .icone { background: rgba(34,197,94,.16); color: var(--vert); }
.icone svg { width: 24px; height: 24px; }

.liste-puces { list-style: none; display: grid; gap: 10px; }
.liste-puces li { position: relative; padding-left: 22px; }
.liste-puces li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.liste-coches { list-style: none; display: grid; gap: 12px; }
.liste-coches li { position: relative; padding-left: 34px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 7px; background: var(--vert-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.section--marine .liste-coches li::before, .carte--marine .liste-coches li::before { background-color: rgba(34,197,94,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- Héros ---------- */
.heros { position: relative; overflow: hidden; padding: clamp(48px, 5vw, 88px) 0 clamp(56px, 6vw, 104px); }
.heros::before, .heros::after { content: ""; position: absolute; z-index: -1; top: 50%; width: 360px; height: 560px; border: 64px solid var(--gris); border-left: 0; border-bottom: 0; border-radius: 0 36px 0 0; }
.heros::before { left: -250px; transform: translateY(-50%) rotate(-135deg) scale(.8); }
.heros::after { right: -230px; transform: translateY(-50%) rotate(45deg) scale(.8); }
.heros__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.heros h1 { margin: 22px 0 22px; }
.heros .chapeau { margin-bottom: 32px; }
.heros__reassurance { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; list-style: none; font-size: .92rem; font-weight: 600; color: var(--marine); }
.heros__reassurance li { display: inline-flex; align-items: center; gap: 8px; }
.heros__reassurance li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--vert-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 960px) { .heros__grille { grid-template-columns: minmax(0, 1fr); } }

.heros-page { padding: clamp(44px, 4vw, 80px) 0 clamp(40px, 4vw, 72px); background: linear-gradient(180deg, var(--gris), #fff); }
.heros-page h1 { margin: 18px 0 20px; max-width: 18ch; }
.heros-page .chapeau { margin-bottom: 28px; }
.fil { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .86rem; color: var(--doux); }
.fil a { color: var(--doux); text-decoration: none; }
.fil a:hover { color: var(--marine); text-decoration: underline; }
.fil li + li::before { content: "/"; margin-right: 6px; color: var(--ligne); }

/* ---------- Maquettes d'interface (illustrations en HTML/CSS) ---------- */
.ui { font-size: 13px; line-height: 1.4; color: var(--texte); user-select: none; }
.ui-fenetre { background: #fff; border: 1px solid var(--ligne); border-radius: 18px; box-shadow: var(--ombre-forte); overflow: hidden; }
.ui-barre { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--ligne); background: #fff; }
.ui-points { display: flex; gap: 5px; }
.ui-points i { width: 9px; height: 9px; border-radius: 50%; background: var(--ligne); }
.ui-adresse { flex: 1; max-width: 300px; margin: 0 auto; padding: 4px 12px; border-radius: 999px; background: var(--gris); font-size: 11.5px; color: var(--doux); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-titre { font-weight: 700; color: var(--marine); font-size: 12px; }
.ui-corps { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 340px; }
.ui-lateral { background: var(--gris); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.ui-lateral .ui-marque { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-weight: 800; color: var(--marine); font-size: 12.5px; }
.ui-monogramme { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--marine); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: -.02em; }
.ui-lateral span { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; font-weight: 600; color: var(--texte); white-space: nowrap; }
.ui-lateral span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--ciel); flex: none; }
.ui-lateral span.actif { background: #fff; color: var(--marine); box-shadow: 0 1px 2px rgba(11,31,58,.06); }
.ui-lateral .ui-monogramme { display: grid; padding: 0; color: #fff; border-radius: 7px; }
.ui-lateral .ui-monogramme::before { display: none; }
.ui-lateral span.actif::before { background: var(--vert); }
.ui-kpi strong.ok { color: var(--vert-fonce); }
.ui-principal { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ui-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui-entete b { font-size: 15px; color: var(--marine); }
.ui-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--marine); color: #fff; font-weight: 700; font-size: 11px; white-space: nowrap; }
.ui-badge--clair { background: var(--teinte); color: var(--bleu); }
.ui-badge--vert { background: var(--baisse-fond); color: var(--baisse); }
.ui-badge--rouge { background: var(--hausse-fond); color: var(--hausse); }
.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ui-kpi { border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px; }
.ui-kpi small { display: block; font-size: 11px; color: var(--doux); }
.ui-kpi strong { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 2px; }
.ui-kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--baisse); }
.ui-deux { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.ui-bloc { border: 1px solid var(--ligne); border-radius: 12px; padding: 12px; min-width: 0; }
.ui-bloc > b { display: block; font-size: 12px; color: var(--marine); margin-bottom: 8px; }
.ui-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--gris); white-space: nowrap; }
.ui-ligne:first-of-type { border-top: 0; }
.ui-ligne span { overflow: hidden; text-overflow: ellipsis; }
.ui-barres { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding-top: 6px; }
.ui-barres i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--ciel); }
.ui-barres i:nth-child(5), .ui-barres i:nth-child(6) { background: var(--bleu); }
.ui-barres i:last-child { background: var(--vert); }

.ui-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ui-table th { text-align: left; font-weight: 600; color: var(--doux); font-size: 11px; padding: 7px 10px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.ui-table td { padding: 9px 10px; border-bottom: 1px solid var(--gris); white-space: nowrap; color: var(--marine); }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table td.num, .ui-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ui-ecart { display: inline-block; min-width: 68px; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11.5px; text-align: center; }
.ui-ecart--hausse { background: var(--hausse-fond); color: var(--hausse); }
.ui-ecart--baisse { background: var(--baisse-fond); color: var(--baisse); }
.ui-ecart--egal { background: var(--gris); color: var(--doux); }
.ui-defile { overflow-x: auto; }

.illustration { position: relative; }
.illustration .legende { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); white-space: nowrap; }
.illustration--flottante .ui-fenetre { transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 960px) { .illustration--flottante .ui-fenetre { transform: none; } }
@media (max-width: 560px) {
  .ui-corps { grid-template-columns: minmax(0, 1fr); }
  .ui-lateral { display: none; }
  .ui-deux { grid-template-columns: minmax(0, 1fr); }
  .ui-kpi strong { font-size: 17px; }
  .illustration .legende { position: relative; left: auto; bottom: auto; transform: none; display: table; margin: -14px auto 0; white-space: normal; text-align: center; max-width: 90%; }
  .ui-principal { padding: 14px 12px; }
  .ui-table { font-size: 11.5px; }
  .ui-table th, .ui-table td { padding: 7px 4px; }
  .ui-table th { white-space: normal; }
  .ui-table td:first-child { white-space: normal; }
  .ui-ecart { min-width: 0; padding: 2px 6px; }
}

/* Circuit de validation */
.circuit { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 0; }
.circuit__etape { background: var(--gris); border-radius: 14px; padding: 14px; min-width: 0; }
.circuit__etape b { display: block; color: var(--marine); font-size: 13.5px; margin-top: 8px; }
.circuit__etape small { color: var(--doux); font-size: 11.5px; }
.circuit__etape--fin { background: var(--marine); }
.circuit__etape--fin b { color: #fff; }
.circuit__etape--fin small { color: var(--ciel); }
.circuit__num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--marine); color: #fff; font-weight: 800; font-size: 11px; }
.circuit__etape--fin .circuit__num { background: var(--vert); color: var(--marine); }
.circuit__trait { width: 28px; height: 3px; border-radius: 3px; background: var(--bleu); }
@media (max-width: 560px) {
  .circuit { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .circuit__trait { width: 3px; height: 16px; margin: 0 auto; }
}

/* Téléphone (application) */
.telephone { width: 270px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 40px; background: var(--marine); box-shadow: var(--ombre-forte); }
.telephone__ecran { border-radius: 31px; background: #fff; overflow: hidden; min-height: 500px; display: flex; flex-direction: column; }
.telephone__haut { padding: 16px 18px 12px; background: var(--gris); }
.telephone__haut small { display: block; color: var(--doux); font-size: 11px; }
.telephone__haut b { color: var(--marine); font-size: 15px; }
.telephone__corps { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.champ-ui { border: 1px solid var(--ligne); border-radius: 11px; padding: 8px 11px; }
.champ-ui small { display: block; font-size: 10.5px; color: var(--doux); }
.champ-ui span { color: var(--marine); font-weight: 600; font-size: 12.5px; }
.photos-ui { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos-ui i { aspect-ratio: 1; border-radius: 9px; background: linear-gradient(135deg, var(--ciel), var(--teinte)); }
.photos-ui i:last-child { background: var(--gris); border: 1.5px dashed var(--ciel); }
.bouton-ui { margin-top: auto; padding: 11px; border-radius: 12px; background: var(--marine); color: #fff; font-weight: 700; text-align: center; font-size: 13px; }

/* ---------- Bénéfices, étapes, chiffres ---------- */
.benefice h3 { margin-bottom: 8px; }
.etapes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: etape; }
.etape { position: relative; background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--r-l); padding: 26px 24px; }
.section--grise .etape { border-color: #fff; }
.etape__num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--marine); color: var(--vert); font-weight: 800; font-size: 1rem; }
.etape { transition: border-color .18s; }
.etape:hover { border-color: var(--vert); }
.section--grise .etape:hover { border-color: var(--vert); }
.etape h3 { margin-bottom: 8px; }
.etape p { margin: 0; font-size: .98rem; }
.etape__livrable { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: .88rem; color: var(--doux); }
.etape__livrable strong { color: var(--vert-fonce); }
@media (max-width: 1020px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .etapes { grid-template-columns: minmax(0, 1fr); } }

/* Frise 12 semaines */
.frise { display: grid; grid-template-columns: 3fr 4fr 3fr 2fr; gap: 6px; }
.frise__phase { border-radius: var(--r-m); padding: 18px; background: #fff; border: 1.5px solid var(--ligne); }
.frise__phase small { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--vert-fonce); }
.frise__phase { border-top: 4px solid var(--vert); }
.frise__phase b { display: block; font-size: 1.15rem; color: var(--marine); margin: 4px 0 6px; }
.frise__phase p { margin: 0; font-size: .93rem; }
.frise__phase:nth-child(2) { background: var(--teinte); border-color: var(--teinte); }
.frise__phase:nth-child(4) { background: var(--marine); border-color: var(--marine); color: var(--ciel); }
.frise__phase:nth-child(4) b { color: #fff; }
.frise__phase:nth-child(4) small { color: var(--vert); }
@media (max-width: 860px) { .frise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .frise { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tableaux ---------- */
.tableau-conteneur { border: 1.5px solid var(--ligne); border-radius: var(--r-m); overflow-x: auto; background: #fff; }
.tableau { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
.tableau th { background: var(--marine); color: #fff; text-align: left; padding: 14px 18px; font-weight: 700; white-space: nowrap; }
.tableau td { padding: 14px 18px; border-top: 1px solid var(--ligne); vertical-align: top; }
.tableau tr:nth-child(even) td { background: var(--gris); }
.tableau td:first-child { color: var(--marine); font-weight: 700; }

/* Avant / après */
.avant-apres { display: grid; gap: 10px; }
.avant-apres__ligne { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; gap: 10px; }
.avant-apres__avant, .avant-apres__apres { padding: 16px 20px; border-radius: var(--r-m); display: flex; align-items: center; }
.avant-apres__avant { background: #fff; border: 1.5px dashed var(--ciel); color: var(--texte); }
.avant-apres__apres { background: var(--marine); color: #fff; font-weight: 700; gap: 10px; }
.avant-apres__apres::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.avant-apres__fleche { display: grid; place-items: center; color: var(--bleu); font-weight: 800; font-size: 1.3rem; }
.avant-apres__titres { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 10px; margin-bottom: 4px; }
.avant-apres__titres span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); padding-left: 4px; }
.avant-apres__titres span:last-child { color: var(--vert-fonce); }
.avant-apres__fleche { color: var(--vert-fonce) !important; }
@media (max-width: 640px) {
  .avant-apres__ligne { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 8px; }
  .avant-apres__fleche { transform: rotate(90deg); height: 22px; }
  .avant-apres__titres { display: none; }
  .avant-apres__avant { display: block; }
  .avant-apres__avant::before { content: "Aujourd’hui"; display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); margin-bottom: 2px; }
}

/* ---------- Vidéos ---------- */
.video { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--gris); aspect-ratio: 16 / 9; box-shadow: var(--ombre); }
.video video, .video img { width: 100%; height: 100%; object-fit: cover; }
.video__lecture { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.video__lecture span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--marine); box-shadow: 0 10px 30px rgba(11,31,58,.3); transition: transform .2s, background .2s; }
.video__lecture span::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video__lecture span { box-shadow: 0 0 0 6px rgba(34,197,94,.35), 0 10px 30px rgba(11,31,58,.3); }
.video__lecture:hover span { transform: scale(1.06); background: var(--bleu); box-shadow: 0 0 0 9px rgba(34,197,94,.4), 0 10px 30px rgba(11,31,58,.3); }
.video__duree { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(11,31,58,.82); color: #fff; font-size: .8rem; font-weight: 700; }
.video-carte h3 { margin: 18px 0 6px; }
.video-carte p { margin: 0; font-size: .97rem; }

/* ---------- Démos guidées (remplacent les vidéos) ----------
   Une scène de 880×520 px, mise à l'échelle par JavaScript (--e) pour tenir dans la largeur disponible. */
.demo { border: 1.5px solid var(--ligne); border-radius: var(--r-xl); background: #fff; box-shadow: var(--ombre); overflow: hidden; }
.demo__onglets { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--ligne); overflow-x: auto; scrollbar-width: none; }
.demo__onglet { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border: 1.5px solid var(--ligne); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; font-weight: 700; color: var(--marine); cursor: pointer; transition: all .15s; }
.demo__onglet:hover { border-color: var(--vert); }
.demo__onglet[aria-selected="true"] { background: var(--marine); border-color: var(--marine); color: #fff; }
.demo__onglet[aria-selected="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.demo__ecran { position: relative; background: var(--gris); padding: 16px; height: calc(520px * var(--e, 1) + 32px); overflow: hidden; }
.demo__cadre { position: relative; width: 880px; height: 520px; transform: scale(var(--e, 1)); transform-origin: top left; }
.demo__scene { position: absolute; inset: 0; }
.demo__barre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; padding: 16px 20px 18px; border-top: 1px solid var(--ligne); }
.demo__chapitres { grid-column: 1 / -1; display: flex; gap: 6px; }
.demo__chapitre { flex: 1; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--gris); cursor: pointer; position: relative; overflow: hidden; }
.demo__chapitre::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--vert); border-radius: 6px; }
.demo__chapitre:hover { background: var(--ciel); }
.demo__legende { min-width: 0; }
.demo__num { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vert-fonce); }
.demo__legende strong { display: block; font-size: 1.05rem; margin: 2px 0 2px; }
.demo__legende p { margin: 0; font-size: .95rem; color: var(--texte); }
.demo__ctrl { display: flex; gap: 8px; }
.demo__bouton { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ligne); background: #fff; color: var(--marine); cursor: pointer; transition: all .15s; }
.demo__bouton:hover { border-color: var(--vert); background: var(--vert-pale); }
.demo__bouton--principal { background: var(--marine); border-color: var(--marine); color: #fff; }
.demo__bouton--principal:hover { background: var(--bleu); border-color: var(--bleu); }
.demo__bouton svg { width: 18px; height: 18px; }
.demo__note { padding: 0 20px 16px; margin: -6px 0 0; font-size: .8rem; color: var(--doux); }
.demo__fin { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(11,31,58,.78); color: #fff; text-align: center; padding: 20px; }
.demo__fin b { font-size: 26px; }
.demo__fin .btn { font-size: 15px; }
@media (max-width: 640px) {
  .demo__barre { padding: 14px; }
  .demo__legende p { font-size: .88rem; }
  .demo__ecran { padding: 8px; height: calc(520px * var(--e, 1) + 16px); }
}

/* Mode compact (téléphone) */
.demo--compact .demo__cadre { width: 560px; }
.demo--compact .d-app { grid-template-columns: minmax(0, 1fr); }
.demo--compact .d-app .ui-lateral, .demo--compact .d-recherche { display: none; }
.demo--compact .d-avatar { margin-left: auto; }
.demo--compact .ui-table { font-size: 11.5px; }
.demo--compact .ui-table th, .demo--compact .ui-table td { padding: 7px 5px; }
.demo--compact .ui-table th:first-child, .demo--compact .ui-table td:first-child { display: none; }
.demo--compact .d-panneau { width: 270px; }
.demo--compact .d-planning { grid-template-columns: 70px repeat(5, minmax(0, 1fr)); }
.demo--compact .d-pers i { display: none; }
.demo--compact .d-bloc { font-size: 10px; padding: 4px 5px; }
.demo--compact .d-tel { right: 12px; transform: scale(.9); transform-origin: top right; }
.demo--compact .d-flux .d-noeud { margin: 0 5px; padding: 8px; }
.demo--compact .d-grille2 .d-ligne, .demo--compact .d-ligne { font-size: 11px; }

/* Interface simulée à l'intérieur de la scène */
.d-app { display: grid; grid-template-columns: 168px minmax(0, 1fr); height: 520px; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(11,31,58,.05), 0 14px 40px rgba(11,31,58,.08); position: relative; }
.d-app .ui-lateral { padding-top: 12px; }
.d-main { display: flex; flex-direction: column; min-width: 0; position: relative; }
.d-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--ligne); flex: none; }
.d-fil { font-weight: 700; color: var(--marine); font-size: 13px; }
.d-fil span { color: var(--doux); font-weight: 500; }
.d-recherche { margin-left: auto; width: 190px; padding: 6px 12px; border-radius: 999px; background: var(--gris); color: var(--doux); font-size: 12px; }
.d-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--marine); color: #fff; font-size: 10.5px; font-weight: 800; position: relative; }
.d-avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--vert); border: 2px solid #fff; }
.d-contenu { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; flex: 1; }
.d-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-titre b { font-size: 16px; color: var(--marine); }
.d-titre small { display: block; color: var(--doux); font-size: 11.5px; font-weight: 500; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; background: var(--marine); color: #fff; font-weight: 700; font-size: 12px; white-space: nowrap; transition: transform .12s, background .2s; }
.d-btn--clair { background: #fff; color: var(--marine); border: 1px solid var(--ligne); }
.d-btn--vert { background: var(--vert); color: var(--marine); }
.d-presse { transform: scale(.94); }
.d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-kpi { border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 12px; }
.d-kpi small { display: block; color: var(--doux); font-size: 11px; }
.d-kpi strong { display: block; font-size: 20px; letter-spacing: -.02em; color: var(--marine); font-variant-numeric: tabular-nums; }
.d-kpi em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--vert-fonce); }
.d-kpi--alerte strong { color: var(--hausse); }
.d-carte { border: 1px solid var(--ligne); border-radius: 12px; padding: 12px; }
.d-carte > b { display: block; color: var(--marine); font-size: 12.5px; margin-bottom: 8px; }
.d-prog { height: 6px; border-radius: 6px; background: var(--gris); overflow: hidden; }
.d-prog i { display: block; height: 100%; width: 0; background: var(--vert); border-radius: 6px; transition: width .3s; }
.d-cache { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.d-visible { opacity: 1; transform: none; }
.ui-table tr { transition: background .25s; }
.ui-table tr.d-sel td { background: var(--vert-pale); }
.d-nouveau { animation: d-flash 1.4s ease-in-out 2; }
@keyframes d-flash { 50% { background: var(--vert-pale); } }
.d-panneau { position: absolute; top: 46px; right: 0; bottom: 0; width: 300px; background: #fff; border-left: 1px solid var(--ligne); box-shadow: -14px 0 30px rgba(11,31,58,.08); padding: 16px; display: flex; flex-direction: column; gap: 12px; transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); z-index: 5; }
.d-panneau.d-ouvert { transform: none; }
.d-courbe path, .d-courbe polyline { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s ease; }
.d-courbe.d-trace path, .d-courbe.d-trace polyline { stroke-dashoffset: 0; }
.d-toast { position: absolute; left: 18px; bottom: 18px; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--marine); color: #fff; font-weight: 700; font-size: 12.5px; box-shadow: 0 14px 30px rgba(11,31,58,.25); opacity: 0; transform: translateY(12px); transition: all .35s; }
.d-toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
.d-toast.d-visible { opacity: 1; transform: none; }
.d-champ { border: 1px solid var(--ligne); border-radius: 10px; padding: 7px 11px; min-height: 48px; }
.d-champ small { display: block; font-size: 10.5px; color: var(--doux); }
.d-champ span { color: var(--marine); font-weight: 600; font-size: 13px; }
.d-champ--actif { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale); }
.d-caret::after { content: "|"; margin-left: 1px; color: var(--vert-fonce); animation: d-caret 1s steps(1) infinite; }
@keyframes d-caret { 50% { opacity: 0; } }
.d-grille2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.d-grille3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-liste { display: flex; flex-direction: column; gap: 6px; }
.d-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--gris); font-size: 12px; color: var(--marine); }
.d-ligne b { font-weight: 700; }
.d-ligne .ui-badge { margin-left: auto; }
.d-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--vert-pale); color: var(--vert-fonce); font-weight: 700; font-size: 11px; }
.d-pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); }
.d-pastille--attente { background: var(--teinte); color: var(--bleu); }
.d-pastille--attente::before { background: var(--bleu); }
.d-pastille--alerte { background: var(--hausse-fond); color: var(--hausse); }
.d-pastille--alerte::before { background: var(--hausse); }
/* Circuit (démo validation) */
.d-flux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; position: relative; }
.d-noeud { margin: 0 8px; border: 1.5px solid var(--ligne); border-radius: 12px; padding: 10px; background: #fff; position: relative; transition: border-color .3s, background .3s; }
.d-noeud small { display: block; color: var(--doux); font-size: 10.5px; }
.d-noeud b { display: block; color: var(--marine); font-size: 12.5px; }
.d-noeud .d-pastille { margin-top: 8px; }
.d-noeud.d-actif { border-color: var(--vert); box-shadow: 0 0 0 3px var(--vert-pale); }
.d-noeud.d-fait { background: var(--vert-pale); border-color: var(--vert-pale); }
.d-noeud + .d-noeud::before { content: ""; position: absolute; left: -17px; top: 50%; width: 18px; height: 2px; background: var(--ligne); }
.d-noeud.d-fait + .d-noeud::before, .d-noeud.d-actif::before { background: var(--vert); }
.d-regle { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 10px; background: var(--gris); font-size: 12px; color: var(--marine); }
.d-regle code { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; background: #fff; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--ligne); }
.d-tel { position: absolute; right: 26px; top: 64px; width: 210px; padding: 8px; border-radius: 30px; background: var(--marine); box-shadow: 0 20px 40px rgba(11,31,58,.3); z-index: 6; }
.d-tel__ecran { border-radius: 23px; background: var(--gris); padding: 34px 10px 14px; min-height: 340px; display: flex; flex-direction: column; gap: 8px; }
.d-tel__heure { text-align: center; font-size: 30px; font-weight: 800; color: var(--marine); margin-bottom: 6px; }
.d-notif { background: #fff; border-radius: 14px; padding: 10px; font-size: 11.5px; color: var(--marine); box-shadow: 0 4px 12px rgba(11,31,58,.08); }
.d-notif small { display: flex; align-items: center; gap: 6px; color: var(--doux); font-size: 10px; margin-bottom: 4px; }
.d-notif small::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--marine); }
.d-notif .d-grille2 { margin-top: 8px; gap: 6px; }
.d-notif .d-btn { justify-content: center; padding: 6px; font-size: 11px; }
/* Synchronisation (démo saisie unique) */
.d-sync { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--doux); }
.d-roue { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ciel); border-top-color: var(--vert); animation: d-tourne .8s linear infinite; }
@keyframes d-tourne { to { transform: rotate(360deg); } }
.d-menu { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 10px 24px rgba(11,31,58,.1); padding: 4px; z-index: 4; }
.d-menu div { padding: 7px 10px; border-radius: 7px; font-size: 12px; color: var(--marine); }
.d-menu div:first-child { background: var(--vert-pale); }
.d-facture { border: 1px solid var(--ligne); border-radius: 12px; padding: 14px; font-size: 11.5px; color: var(--texte); background: #fff; }
.d-facture table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.d-facture td { padding: 4px 0; border-bottom: 1px solid var(--gris); }
.d-facture td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--marine); }
/* Planning */
.d-planning { display: grid; grid-template-columns: 92px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 11px; position: relative; }
.d-planning > div { min-height: 62px; border-radius: 8px; background: var(--gris); position: relative; }
.d-planning .d-entete { min-height: auto; background: none; font-weight: 700; color: var(--doux); padding: 2px 4px; }
.d-planning .d-pers { background: none; display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--marine); min-height: 62px; }
.d-pers i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teinte); color: var(--bleu); font-style: normal; font-size: 9.5px; font-weight: 800; }
.d-bloc { position: absolute; inset: 4px; border-radius: 7px; background: var(--marine); color: #fff; padding: 5px 7px; font-weight: 700; line-height: 1.25; transition: transform .8s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s; z-index: 2; }
.d-bloc small { display: block; font-weight: 500; color: var(--ciel); font-size: 10px; }
.d-bloc--clair { background: var(--teinte); color: var(--marine); }
.d-bloc--clair small { color: var(--bleu); }
.d-bloc--vert { background: var(--vert-pale); color: var(--vert-fonce); box-shadow: inset 0 0 0 1.5px var(--vert); }
.d-bloc--vert small { color: var(--vert-fonce); }
.d-bloc--prise { box-shadow: 0 12px 24px rgba(11,31,58,.3); z-index: 3; }
.d-alerte { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--hausse-fond); color: #7A2A1B; font-size: 12px; }
.d-alerte b { color: var(--hausse); }
/* Curseur */
.d-curseur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 40; pointer-events: none; transition: transform .75s cubic-bezier(.45,.05,.2,1); filter: drop-shadow(0 2px 3px rgba(11,31,58,.35)); }
.d-curseur::after { content: ""; position: absolute; left: -9px; top: -9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--vert); opacity: 0; transform: scale(.4); }
.d-curseur.d-clic::after { animation: d-clic .45s ease-out; }
@keyframes d-clic { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.8); } }

/* ---------- Bandeau d'appel ---------- */
.bandeau { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--marine); color: var(--ciel); padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.bandeau { border-bottom: 4px solid var(--vert); }
.bandeau::after { content: ""; position: absolute; right: -60px; top: 50%; width: 220px; height: 220px; border: 44px solid rgba(34,197,94,.14); border-left: 0; border-bottom: 0; border-radius: 0 26px 0 0; transform: translateY(-50%) rotate(45deg); }
.bandeau h2 { color: #fff; }
.bandeau p { margin: 16px 0 0; max-width: 54ch; }
.bandeau .actions { position: relative; z-index: 1; justify-content: flex-end; }
.bandeau__infos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .92rem; font-weight: 600; color: #fff; }
.bandeau__infos li::before { content: "✓"; margin-right: 7px; color: var(--vert); }
@media (max-width: 860px) { .bandeau { grid-template-columns: minmax(0, 1fr); } .bandeau .actions { justify-content: flex-start; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--r-m); }
.section--grise .faq details { border-color: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 700; color: var(--marine); }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { border-color: var(--vert); }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; background: var(--vert-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Prose (pages légales) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose .carte { margin: 1.4em 0; }

/* ---------- Formulaire de demande ---------- */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grille { grid-template-columns: minmax(0, 1fr); } }
.formulaire { background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--r-xl); padding: clamp(22px, 3.2vw, 44px); box-shadow: var(--ombre); }
.progression { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; counter-reset: p; }
.progression li { position: relative; padding-top: 14px; font-size: .84rem; font-weight: 700; color: var(--doux); }
.progression li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: var(--gris); transition: background .25s; }
.progression li.actif::before { background: var(--marine); }
.progression li.fait::before { background: var(--vert); }
.progression li.actif { color: var(--marine); }
.progression li span { display: block; font-size: .74rem; font-weight: 600; color: var(--doux); }
.etape-form { border: 0; margin: 0; padding: 0; min-width: 0; }
.etape-form[hidden] { display: none; }
.etape-form legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--marine); }
.etape-form > p.aide { margin: 0 0 26px; color: var(--doux); }
.groupe { margin-bottom: 26px; }
.groupe > .etiquette, .champ > label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--marine); font-size: .98rem; }
.etiquette small, .champ label small { font-weight: 500; color: var(--doux); }
.choix { display: grid; gap: 10px; }
.choix--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .choix--2 { grid-template-columns: minmax(0, 1fr); } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option__boite { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px 18px; border: 1.5px solid var(--ligne); border-radius: var(--r-m); background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.option__boite::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--ciel); border-radius: 6px; background: #fff center / 12px no-repeat; transition: background-color .15s, border-color .15s; }
.option input[type="radio"] + .option__boite::before { border-radius: 50%; }
.option input:checked + .option__boite { border-color: var(--marine); background: var(--gris); box-shadow: inset 0 0 0 1px var(--marine); }
.option input:checked + .option__boite::before { border-color: var(--marine); background-color: var(--marine); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.option input:focus-visible + .option__boite { outline: 3px solid var(--bleu); outline-offset: 2px; }
.option__boite b { display: block; color: var(--marine); }
.option__boite small { display: block; color: var(--doux); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.puces-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.puce span { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border: 1.5px solid var(--ligne); border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--marine); background: #fff; transition: all .15s; }
.puce input:checked + span { background: var(--marine); border-color: var(--marine); color: #fff; }
.puce input:checked + span::before { content: "✓"; font-weight: 800; }
.puce input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 560px) { .champs { grid-template-columns: minmax(0, 1fr); } }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--marine);
  background: #fff; border: 1.5px solid var(--ligne); border-radius: var(--r-m); transition: border-color .15s, box-shadow .15s; }
.champ textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.champ select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4C80' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--ciel); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 4px var(--teinte); }
.champ input::placeholder, .champ textarea::placeholder { color: #9AA4B5; }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--hausse); }
.erreur { display: block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--hausse); }
.erreur:empty { display: none; }
.requis { color: var(--hausse); }
.consentement { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.consentement input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--marine); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.form-actions .btn--secondaire { order: -1; }
.form-actions .note { margin: 0; }
@media (max-width: 560px) { .form-actions { flex-direction: column-reverse; align-items: stretch; } .form-actions .btn--secondaire { order: 0; } }
.pot-de-miel { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.recap { background: var(--gris); border-radius: var(--r-m); padding: 18px 20px; margin-bottom: 22px; font-size: .94rem; }
.recap dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.recap dt { font-weight: 700; color: var(--marine); }
.recap dd { margin: 0; }
.alerte { padding: 16px 18px; border-radius: var(--r-m); background: var(--hausse-fond); color: #7A2A1B; font-weight: 600; margin-top: 18px; }
.alerte[hidden] { display: none; }
.alerte .btn { margin-top: 12px; }
.succes { text-align: center; padding: clamp(12px, 3vw, 28px) 0; }
.succes__icone { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: var(--baisse-fond); color: var(--baisse); }
.succes h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 12px; }
.succes ol { text-align: left; max-width: 480px; margin: 24px auto 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.succes ol li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--gris); border-radius: var(--r-m); padding: 14px; }
.succes ol li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--marine); color: #fff; font-weight: 800; }
.succes__icone { box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.aside-contact { display: grid; gap: 16px; position: sticky; top: calc(var(--entete) + 20px); }
.aside-contact .carte h3 { margin-bottom: 10px; }
.coordonnee { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--ligne); color: var(--marine); font-weight: 700; text-decoration: none; word-break: break-word; }
.coordonnee:first-of-type { border-top: 0; }
.coordonnee .icone { width: 40px; height: 40px; margin: 0; border-radius: 12px; flex: none; }
.coordonnee:hover .icone { background: var(--vert); color: var(--marine); }
.coordonnee .icone svg { width: 20px; height: 20px; }
.coordonnee small { display: block; font-weight: 500; color: var(--doux); font-size: .84rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine); color: var(--ciel); padding: clamp(56px, 5vw, 80px) 0 28px; font-size: .96rem; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pied__marque img { width: 200px; margin-bottom: 18px; }
.pied__marque p { max-width: 36ch; margin-bottom: 22px; }
.pied .voyant { color: #fff; margin-bottom: 18px; }
.pied__titre { margin: 0 0 14px; font-weight: 800; color: var(--vert); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.pied { border-top: 4px solid var(--vert); }
.pied ul { list-style: none; display: grid; gap: 9px; }
.pied a { color: var(--ciel); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied a.btn--clair, .pied a.btn--clair:hover { color: var(--marine); text-decoration: none; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(213,222,236,.16); font-size: .88rem; }
.pied__bas p { margin: 0; }
@media (max-width: 960px) { .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied__marque { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Divers ---------- */
.separateur-haut { margin-top: clamp(40px, 4vw, 64px); }
.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.plan-site { columns: 2; column-gap: 40px; }
.plan-site li { break-inside: avoid; margin: .35em 0; }
@media (max-width: 560px) { .plan-site { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .entete, .pied, .bandeau, .video { display: none !important; }
  body { font-size: 11pt; }
}
