/* SS2R Consulting — design system aligné sur la charte ss2r.fr (Geist, papier / encre / tiffany / nuit). */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F4F5F6; --surface: #FFFFFF; --ink: #111317; --ink-2: #2A2E34; --muted: #5A626A; --line: #DADDE1; --soft: #E9ECEE;
  --night: #0A3538; --night-ink: #EEF8F8; --night-muted: #9CCBCB; --night-line: #1F5256;
  --accent: #077A75; /* contraste AA (≥ 4,5:1) sur blanc, papier et teinte */ --btn: #0ABAB5; --btn-h: #09A6A1; --accent-2: #0ABAB5; --accent-3: #81D8D0; --tint: #DFF4F2;
  --ok: #0E7A4E; --ok-bg: #E3F5EC; --warn: #8A5A00; --warn-bg: #FBF0D9; --err: #B3261E; --err-bg: #FBEAEA; --info: #077A75; --info-bg: #DFF4F2;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1200px; --hh: 68px; --r: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -28px rgba(13, 51, 49, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
::selection { background: var(--accent-3); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; }
h2 { font-size: 20px; line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 16.5px; margin: 20px 0 10px; }
p { margin: 0 0 14px; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .88em; }
.small { font-size: 12px; word-break: break-all; }
.muted { color: var(--muted); }
.light { font-weight: 300; color: var(--accent); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Étiquette mono avec point tiffany (signature SS2R) */
.label, .eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.label::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); flex: none; }

.env-banner { position: relative; z-index: 30; background: var(--night); color: var(--accent-3); text-align: center; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 8px; }
.env-banner::before { content: "●"; margin-right: 8px; color: var(--btn); }

/* ---------- Wordmark SS2R + « Consulting » ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); height: 44px; }
.wm { display: inline-flex; align-items: baseline; font: 700 25px/1 var(--sans); letter-spacing: -.05em; color: var(--ink); }
.wm .w2 { color: transparent; -webkit-text-stroke: 1.3px var(--accent-2); margin: 0 .015em; }
.wm-sub { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); height: 20px; display: inline-flex; align-items: center; }
/* SS2I → SS2R : le I est barré, tombe, le R s'installe */
.ws { position: relative; display: inline-grid; }
.ws > span { grid-area: 1/1; display: block; }
.ws .wi { position: relative; justify-self: center; color: var(--muted); opacity: 0; }
.ws .wi::after { content: ""; position: absolute; left: -.16em; right: -.16em; top: 52%; height: .09em; border-radius: .05em; background: var(--accent-2); transform: scaleX(0); transform-origin: left; }
.wm-anim .wi { animation: cI 7s var(--ease) 1.2s infinite both; }
.wm-anim .wi::after { animation: cS 7s var(--ease) 1.2s infinite both; }
.wm-anim .wr { animation: cR 7s var(--ease) 1.2s infinite both; }
@keyframes cI { 0%, 14% { opacity: 1; transform: none; } 24%, 90% { opacity: 0; transform: translateY(40%) rotate(-7deg); } 91% { opacity: 0; transform: translateY(-40%); } 100% { opacity: 1; transform: none; } }
@keyframes cS { 0%, 3% { transform: scaleX(0); } 11%, 90% { transform: scaleX(1); } 91%, 100% { transform: scaleX(0); } }
@keyframes cR { 0%, 18% { opacity: 0; transform: translateY(-45%); } 28%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(40%); } }

/* ---------- Boutons (pilule tiffany, texte encre) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font: 500 14.5px/1 var(--sans); padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .3s; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--btn); border-color: var(--btn); color: var(--ink) !important; }
.btn-primary:hover { background: var(--btn-h); border-color: var(--btn-h); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(10, 186, 181, .75); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-secondary, .btn-ghost { background: transparent; }
.btn-danger { color: var(--err); border-color: #EBC3C0; background: var(--surface); }
.btn-danger:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.btn-small { padding: 8px 13px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
form.inline { display: inline; }

/* ---------- En-tête public (verre dépoli, comme ss2r.fr) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hh); }
.nav-desktop { display: none; align-items: center; gap: clamp(14px, 1.6vw, 24px); font-size: 14.5px; white-space: nowrap; flex-wrap: nowrap; }
.nav-desktop a { white-space: nowrap; flex: none; }
.nav-desktop a:not(.btn) { position: relative; text-decoration: none; color: var(--muted); padding-block: 6px; transition: color .2s; }
.nav-desktop .nav-sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.nav-desktop .nav-account { color: var(--ink); font-weight: 500; }
.nav-mobile .nav-sep { display: none; }
.nav-desktop a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { color: var(--ink); }
.nav-desktop a:not(.btn):hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop .btn { padding: 10px 18px; font-size: 14px; }
.nav-mobile > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); display: grid; place-items: center; font-size: 0; position: relative; }
.nav-mobile > summary::before, .nav-mobile > summary::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-mobile > summary::before { top: 16px; } .nav-mobile > summary::after { top: 24px; }
.nav-mobile[open] > summary::before { transform: translateY(4px) rotate(45deg); }
.nav-mobile[open] > summary::after { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: fixed; left: 0; right: 0; top: var(--hh); display: flex; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 40px) 20px; box-shadow: 0 20px 30px -24px rgba(13, 51, 49, .4); }
.nav-mobile nav a:not(.btn) { font-size: 19px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nav-mobile nav .btn { margin-top: 16px; }
@media (min-width: 1120px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }
.site-header .brand { flex: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot .wm { font-size: 34px; } .foot .wm .w2 { -webkit-text-stroke-width: 1.6px; }
.foot .sig { font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 0; }
.foot .sig b { color: var(--accent); font-weight: 500; }
.foot h4, .foot .foot-h { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a, .legal-bar a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot a:hover, .legal-bar a:hover { color: var(--accent); }
.legal-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.legal-bar nav { display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brandcol { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Sections publiques ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.surface { background: var(--surface); border-block: 1px solid var(--line); }
.section.tint { background: var(--tint); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2, .big-h2 { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.04; margin: 0; }
.head p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; } }

/* Hero : grand wordmark SS2R, le 2 évidé */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--accent-2) 40%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 60% at 80% 20%, #000 0%, transparent 70%); mask-image: radial-gradient(60% 60% at 80% 20%, #000 0%, transparent 70%); opacity: .6; pointer-events: none; }
.hero .wrap { position: relative; }
.mark { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); margin-top: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.mark .word-big { font: 700 clamp(84px, 17vw, 236px)/.8 var(--sans); letter-spacing: -.055em; color: var(--ink); }
.mark .word-big .two { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--accent-2); }
.mark .tagline { font: 500 clamp(12px, 1.2vw, 14px)/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 0 0 .9em; border-top: 1.5px dashed var(--accent-2); padding-top: 14px; min-width: 180px; }
.mark .tagline b { display: block; color: var(--ink); font-weight: 600; font-size: 1.35em; letter-spacing: .2em; }
.hero-foot { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.08; max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side p { color: var(--muted); max-width: 44ch; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .hero-foot { grid-template-columns: 1fr; } }

/* Piliers numérotés, barre tiffany qui s'étire */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { position: relative; padding: 32px 36px 40px 0; display: flex; flex-direction: column; gap: 12px; }
.pillar::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 3px; background: var(--accent-2); transition: width .6s var(--ease); }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar + .pillar::before { left: 36px; }
.pillar:hover::before { width: calc(100% - 36px); }
.n { font: 500 12px/1 var(--mono); color: var(--accent-2); letter-spacing: .08em; }
.pillar h3 { font-size: 21px; line-height: 1.25; margin: 0; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 36ch; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar { padding: 28px 0; } .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .pillar + .pillar::before { left: 0; } }

/* Parcours de A à Z (phases) */
.phases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.phase { position: relative; display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 56px); padding: 32px 0; border-bottom: 1px solid var(--line); }
.phase::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.phase:hover::after { transform: scaleX(1); }
.phase .ph { display: flex; flex-direction: column; gap: 10px; }
.phase .ph h3 { font-size: 27px; line-height: 1.1; margin: 0; transition: color .3s, transform .4s var(--ease); }
.phase:hover .ph h3 { color: var(--accent); transform: translateX(6px); }
.phase .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.item h4 { font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.item h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); flex: none; transform: translateY(-2px); transition: background .3s; }
.phase:hover .item h4::before { background: var(--accent); }
.item p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .phase { grid-template-columns: 1fr; } .phase .items { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .phase .items { grid-template-columns: 1fr; } }

/* Bento de fonctionnalités */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 8px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.cell:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.cell .n { text-transform: uppercase; margin-bottom: 10px; }
.cell h3 { font-size: 20px; line-height: 1.25; margin: 0; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; }
.cell.span3 { grid-column: span 3; } .cell.span2 { grid-column: span 2; }
.cell.feature { background: var(--night); border-color: var(--night); color: var(--night-ink); overflow: hidden; }
.cell.feature p { color: var(--night-muted); } .cell.feature .n { color: var(--accent-3); }
.cell.feature::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(129, 216, 208, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 216, 208, .07) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
@media (max-width: 900px) { .cell.span2, .cell.span3 { grid-column: span 3; } }
@media (max-width: 600px) { .cell.span2, .cell.span3 { grid-column: span 6; } }

