/* =====================================================================
   Exigia — site vitrine (exigia.fr)
   Feuille de style commune : index, téléchargements, documentation
   Direction artistique « dossier technique » : papier quadrillé, encre,
   bordures franches, ombres portées dures, accents monospace, tampons.
   Aucune dépendance externe (polices système, icônes SVG inline).
   ===================================================================== */

/* ---------- Réglages globaux ---------- */

:root {
  /* Couleurs de marque (issues du logo) */
  --blue: #0088d7;
  --blue-dark: #006bb0;
  --orange: #ff9100;
  --orange-dark: #e07b00;

  /* Encre & papier */
  --ink: #131a22;           /* encre : bordures, titres */
  --navy: #0b1e33;          /* fonds sombres */
  --body: #3d4a58;          /* texte courant */
  --muted: #67788a;         /* texte secondaire */
  --paper: #f5f1e8;         /* fond papier */
  --paper-2: #ece6d8;       /* papier plus soutenu */
  --bg: #ffffff;

  /* Statuts (identiques à l'application) */
  --st-red: #b91c1c;      --st-red-bg: #fef2f2;      --st-red-bd: #fecaca;
  --st-orange: #c2410c;   --st-orange-bg: #fff7ed;   --st-orange-bd: #fed7aa;
  --st-blue: #1d4ed8;     --st-blue-bg: #eff6ff;     --st-blue-bd: #bfdbfe;
  --st-green: #15803d;    --st-green-bg: #f0fdf4;    --st-green-bd: #bbf7d0;
  --st-yellow: #a16207;   --st-yellow-bg: #fefce8;   --st-yellow-bd: #fde68a;
  --st-gray: #64748b;     --st-gray-bg: #f8fafc;     --st-gray-bd: #e2e8f0;

  --radius: 10px;
  --radius-sm: 8px;
  --line: 2px solid var(--ink);
  --shadow-hard: 6px 6px 0 rgba(19, 26, 34, 0.9);
  --shadow-hard-sm: 4px 4px 0 rgba(19, 26, 34, 0.9);
  --shadow-soft: 0 10px 30px -12px rgba(19, 26, 34, 0.25);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Les ancres ne doivent pas passer sous l'en-tête collant */
section[id], div[id] { scroll-margin-top: 78px; }

body {
  overflow-x: clip; /* filet de sécurité : rien ne doit élargir la page */
  font-family: var(--font);
  color: var(--body);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(19, 26, 34, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 34, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; vertical-align: middle; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }

strong { color: var(--ink); }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: #fff;
  border: 1px solid rgba(19, 26, 34, 0.25);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--ink);
  word-break: break-word;
}

kbd { box-shadow: inset 0 -1px 0 rgba(19, 26, 34, 0.25); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

::selection { background: rgba(255, 145, 0, 0.35); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  border: var(--line);
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(19, 26, 34, 0.9);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ffa62e; color: var(--ink); }

.btn-outline { background: transparent; }
.btn-outline:hover { background: #fff; }

.btn-ghost-light {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.28);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.28);
}

.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9); }

/* ---------- Tampons ---------- */

.stamp {
  display: inline-block;
  padding: 7px 14px;
  border: 3px double currentColor;
  border-radius: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-dark);
  transform: rotate(-5deg);
  background: rgba(255, 255, 255, 0.82);
}
.stamp-green { color: var(--st-green); }
.stamp-blue { color: var(--blue-dark); }

/* ---------- En-tête / navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: var(--line);
}
.site-header.scrolled { box-shadow: 0 4px 0 rgba(19, 26, 34, 0.08); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.site-nav > a:hover { color: var(--blue-dark); text-decoration: none; }
.site-nav > a.active {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--orange);
}
.site-nav .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: #fff; border: var(--line); border-radius: var(--radius-sm);
  width: 42px; height: 42px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Sélecteur de langue (injecté par assets/js/i18n.js) ---------- */
.lang-switch { display: flex; align-items: center; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  background: #fff; border: var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 13px;
  padding: 8px 26px 8px 12px; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131a22' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center; background-size: 14px;
}
.lang-switch select:hover { border-color: var(--blue-dark); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: var(--line);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 10px 4px; font-size: 16px; }
  .site-nav > a.active { box-shadow: inset 4px 0 0 var(--orange); padding-left: 12px; }
  .site-nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Sections génériques ---------- */

