/* ==========================================================================
   RIDEHORIZON — Portail athlète (training.ridehorizon.ch)
   Feuille de style autonome : reprend à l'identique les jetons de la boutique
   (web/assets/css/styles.css). Aucune dépendance à la boutique : le portail
   vit sur un sous-domaine séparé.
   Charte : palette ivoire / charbon / olive, accent unique, thème clair.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Fond et surfaces — identiques à la boutique */
  --bg: #FAF9F6;
  --bg-soft: #F4F1EA;
  --surface: #FFFFFF;
  --surface-2: #F7F5EF;
  --line: rgba(20, 20, 20, .10);
  --line-strong: rgba(20, 20, 20, .24);
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .05);
  --shadow-md: 0 2px 4px rgba(20, 20, 20, .05), 0 18px 48px rgba(20, 20, 20, .07);

  /* Texte — contrastes WCAG AA sur #FAF9F6 */
  --text: #141414;      /* 17.5:1 */
  --muted: #57554F;     /* 7.1:1  */
  --muted-2: #6E6B64;   /* 5.0:1  */

  /* Accent unique : olive, sous deux formes */
  --lime: #C9EA5B;      /* aplat de remplissage — jamais en texte sur clair */
  --lime-text: #476000; /* 6.8:1 sur ivoire */
  --lime-soft: rgba(118, 144, 18, .10);
  --lime-line: rgba(118, 144, 18, .38);
  --lime-ink: #14180A;  /* encre sur aplat lime : 13.5:1 */
  --orange: #B23A1B;    /* 5.7:1 — réservé aux avertissements */
  --orange-soft: rgba(178, 58, 27, .08);

  /* Typographie */
  --display: "Bricolage Grotesque", "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Gabarit */
  --max: 1120px;
  --pad: clamp(18px, 4vw, 40px);
  --header-h: 72px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Mouvement */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .35s;
}

/* --------------------------------------------------------------- Reset --- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.24rem); letter-spacing: -.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lime-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }

strong, b { font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 2px solid var(--lime-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- Utils --- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.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: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--lime-ink); }

.small { font-size: .875rem; line-height: 1.55; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-text);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime-text);
  flex: none;
}

.lead { font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--muted); max-width: 58ch; }

.num {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .75rem;
}

/* -------------------------------------------------------------- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: .05em;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1;
  padding-block: 14px;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand .w-600 { font-weight: 600; }
.brand .w-300 { font-weight: 300; }

.brand-tag {
  margin-left: 2px;
  padding: 4px 9px;
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-text);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }

.nav-list a {
  display: inline-block;
  padding: 8px 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.nav-list a[aria-current="page"] { color: var(--text); border-bottom-color: var(--lime-text); }

.boutique-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.boutique-link:hover { background: var(--surface); border-color: var(--lime-text); color: var(--text); }
.boutique-link span { font-size: .95em; color: var(--lime-text); }

/* -------------------------------------------------------------- Sections --- */

.section { padding-block: clamp(44px, 6vw, 78px); }
.section--tight { padding-block: clamp(32px, 4vw, 52px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.2vw, 40px);
}
.section-head > div { max-width: 62ch; }
.section-head h2 { margin-bottom: .35em; }

/* ----------------------------------------------------------------- Hero --- */

.hero { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); }

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

.hero h1 { margin-bottom: .55em; }
.hero h1 .accent { color: var(--lime-text); }
.hero-lead { font-size: clamp(1.04rem, 1.7vw, 1.18rem); color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 1rem;
}
/* Boutons de connexion : empilés, même largeur, badge d'état aligné à droite.
   Deux libellés longs ne tiennent pas côte à côte sans tronquer le texte. */
.cta-row--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 420px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover {
  background: #BEE24B;
  color: var(--lime-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--lime-text); color: var(--text); }

/* Boutons de connexion : neutres, la marque du fournisseur reste décorative.
   Aucune couleur de texte sur aplat saturé → contrastes AA tenus. */
.btn--provider {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  font-weight: 600;
  justify-content: flex-start;
  padding: 13px 22px 13px 16px;
  min-width: 0;
  text-align: left;
}
.btn--provider:hover { background: var(--surface-2); border-color: var(--lime-text); color: var(--text); }

.provider-dot {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0;
}
.provider-dot--strava { background: #FC4C02; }   /* décor uniquement */
.provider-dot--intervals { background: var(--lime-text); }

.provider-state {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(178, 58, 27, .22);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* [aria-disabled] : l'élément reste focusable et lisible, mais n'agit pas */
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.cta-note {
  font-size: .84rem;
  color: var(--muted-2);
  max-width: 56ch;
  margin: 0;
}

/* Panneau de droite : aperçu abstrait, sans donnée */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-sm);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.hero-panel-head p { margin: 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.hero-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hero-cell {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
  background: var(--surface-2);
}
.hero-cell b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--muted-2); letter-spacing: .02em; }
.hero-cell span { display: block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.hero-panel-foot { margin: 14px 0 0; font-size: .78rem; color: var(--muted-2); }

/* ---------------------------------------------------------------- Grilles --- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(18px, 2.2vw, 26px);
  position: relative;
}
.step .step-n {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  color: var(--lime-text);
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------- Stats --- */

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.stat-value {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: .8rem; color: var(--muted-2); }
.stat-foot {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted-2);
}

/* ----------------------------------------------------- Bandeaux & badges --- */

