/* =========================================================
   NextGRC — site vitrine
   Design NextGRC (hero sombre bordeaux, rouge de marque)
   + animations inspirées du site ITC : écran d'accueil, titres en police
     variable, défilement fluide, bandeau défilant, cartes empilées, listes « scan »
   Police : DM Sans (charte)
   ========================================================= */

:root {
  --brand: #e11d48;
  --brand-600: #be123c;
  --brand-300: #fb7185;
  --brand-50: #fff1f3;

  --ink: #16090c;
  --text: #3d2f33;
  --muted: #76666b;
  --line: #f0e6e8;
  --bg: #ffffff;
  --soft: #fbf7f8;
  /* Surfaces et détails des illustrations (redéfinis en mode sombre) */
  --card: #ffffff;
  --sk: #ece2e5;
  --sk-2: #d9c9ce;
  --sk-3: #f6d3da;
  --tree: #e5c9cf;
  --stroke: #f0cbd3;
  --dash: #ead7dc;
  --shimmer: rgba(255,255,255,.7);
  --run-bg: #fff6f8;
  --run-bd: #f7b9c6;
  --done-bg: #f6fcf8;
  --done-bd: #cdebd6;

  --night: #0d0608;
  --night-2: #1a0a0f;
  --maroon: #4a0b1c;

  --r-low: #10b981;
  --r-med: #f59e0b;
  --r-high: #f97316;
  --r-crit: #ef4444;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 9, 12, .04), 0 12px 32px -12px rgba(22, 9, 12, .12);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.645, .045, .355, 1);
}

/* ---------- Mode sombre (choix mémorisé, sinon préférence du système) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --brand: #f43f5e;
  --brand-600: #e11d48;
  --brand-50: #2a1219;
  --ink: #f6eff1;
  --text: #d6c8cd;
  --muted: #a3949a;
  --line: #2b1d23;
  --bg: #0c0709;
  --soft: #120b0e;
  --card: #1a1115;
  --sk: #2d2026;
  --sk-2: #3d2b33;
  --sk-3: #4d2633;
  --tree: #4a2f38;
  --stroke: #4d3039;
  --dash: #3a2830;
  --shimmer: rgba(255,255,255,.07);
  --run-bg: #2a1219;
  --run-bd: #7f1d3a;
  --done-bg: #0f2219;
  --done-bd: #1f5136;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.7);
}
html[data-theme="dark"] .tag { background: rgba(239,68,68,.22); }
html[data-theme="dark"] .tag--o { background: rgba(249,115,22,.22); }
html[data-theme="dark"] .tag--y { background: rgba(245,158,11,.22); }
html[data-theme="dark"] .dotchip { box-shadow: inset 0 0 0 1px #5b2333; }
html[data-theme="dark"] .dotchip--green, html[data-theme="dark"] .chip--green, html[data-theme="dark"] .live-dot { background: #0f2a1f; box-shadow: inset 0 0 0 1px #1f5136; }
html[data-theme="dark"] .card::after { background: radial-gradient(circle, rgba(244,63,94,.12), transparent 70%); }
html[data-theme="dark"] .window { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); }
html[data-theme="dark"] .float { background: rgba(26,17,21,.96); }
html[data-theme="dark"] .marquee { border-top: 1px solid var(--line); }
html[data-theme="dark"] .totop { background: var(--brand); }
html[data-theme="dark"] .totop:hover { background: #fff; color: #16090c; }

/* Transition douce pendant le changement de thème uniquement */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease, stroke .45s ease, box-shadow .45s ease !important;
}

