/* =============================================================
   OBA TV · design system « diffusion royale »
   Marine profond, or métallique, typographie éditoriale.
   ============================================================= */

/* DM Serif Display · titres éditoriaux (une seule graisse, normal + italique) */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dmserif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dmserif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dmserif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dmserif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}
/* DM Sans · interface et corps (police variable 300 à 700) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/dmsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0;
}

:root {
  /* Marque : l'or reste identique dans les deux thèmes */
  --gold-300: #f8d97c;
  --gold-400: #f0c75e;
  --gold-500: #e3ac2d;
  --gold-600: #c78f10;
  --gold-700: #9c6d0a;
  --gold-grad: linear-gradient(180deg, var(--gold-300), var(--gold-500) 55%, var(--gold-700));
  --live: #e5484d;

  /* Typographie (reprise de leadkly : DM Serif Display + DM Sans) */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, Arial, sans-serif;
  --radius: .75rem;
  --wrap: 74rem;

  /* --- Thème sombre (par défaut) : les tokens ci-dessous portent le thème,
     les composants ne référencent qu'eux, jamais une couleur en dur --- */
  --navy-950: #060c1d;
  --navy-900: #0b1530;
  --navy-800: #101d3d;
  --navy-700: #16264f;
  --navy-600: #1d3266;
  --navy-500: #274180;
  --ivory: #f4f1e8;
  --mist: #b8c0d6;
  --mist-dim: #7e88a3;
  --line: rgba(227, 172, 45, .18);
  --line-soft: rgba(255, 255, 255, .08);
  --shadow: 0 20px 50px -12px rgba(3, 7, 18, .55);
  --champ-bg: rgba(6, 12, 29, .6);
  --entete-bg: rgba(11, 21, 48, .97);
  --voile-haut: rgba(39, 65, 128, .55);
  --voile-bas: rgba(29, 50, 102, .35);
  --sombre-sur-or: #221703;
  --schema-couleur: dark;
}

/* --- Thème clair : mêmes tokens, valeurs inversées. Tout le site suit --- */
:root[data-theme="light"] {
  --navy-950: #ffffff;   /* fonds les plus profonds deviennent les plus clairs */
  --navy-900: #f4f2ec;   /* fond de page : ivoire doux */
  --navy-800: #ffffff;   /* cartes */
  --navy-700: #efece3;   /* surfaces secondaires */
  --navy-600: #e5e1d5;
  --navy-500: #d8d3c4;
  --ivory: #1a2338;      /* texte principal : marine très sombre */
  --mist: #4a5573;       /* texte secondaire */
  --mist-dim: #7a839c;   /* texte discret */
  --line: rgba(199, 143, 16, .35);
  --line-soft: rgba(26, 35, 56, .12);
  --shadow: 0 18px 44px -16px rgba(26, 35, 56, .28);
  --champ-bg: #ffffff;
  --entete-bg: rgba(244, 242, 236, .96);
  --voile-haut: rgba(227, 172, 45, .16);
  --voile-bas: rgba(199, 143, 16, .08);
  --sombre-sur-or: #221703;
  --schema-couleur: light;
  /* Or de TEXTE assombri pour rester lisible sur fond clair ;
     le dégradé des boutons reste éclatant (défini en dur ci-dessous). */
  --gold-300: #96690a;
  --gold-400: #855c06;
  --gold-grad: linear-gradient(180deg, #f8d97c, #e3ac2d 55%, #c78f10);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Aucun débordement horizontal : la page ne bouge plus de gauche à droite.
   « clip » (et non « hidden ») préserve le fonctionnement de l'en-tête collant. */
html, body { overflow-x: clip; }

body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ivory);
  background:
    radial-gradient(90rem 50rem at 85% -12%, var(--voile-haut) 0%, transparent 55%),
    radial-gradient(60rem 40rem at -10% 30%, var(--voile-bas) 0%, transparent 50%),
    var(--navy-900);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold-500); color: var(--navy-950); }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

/* DM Serif Display n'a qu'une graisse (400), déjà très affirmée : pas de gras
   synthétique, on garde 400 partout et on resserre l'interlignage des titres. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
:root[data-theme="light"] ::selection { background: var(--gold-500); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* Lien d'évitement pour l'accessibilité */
.skip-link {
  position: absolute; top: -3rem; left: 1rem; z-index: 200;
  background: var(--gold-500); color: var(--navy-950);
  padding: .5rem 1rem; border-radius: 0 0 .5rem .5rem;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; border: 0;
  font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }

.btn-or {
  background: var(--gold-grad); color: #221703;
  box-shadow: 0 6px 18px -6px rgba(227, 172, 45, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-or:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(227, 172, 45, .6), inset 0 1px 0 rgba(255,255,255,.5); }

.btn-ligne {
  background: transparent; color: var(--ivory);
  border: 1px solid var(--line); box-shadow: none;
}
.btn-ligne:hover { border-color: var(--gold-500); color: var(--gold-300); }

.btn-live {
  background: var(--live); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(229, 72, 77, .6);
}
.btn-live:hover { transform: translateY(-2px); }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
}
.badge-live { background: var(--live); color: #fff; }
.badge-or { background: rgba(227, 172, 45, .14); color: var(--gold-400); border: 1px solid var(--line); }
.badge-cat { color: #fff; }

.pulse {
  width: .5rem; height: .5rem; border-radius: 50%; background: #fff;
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  100% { box-shadow: 0 0 0 .55rem rgba(255, 255, 255, 0); }
}

/* ---------- Bandeau défilant (ticker) ---------- */

.ticker {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--navy-950); border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.ticker-label {
  display: flex; align-items: center; gap: .45rem; flex-shrink: 0;
  position: relative; z-index: 2; /* le texte défilant passe dessous */
  background: var(--gold-grad); color: #221703;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  font-size: .72rem; padding: .45rem .9rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - .7rem) 100%, 0 100%);
  padding-right: 1.4rem;
}
.ticker-track {
  display: flex; align-items: center; gap: 3rem; white-space: nowrap;
  position: relative; z-index: 1;
  animation: defile 40s linear infinite; padding-left: 1rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: .6rem; color: var(--mist); }
.ticker-track span::before { content: '◆'; color: var(--gold-500); font-size: .6rem; }
@keyframes defile { to { transform: translateX(-50%); } }

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

.entete {
  position: sticky; top: 0; z-index: 100;
  /* fond quasi opaque, sans backdrop-filter : ce dernier cassait le
     menu mobile en position fixe et fragilisait le comportement collant */
  background: var(--entete-bg);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s;
}
.entete.scrolle { box-shadow: var(--shadow); }

.entete-inner {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .7rem 0;
}
.logo { flex-shrink: 0; }
.logo img { height: 2.4rem; width: auto; }
.entete .btn { padding: .55rem 1.1rem; font-size: .88rem; white-space: nowrap; }

.nav-principale { display: flex; gap: .25rem; margin-left: auto; }
.nav-principale a {
  position: relative; padding: .5rem .85rem; border-radius: .5rem;
  font-weight: 600; font-size: .93rem; color: var(--mist);
  transition: color .2s, background .2s;
}
.nav-principale a:hover { color: var(--ivory); background: rgba(255, 255, 255, .05); }
.nav-principale a.actif { color: var(--gold-400); }
.nav-principale a.actif::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
  height: 2px; background: var(--gold-grad); border-radius: 2px;
}

.entete-actions { display: flex; align-items: center; gap: .7rem; }

.lien-recherche {
  display: inline-flex; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  align-items: center; justify-content: center; color: var(--mist);
  border: 1px solid var(--line-soft); transition: all .2s;
}
.lien-recherche:hover { color: var(--gold-400); border-color: var(--gold-500); }

/* Bascule jour / nuit : une seule icône affichée selon le thème actif */
.bascule-theme { background: none; padding: 0; }
.bascule-theme .icone-soleil { display: none; }
:root[data-theme="light"] .bascule-theme .icone-lune { display: none; }
:root[data-theme="light"] .bascule-theme .icone-soleil { display: block; }
.bascule-theme:hover { transform: rotate(-12deg); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem;
}
.burger span { width: 22px; height: 2px; background: var(--ivory); transition: all .25s; }
.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); }

/* ---------- Héros ---------- */

.heros { padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; }
.heros::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e3ac2d' fill-opacity='.05'/%3E%3C/svg%3E");
}

.heros-grille {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: stretch;
}