.section { padding: 92px 0; }
.section-soft { background: var(--paper-2); border-top: var(--line); border-bottom: var(--line); }
.section-white { background: #fff; border-top: var(--line); border-bottom: var(--line); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--orange);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 16px; }
.section-head .lead { font-size: 17.5px; color: var(--body); }

/* ---------- Héros ---------- */

.hero { padding: 84px 0 78px; overflow: hidden; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 60px; align-items: center; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
  border: var(--line); background: #fff;
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
  margin-bottom: 26px;
}
.hero-kicker em { font-style: normal; color: var(--orange-dark); }

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--ink);
  background: linear-gradient(transparent 55%, rgba(255, 145, 0, 0.75) 55%, rgba(255, 145, 0, 0.75) 92%, transparent 92%);
}

.hero .sub { font-size: 18px; line-height: 1.6; color: var(--body); margin-bottom: 32px; max-width: 33em; }
.hero .sub strong { color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }

.hero-points { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.hero-points li {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--ink);
}
.hero-points svg { width: 15px; height: 15px; color: var(--st-green); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual .stamp {
  position: absolute; z-index: 3;
}
.hero-visual .stamp-a { top: -18px; right: -6px; transform: rotate(6deg); }
.hero-visual .stamp-b { bottom: -16px; left: -10px; transform: rotate(-5deg); }

@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 52px; }
  .hero-visual .stamp-a { right: 4px; }
  .hero-visual .stamp-b { left: 0; }
}

/* ---------- Bandeau défilant (ticker) ---------- */

.ticker {
  background: var(--ink); color: var(--paper);
  border-top: var(--line); border-bottom: var(--line);
  overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 11px 0;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > div { display: flex; flex-shrink: 0; }
.ticker-track span { padding: 0 16px; white-space: nowrap; }
.ticker-track span::after { content: "///"; margin-left: 32px; color: var(--orange); }

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- Maquette produit (fausse fenêtre) ---------- */

.mock-window {
  background: #fff;
  border-radius: var(--radius);
  border: var(--line);
  box-shadow: 8px 8px 0 rgba(19, 26, 34, 0.9);
  overflow: hidden;
  font-size: 12.5px;
  color: var(--body);
  position: relative; z-index: 2;
}

.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border-bottom: var(--line);
  padding: 9px 14px;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; }
.mock-dot:nth-child(1) { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }
.mock-url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink);
  background: #fff; border: 1px solid rgba(19, 26, 34, 0.4); border-radius: 6px;
  padding: 3px 10px; max-width: 300px; margin: 0 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.mock-body { display: flex; min-height: 320px; }

.mock-side {
  width: 128px; flex-shrink: 0;
  background: var(--paper);
  border-right: var(--line);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-side .mk-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 12.5px; padding: 2px 8px 10px; }
.mock-side .mk-brand svg { width: 15px; height: 15px; }
.mock-side span {
  display: block; padding: 6px 9px; border-radius: 7px;
  color: var(--muted); font-size: 11.5px;
}
.mock-side span.on { background: var(--ink); color: #fff; font-weight: 600; }

.mock-main { flex: 1; padding: 16px 18px; min-width: 0; }

.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mock-h .t { font-weight: 700; color: var(--ink); font-size: 14px; }
.mock-h .pct { font-family: var(--mono); font-weight: 700; color: var(--st-green); font-size: 11px; white-space: nowrap; }

.mock-progress { height: 9px; border-radius: 99px; border: 1.5px solid var(--ink); background: #fff; overflow: hidden; margin-bottom: 16px; }
.mock-progress i { display: block; height: 100%; width: 68%;
  background: repeating-linear-gradient(-45deg, var(--blue), var(--blue) 6px, #35a8e8 6px, #35a8e8 12px); }

.mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  margin-bottom: 6px; background: #fff;
}
.mock-row .rid { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--ink); flex-shrink: 0; width: 46px; }
.mock-row .rt { flex: 1; color: var(--ink); font-weight: 500; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row.lvl2 { margin-left: 22px; }

.mock-note {
  position: relative;
  margin-top: 14px;
  background: var(--st-yellow-bg); border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 8px 11px; font-size: 11px; color: #92400e;
  display: flex; gap: 7px; align-items: flex-start;
}
.mock-note svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

/* pastilles de statut */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono);
  font-size: 10px; font-weight: 700; white-space: nowrap;
  border: 1.5px solid; border-radius: 999px; padding: 2px 8px;
  flex-shrink: 0;
}
.pill-lg { font-size: 12.5px; padding: 5px 13px; gap: 7px; }
.pill-red    { color: var(--st-red);    background: var(--st-red-bg);    border-color: var(--st-red-bd); }
.pill-orange { color: var(--st-orange); background: var(--st-orange-bg); border-color: var(--st-orange-bd); }
.pill-blue   { color: var(--st-blue);   background: var(--st-blue-bg);   border-color: var(--st-blue-bd); }
.pill-green  { color: var(--st-green);  background: var(--st-green-bg);  border-color: var(--st-green-bd); }
.pill-yellow { color: var(--st-yellow); background: var(--st-yellow-bg); border-color: var(--st-yellow-bd); }
.pill-gray   { color: var(--st-gray);   background: var(--st-gray-bg);   border-color: var(--st-gray-bd); }

@media (max-width: 560px) {
  .mock-side { display: none; }
}

/* ---------- Cartes ---------- */

.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 940px) { .cards-3 { grid-template-columns: minmax(0, 1fr); } .cards-2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: #fff;
  border: var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-hard-sm);
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-hard); transform: translate(-2px, -2px); }
.card h3 { font-size: 17.5px; margin: 14px 0 8px; }
.card p { font-size: 14.5px; color: var(--body); }
.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; }

