/* ==========================================================================
   linkavista-netlinking.fr
   Feuille de style unique. Concept : cabinet de conseil.
   Mode clair uniquement, aucune variante sombre.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --c-bg: #ffffff;
  --c-bg-alt: #f1f5f9;
  --c-bg-soft: #f8fafc;
  --c-surface: #ffffff;
  --c-ink: #0f172a;
  --c-ink-soft: #475569;
  --c-ink-faint: #64748b;
  --c-accent: #2563eb;
  --c-accent-light: #3b82f6;
  --c-accent-wash: #eff6ff;
  --c-charcoal: #0f172a;
  --c-charcoal-2: #1e293b;
  --c-border: #dde3ea;
  --c-border-strong: #c7d1dd;
  --c-white: #ffffff;

  /* Rayons */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-round: 999px;

  /* Ombres */
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-2: 0 4px 16px rgba(15, 23, 42, .07);
  --sh-3: 0 14px 40px rgba(15, 23, 42, .10);
  --sh-blue: 0 10px 26px rgba(37, 99, 235, .22);

  /* Espacements */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  --s-10: 120px;

  /* Transitions */
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 460ms cubic-bezier(.2, .7, .3, 1);

  /* Structure */
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --header-h: 72px;

  /* Typographie */
  --f-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset moderne
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-title);
  color: var(--c-ink);
  line-height: 1.16;
  margin: 0 0 var(--s-4);
  letter-spacing: -.02em;
  font-weight: 700;
}

p { margin: 0 0 var(--s-5); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--s-5); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-accent-light); }

strong { font-weight: 600; color: var(--c-ink); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: #dbeafe; color: var(--c-ink); }

/* --------------------------------------------------------------------------
   3. Structure et utilitaires
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: clamp(52px, 7vw, 96px);
  border-top: 1px solid var(--c-border);
}
.section:first-of-type { border-top: 0; }
.section--alt { background: var(--c-bg-alt); }
.section--soft { background: var(--c-bg-soft); }

.section--dark {
  background: var(--c-charcoal);
  color: #cbd5e1;
  border-top: 0;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--c-white); }
.section--dark strong { color: var(--c-white); }
.section--dark .lede { color: #cbd5e1; }
.section--dark .rule { background: var(--c-accent-light); }
.section--dark .eyebrow { color: #93c5fd; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--c-accent);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* Grands intertitres avec trait bleu court au dessus */
.rule {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--c-accent);
  margin-bottom: var(--s-4);
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--f-title);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 var(--s-3);
}

.section h2 { font-size: clamp(1.65rem, 1.15rem + 2.1vw, 2.5rem); }
.section h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); margin-top: var(--s-6); }
.section h4 { font-size: 1.05rem; font-weight: 600; }

.lede {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem);
  color: var(--c-ink-soft);
  line-height: 1.66;
  max-width: 68ch;
}

.muted { color: var(--c-ink-soft); }
.small { font-size: .9rem; }
.source-note {
  font-size: .86rem;
  color: var(--c-ink-faint);
  font-style: normal;
  border-left: 3px solid var(--c-border-strong);
  padding-left: var(--s-4);
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}

.btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: var(--sh-blue);
}
.btn--primary:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-charcoal);
  color: var(--c-charcoal);
}
.btn--outline:hover {
  background: var(--c-charcoal);
  color: #fff;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--c-charcoal);
}
.btn--light:hover { background: #e2e8f0; border-color: #e2e8f0; color: var(--c-charcoal); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--t-base), padding var(--t-base);
}
.site-header.is-compact { box-shadow: var(--sh-2); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
  transition: min-height var(--t-base);
}
.site-header.is-compact .header-inner { min-height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--f-title);
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--c-charcoal);
  display: grid;
  place-items: center;
  padding: 5px;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 1.02rem; font-weight: 700; }