/* Section nuit (citation / conviction) */
.night { position: relative; overflow: hidden; isolation: isolate; color: var(--night-ink); background: radial-gradient(70% 90% at 78% 45%, #11575B 0%, var(--night) 55%, #05262A 100%); }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(129, 216, 208, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 216, 208, .07) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(70% 90% at 70% 50%, #000 25%, transparent 80%); mask-image: radial-gradient(70% 90% at 70% 50%, #000 25%, transparent 80%); }
.night blockquote { margin: 0; font: 300 clamp(28px, 3.2vw, 44px)/1.14 var(--sans); letter-spacing: -.03em; max-width: 22ch; }
.night blockquote strong { font-weight: 600; color: var(--accent-3); }
.night .label { color: var(--night-muted); } .night .label::before { background: var(--accent-3); }
.night .values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.night .values span { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink); border: 1px solid var(--night-line); border-radius: 999px; padding: 10px 14px; }
.night .values span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3); margin-right: 8px; vertical-align: 1px; }

/* Puces d'expertise */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; background: var(--surface); transition: border-color .3s, background .3s; }
.chips span:hover { border-color: var(--accent-2); background: var(--tint); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.jobs li { position: relative; padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); }
.jobs li::before { content: ""; position: absolute; left: 0; top: 25px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent-2); transition: background .3s; }
.jobs li:hover::before { background: var(--accent-2); }
.jobs h4, .jobs h3 { font-size: 17px; margin-bottom: 4px; }
.jobs p { margin: 0; color: var(--muted); font-size: 15px; }

/* Bandeau d'appel final (teinte tiffany, comme le contact ss2r.fr) */
.cta-band { background: var(--tint); padding-block: clamp(64px, 8vw, 104px); }
.cta-band .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 88px); align-items: end; }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 62px); line-height: 1; margin: 0; }
.cta-band h2 em { font-style: normal; color: var(--accent); }
.cta-band .side { border-top: 2px solid var(--accent); padding-top: 22px; }
.cta-band .side p { color: var(--ink-2); }
@media (max-width: 900px) { .cta-band .grid { grid-template-columns: 1fr; } }