.card .idx {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.08em;
}

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--st-blue-bg); color: var(--blue-dark);
  border: 2px solid var(--ink);
}
.card-icon.warm { background: rgba(255, 145, 0, 0.18); color: var(--orange-dark); }
.card-icon svg { width: 22px; height: 22px; }

/* Cartes « problème » */
.pain .card { box-shadow: 4px 4px 0 rgba(185, 28, 28, 0.55); }
.pain .card:hover { box-shadow: 6px 6px 0 rgba(185, 28, 28, 0.55); }
.pain .card-icon { background: var(--st-red-bg); color: var(--st-red); }

/* =====================================================================
   Scrollytelling : la démo du fil complet
   ===================================================================== */

.scrolly { position: relative; padding: 92px 0 40px; }
.scrolly .section-head { margin-bottom: 12px; }

.scrolly-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.scrolly-stage-wrap { grid-column: 2; grid-row: 1; position: sticky; top: 92px; }
.scrolly-steps { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }

.scrolly-step {
  min-height: 96vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vh 0;
}
.scrolly-step .sc-num {
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  color: var(--ink); background: #fff;
  border: var(--line); border-radius: 50%;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
  margin-bottom: 18px;
}
.scrolly-step h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; letter-spacing: -0.025em; }
.scrolly-step p { font-size: 16px; color: var(--body); max-width: 34em; }
.scrolly-step p + p { margin-top: 10px; }
.scrolly-step .sc-callout {
  margin-top: 16px;
  border-left: 4px solid var(--orange);
  background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: 14.5px; color: var(--ink); font-weight: 600;
  max-width: 32em;
}

/* --- La scène --- */