.heros-texte .surtitre {
  color: var(--gold-400); font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.heros-texte .surtitre::before { content: ''; width: 2.2rem; height: 2px; background: var(--gold-grad); }

.heros-texte h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 900;
  letter-spacing: -.01em; margin-bottom: 1.1rem;
}
.heros-texte h1 em { font-style: italic; color: var(--gold-300); }
.heros-texte p { color: var(--mist); max-width: 34rem; margin-bottom: 1.7rem; font-size: 1.05rem; }
.heros-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Carte antenne : à l'antenne + à suivre */
.carte-antenne {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--shadow);
}
.carte-antenne h2 {
  font-size: .78rem; font-family: var(--font-ui); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-400);
}
/* Une ligne par programme : heure, titre, état, alignés et compacts */
.antenne-item {
  display: grid; grid-template-columns: 3.2rem 1fr auto;
  gap: .8rem; align-items: center; min-width: 0;
}
.antenne-item .heure {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--gold-300);
}
.antenne-item .titre {
  font-weight: 600; font-size: .95rem; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.antenne-item .etat {
  font-size: .68rem; color: var(--mist-dim); text-transform: uppercase;
  letter-spacing: .09em; white-space: nowrap;
}
.antenne-sep { height: 1px; background: var(--line-soft); }
.carte-antenne .tout-programme { margin-top: auto; font-size: .88rem; color: var(--gold-400); font-weight: 600; }
.carte-antenne .tout-programme:hover { color: var(--gold-300); }

/* ---------- Sections et rails ---------- */

.section { padding: 2.6rem 0; }
.section-titre {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem;
}
.section-titre h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-titre h2 span { color: var(--gold-400); }
.section-titre .filet { flex: 1; height: 1px; background: var(--line); }
.section-titre .voir-tout {
  font-size: .88rem; font-weight: 600; color: var(--gold-400); white-space: nowrap;
}
.section-titre .voir-tout:hover { color: var(--gold-300); }

.rail-conteneur { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 17.5rem;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .8rem; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-large { grid-auto-columns: 21rem; }

.rail-btn {
  position: absolute; top: 38%; z-index: 5;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  border: 1px solid var(--line); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; opacity: .92;
}
.rail-btn:hover { background: var(--gold-500); color: var(--navy-950); }
.rail-btn.prec { left: -1.1rem; }
.rail-btn.suiv { right: -1.1rem; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Cartes ---------- */

.carte {
  background: var(--navy-800); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.carte:hover {
  transform: translateY(-4px); border-color: var(--line);
  box-shadow: var(--shadow);
}

.carte-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-700); }
.carte-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte:hover .carte-media img { transform: scale(1.05); }

.carte-media .duree {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(6, 12, 29, .85); color: var(--ivory);
  font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: .35rem;
}
.carte-media .lecture {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(6, 12, 29, 0); transition: background .25s;
}
.carte-media .lecture span {
  position: absolute; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--gold-grad); display: grid; place-items: center;
  color: var(--navy-950); font-size: 1.1rem;
  opacity: 0; transform: scale(.6); transition: all .25s;
  box-shadow: 0 10px 26px -8px rgba(227, 172, 45, .8);
}
.carte:hover .lecture { background: rgba(6, 12, 29, .35); }
.carte:hover .lecture span { opacity: 1; transform: scale(1); }

.carte-corps { padding: 1rem 1.1rem 1.2rem; }
.carte-corps .meta {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--mist-dim); margin-bottom: .45rem;
}
.carte-corps h3 { font-size: 1.02rem; font-family: var(--font-ui); font-weight: 700; line-height: 1.35; }
.carte-corps h3 a::after { content: ''; position: absolute; inset: 0; }
.carte { position: relative; }
.carte-corps .extrait { font-size: .87rem; color: var(--mist); margin-top: .5rem; }

/* Carte article horizontale (liste actualités) */
.carte-ligne {
  display: grid; grid-template-columns: 15rem 1fr; gap: 1.2rem;
  align-items: center;
}
.carte-ligne .carte-media { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.carte-ligne h3 { font-size: 1.15rem; font-family: var(--font-display); }

/* Une (article vedette) */
.une {
  position: relative; display: grid; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); min-height: 24rem;
  transition: border-color .25s;
}
.une:hover { border-color: var(--line); }
.une img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.une-voile {
  position: relative; z-index: 1; align-self: end; padding: 2rem;
  background: linear-gradient(0deg, rgba(6, 12, 29, .95) 25%, rgba(6, 12, 29, .5) 70%, transparent);
}
/* Texte posé sur une image sombre : reste clair dans les deux thèmes */
.une-voile h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: .6rem 0; color: #f4f1e8; }
.une-voile p { color: #cdd4e4; font-size: .95rem; max-width: 36rem; }

/* ---------- Grille des programmes ---------- */

.jours-onglets { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1.6rem; padding-bottom: .3rem; }
.jours-onglets button {
  border: 1px solid var(--line-soft); background: transparent; color: var(--mist);
  padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  white-space: nowrap; transition: all .2s;
}
.jours-onglets button:hover { color: var(--ivory); border-color: var(--line); }
.jours-onglets button.actif {
  background: var(--gold-grad); color: #221703; border-color: transparent; font-weight: 700;
}

.grille-jour { display: none; }
.grille-jour.actif { display: block; }

.creneau {
  display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.2rem;
  align-items: center; padding: 1rem 1.2rem;
  border-left: 2px solid transparent; border-bottom: 1px solid var(--line-soft);
  transition: background .2s, border-color .2s;
}
.creneau:hover { background: rgba(255, 255, 255, .03); }
.creneau.encours {
  background: linear-gradient(90deg, rgba(227, 172, 45, .1), transparent 60%);
  border-left-color: var(--gold-500);
}
.creneau .heures { font-family: var(--font-display); font-weight: 700; color: var(--gold-300); }
.creneau .heures small { display: block; color: var(--mist-dim); font-family: var(--font-ui); font-weight: 400; }
.creneau .prog strong { display: block; font-size: 1.02rem; }
.creneau .prog span { font-size: .82rem; color: var(--mist-dim); }
.creneau .badge { justify-self: end; }

/* ---------- Page direct ---------- */

.cadre-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: var(--navy-950);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cadre-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hors antenne : la carte s'adapte à son contenu, le bouton reste
   toujours visible, même sur les petits écrans */
.cadre-video.hors-live { aspect-ratio: auto; min-height: 18rem; display: grid; }
.horsantenne {
  display: grid; place-items: center; text-align: center;
  padding: 2.2rem 1.25rem;
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgba(39, 65, 128, .5), transparent 60%),
    var(--navy-950);
}
.horsantenne .mire { margin-bottom: 1.2rem; opacity: .9; }
.horsantenne h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.horsantenne p { color: var(--mist); max-width: 26rem; margin-inline: auto; }