/* Pages de contenu */
.page { padding-block: clamp(48px, 6vw, 80px) 24px; }
.page h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; margin-bottom: 18px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .label, .center .eyebrow { justify-content: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 500 13px/1.6 var(--mono); color: var(--accent-2); }
.steps strong { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.steps span { color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--accent-2); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--muted); max-width: 64ch; }
.guide-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.guide-card:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.guide-card h2 { font-size: 20px; margin: 0; }
.guide-card p { color: var(--muted); margin: 0; font-size: 15px; }
.guide-card span { margin-top: auto; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.guide h2 { margin-top: 1.8em; font-size: 24px; }
.guide p { color: var(--ink-2); font-size: 17px; }
.crumbs { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.legal-page h2 { margin-top: 1.6em; font-size: 20px; }
.legal-page .dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.auth { max-width: 480px; padding-block: 56px; }
.form-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -45px rgba(13, 51, 49, .5); }
.form-card .fh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-card .fh h2 { margin: 0; font-size: 20px; }
.secure { font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.secure::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 18px 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid.one { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font: 500 13.5px/1.2 var(--sans); color: var(--ink); }
.field em { color: var(--accent); font-style: normal; }
.field small { color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; min-height: 44px; }
select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A626A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9AA1A8; }
input:hover, select:hover, textarea:hover { border-color: #C3C8CD; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 18%, transparent); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent-2); flex: none; }
input[type="file"] { padding: 9px; background: color-mix(in srgb, var(--tint) 55%, var(--surface)); border: 1.5px dashed var(--accent-2); border-radius: 12px; cursor: pointer; }
input[type="file"]::file-selector-button { font: 500 13px var(--sans); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; margin-right: 12px; cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { margin-top: 2px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 6px 0; }
.form-inline .field { flex: 1 1 200px; }
.form-inline > input:not([type="hidden"]) { width: auto; flex: 1 1 160px; min-height: 38px; padding: 8px 11px; }
.inline-upload { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-upload input { width: auto; max-width: 240px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.filters .field { flex: 1 1 170px; }

/* ---------- Messages, badges ---------- */
.flash { padding: 13px 16px; border-radius: 8px; margin: 0 0 18px; border: 1px solid; font-size: 14.5px; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.flash-success { background: var(--ok-bg); border-color: #B7E3CB; color: #0B5A3A; }
.flash-error { background: var(--err-bg); border-color: #F0C4C0; color: #8C1D18; }
.flash-info { background: var(--tint); border-color: var(--accent-3); color: #065E5A; }
.empty { color: var(--muted); font-size: 14.5px; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--soft); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-success { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--err-bg); color: var(--err); }
.badge-info { background: var(--tint); color: var(--accent); }

/* ---------- Cartes, tableaux, statistiques ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.2vw, 26px); margin: 0 0 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 18px; }
.card-head a { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.grid-2 { display: grid; gap: 16px; }
.grid-2 > .card { margin: 0; }
@media (min-width: 980px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 + .card, .grid-2 + .grid-2, .card + .grid-2 { margin-top: 16px; }
.stack > * + * { margin-top: 12px; }
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(26px, 3vw, 38px); margin: 0 0 6px; }
.page-header .muted { margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.card .table-wrap { border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); white-space: nowrap; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: color-mix(in srgb, var(--tint) 45%, transparent); }
tr:last-child td { border-bottom: 0; }
td input, td select { min-height: 36px; padding: 7px 10px; background: var(--surface); }
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; margin: 0; }
.dl dt, .dl dd { padding: 9px 0; border-top: 1px dashed var(--line); }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 0; }
.dl dt { font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 18px; width: 28px; height: 3px; background: var(--accent-2); transition: width .5s var(--ease); }
a.stat:hover { border-color: var(--accent-2); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
a.stat:hover::before { width: calc(100% - 36px); }
.stat-value { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat-title { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat.warn::before { background: #E0A100; } .stat.danger::before { background: var(--err); }
.pagination { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 18px 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent-2); }
.todo a { color: var(--ink); text-decoration: none; font-weight: 500; }
.todo a:hover { color: var(--accent); }
.plain { margin: 0; padding-left: 18px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; border-left: 1.5px solid var(--line); padding: 2px 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.timeline li span { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline p { margin: 4px 0 0; white-space: pre-wrap; }
.progress { width: 100%; height: 6px; margin: 0 0 20px; accent-color: var(--accent-2); border-radius: 999px; }
progress.progress { -webkit-appearance: none; appearance: none; border: 0; background: var(--soft); overflow: hidden; }
progress.progress::-webkit-progress-bar { background: var(--soft); }
progress.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: var(--accent-2); }

/* ---------- Espace consultant ---------- */
body.private { background: var(--paper); }
.app-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--line); }
.app-header .bar { display: flex; align-items: center; gap: 16px; height: var(--hh); }
.app-header .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--night); color: var(--night-ink); display: grid; place-items: center; font: 600 13px/1 var(--sans); letter-spacing: -.02em; }
.app-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { position: relative; white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.app-nav a:hover { color: var(--ink); background: var(--soft); }
.app-nav a[aria-current="page"] { color: var(--ink); background: var(--tint); font-weight: 500; }
.app-main { padding-block: 32px 64px; }
.welcome { position: relative; overflow: hidden; isolation: isolate; border-radius: 14px; padding: clamp(24px, 3.5vw, 40px); margin-bottom: 16px; color: var(--night-ink); background: radial-gradient(70% 120% at 85% 30%, #11575B 0%, var(--night) 60%, #05262A 100%); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(129, 216, 208, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 216, 208, .08) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(70% 100% at 80% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 100% at 80% 40%, #000 20%, transparent 80%); }
.welcome .label { color: var(--night-muted); } .welcome .label::before { background: var(--accent-3); }
.welcome h1 { color: var(--night-ink); font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 10px; }
.welcome h1 .light { color: var(--accent-3); }
.welcome p { color: var(--night-muted); margin: 0; max-width: 60ch; }
.welcome .badge { background: rgba(129, 216, 208, .16); color: var(--accent-3); }

/* Calendrier CRA : liste sur mobile, grille 7 colonnes au-delà */
.calendar { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 720px) { .calendar { grid-template-columns: repeat(7, 1fr); } }
.day { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s, background .2s; }
@media (min-width: 720px) { .day { flex-direction: column; align-items: stretch; } }
.day.weekend { background: var(--paper); }
.day.worked { border-color: var(--accent-2); background: color-mix(in srgb, var(--tint) 60%, var(--surface)); }
.day-label { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day select { min-height: 34px; padding: 5px 30px 5px 10px; width: auto; background-color: var(--surface); background-position: right 10px center; }
@media (min-width: 720px) { .day select { width: 100%; } }
.day-value { font-weight: 600; }
.total { font-size: 17px; margin: 18px 0; }
.total strong { font-size: 26px; letter-spacing: -.03em; color: var(--accent); }

/* Support : fil de discussion */
.thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.msg { max-width: 760px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.msg.mine { align-self: flex-end; background: var(--tint); border-color: var(--accent-3); }
.msg.internal { background: var(--warn-bg); border-color: #EBD49E; }
.msg-meta { font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Back-office : barre latérale nuit ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar { position: relative; isolation: isolate; background: var(--night); color: var(--night-muted); padding: 18px 16px; }
.sidebar::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(129, 216, 208, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 216, 208, .05) 1px, transparent 1px); background-size: 28px 28px; }
.sidebar .brand { color: var(--night-ink); padding: 0 8px; }
.sidebar .wm { color: var(--night-ink); font-size: 23px; }
.sidebar .wm-sub { color: var(--night-muted); border-left-color: var(--night-line); }
.sidebar .menu > summary { color: var(--night-ink); border: 1px solid var(--night-line); border-radius: 999px; display: inline-block; padding: 7px 14px; margin: 10px 0 4px 8px; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; list-style: none; }
.sidebar .menu > summary::-webkit-details-marker { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { position: relative; color: #CFE7E6; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; transition: background .2s, color .2s; }
.sidebar nav a:hover { background: rgba(129, 216, 208, .1); color: #fff; }
.sidebar nav a[aria-current="page"] { background: rgba(10, 186, 181, .18); color: #fff; }
.sidebar nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--btn); }
.nav-group { margin: 18px 0 6px 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6FA7A7; }
.sidebar-foot { display: flex; flex-direction: column; gap: 8px; margin: 22px 8px 0; padding-top: 16px; border-top: 1px solid var(--night-line); font-size: 13px; overflow-wrap: anywhere; }
.sidebar-foot .muted { color: var(--accent-3); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.sidebar-foot a, .sidebar-foot button.link { color: var(--night-ink); }
.admin-main { padding: 24px clamp(16px, 3vw, 40px) 64px; min-width: 0; max-width: 1400px; }
@media (min-width: 1040px) {
  .admin-shell { grid-template-columns: 258px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .sidebar .menu > summary { display: none; }
  .admin-main { padding-top: 36px; }
}
.mfa-setup ol { padding-left: 20px; }
.mfa-setup .qr { width: 208px; margin: 14px 0; background: var(--surface); padding: 10px; border: 1px solid var(--line); border-radius: var(--r); }
.mfa-setup .qr svg { width: 100%; height: auto; display: block; }
.secret { font: 500 16px/1.4 var(--mono); letter-spacing: .1em; color: var(--accent); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes code { display: block; padding: 10px; background: var(--tint); border-radius: 8px; text-align: center; font-size: 15px; color: var(--night); }
.email-preview { overflow-x: auto; }
.printable h1 { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .ws .wi { display: none; } .wm-anim .wr { animation: none !important; opacity: 1; transform: none; }
  .wm-anim .wi, .wm-anim .wi::after { animation: none !important; }
  * { transition: none !important; }
}
@media print {
  .sidebar, .site-header, .site-footer, .app-header, .no-print, .env-banner, .actions { display: none !important; }
  .admin-shell { display: block; }
  .card { border: 0; }
  body, body.private { background: #fff; }
}
.flash-wrap { padding-top: 20px; }
.who-name { display: none; }
@media (min-width: 760px) { .who-name { display: inline; } }
.foot-pitch { margin-top: 16px; max-width: 38ch; }
[data-mt] { margin-top: 24px; }
.center .lead { margin-inline: auto; }
.center .cta-row { justify-content: center; }
.direct { margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--accent); }
.direct .addr { display: inline-block; color: var(--accent); font: 500 clamp(22px, 2.4vw, 30px)/1.2 var(--sans); letter-spacing: -.02em; text-decoration: none; word-break: break-all; }
.direct .addr:hover { text-decoration: underline; }
.split > .form-card { align-self: start; }
.auth form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 32px); box-shadow: 0 30px 60px -45px rgba(13, 51, 49, .5); margin: 8px 0 18px; }
.auth h1 { font-size: clamp(30px, 3.4vw, 42px); }
.auth > p a { font-weight: 500; }
.table-wrap + form, .table-wrap + .form-grid, .table-wrap + h3, .empty + form { margin-top: 20px; }

/* ---------- Place de marché ---------- */
.catalog { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 18px; }
.profile-card, .offer-card { text-decoration: none; color: var(--ink); gap: 12px; }
.profile-card:hover, .offer-card:hover { color: var(--ink); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-head .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; flex: none; }
.pc-head strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.pc-head .muted { display: block; font-size: 14px; line-height: 1.35; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.pc-foot strong { margin-left: auto; color: var(--accent); }
.offer-card h3 { font-size: 19px; }
.small-chips span { font-size: 12.5px; padding: 5px 10px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.app-header .bar > .badge { margin-left: 4px; }
.profile-card .n, .offer-card .n { text-transform: none; letter-spacing: 0; font: 500 13.5px/1.4 var(--sans); color: var(--accent); margin: 0; }

/* ---------- 5.0 : notifications, matching, étapes du besoin, CV digital, univers ---------- */
.bell { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; flex: none; }
.bell:hover { border-color: var(--accent); color: var(--accent); }
.bell b { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--btn); color: var(--ink); font: 600 10.5px/18px var(--sans); text-align: center; }
.sidebar-bell b { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--btn); color: var(--ink); font: 600 11px/18px var(--sans); text-align: center; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif-list li:last-child { border-bottom: 0; }
.notif-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.notif-list li.unread::before { background: var(--btn); }
.notif-list li.unread a { font-weight: 600; color: var(--ink); }
.notif-list a { text-decoration: none; color: var(--ink-2); }
.notif-list a small { display: block; font-weight: 400; color: var(--muted); }
.notif-list .when { font-size: 13px; margin-left: auto; white-space: nowrap; color: var(--muted); }
.match { font-variant-numeric: tabular-nums; }
.match-details { margin: 6px 0; }
.match-details > summary { cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; font-size: 13.5px; }
.match-details > summary::-webkit-details-marker { display: none; }
.criteria { list-style: none; margin: 10px 0 4px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.crit { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 8px 12px; font-size: 13.5px; border-top: 1px solid var(--line); }
.crit:first-child { border-top: 0; }
.crit-name { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.crit-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--soft); flex: none; }
.crit-ok .crit-name::before, .crit-na .crit-name::before { background: var(--ok); }
.crit-partial .crit-name::before, .crit-unknown .crit-name::before { background: #E0A100; }
.crit-ko .crit-name::before { background: var(--err); }
.crit-detail { color: var(--muted); }
.crit-pts { font: 500 12px/1.6 var(--mono); color: var(--ink-2); white-space: nowrap; }
.small-note { font-size: 12.5px; margin: 6px 0 0; }
@media (max-width: 640px) { .crit { grid-template-columns: 1fr auto; } .crit-detail { grid-column: 1 / -1; order: 3; } }
.stages { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; counter-reset: st; }
.stages li { counter-increment: st; position: relative; padding: 12px 10px 10px; border-top: 3px solid var(--soft); font: 500 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stages li::before { content: "0" counter(st); display: block; margin-bottom: 4px; color: var(--line); }
.stages li.done { border-top-color: var(--accent-3); color: var(--ink-2); }
.stages li.current { border-top-color: var(--btn); color: var(--ink); background: var(--tint); border-radius: 0 0 8px 8px; }
.stages li.done::before, .stages li.current::before { color: var(--accent); }
@media (max-width: 900px) { .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.pipeline a { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .3s, transform .3s var(--ease); }
.pipeline a:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.pipeline strong { font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.pipeline span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cockpit { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cockpit .card { margin: 0; }
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.kv li:last-child { border-bottom: 0; }
.kv a { color: var(--ink); text-decoration: none; }
.kv a:hover { color: var(--accent); }
.kv b { font-variant-numeric: tabular-nums; }
.kv b.hot { color: var(--err); }
.timeline.cv li strong { display: block; font-size: 15.5px; }
.small-link { font-size: 12.5px; color: var(--err); }
.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.universe { position: relative; border-radius: 14px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.universe.dark { background: radial-gradient(70% 120% at 85% 30%, #11575B 0%, var(--night) 60%, #05262A 100%); border-color: var(--night); color: var(--night-ink); }
.universe.dark p, .universe.dark .n { color: var(--night-muted); }
.universe h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0; }
.universe p { margin: 0; color: var(--muted); }
.choices { display: grid; gap: 8px; margin-top: 8px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.choice:hover { border-color: var(--accent-2); transform: translateX(3px); color: var(--ink); }
.universe.dark .choice { background: rgba(255, 255, 255, .06); border-color: var(--night-line); color: var(--night-ink); }
.universe.dark .choice small { color: var(--night-muted); }
.universe.dark .choice:hover { border-color: var(--accent-3); color: #fff; }
@media (max-width: 820px) { .universes { grid-template-columns: 1fr; } }
.app-header .who { gap: 10px; }
.pitch { border-left: 3px solid var(--btn); padding: 4px 0 4px 14px; margin: 0 0 14px; color: var(--ink-2); }
.present-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.present-row:last-child { border-bottom: 0; }
.present-row input[type="text"] { min-height: 38px; }

/* 5.1 */
details.card > summary { cursor: pointer; list-style: none; padding: 4px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 14px; }

/* ================================================================== 6.0.2 — accueil animé (charte ss2r.fr) */
:root { --dot: #C7D2D3; }
.hero-home { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 104px); }
.hero-home::before { display: none; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 78%); }
.mark-cols { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; margin-top: clamp(26px, 4vw, 44px); }
.mark-cols .col { display: flex; flex-direction: column; align-items: stretch; gap: 16px; opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.mark-cols .col:nth-child(2) { animation-delay: .08s; } .mark-cols .col:nth-child(3) { animation-delay: .16s; } .mark-cols .col:nth-child(4) { animation-delay: .24s; }
.mark-cols .ch { font: 700 clamp(88px, 20vw, 280px)/.78 var(--sans); letter-spacing: -.055em; color: var(--ink); text-align: center; transition: color .4s; }
.mark-cols .col.two .ch { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--accent-2); }
.mark-cols .col:not(.two):hover .ch { color: var(--accent); }
.mark-cols .word { position: relative; font: 500 clamp(10px, 1vw, 12px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 13px; text-align: center; }
.mark-cols .word b { font-weight: 700; color: var(--ink); }
.mark-cols .word::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); animation: draw 1.1s var(--ease) .5s forwards; }
.mark-cols .col.two .word { color: var(--accent); font-weight: 600; }
.mark-cols .col.two .word::before { display: none; }
.mark-cols .arrow { position: absolute; left: 0; top: 0; width: var(--reach, 100%); border-top: 1.5px dashed var(--accent-2); transform-origin: left; transform: scaleX(0); animation: draw 1.2s var(--ease) .55s forwards; }
.mark-cols .arrow::after { content: ""; position: absolute; right: 0; top: -5.5px; width: 8px; height: 8px; border-top: 1.5px solid var(--accent-2); border-right: 1.5px solid var(--accent-2); transform: rotate(45deg); }
.mark-cols .arrow i { position: absolute; top: -4.5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent); opacity: 0; animation: travel 3.2s var(--ease) 1.8s infinite; }
.mark-cols .col.two:hover .arrow i { animation-duration: 1.6s; }
.mark-cols .ch.hs { display: grid; justify-items: center; }
.hs > span { grid-area: 1/1; display: block; }
.hs .hi { position: relative; color: var(--muted); animation: cI 7s var(--ease) .6s infinite both; }
.hs .hi::after { content: ""; position: absolute; left: -.2em; right: -.2em; top: 52%; height: .035em; border-radius: .03em; background: var(--accent-2); transform: scaleX(0); transform-origin: left; animation: cS 7s var(--ease) .6s infinite both; }
.hs .hr { animation: cR 7s var(--ease) .6s infinite both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.hero-home .hero-foot { margin-top: clamp(44px, 6vw, 76px); }
.hero-home h1 { font-size: clamp(32px, 3.8vw, 52px); max-width: 17ch; }
.hero-home .hero-side p { margin: 0 0 24px; }
.prompt { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 0 22px !important; padding: 10px 16px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -22px rgba(10, 53, 56, .6); font-size: 15.5px !important; color: var(--ink) !important; max-width: 100% !important; }
.prompt .spark { width: 18px; height: 18px; flex: none; color: var(--accent-2); animation: twinkle 4s var(--ease) infinite; }
.prompt .pre { color: var(--muted); }
.prompt .typed { font-weight: 600; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt .caret { width: 2px; height: 1.15em; background: var(--accent-2); margin-left: -6px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.85); } }
.discreet { display: flex; gap: 10px; align-items: center; margin: 18px 0 0 !important; font-size: 14px !important; }
.discreet a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.discreet a:hover { color: var(--accent); border-color: var(--accent); }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.diff { position: relative; padding: 28px 24px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.diff::before { content: ""; position: absolute; top: -1px; left: 24px; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-2); transition: width .5s var(--ease); }
.diff:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.diff:hover::before { width: calc(100% - 48px); }
.diff h3 { font-size: 19px; line-height: 1.25; margin: 14px 0 8px; }
.diff p { margin: 0; color: var(--muted); font-size: 15px; }
.flow { position: relative; margin: 0 0 clamp(40px, 5vw, 64px); padding: 22px 0 6px; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.flow ol::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; border-top: 1.5px dashed var(--accent-3); }
.flow li { position: relative; display: flex; flex-direction: column; gap: 14px; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.flow .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-2); position: relative; z-index: 1; }
.flow.in li .dot { animation: pop .5s var(--ease) calc(var(--i) * .12s + .2s) both; }
.flow li:last-child .dot { background: var(--accent-2); }
.flow .runner { position: absolute; top: 24px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 25%, transparent); opacity: 0; }
.flow.in .runner { animation: run 6s var(--ease) 1.2s infinite; }
@keyframes pop { 0% { transform: scale(.4); background: var(--accent-2); } 60% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes run { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.diff[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0s; }
@media (max-width: 1000px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .mark-cols .word { font-size: 9px; letter-spacing: .06em; }
  .diff-grid { grid-template-columns: 1fr; }
  .flow ol { grid-template-columns: 1fr; gap: 14px; }
  .flow ol::before { left: 6px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px dashed var(--accent-3); }
  .flow li { flex-direction: row; align-items: center; }
  .flow .runner { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mark-cols .col, .mark-cols .word::before, .mark-cols .arrow { animation: none; opacity: 1; transform: none; }
  .mark-cols .arrow i, .hs .hi, .hs .hi::after, .flow .runner, .prompt .spark, .prompt .caret { animation: none; }
  .hs .hi { display: none; } .hs .hr { opacity: 1; animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ================================================================== Fenêtre de confirmation */
dialog.confirm { border: 0; padding: 30px 30px 24px; border-radius: 18px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(10, 53, 56, .55), 0 0 0 1px var(--line); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .18s var(--ease), transform .22s var(--ease); }
dialog.confirm.open { opacity: 1; transform: none; }
dialog.confirm::backdrop { background: rgba(8, 30, 32, .45); backdrop-filter: blur(3px); }
dialog.confirm h2 { font-size: 20px; margin: 14px 0 8px; letter-spacing: -.01em; }
dialog.confirm p { margin: 0 0 24px; color: var(--muted); line-height: 1.55; }
.confirm-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; }
.confirm-icon::before { content: ""; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--ico-alert) center/contain no-repeat; mask: var(--ico-alert) center/contain no-repeat; }
dialog.confirm.danger .confirm-icon { background: var(--err-bg); } dialog.confirm.danger .confirm-icon::before { background: var(--err); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
dialog.confirm .btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
dialog.confirm .btn-danger:hover { background: #95201A; color: #fff; }

/* ================================================================== Notifications (toasts) */
:root {
  --ico-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  --ico-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9a10 10 0 1 0 0 20 10 10 0 0 0 0-20z'/%3E%3C/svg%3E");
}
.toasts { position: fixed; z-index: 60; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 14px 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(10, 53, 56, .45); animation: toastIn .35s var(--ease) both; }
.toast.leaving { animation: toastOut .25s var(--ease) both; }
.toast-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); }
.toast-icon::before { content: ""; width: 15px; height: 15px; background: var(--accent); -webkit-mask: var(--ico-info) center/contain no-repeat; mask: var(--ico-info) center/contain no-repeat; }
.toast-success .toast-icon { background: var(--ok-bg); } .toast-success .toast-icon::before { background: var(--ok); -webkit-mask-image: var(--ico-check); mask-image: var(--ico-check); }
.toast-error .toast-icon { background: var(--err-bg); } .toast-error .toast-icon::before { background: var(--err); -webkit-mask-image: var(--ico-alert); mask-image: var(--ico-alert); }
.toast-body { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2); padding-top: 3px; }
.toast-body strong { font-size: 14.5px; color: var(--ink); }
.toast-error { border-color: #F0C4C0; }
.toast-close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; position: relative; color: var(--muted); }
.toast-close::before, .toast-close::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.toast-close::after { transform: rotate(-45deg); }
.toast-close:hover { background: var(--soft); color: var(--ink); }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent-2); transform-origin: left; animation: toastBar 6s linear forwards; }
.toast-success .toast-bar { background: var(--ok); }
.toast.paused .toast-bar { animation-play-state: paused; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }
@keyframes toastBar { to { transform: scaleX(0); } }
@media (max-width: 600px) { .toasts { top: auto; bottom: 14px; right: 14px; left: 14px; width: auto; } }

/* Messages sans JavaScript (repli) : même langage visuel */
.flash { border-left-width: 4px; border-radius: 10px; }

/* Bouton en cours d'envoi */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } dialog.confirm { transition: none; } .toast-bar { display: none; } }
@media print { .js [data-reveal] { opacity: 1; transform: none; } #field, .toasts, dialog.confirm { display: none; } }

/* ================================================================== 6.0.4 — pages publiques animées (grammaire de l'accueil) */
canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%); }
.hero-page { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 100px); }
.hero-page::before { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-page h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; margin: 0 0 22px; }
.hero-page h1 em { font-style: normal; font-weight: 300; color: var(--accent); }
.hero-page .lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.hero-page .cta-row { margin-top: 4px; }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { justify-self: end; width: 100%; max-width: 480px; opacity: 0; transform: translateY(18px) scale(.98); animation: rise 1.1s var(--ease) .2s forwards; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { justify-self: center; max-width: 380px; } }

.viz { width: 100%; height: auto; display: block; }
.viz text { font-family: var(--mono); }
/* Boucle agile */
.viz-loop .ring { fill: none; stroke: var(--accent-3); stroke-width: 1.5; stroke-dasharray: 3 7; }
.viz-loop .ring-inner { fill: color-mix(in srgb, var(--tint) 70%, transparent); stroke: var(--line); stroke-dasharray: 2 6; transform-box: view-box; transform-origin: 220px 220px; animation: spinSlow 60s linear infinite reverse; }
.viz-loop .ring-path { fill: none; stroke: none; }
.viz-loop .node-halo { fill: var(--accent-2); opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 8s var(--ease) infinite; animation-delay: calc(var(--i) * 2s - .25s); }
.viz-loop .node-dot { fill: var(--surface); stroke: var(--accent-2); stroke-width: 2.5; animation: nodeOn 8s var(--ease) infinite; animation-delay: calc(var(--i) * 2s - .25s); }
.viz-loop .node-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
.viz .runner { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(10, 186, 181, .7)); }
.viz-loop .core circle { fill: var(--night); }
.viz-loop .core-main { fill: #fff; font: 700 22px var(--sans); letter-spacing: .08em; }
.viz-loop .core-sub { fill: var(--accent-3); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
@keyframes nodeOn { 0%, 16%, 100% { fill: var(--surface); } 3%, 10% { fill: var(--accent-2); } }
@keyframes halo { 0% { opacity: 0; transform: scale(.4); } 4% { opacity: .35; } 18%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
/* Co-construction */
.viz-trio .edge { fill: none; stroke: var(--accent-3); stroke-width: 1.5; stroke-dasharray: 4 7; }
.viz-trio .spoke { stroke: var(--line); stroke-width: 1.2; }
.viz-trio .runner.alt { fill: var(--accent-3); }
.viz-trio .core rect { fill: var(--surface); stroke: var(--accent-2); stroke-width: 1.5; }
.viz-trio .core text { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--accent); }
.viz-trio .peer circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: breathe 6s var(--ease) infinite; animation-delay: calc(var(--i) * 2s); }
.viz-trio .peer text { font: 600 16px var(--sans); fill: var(--ink); }
.viz-trio .peer-you circle { fill: var(--night); stroke: var(--night); } .viz-trio .peer-you text { fill: #fff; }
.viz-trio .peer-ss2r circle { fill: var(--btn); stroke: var(--btn); } .viz-trio .peer-ss2r text { font-weight: 700; letter-spacing: .04em; }
.viz-trio .tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 24% { transform: scale(1); } }
/* Fil d'avancement (clients) */
.viz-feed { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 40px 70px -40px rgba(10, 53, 56, .55); overflow: hidden; }
.feed-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feed-head .dots { display: flex; gap: 6px; } .feed-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--soft); }
.feed-head .dots i:first-child { background: var(--accent-3); }
.viz-feed ol { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; min-height: 296px; align-content: start; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); opacity: 0; transform: translateY(10px); }
.feed-item .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent-2); position: relative; }
.feed-item .tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.feed-item .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-item strong { font-size: 14.5px; } .feed-item small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .chip { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--tint); border-radius: 999px; padding: 6px 9px; white-space: nowrap; }
.feed-item.f3 .chip { color: var(--warn); background: var(--warn-bg); }
.feed-item.f1 { animation: feed1 12s var(--ease) infinite; } .feed-item.f2 { animation: feed2 12s var(--ease) infinite; }
.feed-item.f3 { animation: feed3 12s var(--ease) infinite; } .feed-item.f4 { animation: feed4 12s var(--ease) infinite; }
@keyframes feed1 { 0% { opacity: 0; transform: translateY(10px); } 5%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes feed2 { 0%, 14% { opacity: 0; transform: translateY(10px); } 19%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes feed3 { 0%, 30% { opacity: 0; transform: translateY(10px); } 35%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes feed4 { 0%, 48% { opacity: 0; transform: translateY(10px); } 53%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.feed-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--tint) 50%, var(--surface)); font-size: 13px; color: var(--muted); }
.feed-foot b { color: var(--accent); font-weight: 500; }
/* Métiers (expertises) */
.viz-exp ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.viz-exp li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; animation: expOn 10s var(--ease) infinite; animation-delay: calc(var(--i) * 2s); }
.viz-exp .n { font: 500 12px/1 var(--mono); color: var(--accent); }
.viz-exp .t { font-weight: 600; font-size: 16.5px; }
.viz-exp .bar { grid-column: 1 / -1; height: 3px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.viz-exp .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); transform: scaleX(0); transform-origin: left; animation: expBar 10s var(--ease) infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes expOn { 0%, 22%, 100% { border-color: var(--line); transform: none; box-shadow: none; } 4%, 18% { border-color: var(--accent-2); transform: translateX(-8px); box-shadow: var(--shadow); } }
@keyframes expBar { 0% { transform: scaleX(0); } 18% { transform: scaleX(1); } 22%, 100% { transform: scaleX(0); } }

/* Sections des pages publiques */
.flow ol { grid-template-columns: repeat(var(--n, 7), 1fr); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trio-card { position: relative; padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.trio-card:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.trio-card.dark { background: radial-gradient(70% 120% at 85% 20%, #11575B 0%, var(--night) 60%, #05262A 100%); border-color: var(--night); color: var(--night-ink); }
.trio-card h3 { font-size: 22px; line-height: 1.2; margin: 12px 0 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent-2); }
.trio-card.dark .ticks li { color: var(--night-muted); } .trio-card.dark .ticks li::before { border-color: var(--accent-3); }
.trio-card.dark .n { color: var(--accent-3); }
.exp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.exp-card { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.exp-card:nth-child(-n+2) { grid-column: span 3; }
.exp-card::before { content: ""; position: absolute; top: -1px; left: 26px; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-2); transition: width .5s var(--ease); }
.exp-card:hover { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: var(--shadow); }
.exp-card:hover::before { width: calc(100% - 52px); }
.exp-card h3 { font-size: 22px; margin: 4px 0 0; } .exp-card p { margin: 0; color: var(--muted); }
.exp-card .ticks { margin-top: 8px; }
.join-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.join-band h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 10px; } .join-band p { margin: 0; color: var(--muted); }
.join-band .cta-row { justify-content: flex-end; }
.anchor-target { scroll-margin-top: calc(var(--hh) + 24px); }
@media (max-width: 1000px) { .trio { grid-template-columns: 1fr; } .exp-grid { grid-template-columns: 1fr 1fr; } .exp-card, .exp-card:nth-child(-n+2) { grid-column: span 1; } .join-band { grid-template-columns: 1fr; } .join-band .cta-row { justify-content: flex-start; } }
@media (max-width: 640px) { .exp-grid { grid-template-columns: 1fr; } }
.trio-card[data-reveal].in:hover, .exp-card[data-reveal].in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* En-tête : deux espaces mis en avant */
.nav-desktop .btn-space { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.nav-desktop .btn-space:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.nav-mobile .spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.nav-mobile .spaces .btn { margin-top: 0; }

/* Captcha Cloudflare Turnstile */
.captcha { min-height: 65px; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual { animation: none; opacity: 1; transform: none; }
  .viz .runner { display: none; }
  .viz-loop .ring-inner, .viz-loop .node-halo, .viz-loop .node-dot, .viz-trio .peer circle, .viz-exp li, .viz-exp .bar i { animation: none; }
  .feed-item { animation: none !important; opacity: 1; transform: none; }
}
@media print { canvas.field { display: none; } }
.nav-desktop .spaces { display: flex; gap: 10px; align-items: center; }
/* Lisibilité : halo papier derrière le texte des en-têtes (les points restent visibles autour). */
.hero-copy { position: relative; isolation: isolate; }
.hero-copy::before { content: ""; position: absolute; inset: -36px -48px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 92%, transparent) 62%, transparent); pointer-events: none; }

/* ================================================================== 6.0.5 — FR / EN, « Vous vous reconnaissez ? », « Qui fait quoi » */
/* Sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 12px/1 var(--mono); letter-spacing: .08em; flex: none; }
.lang-switch > * { padding: 7px 9px; border-radius: 999px; text-decoration: none; }
.lang-switch .lang-on { background: var(--night); color: #fff; }
.lang-switch a { color: var(--muted); transition: color .2s, background .2s; }
.lang-switch a:hover { color: var(--ink); background: var(--tint); }
.nav-desktop .lang-switch a::after { display: none; }
.nav-mobile .lang-switch { align-self: flex-start; margin-top: 16px; }
.nav-mobile .lang-switch a { border-bottom: 0; font-size: 12px; padding: 7px 9px; }

/* Vous vous reconnaissez ? */
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.persona { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.persona:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
.persona.dark { background: radial-gradient(70% 120% at 85% 20%, #11575B 0%, var(--night) 60%, #05262A 100%); border-color: var(--night); color: var(--night-ink); }
.persona.dark .n { color: var(--accent-3); }
.persona h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; margin: 0; letter-spacing: -.02em; max-width: 22ch; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.persona.dark .checks li { color: var(--night-ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.checks li::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.persona.dark .checks li::before { background: rgba(129, 216, 208, .14); box-shadow: inset 0 0 0 1.5px var(--accent-3); }
.persona.dark .checks li::after { border-color: var(--accent-3); }
.js .persona[data-reveal] .checks li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(.35s + var(--k) * .14s); }
.js .persona[data-reveal].in .checks li { opacity: 1; transform: none; }
.persona-link { margin-top: auto; padding-top: 10px; align-self: flex-start; font-weight: 500; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.persona.dark .persona-link { color: var(--accent-3); }
.persona-link .arr { display: inline-block; transition: transform .25s var(--ease); }
.persona-link:hover .arr { transform: translateX(4px); }
@media (max-width: 860px) { .persona-grid { grid-template-columns: 1fr; } }

/* Qui fait quoi : couloirs client / SS2R / consultant */
.journey { position: relative; display: grid; grid-template-columns: 110px repeat(6, 1fr); grid-template-rows: repeat(3, minmax(108px, auto)); gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.journey .lane { grid-column: 1 / -1; align-self: stretch; display: flex; align-items: center; padding-left: 14px; border-radius: 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.journey .lane-client { background: color-mix(in srgb, var(--tint) 70%, var(--surface)); }
.journey .lane-ss2r { background: color-mix(in srgb, var(--accent-3) 22%, var(--surface)); color: var(--accent); }
.journey .lane-consultant { background: var(--paper); }
.j-steps { display: contents; list-style: none; margin: 0; padding: 0; }
.j-step { position: relative; z-index: 1; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px -22px rgba(10, 53, 56, .6); }
.j-step.who-all { justify-content: center; background: var(--night); border-color: var(--night); color: var(--night-ink); }
.j-step.who-all small { color: var(--night-muted); } .j-step.who-all .j-n { color: var(--accent-3); }
.j-step strong { font-size: 14.5px; line-height: 1.3; } .j-step small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.j-n { font: 500 11px/1 var(--mono); color: var(--accent-2); letter-spacing: .08em; }
.j-who { display: none; }
.j-step:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translate(50%, -50%); font: 500 14px/1 var(--mono); color: var(--accent-2); z-index: 2; }
.journey.in .j-step { animation: jOn 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.5s + .6s); }
@keyframes jOn { 0%, 17%, 100% { border-color: var(--line); transform: none; box-shadow: 0 10px 24px -22px rgba(10, 53, 56, .6); } 3%, 14% { border-color: var(--accent-2); transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(10, 186, 181, .55); } }
.journey .j-progress { position: absolute; left: calc(110px + 28px); right: 18px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.journey .j-progress::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); transform: scaleX(0); transform-origin: left; }
.journey.in .j-progress::after { animation: jBar 9s linear .6s infinite; }
@keyframes jBar { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; grid-template-rows: none; padding: 14px 14px 14px 30px; }
  .journey .lane, .journey .j-progress { display: none; }
  .j-step { grid-column: 1 !important; grid-row: auto !important; margin: 0; }
  .j-step::before { content: ""; position: absolute; left: -19px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 20%, transparent); }
  .j-step:not(:last-child)::after { content: ""; right: auto; left: -15px; top: 30px; bottom: -14px; transform: none; width: 0; border-left: 1.5px dashed var(--accent-3); }
  .j-who { display: inline-block; align-self: flex-start; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--tint); border-radius: 999px; padding: 5px 8px; }
  .j-step.who-all .j-who { background: rgba(129, 216, 208, .16); color: var(--accent-3); }
}
@media (prefers-reduced-motion: reduce) { .journey.in .j-step, .journey.in .j-progress::after { animation: none; } .js .persona[data-reveal] .checks li { opacity: 1; transform: none; transition: none; } }

/* Texte réservé aux lecteurs d’écran */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jobs h3 { margin: 0 0 4px; }
.foot .foot-h { margin-top: 0; }

/* ================================================================== 6.1.0 — relation SS2R, parcours, tableaux « prochaine action » */
/* Relation : client ← contexte — SS2R — expertise → consultant ; mission ; suivi */
.relation { display: flex; flex-direction: column; align-items: center; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.rel-top { display: grid; grid-template-columns: 1fr minmax(70px, .6fr) 1.15fr minmax(70px, .6fr) 1fr; align-items: center; width: 100%; }
.rel-node { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.rel-node strong { font-size: 17px; } .rel-node small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.rel-ss2r { background: var(--night); border-color: var(--night); color: #fff; padding: 26px 18px; box-shadow: 0 24px 50px -30px rgba(10, 53, 56, .8); position: relative; }
.rel-ss2r strong { font-size: 24px; letter-spacing: .02em; } .rel-ss2r small { color: var(--accent-3); font: 500 11.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rel-ss2r::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 1.5px solid var(--accent-2); opacity: 0; }
.relation.in .rel-ss2r::after { animation: relPulse 3.6s var(--ease) 1s infinite; }
@keyframes relPulse { 0% { opacity: .7; transform: scale(.97); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
.rel-mission { min-width: min(320px, 100%); border-color: var(--accent-2); background: color-mix(in srgb, var(--tint) 60%, var(--surface)); }
.rel-follow { min-width: min(320px, 100%); }
.rel-link { position: relative; height: 2px; margin: 0 6px; border-top: 1.5px dashed var(--accent-3); }
.rel-link em { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-style: normal; white-space: nowrap; }
.rel-link i { position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent); opacity: 0; }
.rel-link-l i { left: 0; } .rel-link-r i { right: 0; }
.relation.in .rel-link-l i { animation: relToRight 2.8s var(--ease) .8s infinite; }
.relation.in .rel-link-r i { animation: relToLeft 2.8s var(--ease) .8s infinite; }
@keyframes relToRight { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes relToLeft { 0% { right: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { right: calc(100% - 8px); opacity: 0; } }
.rel-down { position: relative; width: 2px; height: 34px; border-left: 1.5px dashed var(--accent-3); }
.rel-down i { position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); opacity: 0; }
.relation.in .rel-down i { animation: relDown 2.4s var(--ease) 1.4s infinite; }
@keyframes relDown { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
.js .relation[data-reveal] .rel-node { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * .14s + .2s); }
.js .relation[data-reveal].in .rel-node { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .rel-top { grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
  .rel-link { width: 2px; height: 46px; margin: 0 auto; border-top: 0; border-left: 1.5px dashed var(--accent-3); }
  .rel-link em { top: 50%; left: 14px; transform: translateY(-50%); }
  .rel-link i { left: -5px !important; right: auto !important; }
  .relation.in .rel-link-l i, .relation.in .rel-link-r i { animation: relDown 2.4s var(--ease) .8s infinite; }
  .rel-mission, .rel-follow { width: 100%; }
}

/* Parcours en étapes (client, consultant) */
.path { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; position: relative; }
.path-steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; border-top: 1.5px dashed var(--accent-3); }
.path-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding-right: 6px; }
.path-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-2); font: 600 12px/1 var(--mono); color: var(--accent); margin-bottom: 8px; transition: background .3s, color .3s; }
.path-step strong { font-size: 15.5px; line-height: 1.25; } .path-step small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.path-step.is-key .path-dot { background: var(--night); border-color: var(--night); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-2) 22%, transparent); }
.path-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.path-chips span { font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--accent); background: var(--tint); border-radius: 999px; padding: 6px 9px; }
.path.in .path-dot { animation: pathOn 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.5s + .5s); }
@keyframes pathOn { 0%, 15%, 100% { transform: none; } 4%, 11% { transform: scale(1.12); background: var(--accent-2); color: var(--ink); } }
.path-step.is-key .path-dot { animation: none !important; }
.path-branch { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.branch-label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.path-branch ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.path-branch li { font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.path-branch li:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--accent-2); }
.path-branch li:nth-child(2) { background: var(--night); color: #fff; border-color: var(--night); }
@media (max-width: 900px) {
  .path-steps { grid-template-columns: 1fr; gap: 16px; padding-left: 4px; }
  .path-steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 1.5px dashed var(--accent-3); }
  .path-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .path-dot { grid-row: span 3; margin: 0; }
  .path-chips { grid-column: 2; }
}

/* Tableau « prochaine action » des espaces connectés */
.board { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin: 0 0 22px; }
.board-col { position: relative; padding: 18px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.board-col:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 22px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--accent); }
.board-0 { border-color: var(--accent-2); box-shadow: 0 16px 36px -28px rgba(10, 186, 181, .8); }
.board h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0 0 12px; letter-spacing: 0; }
.board-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--accent); font: 600 11px/1 var(--mono); }
.board-0 .board-n { background: var(--accent-2); color: var(--ink); }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li a, .board li > strong { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--paper); text-decoration: none; color: var(--ink); transition: background .2s; }
.board li a:hover { background: var(--tint); }
.board li strong { font-size: 14px; font-weight: 600; } .board li small { color: var(--muted); font-size: 12.5px; }
.board .empty { margin: 0; font-size: 13.5px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } .board-col:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -12px; transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  .relation.in .rel-ss2r::after, .relation .rel-link i, .relation .rel-down i, .path.in .path-dot { animation: none !important; }
  .js .relation[data-reveal] .rel-node { opacity: 1; transform: none; transition: none; }
}
.pc-head .eyebrow { margin: 0 0 4px; font-size: 10.5px; }
.pc-cta { font-size: 14px; font-weight: 500; color: var(--accent); }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0 0 18px; }
.highlight { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--accent-2); background: var(--surface); text-decoration: none; color: var(--ink); transition: box-shadow .3s, transform .3s var(--ease); }
.highlight:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.highlight strong { font-size: 18px; } .highlight small { color: var(--muted); }
.highlight .eyebrow { margin: 0; }
.highlight.dark { background: var(--night); border-color: var(--night); color: var(--night-ink); } .highlight.dark small { color: var(--night-muted); } .highlight.dark .pc-cta { color: var(--accent-3); } .highlight.dark .eyebrow { color: var(--accent-3); }
.persona h3 .h-line { display: block; }
.persona h3 { max-width: 26ch; text-wrap: balance; }

