/*
 * Site vitrine ISITRAFIC.
 *
 * Couleurs, typographie et logo suivent la charte graphique v1.0 (octobre 2026), fournie
 * dans ISITRAFIC_Charte-graphique à la racine du dépôt.
 *
 * Montserrat est la seule famille : Regular pour le texte, SemiBold pour les intertitres,
 * Bold pour les titres, Black pour le nom de la marque. Les quatre fichiers sont servis
 * depuis ce dossier, réduits au latin : 68 Ko à eux quatre, et aucune dépendance à Google
 * Fonts : ce qui compte sur une connexion mobile ivoirienne.
 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/montserrat-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/montserrat-semibold.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/montserrat-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-black.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /*
   * Palette de la charte : blanc et gris clair 55 %, rouge 25 %, bleu nuit 15 %,
   * vert Afrique 5 %. Le blanc domine et laisse respirer ; le rouge porte l'énergie
   * (boutons, titres forts) ; le bleu nuit porte le texte et les fonds sérieux.
   *
   * Le rouge profond ne s'emploie pas en aplat principal : la charte le réserve au
   * symbole, aux survols et aux dégradés.
   */
  --rouge: #e10600;
  --rouge-profond: #b1040e;
  --bleu-nuit: #0f2d4a;
  --gris-clair: #f2f4f7;
  --vert: #1ba96b;

  --ink: var(--bleu-nuit);
  --muted: #44586e;
  --soft: #5b6e82;
  --paper: #ffffff;
  --surface: #ffffff;
  --cream: var(--gris-clair);
  --line: #dce3ec;
  --appel: var(--rouge);
  --red: var(--rouge);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 48px rgba(15, 45, 74, 0.1);
  --titre: 'Montserrat', system-ui, sans-serif;
  --texte: 'Montserrat', system-ui, -apple-system, sans-serif;

  /*
   * Une seule mesure de gouttière pour toute la page. Les sections, l'en-tête et le
   * pied de page s'alignent ainsi sur la même colonne, du téléphone au grand écran.
   */
  --gouttiere: clamp(18px, 4vw, 56px);
  --largeur: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*
 * Certaines personnes désactivent les animations au niveau du système : vertiges,
 * troubles vestibulaires, migraines. Le défilement animé leur est alors épargné, sans
 * rien perdre : ce sont des agréments, pas de l'information.
 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  /* Évite le saut brutal de défilement / layout shift lors de l'ouverture du menu déroulant */
}

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

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--appel);
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

/* Le focus doit rester visible partout : c'est la seule boussole au clavier. */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--paper);
}

/* ── En-tête ───────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 244, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 18px var(--gouttiere);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

/*
 * Le logo s'emploie tel qu'il est fourni : la charte interdit de le recomposer, de le
 * réécrire dans une autre police ou d'en modifier les couleurs.
 */
.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 44px;
  width: auto;
}

.footer-brand img {
  height: 42px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 26px;
  font-size: 15px;
}

.site-nav a {
  color: #4a403c;
  padding: 6px 0;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background-color: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Boutons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--texte);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--rouge);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--rouge-profond);
  color: #ffffff;
}

.btn-light {
  background: #ffffff;
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
  color: var(--appel);
}

.btn-outline {
  border-color: rgba(242, 244, 247, 0.45);
  color: var(--paper);
}

.btn-outline:hover {
  border-color: var(--paper);
  color: var(--paper);
}

/* Un bouton sans destination ne doit ni réagir ni promettre un clic. */
.btn-disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.btn-disabled:hover {
  transform: none;
}

/* ── Ouverture immersive ───────────────────────────────────────────────────── */

.hero {
  margin: 10px clamp(8px, 2vw, 22px) 0;
  padding: clamp(36px, 7vw, 92px) clamp(22px, 5vw, 72px) clamp(28px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
}

.hero-text {
  max-width: 1040px;
}

/*
 * Le titre se mesure en caractères, pas en pixels : quelle que soit la taille d'écran,
 * il tient sur trois lignes environ. Borné en ch plutôt qu'en largeur de colonne, sans
 * quoi un grand corps de texte dans une colonne étroite donne un mot par ligne.
 */
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.2vw, 5.2rem);
  margin: 0 0 22px;
}

/*
 * Le titre de page porte désormais deux lignes : la requête visée par le référencement,
 * puis la phrase d'accroche. Elles vivent dans le même h1 parce qu'un moteur de recherche
 * lit ce titre en premier, mais la hiérarchie visuelle reste celle du design : le sujet
 * est discret au-dessus, l'accroche garde tout le corps.
 */
