/* ==========================================================================
   roobet-dz.com — feuille de style unique (toutes les pages)
   Palette : oklch dérivée de #5528A6 / #FECB34 / #19063E / #070618
   ========================================================================== */

/* --- Polices auto-hébergées (Sora = titres, Manrope = texte) -------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons de design ---------------------------------------------------- */
:root {
  --bg: #070618;                          /* oklch(13.7% 0.04 283) — fond de page */
  --footer-bg: oklch(16.5% 0.055 288);
  --surface: #19063E;                     /* oklch(20.2% 0.097 290.4) — cartes, en-tête */
  --surface-2: oklch(25.5% 0.072 290);
  --surface-3: oklch(30.5% 0.062 290);
  --border: oklch(37.5% 0.058 290);
  --border-strong: oklch(48% 0.07 290);
  --fg: oklch(98% 0.008 285);
  --muted: oklch(80% 0.03 288);
  --muted-2: oklch(70% 0.035 288);
  --brand: #5528A6;                       /* oklch(41.8% 0.187 292.7) — violet de marque */
  --brand-soft: oklch(79% 0.115 292);     /* violet lisible sur fond sombre */
  --accent: #FECB34;                      /* oklch(86.4% 0.164 88.5) — or, action principale */
  --accent-hover: oklch(90.5% 0.15 90);
  --accent-ink: oklch(20% 0.06 290);      /* texte posé sur l'or */
  --success: oklch(78% 0.15 150);
  --danger: oklch(70% 0.19 25);

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

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px -24px oklch(6% 0.03 285 / 0.9);
  --shadow-pop: 0 12px 28px -18px oklch(6% 0.03 285);
  --section-y: clamp(40px, 5.5vw, 68px);
  --header-h: 72px;
}

/* --- Réinitialisation ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
}

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

a:hover {
  text-decoration: underline;
}

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

h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.13rem, 1rem + 0.5vw, 1.36rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--muted-2);
  margin: 18px 0 0;
}

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--brand-soft);
  color: var(--fg);
}

.btn-sm {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.logo {
  flex: 0 0 auto;
  display: block;
}

.logo img {
  width: 150px;
  height: auto;
}

.nav {
  margin-inline: auto;
}

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

.nav-list a {
  display: block;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-list a:hover {
  background: var(--surface-2);
  color: var(--fg);
  text-decoration: none;
}

.nav-list a.is-active {
  background: var(--surface-2);
  color: var(--fg);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.burger-bars,
.burger-bars::before,
.burger-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger-bars::before,
.burger-bars::after {
  content: "";
  position: relative;
}

.burger-bars::before {
  top: -6px;
}

.burger-bars::after {
  top: 4px;
}

.burger[aria-expanded="true"] .burger-bars {
  background: transparent;
}

.burger[aria-expanded="true"] .burger-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Fil d'Ariane -------------------------------------------------------- */
.breadcrumbs {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
}

.breadcrumbs li + li::before {
  content: "-";
  color: var(--border-strong);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--fg);
}

/* --- Héros --------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% 30% -20%;
  background: radial-gradient(
    ellipse at 30% 40%,
    oklch(41.8% 0.187 292.7 / 0.42),
    transparent 68%
  );
  pointer-events: none;
}

.page-hero::after,
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, oklch(86.4% 0.164 88.5 / 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: start;
}

.hero-copy p,
.page-hero-copy p {
  max-width: 60ch;
}

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

.hero-media,
.page-hero-media {
  margin: 0 auto 30px;
  max-width: max-content;
}

.hero-media img,
.page-hero-media img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-media figcaption,
.page-hero-media figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* Bandeau de notes + chiffres clés */
.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.rating-stars {
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 1.05rem;
}

.rating-score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.hero-stats li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-stats .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats .stat-label {
  font-size: 0.82rem;
  color: var(--muted-2);
  line-height: 1.4;
}

/* --- Sections ------------------------------------------------------------ */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: 0;
}

.prose {
  max-width: 1000px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 0;
}

.prose > h2:not(:first-child),
.prose > h3:not(:first-child) {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--accent);
}

.prose ul.plain {
  list-style: none;
  padding-left: 0;
}