/* ================================================================== 6.2.0 — responsive : corrections de débordement */
/* Garde-fou global : aucun défilement horizontal, quel que soit le contenu (clip ne crée pas de conteneur de défilement,
   l'en-tête collant continue de fonctionner). */
html, body { overflow-x: clip; }
/* Frise d'étapes : la règle « --n colonnes » écrasait la version mobile (étapes côte à côte sur 375 px → débordement). */
@media (max-width: 760px) {
  .flow ol { grid-template-columns: 1fr; gap: 14px; }
  .flow li { flex-direction: row; align-items: center; }
}
/* Menu mobile : boutons des espaces sur toute la largeur, texte qui peut passer à la ligne. */
.nav-mobile .spaces { grid-template-columns: 1fr; }
.nav-mobile .spaces .btn { width: 100%; white-space: normal; text-align: center; }
@media (min-width: 480px) { .nav-mobile .spaces { grid-template-columns: 1fr 1fr; } }
/* Effets décoratifs contenus dans leur boîte. */
.hero-copy::before { inset: -36px 0; }
.rel-ss2r::after { inset: 0; }
.relation, .path, .journey, .board, .viz-feed { max-width: 100%; }
.rel-link em { max-width: calc(100vw - 80px); overflow: hidden; text-overflow: ellipsis; }
.j-step, .path-step, .diff, .trio-card, .exp-card, .persona, .universe, .cell, .pillar { min-width: 0; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; }