/* ---------- Émissions ---------- */

.grille-cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grille-cartes-2 { grid-template-columns: repeat(2, 1fr); }
.grille-cartes-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Invités ---------- */

.carte-invite { text-align: center; padding: 1.6rem 1.2rem; }
.carte-invite img {
  width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover;
  margin: 0 auto .9rem; border: 2px solid var(--gold-600);
}
.carte-invite h3 { font-size: 1.05rem; }
.carte-invite .fonction { color: var(--gold-400); font-size: .82rem; margin: .2rem 0 .5rem; }
.carte-invite .sujet {
  font-family: var(--font-display); font-style: italic; font-size: .92rem;
  color: var(--ivory); margin: .3rem 0 .55rem; line-height: 1.4;
}
.carte-invite .passage { font-size: .8rem; color: var(--mist-dim); }

/* ---------- Pages article / vidéo ---------- */

.article-entete { max-width: 46rem; margin-inline: auto; padding-top: 2.5rem; }
.article-entete h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: .9rem 0; letter-spacing: -.01em; }
.article-entete .chapo { font-size: 1.12rem; color: var(--mist); font-style: italic; font-family: var(--font-display); }
.article-entete .signature {
  display: flex; gap: .5rem; align-items: center; justify-content: center;
  flex-wrap: wrap; row-gap: .2rem; margin-top: 1.2rem;
  font-size: .84rem; color: var(--mist-dim);
}
.article-entete .signature > * { white-space: nowrap; }
.article-entete .signature strong { color: var(--gold-400); }

.article-illustration { max-width: 54rem; margin: 2rem auto; }
.article-illustration img {
  border-radius: var(--radius); width: 100%; height: auto;
  max-height: 32rem; object-fit: cover; /* jamais d'étirement, cadrage propre */
}

.article-corps { max-width: 46rem; margin-inline: auto; font-size: 1.05rem; }
.article-corps p { margin-bottom: 1.3rem; color: var(--ivory); }
.article-corps > p:first-of-type::first-letter,
.article-corps > div:first-child > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.2em; font-weight: 900;
  float: left; line-height: .85; padding-right: .12em; color: var(--gold-400);
}

/* Mise en forme produite par l'éditeur riche */
.article-corps h2 {
  font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--gold-300);
  display: flex; align-items: baseline; gap: .7rem;
}
.article-corps h2::before { content: ''; width: 1.6rem; height: 3px; background: var(--gold-grad); flex-shrink: 0; align-self: center; }
.article-corps h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; color: var(--ivory); }
.article-corps ul, .article-corps ol { margin: 0 0 1.3rem 1.5rem; color: var(--ivory); }
.article-corps ul { list-style: none; }
.article-corps ul li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; }
.article-corps ul li::before { content: '◆'; position: absolute; left: 0; top: .45em; font-size: .5rem; color: var(--gold-500); }
.article-corps ol { list-style: decimal; }
.article-corps ol li { margin-bottom: .45rem; }
.article-corps blockquote {
  border-left: 3px solid var(--gold-500); margin: 1.6rem 0; padding: .6rem 1.4rem;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--mist);
}
.article-corps a { color: var(--gold-400); text-decoration: underline; text-underline-offset: 3px; }
.article-corps a:hover { color: var(--gold-300); }
.article-corps figure { margin: 1.8rem 0; }
.article-corps figure img { width: 100%; border-radius: var(--radius); }
.article-corps figcaption { font-size: .82rem; color: var(--mist-dim); margin-top: .5rem; text-align: center; }
.article-corps img { max-width: 100%; border-radius: var(--radius); }
.article-corps hr { border: 0; height: 1px; background: var(--line); margin: 2rem auto; width: 60%; }
.article-corps .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.3rem; }