.prose ul.plain li {
  padding-left: 1.6em;
  position: relative;
}

.prose ul.plain li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.prose ol.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.prose ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9em;
  margin-bottom: 0.9em;
  min-height: 34px;
}

.prose ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* --- Figures ------------------------------------------------------------- */
.figure {
  margin: 24px 0;
}

.figure a,
.page-hero-media a,
.hero-media a {
  display: block;
}

.figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.figure-portrait {
  max-width: 320px;
  margin-inline: auto;
}

/* --- Sommaire ------------------------------------------------------------ */
.toc {
  margin: 26px 0 var(--section-y);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}

.toc[open] summary::after {
  content: "\2013";
}

.toc ol {
  margin: 0 0 18px;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  margin-bottom: 0.45em;
  break-inside: avoid;
}

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc a:hover {
  color: var(--accent);
}

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

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap caption {
  caption-side: top;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table-wrap th,
.table-wrap td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.table-wrap thead th {
  background: var(--surface-2);
  color: var(--fg);
  font-weight: 700;
  border-top: 0;
}

.table-wrap tbody th {
  color: var(--fg);
  font-weight: 700;
}

.table-wrap td {
  color: var(--muted);
}

.table-wrap td strong {
  color: var(--accent);
}

/* --- Cartes, encarts ----------------------------------------------------- */
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.callout .callout-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* --- Bandeau d'appel à l'action ------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  margin: 32px 0;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, oklch(86.4% 0.164 88.5 / 0.16), transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band .cta-title {
  margin-bottom: 0.35em;
  color: var(--fg);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.35em;
}

.cta-band p {
  color: var(--muted);
  max-width: 60ch;
}

.cta-band-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--muted-2);
  margin: 0;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  margin: 24px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item summary:hover {
  background: var(--surface-2);
}

.faq-item[open] summary {
  background: var(--surface-2);
}

.faq-a {
  padding: 8px 20px 20px;
  color: var(--muted);
}

.faq-a p:last-child {
  margin-bottom: 0;
}

/* --- Bloc auteur --------------------------------------------------------- */
.author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 32px 0;
}

.author-avatar {
  flex: 0 0 auto;
  margin: 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fg);
}

.author-body h2,
.author-body .author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.2em;
}

.author-role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6em;
}

.author-bio {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.author-meta {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* --- Pied de page -------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding-top: clamp(36px, 4.5vw, 56px);
  margin-top: var(--section-y);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px 24px;
}

.footer-col .logo img {
  width: 150px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 14px;
}

.footer-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 16px 0 12px;
}

.footer-note {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin: 0;
}

.footer-links,
.footer-badges,
.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-badges li,
.pay-list li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-badges a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-badges a:hover {
  color: var(--accent);
}

.footer-badges a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.footer-badges a:hover {
  border-color: var(--brand-soft);
}

.badge-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-list li {
  margin: 0;
}

.pay-chip {
  display: inline-block;
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
}

.age-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.footer-legal {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.footer-contact {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.footer-contact a {
  color: var(--muted);
}

/* --- Barre d'action mobile ---------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 10px;
  padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.mobile-cta .btn {
  flex: 1 1 0;
  padding: 0 10px;
  min-height: 40px;
}

/* --- Adaptations --------------------------------------------------------- */
@media (max-width: 1151px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }

    .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-list a {
    padding: 10px 10px;
    min-height: 40px;
    font-size: 1rem;
  }
  .burger {
    display: inline-flex;
  }

}

@media (max-width: 980px) {

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc ol {
    columns: 1;
  }



  body {
    padding-bottom: 84px;
  }

  .header-actions .btn:first-of-type {
    display: none;
  }
  .mobile-cta {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .author {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .cta-band-footer .btn {
    width: 100%;
  }
  .hero-media img,
  .page-hero-media img {
    border-radius: var(--radius);
  }
}

@media (max-width:384.98px) {
   .header-actions .btn {
    display: none;
   }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .burger-bars,
  .burger-bars::before,
  .burger-bars::after {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}


.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) {
  .nav {
    top: 68px;
  }
  .header-inner {
    min-height: 68px;
  }

  .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;
  }
}