.hero h1 .h1-sujet {
  display: block;
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(242, 244, 247, 0.72);
}

.hero-lead {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(242, 244, 247, 0.76);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-light {
  color: rgba(242, 244, 247, 0.62);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-media {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: clamp(14px, 2vw, 28px) clamp(10px, 2vw, 24px) 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(200px, 32vw, 380px);
  object-fit: contain;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 28px;
  margin: clamp(26px, 3vw, 40px) 0 0;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid rgba(242, 244, 247, 0.16);
}

.hero-stats dt {
  font-family: var(--titre);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: rgba(242, 244, 247, 0.66);
}

/* ── Rythme des sections ───────────────────────────────────────────────────── */

.section {
  max-width: var(--largeur);
  margin: clamp(64px, 10vw, 140px) auto 0;
  padding: 0 var(--gouttiere);
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 40px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  max-width: 18ch;
}

/*
 * Le surtitre occupe sa propre ligne, au-dessus du titre. `flex-basis: 100%` ne suffisait
 * pas : la base est calculée avant la répartition, et un élément plus étroit que sa base
 * reste sur la ligne : le titre partait alors à droite du surtitre, et le texte
 * d'introduction se retrouvait coincé dessous, à gauche.
 */
.section-head .eyebrow {
  width: 100%;
  /* `.section-head p` plafonne la largeur des paragraphes à 34 caractères, et le surtitre
     en est un : sans cette levée, il restait étroit, le titre venait se placer à sa droite
     et le texte d'introduction se retrouvait coincé dessous. */
  max-width: none;
  margin-bottom: 0;
  /* Même règle que `.section-head p` pour la largeur, mais le surtitre garde le rouge. */
  color: var(--rouge);
}

.section-head p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

/* ── Covoiturage et bus, côte à côte ───────────────────────────────────────── */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.duo-card {
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.duo-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.duo-card p {
  color: #5c524d;
  font-size: 15px;
  margin-bottom: 22px;
}

.duo-card-dark {
  background: var(--appel);
  border-color: var(--appel);
  color: var(--paper);
}

.duo-card-dark p {
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 13px;
}

.tag-list-light li {
  background: var(--bleu-nuit);
  color: #ffffff;
}

.section-illu {
  margin: 0 0 clamp(28px, 4vw, 48px);
  text-align: center;
}

.section-illu img {
  width: 100%;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
}

.section-illu-petite img {
  max-width: 420px;
}

.duo-illu {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 0 18px;
}

/*
 * Sur la carte rouge, l'illustration repose sur une pastille blanche : le car y est
 * dessiné en rouge et blanc, et se perdrait sur un aplat de la même couleur.
 */
.duo-illu-sur-rouge {
  max-width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border-radius: var(--radius-sm);
}

.app-illu {
  margin: 0 0 28px;
}

.app-illu img {
  width: auto;
  height: clamp(180px, 24vw, 260px);
  margin: 0 auto;
}

/* ── Trois étapes ──────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 16px;
}

.steps h3,
.trust-list h3,
.cases h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps p,
.cases p {
  color: #5c524d;
  font-size: 14.5px;
}

/* ── Blocs à deux colonnes (sécurité, conducteurs) ─────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.split-media {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cream);
}

.split-media img {
  width: 100%;
  height: clamp(200px, 26vw, 320px);
  padding: clamp(18px, 3vw, 36px);
  object-fit: contain;
}

.split-text h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 16px;
}

.split-text > p {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 26px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-number {
  display: block;
  font-family: var(--titre);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 8px;
}

.trust-list p {
  margin-top: 6px;
  color: #5c524d;
  font-size: 14.5px;
}

/* ── Panneaux pleine largeur (paiement, application) ───────────────────────── */

.panel {
  max-width: none;
  margin-left: clamp(8px, 2vw, 22px);
  margin-right: clamp(8px, 2vw, 22px);
  padding: clamp(36px, 5vw, 72px) clamp(22px, 5vw, 72px);
  border-radius: var(--radius-lg);
}

.panel-dark {
  background: var(--ink);
  color: var(--paper);
}

.panel-wine {
  background: var(--appel);
  color: #fff;
  text-align: center;
}

.panel-head {
  max-width: 52ch;
  margin-bottom: 36px;
}

.panel-wine .panel-head {
  margin-left: auto;
  margin-right: auto;
}

.panel-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 16px;
}

.panel-head p {
  color: rgba(255, 255, 255, 0.88);
}

.panel-note {
  margin-top: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.pay-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay-list li {
  padding: 24px;
  border: 1px solid rgba(242, 244, 247, 0.16);
  border-radius: var(--radius-md);
}

/*
 * Chaque logo est posé sur une pastille blanche : deux des quatre fichiers fournis n'ont
 * pas de fond transparent, et leur rectangle se verrait sur le bleu nuit.
 */
.pay-logo {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
  object-fit: contain;
}

.pay-list h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pay-list p {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(242, 244, 247, 0.62);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ── Gains du conducteur ───────────────────────────────────────────────────── */

.earnings {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.earnings-title {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 18px;
}

.earnings-rows {
  margin: 0;
}

.earnings-rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.earnings-rows dt {
  color: var(--muted);
}

.earnings-rows dd {
  margin: 0;
  font-weight: 600;
}

.earnings-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.earnings-total span {
  color: var(--muted);
  font-size: 15px;
}

.earnings-total strong {
  font-family: var(--titre);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.earnings-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--soft);
}

/* ── Espace pro et cas d'usage ─────────────────────────────────────────────── */

.pro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 0;
}

.pro-stats div {
  padding: 26px;
  background: var(--cream);
  border-radius: var(--radius-md);
}

.pro-stats dt {
  font-family: var(--titre);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pro-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cases article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.case-tag {
  margin-top: auto;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq {
  max-width: 900px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
  font-family: var(--texte);
  letter-spacing: normal;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 56px;
  padding: 18px 22px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

/* Le signe passe de + à − : l'état de chaque question se lit sans l'ouvrir. */
.faq-sign {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.faq-sign::before,
.faq-sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.faq-sign::after {
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.faq-item button[aria-expanded='true'] .faq-sign::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 22px 20px;
  color: #5c524d;
  font-size: 15px;
}

/* ── Pied de page ──────────────────────────────────────────────────────────── */

.site-footer {
  max-width: var(--largeur);
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: clamp(40px, 6vw, 80px) var(--gouttiere) 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 14.5px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
}

.footer-links h2 {
  font-family: var(--texte);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #4a403c;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-legal {
  margin-top: 24px;
  color: var(--soft);
  font-size: 14px;
}

.footer-credit {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
}

.footer-credit strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Téléphones et tablettes ───────────────────────────────────────────────── */

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 12px;
  }

  .brand {
    flex-shrink: 0;
  }

  .brand img {
    flex-shrink: 0;
    height: 40px;
    width: auto;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    flex-shrink: 0;
  }

  .header-cta {
    order: 2;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 12px;
  }

  /*
   * Sous 980 px, la navigation devient un panneau déroulant plein largeur sous l'en-tête.
   * Elle reste dans le flux de l'en-tête pour repousser le contenu naturellement sans le déformer.
   */
  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
    animation: navMenuFadeIn 0.22s ease-out;
  }

  .site-nav a {
    padding: 12px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background-color: rgba(15, 45, 74, 0.05);
    color: var(--red);
  }
}

@keyframes navMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  /*
   * L'appel à télécharger disparaît de l'en-tête sur petit écran : à cette largeur il
   * se coupait en deux lignes et poussait le bouton Menu hors de vue. Le même bouton
   * reste immédiatement en dessous, dans l'ouverture.
   */
  .header-cta {
    display: none;
  }

  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-text {
    max-width: none;
  }

  .hero-actions .btn {
    flex: 1 1 200px;
  }

  .section-head {
    align-items: start;
  }

  .earnings-rows div {
    flex-direction: column;
    gap: 2px;
  }
}

/* ── Pages légales (CGU, confidentialité, mentions légales) ────────────────── */

.legal {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gouttiere) 0;
}

.legal-article {
  max-width: 72ch;
}

.legal-article h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  margin-bottom: 10px;
}

.legal-version {
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-article section {
  margin-bottom: 36px;
}

.legal-article h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin-bottom: 12px;
}

.legal-article p,
.legal-article li {
  color: var(--ink);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-article p + p {
  margin-top: 10px;
}

.legal-article ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

.legal-article a {
  color: var(--rouge);
  text-decoration: underline;
}

.legal-todo {
  margin-top: 12px;
  color: var(--rouge-profond);
}

.legal-home {
  flex-shrink: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.footer-legal-links a {
  color: #4a403c;
}

.footer-legal-links a:hover {
  color: var(--red);
}