.demo-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--orange-soft);
  border: 1px solid rgba(178, 58, 27, .28);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: clamp(24px, 3vw, 34px);
}
.demo-banner p { margin: 0; font-size: .9rem; color: var(--text); }
.demo-banner strong { color: var(--orange); }
.demo-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.manquant {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed rgba(178, 58, 27, .5);
  border-radius: var(--r-xs);
  background: var(--orange-soft);
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .02em;
  white-space: normal;
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime-text);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 20px;
}
.callout h3 { margin-bottom: .4em; font-size: 1.05rem; }
.callout p { font-size: .93rem; color: var(--muted); }

/* --------------------------------------------------------------- Profil --- */

.athlete-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.avatar {
  width: 64px; height: 64px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  border: 1px solid var(--lime-line);
  color: var(--lime-text);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.athlete-id h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .15em; }
.athlete-id p { margin: 0; color: var(--muted); font-size: .92rem; }

.chart-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: clamp(22px, 3vw, 36px);
  text-align: center;
}
.chart-empty p { color: var(--muted); font-size: .92rem; margin: .6em 0 0; }
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  margin-bottom: 6px;
  opacity: .5;
}
.chart-bars i {
  flex: 1;
  display: block;
  background: linear-gradient(to top, var(--line-strong), var(--line));
  border-radius: 3px 3px 0 0;
}

/* Tableau séances */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
caption { text-align: left; padding: 14px 16px 0; font-size: .78rem; color: var(--muted-2); }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td.empty { color: var(--muted-2); text-align: center; padding: 22px 16px; }

/* Matériel */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.material-card:hover {
  border-color: var(--lime-text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.material-type {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.material-name { font-family: var(--display); font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.material-desc { font-size: .87rem; color: var(--muted); margin: 0; flex: 1; }
.material-cta { font-size: .86rem; font-weight: 600; color: var(--lime-text); margin-top: 4px; }

/* ---------------------------------------------------------------- Aide --- */

.content-block { max-width: 74ch; }
.content-block h2 { margin-top: 0; }
.content-block h3 { margin-top: 1.8em; }
.content-block > h3:first-of-type { margin-top: 1.2em; }

/* Mise en page documentaire : sommaire collant à gauche, texte à droite.
   Évite une colonne de texte de 600 px perdue au milieu d'un écran large. */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.doc-body { max-width: 74ch; }
.doc-aside { order: -1; }
.doc-body > .content-block { margin-top: clamp(30px, 4vw, 46px); }
.doc-body > .content-block:first-child { margin-top: 0; }
.doc-body h1 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); }
.doc-body > hr { margin-block: clamp(30px, 4vw, 46px); }
.doc-aside .aside-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin: 0 0 10px;
}

@media (min-width: 1000px) {
  .doc-layout {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
  }
  .doc-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .doc-aside .section-nav { flex-direction: column; align-items: stretch; margin-bottom: 0; }
  .doc-aside .section-nav a { display: block; padding: 7px 12px; border-radius: var(--r-xs); border-color: transparent; background: transparent; }
  .doc-aside .section-nav a:hover { background: var(--surface); border-color: var(--line); }
  .doc-aside .aside-label {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
    margin: 0 0 10px;
  }
}

.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 40px;
  margin-top: 14px;
  color: var(--muted);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
}
.steps li strong { color: var(--text); }

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
  /* Les URLs d'autorisation sont longues : elles doivent pouvoir se couper,
     sinon la page s'élargit au-delà du viewport sur mobile. */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 clamp(26px, 3vw, 38px);
  list-style: none;
}
.section-nav li { margin: 0; }
.section-nav a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
}
.section-nav a:hover { border-color: var(--lime-text); color: var(--text); }

.divider-dot { color: var(--line-strong); padding: 0 6px; }

/* Comparatif */
.compare td:first-child { font-weight: 600; color: var(--text); }
.compare td { vertical-align: top; color: var(--muted); }

/* --------------------------------------------------------------- Footer --- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(34px, 4vw, 52px) 26px;
  margin-top: clamp(30px, 4vw, 50px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.footer-word {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: .05em;
  margin: 0 0 10px;
  color: var(--text);
}
.footer-word .w-300 { font-weight: 300; }
.footer-word span.tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-text);
  vertical-align: 2px;
}
.footer-brand p { font-size: .875rem; color: var(--muted); max-width: 40ch; }

.preprod {
  display: inline-block;
  margin-top: 14px !important;
  padding: 7px 12px;
  border: 1px dashed rgba(178, 58, 27, .45);
  border-radius: var(--r-sm);
  background: var(--orange-soft);
  color: var(--orange) !important;
  font-size: .76rem !important;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.4;
}

.footer-col h2 {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-top: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .89rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }

.footer-bottom {
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--muted-2);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* ------------------------------------------------------------ Responsive --- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { max-width: 480px; }
  .grid-3, .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  :root { --header-h: auto; }
  .header-inner { padding-block: 10px; }
  .nav { width: 100%; justify-content: flex-start; gap: 6px 16px; }
  .nav-list { gap: 2px 14px; }
  .nav-list a { font-size: .9rem; }
  .grid-3, .grid-2, .material-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .btn--provider { width: 100%; justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-cell b { font-size: .95rem; }
  .chart-bars { height: 64px; }
}

@media (max-width: 420px) {
  .brand-tag { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* ---------------------------------------------------------- Utilitaires --- */

.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }

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

@media print {
  .site-header, .site-footer, .cta-row, .section-nav { display: none; }
  body { background: #FFFFFF; }
  .card, .step, .stat { break-inside: avoid; }
}
