/* ==========================================================================
   RAJA 132° — feuille de style unique
   Palette verrouillée sur le brief : #E50F05 (rouge), #F98F00 (orange),
   #FFFFFF, #3E0202 (fond profond). Aucune couleur inventée hors dérivées
   oklab de ces quatre valeurs.
   ========================================================================== */

/* Polices auto-hébergées (Google Fonts, licence OFL) — 2 fichiers variables.
   Les chemins sont relatifs : ../fonts/ depuis assets/css/. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  /* Valeurs de marque (source, non négociables) */
  --brand-red: #e50f05;
  --brand-orange: #f98f00;
  --brand-white: #ffffff;
  --brand-deep: #3e0202;

  /* Dérivées oklab */
  --bg: color-mix(in oklab, var(--brand-deep) 70%, #000);
  --bg-soft: color-mix(in oklab, var(--brand-deep) 84%, #000);
  --surface: color-mix(in oklab, var(--brand-deep) 90%, var(--brand-white) 3%);
  --surface-2: color-mix(in oklab, var(--brand-deep) 84%, var(--brand-white) 7%);
  --fg: var(--brand-white);
  --muted: color-mix(in oklab, var(--brand-white) 80%, var(--brand-deep));
  --border: color-mix(in oklab, var(--brand-deep) 72%, var(--brand-white) 16%);
  --border-soft: color-mix(in oklab, var(--brand-deep) 80%, var(--brand-white) 10%);

  --accent: var(--brand-red);
  --accent-hover: color-mix(in oklab, var(--brand-red) 84%, #000);
  --accent-soft: color-mix(in oklab, var(--brand-red) 20%, transparent);
  --highlight: var(--brand-orange);
  --highlight-icon: color-mix(in oklab, var(--brand-orange) 58%, var(--brand-white));
  --highlight-text: color-mix(in oklab, var(--brand-orange) 26%, var(--brand-white));

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px color-mix(in oklab, #000 40%, transparent),
    0 8px 24px color-mix(in oklab, #000 32%, transparent);
  --shadow-2: 0 18px 48px color-mix(in oklab, #000 46%, transparent);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(44px, 6vw, 76px);

  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

strong { color: var(--fg); font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--highlight-icon);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--brand-white); }

/* ----------------------------------------------------------- Utilitaires -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section + .section { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--highlight);
  border-radius: 2px;
  flex: none;
}

.lead { font-size: clamp(1.02rem, 1rem + 0.3vw, 1.16rem); color: var(--muted); }
.prose { max-width: 900px; margin-inline: auto; }
.figure-block--narrow img { max-width: min(420px, 100%); margin-inline: auto; }
.text-muted { color: var(--muted); }
.small { font-size: 0.86rem; line-height: 1.6; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--brand-white);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Boutons -- */
.btn {
  --btn-h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-h);
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--brand-white);
  box-shadow: 0 6px 20px color-mix(in oklab, var(--accent) 34%, transparent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--brand-white);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px color-mix(in oklab, var(--accent) 42%, transparent);
}

.btn--ghost {
  background: color-mix(in oklab, var(--brand-white) 6%, transparent);
  border-color: var(--border);
  color: var(--fg);
}
.btn--ghost:hover {
  background: color-mix(in oklab, var(--brand-white) 14%, transparent);
  border-color: var(--highlight);
  color: var(--fg);
}

.btn--quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font-size: 0.92rem;
}
.btn--quiet:hover {
  background: color-mix(in oklab, var(--brand-white) 10%, transparent);
  border-color: var(--highlight);
  color: var(--fg);
}

.btn--sm { --btn-h: 44px; padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.link-inline {
  color: var(--highlight-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link-inline:hover { color: var(--brand-white); }

/* --------------------------------------------------------------- En-tête -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 990;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  border-bottom-color: var(--border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: auto; width: 110px; }

.main-nav { margin-left: auto; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list li { margin: 0; }

.main-nav__list a {
  display: inline-block;
  padding: 0.4rem 0.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.main-nav__list a:hover { color: var(--brand-white); border-bottom-color: var(--highlight); }
.main-nav__list a[aria-current="page"] { color: var(--brand-white); border-bottom-color: var(--accent); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  margin-left: auto;
}

.header__login {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.2rem;
}
.header__login:hover { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: color-mix(in oklab, var(--brand-white) 6%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger:hover { border-color: var(--highlight); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------- Fil d'Ariane -- */
.breadcrumbs {
  padding-top: clamp(16px, 2.5vw, 26px);
  font-size: 0.86rem;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; display: flex; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "-"; color: color-mix(in oklab, var(--brand-white) 45%, var(--brand-deep)); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--fg); }

/* ------------------------------------------------------------------ Hero -- */
.hero {
  position: relative;
  padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px);
  background:
    radial-gradient(115% 85% at 12% -10%, color-mix(in oklab, var(--brand-red) 26%, transparent), transparent 62%),
    radial-gradient(90% 70% at 100% 0%, color-mix(in oklab, var(--brand-orange) 14%, transparent), transparent 58%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero__title span { color: var(--highlight-text); }

.hero__lead {
  font-size: clamp(1.02rem, 1rem + 0.35vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
}

.hero__actions { margin-top: 1.5rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 1.6rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--border-soft);
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__facts b { color: var(--fg); font-weight: 700; }
.hero__facts .score { color: var(--highlight-icon); font-weight: 700; }

/* Cadre média (image de contenu ou capture d'interface) */
.media-frame {
  position: relative;
  display: block;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.media-frame img { width: 100%; }

.media-frame--hero { padding: 10px; }
.media-frame--hero img { border-radius: calc(var(--radius-lg) - 8px); }

.media-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: 62%;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in oklab, var(--brand-white) 20%, transparent);
  background: color-mix(in oklab, #000 74%, var(--brand-deep));
  box-shadow: var(--shadow-1);
  font-size: 0.8rem;
  line-height: 1.35;
}
.media-badge b { display: block; font-family: var(--font-display); font-size: 1rem; }
.media-badge span { color: var(--muted); }

/* Bloc image inséré dans une section de contenu */
.figure-block { margin: 0 0 1.6rem; }
.figure-block figcaption { margin-top: 0.6rem; font-size: 0.84rem; color: var(--muted); }

/* ------------------------------------- Images cliquables vers l'offre -- */
.img-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.img-link > picture,
.footer__pay a picture,
.footer__age a picture { display: block; }
.img-link img { transition: filter 0.18s ease; }
.img-link:hover { outline: 1px solid var(--highlight); outline-offset: 3px; }
.img-link:focus-visible { outline: 2px solid var(--highlight-icon); outline-offset: 3px; }
.img-link:hover img,
.img-link:focus-visible img,
.media-frame:hover img,
.media-frame:focus-visible img { filter: brightness(1.07); }
.media-frame:hover { outline: 1px solid var(--highlight); outline-offset: 3px; }
.media-frame:focus-visible { outline: 2px solid var(--highlight-icon); outline-offset: 3px; }

/* L'illustration étroite garde sa largeur propre, le cadre épouse l'image */
.figure-block--narrow .img-link { width: 100%; max-width: min(420px, 100%); margin-inline: auto; }
.figure-block--narrow .img-link img { max-width: 100%; margin-inline: 0; }

/* ------------------------------------------------------- Titres de section -- */
.section__head { max-width: 74ch; margin-bottom: clamp(18px, 2.4vw, 30px); }
.section__head p:last-child { margin-bottom: 0; }

h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
h3 { scroll-margin-top: calc(var(--header-h) + 20px); }

/* -------------------------------------------------- Table des matières -- */
.toc {
  margin: 0 0 clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.toc[open] { border-color: color-mix(in oklab, var(--brand-orange) 34%, var(--border)); }

.toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary:hover { background: var(--surface-2); }
.toc > summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1;
}
.toc[open] > summary::after { content: "\2212"; }

.toc__body { padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--border-soft); }
.toc__list {
  columns: 2;
  column-gap: 2rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
}
.toc__list li { break-inside: avoid; margin-bottom: 0.4rem; }
.toc__list a { color: var(--muted); text-decoration: none; }
.toc__list a:hover { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------- Tableaux -- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

table.table caption {
  caption-side: top;
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.01em;
}

table.table th,
table.table td {
  padding: 0.72rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}

table.table thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in oklab, var(--brand-white) 4%, transparent);
}

table.table tbody tr:last-child th,
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody th { font-weight: 600; color: var(--fg); width: 40%; }
table.table tbody tr:hover { background: color-mix(in oklab, var(--brand-white) 3%, transparent); }

/* --------------------------------------------------------------- Listes -- */
.list-check { list-style: none; padding-left: 0; }
.list-check li { position: relative; padding-left: 1.55rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--highlight);
}
.list-check--red li::before { background: var(--accent); }

.list-numbered { counter-reset: step; list-style: none; padding-left: 0; }
.list-numbered li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.7rem;
}
.list-numbered li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  background: var(--surface-2);
}

