/* Swiss2S — feuille de style unique. Aucune ressource externe. */

/* Thème sombre par défaut. Pour le clair : <html data-theme="light">. */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --ink: #f2f0ea;
  --muted: #a5a39c;
  --faint: #77756f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --grid: rgba(255, 255, 255, 0.045);
  --accent: #ff5a47;
  --accent-2: #ffa25c;
  --accent-soft: rgba(255, 90, 71, 0.13);
  --ok: #45d39a;
  --ok-soft: rgba(69, 211, 154, 0.13);
  --glow: rgba(255, 90, 71, 0.24);
  --shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.85);
  --todo: #5a4a00;
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --bg-2: #efede7;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #131313;
  --muted: #5a5a55;
  --faint: #8a8983;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.2);
  --grid: rgba(0, 0, 0, 0.05);
  --accent: #d52b1e;
  --accent-2: #ee6c35;
  --accent-soft: rgba(213, 43, 30, 0.08);
  --ok: #14845a;
  --ok-soft: rgba(20, 132, 90, 0.1);
  --glow: rgba(213, 43, 30, 0.13);
  --shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.3);
  --todo: #fff0a3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); }

/* Repère de brouillon : ce qui reste à confirmer avant mise en ligne. */
mark.todo { background: var(--todo); color: inherit; padding: 0 4px; border-bottom: 1px dashed currentColor; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: inherit; }
/* Croix suisse : bras un sixième plus longs que larges, comme sur le drapeau */
.brand i { width: 20px; height: 20px; border-radius: 4px; display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%23da291c'/%3E%3Cpath d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; box-shadow: 0 0 18px var(--glow); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav .links { display: none; gap: 26px; color: var(--muted); }
.nav .links a:hover { color: var(--ink); }
.nav .go { display: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; }
.nav .go:hover { border-color: var(--accent); color: var(--accent); }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); }
.lang a { padding: 4px 2px; }
.lang [aria-current] { color: var(--ink); border-bottom: 2px solid var(--accent); }
@media (min-width: 960px) { .nav .links { display: flex; } .nav .go { display: inline-block; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--line-strong); transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-color: transparent; color: #140806; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Accroche */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 85% 75% at 65% 0%, #000 15%, transparent 72%); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -200px; top: -300px; pointer-events: none; background: radial-gradient(closest-side, var(--glow), transparent); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
/* Clin d'œil suisse : les courbes de niveau d'un sommet, derrière le bloc animé */
.topo { display: none; }
@media (min-width: 1040px) {
  .hero .topo { display: block; position: absolute; top: 50%; right: calc(max((100vw - 1200px) / 2, 0px) - 218px); width: 980px; height: 980px; translate: 0 -47%; pointer-events: none; background: var(--ink); opacity: 0.075; -webkit-mask: url(/assets/topo.svg) center / contain no-repeat; mask: url(/assets/topo.svg) center / contain no-repeat; }
}
.clock { font-family: var(--mono); font-size: 12px; color: var(--ink); }
@media (max-width: 420px) { .clock { display: none; } }   /* le badge tient sur une ligne sur téléphone */
.hello { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; color: var(--faint); }
@media (min-width: 1040px) { .hero .wrap { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 64px; } }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { font-size: clamp(2.5rem, 6.1vw, 4.7rem); letter-spacing: -0.04em; line-height: 1.01; margin: 24px 0 26px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.5; max-width: 50ch; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stack { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); }

/* Visuel d'accroche : le parcours d'une action sous garde-fous */
.console { border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow), 0 0 90px -30px var(--glow); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--faint); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console-bar span { margin-left: 8px; }
.steps { position: relative; padding: 14px 20px 6px; }
.steps::before { content: ""; position: absolute; left: 35px; top: 40px; bottom: 40px; width: 1px; background: var(--line-strong); }
.steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.steps b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.steps small { display: block; font-size: 13px; color: var(--muted); }
.pill { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.meter { margin: 8px 20px 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.meter p { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.meter .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.8s ease; }

/* Démonstration animée : onglets, étapes qui s'enchaînent, léger relief */
.hero .wrap > * { min-width: 0; }
.demo { position: relative; }
.console-bar .tabs { flex: 1; min-width: 0; }
.steps li { min-height: 68px; }
.steps [data-s="q"] { color: var(--ink); font-size: 14px; }
.console-title { margin-left: 8px; }
.tabs { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; flex: none; font: 500 12.5px var(--sans); color: var(--muted); background: none; border: 0; padding: 6px 10px 8px; border-radius: 8px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); background: var(--line); }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; }
.demo.run .tabs button[aria-pressed="true"]::after { animation: tabfill 6.5s linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }
.steps li { transition: opacity 0.45s ease, translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.steps .pill { transition: opacity 0.3s ease 0.2s, scale 0.3s ease 0.2s; }
.steps li.wait { opacity: 0; translate: 0 10px; transition: none; }
.steps li.wait .pill { opacity: 0; scale: 0.8; transition: none; }
.float-chip { display: none; }
@media (max-width: 479px) { .console-bar i { display: none; } .tabs { margin-left: 0; } }
@media (min-width: 1040px) {
  /* À plat au repos (texte net) ; la profondeur vient des cartes empilées derrière.
     Le pointeur incline l'ensemble de quelques degrés, pas plus. */
  .demo { transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; transition: transform 0.3s ease-out; }
  .demo::before, .demo::after { content: ""; position: absolute; inset: 0; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); }
  .demo::before { transform: translateY(-20px) translateZ(-70px); opacity: 0.75; background: var(--surface-2); }
  .demo::after { transform: translateY(-40px) translateZ(-140px); opacity: 0.45; background: var(--surface-2); }
  .demo .console { position: relative; }
  .float-chip { display: inline-flex; align-items: center; gap: 8px; position: absolute; left: -26px; bottom: -18px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ok); transform: translateZ(50px); animation: bob 5s ease-in-out infinite; }
  .demo + .console-note { margin-top: 30px; }
  .float-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
}
@keyframes bob { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } .steps li, .steps .pill { transition: none; } }