/* Mots-clés en bas d'article */
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.article-tags a {
  font-size: .8rem; font-weight: 600; color: var(--mist);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: .3rem .85rem;
  transition: all .2s;
}
.article-tags a:hover { border-color: var(--gold-500); color: var(--gold-300); }

.partage { display: flex; gap: .6rem; align-items: center; margin-top: 2rem; }
.partage span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim); }
.partage a {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--line-soft);
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: var(--mist);
  transition: all .2s;
}
.partage a:hover { border-color: var(--gold-500); color: var(--gold-300); }

/* ---------- Formulaires ---------- */

.champ { margin-bottom: 1.1rem; }
.champ label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: .35rem;
}
.champ input, .champ textarea, .champ select {
  width: 100%; padding: .75rem 1rem; border-radius: .55rem;
  border: 1px solid var(--line-soft); background: var(--champ-bg);
  color: var(--ivory); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(227, 172, 45, .18);
}

.alerte { padding: .85rem 1.1rem; border-radius: .55rem; margin-bottom: 1.2rem; font-size: .93rem; }
.alerte-ok { background: rgba(26, 122, 74, .18); border: 1px solid rgba(26, 122, 74, .45); color: #9fe3bf; }
.alerte-err { background: rgba(192, 57, 43, .16); border: 1px solid rgba(192, 57, 43, .45); color: #f2b8b5; }

/* Piège anti-robots : champ invisible pour les humains */
.champ-piege { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Bloc newsletter ---------- */

.bloc-news {
  background:
    radial-gradient(30rem 14rem at 90% -30%, rgba(227, 172, 45, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.bloc-news h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.bloc-news h2 span { color: var(--gold-300); }
.bloc-news p { color: var(--mist); font-size: .95rem; }
.form-news { display: flex; gap: .6rem; }
.form-news input {
  flex: 1; padding: .8rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--champ-bg); color: var(--ivory);
}
.form-news input:focus { outline: none; border-color: var(--gold-500); }

/* ---------- Pied de page ---------- */

.pied {
  margin-top: 3rem; border-top: 1px solid var(--line);
  background: var(--navy-950); padding: 3rem 0 2rem;
}
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.2rem; }
.pied .logo img { height: 2.8rem; margin-bottom: .9rem; }
.pied .devise { color: var(--mist-dim); font-size: .9rem; max-width: 20rem; }
.pied h3 {
  font-family: var(--font-ui); font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-400); margin-bottom: .9rem;
}
.pied ul li { margin-bottom: .5rem; }
.pied ul a { color: var(--mist); font-size: .92rem; transition: color .2s; }
.pied ul a:hover { color: var(--gold-300); }
.pied-bas {
  border-top: 1px solid var(--line-soft); padding-top: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--mist-dim); font-size: .82rem;
}
.credit-dev { display: block; margin-top: .3rem; color: var(--mist-dim); }
.credit-dev a { color: var(--mist); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.credit-dev a:hover { color: var(--gold-400); border-bottom-color: var(--gold-500); }

.reseaux { display: flex; gap: .6rem; }
.reseaux a {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--mist); font-size: .8rem; font-weight: 700;
  transition: all .2s;
}
.reseaux a:hover { border-color: var(--gold-500); color: var(--gold-300); transform: translateY(-2px); }

/* ---------- Fil d'Ariane ---------- */

.ariane { font-size: .82rem; color: var(--mist-dim); padding-top: 1.4rem; }
.ariane a { color: var(--mist); }
.ariane a:hover { color: var(--gold-300); }
.ariane .sep { margin: 0 .45rem; color: var(--gold-600); }

/* ---------- Pagination ---------- */

.pagination {
  display: flex; gap: .45rem; justify-content: center; align-items: center;
  margin-top: 2.4rem; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 2.5rem; height: 2.5rem; padding-inline: .65rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); font-weight: 600; font-size: .9rem; color: var(--mist);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--gold-500); color: var(--gold-300); transform: translateY(-1px); }