/* ---------- Bouton clair / sombre (soleil / lune) ---------- */
.theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: rgba(255,255,255,.62); transition: border-color .25s, background .25s; }
.theme-toggle:hover { border-color: rgba(255,255,255,.4); }
.theme-toggle span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .35s var(--ease-out), color .35s, box-shadow .35s, transform .45s var(--ease-out); }
.theme-toggle .ico { width: 17px; height: 17px; }
/* L'icône du thème actif est posée sur un rond clair, avec une ombre douce */
.theme-toggle .tt-sun,
html[data-theme="dark"] .theme-toggle .tt-moon { background: #fff; color: #16090c; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 10px -2px rgba(0,0,0,.25); }
html[data-theme="dark"] .theme-toggle .tt-sun { background: transparent; color: rgba(255,255,255,.62); box-shadow: none; }
html[data-theme="dark"] .theme-toggle .tt-moon .ico { transform: rotate(-20deg); }
.theme-toggle:active span { transform: scale(.9); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lignes « squelette » : les illustrations n'affichent aucun texte ni chiffre inventé */
.sk { display: block; height: 8px; width: 72%; border-radius: 6px; background: var(--sk); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--shimmer), transparent); transform: translateX(-100%); animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.sk--s { width: 48%; }
.sk--title { width: 130px; height: 11px; background: var(--sk-2); }
.sk--num { width: 46px; height: 18px; margin-top: 10px; background: var(--sk-2); border-radius: 6px; }
.sk--bar { width: 140px; height: 16px; margin-left: 12px; border-radius: 999px; background: var(--soft); }
.sk--team { width: 110px; margin-left: 18px; }
.sk--light { width: 70px; background: rgba(255,255,255,.55); }
.dotchip { width: 44px; height: 16px; border-radius: 999px; background: var(--brand-50); box-shadow: inset 0 0 0 1px #f8c9d3; }
.dotchip--green { background: #e7f8f1; box-shadow: inset 0 0 0 1px #b7ebd5; }

/* ---------- Titres en police variable (animation ITC) ----------
   Chaque lettre apparaît en cascade puis s'épaissit à l'approche du curseur */
.vf { display: block; }
.vf .w { display: inline-block; white-space: nowrap; }
.vf .ch {
  display: inline-block; font-variation-settings: "wght" var(--g, 700);
  opacity: 0; transform: translateY(.45em);
  transition: font-variation-settings .5s var(--ease-out), opacity .7s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: 0s, calc(var(--i, 0) * 16ms), calc(var(--i, 0) * 16ms);
}
.vf.on .ch { opacity: 1; transform: none; }
.vf.ready .ch { transition-delay: 0s; }
.vf .ch.acc { color: var(--brand); font-style: italic; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-300) -40%, var(--brand) 45%, var(--brand-600));
  color: #fff; box-shadow: 0 10px 28px -10px rgba(225, 29, 72, .7), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { box-shadow: 0 16px 36px -12px rgba(225, 29, 72, .85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn--white { background: #fff; color: var(--brand-600); }
.btn--white:hover .ico { transform: none; }
.btn--line { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--line:hover { background: rgba(255,255,255,.1); }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: 8px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav__inner { height: 76px; display: flex; align-items: center; gap: 32px; }
.nav.is-scrolled { background: rgba(13, 6, 8, .78); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.brand b { font-weight: 700; }
.nav__links { display: flex; gap: 6px; margin-left: 8px; }
.nav__links a { color: rgba(255,255,255,.72); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.lang button { border: 0; background: none; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; }
.lang button.is-active { background: #fff; color: #16090c; }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: rgba(255,255,255,.72); padding: 150px 0 56px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(225, 29, 72, .32), transparent 60%),
    radial-gradient(700px 600px at 5% 100%, rgba(74, 11, 28, .9), transparent 60%),
    radial-gradient(500px 300px at 50% -10%, rgba(251, 113, 133, .12), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 0 4px rgba(251,113,133,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(251,113,133,0); } }

.slides { display: grid; margin: 26px 0 34px; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide h1 { color: #fff; font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 20px; }
.slide h1 .vf .ch.acc { color: var(--brand-300); }
.slide p { font-size: 18px; max-width: 540px; color: rgba(255,255,255,.7); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 46px; max-width: 560px; }
.tab { position: relative; border: 0; background: none; color: rgba(255,255,255,.45); text-align: left; padding: 14px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; transition: color .2s; }
.tab::before, .tab i { content: ""; position: absolute; top: 0; left: 0; height: 2px; border-radius: 2px; }
.tab::before { right: 0; background: rgba(255,255,255,.14); }
.tab i { width: 0; background: var(--brand-300); }
.tab.is-active { color: #fff; }
.tab.is-active i { animation: progress var(--dur, 7s) linear forwards; }
.tab:hover { color: rgba(255,255,255,.85); }
@keyframes progress { to { width: 100%; } }

/* Fenêtre d'application illustrée (inclinaison 3D pilotée par le curseur) */
.hero__visual { position: relative; perspective: 1600px; }
.window { position: relative; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); padding: 1px; box-shadow: var(--shadow-lg);
  transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .5s var(--ease); }
.window__bar, .window__body { background: var(--card); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-radius: 15px 15px 0 0; border-bottom: 1px solid var(--line); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; }
.window__bar i:first-child { background: #ff6b6b; } .window__bar i:nth-child(2) { background: #fbbf24; } .window__bar i:nth-child(3) { background: #34d399; }
.window__bar span { margin-left: 12px; font-size: 11px; color: var(--muted); background: var(--soft); padding: 3px 12px; border-radius: 999px; }
.window__body { display: grid; grid-template-columns: 52px 1fr; border-radius: 0 0 15px 15px; overflow: hidden; height: 380px; }
.mini-side { background: linear-gradient(180deg, #1c0a10, #4a0b1c); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mini-side__logo { width: 26px; height: 26px; border-radius: 8px 50% 50% 50%; background: var(--brand); margin-bottom: 10px; }
.mini-side span { width: 22px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.2); }
.mini-side span.on { background: var(--brand-300); }

.screens { position: relative; background: var(--soft); color: var(--text); }
.screen { position: absolute; inset: 0; padding: 22px; opacity: 0; transform: scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.screen.is-active { opacity: 1; transform: none; }
.scr-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scr-head b { color: var(--ink); font-size: 15px; }
.chip { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); }
.chip--green { background: #e7f8f1; color: #047857; }

/* Gantt */
.gantt { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.gantt__row { display: grid; grid-template-columns: 96px 1fr; align-items: center; height: 44px; border-top: 1px dashed var(--line); }
.gantt__row:first-child { border-top: 0; }
.gantt__row .sk { width: 64px; }
.gantt__row .sk--s { width: 44px; }
.gantt__row div { position: relative; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
.gantt__row i { position: absolute; top: 12px; height: 16px; left: var(--s); width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-300)); }
.gantt__row i.alt { background: linear-gradient(90deg, #f97316, #fbbf24); }
.gantt__row i.soft { background: repeating-linear-gradient(45deg, #fecdd3 0 6px, #ffe4e8 6px 12px); }
.screen.is-active .gantt__row i { animation: grow .9s var(--ease) forwards; }
.screen.is-active .gantt__row:nth-child(2) i { animation-delay: .1s; } .screen.is-active .gantt__row:nth-child(3) i { animation-delay: .2s; }
.screen.is-active .gantt__row:nth-child(4) i { animation-delay: .3s; } .screen.is-active .gantt__row:nth-child(5) i { animation-delay: .4s; }
@keyframes grow { to { width: var(--w); } }
.team { display: flex; align-items: center; margin-top: 16px; }
.team span:not(.sk) { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); border: 2px solid var(--soft); margin-right: -6px; }
.team span:nth-child(1) { z-index: 4; } .team span:nth-child(2) { z-index: 3; background: var(--brand); } .team span:nth-child(3) { z-index: 2; background: #f97316; }

/* Heatmap */
.heat-wrap { display: grid; grid-template-columns: 1fr 140px; gap: 16px; align-items: center; }
.heat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.heat span { aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; opacity: 0; transform: scale(.6); }
.screen.is-active .heat span { animation: pop .45s var(--ease) forwards; animation-delay: calc(var(--i) * 18ms); }
.heat span.hot { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.heat span.hot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
@keyframes pop { to { opacity: 1; transform: none; } }
.levels { list-style: none; margin: 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.levels li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: center; min-height: 18px; }
.levels i { width: 10px; height: 10px; border-radius: 50%; }

/* KPI + graphe */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.kpis div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; position: relative; }
.chart-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 212px; padding: 16px 16px 0; overflow: hidden; }
.chart-card > svg { width: 100%; height: 100%; }
.screen.is-active .chart-card path:last-child { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.donut { position: absolute; top: 14px; right: 14px; width: 74px; height: 74px; background: var(--card); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.donut svg { position: absolute; inset: 6px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 4; }
.d-bg { stroke: var(--line); } .d-fg { stroke: var(--r-low); stroke-linecap: round; stroke-dasharray: 0 100; }
.screen.is-active .d-fg { animation: ring 1.2s var(--ease) .3s forwards; }
@keyframes ring { to { stroke-dasharray: 88 100; } }

/* Arbre GRC */
.tree { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.node { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow); display: flex; justify-content: center; }
.node .sk { width: 70%; }
.node--root { background: var(--brand); border-color: var(--brand); padding: 13px 26px; position: relative; }
.node--root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: var(--tree); }
.tree__branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; width: 100%; position: relative; }
.tree__branches::before { content: ""; position: absolute; top: -22px; left: 16.6%; right: 16.6%; height: 1px; background: var(--tree); }
.branch { display: flex; flex-direction: column; gap: 8px; position: relative; }
.branch::before { content: ""; position: absolute; top: -22px; left: 50%; height: 22px; width: 1px; background: var(--tree); }
.leaf { background: var(--brand-50); border-radius: 8px; padding: 10px; border-left: 3px solid var(--brand-300); }
.leaf .sk { background: var(--sk-3); }
.screen.is-active .branch { animation: pop .5s var(--ease) both; }
.screen.is-active .branch:nth-child(2) { animation-delay: .1s; } .screen.is-active .branch:nth-child(3) { animation-delay: .2s; }

/* Cartes flottantes */
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 20px 40px -14px rgba(0,0,0,.5); color: var(--text); animation: float 6s ease-in-out infinite; z-index: 2; }
.float b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.25; max-width: 190px; }
.float .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); stroke-width: 2.2; }
.float--a { right: -22px; bottom: -30px; }
.float--a .ico { background: #e7f8f1; color: #059669; }
.float--b { left: -34px; top: -30px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

.pillars { list-style: none; margin: 72px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.75); font-weight: 600; }
.pillars b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, rgba(225,29,72,.35), rgba(225,29,72,.08)); border: 1px solid rgba(251,113,133,.3); }

/* ---------- Bandeau défilant (animation ITC) ---------- */
.marquee { overflow: hidden; padding: 26px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.mq-track { display: flex; width: max-content; animation: mq 50s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; flex: none; }
.mq-group span { font-weight: 650; font-size: clamp(1.6rem, 3.2vw, 2.7rem); letter-spacing: -.035em; color: var(--ink); padding: 0 30px; white-space: nowrap; }
.mq-group i { width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--brand); flex: none; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.section__head h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.03em; }
.section__head p { margin-top: 20px; font-size: 18px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: #ffd5dc; }

/* Cartes services — empilées et réduites au défilement (animation ITC) */
.stack { display: grid; gap: 28px; }
.card { position: relative; padding: 40px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.card::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(225,29,72,.09), transparent 70%); pointer-events: none; }
.scard { position: sticky; top: calc(104px + var(--i) * 18px); display: grid; grid-template-columns: .75fr 1.25fr; gap: 44px; align-items: center; transform-origin: center top; will-change: transform;
  box-shadow: 0 30px 60px -42px rgba(22, 9, 12, .45); }
.scard::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--dim, 0) * .28); pointer-events: none; z-index: 3; border-radius: inherit; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.card__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-300), var(--brand) 55%, var(--brand-600)); box-shadow: 0 10px 22px -8px rgba(225,29,72,.6); }
.card__ico .ico { width: 24px; height: 24px; }
.card__num { font-size: 56px; font-weight: 700; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--stroke); line-height: 1; }
.card h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.035em; line-height: 1.08; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Listes « scan » animées (animation ITC) */
.viz { position: relative; z-index: 1; width: 100%; border: 1px dashed var(--dash); border-radius: 18px; padding: 20px; background: var(--soft); }
.viz-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.viz-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.viz-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.4s infinite; }
.scan { list-style: none; }
.scan li { position: relative; display: grid; grid-template-columns: 26px 1fr 22px; align-items: start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink); font-weight: 500; opacity: .45; overflow: hidden; transition: opacity .4s, border-color .4s, background .4s; }
.scan .lv { padding-top: 2px; }
.scan .ok { margin-top: 1px; }
/* barre de progression en bas de l'étape en cours */
.scan li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.scan li.run::after { transform: none; transition: transform .9s var(--ease-io); }
.scan li.done::after { transform: none; background: #16a34a; opacity: .5; }
.scan li:last-child { margin-bottom: 0; }
.scan .lv { font-size: 11px; font-weight: 700; color: var(--muted); }
.scan .bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.scan .bar b { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--brand); border-radius: 6px; }
.scan .ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; transition: background .3s, transform .4s var(--ease-out); }
.scan .ok .ico { width: 13px; height: 13px; stroke-width: 3; }
.scan li.run { opacity: 1; border-color: var(--run-bd); background: var(--run-bg); }
.scan li.run .bar b { transform: none; transition: transform .6s var(--ease-io); }
.scan li.done { opacity: 1; border-color: var(--done-bd); background: var(--done-bg); }
.scan li.done .bar b { transform: none; background: #16a34a; }
.scan li.done .ok { background: #16a34a; transform: scale(1.1); }

/* Bento fonctionnalités */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.tile { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .8s var(--ease); }
.tile--wide { grid-column: span 3; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -22px rgba(22, 9, 12, .25); }
.tile__text { padding: 34px 34px 0; }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 18px; }
.tile h3 { font-size: 21px; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: 15px; }
.art { margin: 28px 34px 0; flex: 1; min-height: 190px; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, var(--soft), var(--card)); border: 1px solid var(--line); border-bottom: 0; padding: 20px; position: relative; overflow: hidden; }