.scrolly-stage {
  position: relative;
  height: min(74vh, 620px);
  background:
    linear-gradient(rgba(19, 26, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 34, 0.045) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(19, 26, 34, 0.9);
  overflow: hidden;
}

.sc-cartouche {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: var(--line);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.sc-dots { display: flex; gap: 6px; }
.sc-dots i { width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; transition: background 0.3s; }
.scrolly-stage[data-act="1"] .sc-dots i:nth-child(-n+1),
.scrolly-stage[data-act="2"] .sc-dots i:nth-child(-n+2),
.scrolly-stage[data-act="3"] .sc-dots i:nth-child(-n+3),
.scrolly-stage[data-act="4"] .sc-dots i:nth-child(-n+4),
.scrolly-stage[data-act="5"] .sc-dots i:nth-child(-n+5),
.scrolly-stage[data-act="6"] .sc-dots i:nth-child(-n+6) { background: var(--orange); }

.sc-scene { position: absolute; inset: 42px 0 0 0; }

/* Le cahier des charges */
.sc-doc {
  position: absolute; left: 50%; top: 48%;
  width: min(320px, 72%);
  transform: translate(-50%, -50%);
  transform-origin: top left;
  background: #fff;
  border: var(--line); border-radius: var(--radius-sm);
  box-shadow: 5px 5px 0 rgba(19, 26, 34, 0.25);
  padding: 16px;
  transition: left 0.65s cubic-bezier(0.3, 0.7, 0.2, 1), top 0.65s cubic-bezier(0.3, 0.7, 0.2, 1),
              transform 0.65s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.5s;
  z-index: 3;
}
.sc-doc .sc-doc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 8px; margin-bottom: 10px;
}
.sc-doc .sc-doc-head .pg { color: var(--muted); }
.sc-line { height: 7px; border-radius: 3px; background: #e3e0d7; margin: 8px 0; }
.sc-line.w95 { width: 95%; } .sc-line.w85 { width: 85%; } .sc-line.w75 { width: 75%; }
.sc-line.w60 { width: 60%; } .sc-line.w45 { width: 45%; }
.sc-line.hl { background: rgba(255, 145, 0, 0.3); transition: background 0.5s; }
.scrolly-stage[data-act="1"] .sc-line.hl { background: rgba(255, 145, 0, 0.9); }
.scrolly-stage[data-act="1"] .sc-line.hl:nth-of-type(4) { transition-delay: 0.3s; }
.scrolly-stage[data-act="1"] .sc-line.hl:nth-of-type(7) { transition-delay: 0.7s; }
.scrolly-stage[data-act="1"] .sc-line.hl:nth-of-type(9) { transition-delay: 1.1s; }

.scrolly-stage:not([data-act="1"]) .sc-doc {
  left: 14px; top: 12px;
  transform: translate(0, 0) scale(0.42);
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.25);
}
.scrolly-stage[data-act="6"] .sc-doc { opacity: 0; }

/* L'arbre d'exigences */
.sc-tree {
  position: absolute; left: 16px; right: 168px; top: 100px; bottom: 12px;
  display: flex; flex-direction: column; gap: 9px;
  transition: opacity 0.45s, transform 0.45s;
  z-index: 2;
}
.sc-row {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 7px 10px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s, transform 0.45s;
}
.sc-row.lvl2 { margin-left: 26px; }
.sc-row .rid { font-family: var(--mono); font-size: 10px; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.sc-row .rt { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.scrolly-stage:not([data-act="1"]) .sc-row { opacity: 1; transform: none; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(1) { transition-delay: 0.05s; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(2) { transition-delay: 0.15s; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(3) { transition-delay: 0.25s; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(4) { transition-delay: 0.35s; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(5) { transition-delay: 0.45s; }
.scrolly-stage[data-act="2"] .sc-row:nth-child(6) { transition-delay: 0.55s; }
.scrolly-stage[data-act="6"] .sc-tree { opacity: 0; transform: translateY(-10px); }

/* statuts par acte */
.sc-row .st { flex-shrink: 0; }
.sc-row .st i {
  display: none; font-style: normal;
  font-family: var(--mono); font-size: 9px; font-weight: 700; white-space: nowrap;
  border: 1.5px solid; border-radius: 999px; padding: 2px 7px;
}
.sc-row .st .s1 { color: var(--st-red); background: var(--st-red-bg); border-color: var(--st-red-bd); display: inline-block; }
.sc-row .st .s2 { color: var(--st-blue); background: var(--st-blue-bg); border-color: var(--st-blue-bd); }
.sc-row .st .s3 { color: var(--st-green); background: var(--st-green-bg); border-color: var(--st-green-bd); }
.scrolly-stage[data-act="3"] .sc-row .st .s1 { display: none; }
.scrolly-stage[data-act="3"] .sc-row .st .s2 { display: inline-block; }
/* EX-1 et EX-1.1 restent « à couvrir » à l'acte 3 : le complément les couvrira à l'acte 4 */
.scrolly-stage[data-act="3"] .sc-row-late .st .s1 { display: inline-block; }
.scrolly-stage[data-act="3"] .sc-row-late .st .s2 { display: none; }
.scrolly-stage[data-act="4"] .sc-row .st .s1 { display: none; }
.scrolly-stage[data-act="4"] .sc-row .st .s2 { display: inline-block; }
.scrolly-stage[data-act="5"] .sc-row .st .s1, .scrolly-stage[data-act="6"] .sc-row .st .s1 { display: none; }
.scrolly-stage[data-act="5"] .sc-row .st .s3, .scrolly-stage[data-act="6"] .sc-row .st .s3 { display: inline-block; }

/* Acte 4 : la liaison depuis Word arrive « en direct » */
.scrolly-stage[data-act="4"] .sc-row-word {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 136, 215, 0.22);
}
.scrolly-stage[data-act="4"] .sc-row-word .st .s2 {
  animation: sc-pop 0.45s 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@keyframes sc-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Les livrables qui répondent */
.sc-file {
  position: absolute; left: calc(100% + 36px); top: 50%;
  transform: translate(26px, -50%);
  opacity: 0;
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 5px 8px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.45s, transform 0.45s;
  z-index: 2;
}
.sc-file::before {
  content: "";
  position: absolute; right: 100%; top: 50%;
  width: 36px;
  border-top: 2px dashed var(--blue);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.4s 0.25s;
}
.sc-file .fic {
  width: 17px; height: 17px; border-radius: 4px;
  display: grid; place-items: center;
  color: #fff; font-size: 7.5px; font-weight: 800; letter-spacing: 0;
  flex-shrink: 0;
}
.fic-w  { background: #185abd; }  /* Word */
.fic-x  { background: #107c41; }  /* Excel */
.fic-sw { background: #d9261c; }  /* SolidWorks */
.fic-rv { background: #2c5f8a; }  /* Revit */

.scrolly-stage[data-act="3"] .sc-file,
.scrolly-stage[data-act="4"] .sc-file,
.scrolly-stage[data-act="5"] .sc-file { opacity: 1; transform: translate(0, -50%); }
.scrolly-stage[data-act="3"] .sc-file::before,
.scrolly-stage[data-act="4"] .sc-file::before,
.scrolly-stage[data-act="5"] .sc-file::before { transform: scaleX(1); }
.scrolly-stage[data-act="3"] .sc-row:nth-child(3) .sc-file { transition-delay: 0.15s; }
.scrolly-stage[data-act="3"] .sc-row:nth-child(5) .sc-file { transition-delay: 0.35s; }
.scrolly-stage[data-act="3"] .sc-row:nth-child(6) .sc-file { transition-delay: 0.55s; }

/* Le livrable Word, lui, n'arrive qu'à l'acte 4 — via le complément */
.scrolly-stage[data-act="3"] .sc-row-word .sc-file { opacity: 0; transform: translate(26px, -50%); }
.scrolly-stage[data-act="3"] .sc-row-word .sc-file::before { transform: scaleX(0); }
.scrolly-stage[data-act="4"] .sc-row-word .sc-file { transition-delay: 0.45s; }
.scrolly-stage[data-act="4"] .sc-row-word .sc-file::before { transition-delay: 0.7s; }

/* Le tampon de validation */
.sc-stamp {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%) rotate(-9deg) scale(1.7);
  opacity: 0;
  border: 4px double var(--st-green);
  border-radius: var(--radius);
  color: var(--st-green);
  background: rgba(240, 253, 244, 0.88);
  padding: 12px 26px;
  font-family: var(--mono); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: clamp(19px, 2.4vw, 27px);
  text-align: center;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 6;
}
.sc-stamp small {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; margin-top: 3px;
}
.scrolly-stage[data-act="5"] .sc-stamp {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-9deg) scale(1);
}

/* La fenêtre Word du complément (acte 4) */
.sc-word {
  position: absolute; right: 12px; bottom: 14px;
  width: min(260px, 60%);
  background: #fff;
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: 5px 5px 0 rgba(19, 26, 34, 0.9);
  overflow: hidden;
  font-size: 10.5px; line-height: 1.55; color: var(--body);
  opacity: 0; transform: translateY(20px) scale(0.94);
  transition: opacity 0.4s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 8;
}
.scrolly-stage[data-act="4"] .sc-word { opacity: 1; transform: none; }
.sc-word-bar {
  display: flex; align-items: center; gap: 6px;
  background: #185abd; color: #fff;
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 9px;
}
.sc-word-bar .fic { width: 14px; height: 14px; font-size: 7px; background: rgba(255, 255, 255, 0.22); }
.sc-word-body { padding: 9px 11px 6px; }
.sc-word-body mark { background: rgba(0, 136, 215, 0.2); padding: 1px 2px; border-radius: 2px; color: var(--ink); }
.sc-word-menu {
  margin: 6px 11px 11px;
  background: #fff;
  border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.25);
  overflow: hidden;
  font-size: 9.5px;
}
.sc-word-menu span { display: block; padding: 4px 9px; color: var(--muted); border-bottom: 1px solid rgba(19, 26, 34, 0.12); }
.sc-word-menu span:last-child { border-bottom: none; }
.sc-word-menu .on { background: var(--orange); color: var(--ink); font-weight: 700; }

/* Le dossier remis au client */
.sc-dossier {
  position: absolute; left: 50%; top: 52%;
  width: min(340px, 82%);
  transform: translate(-50%, -46%) scale(0.92);
  opacity: 0;
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
  z-index: 7;
}
.scrolly-stage[data-act="6"] .sc-dossier { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.sc-folder {
  position: relative;
  background: #fff;
  border: var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: 6px 6px 0 rgba(19, 26, 34, 0.9);
  padding: 22px 22px 18px;
  margin-top: 26px;
}
.sc-folder-tab {
  position: absolute; top: -28px; left: -2px;
  background: var(--orange);
  border: var(--line); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 4px 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.sc-folder h4 { font-size: 19px; margin-bottom: 4px; }
.sc-folder .sc-count { font-size: 13px; color: var(--body); margin-bottom: 14px; }
.sc-folder .sc-count b { color: var(--st-green); font-family: var(--mono); font-size: 15px; }
.sc-folder-files { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.sc-folder-files span {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  padding: 3px 10px;
}
.sc-folder .stamp {
  position: absolute; right: 10px; bottom: -16px;
  font-size: 11px; transform: rotate(-6deg);
}

/* --- Scrolly : mobile --- */

@media (max-width: 940px) {
  .scrolly-wrap { display: block; }
  .scrolly-stage-wrap {
    position: sticky; top: 70px; z-index: 20;
    margin: 0 -6px;
  }
  .scrolly-stage { height: min(48vh, 430px); box-shadow: 5px 5px 0 rgba(19, 26, 34, 0.9); }
  .scrolly-step { min-height: 72vh; padding: 6vh 0; }
  .scrolly-step h3 { font-size: 21px; }
  .scrolly-step p { font-size: 15px; }

  .sc-tree { right: 96px; top: 84px; gap: 6px; }
  .sc-row { padding: 5px 8px; }
  .sc-row .rt { font-size: 10.5px; }
  .sc-row .st i { font-size: 8px; padding: 1px 5px; }
  .sc-file { left: calc(100% + 22px); padding: 4px 5px; }
  .sc-file::before { width: 22px; }
  .sc-file .fn { display: none; }
  .sc-doc { width: min(250px, 66%); padding: 12px; }
  .sc-line { height: 5px; margin: 6px 0; }
  .sc-stamp { font-size: 17px; padding: 9px 18px; }
  .sc-cartouche { font-size: 9.5px; padding: 8px 10px; }
  .sc-word { width: min(205px, 64%); right: 8px; bottom: 10px; font-size: 9.5px; }
  .sc-word-body { padding: 7px 9px 4px; }
  .sc-word-menu { margin: 5px 9px 9px; font-size: 8.5px; }
}

/* =====================================================================
   Grand livre des bénéfices
   ===================================================================== */

.ledger { border-top: var(--line); }
.ledger-row {
  display: grid;
  grid-template-columns: 72px 300px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 24px 10px;
  border-bottom: var(--line);
  transition: background 0.15s;
}
.ledger-row:hover { background: #fff; }
.ledger-row .ln {
  font-family: var(--mono); font-size: 13px; font-weight: 800;
  color: var(--orange-dark); letter-spacing: 0.06em;
}
.ledger-row h3 { font-size: 19px; letter-spacing: -0.02em; }
.ledger-row p { font-size: 15px; color: var(--body); margin: 0; max-width: 62ch; }

@media (max-width: 880px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 20px 4px; }
  .ledger-row .ln { font-size: 12px; }
}

/* =====================================================================
   Pour qui : profils
   ===================================================================== */

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
@media (max-width: 940px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }

.who {
  background: #fff;
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 18px 20px;
}
.who .wd {
  display: block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-dark);
  margin-bottom: 6px;
}
.who .wt { display: block; font-weight: 800; color: var(--ink); font-size: 16.5px; letter-spacing: -0.015em; }
.who p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.who-note {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: var(--line); border-left: 8px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 22px 26px;
  font-size: 16px; color: var(--ink);
}
.who-note strong { color: var(--ink); }

/* ---------- Deux colonnes texte + visuel ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 940px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.split h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 16px; }
.split .lead { color: var(--body); font-size: 16.5px; margin-bottom: 20px; }

.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist svg { width: 20px; height: 20px; color: var(--st-green); flex-shrink: 0; margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* ---------- Section sombre (données) ---------- */

.dark-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--navy);
  background-size: 28px 28px;
  color: #b6c8d9;
  border-top: var(--line);
  border-bottom: var(--line);
}
.dark-section .section-head h2, .dark-section h3 { color: #fff; }
.dark-section .eyebrow { color: #fff; }
.dark-section .eyebrow::before { border-color: #fff; }
.dark-section .section-head .lead { color: #9fb4c8; }
.dark-section strong { color: #fff; }
.dark-section .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.22);
}
.dark-section .card:hover { box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.22); }
.dark-section .card p { color: #9fb4c8; }
.dark-section .card-icon { background: rgba(0, 136, 215, 0.25); color: #6cc4f5; border-color: rgba(255, 255, 255, 0.75); }
.dark-section .card-icon.warm { background: rgba(255, 145, 0, 0.22); color: #ffb254; }
.dark-section code { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff; border: var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  font-weight: 700; color: var(--ink); font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.faq .faq-body { padding: 16px 22px 20px; font-size: 14.5px; color: var(--body); }
.faq .faq-body p + p { margin-top: 10px; }

/* ---------- Bloc contact / CTA final ---------- */

.cta-final {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--navy);
  background-size: 28px 28px;
  border: var(--line);
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(19, 26, 34, 0.9);
  color: #b6c8d9;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final h2 { color: #fff; font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 14px; }
.cta-final p { max-width: 36em; margin: 0 auto 30px; font-size: 17px; }
.cta-final .hero-ctas { justify-content: center; margin-bottom: 18px; }
.cta-final .mail { color: #9fb4c8; font-size: 14.5px; }
.cta-final .mail a { color: #fff; font-weight: 700; }

@media (max-width: 560px) { .cta-final { padding: 44px 22px; } }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink); color: #9fb4c8; padding: 56px 0 28px; border-top: var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .about { font-size: 14px; max-width: 30em; }
.site-footer h4 { color: #fff; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: #9fb4c8; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: #7b91a6;
}

/* ---------- Bandeau de page (téléchargements, docs) ---------- */

.page-hero {
  padding: 60px 0 54px;
  border-bottom: var(--line);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.03em; margin-bottom: 14px; }
.page-hero p { max-width: 42em; margin: 0 auto; font-size: 17px; color: var(--body); }

/* ---------- Page téléchargements ---------- */

.dl-card {
  background: #fff; border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 32px;
  display: flex; flex-direction: column;
}
.dl-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.dl-head .app-ico {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.dl-head .app-ico svg { width: 30px; height: 30px; }
.app-ico.ms { background: #e8f1fb; color: #185abd; }
.app-ico.lo { background: #eefbe8; color: #43a047; }
.dl-head h2 { font-size: 21px; }
.dl-head .hosts { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.dl-card > p { font-size: 14.5px; color: var(--body); margin: 12px 0 18px; }

.dl-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 16px;
  font-family: var(--mono); font-size: 13px; color: var(--ink);
}
.dl-link .url { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 7px;
  padding: 6px 11px; font-size: 12.5px; font-weight: 700; color: var(--ink);
  cursor: pointer; font-family: var(--font);
  box-shadow: 2px 2px 0 rgba(19, 26, 34, 0.9);
  transition: transform 0.12s, box-shadow 0.12s;
}
.copy-btn:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(19, 26, 34, 0.9); }
.copy-btn.copied { border-color: var(--st-green); color: var(--st-green); background: var(--st-green-bg); }
.copy-btn svg { width: 13px; height: 13px; }

.dl-card .btn { align-self: flex-start; }

.install-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: inst; display: grid; gap: 12px; }
.install-steps li { position: relative; padding-left: 40px; font-size: 14.5px; }
.install-steps li::before {
  counter-increment: inst; content: counter(inst);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.install-steps strong { color: var(--ink); }

/* ---------- Encadrés (callouts) ---------- */

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius-sm); padding: 15px 17px;
  font-size: 14px; margin: 18px 0;
  border: 1.5px solid var(--ink);
}
.callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.callout p + p { margin-top: 8px; }
.callout-info { background: var(--st-blue-bg); color: #1e3a8a; }
.callout-info svg { color: var(--st-blue); }
.callout-warn { background: var(--st-yellow-bg); color: #713f12; }
.callout-warn svg { color: var(--st-yellow); }
.callout-ok { background: var(--st-green-bg); color: #14532d; }
.callout-ok svg { color: var(--st-green); }

/* =====================================================================
   Documentation : accueil (hub)
   ===================================================================== */

.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .hub-grid { grid-template-columns: minmax(0, 1fr); } }

.hub-card {
  display: block;
  background: #fff;
  border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hard-sm);
  padding: 24px 26px;
  color: var(--body);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hub-card:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.hub-card .hix {
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--orange-dark);
  display: block; margin-bottom: 10px;
}
.hub-card h2 { font-size: 19px; margin-bottom: 7px; }
.hub-card p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.hub-card .hgo { font-weight: 700; font-size: 13.5px; color: var(--blue-dark); }

/* =====================================================================
   Documentation : pages de contenu
   ===================================================================== */

.docs-layout {
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  gap: 52px; align-items: start;
  padding: 44px 0 90px;
}
@media (max-width: 940px) { .docs-layout { grid-template-columns: 1fr; gap: 12px; } }

.docs-sidebar {
  position: sticky; top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
@media (max-width: 940px) {
  .docs-sidebar { position: static; max-height: none; overflow: visible; }
}

.docs-nav { font-size: 14px; }
.docs-nav .grp {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 20px 0 7px;
}
.docs-nav .grp:first-child { margin-top: 0; }
.docs-nav a {
  display: block; color: var(--body); padding: 6px 11px;
  border-left: 2px solid rgba(19, 26, 34, 0.2); border-radius: 0 7px 7px 0;
  font-weight: 500;
}
.docs-nav a:hover { color: var(--blue-dark); background: rgba(255, 255, 255, 0.8); text-decoration: none; }
.docs-nav a.active {
  color: var(--ink); border-left: 4px solid var(--orange);
  background: #fff; font-weight: 700;
}
.docs-nav a.sub { font-size: 13px; padding: 4px 11px 4px 24px; color: var(--muted); }
.docs-nav a.sub.active { border-left: 4px solid var(--orange); color: var(--ink); font-weight: 600; background: #fff; }

.docs-toggle { display: none; }
@media (max-width: 940px) {
  .docs-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: #fff; border: var(--line); border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
    padding: 12px 16px; font-size: 15px; font-weight: 700; color: var(--ink);
    cursor: pointer; font-family: var(--font); margin-bottom: 10px;
  }
  .docs-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
  .docs-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .docs-sidebar .docs-nav { display: none; }
  .docs-sidebar.open .docs-nav { display: block; }
  .docs-sidebar { background: #fff; border: var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-hard-sm); }
}

.docs-content { min-width: 0; }

.docs-content section { scroll-margin-top: 90px; padding-top: 8px; }
.docs-content section + section { margin-top: 54px; border-top: var(--line); padding-top: 44px; }

.docs-content .docs-crumb {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.docs-content .docs-crumb a { color: var(--orange-dark); }
.docs-content h1 { font-size: 36px; letter-spacing: -0.03em; margin-bottom: 10px; }
.docs-content .docs-intro { font-size: 17px; color: var(--muted); margin-bottom: 36px; max-width: 46em; }
.docs-content h2 { font-size: 26px; margin-bottom: 16px; }
.docs-content h3 { font-size: 18.5px; margin: 30px 0 10px; }
.docs-content p { margin-bottom: 13px; max-width: 72ch; }
.docs-content ul, .docs-content ol { margin: 0 0 15px 24px; max-width: 70ch; }
.docs-content li { margin-bottom: 7px; }
.docs-content li > ul { margin-top: 7px; margin-bottom: 0; }

.anchor-link { color: rgba(19, 26, 34, 0.25); font-weight: 400; margin-left: 8px; font-size: 0.75em; }
h2:hover .anchor-link, h3:hover .anchor-link { color: var(--blue); text-decoration: none; }

/* pagination bas de page docs */
.doc-pager {
  display: flex; justify-content: space-between; gap: 14px;
  margin-top: 56px; padding-top: 28px;
  border-top: var(--line);
}
.doc-pager a {
  flex: 1; max-width: 46%;
  background: #fff; border: var(--line); border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
  padding: 14px 18px;
  color: var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.doc-pager a:hover { text-decoration: none; transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(19, 26, 34, 0.9); }
.doc-pager a.next { margin-left: auto; text-align: right; }
.doc-pager .lbl {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 3px;
}
.doc-pager .ttl { font-weight: 700; font-size: 14.5px; }

/* tableaux */
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: var(--line); border-radius: var(--radius-sm); background: #fff; }
table.doc-table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
.doc-table th, .doc-table td { text-align: left; padding: 11px 15px; border-bottom: 1px solid rgba(19, 26, 34, 0.2); vertical-align: top; }
.doc-table th { background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1.5px solid var(--ink); }
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { white-space: nowrap; }

/* blocs "chemin de menu" */
.menu-path {
  display: inline-block;
  background: #fff; border: 1px solid rgba(19, 26, 34, 0.4); border-radius: 7px;
  padding: 2px 9px; font-size: 0.9em; color: var(--ink); font-weight: 600;
}

/* mini-cartes récap en docs */
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
@media (max-width: 700px) { .doc-cards { grid-template-columns: minmax(0, 1fr); } }
.doc-card { border: 1.5px solid var(--ink); border-radius: var(--radius-sm); padding: 16px 18px; background: #fff; }
.doc-card h4 { font-size: 14.5px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.doc-card h4 svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.doc-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* retour en haut */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  border: var(--line); cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 3px 3px 0 rgba(19, 26, 34, 0.9);
}
.back-top.show { display: flex; }
.back-top svg { width: 19px; height: 19px; }
.back-top:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(19, 26, 34, 0.9); }

/* ---------- Très petits écrans (téléphones étroits) ---------- */

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 44px 0 56px; }
  /* Les libellés longs des boutons passent à la ligne au lieu de déborder */
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual .stamp { font-size: 11px; padding: 6px 10px; }
  .page-hero { padding: 44px 0 40px; }
  .who-note { padding: 18px 18px; }
  .cta-final { border-radius: 12px; box-shadow: 6px 6px 0 rgba(19, 26, 34, 0.9); }
}

/* ---------- Animations d'apparition ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover, .hub-card:hover { transform: none; }
  .ticker-track { animation: none; }
  .sc-doc, .sc-row, .sc-file, .sc-stamp, .sc-dossier, .sc-tree, .sc-line.hl, .sc-file::before, .sc-word { transition: none !important; }
  .scrolly-stage .sc-row-word .st .s2 { animation: none !important; }
}

/* ---------- Impression (documentation) ---------- */

@media print {
  .site-header, .site-footer, .docs-sidebar, .back-top, .docs-toggle, .cta-final, .doc-pager { display: none !important; }
  .docs-layout { display: block; padding: 0; }
  body { font-size: 12px; background: #fff; }
  .docs-content section { page-break-inside: avoid; }
}
