/* ==========================================================================
   Tabelys — feuille de style principale
   Palette : bleu nuit (#0F1C34) + bleu canard (#0F7472) + gris clair
   Typographies : Manrope (titres) + Inter (texte)
   ========================================================================== */

:root {
  --navy: #0F1C34;
  --navy-2: #172a4d;
  --teal: #0F7472;
  --teal-600: #0b5c5a;
  --teal-bright: #2BA39F;
  --teal-50: #EAF4F3;
  --teal-100: #D2E9E7;

  --ink: #0F1C34;
  --text: #2B3547;
  --muted: #5C6678;
  --line: #E2E6EC;
  --line-strong: #CBD2DC;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-softer: #FAFBFC;

  --ok: #0F7472;
  --ok-bg: #E6F3F2;
  --warn: #9A5B00;
  --warn-bg: #FFF4DB;
  --bad: #B42318;
  --bad-bg: #FDECEA;

  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 52, .06);
  --shadow: 0 1px 2px rgba(15, 28, 52, .05), 0 8px 24px -8px rgba(15, 28, 52, .12);
  --shadow-lg: 0 2px 4px rgba(15, 28, 52, .04), 0 24px 56px -16px rgba(15, 28, 52, .22);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--teal-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 26px; height: 26px; }

/* Texte à compléter avant mise en ligne — repérable visuellement */
.todo { background: #FFF3BF; outline: 1px dashed #D9A400; border-radius: 3px; padding: 0 3px; color: #5C4400; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: -0.01em;
  padding: .82em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 116, 114, .55); }
.btn-primary:hover { background: var(--teal-600); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-50); color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-lg { font-size: 1.04rem; padding: .95em 1.6em; }
.btn-sm { font-size: .88rem; padding: .6em 1.05em; }
.btn .icon { width: 18px; height: 18px; }
.btn-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--teal); }
.btn-link .icon { width: 18px; height: 18px; transition: transform .18s; }
.btn-link:hover .icon { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 28, 52, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--text);
  text-decoration: none; padding: .5em .8em; border-radius: 999px; transition: color .15s, background-color .15s;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"]:not(.btn) { color: var(--teal); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(15, 28, 52, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .85em .6em; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #C9D2E3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.6; }