/* ================================================================== 6.2.0 — animations des blocs (opacité et transformations uniquement) */
/* Cascades : les éléments d'une grille ou d'une liste apparaissent l'un après l'autre. */
.js [data-stagger] > * { opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--si, 0) * 85ms); }
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js .values[data-stagger] > *, .js .chips[data-stagger] > * { transform: scale(.85); }
.js ul.jobs[data-stagger] > *, .js .ticks[data-stagger] > * { transform: translateX(-14px); }
.js [data-stagger].in > *:hover { transition-delay: 0s; }

/* Titres de section : un surligneur glisse sous les mots mis en valeur. */
.head h2 .light, .big-h2 .light, .hero-page h1 em { background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent-3) 45%, transparent) 62%, color-mix(in srgb, var(--accent-3) 45%, transparent) 90%, transparent 90%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1.1s var(--ease) .25s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.head.in h2 .light, .big-h2.in .light, .hero-page h1.in em { background-size: 100% 100%; }
.night .head h2 .light { background-image: none; }
/* Pastille des libellés : une onde au premier affichage. */
.label { position: relative; }
.label[data-anim].in::before { animation: labelPing 1.6s var(--ease) .2s 2; }
@keyframes labelPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
/* Paragraphe d'introduction des sections : fondu léger. */
.js .head[data-anim] > p { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) .3s, transform .8s var(--ease) .3s; }
.js .head[data-anim].in > p { opacity: 1; transform: none; }