.brand-text span {
  font-family: var(--f-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink-faint);
}

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
/* Suite du sommaire : masquee en desktop, revelee dans le panneau mobile. */
.nav-list--more { display: none; }
.nav-list a {
  font-family: var(--f-title);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.nav-list a:hover { color: var(--c-ink); border-bottom-color: var(--c-border-strong); }
.nav-list a.is-active { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.nav-cta { padding: 10px 18px; font-size: .88rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; height: 2px; background: var(--c-ink); position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Barre de progression de lecture */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  z-index: 80;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(44px, 6vw, 84px) clamp(48px, 6vw, 88px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .45;
  mask-image: radial-gradient(circle at 78% 22%, #000 0%, transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* min-width 0 sur les enfants de grille : evite tout debordement horizontal */
.hero-grid > *,
.hero-text,
.split > *,
.card-grid > *,
.fw-grid > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2.05rem, 1.2rem + 3.4vw, 3.35rem);
  font-weight: 700;
  margin-bottom: var(--s-5);
}
.hero h1 .accent { color: var(--c-accent); }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent-wash);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-family: var(--f-title);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--r-xs);
  margin-bottom: var(--s-5);
}

.hero-media {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: #fff;
}
.hero-media img { width: 100%; height: auto; }
.hero-media figcaption {
  font-size: .82rem;
  color: var(--c-ink-faint);
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  background: #fff;
}

.hero-score {
  position: absolute;
  right: 16px;
  bottom: 66px;
  background: var(--c-charcoal);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-family: var(--f-title);
  text-align: center;
  box-shadow: var(--sh-3);
}
.hero-score b { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.hero-score span {
  display: block;
  font-family: var(--f-body);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
}

/* Reperes cles */
.keyfacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(32px, 4vw, 52px);
  position: relative;
}
.keyfact { background: #fff; padding: 22px 20px; }
.keyfact b {
  display: block;
  font-family: var(--f-title);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2rem);
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.1;
}
.keyfact span {
  display: block;
  font-size: .84rem;
  color: var(--c-ink-soft);
  margin-top: 6px;
}

/* Signature auteur courte */
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--s-6) 0 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border);
}
.byline img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-round);
  object-fit: cover;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
}
.byline-txt { font-size: .89rem; color: var(--c-ink-soft); line-height: 1.5; }
.byline-txt b { display: block; color: var(--c-ink); font-family: var(--f-title); font-size: .96rem; }