.section-dark .lead { color: #AEB9CE; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 3px;
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 8px 6px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 100% 0 / 5px 6px no-repeat,
    linear-gradient(var(--navy), var(--navy)) 3px 100% / 5px 6px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 100% 100% / 5px 6px no-repeat;
}
.section-dark .eyebrow { color: var(--teal-bright); }
.section-dark .eyebrow::before {
  background:
    linear-gradient(#fff, #fff) 0 0 / 8px 6px no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 100% 0 / 5px 6px no-repeat,
    linear-gradient(#fff, #fff) 3px 100% / 5px 6px no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 100% 100% / 5px 6px no-repeat;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 28, 52, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 28, 52, .055) 1px, transparent 1px);
  background-size: 96px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; margin: 0; list-style: none; font-size: .93rem; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { width: 18px; height: 18px; color: var(--teal); }
.stars { display: inline-flex; gap: 1px; color: #E3A008; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; color: #E3A008; }

.hero-visual { position: relative; padding: 28px 0 28px 28px; }
.file-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px 7px 8px;
  font-size: .78rem; font-weight: 500; color: var(--muted); box-shadow: var(--shadow); white-space: nowrap;
}
.file-chip .xl { width: 22px; height: 22px; border-radius: 5px; background: #1D6F42; color: #fff; display: grid; place-items: center; font: 800 .62rem/1 var(--font-head); }
.file-chip s { text-decoration-color: rgba(180, 35, 24, .55); }
.file-chip.c1 { top: 0; left: 0; transform: rotate(-4deg); }
.file-chip.c2 { top: 92px; left: -18px; transform: rotate(3deg); opacity: .92; }
.file-chip.c3 { bottom: 64px; left: -6px; transform: rotate(-2deg); opacity: .85; }
.sync-badge {
  position: absolute; z-index: 3; right: -6px; bottom: 0; display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: .82rem; box-shadow: var(--shadow-lg);
}
.sync-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.sync-badge small { display: block; color: #9FB0CC; font-size: .72rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; padding-left: 20px; }
}
@media (max-width: 560px) {
  .file-chip.c2, .file-chip.c3 { display: none; }
  .hero-visual { padding: 24px 0 26px; }
  .sync-badge { right: 0; }
}

/* ---------- Fenêtre « tableur » (illustrations) ---------- */
.window {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .8rem; color: var(--text);
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D7DCE4; }
.window-title { font-weight: 600; color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-title b { color: var(--ink); font-weight: 600; }
.formula-bar { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .72rem; color: var(--muted); overflow: hidden; white-space: nowrap; }
.formula-bar .fx { font-style: italic; font-family: Georgia, serif; color: var(--teal); font-weight: 700; flex: none; }
.formula-bar .ref { flex: none; padding: 2px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.formula-bar code { overflow: hidden; text-overflow: ellipsis; }
.window-body { padding: 16px; }
.sheet-tabs { display: flex; gap: 2px; padding: 0 10px; background: var(--bg-soft); border-top: 1px solid var(--line); overflow: hidden; }
.sheet-tabs span { padding: 7px 12px; font-size: .72rem; color: var(--muted); white-space: nowrap; border-top: 2px solid transparent; }
.sheet-tabs span.on { background: #fff; color: var(--teal); font-weight: 600; border-top-color: var(--teal); }
.window-caption { margin: 12px 4px 0; font-size: .78rem; color: var(--muted); text-align: right; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--bg-softer); }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi .k-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .k-value { display: block; font: 800 1.12rem/1.3 var(--font-head); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.kpi .k-delta { font-size: .68rem; font-weight: 600; color: var(--ok); }
.kpi .k-delta.down { color: var(--bad); }
.kpi.accent { background: var(--navy); border-color: var(--navy); }
.kpi.accent .k-label { color: #9FB0CC; }
.kpi.accent .k-value { color: #fff; }
.kpi.accent .k-delta { color: #7DD3C0; }

.panel-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; }
.mini-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mini-card h5 { margin: 0 0 10px; font: 700 .76rem/1.2 var(--font-head); color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.mini-card h5 span { font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg text { font-family: var(--font-body); font-size: 9px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: .7rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.mini-table { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums; }
.mini-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--bg-softer); white-space: nowrap; }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .num { text-align: right; }
.mini-table .muted { color: var(--muted); }
.mini-table tr.hl td { background: var(--teal-50); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }


/* ---------- Cartes & grilles ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.card-link:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--teal-50); color: var(--teal);
}
.card-num { position: absolute; top: 24px; right: 26px; font: 800 .8rem/1 var(--font-head); color: var(--line-strong); letter-spacing: .04em; }
.card .btn-link { margin-top: 18px; }
.card-cta { background: var(--navy); border-color: var(--navy); color: #C9D2E3; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #AEB9CE; }

/* Liste « problèmes » */
.problem-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.problem-list li {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; color: var(--ink); font-weight: 500;
}
.problem-list .icon { color: var(--teal); margin-top: 2px; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

/* Listes à coches */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--teal-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7472' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .check-list li::before { background-color: rgba(43, 163, 159, .18); }
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* ---------- Onglets « ce que l'on peut construire » ---------- */
.tabs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs-list.center { justify-content: center; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .65em 1.15em; cursor: pointer;
  transition: color .15s, border-color .15s, background-color .15s;
}
.tab .icon { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.6rem; letter-spacing: -0.025em; }
.tab-panel .lead { font-size: 1.05rem; }
.tab-panel .check-list { margin-top: 20px; }
@media (max-width: 920px) { .tab-panel { grid-template-columns: 1fr; } }

.auto-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.macro-buttons { display: grid; gap: 8px; align-content: start; }
.macro-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); font-size: .76rem; }
.macro-btn .icon { width: 16px; height: 16px; color: var(--teal); }
.macro-btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.macro-btn.primary .icon { color: #fff; }
.run-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.run-log li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-softer); border: 1px solid var(--line); }
.run-log li span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.run-log .tick { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.run-log .tick svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.4; fill: none; }
.run-log .t { color: var(--muted); font-family: var(--font-mono); font-size: .7rem; }
.code-block { margin: 12px 0 0; background: var(--navy); color: #C9D2E3; border-radius: 10px; padding: 12px 14px; font: .7rem/1.6 var(--font-mono); overflow: hidden; white-space: pre; }
.code-block .kw { color: #7DD3C0; }
.code-block .cm { color: #7486A6; }
.code-block .st { color: #F5C26B; }

/* ---------- Étude de cas (aperçu) ---------- */
.case-teaser { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.shot img { width: 100%; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-label {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(15, 28, 52, .88); color: #fff;
  font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.shot-label.br { left: auto; top: auto; right: 12px; bottom: 12px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 28px; }
.tag-list li { font-size: .82rem; font-weight: 600; color: var(--teal-600); background: var(--teal-50); border-radius: 999px; padding: 5px 12px; }
.section-dark .tag-list li { background: rgba(43, 163, 159, .16); color: #9EE0DA; }
@media (max-width: 920px) { .case-teaser { grid-template-columns: 1fr; } }

/* ---------- Processus ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 24px 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 800 .82rem/1 var(--font-head); letter-spacing: .06em; color: var(--teal-bright); margin-bottom: 18px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .4em; }
.steps p { font-size: .93rem; color: #AEB9CE; margin: 0; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; right: -17px; width: 18px; height: 1px; background: rgba(255, 255, 255, .25);
}
@media (max-width: 1060px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

.steps.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.steps-3 li::after { display: none; }
@media (max-width: 860px) { .steps.steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps.steps-3 { grid-template-columns: 1fr; } }

/* Variante claire (pages internes) */
.steps-light li { background: #fff; border-color: var(--line); }
.steps-light p { color: var(--muted); }
.steps-light li::before { color: var(--teal); }
.steps-light li::after { background: var(--line-strong); }

/* ---------- Réassurance ---------- */
.assurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.assurance > div { padding: 30px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assurance > div:nth-child(3n) { border-right: 0; }
.assurance > div:nth-last-child(-n+3) { border-bottom: 0; }
.assurance .icon { color: var(--teal); margin-bottom: 14px; width: 26px; height: 26px; }
.assurance h3 { font-size: 1.05rem; margin-bottom: .35em; }
.assurance p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assurance > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .assurance > div:nth-child(2n) { border-right: 0 !important; }
  .assurance > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 560px) {
  .assurance { grid-template-columns: 1fr; }
  .assurance > div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .assurance > div:last-child { border-bottom: 0 !important; }
}

/* Bandeau chiffres / preuve */
.proof-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proof-strip > div { padding: 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.proof-strip .big { display: flex; align-items: center; gap: 8px; font: 800 1.9rem/1.1 var(--font-head); color: var(--ink); letter-spacing: -0.03em; margin-bottom: 6px; }
.proof-strip p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .proof-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Avis clients */
.review { display: flex; flex-direction: column; gap: 16px; }
.review blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); }
.review figcaption { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1C34' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p:last-child { margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #C9D2E3;
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 320px; height: 240px; opacity: .14; pointer-events: none;
  background-image: linear-gradient(to right, #fff 1px, transparent 1px), linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 64px 24px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(circle at 70% 30%, #000 10%, transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; color: #AEB9CE; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Pages internes ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(15, 28, 52, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 28, 52, .05) 1px, transparent 1px);
  background-size: 96px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 90% at 85% 0%, #000 10%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-hero .lead { max-width: 680px; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

.service-block { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: 0; }
.service-block .card-icon { margin-bottom: 18px; }
.service-block h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.service-block .examples { background: var(--bg-soft); border-radius: var(--radius); padding: 26px 28px; }
.service-block .examples h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.service-block .for-whom { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.service-block .for-whom strong { color: var(--ink); }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } }

.price-card { display: flex; flex-direction: column; }
.price-card .tier { font: 800 .78rem/1 var(--font-head); color: var(--teal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.price-card .price { font: 800 1.9rem/1.1 var(--font-head); color: var(--ink); letter-spacing: -0.03em; margin: 6px 0 14px; }
.price-card .price small { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card ul { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.price-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }

.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 12px;
  background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--ink); font-size: .96rem;
}
.note .icon { color: var(--teal); margin-top: 2px; }
.note p { margin: 0; }

/* Étude de cas détaillée */
.case-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 8px 22px; }
.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 860px) { .case-head { grid-template-columns: 1fr; } }

.before-after { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.before-after th { text-align: left; padding: 14px 20px; font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.before-after th:first-child { background: var(--bg-soft); color: var(--muted); }
.before-after th:last-child { background: var(--navy); color: #fff; }
.before-after td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.before-after td:first-child { color: var(--muted); background: var(--bg-softer); width: 46%; }
.before-after td:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .before-after th, .before-after td { padding: 12px 14px; font-size: .9rem; } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: .92rem; color: var(--muted); }
.gallery figcaption strong { color: var(--ink); }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(9, 16, 30, .82); backdrop-filter: blur(3px); }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.lightbox p { color: #E6EBF3; text-align: center; margin: 12px 0 0; font-size: .92rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.tools { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tools li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink); }
.tools li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }

/* ---------- Formulaire de demande ---------- */
.request-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.request-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
@media (max-width: 980px) { .request-layout { grid-template-columns: 1fr; } .request-aside { position: static; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.stepper li { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 10px; transition: background-color .25s; }
.stepper li.is-active, .stepper li.is-done { color: var(--ink); }
.stepper li.is-active::before, .stepper li.is-done::before { background: var(--teal); }
.stepper li span { color: var(--teal); margin-right: 4px; }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step + .form-step { margin-top: 40px; }
.js .form-step + .form-step { margin-top: 0; }
.js .form-step:not(.is-active) { display: none; }
.form-step > legend { font: 800 1.45rem/1.2 var(--font-head); color: var(--ink); letter-spacing: -0.02em; padding: 0; margin-bottom: 6px; }
.form-step > legend:focus { outline: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
legend.group-label { padding: 0; margin-bottom: 9px; }
legend.group-label .opt { margin-left: 4px; }
.form-step .step-intro { color: var(--muted); margin-bottom: 26px; font-size: .97rem; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.label, .field > label, .group-label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.req { color: var(--teal); }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .72em .9em; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 2.4em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6678' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8em center / 18px no-repeat; }
.input::placeholder, .textarea::placeholder { color: #98A1B0; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB7C4; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 116, 114, .14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--bad); }
.field-error { display: none; font-size: .84rem; color: var(--bad); font-weight: 500; }
.field.has-error .field-error { display: block; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--text); background: #fff; transition: border-color .15s, background-color .15s, color .15s; user-select: none;
}
.choice input:hover + span { border-color: #AEB7C4; }
.choice input:checked + span { border-color: var(--teal); background: var(--teal-50); color: var(--teal-600); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.choice input[type="checkbox"]:checked + span::before {
  content: ""; width: 14px; height: 14px; margin-left: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7472' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file-drop {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 20px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--bg-softer); color: var(--muted); transition: border-color .15s, background-color .15s;
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--teal); background: var(--teal-50); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop .icon { color: var(--teal); width: 28px; height: 28px; }
.file-drop strong { color: var(--ink); }
.file-drop .file-name { font-size: .88rem; color: var(--teal-600); font-weight: 600; }
.conditional[hidden] { display: none !important; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex: none; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav .spacer { flex: 1; }
.no-js-only { display: none; }
html:not(.js) .js-only { display: none !important; }
html:not(.js) .no-js-only { display: block; }
.form-alert { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: .92rem; font-weight: 500; }
.form-alert.is-visible { display: block; }

.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.aside-card h3 .icon { color: var(--teal); }
.aside-card p { font-size: .94rem; color: var(--muted); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card.dark { background: var(--navy); border-color: var(--navy); color: #C9D2E3; }
.aside-card.dark h3 { color: #fff; }
.aside-card.dark h3 .icon { color: var(--teal-bright); }
.aside-card.dark p { color: #AEB9CE; }
.mini-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: ms; }
.mini-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .93rem; color: var(--muted); }
.mini-steps li::before { counter-increment: ms; content: counter(ms); width: 28px; height: 28px; border-radius: 8px; background: var(--teal-50); color: var(--teal); font: 800 .85rem/28px var(--font-head); text-align: center; }
.mini-steps strong { display: block; color: var(--ink); }

/* Calendly (chargé seulement au clic) */
.calendly-frame { width: 100%; min-height: 700px; border: 0; border-radius: 12px; background: #fff; }
.calendly-box { margin-top: 16px; }
.calendly-box:empty { display: none; }

/* Merci */
.thanks { max-width: 720px; margin: 0 auto; text-align: center; }
.thanks-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 26px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); }
.thanks-icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #AEB9CE; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; color: #AEB9CE; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D2E3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--teal-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; color: #8494B0; }
.footer-bottom .todo { color: #5C4400; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Utilitaires ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Les illustrations s'adaptent à la largeur de leur fenêtre, pas de l'écran */
.window { container-type: inline-size; }
@container (max-width: 560px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 400px) {
  .panel-row { grid-template-columns: 1fr; }
}
@container (max-width: 460px) {
  .kpi .k-value { font-size: 1rem; }
  .hide-sm { display: none; }
  .auto-layout { grid-template-columns: 1fr; }
}