/* Le skieur fait sa trace : deux sillons parallèles qui se dessinent au défilement */
.piste { position: relative; overflow: hidden; margin-top: clamp(40px, 6vw, 64px); height: clamp(84px, 12.4vw, 139px); }
.piste svg { display: block; height: 100%; width: auto; min-width: 100%; aspect-ratio: 1000 / 124; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.piste .p-out, .piste .p-in { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.piste .p-out { stroke: var(--ink); stroke-width: 7.4; opacity: 0.6; }
.piste .p-in { stroke: var(--bg); stroke-width: 4.2; }
.section.alt .piste .p-in { stroke: var(--bg-2); }
.piste .p-gates path { stroke-width: 1.3; }
.piste .g-red path { stroke: var(--accent); fill: var(--accent); }
.piste .g-blue path { stroke: #6f9cf5; fill: #6f9cf5; }
.piste .skier .halo { fill: var(--accent); opacity: 0.2; }
.piste .skier .ski { stroke: var(--ink); stroke-width: 2; }
.piste .skier .pole { stroke: var(--muted); stroke-width: 1.3; }
.piste .skier .body { fill: var(--accent); }
.piste .skier .head { fill: var(--ink); }

/* Télécabine de progression : une cabine rouge glisse sous l'en-tête à mesure que la page défile */
.top .wrap { position: relative; }
.cable { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; height: 0; pointer-events: none; }
.cable svg { position: absolute; top: -1px; left: calc(var(--s, 0) * (100% - 34px)); width: 34px; height: 29px; transition: left 0.15s linear; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.cable .c-arm { stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.cable .c-cab { fill: var(--accent); }
.cable .c-win { fill: var(--bg); }

/* Offre phare et étapes de la méthode */
.card.feature { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(ellipse 95% 55% at 15% 0%, var(--accent-soft), transparent 72%), linear-gradient(180deg, var(--surface-2), var(--surface) 42%); }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.num { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; align-self: flex-start; }
.console-note { margin: 12px 4px 0; text-align: right; font-size: 12px; color: var(--faint); }

/* Chiffres */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.stat { padding: 30px 0; }
.stat b { display: block; font-size: clamp(2.1rem, 4.2vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 24ch; }
@media (min-width: 860px) { .stats .wrap { grid-template-columns: repeat(4, 1fr); } }

/* Bande de références : des noms en toutes lettres, sans fichiers de logo */
.trust { padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.trust .mono { flex: none; }
.trust ul { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.trust li { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.trust li:hover { color: var(--ink); }
@media (max-width: 559px) { .trust li { white-space: normal; } }

/* Sections */
.section { padding: clamp(72px, 9vw, 124px) 0; scroll-margin-top: 68px; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; margin: 0; }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--accent); opacity: 0.5; }
.head h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); letter-spacing: -0.035em; max-width: 21ch; margin: 16px 0 16px; }
.head .intro { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Illustrations au trait, à thème suisse : une par bloc, à droite du titre */
.illu { display: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--faint); overflow: visible; pointer-events: none; }
@media (min-width: 1000px) {
  .head { position: relative; }
  .head > .illu { display: block; position: absolute; right: 0; bottom: -8px; width: 300px; height: 200px; }
  .faq-wrap .head > .illu { position: static; width: 240px; height: 160px; margin-top: 30px; }
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Cartes */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface-2), var(--surface) 42%); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico.ok { background: var(--ok-soft); color: var(--ok); }
.ticks { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.94rem; }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.ticks li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* Réalisations */
.work { display: grid; gap: 18px; }
@media (min-width: 900px) { .work { grid-template-columns: 1fr 1fr; } .case.wide { grid-column: 1 / -1; } }
.kicker { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 6px; }
.case h3 { font-size: 1.5rem; }
.case .tagline { color: var(--muted); font-size: 1.03rem; max-width: 56ch; }
.card p.used { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.points { margin: 6px 0 0; display: grid; gap: 16px; }
.points dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.points dd { margin: 0; font-size: 0.96rem; }
.points .guard dt { color: var(--ok); }
@media (min-width: 760px) { .case.wide .points { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.case > .tags { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.modules { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.frames { margin: 4px 0 0; display: grid; gap: 18px; }
@media (min-width: 760px) { .frames { grid-template-columns: 1fr 1fr; } }
.frame { display: block; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s; }
.frame:hover { transform: translateY(-3px); border-color: var(--accent); }
.frame::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 15px 13px, var(--line-strong) 4px, transparent 5px), radial-gradient(circle at 30px 13px, var(--line-strong) 4px, transparent 5px), radial-gradient(circle at 45px 13px, var(--line-strong) 4px, transparent 5px), var(--surface-2); }
.frame img { display: block; width: 100%; height: auto; }
.frames figcaption { grid-column: 1 / -1; }
.frame { position: relative; cursor: zoom-in; }
.frame::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 10px; opacity: 0; transition: opacity 0.2s; background: rgba(10, 11, 13, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.frame:hover::after, .frame:focus-visible::after { opacity: 1; }

/* Carte du monde animée (Plateforme de congrès) : les pays s'allument, un arc part de chacun vers la ville du congrès. */
.worldmap { margin: 4px 0 0; display: grid; gap: 12px; }
.wm-card { --wm-land: rgba(255, 255, 255, 0.06); --wm-edge: rgba(10, 11, 13, 0.9); padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line-strong); border-radius: 14px; background: radial-gradient(120% 90% at 30% 0%, var(--accent-soft), transparent 60%), var(--bg-2); box-shadow: var(--shadow); }
:root[data-theme="light"] .wm-card { --wm-land: rgba(0, 0, 0, 0.07); --wm-edge: rgba(255, 255, 255, 0.95); }
.wm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.wm-head b { color: var(--ink); font-weight: 600; }
.wm-body { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .wm-body { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; } }
.wm-map { display: block; width: 100%; height: auto; overflow: visible; }
.wm-map path { fill: var(--wm-land); stroke: var(--wm-edge); stroke-width: 0.35; transition: fill 1s ease, fill-opacity 1s ease; }
.wm-map path.lit { fill: var(--accent); animation: wm-lit 1s ease both; }
@keyframes wm-lit { from { filter: brightness(1.9); } }
.wm-map .wm-arc { fill: none; stroke: var(--accent-2); stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: wm-arc 1.9s ease-out both; filter: drop-shadow(0 0 3px var(--accent)); }
@keyframes wm-arc { 0% { stroke-dashoffset: 1; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.wm-ripple { fill: none; stroke: var(--ink); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: wm-ripple 1.6s ease-out both; }
@keyframes wm-ripple { from { transform: scale(0.2); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }
.wm-hub { opacity: 0; transition: opacity 0.8s ease 0.3s; }
.worldmap.is-in .wm-hub { opacity: 1; }
.wm-hub circle { fill: var(--ink); }
.wm-hub .p { opacity: 0.5; transform-box: fill-box; transform-origin: center; animation: wm-pulse 2.4s infinite; }
@keyframes wm-pulse { from { transform: scale(1); opacity: 0.45; } to { transform: scale(3.2); opacity: 0; } }
.wm-bars { display: grid; gap: 9px; }
.wm-bars li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 14px; color: var(--ink); }
.wm-bars .flag { font-size: 17px; line-height: 1; }
.wm-bars .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-bars b { font-family: var(--mono); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.wm-bars i { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.wm-bars i span { display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.worldmap.js:not(.is-in) .wm-bars i span { width: 0; }
.wm-more { font-size: 13px; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .wm-map path, .wm-bars i span { transition: none; } .wm-map path.lit, .wm-hub .p { animation: none; } }

/* Visionneuse des captures : grand format, flèches, Échap pour fermer */
.lightbox { border: 0; padding: 0; margin: 0; background: transparent; color: var(--ink); width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: lbin 0.2s ease; }
.lightbox::backdrop { background: rgba(5, 6, 8, 0.88); backdrop-filter: blur(6px); }
@keyframes lbin { from { opacity: 0; scale: 0.985; } to { opacity: 1; scale: 1; } }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; width: min(92vw, 1500px); }
.lightbox img { display: block; max-width: 100%; max-height: 78dvh; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow); }
.lightbox figcaption { max-width: 86ch; text-align: center; font-size: 14px; color: var(--muted); }
.lightbox figcaption b { display: block; margin-bottom: 4px; font: 400 12px var(--mono); letter-spacing: 0.08em; color: var(--faint); }
.lightbox button { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; } }

/* Expertise, références, secteurs */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split .big { font-size: 1.15rem; max-width: 46ch; }
.split p { color: var(--muted); max-width: 52ch; }
.split p.big { color: var(--ink); }
.list li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.99rem; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--accent); }
.refs { margin-top: 40px; }
.ref strong { display: block; font-size: 1.15rem; letter-spacing: -0.015em; }
.sub { margin: 48px 0 16px; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.96rem; }
.sectors li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* Équipe */
.team { margin-bottom: 40px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; }

/* Questions des directions : accordéon natif, sans script */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-wrap .head { position: sticky; top: 104px; margin: 0; }
}
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 20px 22px; font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--accent); }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; text-align: center; color: var(--muted); transition: rotate 0.2s, color 0.2s; }
.faq details[open] summary::after { rotate: 45deg; color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0; padding: 0 22px 22px 64px; color: var(--muted); max-width: 68ch; }
@media (max-width: 559px) { .faq p { padding-left: 22px; } }

/* Contact */
.contact-card { display: grid; gap: 32px; padding: clamp(28px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(ellipse 80% 95% at 18% 0%, var(--glow), transparent 70%), var(--surface); }
@media (min-width: 900px) { .contact-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; } }
.contact-card .illu { display: block; width: 62px; height: 62px; margin: 0 0 18px; }
.contact-card h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.04em; margin: 16px 0 14px; }
.contact-card .note { color: var(--muted); max-width: 46ch; font-size: 1.08rem; margin: 0; }
.contact-card .next { margin: 28px 0 0; }
.after { counter-reset: etape; display: grid; gap: 10px; margin-top: 14px; }
.after li { counter-increment: etape; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: baseline; color: var(--muted); font-size: 0.98rem; }
.after li::before { content: counter(etape); width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 12px var(--mono); color: var(--ink); }
.chans { display: grid; gap: 14px; }
.chan { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg-2); text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.chan:hover { color: inherit; border-color: var(--accent); transform: translateY(-2px); }
.chan small { display: block; margin-bottom: 4px; font: 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.chan b { display: block; font-size: clamp(1.05rem, 2.3vw, 1.4rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.chan .langs { margin: 6px 0 0; text-transform: none; letter-spacing: 0; }
.chan > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.2s, stroke 0.2s; }
.chan:hover > svg { stroke: var(--accent); translate: 4px 0; }
@media (max-width: 480px) { .chan { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; } .chan > svg { display: none; } .chan .ico { width: 40px; height: 40px; } .chan b { font-size: 1rem; } }

/* Animations discrètes : le train passe sur le viaduc, les rouages tournent, l'itinéraire avance, le halo respire */
@media (prefers-reduced-motion: no-preference) {
  .illu .train { animation: train 12s linear infinite; }
  .illu .gear { transform-box: fill-box; transform-origin: center; }
  .illu .ga { animation: tourne 30s linear infinite; }
  .illu .gb { animation: tourne 18.3s linear infinite reverse; }
  .illu .gc { animation: tourne 11.7s linear infinite; }
  .illu .route { animation: avance 1.8s linear infinite; }
  .hero::after { animation: respire 11s ease-in-out infinite alternate; }
}
@keyframes train { 0% { transform: translateX(-140px); opacity: 0; } 7% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(66px); opacity: 0; } }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes avance { to { stroke-dashoffset: -20; } }
@keyframes respire { from { opacity: 0.7; scale: 1; } to { opacity: 1; scale: 1.1; } }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Notes de terrain : cartes sur l'accueil et pages d'article */
.card.note { text-decoration: none; color: inherit; }
.card.note:hover { color: inherit; }
.card.note h3 { font-size: 1.45rem; }
.card.note:hover h3 { color: var(--accent); }
.more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.96rem; color: var(--accent); }
.more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.2s; }
.card.note:hover .more svg { translate: 4px 0; }
.article { padding: clamp(48px, 8vw, 96px) 0; }
.article .wrap { max-width: 840px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.035em; margin: 18px 0 22px; }
.article .lead { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink); margin: 22px 0 8px; }
.article h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.article p, .article li { color: var(--muted); max-width: 68ch; }
.article ul { list-style: disc; padding-left: 20px; display: grid; gap: 10px; }
.article strong { color: var(--ink); }
.article .back { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; }