/* --------------------------------------------------------------------------
   7. Cartes de framework (numero romain + bordure gauche bleue)
   -------------------------------------------------------------------------- */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.fw-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 6px solid var(--c-accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 26px 26px 24px;
  box-shadow: var(--sh-1);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.fw-card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.fw-num {
  display: block;
  font-family: var(--f-title);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: #cbd5e1;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.fw-card h3 { margin-top: 0; font-size: 1.12rem; }
.fw-card p { font-size: .96rem; color: var(--c-ink-soft); }
.fw-card p:last-child { margin-bottom: 0; }

.section--dark .fw-card {
  background: #1e293b;
  border-color: #334155;
  border-left-color: var(--c-accent-light);
}
.section--dark .fw-card p { color: #cbd5e1; }
.section--dark .fw-num { color: #475569; }

/* --------------------------------------------------------------------------
   8. Cartes generiques, encadres
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-1);
}
.card h3 { margin-top: 0; font-size: 1.08rem; }
.card p { font-size: .96rem; color: var(--c-ink-soft); }
.card ul { font-size: .95rem; color: var(--c-ink-soft); }

.card--accent { border-top: 4px solid var(--c-accent); }

.method-box {
  background: var(--c-accent-wash);
  border: 1px solid #bfdbfe;
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin-top: var(--s-6);
}
.method-box h3 { margin-top: 0; font-size: 1.12rem; }
.method-box ol { margin-bottom: 0; color: var(--c-ink-soft); font-size: .96rem; }

.callout {
  border-left: 5px solid var(--c-accent);
  background: var(--c-bg-soft);
  padding: 20px 24px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: var(--s-6) 0;
}
.callout p { margin-bottom: 0; font-size: .98rem; }
.callout strong { color: var(--c-ink); }

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: var(--s-6);
}
.split--reverse { grid-template-columns: .85fr 1.15fr; }

.figure {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-2);
}
.figure img { width: 100%; }
.figure figcaption {
  font-size: .84rem;
  color: var(--c-ink-faint);
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
}

/* Listes marquees */
.list-check { list-style: none; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--c-ink-soft);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--c-accent);
  border-bottom: 2.5px solid var(--c-accent);
  transform: rotate(-45deg);
}

.list-num { list-style: none; padding: 0; counter-reset: ln; }
.list-num li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
  counter-increment: ln;
  color: var(--c-ink-soft);
}
.list-num li::before {
  content: counter(ln, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-accent);
  background: var(--c-accent-wash);
  border-radius: var(--r-xs);
  width: 28px;
  text-align: center;
  line-height: 24px;
}

/* --------------------------------------------------------------------------
   9. Tableaux
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  margin-top: var(--s-6);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 620px;
}

caption {
  caption-side: top;
  text-align: left;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: .95rem;
  color: var(--c-ink);
  padding: 16px 18px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-soft);
}

thead th {
  background: var(--c-charcoal);
  color: #fff;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
  border-right: 1px solid #334155;
}
thead th:last-child { border-right: 0; }

tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  font-size: .93rem;
}

tbody td,
tbody th {
  padding: 13px 16px;
  border-top: 1px solid var(--c-border);
  vertical-align: top;
  color: var(--c-ink-soft);
}
tbody tr:nth-child(even) { background: var(--c-bg-soft); }
tbody tr:hover { background: var(--c-accent-wash); }

.t-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pill {
  display: inline-block;
  font-family: var(--f-title);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  background: var(--c-accent-wash);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}
.pill--high { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill--mid { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill--low { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }

.table-hint {
  font-size: .84rem;
  color: var(--c-ink-faint);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   10. Schemas SVG
   -------------------------------------------------------------------------- */
.schema {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: clamp(18px, 3vw, 32px);
  margin-top: var(--s-6);
  box-shadow: var(--sh-1);
  overflow-x: auto;
}
.section--dark .schema {
  background: #1e293b;
  border-color: #334155;
}
.schema svg { width: 100%; height: auto; min-width: 520px; }
.schema figcaption {
  font-size: .86rem;
  color: var(--c-ink-faint);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.section--dark .schema figcaption { color: #94a3b8; border-top-color: #334155; }

.svg-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  fill: var(--c-ink-soft);
}
.svg-label--strong {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  fill: var(--c-ink);
}
.svg-label--light { fill: #fff; }
.svg-label--muted { fill: #94a3b8; font-size: 12px; }
.svg-label--tiny { font-size: 11px; fill: var(--c-ink-faint); }

/* Trace anime des schemas */
.draw {
  stroke-dasharray: var(--len, 900);
  stroke-dashoffset: var(--len, 900);
  transition: stroke-dashoffset 1200ms cubic-bezier(.3, .8, .3, 1);
}
.is-drawn .draw { stroke-dashoffset: 0; }

.fade-node { opacity: 0; transition: opacity 520ms ease; }
.is-drawn .fade-node { opacity: 1; }

/* Barres empilees */
.bar-seg {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(.2, .7, .3, 1);
}
.is-drawn .bar-seg { transform: scaleX(1); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: var(--s-5);
  list-style: none;
  padding: 0;
  font-size: .88rem;
  color: var(--c-ink-soft);
}
.legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.legend i {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. Onglets de scenarios
   -------------------------------------------------------------------------- */
.tabs { margin-top: var(--s-6); }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #fff;
}
.tab {
  flex: 1 1 180px;
  padding: 14px 18px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--c-border);
  font-family: var(--f-title);
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.tab:last-child { border-right: 0; }
.tab:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.tab[aria-selected="true"] {
  background: var(--c-charcoal);
  color: #fff;
}

.tabpanel {
  border: 1px solid var(--c-border);
  border-top: 0;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}
.tabpanel[hidden] { display: none; }
.tabpanel h3 { margin-top: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
.stat {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
}
.stat b {
  display: block;
  font-family: var(--f-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.15;
}
.stat span { font-size: .82rem; color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   12. Checklist interactive
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.checklist li { margin: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-size: .95rem;
  color: var(--c-ink-soft);
  height: 100%;
}
.check-item:hover { border-color: var(--c-accent); background: var(--c-bg-soft); }
.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  border: 2px solid var(--c-border-strong);
  border-radius: var(--r-xs);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check-item input:checked { background: var(--c-accent); border-color: var(--c-accent); }
.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-item input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.check-item input:checked + span { color: var(--c-ink-faint); text-decoration: line-through; }

.check-progress {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.check-bar {
  flex: 1 1 240px;
  height: 8px;
  background: var(--c-border);
  border-radius: var(--r-round);
  overflow: hidden;
}
.check-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
  transition: width var(--t-slow);
}
.check-count { font-family: var(--f-title); font-weight: 600; font-size: .92rem; }
.btn-reset {
  background: transparent;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.btn-reset:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* --------------------------------------------------------------------------
   13. Glossaire
   -------------------------------------------------------------------------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin-top: var(--s-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-border);
  gap: 1px;
}
.gloss-item { background: #fff; padding: 20px 22px; }
.gloss-item dt {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.gloss-item dd {
  margin: 0;
  font-size: .93rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { margin-top: var(--s-6); border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: transparent;
  border: 0;
  padding: 20px 4px;
  text-align: left;
  cursor: pointer;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--c-ink);
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--c-accent); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  margin-top: 2px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--c-accent);
  border-radius: 1px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.faq-icon::before { top: 11px; left: 4px; width: 16px; height: 2px; }
.faq-icon::after { top: 4px; left: 11px; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); opacity: 0; }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow);
}
.faq-a-inner {
  padding: 0 44px 22px 4px;
  color: var(--c-ink-soft);
  font-size: .98rem;
}
.faq-a-inner p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Sources, auteur, CTA final
   -------------------------------------------------------------------------- */
.sources-list { list-style: none; padding: 0; margin-top: var(--s-6); }
.sources-list li {
  border-left: 3px solid var(--c-accent);
  padding: 12px 0 12px 18px;
  margin-bottom: 14px;
  background: var(--c-bg-soft);
  font-size: .95rem;
  color: var(--c-ink-soft);
}
.sources-list b { display: block; color: var(--c-ink); font-family: var(--f-title); font-size: .97rem; }

.author-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 6px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(24px, 3vw, 36px);
  margin-top: var(--s-6);
  box-shadow: var(--sh-1);
}
.author-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--r-round);
  object-fit: cover;
  border: 4px solid var(--c-bg-alt);
}
.author-block h3 { margin-top: 0; margin-bottom: 4px; font-size: 1.3rem; }
.author-role {
  font-family: var(--f-title);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-4);
}
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}
.author-links li { margin: 0; }
.author-links a {
  display: inline-block;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: .87rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-ink-soft);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.author-links a:hover { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-accent-wash); }