/* ---------------------------------------------------------- Encarts CTA -- */
.panel {
  margin: clamp(22px, 3vw, 34px) 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel--cta {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--accent) 12%, var(--surface)), var(--surface) 70%);
}
.panel h2, .panel h3 { margin-bottom: 0.5rem; }
.panel p:last-child { margin-bottom: 0;margin-top:10px; }
.panel .btn-row { margin-top: 1.1rem; }

.callout {
  margin: clamp(18px, 2.4vw, 28px) 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--brand-white) 3%, transparent);
  font-size: 0.93rem;
  color: var(--muted);
}
.callout strong { color: var(--fg); }

/* --------------------------------------------------------------- FAQ -- */
.faq { border-top: 1px solid var(--border-soft); }

.faq details {
  border-bottom: 1px solid var(--border-soft);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--highlight-text); }
.faq summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; border-color: var(--highlight); }
.faq details[open] summary { color: var(--brand-white); }
.faq .faq__answer { padding: 0 0 1.2rem; color: var(--muted); max-width: 88ch; }
.faq .faq__answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- Auteur -- */
.author-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
  margin: clamp(30px, 4vw, 48px) 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.author-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-white);
  background: linear-gradient(150deg, var(--accent), color-mix(in oklab, var(--brand-orange) 62%, var(--brand-deep)));
  border: 1px solid color-mix(in oklab, var(--brand-white) 22%, transparent);
  flex: none;
}