.pagination .actif {
  background: var(--gold-grad); color: #221703; border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(227, 172, 45, .55);
}
.pagination .points { border: 0; color: var(--mist-dim); min-width: auto; padding-inline: .2rem; }
.pagination .nav-page { gap: .4rem; padding-inline: 1.1rem; }
.pagination .nav-page.inactif { opacity: .35; pointer-events: none; }
.pagination-info {
  text-align: center; color: var(--mist-dim); font-size: .82rem; margin-top: .8rem;
}

/* ---------- Bande de dates (programmes) ---------- */

.bande-dates {
  display: flex; gap: .55rem; overflow-x: auto; padding: .4rem .2rem 1rem;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.bande-dates::-webkit-scrollbar { display: none; }
.date-puce {
  scroll-snap-align: center; flex-shrink: 0; min-width: 4.4rem;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .65rem .5rem .7rem; border-radius: .8rem;
  border: 1px solid var(--line-soft); background: var(--navy-800);
  transition: all .2s; text-align: center;
}
.date-puce:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.date-puce .jour-nom {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mist-dim);
}
.date-puce .jour-num {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ivory);
  line-height: 1.15;
}
.date-puce .jour-mois { font-size: .68rem; color: var(--mist-dim); }
.date-puce.aujourdhui { border-color: var(--line); }
.date-puce.aujourdhui .jour-nom { color: var(--gold-400); }
.date-puce.choisi {
  background: var(--gold-grad); border-color: transparent;
  box-shadow: 0 10px 22px -8px rgba(227, 172, 45, .55);
}
.date-puce.choisi .jour-nom, .date-puce.choisi .jour-mois { color: #57400a; }
.date-puce.choisi .jour-num { color: #221703; }

/* ---------- Contenu premium ---------- */

.badge-premium {
  background: linear-gradient(120deg, #3b2c07, #6b5310);
  color: var(--gold-300); border: 1px solid var(--gold-600);
}
.voile-premium {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(0deg, rgba(6, 12, 29, .96), rgba(6, 12, 29, .78));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.voile-premium .cadenas {
  width: 3.6rem; height: 3.6rem; border-radius: 50%; margin: 0 auto .9rem;
  background: var(--gold-grad); display: grid; place-items: center;
  color: var(--navy-950); font-size: 1.4rem;
  box-shadow: 0 12px 30px -8px rgba(227, 172, 45, .6);
}
.voile-premium h2 { font-size: 1.35rem; margin-bottom: .4rem; color: #f4f1e8; }
.voile-premium p { color: #cdd4e4; font-size: .93rem; max-width: 28rem; margin: 0 auto 1.2rem; }
.voile-premium .cadenas { color: #221703; }

.carte-offre {
  position: relative; background: var(--navy-800); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .4rem;
  transition: transform .25s, border-color .25s;
}
.carte-offre:hover { transform: translateY(-4px); border-color: var(--line); }
.carte-offre.vedette { border-color: var(--gold-500); background:
  radial-gradient(24rem 12rem at 80% -20%, rgba(227, 172, 45, .16), transparent 60%), var(--navy-800); }
.carte-offre .etiquette {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--gold-grad); color: #221703; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: .28rem .9rem; border-radius: 999px;
  white-space: nowrap;
}
.carte-offre .prix { font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; color: var(--gold-300); }
.carte-offre .prix small { font-size: 1rem; color: var(--mist-dim); font-family: var(--font-ui); font-weight: 400; }
.carte-offre ul { display: grid; gap: .5rem; margin: 1rem 0 1.4rem; }
.carte-offre ul li { display: flex; gap: .6rem; font-size: .92rem; color: var(--mist); }
.carte-offre ul li::before { content: '◆'; color: var(--gold-500); font-size: .6rem; margin-top: .45rem; }
.carte-offre .btn { margin-top: auto; justify-content: center; }

/* ---------- Lecteur à façade (vidéo chargée au clic) ---------- */

.lecteur-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; background: var(--navy-950); cursor: pointer;
  display: block; overflow: hidden;
}
.lecteur-facade img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s;
}
.lecteur-facade:hover img { transform: scale(1.03); }
.facade-voile {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 12, 29, .75), rgba(6, 12, 29, .15) 45%);
  transition: background .3s;
}
.facade-lire {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 5rem; height: 5rem; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-950);
  display: grid; place-items: center; font-size: 1.7rem; padding-left: .35rem;
  box-shadow: 0 18px 44px -10px rgba(227, 172, 45, .75), 0 0 0 0 rgba(227, 172, 45, .45);
  transition: transform .25s, box-shadow .25s;
}
.lecteur-facade:hover .facade-lire {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 18px 44px -10px rgba(227, 172, 45, .85), 0 0 0 1.1rem rgba(227, 172, 45, .12);
}
.facade-duree {
  position: absolute; right: 1rem; bottom: 1rem;
  background: rgba(6, 12, 29, .85); color: var(--ivory);
  font-size: .82rem; font-weight: 600; padding: .25rem .7rem; border-radius: .4rem;
}
.facade-marque {
  position: absolute; left: 1rem; bottom: 1rem;
  color: #f8d97c; font-weight: 800; letter-spacing: .18em; /* toujours clair : posé sur média sombre */
  font-size: .72rem; text-transform: uppercase;
}
@media (max-width: 46rem) {
  .facade-lire { width: 3.6rem; height: 3.6rem; font-size: 1.25rem; }
}

/* ---------- Lecteur maison (clips hébergés, sans marque externe) ---------- */

.lecteur-maison { position: absolute; inset: 0; background: var(--navy-950); }
.lecteur-maison video { position: absolute; inset: 0; width: 100%; height: 100%; }

.lm-couverture {
  position: absolute; inset: 0; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(0deg, rgba(6, 12, 29, .6), rgba(6, 12, 29, .1) 45%);
  display: grid; place-items: center; transition: opacity .3s;
}
.lecteur-maison.lm-demarre .lm-couverture { opacity: 0; pointer-events: none; }

.lm-controles {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem .8rem;
  background: linear-gradient(0deg, rgba(6, 12, 29, .92), transparent);
  opacity: 0; transition: opacity .25s;
}
.lecteur-maison.lm-demarre .lm-controles,
.lecteur-maison:hover.lm-demarre .lm-controles,
.lecteur-maison.lm-pause .lm-controles { opacity: 1; }
.lecteur-maison.lm-demarre.lm-inactif .lm-controles { opacity: 0; }

.lm-controles button {
  background: none; border: 0; color: var(--ivory); cursor: pointer;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: .4rem; font-size: .95rem; transition: color .2s, background .2s;
}
.lm-controles button:hover { color: var(--gold-300); background: rgba(255, 255, 255, .08); }

.lm-barre {
  flex: 1; height: .35rem; border-radius: 999px; background: rgba(255, 255, 255, .22);
  cursor: pointer; position: relative;
}
.lm-barre:hover, .lm-barre:focus-visible { height: .5rem; outline: none; }
.lm-progres {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--gold-grad); position: relative;
}
.lm-progres::after {
  content: ''; position: absolute; right: -.4rem; top: 50%; transform: translateY(-50%);
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--gold-300); box-shadow: 0 0 8px rgba(227, 172, 45, .8);
  opacity: 0; transition: opacity .2s;
}
.lm-barre:hover .lm-progres::after { opacity: 1; }

