/* Maquette « logiciel en ligne » v6 · inspirée d'Harmonic et d'Axial · 2026-10-08 */

@font-face {
  font-family: "Inter Diligeo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Diligeo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("/fonts/inter-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: "Geist Mono Diligeo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/geist-mono-variable.woff2") format("woff2-variations"), url("/fonts/geist-mono-variable.woff2") format("woff2");
}

:root {
  --fond: #f5f6fa;
  --blanc: #ffffff;
  --line: #e3e5ec;
  --line-2: #d3d6df;
  --ink: #16181d;
  --ink-2: #4f5562;
  --ink-3: #6b7280;
  --sombre: #111317;
  --sombre-2: #1b1e24;
  --dep: #e7e9ef;
  --pt: #9aa0ad;
  --font: "Inter Diligeo", "Segoe UI", Arial, sans-serif;
  --mono: "Geist Mono Diligeo", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent: #2350d8; --accent-2: #1b42b8; --on-accent: #ffffff; --accent-soft: #e8eefc; --accent-text: #2350d8;
}
:root[data-couleur="ambre"] { --accent: #f5a623; --accent-2: #e0921a; --on-accent: #1a1306; --accent-soft: #fff1d6; --accent-text: #9a5b00; }
:root[data-couleur="vert"] { --accent: #1d7a5a; --accent-2: #166249; --on-accent: #ffffff; --accent-soft: #e2f2eb; --accent-text: #17654a; }
:root[data-couleur="corail"] { --accent: #ee5a3c; --accent-2: #d84b2e; --on-accent: #1a0d0a; --accent-soft: #fde7e1; --accent-text: #c23d22; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--blanc); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -0.011em;
  font-optical-sizing: auto; font-feature-settings: "cv11" 1;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.centre { text-align: center; }

/* Navigation en pilule */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 30px -12px rgba(22, 24, 29, 0.18);
}
.brand { font-weight: 680; letter-spacing: -0.035em; font-size: 19px; text-decoration: none; margin-right: auto; }
.nav-pilule ul { display: flex; gap: 2px; }
.nav-pilule a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.nav-pilule a:hover { background: var(--fond); color: var(--ink); }
@media (max-width: 960px) { .nav-pilule { display: none; } }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--action, var(--accent)); color: var(--on-accent); text-decoration: none;
  font-size: 15.5px; font-weight: 580; letter-spacing: -0.012em;
  transition: background-color 150ms ease, transform 90ms ease-out, color 300ms ease;
}
.btn:hover { background: var(--action-2, var(--accent-2)); }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-sombre { background: var(--ink); color: #fff; }
.btn-sombre:hover { background: #2a2d34; }
.btn-blanc { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-blanc:hover { background: var(--fond); }
.btn-grand { min-height: 56px; padding: 14px 30px; font-size: 17px; }

/* Hero : titre centré sur une trame éclairée */
.hero { position: relative; overflow: hidden; background: var(--fond); padding: 190px 0 150px; text-align: center; }
.trame { position: absolute; inset: 0; pointer-events: none; }
.trame::after {
  content: ""; position: absolute; left: 50%; top: 46%; width: 820px; height: 420px; z-index: 1; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(245, 246, 250, 0.82) 0%, rgba(245, 246, 250, 0.55) 38%, rgba(245, 246, 250, 0) 70%);
  animation: lueur 1800ms var(--ease) both;
}
@keyframes lueur { from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.hero-in { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
h1 { font-size: clamp(42px, 4.6vw + 14px, 80px); line-height: 1.02; font-weight: 560; letter-spacing: -0.042em; text-wrap: balance; animation: monte 900ms var(--ease) 150ms both; }
.sous { margin: 22px auto 0; font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.5; color: var(--ink-2); max-width: 40ch; animation: monte 900ms var(--ease) 260ms both; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; animation: monte 900ms var(--ease) 360ms both; }
@keyframes monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Panneaux de couleur, texturés de courbes de niveau */
.panneau {
  position: relative; border-radius: 28px; padding: 44px;
  background-color: var(--panneau, var(--accent));
  background-image: url("/site/relief.svg?v=2");
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px -36px rgba(22, 24, 29, 0.45);
  transition: background-color 300ms ease;
}
.produit { background: linear-gradient(var(--fond) 0 120px, var(--blanc) 120px); padding: 0 28px 120px; margin-top: -90px; }
.panneau-large { max-width: 1280px; margin: 0 auto; padding: 36px; }

/* Application (carte + liste) */
.scene { position: relative; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.4); }
.carte-head { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.seg { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 999px; background: #eef0f4; flex: none; }
.seg-opt { border: 0; background: transparent; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 540; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.seg-opt[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.compteur { font-size: 14px; color: var(--ink-2); min-width: 0; }
.compteur b { color: var(--ink); font-size: 15px; font-weight: 600; }
.filtre { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.rejouer { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.rejouer:hover { background: var(--fond); }
.rejouer svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.corps { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.carte { position: relative; border-right: 1px solid var(--line); padding: 8px 8px 0; }
.pts { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 520; overflow: visible; }
.carte-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 10px 14px; font-size: 13px; color: var(--ink-2); }
.lg { display: inline-block; width: 10px; height: 10px; margin-right: -10px; vertical-align: -1px; }
.lg-pt { width: 6px; height: 6px; border-radius: 50%; background: var(--pt); vertical-align: 1px; }
.lg-a { border-radius: 50%; background: var(--accent); }
.lg-p { background: var(--ink); transform: rotate(45deg) scale(0.8); }
.lg-f { border-radius: 50%; border: 2.5px solid var(--ink); }
.dep { fill: var(--dep); stroke: #fff; stroke-width: 0.7; stroke-linejoin: round; opacity: 0; transition: opacity 500ms ease, fill 600ms ease; transition-delay: var(--dl, 0ms); }
.ph-0 .dep { opacity: 1; }
.ph-1 .dep.pe { fill: var(--accent); }
.liens line, .liens rect { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; fill: none; opacity: 0; transition: opacity 500ms ease; }
.ph-2 .liens line, .ph-2 .liens rect { opacity: 0.8; }
.loupe { opacity: 0; }
.loupe-fond { fill: #fff; }
.loupe-bord { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.ldep { fill: #f1f2f6; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.ldep.pe { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.pt-s { fill: var(--pt); opacity: 0; transition: opacity 400ms ease; transition-delay: var(--dl, 0ms); }
.ph-3 .pt-s { opacity: 0.75; }
[data-mode="places"] .ph-3 .pt-s { opacity: 0.2; transition-delay: 0ms; }
.site { opacity: 0; transition: opacity 400ms ease; }
.ph-3 .site { opacity: 1; }
.site path { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.carte text { font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4.5px; stroke-linejoin: round; }
.annonce { opacity: 0; transition: opacity 400ms ease; }
.annonce .zone { fill: var(--accent); fill-opacity: 0.16; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 3; }
.annonce .pulse { fill: none; stroke: var(--accent); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: pulse 1.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
[data-mode="places"] .ph-3 .annonce { opacity: 1; }
.soc { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.3); transition: opacity 300ms ease, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: var(--dl, 0ms); cursor: pointer; }
[data-mode="reperage"] .ph-3 .soc { opacity: 1; transform: none; }
[data-mode="places"] .soc { transition-delay: 0ms; }
.soc .m-a { fill: var(--accent); stroke: #fff; stroke-width: 2.2; }
.soc .m-ring { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.soc .m-p { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.soc .m-f { fill: #fff; stroke: var(--ink); stroke-width: 2.6; }
.soc.hot .m-a, .soc.hot .m-p, .soc.hot .m-f { stroke: var(--ink); stroke-width: 2.6; }
.soc.hot text { text-decoration: underline; }
.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-h, .ui-h { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; min-height: 52px; border-bottom: 1px solid var(--line); font-weight: 620; font-size: 15px; }
.exemple { font-size: 13px; font-weight: 450; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.liste li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity 360ms ease, transform 480ms var(--ease); transition-delay: var(--dl, 0ms); }
.liste li.in { opacity: 1; transform: none; }
.l-btn { width: 100%; text-align: left; border: 0; background: #fff; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; transition: background-color 120ms ease; }
.l-btn:hover, .l-btn.hot { background: #f8f9fb; }
.l-btn[aria-expanded="true"] { background: var(--accent-soft); }
.prio { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-family: var(--mono); font-size: 13px; font-weight: 600; background: #eef0f4; }
.prio-1 { background: var(--accent); color: var(--on-accent); }
.l-nom { font-weight: 580; font-size: 14.5px; line-height: 1.25; letter-spacing: -0.015em; }
.statut { font-size: 13px; font-weight: 540; padding: 3px 9px; border-radius: 999px; background: #eef0f4; white-space: nowrap; }
.statut.st-p { background: var(--ink); color: #fff; }
.statut.st-f { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.statut.st-an { background: var(--accent-soft); color: var(--accent-text); }
.l-raison { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.l-raison > p { overflow: hidden; font-size: 13.5px; color: var(--ink-2); padding: 0 14px 0 50px; }
.l-btn[aria-expanded="true"] + .l-raison { grid-template-rows: 1fr; }
.l-btn[aria-expanded="true"] + .l-raison > p { padding-bottom: 12px; }

/* Profils */
.profils { padding: 40px 0 120px; }
h2 { font-size: clamp(32px, 2.2vw + 18px, 54px); line-height: 1.04; font-weight: 560; letter-spacing: -0.04em; text-wrap: balance; }
.profils-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.profil { padding: 32px 32px 8px; }
.profil + .profil { border-left: 1px solid var(--line); }
.profil h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent-text); }
.profil-l { margin-top: 6px; font-size: 18px; letter-spacing: -0.02em; }
.coches { margin-top: 22px; display: grid; gap: 10px; }
.coches li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.coches li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.criteres { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.criteres span { font-size: 14px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; background: var(--fond); border: 1px solid var(--line); }

/* Rangées alternées texte / produit */
.rang { padding: 64px 0; }
.rang-grille { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.rang-inverse .rang-texte { order: 2; }
.rang .ligne { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 38ch; }
.rang .panneau { padding: 48px; }
.carte-ui { background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.45); overflow: hidden; }

/* Fiche avec geste de décision */
.fiche-pile { position: relative; min-height: 386px; }
.fiche { position: absolute; inset: 0; background: #fff; border-radius: 16px; padding: 22px 22px 20px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 50px -24px rgba(0, 0, 0, 0.45); transition: transform 520ms var(--ease), opacity 420ms ease; }
.fiche.sort-g { transform: translateX(-60px) rotate(-4deg); opacity: 0; }
.fiche.sort-d { transform: translateX(60px) rotate(4deg); opacity: 0; }
.fiche.entre { transform: translateY(16px) scale(0.97); opacity: 0; }
.f-haut { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.f-nom { font-size: 20px; font-weight: 620; letter-spacing: -0.03em; }
.f-ville { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.f-raison { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.45; }
.f-raison.sig { background: #f1f2f6; }
.f-graphe { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 110px; padding: 0 4px; }
.f-graphe span { position: relative; display: block; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--accent) 35%, #fff); height: var(--h); transform-origin: bottom; animation: barre 700ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.f-graphe span:last-child { background: var(--accent); }
@keyframes barre { from { transform: scaleY(0); } to { transform: none; } }
.f-legende { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: 8px; padding: 0 4px; }
.f-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 18px; }
.f-actions button { min-height: 46px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 580; font-size: 15px; transition: background-color 150ms ease, transform 90ms ease-out; }
.f-actions button:active { transform: scale(0.97); }
.b-ecarter { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.b-ecarter:hover { background: var(--fond); }
.b-approcher { background: var(--action, var(--accent)); color: var(--on-accent); }
.b-approcher:hover { background: var(--action-2, var(--accent-2)); }
.f-note { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); font-size: 14px; color: #fff; white-space: nowrap; opacity: 0; transition: opacity 300ms ease; }
.f-note.vu { opacity: 1; }

/* Échéances */
.echeances ol { padding: 18px; display: grid; gap: 22px; }
.echeances li { display: grid; grid-template-columns: minmax(0, 1fr) 80px; grid-template-areas: "nom j" "barre barre"; gap: 10px 16px; align-items: end; }
.e-nom { grid-area: nom; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.e-nom span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.e-j { grid-area: j; text-align: right; font-size: 24px; font-weight: 600; }
.e-barre { grid-area: barre; height: 10px; border-radius: 999px; background: #eceef3; overflow: hidden; }
.e-barre span { display: block; height: 100%; width: calc(var(--part) * 100%); border-radius: inherit; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1100ms var(--ease); }
.vu .e-barre span { transform: none; }
.echeances li:nth-child(2) .e-barre span { transition-delay: 160ms; }

/* Lettre */
.lettre { padding: 30px 32px; font-size: 16px; line-height: 1.6; }
.lettre p + p { margin-top: 12px; }
.perso { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; border-radius: 4px; padding: 0 3px; }
.lettre .sig { font-weight: 620; }
.lettre figcaption { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.tape::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; background: currentColor; margin-left: 1px; vertical-align: -0.15em; animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Veilles (section sombre) */
.veilles { background: var(--sombre); color: #fff; padding: 130px 0 140px; margin-top: 80px; position: relative; overflow: hidden; }
.veilles::before { content: ""; position: absolute; left: 50%; top: 0; width: 1100px; height: 420px; transform: translate(-50%, -55%); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 65%); opacity: 0.55; pointer-events: none; }
.veilles .wrap { position: relative; }
.veilles h2 { color: #fff; }
.statut-prep { width: max-content; margin: 16px auto 0; font-size: 13.5px; color: #c9cdd6; border: 1px solid #3a3e47; border-radius: 999px; padding: 4px 12px; }
.requete { position: relative; max-width: 620px; margin: 44px auto 0; background: var(--sombre-2); border: 1px solid #2e323a; border-radius: 18px; padding: 18px 60px 46px 20px; font-size: 16px; color: #e8eaef; min-height: 104px; }
.requete .envoi { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.requete .envoi svg { width: 15px; height: 15px; fill: none; stroke: var(--sombre); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cadences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.cadences li { background: var(--sombre-2); border: 1px solid #2a2e36; border-radius: 16px; padding: 22px 20px 20px; min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.vu .cadences li { opacity: 1; transform: none; }
.cadences b { font-weight: 560; font-size: 16px; letter-spacing: -0.02em; }
.cadences span { font-size: 13.5px; color: #a7adb9; }

/* Recherche, FAQ, fin */
.recherche { padding: 120px 0 40px; }
.rech-grille, .faq-grille { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.recherche .ligne { font-size: 19px; color: var(--ink-2); padding-top: 10px; }
.recherche a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.faq { padding: 80px 0 100px; }
.faq-liste { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; padding: 18px 36px 18px 0; position: relative; font-size: 17px; font-weight: 560; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border: solid var(--ink-2); border-width: 0 1.8px 1.8px 0; transform: translateY(-70%) rotate(45deg); transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 60ch; }
.fin { padding: 20px 0 100px; }
.panneau-fin { text-align: center; padding: 88px 32px; }
.panneau-fin h2 { color: var(--on-accent); margin-bottom: 30px; }
.pied { padding: 20px 0 100px; font-size: 13px; color: var(--ink-3); }

/* Rendez-vous flottant */
.rdv {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); font-size: 13px; line-height: 1.2;
  transition: transform 150ms ease;
}
.rdv:hover { transform: translateY(-2px); }
.rdv img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.rdv b { display: block; font-weight: 600; font-size: 14px; }
.rdv span { color: #c9cdd6; }

/* Réglage couleur */
.reglages { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25); font-size: 13px; }
.reglages p { color: var(--ink-3); font-weight: 540; }
.r-couleurs { display: flex; gap: 2px; }
.r-couleurs button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.r-couleurs span { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.r-couleurs button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .corps { grid-template-columns: 1fr; }
  .carte { border-right: 0; border-bottom: 1px solid var(--line); }
  .filtre { display: none; }
}
@media (max-width: 900px) {
  .rang-grille, .rech-grille, .faq-grille { grid-template-columns: 1fr; gap: 32px; }
  .rang-inverse .rang-texte { order: 0; }
  .profils-grille { grid-template-columns: 1fr; }
  .profil + .profil { border-left: 0; border-top: 1px solid var(--line); }
  .cadences { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 140px 0 120px; }
  .wrap { padding: 0 18px; }
  .produit { padding: 0 10px 80px; }
  .panneau-large, .rang .panneau { padding: 14px; border-radius: 20px; }
  .carte-head { flex-wrap: wrap; }
  .seg { width: 100%; grid-auto-columns: 1fr; }
  .compteur { width: calc(100% - 56px); }
  .profil { padding: 24px 4px 8px; }
  .cadences { grid-template-columns: 1fr; }
  .rdv span { display: none; }
  .rdv { padding: 7px; }
  .rdv b { display: none; }
  .reglages { left: 8px; bottom: 8px; }
  .fiche-pile { min-height: 420px; }
}
.etroit .carte text { font-size: 20px; stroke-width: 5px; }
.etroit .liens { display: none; }
@media (prefers-reduced-motion: reduce) {
  .trame::before, .trame::after, h1, .sous, .actions, .f-graphe span { animation: none !important; }
  .dep, .liens line, .pt-s, .site, .annonce, .soc, .liste li, .e-barre span, .l-raison, .cadences li, .fiche { transition: none !important; }
  .annonce .pulse, .tape::after { animation: none; }
}
.fige *, .fige *::before, .fige *::after { transition: none !important; animation: none !important; }

/* v7 · la France en points comme lumière du haut de page */
.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; }
.trame-zoom { position: absolute; left: 50%; top: 50%; width: min(860px, 125vw); aspect-ratio: 1; transform: translate(-38%, -44%); transform-origin: 73.1% 53%; will-change: transform, opacity; }
.france-trame { width: 100%; height: 100%; display: block; }
.tp { fill: #b8bfcd; opacity: 0; transition: opacity 400ms ease, fill 500ms ease, r 500ms var(--ease); transition-delay: var(--dl, 0ms); }
.trame.on .tp { opacity: 1; }
.trame.pe-on .tp.pe { fill: var(--accent); transition-delay: var(--dl2, 0ms); }

/* v7 · la phrase à compléter */
.config { padding: 40px 0 120px; }
.phrase-txt { font-size: clamp(26px, 1.6vw + 16px, 42px); line-height: 1.45; font-weight: 500; letter-spacing: -0.03em; text-align: center; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.sel { position: relative; display: inline-block; }
.sel select {
  appearance: none; -webkit-appearance: none; font: inherit; letter-spacing: inherit; color: var(--accent-text);
  background: transparent; border: 0; border-bottom: 2px solid var(--accent); border-radius: 0;
  padding: 0 1.05em 0 0.05em; cursor: pointer; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-text) 50%), linear-gradient(135deg, var(--accent-text) 50%, transparent 50%);
  background-position: calc(100% - 0.42em) 55%, calc(100% - 0.22em) 55%; background-size: 0.2em 0.2em, 0.2em 0.2em; background-repeat: no-repeat;
  transition: color 200ms ease, border-color 200ms ease;
}
.sel select:hover { border-bottom-color: var(--accent-2); }
.sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.resultat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 860px; margin: 56px auto 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -36px rgba(22, 24, 29, 0.35); }
.mini-france { width: 100%; height: auto; display: block; }
.mini-france path { fill: #e7e9ef; stroke: #fff; stroke-width: 0.8; stroke-linejoin: round; transition: fill 450ms ease; }
.mini-france path.on { fill: var(--accent); }
.res-n { font-size: 26px; font-weight: 560; letter-spacing: -0.03em; line-height: 1.2; }
.res-n b { font-weight: 600; }
.res-p { margin-top: 6px; font-size: 17px; color: var(--ink-2); }
.res-p b { color: var(--accent-text); font-weight: 600; }
.res-l { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 36ch; min-height: 3em; }
.res-txt .btn { margin-top: 18px; }
.res-fine { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* v7 · la matière des registres dans la fiche */
.fiche-pile { min-height: 520px; }
.f-registre { margin-top: 4px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: -0.02em; }
.f-metier { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.f-metier dt { color: var(--ink-3); }
.f-metier dd { margin: 0; }
.f-metier .code { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border-radius: 5px; background: #eef0f4; margin-right: 6px; letter-spacing: -0.02em; }
.f-sources { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.f-sources::before { content: "Sources · "; color: var(--ink-2); font-weight: 560; }
.tampon {
  position: absolute; right: 18px; top: 58px; transform: rotate(-7deg);
  padding: 5px 9px 4px; border: 2px solid var(--accent-text); border-radius: 6px; color: var(--accent-text);
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.25; text-align: center;
  opacity: 0.82; box-shadow: inset 0 0 0 1.5px #fff, inset 0 0 0 3px color-mix(in srgb, var(--accent-text) 40%, transparent);
  animation: tampon 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 300ms both;
}
@keyframes tampon { from { transform: rotate(-7deg) scale(1.6); opacity: 0; } to { transform: rotate(-7deg) scale(1); opacity: 0.82; } }
@media (max-width: 760px) {
  .resultat { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .mini-france { max-width: 260px; margin: 0 auto; }
  .res-txt { text-align: center; }
  .res-l { margin-left: auto; margin-right: auto; }
  .fiche-pile { min-height: 600px; }
  .tampon { top: 64px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp, .mini-france path { transition: none !important; }
  .tampon { animation: none; }
}

@media (max-width: 760px) { .trame-zoom { width: 150vw; transform: translate(-42%, -40%); } }

/* ============ v9 · hors du registre Apple ============ */
:root { --fond: #f6f5f1; --blanc: #fafaf8; }
body { background: var(--blanc); }
/* Navigation pleine largeur, sans pilule flottante */
.nav { position: sticky; top: 0; left: auto; transform: none; width: 100%; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 0 28px; min-height: 64px; background: var(--blanc); }
.nav-pilule a { border-radius: 6px; }
.brand { font-weight: 700; }
/* Géométrie sèche */
.btn { border-radius: 6px; min-height: 46px; }
.btn-sm { min-height: 38px; }
.seg, .r-couleurs { border-radius: 8px; }
.seg-opt { border-radius: 6px; }
.rejouer { border-radius: 8px; }
.statut, .exemple, .criteres span, .statut-prep { border-radius: 5px; }
.panneau { border-radius: 14px; box-shadow: none; }
.panneau-large { border-radius: 16px; }
.scene, .carte-ui, .fiche { border-radius: 10px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 24px -14px rgba(0, 0, 0, 0.35); }
.resultat { border-radius: 12px; box-shadow: none; }
.requete, .cadences li { border-radius: 10px; }
.rdv { border-radius: 10px; }
.reglages { border-radius: 10px; }
.r-couleurs button { border-radius: 6px; }
.f-actions button { border-radius: 6px; }
/* Haut de page à gauche, dense, sans halo */
.hero { padding: 48px 0 64px; text-align: left; background: var(--blanc); border-bottom: 1px solid var(--line); }
.hero-grille { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-in { max-width: none; margin: 0; padding: 0; }
h1 { font-size: clamp(40px, 2.5vw + 24px, 64px); font-weight: 620; letter-spacing: -0.035em; line-height: 1.02; animation: none; }
.sous { margin: 20px 0 0; max-width: 34ch; animation: none; }
.actions { justify-content: flex-start; margin-top: 28px; animation: none; }
.trame::after { display: none; }
.releve { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--ink-2); }
.releve img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.hero-carte { position: relative; aspect-ratio: 1.02; }
.hero-carte .trame { position: absolute; inset: 0; }
.trame-zoom { left: 0; top: 0; width: 100%; transform: none; }
@media (max-width: 760px) { .trame-zoom { width: 100%; transform: none; } }
/* Signaux datés accrochés au périmètre */
.signaux { position: absolute; right: -6px; top: 56%; display: grid; gap: 8px; width: min(270px, 52%); }
.signaux li {
  display: grid; grid-template-columns: 1fr; gap: 1px; padding: 10px 12px; background: #fff;
  border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.35); font-size: 13.5px; line-height: 1.3;
  opacity: 0; transform: translateX(12px); transition: opacity 400ms ease, transform 500ms var(--ease); transition-delay: calc(var(--k) * 220ms);
}
.signaux li b { font-weight: 600; font-size: 14px; }
.signaux li > span:last-child { color: var(--ink-2); }
.sg-q { font-size: 13px; color: var(--accent-text); }
.signaux.on li { opacity: 1; transform: none; }
/* Rythme resserré, titres à gauche */
.produit { margin-top: 0; padding-top: 40px; background: var(--fond); }
.config { padding: 72px 0 88px; }
.phrase-txt { text-align: left; margin: 0; max-width: 32ch; }
.resultat { margin: 40px 0 0; }
.rang { padding: 44px 0; }
.veilles { padding: 96px 0 104px; margin-top: 56px; }
.veilles::before { display: none; }
.statut-prep { margin: 14px 0 0; }
.requete { margin: 36px 0 0; }
.recherche { padding: 88px 0 24px; }
.faq { padding: 64px 0 80px; }
h2 { font-weight: 600; letter-spacing: -0.032em; font-size: clamp(30px, 1.6vw + 18px, 46px); }
@media (max-width: 900px) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero-carte { max-width: 520px; width: 100%; margin: 0 auto; }
  .signaux { right: 0; top: auto; bottom: 0; }
}
@media (max-width: 640px) {
  .signaux { position: static; width: 100%; margin-top: -40px; }
  .hero-carte { aspect-ratio: auto; }
  .hero-carte .trame { position: relative; aspect-ratio: 1.02; }
}

/* v9b : un seul signal à la fois, qui défile sous le périmètre */
.signaux { right: auto; left: 60%; top: 60%; width: min(280px, 46%); display: block; height: 82px; }
.signaux li { position: absolute; inset: 0 auto auto 0; width: 100%; transition-delay: 0ms; }
.signaux.on li { opacity: 0; transform: translateY(8px); pointer-events: none; }
.signaux.on li.actif { opacity: 1; transform: none; pointer-events: auto; }
.signaux::before { content: ""; position: absolute; left: 22%; top: -46px; height: 46px; border-left: 1.5px dashed var(--accent); opacity: 0.7; }
.sg-q { font-family: var(--font); font-size: 13px; font-weight: 560; letter-spacing: 0; }
@media (max-width: 640px) { .signaux { position: relative; left: auto; top: auto; width: 100%; margin-top: 8px; } .signaux::before { display: none; } }

/* v9c : nuances de vert (sélecteur de maquette) */
:root[data-couleur="emeraude"] { --accent: #1d7a5a; --accent-2: #166249; --on-accent: #fff; --accent-soft: #e3f1eb; --accent-text: #17654a; }
:root[data-couleur="sapin"] { --accent: #1f5c46; --accent-2: #174837; --on-accent: #fff; --accent-soft: #e4eee9; --accent-text: #1f5c46; }
:root[data-couleur="bouteille"] { --accent: #24493b; --accent-2: #1a372c; --on-accent: #fff; --accent-soft: #e6ece9; --accent-text: #24493b; }
:root[data-couleur="petrole"] { --accent: #0e5c63; --accent-2: #0a474d; --on-accent: #fff; --accent-soft: #e2eef0; --accent-text: #0e5c63; }
:root[data-couleur="sauge"] { --accent: #4f7a63; --accent-2: #3f634f; --on-accent: #fff; --accent-soft: #eaf1ed; --accent-text: #436a55; }
:root[data-couleur="olive"] { --accent: #5a6b2f; --accent-2: #475525; --on-accent: #fff; --accent-soft: #eef1e4; --accent-text: #4f5f28; }
:root[data-couleur="prairie"] { --accent: #2a7d47; --accent-2: #216439; --on-accent: #fff; --accent-soft: #e4f2e8; --accent-text: #236a3c; }
.r-nom { min-width: 70px; font-weight: 600; color: var(--ink) !important; }
.r-couleurs button { width: 34px; }
/* Relecture sans nom, rendez-vous avec l'équipe */
.releve svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rdv-ic { width: 34px; height: 34px; border-radius: 8px; background: #2a2d34; display: grid; place-items: center; flex: none; }
.rdv-ic svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 640px) {
  .reglages { flex-wrap: wrap; max-width: calc(100vw - 16px); padding: 6px 8px; gap: 2px 6px; }
  .r-couleurs button { width: 30px; height: 36px; }
  .rdv .rdv-ic + span { display: none; }
}

/* ============ v10 · une seule France, celle qu'on clique ============ */
:root[data-couleur="sapin"] { --accent: #1f5c46; --accent-2: #174837; --on-accent: #fff; --accent-soft: #e4eee9; --accent-text: #1f5c46; }
:root[data-couleur="cedre"] { --accent: #1b4f47; --accent-2: #143c36; --on-accent: #fff; --accent-soft: #e2ecea; --accent-text: #1b4f47; }
:root[data-couleur="anglais"] { --accent: #234a2f; --accent-2: #1a3923; --on-accent: #fff; --accent-soft: #e6ede7; --accent-text: #234a2f; }
:root[data-couleur="nuit"] { --accent: #163a2f; --accent-2: #0f2a22; --on-accent: #fff; --accent-soft: #e3eae7; --accent-text: #163a2f; }
:root[data-couleur="encre"] { --accent: #1f3b66; --accent-2: #172d4f; --on-accent: #fff; --accent-soft: #e5eaf3; --accent-text: #1f3b66; }
:root[data-couleur="outremer"] { --accent: #2f48c0; --accent-2: #263b9f; --on-accent: #fff; --accent-soft: #e8ebfa; --accent-text: #2a40ad; }
:root[data-couleur="petrole"] { --accent: #0e5c63; --accent-2: #0a474d; --on-accent: #fff; --accent-soft: #e2eef0; --accent-text: #0e5c63; }
:root[data-couleur="aubergine"] { --accent: #4b2e55; --accent-2: #3b2443; --on-accent: #fff; --accent-soft: #efe8f1; --accent-text: #4b2e55; }
:root[data-couleur="noir"] { --accent: #16181d; --accent-2: #2a2d34; --on-accent: #fff; --accent-soft: #eceef2; --accent-text: #16181d; }
:root[data-couleur="graphite"] { --accent: #3c4049; --accent-2: #2c2f36; --on-accent: #fff; --accent-soft: #eef0f3; --accent-text: #3c4049; }
:root[data-couleur="noir-vert"] { --accent: #142821; --accent-2: #0c1b16; --on-accent: #fff; --accent-soft: #e5ebe8; --accent-text: #142821; }
:root[data-couleur="noir-sapin"] { --accent: #1f5c46; --accent-2: #174837; --on-accent: #fff; --accent-soft: #e4eee9; --accent-text: #1f5c46;
  --action: #16181d; --action-2: #2a2d34; --panneau: #16181d; }

/* Réglage de couleur : un bouton, un panneau groupé */
.reglages { display: block; padding: 0; border-radius: 10px; background: transparent; border: 0; box-shadow: none; }
.r-ouvrir { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.25); font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.r-ouvrir b { color: var(--ink); font-weight: 600; }
.r-pastille { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.r-ouvrir svg { width: 12px; height: 12px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease; }
.r-ouvrir[aria-expanded="false"] svg { transform: rotate(180deg); }
.r-panneau { position: absolute; left: 0; bottom: calc(100% + 8px); width: 232px; padding: 10px 12px 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.3); }
.r-panneau[hidden] { display: none; }
.r-groupe { font-size: 13px; font-weight: 560; color: var(--ink-3); margin: 6px 0 4px; }
.r-groupe:first-child { margin-top: 0; }
.reglages .r-couleurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0; background: none; border-radius: 0; }
.reglages .r-couleurs button { width: 100%; height: 44px; border-radius: 8px; box-shadow: none; }
.reglages .r-couleurs button:hover { background: var(--fond); }
.reglages .r-couleurs button[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.reglages .r-couleurs span { width: 26px; height: 26px; border-radius: 6px; }

/* Le titre du produit, sur le panneau */
.prod-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 4px 4px 24px; color: var(--on-accent); }
.prod-tete h2 { color: inherit; margin: 0; }
.prod-tete p { font-size: 16px; opacity: 0.86; max-width: 46ch; }

/* Barre de filtres de l'outil */
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfcfb; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font-size: 13px; color: var(--ink-3); }
label.chip { cursor: pointer; }
label.chip:hover { border-color: var(--ink-3); }
.chip select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); padding: 0 16px 0 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 6px) 55%, calc(100% - 1px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.chip select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.chip-terr b { color: var(--ink); font-size: 14px; font-weight: 600; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-reinit { min-height: 40px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 560; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
.chip-reinit:hover { text-decoration-color: currentColor; }

/* La France qu'on clique */
.pts.pret .dep { cursor: pointer; transition: opacity 500ms ease, fill 180ms ease; transition-delay: 0ms; }
.pts.pret .dep:hover { fill: color-mix(in srgb, var(--accent) 32%, var(--dep)); }
.pts.pret .dep.pe:hover { fill: var(--accent-2); }
.pts .dep:focus { outline: none; }
.pts .dep:focus-visible { stroke: var(--ink); stroke-width: 2; }
.dep-bulle { position: absolute; z-index: 3; pointer-events: none; padding: 4px 9px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.dep-bulle[hidden] { display: none; }
.liens { transition: opacity 250ms ease; }
.liens.cache { opacity: 0; }
.scene.sur-mesure [data-loupe-dep], .scene.sur-mesure [data-points], .scene.sur-mesure [data-annonce], .scene.sur-mesure [data-site], .scene.sur-mesure [data-socs] { display: none; }
.scene:not(.sur-mesure) [data-perso] { display: none; }
.perso-loupe { transition: opacity 220ms ease; }
.perso-loupe.entre .pt-s, .perso-loupe.entre .soc { opacity: 0 !important; transform: scale(0.3); }
.perso-loupe .ldep.pe { fill: var(--accent-soft); stroke: var(--accent); }
.loupe-vide { font-size: 17px !important; font-weight: 560 !important; fill: var(--ink-3) !important; }

/* Liste : noms caviardés hors de l'exemple */
.masque { display: block; height: 11px; margin: 3px 0 5px; border-radius: 2px; background: var(--ink); opacity: 0.85; }
.l-sous { display: block; font-size: 13px; font-weight: 450; color: var(--ink-3); letter-spacing: 0; }
.liste .vide { opacity: 1; transform: none; padding: 18px 14px; font-size: 14px; color: var(--ink-2); }
.panel-pied { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.panel-pied p { font-size: 13.5px; color: var(--ink-2); }
.panel-pied .btn { min-height: 44px; }

@media (max-width: 1100px) {
  .panel-pied { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
@media (max-width: 700px) {
  .etroit .liens { display: inline; }
  .etroit .liens line { display: none; }
  .etroit .carte text { font-size: 21px; }
  .filtres { padding: 10px; }
  .chip { flex: 1 1 auto; }
  .chip-terr { flex-basis: 100%; }
  .panel-pied { grid-template-columns: 1fr; }
  .prod-tete { padding: 6px 4px 16px; }
  .prod-tete p { font-size: 15px; }
  .r-panneau { width: min(232px, calc(100vw - 16px)); }
}
@media (prefers-reduced-motion: reduce) {
  .perso-loupe, .liens { transition: none; }
}
html.capture .reglages, html.capture .rdv { display: none; }
.carte { display: flex; flex-direction: column; }
.carte .pts { margin: auto 0; }
.l-sous { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-nom { min-width: 0; }
.lg-i { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg-i .lg { margin-right: 0; }

/* ============ v11 · différenciants, lettre manuscrite, suivi des approches ============ */
@font-face { font-family: "PT Serif Diligeo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/pt-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "PT Serif Diligeo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/pt-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "PT Serif Diligeo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/pt-serif-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "PT Serif Diligeo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/pt-serif-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Manuscrit Diligeo"; font-style: normal; font-weight: 400; font-display: block; src: url("/fonts/la-belle-aurore.woff2") format("woff2"); }
.reglages[hidden] { display: none; }
:root[data-couleur="noir"] .statut.st-an { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }

/* Haut de page : deux promesses */
.promesses { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; color: var(--ink-2); }
.promesses li { display: inline-flex; align-items: center; gap: 8px; }
.promesses svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Votre thèse : l'entonnoir */
.entonnoir { margin-top: 30px; display: grid; gap: 14px; max-width: 440px; }
.entonnoir li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.entonnoir b { font-size: 15px; font-weight: 600; color: var(--ink); }
.entonnoir i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 2px; background: #e6e8ec; position: relative; overflow: hidden; }
.entonnoir i::after { content: ""; position: absolute; inset: 0; width: calc(max(var(--v), 0.012) * 100%); background: var(--ink); border-radius: inherit; }
.entonnoir li:last-child { color: var(--ink); font-weight: 560; }
.entonnoir:not(.vu) i::after { width: 100%; }
.entonnoir.vu i::after { transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.entonnoir.vu li:nth-child(1) i::after { transition-delay: 250ms; }
.entonnoir.vu li:nth-child(2) i::after { transition-delay: 630ms; }
.entonnoir.vu li:nth-child(3) i::after { transition-delay: 1010ms; }
.entonnoir.vu li:nth-child(4) i::after { transition-delay: 1390ms; }

/* La fiche, conforme à la thèse */
.fiche-pile { min-height: 640px; }
.tampon { top: 64px; right: 16px; font-size: 13px; letter-spacing: 0.04em; }
.f-these { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.f-these li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 5px; background: #f1f2f4; font-size: 13px; color: var(--ink); }
.f-these svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-graphe .nd { height: 100%; background: repeating-linear-gradient(135deg, transparent 0 5px, #eceef1 5px 6px) !important; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: end center; animation: none; }
.f-graphe .nd em { font-style: normal; font-size: 13px; color: var(--ink-3); writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; white-space: nowrap; }

/* Lu dans ce qu'elles ont déposé */
.actes { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 24px -14px rgba(0, 0, 0, 0.35); }
.a-onglets { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #fbfbfa; overflow-x: auto; }
.a-onglets button { min-height: 40px; padding: 0 14px; border-radius: 7px; border: 1px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 560; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.a-onglets button:hover { color: var(--ink); background: #f1f2f4; }
.a-onglets button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.a-piece { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: stretch; }
.a-piece[hidden] { display: none; }
.papier {
  margin: 18px; padding: 22px 24px 20px; border-radius: 2px; color: #2b2a27;
  font-family: "PT Serif Diligeo", Georgia, serif; font-size: 14px; line-height: 1.55; letter-spacing: 0;
  background: #fbfaf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .18  0 0 0 0 .12  0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 10px 22px -12px rgba(0, 0, 0, 0.35); transform: rotate(-0.35deg);
}
.papier p + p, .papier p + table, .papier table + p { margin-top: 10px; }
.p-entete { font-size: 13px; color: #55524b; }
.p-entete b { color: #22211f; letter-spacing: 0.03em; }
.p-titre { margin: 14px 0 6px; font-weight: 700; text-align: center; font-size: 14px; }
.p-pied { font-size: 13px; color: #55524b; }
.papier table { width: 100%; border-collapse: collapse; font-size: 14px; }
.papier td { padding: 5px 0; border-bottom: 1px dotted #c9c5bb; }
.papier td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.papier tr.tot td { border-bottom: 0; font-weight: 700; padding-top: 8px; }
.papier mark { color: inherit; padding: 0 1px; background: linear-gradient(180deg, transparent 6%, #fde68a 6%, #fde68a 94%, transparent 94%) no-repeat 0 0 / 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.a-piece.vu mark { background-size: 100% 100%; transition: background-size 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms; }
.caviar { display: inline-block; height: 0.82em; vertical-align: -0.06em; background: #1b1b1b; border-radius: 1px; }
.a-fiche { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 22px 22px 18px; border-left: 1px solid var(--line); }
.a-dans { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.a-fait { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; opacity: 0; transform: translateY(6px); }
.a-piece.vu .a-fait { opacity: 1; transform: none; transition: opacity 400ms ease 900ms, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 900ms; }
.a-src { font-size: 13px; color: var(--ink-3); }
.actes-note { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }

/* La lettre manuscrite */
.ligne-2 { margin-top: 12px; font-size: 15px; color: var(--ink-3); }
.manuscrit { position: relative; margin: 0; padding: 6px 0 0; }
.feuille {
  position: relative; z-index: 2; width: min(100%, 470px); padding: 30px 30px 26px 34px; border-radius: 1px;
  color: #1d2c7c; font-family: "Manuscrit Diligeo", cursive; font-size: 19px; line-height: 1.78; letter-spacing: 0;
  text-shadow: 0 0 0.6px rgba(29, 44, 124, 0.44);
  background: #f1ece4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  box-shadow: 0 1px 3px rgba(40, 30, 20, 0.28), 0 22px 40px -18px rgba(0, 0, 0, 0.55); transform: rotate(-1.3deg);
}
.feuille p { margin: 0 0 0.62em; }
.feuille .l { white-space: pre; word-spacing: 0.18em; transform: translateX(var(--x)) rotate(var(--pente)); transform-origin: 0 60%; }
.feuille .m, .adresse .m { display: inline-block; transform: translateY(var(--y)); }
.feuille i, .adresse i { font-style: normal; display: inline-block; transform: translateY(var(--b)) rotate(var(--r)) scale(var(--s)); -webkit-text-stroke: var(--p) currentColor; opacity: var(--o); }
.feuille .signature { margin-top: 0.4em; padding-left: 38%; font-size: 1.16em; }
.feuille .contact { margin: 0.2em 0 0 38%; line-height: 1.9; }
.feuille .contact .caviar { background: #1d2c7c; opacity: 0.85; height: 0.7em; }
.feuille.anim .l { clip-path: inset(-30% 100% -30% -2%); }
.feuille.anim .contact { opacity: 0; }
.feuille.anim.ecrit .l { clip-path: inset(-30% -2% -30% -2%); transition: clip-path var(--t) linear var(--d); }
.feuille.anim.ecrit .contact { opacity: 1; transition: opacity 400ms ease var(--dfin, 0ms); }
.enveloppe {
  position: absolute; z-index: 1; right: -4px; top: 46px; width: 62%; aspect-ratio: 1.48; border-radius: 3px; container-type: inline-size;
  color: #1d2c7c; font-family: "Manuscrit Diligeo", cursive; transform: rotate(5.5deg);
  background: #c2a27b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .15  0 0 0 0 .1  0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.3), 0 16px 34px -14px rgba(0, 0, 0, 0.5);
}
.enveloppe .adresse { position: absolute; left: 30%; right: 3%; top: 40%; font-size: 5.6cqw; line-height: 1.75; text-shadow: 0 0 0.6px rgba(29, 44, 124, 0.55); }
.enveloppe .adresse p { margin: 0; }
.enveloppe .l { white-space: pre; transform: translateX(var(--x)) rotate(var(--pente)); transform-origin: 0 60%; }
.timbre { position: absolute; top: 6%; right: 5%; width: 13%; aspect-ratio: 0.83; padding: 0.8cqw; background: radial-gradient(circle, #c2a27b 0 0.42cqw, transparent 0.5cqw) -0.6cqw -0.6cqw / 1.2cqw 1.2cqw, #faf6ee; box-shadow: 0 1px 1px rgba(60, 40, 20, 0.25); }
.timbre div { height: 100%; background: repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px), radial-gradient(circle at 40% 35%, #d65a4e, #bf3a30 72%); outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: -0.9cqw; }
.cachet { position: absolute; top: 6%; right: 11%; width: 28%; opacity: 0.55; transform: rotate(-8deg); }
.manuscrit figcaption { position: relative; z-index: 2; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.78); }

/* Suivi des approches */
.approches { padding: 88px 0 72px; }
.appr-tete { display: flex; justify-content: space-between; align-items: end; gap: 16px 56px; flex-wrap: wrap; }
.appr-tete h2 { max-width: 16ch; }
.appr-tete .ligne { max-width: 44ch; font-size: 17px; color: var(--ink-2); }
.tableau { margin-top: 34px; }
.t-haut { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); }
.t-titre { font-weight: 620; font-size: 15px; margin-right: auto; }
.t-qui { display: inline-flex; }
.t-qui i, .c-qui { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 0; background: #eceef1; color: var(--ink); box-shadow: 0 0 0 2px #fff; }
.t-qui i + i { margin-left: -6px; }
.colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fbfbfa; }
.col { padding: 14px 10px 18px; border-right: 1px solid var(--line); min-height: 300px; }
.col:last-child { border-right: 0; }
.col h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 12px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.col h3 .mono { color: var(--ink-3); font-weight: 500; }
.col ol { display: grid; gap: 8px; }
.c-carte { position: relative; padding: 10px 42px 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); transition: border-color 300ms ease, box-shadow 300ms ease; }
.c-carte b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.c-meta { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-3); }
.c-carte .c-qui { position: absolute; right: 9px; top: 9px; width: 26px; height: 26px; box-shadow: none; }
.c-carte.bouge { border-color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.c-vide { padding: 14px 8px; border: 1px dashed var(--line-2); border-radius: 8px; text-align: center; font-size: 13px; color: var(--ink-3); }
.t-journal { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.t-journal .mono { color: var(--ink-3); flex: none; }

/* Selon votre façon de reprendre */
.profils2 { padding: 88px 0; background: var(--fond); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-onglets { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-top: 28px; border-radius: 9px; background: #e9eaec; }
.p-onglets button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 14.5px; font-weight: 560; color: var(--ink-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.p-onglets button:hover { color: var(--ink); }
.p-onglets button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.p-panneau { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.p-panneau[hidden] { display: none; }
.p-avant { padding: 28px 30px; background: #f6f6f4; border-right: 1px solid var(--line); }
.p-apres { padding: 28px 30px; }
.p-l { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.p-avant p:not(.p-l) { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.p-apres ul { display: grid; gap: 14px; }
.p-apres li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
.p-apres li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* La fin, avant les questions */
.fin { padding: 72px 0 24px; }
.fin-delai { margin: -14px auto 28px; max-width: 46ch; font-size: 16px; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 900px) {
  .a-piece { grid-template-columns: 1fr; }
  .a-fiche { border-left: 0; border-top: 1px solid var(--line); padding: 16px 18px 18px; }
  .colonnes { grid-template-columns: 1fr 1fr; }
  .col { min-height: 0; border-bottom: 1px solid var(--line); }
  .col:nth-child(2n) { border-right: 0; }
  .p-panneau { grid-template-columns: 1fr; }
  .p-avant { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .papier { margin: 12px; padding: 16px 16px 14px; font-size: 13.5px; }
  .feuille { font-size: 17px; padding: 22px 20px 20px 22px; }
  .enveloppe { width: 78%; top: auto; bottom: -26px; right: -6px; }
  .manuscrit { padding-bottom: 70px; }
  .manuscrit figcaption { margin-top: 0; position: absolute; bottom: 0; left: 0; }
  .colonnes { grid-template-columns: 1fr; }
  .col { border-right: 0; }
  .p-onglets { display: flex; }
  .p-onglets button { flex: 1 1 auto; }
  .fiche-pile { min-height: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  .entonnoir.vu i::after, .a-piece.vu mark, .a-piece.vu .a-fait, .feuille.anim.ecrit .l { transition: none !important; }
}

/* v11b : ajustements */
.rang-inverse .rang-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.f-haut > div { padding-right: 132px; }
.f-graphe { height: 92px; }
.t-qui i + i { margin-left: 4px; }
.t-qui i { width: 30px; height: 30px; box-shadow: none; }
.appr-tete h2 { max-width: 19ch; }
@media (max-width: 900px) { .rang-grille, .rang-inverse .rang-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .f-haut > div { padding-right: 0; } .tampon { position: static; display: inline-block; align-self: flex-start; margin-top: 12px; transform: rotate(-4deg); animation: none; } }
/* v11c : l'enveloppe glissée sous la lettre, l'adresse visible */
.manuscrit { padding: 6px 0 31%; }
.feuille { width: 86%; }
.enveloppe { top: auto; bottom: 0; right: -1%; width: 70%; transform: rotate(3deg); }
.enveloppe .adresse { left: 30%; top: 45%; font-size: max(13px, 5.4cqw); }
.manuscrit figcaption { position: absolute; left: 0; bottom: 4px; margin: 0; }
@media (max-width: 640px) {
  .manuscrit { padding-bottom: 36%; }
  .feuille { width: 94%; }
  .enveloppe { width: 76%; bottom: 0; right: -4px; }
  .manuscrit figcaption { bottom: 0; }
}
/* v11d : mesure des lignes manuscrites, étiquettes, rendez-vous sur téléphone */
.feuille p, .adresse p { word-spacing: 0.18em; margin-right: 0.7em; }
.exemple { white-space: nowrap; }
@media (max-width: 640px) { .rdv .rdv-ic { display: grid; } .rdv { padding: 6px; } }

/* ============ v12 · le hamburger du site actuel, et les pages Équipe et Analyse ============ */
.nav { gap: 10px; z-index: 52; }
.nav-cta { margin-left: auto; }
.brand { margin-right: 0; }
.burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.burger:hover { background: var(--fond); }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease; }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
.menu-ouvert .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Sur ordinateur : un panneau sous le bouton */
.menu {
  position: fixed; z-index: 51; top: 72px; right: max(16px, calc((100vw - 1240px) / 2 + 16px)); width: 400px; max-width: calc(100vw - 32px);
  padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 24px 48px -20px rgba(0, 0, 0, 0.35);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 220ms;
}
.menu.ouvert { visibility: visible; opacity: 1; transform: none; transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.menu-groupe { padding: 6px 12px 4px; font-size: 13px; font-weight: 560; color: var(--ink-3); }
.menu a { display: block; text-decoration: none; color: var(--ink); border-radius: 8px; transition: background-color 120ms ease; }
.menu a:hover { background: var(--fond); }
.menu a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.menu-services a { padding: 11px 12px; }
.menu-services b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.menu-services span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.menu a[aria-current="page"] { background: #f1f2f4; }
.menu-autres { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.menu-autres a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 520; }
.menu-autres .menu-action { display: none; }

/* Sur téléphone : le tiroir plein écran du site actuel */
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-cta { display: none; }
  .burger { margin-left: auto; }
  .menu {
    inset: 64px 0 0 0; top: 64px; right: 0; width: auto; max-width: none; border-radius: 0; border: 0; box-shadow: none;
    padding: 12px 16px 40px; overflow-y: auto; background: var(--blanc);
    transform: translateX(100%); opacity: 1;
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 300ms;
  }
  .menu.ouvert { transform: none; transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
  .menu-ouvert body { overflow: hidden; }
  .menu-services li, .menu-autres li { border-bottom: 1px solid var(--line); }
  .menu-services a { padding: 18px 4px; border-radius: 0; }
  .menu-services b { font-size: 21px; }
  .menu-autres { margin-top: 0; padding-top: 0; border-top: 0; }
  .menu-autres a { min-height: 60px; padding: 0 4px; font-size: 19px; border-radius: 0; }
  .menu-autres .menu-action { display: block; border-bottom: 0; padding-top: 18px; }
  .menu-autres .menu-action a { justify-content: center; min-height: 52px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; }
  .menu-groupe { padding: 4px 4px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.ouvert, .burger span { transition: none; }
}

/* Page Équipe */
.page-equipe h1 { max-width: 14ch; }
.eq-haut { padding: 72px 0 40px; }
.eq-haut .sous { margin: 20px 0 0; max-width: 46ch; }
.eq-fondateur { padding: 8px 0 56px; }
.eq-fiche { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px; align-items: start; }
.eq-portrait { width: 220px; height: 220px; object-fit: cover; border-radius: 8px; filter: grayscale(0.15); }
.eq-corps h2 { font-size: 30px; }
.eq-role { margin-top: 2px; font-size: 16px; color: var(--ink-3); }
.eq-registre { margin: 14px 0 18px; padding: 10px 12px; border-radius: 6px; background: #f3f4f6; font-family: var(--mono); font-size: 13px; letter-spacing: -0.02em; color: var(--ink-2); }
.eq-corps p:not(.eq-role):not(.eq-registre) { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.eq-corps p + p { margin-top: 12px; }
.eq-cercle { padding: 40px 0 64px; }
.eq-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line-2); }
.eq-trois li { padding: 22px 24px 8px 0; }
.eq-trois li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.eq-trois h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.02em; }
.eq-trois p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.eq-engagements { padding: 16px 0 64px; }
.eq-panneau { padding: 48px; }
.eq-panneau h2 { color: var(--on-accent); }
.eq-dl { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: 10px; overflow: hidden; }
.eq-dl > div { padding: 22px 24px; background: #1c1e23; }
.eq-dl dt { font-size: 15px; font-weight: 620; color: #fff; }
.eq-dl dd { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.eq-contact { padding: 40px 0 96px; }
.eq-contact-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.eq-contact .ligne { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 44ch; }
.eq-moyens { display: grid; gap: 10px; justify-items: start; }
.eq-moyens p a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 560; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 150ms ease; }
.eq-moyens p a:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .eq-trois { grid-template-columns: 1fr; }
  .eq-trois li, .eq-trois li + li { padding: 20px 0 6px; border-left: 0; border-bottom: 1px solid var(--line); }
  .eq-dl { grid-template-columns: 1fr; }
  .eq-contact-grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .eq-haut { padding: 48px 0 28px; }
  .eq-fiche { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .eq-portrait { width: 140px; height: 140px; }
  .eq-panneau { padding: 22px 16px; }
  .eq-dl > div { padding: 18px 16px; }
}
.menu { right: 20px; }
@media (max-width: 640px) { .menu { right: 0; } }

/* v13 · L'ouverture en deux écrans : la France, puis le périmètre zoomé en trois états */
.ouverture { background: var(--blanc); border-bottom: 1px solid var(--line); }
.o-grille { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; }
.o-pas { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.o-pas-1 h1 { max-width: none; }
.o-collant .trame { overflow: hidden; -webkit-mask-image: radial-gradient(ellipse calc(var(--m, 100) * 1%) calc(var(--m, 100) * 1%) at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse calc(var(--m, 100) * 1%) calc(var(--m, 100) * 1%) at 50% 50%, #000 62%, transparent 100%); }
.o-pas-1 .sous { max-width: 38ch; }
.o-delai { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.o-delai svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#apport { scroll-margin-top: 96px; }
.o-pas-2 h2 { margin-bottom: 22px; }
.o-scene { position: relative; }
.o-collant { position: sticky; top: 64px; height: calc(100svh - 64px); display: grid; place-items: center; }
.o-collant > * { grid-area: 1 / 1; }
.o-collant .hero-carte { width: min(100%, calc(100svh - 150px)); }

/* Les trois apports, qui pilotent la carte */
.piliers { display: grid; gap: 2px; max-width: 54ch; margin: 0 -16px; }
.pilier { position: relative; display: grid; gap: 4px; text-align: left; padding: 13px 16px 17px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: var(--ink-3); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; -webkit-tap-highlight-color: transparent; }
.pilier b { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-2); transition: color 200ms ease; }
.pilier span { font-size: 15.5px; line-height: 1.5; }
.pilier:hover { background: var(--fond); }
.pilier[aria-selected="true"] { background: var(--fond); color: var(--ink-2); }
.pilier[aria-selected="true"] b { color: var(--ink); }
.pilier:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.p-temps { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity 200ms ease; }
.p-temps::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.pilier.court .p-temps { opacity: 1; }
.pilier.court .p-temps::after { animation: p-temps var(--duree, 4600ms) linear forwards; }
@keyframes p-temps { to { transform: scaleX(1); } }
.o-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }

/* La carte du périmètre */
.zoom { width: 100%; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -32px rgba(17, 19, 23, 0.35); padding: 18px 20px 14px; will-change: opacity, transform; }
.z-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.z-compte { font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); min-height: 23px; }
.z-compte b { font-weight: 600; }
.z-these { margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.zoom .exemple { flex: none; }
.z-carte { display: block; width: 100%; height: auto; aspect-ratio: 428 / 258; margin-top: 10px; overflow: hidden; border-radius: 8px; }
.z-vois { fill: #f1f2f5; stroke: #fff; stroke-width: 1.2; }
.z-pe { fill: var(--dep); stroke: #fff; stroke-width: 1.4; }
.z-pt { fill: var(--pt); transition: opacity 500ms ease; transition-delay: var(--d, 0ms); }
.z-pt-g, .z-pt-p { transition: opacity 400ms var(--ease); transition-delay: var(--d, 0ms); }
.z-pt-p { opacity: 0; }
.z-an { fill: none; stroke: var(--ink); stroke-width: 1.3; transition: opacity 300ms ease; }
.z-dot { fill: var(--pt); transition: r 450ms var(--ease), fill 300ms ease, opacity 250ms ease; }
.z-badge { opacity: 0; transform: scale(0.5); transition: opacity 250ms ease, transform 450ms var(--ease); }
.z-b-fond { fill: #fff; stroke: var(--ink); stroke-width: 1.1; }
.z-b-ic { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.z-b-rdv .z-b-fond { fill: var(--ink); }
.z-b-rdv .z-b-ic { stroke: #fff; }
.z-lab { font-family: var(--font); font-size: 11.5px; font-weight: 600; letter-spacing: -0.01em; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; opacity: 0; transition: opacity 300ms ease; }
.zoom:not([data-etat="tout"]) .z-an { opacity: 0; }
.zoom:not([data-etat="tout"]) .z-pt { opacity: 0.2; }
.zoom:not([data-etat="tout"]) .z-pt-g { opacity: 0; }
.zoom:not([data-etat="tout"]) .z-pt-p { opacity: 1; }
.zoom:not([data-etat="tout"]) .z-dot { fill: var(--ink); r: 4.4; }
.zoom:not([data-etat="tout"]) .z-lab { opacity: 1; }
.zoom[data-etat="approche"] .z-dot { opacity: 0; }
.zoom[data-etat="approche"] .z-badge { opacity: 1; transform: none; }
.z-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 13px; color: var(--ink-2); min-height: 20px; }
.z-legende .lg-i { display: inline-flex; align-items: center; gap: 7px; }
.z-legende .lg { display: inline-block; margin: 0; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; }
.z-legende .lg-pt { background: var(--pt); }
.z-legende .lg-an { width: 12px; height: 12px; background: transparent; border: 1.3px solid var(--ink); }
.z-legende .lg-soc { width: 9px; height: 9px; background: var(--ink); }
.z-legende .lg-pale { opacity: 0.35; }
.lg-ic { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Le signal du haut de page : le trait part sous l'amas du périmètre, la carte s'efface d'un coup au défilement */
.o-collant .signaux::before { left: var(--lx, 22%); top: calc(-1 * var(--lh, 46px)); height: var(--lh, 46px); opacity: 0.55; }
.o-collant .signaux { transition: opacity 180ms ease, transform 240ms var(--ease); }
.o-collant .signaux.loin { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* Petit écran : une seule colonne, la carte du périmètre entre le titre et les apports */
@media (max-width: 900px) {
  .o-grille { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 20px; }
  .o-textes, .o-pas-2, .o-scene, .o-collant { display: contents; }
  .o-collant > * { grid-area: auto; }
  .o-pas { min-height: 0; }
  .o-pas-1 { order: 1; padding: 36px 0 8px; }
  .o-pas-1 h1 { max-width: none; }
  .hero-carte { order: 2; }
  .o-collant .hero-carte { width: 100%; max-width: 520px; margin: 0 auto; }
  .o-pas-2 h2 { order: 3; margin: 48px 0 0; }
  .zoom { order: 4; margin-top: 18px; padding: 14px 14px 12px; }
  .piliers { order: 5; margin-top: 14px; }
  .o-note { order: 6; margin: 14px 0 56px; }
}
@media (max-width: 640px) {
  .z-tete { flex-direction: column-reverse; gap: 8px; }
  .z-compte { font-size: 16px; }
  .z-lab { font-size: 16.5px; stroke-width: 4.5px; }
  .o-pas-1 h1 { font-size: clamp(32px, 9vw, 40px); }
}
@media (prefers-reduced-motion: reduce) {
  .z-pt, .z-pt-g, .z-pt-p, .z-dot, .z-badge, .z-lab, .z-an, .pilier { transition: none; }
}

/* Le trait du signal se dessine avec la carte du signal, pas avant */
.o-collant .signaux::before { opacity: 0; transform: scaleY(0); transform-origin: top; transition: opacity 300ms ease, transform 600ms var(--ease); }
.o-collant .signaux.on::before { opacity: 0.55; transform: none; }
@media (prefers-reduced-motion: reduce) { .o-collant .signaux::before { transition: none; } }


/* v14 · De la pièce à la fiche : la thèse vérifiée à droite de chaque pièce */
#actes .a-piece { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
#actes .a-fiche { justify-content: flex-start; gap: 6px; padding: 20px 20px 22px 18px; }
.fm-nom { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.fm-ville { font-size: 13px; color: var(--ink-3); }
.fm-these { margin: 6px 0 4px; }
.fm-these li { font-size: 12.5px; }
#actes .a-fait { font-size: 15.5px; }
.fm-tampon { position: static; align-self: flex-start; margin-top: 8px; font-size: 11.5px; opacity: 0; animation: none; }
.a-piece.vu .fm-tampon { animation: tampon 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 1400ms both; }
@media (max-width: 640px) { .fm-tampon { transform: rotate(-7deg); } }
@media (prefers-reduced-motion: reduce) { .a-piece .fm-tampon, .a-piece.vu .fm-tampon { animation: none; opacity: 0.82; transform: rotate(-7deg); } }
.fige .fm-tampon { opacity: 0.82; transform: rotate(-7deg); }
#actes .papier td:last-child { white-space: nowrap; padding-left: 10px; }
@media (max-width: 900px) { #actes .a-piece { grid-template-columns: minmax(0, 1fr); } #actes .a-fiche { padding: 16px 18px 18px; } }

/* v16 · Pièces des autres pays : les valeurs longues passent à la ligne */
#actes .papier-libre td:last-child { white-space: normal; text-align: right; }
#actes .papier-libre td { vertical-align: top; }
#actes .papier-libre td:first-child { padding-right: 10px; }