/* Citations (sections sombres) : les mots s'éclairent un à un, la lumière du fond dérive lentement. */
.js .night blockquote .w { opacity: .18; transition: opacity .5s var(--ease); transition-delay: calc(var(--wi) * 55ms + .2s); }
.js .night blockquote.in .w { opacity: 1; }
.night::after { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; left: 50%; top: 50%; border-radius: 50%; background: radial-gradient(circle, rgba(10, 186, 181, .16), transparent 60%); transform: translate(-80%, -50%); animation: nightDrift 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes nightDrift { to { transform: translate(-10%, -40%); } }
.night .values span { transition: border-color .3s, background .3s; }
.night .values span:hover { border-color: var(--accent-3); background: rgba(129, 216, 208, .08); }

/* Étapes du parcours : la ligne verticale se dessine, chaque phase glisse à son tour. */
.phases { position: relative; }
.js ol.phases[data-stagger] > * { transform: translateX(-18px); }
.phase .ph .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent-2); transition: background .4s, color .4s; }
.phase:hover .ph .n { background: var(--accent-2); color: var(--ink); }
/* Listes numérotées (rejoindre, inscription) : le numéro s'anime. */
.js ol.steps[data-stagger].in > li::before { animation: stepPop .6s var(--ease) both; animation-delay: calc(var(--si, 0) * 85ms + .2s); }
@keyframes stepPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: none; opacity: 1; } }