.lm-temps { font-size: .78rem; color: var(--mist); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lecteur-maison.lm-silence .ondes { display: none; }

/* ---------- Page direct compacte ---------- */

.direct-haut { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: stretch; }
.direct-programme {
  background: var(--navy-800); border: 1px solid var(--line-soft); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.direct-programme .direct-programme-titre {
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--line-soft);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-400); display: flex; justify-content: space-between; align-items: center;
}
.direct-programme .liste { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.direct-programme .creneau { padding: .65rem 1.2rem; grid-template-columns: 4.6rem 1fr auto; gap: .9rem; }
.direct-programme .creneau .heures { font-size: .95rem; }
.direct-programme .creneau .prog strong { font-size: .92rem; }

@media (max-width: 64rem) {
  .direct-haut { grid-template-columns: 1fr; }
  .direct-programme .liste { max-height: 18rem; }
}

/* ---------- Commentaires ---------- */

.commentaire { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.commentaire-tete { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.commentaire-avatar {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; flex-shrink: 0;
  background: var(--gold-grad); color: var(--navy-950);
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-display);
}
.commentaire-tete strong { font-size: .95rem; }
.commentaire-tete span { color: var(--mist-dim); font-size: .8rem; }
.commentaire p { color: var(--mist); font-size: .95rem; }

/* ---------- Bannière publicitaire ---------- */

.bandeau-pub { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.bandeau-pub img { width: 100%; max-height: 11rem; object-fit: cover; display: block; }
.mention-pub {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(6, 12, 29, .8); color: var(--mist-dim);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: .3rem;
}

/* ---------- Podcasts ---------- */

.episode-podcast { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem 1.3rem; }
.ep-lire {
  flex-shrink: 0; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0;
  background: var(--gold-grad); color: var(--navy-950); font-size: 1.05rem;
  display: grid; place-items: center; padding-left: .2rem;
  box-shadow: 0 8px 20px -8px rgba(227, 172, 45, .6); transition: transform .2s;
}
.ep-lire:hover { transform: scale(1.07); }
.ep-infos { min-width: 0; }
.ep-infos .meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--mist-dim); margin-bottom: .3rem; }
.ep-infos h3 { font-size: 1rem; font-family: var(--font-ui); font-weight: 700; }

.barre-audio {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; gap: 1rem;
  background: var(--navy-950); border-top: 1px solid var(--line);
  padding: .7rem 1.2rem; box-shadow: 0 -10px 30px rgba(3, 7, 18, .5);
}
.barre-audio .ba-lire, .barre-audio .ba-fermer {
  border: 0; background: none; color: var(--gold-300); font-size: 1.05rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%;
}
.barre-audio .ba-lire { background: rgba(227, 172, 45, .14); }
.ba-infos { flex: 1; min-width: 0; }
.ba-infos strong { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .3rem; }

/* Lecteur audio natif accordé au thème */
audio { width: 100%; color-scheme: dark; }

/* ---------- Compte à rebours du direct ---------- */

.compte-rebours {
  padding: .9rem 1.2rem; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(227, 172, 45, .1), transparent 70%);
}
.compte-rebours .cr-intitule { display: block; font-size: .78rem; color: var(--mist); margin-bottom: .2rem; }
.compte-rebours .cr-temps {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

.lien-rappel { transition: all .2s; }
.lien-rappel:hover { background: var(--gold-grad); color: #221703; border-color: transparent; }
.creneau-etat { display: flex; gap: .4rem; align-items: center; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Révélations au défilement ---------- */

.reveler { opacity: 0; transform: translateY(1.2rem); transition: opacity .6s ease, transform .6s ease; }
.reveler.visible { opacity: 1; transform: none; }

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

/* ---------- Écrans ---------- */

@media (max-width: 64rem) {
  .heros-grille { grid-template-columns: 1fr; }
  .grille-cartes, .grille-cartes-4 { grid-template-columns: repeat(2, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .bloc-news { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  /* Typographie mobile : tout respire, rien ne déborde */
  html { font-size: 93.75%; } /* 15px de base : réduction douce et uniforme */
  body { font-size: .97rem; }

  .heros { padding: 2.2rem 0 1.8rem; }
  .heros-texte h1 { font-size: clamp(1.65rem, 6.4vw, 2.1rem); }
  .heros-texte p { font-size: .97rem; }
  .heros-texte .surtitre { font-size: .7rem; letter-spacing: .16em; }
  .section { padding: 1.8rem 0; }
  .section-titre h2 { font-size: 1.3rem; }
  .une-voile h3 { font-size: 1.15rem; }
  .une-voile { padding: 1.2rem; }
  .article-entete h1 { font-size: 1.5rem; }
  .article-entete .chapo { font-size: 1rem; }
  .article-corps { font-size: .98rem; }
  .btn { padding: .6rem 1.1rem; font-size: .88rem; }
  .bloc-news { padding: 1.5rem; }
  .bloc-news h2 { font-size: 1.25rem; }

  /* En-tête compact : logo réduit, bouton direct discret, rien ne dépasse */
  .entete-inner { gap: .5rem; padding: .55rem 0; }
  .logo img { height: 1.9rem; }
  .entete .btn { padding: .45rem .8rem; font-size: .78rem; }
  .lien-recherche { width: 2.1rem; height: 2.1rem; }
  .entete-actions { gap: .4rem; margin-left: auto; }
  .ticker { font-size: .78rem; }
  .ticker-label { font-size: .64rem; padding: .4rem .7rem 0.4rem .7rem; }

  .burger { display: flex; position: relative; z-index: 95; }
  .nav-principale {
    position: fixed; inset: 0; z-index: 90; flex-direction: column;
    background: #060c1d; /* fond totalement opaque : le menu reste lisible */
    padding: 5.5rem 1.6rem 2rem; gap: .3rem; margin-left: 0;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto;
  }
  .nav-principale.ouverte { transform: none; }
  .nav-principale a { font-size: 1.1rem; padding: .75rem 1rem; }

  .grille-cartes, .grille-cartes-2, .grille-cartes-4 { grid-template-columns: 1fr; }
  .carte-ligne { grid-template-columns: 1fr; }
  .creneau { grid-template-columns: 4.2rem 1fr; padding: .8rem .7rem; gap: .8rem; }
  .creneau .badge { display: none; }
  .rail { grid-auto-columns: 14rem; }
  .rail-btn { display: none; }
  .form-news { flex-direction: column; }
  .pied-grille { grid-template-columns: 1fr; gap: 1.4rem; }
  .une { min-height: 17rem; }
  .article-corps .cols { grid-template-columns: 1fr; gap: 0; }
  .carte-antenne { padding: 1.1rem 1.2rem; }
  .date-puce { min-width: 4rem; }
  .partage { flex-wrap: wrap; }
}