.author-updated { font-size: .86rem; color: var(--c-ink-faint); margin-top: var(--s-4); }

.final-cta {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.final-cta h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); }
.final-cta .btn-row { justify-content: center; }
.cta-note { font-size: .84rem; color: #94a3b8; margin-top: var(--s-5); }

.rating-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm);
  padding: 10px 18px;
  margin-bottom: var(--s-5);
  font-family: var(--f-title);
}
.rating-badge b { font-size: 1.5rem; color: #fff; font-weight: 700; }
.rating-badge span { font-size: .82rem; color: #cbd5e1; letter-spacing: .06em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-border);
  padding-block: clamp(44px, 5vw, 64px) 28px;
  font-size: .93rem;
  color: var(--c-ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.site-footer h2,
.site-footer h3 {
  font-size: .84rem;
  font-family: var(--f-title);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: var(--s-4);
}
.footer-h3-spaced { margin-top: 24px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
  color: var(--c-ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-list a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

.footer-note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-border-strong);
  font-size: .85rem;
  color: var(--c-ink-faint);
}
.footer-note p { margin-bottom: 12px; }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .84rem;
  color: var(--c-ink-faint);
}

/* --------------------------------------------------------------------------
   17. Retour en haut
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--c-charcoal);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-fast);
  z-index: 70;
  box-shadow: var(--sh-3);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--c-accent); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Reveal au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .7, .3, 1);
}
.reveal-left.is-visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2, .7, .3, 1);
}
.reveal-right.is-visible { opacity: 1; transform: none; }

.stagger > * { transition-delay: var(--d, 0ms); }

/* --------------------------------------------------------------------------
   19. Page 404
   -------------------------------------------------------------------------- */
.page-404 {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}
.page-404 .code {
  font-family: var(--f-title);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  letter-spacing: -.04em;
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --wrap: 1060px; }
  .nav-list { gap: var(--s-4); }
  .nav-list a { font-size: .78rem; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-score { bottom: 60px; }
  .split,
  .split--reverse { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Bascule de l en-tete vers le menu burger.
   Les regles d en-tete et de navigation qui vivaient dans le bloc 980px
   ci-dessus ont ete deplacees ici, sans duplication, pour que le burger
   prenne le relais des 1120px. */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--s-5) var(--s-6);
    box-shadow: var(--sh-3);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--c-border); }
  .nav-list a {
    display: block;
    padding: 14px 2px;
    font-size: .96rem;
    border-bottom: 0;
    white-space: normal;
  }
  .nav-list a.is-active { border-bottom: 0; }
  .nav-cta { margin-top: var(--s-5); width: 100%; white-space: normal; }

  /* Le sommaire complet apparait dans le panneau mobile ouvert. */
  .nav-list--more { display: flex; }
  .brand-text b,
  .brand-text span { white-space: normal; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .section { padding-block: 44px; }
  .author-block { grid-template-columns: 1fr; justify-items: start; }
  .author-photo { width: 130px; height: 130px; }
  .glossary { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .hero-score { right: 10px; bottom: 58px; padding: 10px 14px; }
  .tab { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--c-border); }
  .tab:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-a-inner { padding-right: 8px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 18px; }
  .keyfacts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .brand-text span { display: none; }
  .schema { padding: 14px; }
  .hero-score { position: static; margin: 12px 16px 0; display: inline-block; }
  .to-top { right: 12px; bottom: 12px; }
  .method-box { padding: 20px; }
  .author-links a { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   21. Mouvement reduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .bar-seg { transform: scaleX(1); }
  .fade-node { opacity: 1; }
}

/* --------------------------------------------------------------------------
   22. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .to-top,
  .progress-bar,
  .btn-row,
  .nav-toggle,
  .check-progress { display: none !important; }

  body { font-size: 11pt; color: #000; background: #fff; }
  .section { padding-block: 14pt; border-top: 1px solid #999; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .section--dark h2,
  .section--dark h3 { color: #000 !important; }
  thead th { background: #ddd !important; color: #000 !important; }
  .faq-a { max-height: none !important; }
  .tabpanel[hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Complements
   Ajouts posterieurs a la version initiale. Aucune regle existante n'est
   modifiee : ces declarations viennent uniquement completer la feuille.
   -------------------------------------------------------------------------- */
/* En-tete : en desktop, la ligne ne se replie jamais et rien ne se coupe.
   Ces regles ne valent qu au-dessus du point de bascule du burger ; dans le
   panneau mobile ouvert, les entrees s empilent normalement. */
@media (min-width: 1121px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; }
  .nav-list { flex-wrap: nowrap; row-gap: 0; }
  .brand { white-space: nowrap; }
  .brand-text b,
  .brand-text span { white-space: nowrap; }
  .nav-list a { white-space: nowrap; }
  .nav-cta { white-space: nowrap; }
}

@media (min-width: 1121px) and (max-width: 1180px) {
  .nav-list { gap: var(--s-4, 14px); }
  .nav-list a { font-size: .78rem; letter-spacing: .02em; }
}

.section h3 + .table-wrap { margin-top: var(--s-4, 14px); }
.list-num > li + li { margin-top: .5em; }
.glossary .gloss-item dd { text-wrap: pretty; }