/* Bandeau de fin de page : reflet lumineux qui traverse une fois, flèche du bouton principal qui invite au clic. */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 40%; left: -45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-12deg); }
.cta-band.in::after { animation: sheen 2.4s var(--ease) .4s 1 both; }
@keyframes sheen { to { left: 110%; } }
.cta-band.in .btn-primary .arr { animation: nudge 2.4s var(--ease) 1.4s 3; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(5px); } }
.js .cta-band[data-anim] h2 { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .cta-band[data-anim].in h2 { opacity: 1; transform: none; }
.join-band { transition: box-shadow .4s, border-color .4s; }
.join-band[data-anim].in { border-color: var(--accent-3); box-shadow: 0 30px 60px -45px rgba(10, 186, 181, .9); }

/* Contact : l'adresse se souligne ; FAQ : les réponses s'ouvrent en douceur ; cartes de l'accueil « espaces ». */
.direct .addr { background-image: linear-gradient(var(--accent-2), var(--accent-2)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size 1s var(--ease) .3s; }
.direct.in .addr { background-size: 100% 2px; }
.js details.faq[data-anim] { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js details.faq[data-anim].in { opacity: 1; transform: none; }
details.faq[open] > p { animation: faqOpen .35s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.universe.dark { overflow: hidden; }
.universe.dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(40% 60% at var(--mx, 80%) 20%, rgba(129, 216, 208, .16), transparent 70%); transition: opacity .4s; pointer-events: none; }
.choice .arr, .persona-link .arr { display: inline-block; }
.choice:hover .arr { animation: nudge 1s var(--ease) infinite; }
/* Cartes : légère élévation de la pastille numérotée au survol. */
.diff .n, .exp-card .n, .cell .n, .trio-card .n { display: inline-block; transition: transform .35s var(--ease); }
.diff .n, .exp-card .n { color: var(--accent); }
.diff:hover .n, .exp-card:hover .n, .cell:hover .n, .trio-card:hover .n { transform: translateY(-2px) scale(1.08); }
/* Espaces connectés : en-tête et tableau de bord apparaissent en douceur. */
.js .welcome[data-anim], .js .page-header[data-anim] { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .welcome[data-anim].in, .js .page-header[data-anim].in { opacity: 1; transform: none; }
.js .hero-page h1[data-anim] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .js [data-stagger] > *, .js .head[data-anim] > p, .js .night blockquote .w, .js .cta-band[data-anim] h2, .js details.faq[data-anim], .js .welcome[data-anim], .js .page-header[data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .head h2 .light, .big-h2 .light, .hero-page h1 em { background-size: 100% 100%; transition: none; }
  .night::after, .cta-band::after, .cta-band.in .btn-primary .arr, .label[data-anim].in::before, .js ol.steps[data-stagger].in > li::before, .choice:hover .arr { animation: none !important; }
}
@media print { .js [data-stagger] > *, .js [data-anim], .js .night blockquote .w { opacity: 1 !important; transform: none !important; } .night::after, .cta-band::after { display: none; } }
/* Espaces connectés sur petits écrans : l'en-tête tient sur une ligne (avatar, mention et sous-titre masqués). */
.app-header .bar { min-width: 0; }
.app-header .who { min-width: 0; flex-shrink: 1; }
@media (max-width: 480px) {
  .app-header .bar { gap: 10px; }
  .app-header .bar > .badge, .app-header .who .avatar, .app-header .wm-sub { display: none; }
  .app-header .who { gap: 8px; }
  .app-header .who .btn-small { padding: 7px 10px; font-size: 12.5px; }
}
.grid-2 > * { min-width: 0; }
@media (max-width: 420px) { .cta-row .btn { white-space: normal; text-align: center; } }
.card-head { flex-wrap: wrap; row-gap: 6px; }
.card-head > * { min-width: 0; }
.cockpit > * { min-width: 0; }
@media (max-width: 420px) { .cockpit { grid-template-columns: 1fr !important; } }

/* ================================================================== 6.3.0 — scène « relation SS2R », scène IA, accès du hero */
/* Accès aux espaces sous le bouton principal du hero */
.access { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 0 !important; font-size: 14px !important; }
.access span { color: var(--muted); margin-right: 2px; }
.access .btn-small { background: transparent; }

/* Scène relation : deux compositions (large / haute) */
.relation-scene { padding: clamp(10px, 2vw, 22px); background: radial-gradient(120% 90% at 50% 30%, var(--surface) 0%, var(--paper) 100%); overflow: hidden; }
.rs { width: 100%; height: auto; display: block; }
.rs-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 760px) { .rs-wide { display: none; } .rs-tall { display: block; } }
.rs text { font-family: var(--sans); }
.rs-stream { fill: none; stroke: var(--accent-3); stroke-width: 2; stroke-dasharray: 5 8; animation: dashFlow 2.4s linear infinite; }
.rs-beam { fill: none; stroke-width: 6; stroke-linecap: round; }
.rs-timeline { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
@keyframes dashFlow { to { stroke-dashoffset: -26; } }
.rs-flow-label { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--accent); }
.rs-p { fill: var(--accent-2); filter: drop-shadow(0 0 5px rgba(10, 186, 181, .8)); }
.rs-actor circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.rs-actor-t { font-size: 16px; font-weight: 700; fill: var(--ink); }
.rs-actor-s { font-size: 12.5px; fill: var(--muted); }
.rs-actor:first-of-type circle { animation: actorPulse 3.2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.rs-core .rs-halo { fill: color-mix(in srgb, var(--accent-2) 14%, transparent); transform-box: fill-box; transform-origin: center; animation: coreBreath 4s ease-in-out infinite; }
.rs-ring { fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 2 9; }
.rs-ring-out { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.rs-verbs { transform-box: view-box; animation: spinAround 30s linear infinite; }
.rs-wide .rs-verbs { transform-origin: 480px 190px; } .rs-tall .rs-verbs { transform-origin: 180px 250px; }
.rs-verbs text { font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; fill: var(--accent); }
.rs-core-t { font-size: 24px; font-weight: 800; letter-spacing: .03em; fill: #fff; }
.rs-ai-orbit { transform-box: view-box; animation: spinAround 12s linear infinite; }
.rs-wide .rs-ai-orbit { transform-origin: 480px 190px; } .rs-tall .rs-ai-orbit { transform-origin: 180px 250px; }
.rs-ai circle { fill: var(--btn); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 4px 10px rgba(10, 186, 181, .6)); }
.rs-ai text { font: 800 12px var(--sans); fill: var(--ink); }
.rs-mission rect { fill: var(--night); }
.rs-mi-t { font-size: 16px; font-weight: 700; fill: #fff; }
.rs-mi-s { font-size: 11.5px; fill: var(--accent-3); }
.rs-tick circle { fill: var(--surface); stroke: var(--accent-2); stroke-width: 2; animation: tickOn 4.5s var(--ease) infinite; animation-delay: calc(var(--i) * .7s); }
.rs-tl-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.rs-tl-sub { font-size: 12px; fill: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAround { to { transform: rotate(360deg); } }
@keyframes coreBreath { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: .5; } }
@keyframes actorPulse { 0%, 100% { stroke-width: 1.5; } 50% { stroke-width: 3; } }
@keyframes tickOn { 0%, 70%, 100% { fill: var(--surface); } 15%, 40% { fill: var(--accent-2); } }
.js .relation-scene[data-reveal] .rs-actor, .js .relation-scene[data-reveal] .rs-mission { opacity: 0; transition: opacity .8s var(--ease) .3s; }
.js .relation-scene[data-reveal].in .rs-actor, .js .relation-scene[data-reveal].in .rs-mission { opacity: 1; }

/* Section IA (fond sombre) */
.ai-section .head p { color: var(--night-muted); }
.night .light { color: var(--accent-3); }
.ai-scene { margin: 0 0 clamp(26px, 4vw, 40px); border-radius: 20px; border: 1px solid var(--night-line); background: radial-gradient(80% 100% at 50% 50%, rgba(10, 186, 181, .12), transparent 70%); padding: clamp(8px, 2vw, 18px); }
.ais { width: 100%; height: auto; display: block; }
.ais-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) { .ais-wide { display: none; } .ais-tall { display: block; } }
.ais text { font-family: var(--sans); }
.ai-flow { fill: none; stroke: rgba(129, 216, 208, .35); stroke-width: 1.6; stroke-dasharray: 4 7; animation: dashFlow 2s linear infinite; }
.ai-flow-out { stroke: rgba(10, 186, 181, .55); }
.ai-p { fill: var(--accent-3); filter: drop-shadow(0 0 6px rgba(129, 216, 208, .9)); }
.ai-p-out { fill: var(--btn); }
.ai-glow { fill: rgba(10, 186, 181, .14); transform-box: fill-box; transform-origin: center; animation: coreBreath 3.4s ease-in-out infinite; }
.ai-edge { stroke: rgba(129, 216, 208, .4); stroke-width: 1.2; }
.ai-node { fill: var(--accent-3); animation: nodeBlink 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes nodeBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ai-core-t { font-size: 18px; font-weight: 800; fill: #fff; }
.ai-pill rect { fill: rgba(255, 255, 255, .06); stroke: var(--night-line); }
.ai-pill text { font-size: 13px; font-weight: 600; fill: var(--night-ink); }
.ai-out rect { fill: rgba(10, 186, 181, .16); stroke: var(--accent-2); }
.ai-human rect { fill: rgba(255, 255, 255, .04); stroke: var(--accent-3); stroke-dasharray: 3 4; }
.ai-human text { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--accent-3); }
.js .ai-scene[data-reveal] .ai-pill { opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * .12s + .2s); }
.js .ai-scene[data-reveal].in .ai-pill { opacity: 1; }
.night .diff { background: rgba(255, 255, 255, .04); border-color: var(--night-line); color: var(--night-ink); }
.night .diff p { color: var(--night-muted); }
.night .diff .n { color: var(--accent-3); }
.night .diff:hover { border-color: var(--accent-3); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }
.ai-foot { display: grid; grid-template-columns: 1.3fr auto; gap: 20px 36px; align-items: center; margin-top: clamp(26px, 4vw, 40px); padding-top: 24px; border-top: 1px solid var(--night-line); }
.ai-foot p { margin: 0; color: var(--night-muted); max-width: 62ch; }
.btn-ghost-light { background: transparent; border-color: var(--night-line); color: var(--night-ink); }
.btn-ghost-light:hover { border-color: var(--accent-3); color: #fff; }
@media (max-width: 860px) { .ai-foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .rs-stream, .rs-ring-out, .rs-verbs, .rs-ai-orbit, .rs-halo, .rs-actor circle, .rs-tick circle, .ai-flow, .ai-glow, .ai-node { animation: none !important; }
  .rs-p, .ai-p { display: none; }
  .js .relation-scene[data-reveal] .rs-actor, .js .relation-scene[data-reveal] .rs-mission, .js .ai-scene[data-reveal] .ai-pill { opacity: 1; transition: none; }
}
.rs-ai { animation: none; }
.rs-actor-t { font-size: 15px; }
.ais-tall .ai-pill text { font-size: 11.5px; }
