/*
Theme Name: Radio Actu
Description: Thème de radioactu.com, l'actualité de la radio et de l'audio. Reprend la charte du forum Libre-Antenne (forum.radioactu.com) : vert électrique sur encre, cartes arrondies, thème clair et sombre.
Version: 1.0.0
Author: DYCAST
Text Domain: radioactu
*/

/* ==========================================================================
   Palette — reprise de src/app/globals.css du forum, à l'identique. Le vert
   est très lumineux : il sert de fond de bouton ou d'accent, jamais de
   couleur de texte sur fond clair. Un bouton vert porte de l'encre.
   ========================================================================== */
:root {
  --fond: #f5f5f0;
  --surface: #ffffff;
  --surface-2: #fafaf5;
  --bord: #e3e3da;
  --texte: #0b0d0c;
  --texte-doux: #53605a;
  --texte-faible: #8a938d;
  --accent: #b2ef00;
  --accent-vif: #c7ff36;
  --sur-accent: #0b0d0c;
  --lien: #6b8f00;
  --ombre: 0 1px 2px rgba(11, 13, 12, 0.06), 0 8px 24px -12px rgba(11, 13, 12, 0.18);
  --police: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --largeur: 72rem;
  --haut: 3.5rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0b0d0c;
    --surface: #131614;
    --surface-2: #191d1a;
    --bord: #262b28;
    --texte: #eef1ec;
    --texte-doux: #a3ada6;
    --texte-faible: #74807a;
    --accent: #c7ff36;
    --accent-vif: #d3ff64;
    --sur-accent: #0b0d0c;
    --lien: #c7ff36;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="sombre"] {
  --fond: #0b0d0c;
  --surface: #131614;
  --surface-2: #191d1a;
  --bord: #262b28;
  --texte: #eef1ec;
  --texte-doux: #a3ada6;
  --texte-faible: #74807a;
  --accent: #c7ff36;
  --accent-vif: #d3ff64;
  --sur-accent: #0b0d0c;
  --lien: #c7ff36;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--haut) + 1rem); }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lien); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-vif); outline-offset: 2px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; z-index: 100; padding: .5rem 1rem; background: var(--accent); color: var(--sur-accent); border-radius: 0 0 .5rem 0; }
.evitement:focus { left: 0; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 1rem; }
.icone { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.tabulaire { font-variant-numeric: tabular-nums; }

/* Boutons */
.bouton-accent, .bouton-secondaire, .bouton-encre {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  line-height: 1.2; white-space: nowrap; transition: filter 140ms ease, background 140ms ease;
}
.bouton-accent { background: var(--accent); color: var(--sur-accent); }
.bouton-accent:hover { filter: brightness(1.08); color: var(--sur-accent); }
.bouton-secondaire { border: 1px solid var(--bord); background: var(--surface); color: var(--texte); }
.bouton-secondaire:hover { background: var(--surface-2); color: var(--texte); }
.bouton-encre { background: var(--texte); color: var(--fond); }
.bouton-encre:hover { filter: brightness(1.15); color: var(--fond); }
.bouton-icone {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  color: var(--texte-doux); transition: background 140ms ease;
}
.bouton-icone:hover { background: var(--surface-2); color: var(--texte); }
.bouton-icone .icone { width: 1.25rem; height: 1.25rem; }
.lien-accent { color: var(--lien); font-weight: 600; }
.lien-accent:hover { text-decoration: underline; }
.lien-discret { color: var(--texte-faible); font-size: .8rem; }
.lien-discret:hover { color: var(--lien); }

/* ==========================================================================
   Le logo — même vocabulaire d'animation que le forum, joué une seule fois.
   La bulle du forum devient ici un carré arrondi : même disque, mêmes barres,
   même onde. Deux marques, une famille.
   ========================================================================== */
@keyframes marque-arrivee { from { opacity: 0; transform: scale(.86) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes onde-trace { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
@keyframes barre-monte { 0% { transform: scaleY(.15); } 55% { transform: scaleY(1.15); } 100% { transform: scaleY(1); } }
@keyframes trait-avance { from { stroke-dashoffset: 302; } to { stroke-dashoffset: 0; } }
@keyframes point-apparait { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes mots-montent { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.marque-animee .marque-bulle, .marque-animee .marque-disque {
  transform-origin: 250px 250px;
  animation: marque-arrivee 620ms cubic-bezier(.22, 1, .36, 1) both;
}
.marque-animee .marque-disque { animation-delay: 90ms; }
.marque-animee .marque-onde { stroke-dasharray: 150; animation: onde-trace 700ms cubic-bezier(.65, 0, .35, 1) 260ms both; }
.marque-animee .barre { transform-box: fill-box; transform-origin: 50% 100%; animation: barre-monte 560ms cubic-bezier(.34, 1.56, .64, 1) both; }
.marque-animee .barre-1 { animation-delay: 240ms; }
.marque-animee .barre-2 { animation-delay: 330ms; }
.marque-animee .barre-3 { animation-delay: 400ms; }
.marque-animee .logo-mots { animation: mots-montent 620ms cubic-bezier(.22, 1, .36, 1) 200ms both; }
.marque-animee .logo-baseline { animation: mots-montent 620ms cubic-bezier(.22, 1, .36, 1) 360ms both; }
.marque-animee .trait-vert { stroke-dasharray: 302; animation: trait-avance 800ms cubic-bezier(.65, 0, .35, 1) 520ms both; }
.marque-animee .trait-point { transform-box: fill-box; transform-origin: 50% 50%; animation: point-apparait 400ms cubic-bezier(.34, 1.56, .64, 1) 900ms both; }
@media (prefers-reduced-motion: reduce) {
  .marque-animee, .marque-animee * { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--bord);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.site-header-int { display: flex; align-items: center; gap: .75rem; height: var(--haut); }
.marque-lien { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; color: var(--texte); }
.marque-lien:hover { color: var(--texte); }
.marque-nom { font-weight: 800; font-size: .95rem; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; line-height: 1.1; }
.marque-nom small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .1em; color: var(--texte-faible); }
.nav-principale { display: none; flex: 1; justify-content: center; min-width: 0; }
.nav-principale ul { display: flex; gap: .15rem; flex-wrap: nowrap; }
.nav-principale a {
  display: inline-block; padding: .4rem .7rem; border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--texte-doux); white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}
.nav-principale a:hover { background: var(--surface-2); color: var(--texte); }
.nav-principale .current-menu-item > a, .nav-principale .current-menu-parent > a,
.nav-principale .current-post-ancestor > a, .nav-principale .current_page_item > a { background: var(--surface-2); color: var(--texte); }
.site-header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.bouton-forum { padding: .4rem .8rem .4rem .5rem; font-size: .82rem; margin-left: .35rem; }
.bouton-forum .marque-forum { width: 1.35rem; height: 1.35rem; }
.bouton-forum span { display: none; }
@media (min-width: 40rem) { .bouton-forum span { display: inline; } }
@media (min-width: 56rem) {
  .nav-principale { display: flex; }
  .site-header-actions { margin-left: 0; }
}
.bouton-theme .icone-lune { display: none; }
:root[data-theme="sombre"] .bouton-theme .icone-lune { display: block; }
:root[data-theme="sombre"] .bouton-theme .icone-soleil { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .bouton-theme .icone-lune { display: block; }
  :root:not([data-theme="clair"]) .bouton-theme .icone-soleil { display: none; }
}

/* Volets : recherche (en haut) et rubriques (en bas, sur téléphone) */
.volet { position: fixed; inset: 0; z-index: 60; background: rgba(11, 13, 12, .45); }
.volet[hidden] { display: none; }
.volet-int {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto;
  background: var(--surface); border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow: var(--ombre);
}
.volet-recherche .volet-int { top: 0; bottom: auto; border-radius: 0 0 1.25rem 1.25rem; padding-top: 1.25rem; }
.volet-int .conteneur { padding: 0; }
.volet-titre { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-faible); }
.volet-rubriques ul { display: grid; gap: .35rem; }
.volet-rubriques a { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-radius: .75rem; background: var(--surface-2); font-weight: 600; }
.volet-rubriques .volet-forum a { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); }
.formulaire-recherche { display: flex; gap: .5rem; max-width: 40rem; margin: 0 auto; }
.formulaire-recherche input {
  flex: 1; min-width: 0; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--bord);
  background: var(--fond); color: var(--texte); font-size: 1rem;
}
.formulaire-recherche input:focus { outline: 2px solid var(--accent-vif); border-color: transparent; }

/* ==========================================================================
   Disposition : colonne principale + colonne latérale.
   Les classes « elementor », « e-con », « e-flex » ne sont pas décoratives :
   la régie YoungID injecte ses emplacements par sélecteurs CSS configurés
   sur son hub, hérités de l'ancien thème Elementor. Voir inc/publicite.php.
   ========================================================================== */
.site-contenu { padding: 1.25rem 0 3rem; }
.disposition-int { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.principal { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.colonne-laterale { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 64rem) {
  .disposition-int { grid-template-columns: minmax(0, 1fr) 320px; }
  .colonne-laterale > .ad-placeholder:last-child { position: sticky; top: calc(var(--haut) + 1rem); }
}
@media (max-width: 40rem) { .home .colonne-laterale { display: none; } }

/* Emplacements publicitaires (YoungID) — habillage seulement */
body .ad-placeholder { margin: 0; border-radius: .75rem; background: var(--surface-2); }
body #billboard_top { max-width: var(--largeur); margin: 1rem auto 0; }
.contenu-article .ad-placeholder { margin: 1.5rem 0; }
@media (max-width: 40rem) { .une + .ad-placeholder { margin-top: 1rem; } }

/* ==========================================================================
   Titres de section — le trait sonore du logo : une ligne, un segment vert
   au départ, un point à l'arrivée.
   ========================================================================== */
.section { display: flex; flex-direction: column; gap: 1rem; }
.section-titre {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--bord);
}
.section-titre::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 4.5rem; height: 2px; background: var(--accent); }
.section-titre::before { content: ""; position: absolute; right: 0; bottom: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.section-titre h2, .section-titre h1 { font-size: 1.3rem; font-weight: 800; }
.section-titre .surtitre { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-faible); margin-bottom: .2rem; }
.section-titre .lien-discret { margin-right: 1.25rem; white-space: nowrap; }

/* ==========================================================================
   Cartes d'articles
   ========================================================================== */
.carte {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.carte:hover { box-shadow: var(--ombre); }
.carte-image { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.carte:hover .carte-image img { transform: scale(1.03); }
.carte-corps { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; flex: 1; }
.carte-titre { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; }
.carte-extrait { color: var(--texte-doux); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .25rem; font-size: .78rem; color: var(--texte-faible); }
.carte-meta .icone { width: .85rem; height: .85rem; }
.rubrique-puce {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; width: fit-content;
  padding: .18rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--texte-doux);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: background 140ms ease;
}
.rubrique-puce:hover { background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); color: var(--texte); }
.carte-image .rubrique-puce { position: absolute; left: .75rem; bottom: .75rem; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--ombre); }

/* À la une : la grande carte et la pile de quatre */
.une-grille { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .une-grille { grid-template-columns: 3fr 2fr; } }
.carte-une .carte-titre { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.carte-une .carte-extrait { font-size: 1rem; -webkit-line-clamp: 4; }
.carte-une .carte-corps { padding: 1.25rem; gap: .6rem; }
.pile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; overflow: hidden; }
.pile .carte-liste:last-child { border-bottom: 0; }
.pile .carte-liste { flex: 1; }

/* Variante liste : vignette à gauche, texte à droite */
.carte-liste {
  position: relative; display: grid; grid-template-columns: 6.25rem 1fr; gap: .85rem; align-items: start;
  padding: .85rem; border-bottom: 1px solid var(--bord); transition: background 140ms ease;
}
.carte-liste:hover { background: var(--surface-2); }
.carte-liste .carte-image { aspect-ratio: 4 / 3; border-radius: .6rem; }
.carte-liste .carte-titre { font-size: .95rem; }
.carte-liste .carte-corps { padding: 0; gap: .3rem; }
.carte-liste .carte-meta { padding-top: 0; }
.liste-cartes { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; overflow: hidden; }
.liste-cartes .carte-liste:last-child { border-bottom: 0; }

/* Variante mini : titre et date seulement, pour les rubriques secondaires */
.carte-mini { position: relative; padding: .6rem 0; border-bottom: 1px solid var(--bord); }
.carte-mini:last-child { border-bottom: 0; }
.carte-mini .carte-titre { font-size: .92rem; font-weight: 600; }
.carte-mini .carte-meta { padding-top: .15rem; }

/* Vignette de secours : sur 18 000 articles, la plupart des anciens n'ont pas
   d'image. Une teinte tirée du titre, stable, et la marque en filigrane. */
.vignette-vide {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, hsl(var(--teinte) 45% 90%), hsl(var(--teinte) 40% 78%));
}
.vignette-vide svg { width: 38%; height: auto; opacity: .28; }
:root[data-theme="sombre"] .vignette-vide { background: linear-gradient(135deg, hsl(var(--teinte) 25% 22%), hsl(var(--teinte) 30% 14%)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .vignette-vide { background: linear-gradient(135deg, hsl(var(--teinte) 25% 22%), hsl(var(--teinte) 30% 14%)); }
}

/* Grilles */
.grille-2, .grille-3, .grille-4 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grille-2, .grille-3, .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grille-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Bloc rubrique de l'accueil : une carte avec image, trois titres à côté */
.rubrique-bloc { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .rubrique-bloc { grid-template-columns: 1fr 1fr; } }
.rubrique-bloc .carte-mini:first-child { padding-top: 0; }

/* ==========================================================================
   Pastille (avatar par initiales, comme sur le forum)
   ========================================================================== */
.pastille {
  display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; font-weight: 600; user-select: none;
  background: hsl(var(--teinte) 60% 88%); color: hsl(var(--teinte) 45% 26%); overflow: hidden;
}
.pastille img { width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="sombre"] .pastille { background: hsl(var(--teinte) 30% 24%); color: hsl(var(--teinte) 70% 82%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) .pastille { background: hsl(var(--teinte) 30% 24%); color: hsl(var(--teinte) 70% 82%); }
}

/* ==========================================================================
   Colonne latérale
   ========================================================================== */
.bloc { background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; padding: 1rem; }
.bloc-titre {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-faible);
}
.bloc-titre span { display: inline-flex; align-items: center; gap: .4rem; }
.bloc-titre .icone { width: .95rem; height: .95rem; color: var(--lien); }
.bloc-titre .marque-forum { width: 1.1rem; height: 1.1rem; }
.bloc-titre a { font-weight: 500; letter-spacing: 0; text-transform: none; }
.bloc ol, .bloc ul { display: flex; flex-direction: column; gap: .65rem; }
.bloc-classement li { display: flex; gap: .65rem; }
.bloc-classement .rang { width: 1rem; flex-shrink: 0; text-align: right; font-weight: 700; color: var(--texte-faible); font-size: .9rem; }
.bloc-classement a { display: block; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.bloc-classement small { display: block; margin-top: .1rem; font-size: .75rem; color: var(--texte-faible); }
.bloc .bouton-accent, .bloc .bouton-secondaire { width: 100%; margin-top: .9rem; }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; text-align: center; margin-top: .9rem; }
.chiffres div { padding: .5rem .25rem; border-radius: .75rem; background: var(--surface-2); }
.chiffres div.accent { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.chiffres b { display: block; font-size: 1.1rem; line-height: 1.2; }
.chiffres small { font-size: .7rem; color: var(--texte-faible); }
.liste-rubriques a { display: flex; align-items: center; justify-content: space-between; padding: .35rem 0; font-size: .9rem; font-weight: 500; }
.liste-rubriques a span:last-child { font-size: .75rem; color: var(--texte-faible); font-variant-numeric: tabular-nums; }
.liste-radios { display: flex; flex-direction: column; gap: .5rem; }
.liste-radios a { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: .75rem; background: var(--surface-2); }
.liste-radios img, .liste-radios .radio-vide { width: 2.5rem; height: 2.5rem; border-radius: .5rem; object-fit: cover; background: #fff; flex-shrink: 0; }
.liste-radios .radio-vide { display: grid; place-items: center; color: var(--lien); background: var(--surface); }
.liste-radios b { display: block; font-size: .9rem; }
.liste-radios small { color: var(--texte-faible); font-size: .75rem; }
.liste-radios .icone-lecture { margin-left: auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--sur-accent); display: grid; place-items: center; }
.liste-radios .icone-lecture .icone { width: .9rem; height: .9rem; }

/* ==========================================================================
   Sujets du forum (cartes inspirées de CarteSujet.tsx)
   ========================================================================== */
.carte-sujet { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; }
.carte-sujet:hover { box-shadow: var(--ombre); }
.sujet-entete { display: flex; align-items: center; gap: .6rem; font-size: .82rem; line-height: 1.2; }
.sujet-entete .pastille { width: 2.1rem; height: 2.1rem; font-size: .8rem; }
.sujet-entete b { font-weight: 600; }
.sujet-entete small { display: block; margin-top: .15rem; color: var(--texte-faible); font-size: .74rem; }
.sujet-salon { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--texte-doux); font-size: .72rem; font-weight: 500; }
.sujet-titre { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.sujet-titre a::after { content: ""; position: absolute; inset: 0; }
.sujet-extrait { color: var(--texte-doux); font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sujet-pied { display: flex; align-items: center; gap: .75rem; margin-top: auto; font-size: .78rem; color: var(--texte-faible); }
.sujet-pied .reponses { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-weight: 600; color: var(--texte); background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.sujet-pied .icone { width: .85rem; height: .85rem; }
.bloc .sujet-mini { display: flex; flex-direction: column; gap: .2rem; padding: .45rem 0; border-bottom: 1px solid var(--bord); }
.bloc .sujet-mini:last-child { border-bottom: 0; }
.bloc .sujet-mini a { font-size: .9rem; font-weight: 500; line-height: 1.35; }
.bloc .sujet-mini small { display: block; color: var(--texte-faible); font-size: .74rem; }
.bloc ul.liste-simple { gap: 0; }

/* Appel au forum, sous chaque article */
.cta-forum {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem; border: 1px solid var(--bord); border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.cta-forum .marque-forum { width: 2.6rem; height: 2.6rem; flex-shrink: 0; }
.cta-forum p { flex: 1; min-width: 14rem; }
.cta-forum b { display: block; font-size: 1.02rem; }
.cta-forum small { color: var(--texte-doux); font-size: .88rem; }
.cta-forum .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Bandeau Libre-Antenne sur l'accueil */
.bandeau-forum { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-radius: 1.25rem; background: var(--texte); color: var(--fond); }
.bandeau-forum .marque-forum { width: 3rem; height: 3rem; }
.bandeau-forum p { flex: 1; min-width: 16rem; }
.bandeau-forum b { display: block; font-size: 1.15rem; letter-spacing: -0.01em; }
.bandeau-forum small { opacity: .75; }
.bandeau-forum a:hover { color: inherit; }

/* ==========================================================================
   Article
   ========================================================================== */
.article { display: flex; flex-direction: column; gap: 1.25rem; }
.article-entete { display: flex; flex-direction: column; gap: .8rem; }
.fil-ariane { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--texte-faible); }
.fil-ariane .icone { width: .8rem; height: .8rem; }
.article-titre { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.article-chapo { font-size: 1.15rem; line-height: 1.55; color: var(--texte-doux); }
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-top: .25rem; font-size: .84rem; color: var(--texte-faible); }
.article-meta .pastille { width: 2.25rem; height: 2.25rem; font-size: .8rem; }
.article-meta b { color: var(--texte); font-weight: 600; }
.article-meta .separateur::before { content: "·"; }
.article-image { border-radius: 1rem; overflow: hidden; background: var(--surface-2); }
.article-image img { display: block; width: 100%; height: auto; }
.article-image figcaption { padding: .5rem .75rem; font-size: .78rem; color: var(--texte-faible); }
.partage { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.partage a, .partage button { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--bord); background: var(--surface); color: var(--texte-doux); transition: background 140ms ease; }
.partage a:hover, .partage button:hover { background: var(--surface-2); color: var(--texte); }
.partage .icone { width: 1rem; height: 1rem; }
.partage .copie { font-size: .75rem; color: var(--lien); }
.etiquettes { display: flex; gap: .4rem; flex-wrap: wrap; }
.etiquettes a { padding: .2rem .65rem; border-radius: 999px; border: 1px solid var(--bord); font-size: .78rem; color: var(--texte-doux); }
.etiquettes a:hover { background: var(--surface-2); color: var(--texte); }
.article-pied { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--bord); }

/* Le corps de l'article : le HTML vient de 18 000 articles écrits depuis
   1998, en classique comme en blocs. On lui redonne une typographie. */
.contenu-article { font-size: 1.06rem; line-height: 1.7; word-wrap: break-word; overflow-wrap: anywhere; }
.contenu-article > * { margin: 0 0 1.15em; }
.contenu-article > *:last-child { margin-bottom: 0; }
.contenu-article h2 { font-size: 1.45rem; font-weight: 800; margin: 1.7em 0 .6em; }
.contenu-article h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5em 0 .5em; }
.contenu-article h4 { font-size: 1.05rem; font-weight: 700; margin: 1.3em 0 .5em; }
.contenu-article a { color: var(--lien); text-decoration: underline; text-underline-offset: 3px; }
.contenu-article strong, .contenu-article b { font-weight: 700; }
.contenu-article ul, .contenu-article ol { padding-left: 1.4rem; }
.contenu-article ul { list-style: disc; }
.contenu-article ol { list-style: decimal; }
.contenu-article li { margin-bottom: .35em; }
.contenu-article img { height: auto; border-radius: .75rem; }
.contenu-article figure { margin: 1.5em 0; }
.contenu-article figcaption { font-size: .82rem; color: var(--texte-faible); margin-top: .5rem; text-align: center; }
.contenu-article blockquote { margin: 1.5em 0; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--accent); color: var(--texte-doux); font-size: 1.05em; }
.contenu-article blockquote p { margin-bottom: .6em; }
.contenu-article iframe { max-width: 100%; }
.contenu-article .wp-block-embed__wrapper { position: relative; }
.contenu-article .wp-has-aspect-ratio .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.contenu-article .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.contenu-article table { width: 100%; border-collapse: collapse; font-size: .92em; }
.contenu-article th, .contenu-article td { padding: .5rem .6rem; border-bottom: 1px solid var(--bord); text-align: left; }
.contenu-article hr { border: 0; border-top: 1px solid var(--bord); margin: 2em 0; }
.contenu-article pre { overflow: auto; padding: 1rem; border-radius: .75rem; background: var(--surface-2); font-size: .85em; }
.contenu-article .wp-block-image, .contenu-article .wp-caption { max-width: 100%; }
.contenu-article .alignleft { float: left; margin: .3em 1.25em 1em 0; max-width: 50%; }
.contenu-article .alignright { float: right; margin: .3em 0 1em 1.25em; max-width: 50%; }
.contenu-article .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.contenu-article .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.contenu-article .wp-block-button__link { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; background: var(--accent); color: var(--sur-accent); text-decoration: none; font-weight: 600; }
.contenu-article audio { width: 100%; }
.contenu-article font, .contenu-article [style*="font-family"] { font-family: inherit !important; }
.contenu-article [style*="font-size"] { font-size: inherit !important; }

/* Pages simples (mentions légales…) et pages larges (annonces, radios) */
.page-etroite { max-width: 46rem; }
.page-entete { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.page-titre { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.page-description { color: var(--texte-doux); font-size: 1.05rem; max-width: 46rem; }
.page-compteur { font-size: .8rem; color: var(--texte-faible); }

/* Annonce (petite annonce) */
.annonce-fiche { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .annonce-fiche { grid-template-columns: 3fr 2fr; align-items: start; } }
.annonce-galerie { display: grid; gap: .5rem; }
.annonce-galerie img { width: 100%; border-radius: .75rem; }
.annonce-details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .92rem; }
.annonce-details dt { color: var(--texte-faible); }
.annonce-details dd { margin: 0; font-weight: 600; }
.annonce-prix { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }

/* Radio (fiche station) */
.radio-fiche { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.radio-fiche img { width: 8rem; height: 8rem; border-radius: 1rem; object-fit: cover; background: #fff; }
.radio-fiche audio { width: 100%; margin-top: 1rem; }

/* Écouter la radio : la grille des stations et le lecteur qui reste en bas */
.grille-radios { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grille-radios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grille-radios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.carte-radio { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--bord); border-radius: 1rem; transition: box-shadow 160ms ease; }
.carte-radio:hover { box-shadow: var(--ombre); }
.carte-radio img, .carte-radio .radio-vide { width: 4.5rem; height: 4.5rem; border-radius: .9rem; object-fit: cover; background: #fff; flex-shrink: 0; }
.carte-radio .radio-vide { display: grid; place-items: center; color: var(--lien); background: var(--surface-2); }
.carte-radio-corps { flex: 1; min-width: 0; }
.carte-radio h2 { font-size: 1.05rem; font-weight: 700; }
.carte-radio p { margin-top: .2rem; font-size: .85rem; color: var(--texte-doux); }
.bouton-lecture { display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--sur-accent); transition: filter 140ms ease, transform 140ms ease; }
.bouton-lecture:hover { filter: brightness(1.08); transform: scale(1.05); }
.bouton-lecture .icone { width: 1.2rem; height: 1.2rem; margin-left: 2px; }
.carte-radio.en-cours { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.lecteur { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-top: 1px solid var(--bord); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .3); }
.lecteur[hidden] { display: none; }
.lecteur-int { display: flex; align-items: center; gap: .85rem; padding: .6rem 1rem; }
.lecteur-image { width: 2.75rem; height: 2.75rem; border-radius: .6rem; object-fit: cover; background: #fff; }
.lecteur-infos { flex: 1; min-width: 0; line-height: 1.2; }
.lecteur-infos b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur-infos small { color: var(--texte-faible); font-size: .78rem; }
.lecteur-bouton { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--sur-accent); }
.lecteur-bouton .icone { width: 1.1rem; height: 1.1rem; margin-left: 2px; }
.lecteur-bouton .icone-pause { display: none; width: .9rem; height: .9rem; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.lecteur.joue .lecteur-bouton .icone-lecture { display: none; }
.lecteur.joue .lecteur-bouton .icone-pause { display: block; }
.lecteur.charge .lecteur-bouton { animation: pulsation 1s ease-in-out infinite; }
@keyframes pulsation { 50% { opacity: .5; } }
@media (max-width: 55.99rem) { .lecteur { bottom: calc(3.6rem + env(safe-area-inset-bottom)); } }
body.lecteur-ouvert { padding-bottom: 4.5rem; }
@media (max-width: 55.99rem) { body.lecteur-ouvert { padding-bottom: 8.5rem; } }

/* Pagination */
.pagination { margin-top: .5rem; }
.pagination .nav-links { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 2.25rem; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--texte-doux); }
.pagination a.page-numbers:hover { background: var(--surface-2); color: var(--texte); }
.pagination .page-numbers.current { background: var(--accent); color: var(--sur-accent); border-color: transparent; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* Message vide, 404 */
.vide { padding: 3rem 1rem; text-align: center; color: var(--texte-doux); }
.vide .logo-complet { max-width: 22rem; margin: 0 auto 1.5rem; }
.vide .actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-pied { margin-top: 2.5rem; border-top: 1px solid var(--bord); background: var(--surface); }
.site-pied-int { padding: 2.25rem 0 1.5rem; }
.pied-grille { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .pied-grille { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.pied-marque .logo-complet { max-width: 17rem; }
.pied-marque p { margin-top: .75rem; font-size: .84rem; color: var(--texte-faible); max-width: 22rem; }
.pied-social { display: flex; gap: .4rem; margin-top: .9rem; }
.pied-social a { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--bord); color: var(--texte-doux); }
.pied-social a:hover { background: var(--surface-2); color: var(--texte); }
.pied-social .icone { width: 1rem; height: 1rem; }
.pied-colonne h2 { margin-bottom: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--texte-faible); }
.pied-colonne ul { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.pied-colonne a { color: var(--texte-doux); }
.pied-colonne a:hover { color: var(--lien); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--bord); font-size: .78rem; color: var(--texte-faible); }
.pied-bas a { text-decoration: underline; text-underline-offset: 2px; }
.dycast-credit-bar { background: var(--surface); }

/* ==========================================================================
   Barre du bas, sur téléphone et tablette
   ========================================================================== */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--bord);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom);
}
.barre-mobile a, .barre-mobile button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .5rem 0 .4rem; font-size: .62rem; font-weight: 500; color: var(--texte-faible);
}
.barre-mobile .icone { width: 1.35rem; height: 1.35rem; }
.barre-mobile .actif { color: var(--texte); }
.barre-mobile .ecouter .rond { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: var(--sur-accent); box-shadow: var(--ombre); margin-top: -.9rem; }
.barre-mobile .ecouter .rond .icone { width: 1.4rem; height: 1.4rem; }
.barre-mobile .marque-forum { width: 1.4rem; height: 1.4rem; }
@media (max-width: 55.99rem) { body { padding-bottom: 4.25rem; } }
@media (min-width: 56rem) { .barre-mobile { display: none; } }

/* ==========================================================================
   Extensions du parc, rhabillées : petites annonces et grille des radios
   ========================================================================== */
.dycast-annonces-container { background: transparent !important; color: inherit !important; font-family: inherit !important; padding: 0 !important; }
.dycast-annonce-item { background: var(--surface) !important; border: 1px solid var(--bord); border-radius: 1rem; color: inherit !important; }
.dycast-search-form { background: var(--surface) !important; border: 1px solid var(--bord); border-radius: 1rem; }
.dycast-search-form input, .dycast-search-form select { background: var(--fond) !important; color: var(--texte) !important; border-color: var(--bord) !important; }
.lrpp-radio-grid, .lrpp-radio-item, .lrpp-radio-content, #lrpp-filter-form { font-family: inherit !important; }
.lrpp-radio-item { background: var(--surface) !important; border: 1px solid var(--bord); box-shadow: none !important; }
.lrpp-radio-content { color: inherit !important; }
#lrpp-filter-form select, #lrpp-filter-form button { padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); }