.art--kpi { display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 12px; align-items: center; align-content: center; }
.kpi-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi-card .sk--num { margin: 12px 0 14px; }
.bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--r-low); border-radius: 4px; }
.kpi-bars { height: 128px; display: flex; align-items: flex-end; gap: 7px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.kpi-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-300), var(--brand)); transform-origin: bottom; }
.is-visible .kpi-bars i { animation: rise .9s var(--ease) both; }
.is-visible .kpi-bars i:nth-child(2) { animation-delay: .08s; } .is-visible .kpi-bars i:nth-child(3) { animation-delay: .16s; }
.is-visible .kpi-bars i:nth-child(4) { animation-delay: .24s; } .is-visible .kpi-bars i:nth-child(5) { animation-delay: .32s; } .is-visible .kpi-bars i:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { transform: scaleY(0); } }

.art--risk { display: grid; gap: 10px; align-content: start; }
.risk-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.is-visible .risk-row { animation: slideIn .7s var(--ease-out) both; }
.is-visible .risk-row:nth-child(2) { animation-delay: .12s; } .is-visible .risk-row:nth-child(3) { animation-delay: .24s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } }
.risk-row { min-height: 52px; }
.lvl { width: 34px; height: 30px; border-radius: 8px; background: var(--c); }
.tag { width: 54px; height: 18px; border-radius: 999px; background: #fee2e2; }
.tag--o { background: #ffedd5; color: #c2410c; } .tag--y { background: #fef3c7; color: #b45309; }

.art--live svg { width: 100%; height: 120px; margin-top: 16px; }
.line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; }
.line--1 { stroke: var(--brand); } .line--2 { stroke: #f59e0b; }
.is-visible .line { animation: draw 2s var(--ease) forwards; } .is-visible .line--2 { animation-delay: .3s; }
.live-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e7f8f1; }
.live-dot i { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: ping 1.6s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } }
@keyframes blink { 50% { opacity: .25; } }
.swatches { position: absolute; top: 20px; right: 20px; display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }

.art--report { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.doc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.doc__head .sk--title { width: 90px; }
.doc > i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flow li { display: flex; align-items: center; gap: 12px; position: relative; padding: 6px 0; font-size: 13px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; height: 14px; width: 2px; background: #a7f3d0; }
.flow span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.flow .done span { background: #10b981; color: #fff; } .flow .done .ico { width: 14px; height: 14px; stroke-width: 3; }
.flow .cur span { background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 4px rgba(225,29,72,.1); }
.flow b.sk { width: 90px; }
.flow b.sk--s { width: 64px; }

/* Support */
.support { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding: 56px; border-radius: 28px; color: rgba(255,255,255,.8); overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #1a0a0f 0%, var(--maroon) 45%, var(--brand-600) 120%); box-shadow: 0 40px 80px -30px rgba(190, 18, 60, .55); }
.support__glow { position: absolute; z-index: -1; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(251,113,133,.45), transparent 65%); animation: glow 8s ease-in-out infinite; }
@keyframes glow { 50% { transform: translate(-40px, 30px) scale(1.1); } }
.support__ico { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.support__ico .ico { width: 34px; height: 34px; }
.support h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; letter-spacing: -.03em; }
.support h2 .vf .ch.acc { color: #ffc2ce; }
.support .eyebrow { margin-bottom: 12px; }
.support__cta { display: flex; flex-direction: column; gap: 12px; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,.55); padding: 44px 0; }
.footer__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
/* =========================================================
   NOS FONCTIONNALITÉS : grille 2 × 2 sur bandeau sombre
   ========================================================= */
.fx { position: relative; overflow: hidden; isolation: isolate; color: rgba(255,255,255,.72);
  background: radial-gradient(900px 460px at 12% 0%, rgba(225,29,72,.24), transparent 60%), radial-gradient(800px 460px at 100% 100%, rgba(249,115,22,.12), transparent 60%), var(--night); }
.fx__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 25%, transparent 75%); }
.fx .section__head h2 { color: #fff; }
.fx .section__head .eyebrow { color: var(--brand-300); }
.fx .section__head h2 .vf .ch.acc { color: var(--brand-300); }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fx-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .35s, transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .9s var(--ease); }
/* halo qui suit la souris (position fournie par main.js) */
.fx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(251,113,133,.16), transparent 60%); }
.fx-card:hover { border-color: rgba(251,113,133,.35); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.fx-card:hover::before { opacity: 1; }
.fx-art { height: 236px; margin: 10px 10px 0; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(360px 200px at 50% 0%, rgba(225,29,72,.16), transparent 70%), rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); }
.fx-art svg { width: 100%; height: 100%; display: block; }
.fx-body { padding: 26px 30px 32px; }
.fx-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fx-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-300), var(--brand) 55%, var(--brand-600)); box-shadow: 0 10px 22px -8px rgba(225,29,72,.6); }
.fx-ic .ico { width: 19px; height: 19px; }
.fx-num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.35); }
.fx-card h3 { color: #fff; font-size: 22px; letter-spacing: -.025em; margin-bottom: 10px; }
.fx-card p { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.7; }
.fx-grid .reveal:nth-child(2) { transition-delay: .08s; } .fx-grid .reveal:nth-child(3) { transition-delay: .16s; } .fx-grid .reveal:nth-child(4) { transition-delay: .24s; }
/* Illustrations : jouées une seule fois à l'apparition, aucune boucle */
.fx-bar { transform-box: fill-box; transform-origin: bottom; }
.fx-card.is-visible .fx-bar { animation: rise .8s var(--ease-out) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.fx-grow { transform-box: fill-box; transform-origin: left; }
.fx-card.is-visible .fx-grow { animation: fxGrow 1s var(--ease-out) .35s both; }
@keyframes fxGrow { from { transform: scaleX(0); } }
.fx-line { stroke-dasharray: 100; stroke-dashoffset: 100; }
.fx-card.is-visible .fx-line { animation: fxDraw 1.6s var(--ease-io) .3s forwards; }
.fx-card.is-visible .fx-line.l2 { animation-delay: .55s; }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .fx-line { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .fx-grid { grid-template-columns: 1fr; }
  .fx-art { height: auto; aspect-ratio: 402 / 226; }
  .fx-body { padding: 22px 22px 26px; }
}

/* ---------- Manifeste : une GRC connectée ---------- */
.manifesto { padding-bottom: 40px; }
.manifesto__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.manifesto__text h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -.035em; margin-bottom: 26px; }
.manifesto__text p { color: var(--muted); font-size: 16.5px; line-height: 1.75; margin-bottom: 16px; }
.manifesto__text .manifesto__lead { color: var(--ink); font-size: 19px; font-weight: 500; line-height: 1.6; }
.refs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.refs li { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.lines { list-style: none; position: relative; display: grid; gap: 14px; }
.lines::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--brand-300), var(--brand), var(--maroon)); opacity: .35; }
.line { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 22px 24px 22px 0; border-radius: 18px; transition: background .3s, transform .4s var(--ease-out); }
.line:hover { background: var(--card); transform: translateX(6px); box-shadow: var(--shadow); }
.line__n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-300), var(--brand) 55%, var(--brand-600)); box-shadow: 0 10px 22px -8px rgba(225,29,72,.55); }
.line:nth-child(2) .line__n { background: linear-gradient(135deg, #f97316, var(--brand)); }
.line:nth-child(3) .line__n { background: linear-gradient(135deg, var(--maroon), #16090c); box-shadow: 0 10px 22px -8px rgba(74,11,28,.6); }
.line h3 { font-size: 19px; margin: 4px 0 6px; letter-spacing: -.02em; }
.line p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.lines .reveal:nth-child(2) { transition-delay: .1s; } .lines .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- La plateforme : onglets ---------- */
.ptabs { position: relative; display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 48px; padding: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.ptab { position: relative; z-index: 1; border: 0; background: none; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s; }
.ptab b { font-weight: 700; }
.ptab.is-active { color: #fff; }
.ptab:hover:not(.is-active) { color: var(--ink); }
.ptabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-300) -40%, var(--brand) 45%, var(--brand-600)); box-shadow: 0 10px 24px -10px rgba(225,29,72,.7);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out); }
.ppanel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.ppanel[hidden] { display: none; }
.ppanel > * { min-width: 0; } /* empêche la capture (2000 px) d'élargir la grille */
.ppanel.is-active .ppanel__text > * { animation: panelIn .7s var(--ease-out) both; }
.ppanel.is-active .ppanel__text > :nth-child(2) { animation-delay: .06s; }
.ppanel.is-active .ppanel__text > :nth-child(3) { animation-delay: .12s; }
.ppanel.is-active .pshot { animation: shotIn .9s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes shotIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.ppanel h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.15; margin-bottom: 16px; }
.ppanel__lead { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 28px; }
.benefits { list-style: none; display: grid; gap: 20px; }
.benefits li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.b__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.b__ico .ico { width: 20px; height: 20px; }
.benefits h4 { margin: 2px 0 4px; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; }
.benefits p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.ppanel.is-active .benefits li { animation: panelIn .7s var(--ease-out) both; }
.ppanel.is-active .benefits li:nth-child(1) { animation-delay: .18s; }
.ppanel.is-active .benefits li:nth-child(2) { animation-delay: .26s; }
.ppanel.is-active .benefits li:nth-child(3) { animation-delay: .34s; }
/* Fenêtre de navigateur autour des captures */
.pshot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgba(22,9,12,.45); }
.pshot__bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.pshot__bar i { width: 10px; height: 10px; border-radius: 50%; }
.pshot__bar i:nth-child(1) { background: #ff6b6b; } .pshot__bar i:nth-child(2) { background: #fbbf24; } .pshot__bar i:nth-child(3) { background: #34d399; }
.pshot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.pshot__body { padding: 22px; background: var(--soft); aspect-ratio: 16 / 9.4; }
:is(.ppanel, .phero__visual).is-active .gantt__row i { animation: grow .9s var(--ease) .3s forwards; }
:is(.ppanel, .phero__visual).is-active .gantt__row:nth-child(2) i { animation-delay: .4s; } :is(.ppanel, .phero__visual).is-active .gantt__row:nth-child(3) i { animation-delay: .5s; }
:is(.ppanel, .phero__visual).is-active .gantt__row:nth-child(4) i { animation-delay: .6s; } :is(.ppanel, .phero__visual).is-active .gantt__row:nth-child(5) i { animation-delay: .7s; }

/* ---------- La plateforme : roue interactive (modèle roue NIST du site ITC) ---------- */
.pw { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.pw-svg { display: block; width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
/* Roue statique : aucune animation (ni rotation, ni pulsation, ni transition) */
.pw-orbit { fill: none; stroke: var(--stroke); stroke-width: 1.5; stroke-dasharray: 3 8; }
.pw-seg { cursor: pointer; outline: none; }
.pw-seg path { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.pw-seg text { font-family: inherit; font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; pointer-events: none; }
.pw-ic { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; overflow: visible; }
.pw-seg:hover path { fill: var(--brand-50); }
.pw-seg.on path { fill: var(--brand); stroke: var(--brand); }
.pw-seg.on text { fill: #fff; }
.pw-seg.on .pw-ic { stroke: #fff; }
.pw-seg:focus-visible path { stroke: var(--ink); stroke-width: 2.5; }
.pw-hub { fill: var(--night); }
.pw-hub-t { font-family: inherit; font-size: 21px; font-weight: 700; fill: #fff; text-anchor: middle; letter-spacing: -.02em; }
.pw-hub-t tspan { fill: var(--brand-300); }
.pw-hint { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }

.pw-panel[hidden] { display: none; }
.pw-panel.on > * { animation: panelIn .65s var(--ease-out) both; }
.pw-panel.on > :nth-child(2) { animation-delay: .06s; } .pw-panel.on > :nth-child(3) { animation-delay: .12s; } .pw-panel.on > :nth-child(5) { animation-delay: .5s; }
.pw-num { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.pw-num i { font-style: normal; color: var(--muted); }
.pw-panel h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.15; margin: 14px 0 14px; }
.pw-lead { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
/* Bénéfices « cochés » un à un (animation scan du site ITC) */
.pw-list { list-style: none; display: grid; gap: 10px; }
.pw-list li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); opacity: .45; transition: opacity .45s, border-color .45s, background .45s; }
.pw-list li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.pw-ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--line); transform: scale(.85); transition: background .4s, transform .5s var(--ease-out); }
.pw-ok .ico { width: 15px; height: 15px; stroke-width: 3; }
.pw-list h4 { margin: 3px 0 4px; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.pw-list p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pw-panel.on .pw-list li { animation: pwCheck .6s var(--ease-out) forwards; animation-delay: calc(.45s + var(--k) * .55s); }
.pw-panel.on .pw-list li::after { animation: pwLine .55s var(--ease-io) forwards; animation-delay: calc(.45s + var(--k) * .55s); }
.pw-panel.on .pw-list li .pw-ok { animation: pwOk .45s var(--ease-out) forwards; animation-delay: calc(.85s + var(--k) * .55s); }
@keyframes pwCheck { to { opacity: 1; border-color: var(--done-bd); background: var(--done-bg); } }
@keyframes pwLine { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; background: #16a34a; } }
@keyframes pwOk { to { background: #16a34a; transform: scale(1); } }
.pw-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--brand); font-weight: 700; font-size: 15px; }
.pw-more .ico { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.pw-more:hover .ico { transform: translateX(4px); }
/* Panneau façon roue NIST du site ITC : étiquettes + modules concernés (surlignés selon le module choisi) */
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pw-chips span { padding: 7px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 14px; font-weight: 600; }
.pw-panel.on .pw-chips span { animation: chipIn .45s var(--ease-out) both; }
.pw-panel.on .pw-chips span:nth-child(2) { animation-delay: .25s; } .pw-panel.on .pw-chips span:nth-child(3) { animation-delay: .3s; }
.pw-panel.on .pw-chips span:nth-child(4) { animation-delay: .35s; } .pw-panel.on .pw-chips span:nth-child(5) { animation-delay: .4s; }
.pw-panel.on .pw-chips span:first-child { animation-delay: .2s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.pw-doms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pw-doms small { grid-column: 1 / -1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pw-dom { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--card); opacity: .5;
  transition: opacity .3s var(--ease-out), color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease-out); }
.pw-dom b { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--line); color: var(--ink); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; transition: background .35s, color .35s; }
.pw-dom span { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pw-dom .ico { flex: none; width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.pw-dom.on { opacity: 1; color: var(--ink); border-color: var(--stroke); }
.pw-dom.on b { background: var(--brand); color: #fff; }
.pw-dom:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(22, 9, 12, .35); }
.pw-dom:hover .ico { transform: translateX(3px); color: var(--brand); }
@media (max-width: 560px) { .pw-doms { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pw-panel.on .pw-chips span { animation: none; } .pw-dom, .pw-dom:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .pw-list li { opacity: 1; border-color: var(--done-bd); background: var(--done-bg); }
  .pw-ok { background: #16a34a; transform: none; }
}

/* ---------- Illustrations vectorielles des écrans (aucune donnée lisible) ---------- */
.pshot--vx .vx { display: block; width: 100%; height: auto; }
.vx-bg { fill: var(--soft); }
.vx-card { fill: var(--card); stroke: var(--line); stroke-width: 1; }
.vx-noline { stroke: none; }
.vx-head { fill: var(--soft); }
.vx-line { stroke: var(--line); stroke-width: 1; }
.vx-sk { fill: var(--sk); }
.vx-sk2 { fill: var(--sk-2); }
.vx-ink { fill: var(--ink); opacity: .78; }
.vx-brand { fill: var(--brand); }
.vx-brand-soft { fill: var(--brand); opacity: .35; }
.vx-white { fill: #fff; opacity: .85; }
.vx-ring { fill: none; stroke: var(--sk-2); stroke-width: 2; }
.vx-chip { fill: var(--soft); stroke: var(--line); }
.vx-track { stroke: var(--line); }
.vx-track-fill { fill: var(--line); }
.vx-side-sk { fill: #fff; opacity: .26; }
.vx-side-sk.vx-dim { opacity: .14; }
.vx-side-sk.vx-on { opacity: .75; }
.vx-side-box { fill: #fff; opacity: .06; }
/* Animations : jouées à l'affichage de l'onglet */
:is(.ppanel, .phero__visual).is-active .vx-row { animation: vxRow .6s var(--ease-out) both; animation-delay: calc(.25s + var(--d) * 70ms); }
@keyframes vxRow { from { opacity: 0; transform: translateX(-14px); } }
.vx-scan { animation: vxScan 7s var(--ease-io) infinite; }
@keyframes vxScan { 0%, 8% { transform: translateY(0); } 25%, 33% { transform: translateY(132px); } 50%, 58% { transform: translateY(264px); } 75%, 83% { transform: translateY(132px); } 100% { transform: translateY(0); } }
:is(.ppanel, .phero__visual).is-active .vx-seg { animation: vxSeg 1s var(--ease-out) .2s both; transform-box: fill-box; transform-origin: left; }
@keyframes vxSeg { from { transform: scaleX(0); } }
:is(.ppanel, .phero__visual).is-active .vx-kpi { animation: panelIn .6s var(--ease-out) both; animation-delay: calc(.2s + var(--d) * 80ms); }
.vx-gauge { stroke-dasharray: 0 100; }
:is(.ppanel, .phero__visual).is-active .vx-gauge { animation: vxGauge 1.4s var(--ease-out) .4s forwards; }
@keyframes vxGauge { to { stroke-dasharray: 49 100; } }
.vx-bar { transform-box: fill-box; transform-origin: left; transform: scaleX(var(--w)); }
:is(.ppanel, .phero__visual).is-active .vx-bar { animation: vxBar 1.1s var(--ease-out) both; animation-delay: calc(.5s + var(--d) * 120ms); }
@keyframes vxBar { from { transform: scaleX(0); } }
:is(.ppanel, .phero__visual).is-active .vx-cell { animation: vxCell .45s var(--ease-out) both; animation-delay: calc(.35s + var(--d) * 22ms); transform-box: fill-box; transform-origin: center; }
@keyframes vxCell { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .vx-scan { animation: none; } }

/* ---------- Appel à l'action final ---------- */
.closing { padding-bottom: 0; }
.closing__box { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 84px 32px; border-radius: 32px; color: rgba(255,255,255,.75);
  background: radial-gradient(700px 360px at 50% 0%, rgba(225,29,72,.35), transparent 70%), linear-gradient(180deg, #1c0a10, var(--night)); border: 1px solid rgba(255,255,255,.06); }
.closing__box h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; max-width: 820px; margin: 22px auto 18px; }
.closing__box h2 .vf .ch.acc { color: var(--brand-300); }
.closing__box p { max-width: 620px; margin: 0 auto 34px; font-size: 18px; line-height: 1.65; }
.closing__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.closing__rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.closing__rings i { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(251,113,133,.18); animation: ringOut 6s ease-out infinite; }
.closing__rings i:nth-child(2) { animation-delay: -2s; } .closing__rings i:nth-child(3) { animation-delay: -4s; }
@keyframes ringOut { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Méga-menu « Solutions » (modèle ITC) ---------- */
.nav__links a.is-current, .dd.is-current > .dd__btn { color: #fff; background: rgba(225,29,72,.22); }
.dd { position: relative; }
.dd__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.dd__btn .ico { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.dd:hover > .dd__btn, .dd.is-open > .dd__btn { color: #fff; background: rgba(255,255,255,.07); }
.dd:hover > .dd__btn .ico, .dd.is-open > .dd__btn .ico { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: 640px; padding: 12px; border-radius: 22px; z-index: 60;
  background: rgba(20, 8, 12, .97); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility .25s; }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.dd:hover .mega, .dd:focus-within .mega, .dd.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a { display: flex; gap: 14px; padding: 14px; border-radius: 14px; color: rgba(255,255,255,.75); transition: background .2s; }
.mega a:hover, .mega a.is-current { background: rgba(255,255,255,.06); }
.mega__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-300), var(--brand) 55%, var(--brand-600)); box-shadow: 0 8px 18px -8px rgba(225,29,72,.6); }
.mega__ic .ico { width: 19px; height: 19px; }
.mega b { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }
.mega small { display: block; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.55); }
.mega__all { grid-column: 1 / -1; justify-content: space-between; align-items: center; margin-top: 4px; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 14px 14px !important; font-size: 13.5px; font-weight: 600; }
.mega__all .ico { width: 16px; height: 16px; }

/* ---------- Pages Solutions ---------- */
.phero { position: relative; background: var(--night); color: rgba(255,255,255,.72); padding: 140px 0 90px; overflow: hidden; isolation: isolate; }
.phero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs [aria-current] { color: var(--brand-300); font-weight: 600; }
.phero h1 { color: #fff; font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -.035em; line-height: 1.06; margin: 18px 0 22px; }
.phero h1 .vf .ch.acc { color: var(--brand-300); }
.phero .eyebrow { color: var(--brand-300); margin-bottom: 0; }
.phero__lead { font-size: 18px; line-height: 1.7; max-width: 560px; margin-bottom: 34px; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.phero .pshot { box-shadow: var(--shadow-lg); border-color: rgba(255,255,255,.08); }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap { position: relative; padding: 30px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s; }
.cap:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -22px rgba(225,29,72,.3); border-color: var(--stroke); }
.cap .b__ico { margin-bottom: 18px; }
.cap h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.02em; }
.cap p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.caps .reveal:nth-child(3n+2) { transition-delay: .08s; } .caps .reveal:nth-child(3n+3) { transition-delay: .16s; }
/* Démarche : frise qui se remplit à l'apparition */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: st; }
.steps::before, .steps::after { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--brand-300), var(--brand)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-io) .2s; }
.steps.is-visible::after { transform: none; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__n { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--brand); background: var(--card); border: 2px solid var(--stroke); box-shadow: var(--shadow); transition: background .4s, color .4s, border-color .4s; }
.steps.is-visible .step__n { background: var(--brand); color: #fff; border-color: var(--brand); }
.steps.is-visible .step:nth-child(2) .step__n { transition-delay: .5s; } .steps.is-visible .step:nth-child(3) .step__n { transition-delay: .9s; } .steps.is-visible .step:nth-child(4) .step__n { transition-delay: 1.3s; }
.steps.is-visible .step:nth-child(1) .step__n { transition-delay: .1s; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.role h3 { font-size: 16.5px; margin-bottom: 4px; }
.role p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.other { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s; }
.other:hover { transform: translateY(-5px); border-color: var(--stroke); box-shadow: var(--shadow); }
.other h3 { font-size: 18px; letter-spacing: -.02em; }
.other p { color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.other__go { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 14px; }
.other__go .ico { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.other:hover .other__go .ico { transform: translateX(4px); }

/* Illustration « incidents & plans d'action » */
.vx-pill-txt { fill: #fff; opacity: .85; }

/* ---------- LinkedIn ---------- */
.social-in { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease-out); }
.social-in .ico { width: 17px; height: 17px; }
.social-in:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; transform: translateY(-2px); }
.social-in--foot { display: inline-flex; gap: 9px; width: auto; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.nav__in-m { display: none !important; }
.footer__links { display: flex; gap: 24px; font-size: 14px; }
.footer__links a:hover { color: #fff; }
.footer__meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; gap: 2px; }
.heart { color: var(--brand-300); }

/* Retour en haut */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; outline: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brand); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Écran d'accueil (animation ITC) ---------- */
#preloader { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(600px 400px at 70% 20%, rgba(225,29,72,.25), transparent 70%), var(--night);
  transition: transform .9s cubic-bezier(.76,0,.24,1) .1s, visibility 0s 1.1s; }
#preloader::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; background: var(--brand); }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 34px; transition: opacity .35s, transform .5s cubic-bezier(.76,0,.24,1); }
.pl-mark { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); animation: plSpin 2.4s linear infinite; }
.pl-ring circle { fill: none; stroke-width: 2.5; }
.pl-track { stroke: rgba(255,255,255,.08); }
.pl-arc { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 591; stroke-dashoffset: 591; animation: plDraw 1.6s cubic-bezier(.65,0,.35,1) .15s forwards; }
.pl-mark img { width: 92px; height: auto; opacity: 0; transform: scale(.88); filter: blur(8px); animation: plIn .9s var(--ease-out) .2s forwards; }
.pl-tag { color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4em; opacity: 0; text-align: center; padding: 0 16px; line-height: 1.8; animation: plTag 1.1s var(--ease-out) .55s forwards; }
.pl-bar { width: 180px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; animation: plBar 1.7s cubic-bezier(.65,0,.35,1) .1s forwards; }
#preloader.done { transform: translateY(-100%); visibility: hidden; }
#preloader.done .pl-inner { opacity: 0; transform: translateY(-30px); }
.no-intro #preloader { display: none; }
@keyframes plSpin { to { transform: rotate(270deg); } }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes plTag { from { letter-spacing: .8em; } to { opacity: 1; } }
@keyframes plBar { to { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 720px; width: 100%; margin-inline: auto; }
  .window { transform: none; }
  .float--a { right: -6px; } .float--b { left: -6px; }
  .scard { position: relative; top: auto; grid-template-columns: 1fr; gap: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
  .support { grid-template-columns: 1fr; text-align: left; padding: 40px; }
  .manifesto__grid, .ppanel, .pw { grid-template-columns: 1fr; gap: 40px; }
  .pw-svg { max-width: 400px; }
  .caps { grid-template-columns: 1fr 1fr; }
  .phero__grid { grid-template-columns: 1fr; }
  .ptabs { justify-content: flex-start; }
  .support__cta { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 12px; border-radius: 18px;
    background: #14080c; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s; margin: 0; }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__toggle { display: inline-flex; }
  .nav { background: rgba(13, 6, 8, .85); backdrop-filter: blur(14px); }
  .nav__actions .btn--sm { display: none; }
  .nav__actions .social-in { display: none; }
  /* Menu mobile : « Solutions » déroule sa liste dans le panneau */
  .nav__links { max-height: calc(100vh - 96px); overflow-y: auto; }
  .dd__btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 15px; border-radius: 12px; }
  .mega { position: static; width: auto; transform: none; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; padding: 4px 0 6px 8px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .dd:hover .mega, .dd:focus-within .mega { transform: none; }
  .dd.is-open .mega { display: grid; transform: none; }
  .mega a { padding: 10px; }
  .mega__ic { width: 34px; height: 34px; border-radius: 10px; }
  .mega small { display: none; }
  .mega__all { border: 0; }
  .phero { padding: 112px 0 64px; }
  .phero__grid { grid-template-columns: 1fr; gap: 40px; }
  .caps, .roles, .others { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .steps::before, .steps::after { display: none; }
  .nav__links .nav__in-m { display: flex !important; align-items: center; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav__links .nav__in-m .ico { width: 17px; height: 17px; color: #4c9aff; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .section { padding: 84px 0; }
  .footer__meta { margin-left: 0; align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .slide p { font-size: 16px; }
  .tabs { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .window__body { height: 330px; grid-template-columns: 38px 1fr; }
  .screen { padding: 14px; }
  .gantt__row { grid-template-columns: 74px 1fr; height: 40px; }
  .heat-wrap { grid-template-columns: 1fr; } .levels { display: none; }
  .chart-card { height: 180px; }
  .tree__branches { gap: 6px; } .node { padding: 7px 8px; font-size: 10.5px; } .leaf { font-size: 10px; padding: 6px; }
  .float { display: none; }
  .card { padding: 26px 20px; }
  .card__num { font-size: 44px; }
  .viz { padding: 14px; }
  .scan li { grid-template-columns: 22px 1fr 22px; font-size: 13.5px; padding: 12px; }
  .mq-group span { padding: 0 20px; }
  .tile__text { padding: 26px 22px 0; } .art { margin: 22px 22px 0; padding: 14px; }
  .art--kpi { grid-template-columns: 1fr 1fr; } .kpi-bars { display: none; }
  .art--report { grid-template-columns: 1fr; }
  .support { padding: 30px 22px; }
  .btn { height: 48px; padding: 0 20px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .pl-tag { font-size: .62rem; letter-spacing: .25em; }
  .nav__actions { gap: 8px; }
  .ptab { padding: 10px 14px; font-size: 13.5px; }
  .line { grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 12px 16px 0; }
  .line__n { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
  .lines::before { left: 22px; }
  .closing__box { padding: 60px 20px; border-radius: 24px; }
  .theme-toggle { padding: 3px; }
  .theme-toggle span { width: 28px; height: 28px; }
  .theme-toggle .ico { width: 15px; height: 15px; }
  .lang button { padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .vf .ch { opacity: 1; transform: none; }
}


/* =========================================================
   Localisation (adresse + carte Google Maps soumise au consentement, comme le site ITC)
   ========================================================= */
.loc { padding-top: 0; }
.loc__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.loc__info h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.04em; line-height: 1.08; margin: 14px 0 14px; }
.loc__lead { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 26px; }
.loc__list { list-style: none; display: grid; gap: 12px; }
.loc__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.loc__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.loc__ic .ico { width: 20px; height: 20px; }
.loc__list b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.loc__list a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.loc__list a .ico { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.loc__list a:hover .ico { transform: translateX(3px); }
.map { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--soft);
  background-image: radial-gradient(circle at 1px 1px, var(--stroke) 1px, transparent 0); background-size: 22px 22px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 32px; text-align: center; }
.map-ph[hidden] { display: none; }
.map-ph__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--brand-50); }
.map-ph__ic .ico { width: 28px; height: 28px; }
.map-ph p { max-width: 42ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.map-ph .btn--line { color: var(--ink); border-color: var(--line); background: var(--card); }
.map-ph .btn--line:hover { border-color: var(--brand); color: var(--brand); background: var(--card); }
@media (max-width: 960px) { .loc__grid { grid-template-columns: 1fr; gap: 32px; } .map { min-height: 320px; } }

/* Pied de page : adresse + « Gérer les cookies » */
.footer__legal { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer__addr { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); }
.footer__addr .ico { width: 15px; height: 15px; color: var(--brand-300); }
.footer__addr:hover { color: #fff; }
.footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__cookies:hover { color: #fff; }

/* =========================================================
   Arabe : police de secours (DM Sans reste la police du site pour les caractères latins)
   et lecture de droite à gauche
   ========================================================= */
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] textarea { font-family: 'DM Sans', 'Noto Sans Arabic', system-ui, sans-serif; }
html[lang="ar"] body * { letter-spacing: 0 !important; }        /* l'espacement casse la liaison des lettres arabes */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
html[lang="ar"] em { font-style: normal; }                       /* pas d'italique en arabe : la couleur suffit */
.lang button[lang="ar"] { font-family: 'Noto Sans Arabic', 'DM Sans', sans-serif; font-weight: 600; }
/* Flèches orientées dans le sens de lecture */
html[dir="rtl"] .ico:has(use[href="#i-arrow"]) { scale: -1 1; }
/* Défilement du bandeau : on garde le sens d'origine pour une boucle continue */
html[dir="rtl"] .marquee { direction: ltr; }
html[dir="rtl"] .footer__meta { margin-left: 0; margin-right: auto; align-items: flex-start; }
html[dir="rtl"] .loc__list a:hover .ico { transform: translateX(-3px); }
/* Adresse courriel : toujours de gauche à droite */
html[dir="rtl"] [dir="ltr"] { text-align: right; unicode-bidi: isolate; }
/* Arabe : petites étiquettes en police du texte (la police mono n a pas de glyphes arabes) */
html[lang="ar"] .pw-doms small, html[lang="ar"] .live__cap { font-family: inherit; font-size: 13px; }