/* Pages légales */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.035em; margin: 18px 0 40px; }
.doc h2 { font-size: 1.35rem; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc p, .doc li { max-width: 64ch; color: var(--muted); }
.doc ul { list-style: disc; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc address { font-style: normal; line-height: 1.7; }

/* Apparition au défilement, là où le navigateur le permet */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn, .frame { transition: none; } }

/* Carte du monde au format d'une capture : une tuile parmi les autres, pour garder la fiche compacte */
@media (min-width: 900px) { .frames.three { grid-template-columns: repeat(3, 1fr); } }
.wm-tile.worldmap { --wm-land: rgba(255, 255, 255, 0.1); --wm-edge: rgba(10, 11, 13, 0.9); margin: 0; display: flex; flex-direction: column; gap: 0; background: var(--bg-2); cursor: default; }
:root[data-theme="light"] .wm-tile.worldmap { --wm-land: rgba(0, 0, 0, 0.08); --wm-edge: rgba(255, 255, 255, 0.95); }
.wm-tile::after { display: none; }
.wm-tile:hover { transform: none; border-color: var(--line-strong); }
.wm-tile .wm-head { margin: 0; padding: 10px 14px 0; }
.wm-tile .wm-mapbox { flex: 1; display: grid; align-items: center; padding: 6px 12px 12px; }