.author-card__name { margin: 0 0 0.15rem; font-size: 1.1rem; }
.author-card__role { margin: 0 0 0.6rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.author-card__bio { margin: 0; font-size: 0.94rem; color: var(--muted); }
.author-card__meta { margin-top: 0.7rem; font-size: 0.82rem; color: color-mix(in oklab, var(--brand-white) 55%, var(--brand-deep)); }

/* ------------------------------------------------------------- Footer -- */
.site-footer {
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(36px, 4.5vw, 60px);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
}

.footer-logo img {
  max-width: 100px;
}

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

.footer__brand img { margin-bottom: 0.9rem; }
.footer__brand p { font-size: 0.9rem; color: var(--muted); max-width: 44ch; }

.footer__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 0.9rem;
}

.footer__links { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }

.footer__trust { display: grid; gap: 0.7rem; align-content: start; }
.footer__trust a {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.footer__trust img { height: 38px; width: auto; opacity: 0.92; }
.footer__trust a:hover img { opacity: 1; }
.footer__trust a:hover { outline: 1px solid var(--highlight); }

.footer__pay { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.footer__pay img { height: 30px; width: auto; margin-bottom: 0; }
.footer__pay a { display: inline-flex; border-radius: var(--radius-sm); }
.footer__pay a:hover { outline: 1px solid var(--highlight); outline-offset: 3px; }
.footer__brand .img-link { width: fit-content; }
.footer__age a { display: inline-flex; border-radius: var(--radius-sm); }
.footer__age a:hover { outline: 1px solid var(--highlight); outline-offset: 3px; }

.footer__contact { font-size: 0.9rem; color: var(--muted); }
.footer__contact a { color: var(--muted); text-decoration: none; }
.footer__contact a:hover { color: var(--brand-white); text-decoration: underline; text-underline-offset: 3px; }
.footer__contact p { margin-bottom: 0.45rem; }

.footer__bottom {
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--border-soft);
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  justify-content: space-between;
}
.footer__legal { font-size: 0.82rem; color: color-mix(in oklab, var(--brand-white) 58%, var(--brand-deep)); max-width: 78ch; }
.footer__legal p { margin: 0; }
.footer__age { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); }
.footer__age img { height: 40px; width: auto; }

/* ---------------------------------------------------- Barre CTA mobile -- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 0.6rem;
  padding: 8px var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.mobile-cta .btn { flex: 1 1 0;padding: 0; min-height: 40px; }

/* ------------------------------------------------------------- Modale -- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, #000 72%, transparent);
  backdrop-filter: blur(3px);
}

.modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid color-mix(in oklab, var(--accent) 34%, var(--border));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.modal__panel h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.modal__panel p { color: var(--muted); font-size: 0.95rem; }
.modal__actions { display: grid; gap: 0.7rem; margin-top: 1.2rem; }
.modal__note { margin: 1rem 0 0; font-size: 0.78rem; color: color-mix(in oklab, var(--brand-white) 58%, var(--brand-deep)); }

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { background: color-mix(in oklab, var(--brand-white) 12%, transparent); border-color: var(--highlight); }

body.modal-open { overflow: hidden; }

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.8rem var(--gutter) 1.2rem;
    background: color-mix(in oklab, var(--bg) 98%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    max-height: 70vh;
    overflow-y: auto;
  }
  .main-nav.is-open .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.is-open .main-nav__list li { border-bottom: 1px solid var(--border-soft); }
  .main-nav.is-open .main-nav__list a {
    display: block;
    padding: 0.85rem 0.1rem;
    font-size: 1rem;
    border-bottom: 0;
  }
  .burger { display: flex; }
  .header__inner { position: relative; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero__media { order: 2; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header__actions .btn { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 78px; }
  .toc__list { columns: 1; }
}

@media (max-width: 720px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .author-card { grid-template-columns: minmax(0, 1fr); }
  .author-card__avatar { width: 62px; height: 62px; font-size: 1.25rem; }
  .hero__facts { gap: 0.45rem 1.1rem; }
}

@media (max-width: 560px) {
  .btn-row .btn { width: 100%; }
  .media-badge { position: static; max-width: none; margin: 0.7rem 0 0; }
  .media-frame--hero .media-badge { margin: 0.7rem 0.2rem 0.2rem; }
}

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


.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}