/* =========================================================
   Leonida Astuces – ambiance "écran de chargement" Vice City
   (aucun logo, police ou visuel officiel de Rockstar)
   ========================================================= */
/* Police Anton hébergée sur le site si public/fonts/anton.ttf existe (voir scripts/polices.sh) */
@font-face { font-family: "Anton"; src: local("Anton"), local("Anton Regular"), url("fonts/anton.ttf") format("truetype"); font-display: swap; }

/* Police des titres :
   1. Pricedown (la police « style GTA » de Typodermic) si tu déposes le fichier
      dans public/fonts/pricedown.otf ou si elle est installée sur l'appareil ;
   2. sinon Anton (Google Fonts, libre pour un usage commercial). */
@font-face {
  font-family: "Pricedown";
  src: local("Pricedown"), local("Pricedown Bl"), local("Pricedown-Regular"), url("fonts/pricedown.otf") format("opentype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --nuit: #1a0b2e;
  --nuit-2: #241040;
  --carte: #2a1350;
  --bord: #4a2580;
  --texte: #fff6fb;
  --doux: #cbb6e8;
  --rose: #ff2e88;
  --rose-texte: #e0177a; /* fond rose assez foncé pour du texte blanc (contraste AA ≥ 4,5) */
  --orange: #ff8c2e;
  --jaune: #ffd23f;
  --cyan: #29e0ff;
  --vert: #57e389;
  --rayon: 6px;
  --titre: "Pricedown", "Anton", Impact, "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--nuit);
  color: var(--texte);
  line-height: 1.6;
}
a { color: var(--cyan); }
button { font: inherit; }

/* Titres façon jeu : gros, condensés, contour noir + ombre portée */
.titre-gta, .titre-section, .logo, .hud, .toast, .titre-sous-section {
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 900;
  font-synthesis: none;
}

.bandeau-affil {
  background: #12071f;
  color: var(--doux);
  font-size: .8rem;
  text-align: center;
  padding: .45rem 5%;
}

/* ---------- En-tête + HUD ---------- */
.header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 5%;
  position: sticky; top: 0; z-index: 20;
  background: rgba(18, 7, 31, .94);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--rose);
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: .9; white-space: nowrap; transform: rotate(-2deg); }
.logo-1 { font-size: 1.05rem; letter-spacing: 3px; }
.logo-2 { font-size: 1.55rem; }
.logo-2 em { font-style: normal; color: var(--jaune); }
.logo-1 { color: var(--texte); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; }
.logo-2 { color: var(--rose); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a {
  color: var(--texte); text-decoration: none; font-weight: 800;
  text-transform: uppercase; font-size: .9rem; letter-spacing: 1px;
}
.nav a:hover { color: var(--jaune); }

.hud { text-align: right; line-height: 1.05; }
.hud-argent {
  color: var(--vert); font-size: 1.35rem;
  -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000;
}
.hud-etoiles { color: #fff; font-size: 1.05rem; letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.menu-btn { display: none; background: none; border: none; font-size: 1.7rem; color: var(--texte); cursor: pointer; }

/* ---------- Bandeau d'actus défilant ---------- */
.ticker {
  display: flex; align-items: stretch;
  background: #000; border-bottom: 1px solid #333;
  font-size: .9rem; overflow: hidden;
}
.ticker-label {
  background: var(--rose-texte); color: #fff; font-weight: 900;
  padding: .35rem .9rem; white-space: nowrap; font-family: var(--titre); letter-spacing: 1px;
}
.ticker-piste { overflow: hidden; flex: 1; position: relative; }
.ticker-texte {
  display: inline-block; white-space: nowrap; padding: .35rem 0;
  animation: defile 60s linear infinite; padding-left: 1rem;
}
.ticker-texte span { margin-right: 3rem; }
.ticker-texte span::before { content: "★ "; color: var(--jaune); }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-texte { animation: none; padding-left: 1rem; } }

/* ---------- Hero coucher de soleil ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #2b0a52 0%, #7a1a7a 38%, #e8366f 62%, #ff8c2e 80%, #ffcf5a 100%);
}
.hero-ciel { position: absolute; inset: 0; }
.soleil {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  width: min(420px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #fff3a0 0%, #ffcf5a 35%, #ff6a3d 70%, #ff2e88 100%);
  /* bandes horizontales façon synthwave */
  /* moitié haute pleine + bandes sur toute la hauteur = bandes seulement en bas */
  -webkit-mask: linear-gradient(#000 0 50%, transparent 0), repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  mask: linear-gradient(#000 0 50%, transparent 0), repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  box-shadow: 0 0 120px rgba(255, 140, 46, .7);
  opacity: .95;
}
.palmiers { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; min-height: 120px; }

.hero-contenu { position: relative; z-index: 2; padding: 3rem 1rem 6rem; max-width: 900px; }
.sur-titre {
  display: inline-block; font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 2px;
  background: #000; color: var(--jaune);
  padding: .3rem .9rem; margin-bottom: 1rem;
  transform: skew(-8deg);
}
.titre-gta { line-height: .95; }
.titre-gta .t1 {
  display: block; font-size: clamp(2rem, 6vw, 3.6rem); color: #fff;
  -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000;
}
.titre-gta .t3 {
  display: block; font-size: clamp(2.6rem, 8vw, 4.6rem); color: var(--cyan);
  -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000; transform: rotate(-3deg); margin-top: -.2rem;
}
.titre-gta .t2 {
  display: block; font-size: clamp(3.6rem, 13vw, 8rem); white-space: nowrap;
  color: var(--jaune);
  -webkit-text-stroke: 3px #000;
  text-shadow: 6px 6px 0 #000, 0 0 40px rgba(255, 46, 136, .6);
  transform: rotate(-3deg);
}
.intro {
  color: #fff; max-width: 620px; margin: 1.4rem auto 1.8rem; font-size: 1.1rem; font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}
.recherche input {
  width: 100%; max-width: 560px;
  padding: 1rem 1.2rem;
  border: 3px solid #000; border-radius: var(--rayon);
  background: rgba(255, 255, 255, .95); color: #111;
  font: inherit; font-size: 1rem; font-weight: 600;
  box-shadow: 5px 5px 0 #000;
}
.recherche input:focus { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Sections ---------- */
main { padding: 0 5%; max-width: 1240px; margin: 0 auto; }
section { padding: 3.5rem 0 1rem; scroll-margin-top: 80px; }
.titre-section {
  font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1;
  color: #fff; -webkit-text-stroke: 1.5px #000; text-shadow: 4px 4px 0 #000;
  margin-bottom: .8rem;
}
.titre-section span { color: var(--rose); }
.titre-sous-section {
  font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--jaune);
  -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000;
}
.sous-titre { color: var(--doux); margin-bottom: 1.2rem; max-width: 760px; }

/* ---------- Filtres ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.filtre {
  background: var(--nuit-2); color: var(--texte);
  border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  padding: .45rem 1rem; border-radius: var(--rayon);
  font-weight: 800; font-size: .85rem; text-transform: uppercase; cursor: pointer;
  transition: transform .1s;
}
.filtre:hover { transform: translate(-1px, -1px); }
.filtre[aria-selected="true"] { background: var(--rose-texte); color: #fff; }
.compteur { color: var(--doux); font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Cartes ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.3rem; }
.carte {
  position: relative;
  background: linear-gradient(160deg, var(--carte), #1f0d3c);
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  border-radius: var(--rayon);
  padding: 1.3rem;
  display: flex; flex-direction: column; gap: .65rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .12s;
}
.carte::after { /* coin coupé coloré */
  content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px;
  background: var(--rose);
}
.carte:hover { transform: translate(-2px, -2px); }
.carte h3 { font-size: 1.15rem; line-height: 1.3; }
.carte p { color: var(--doux); }

.badges { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.badge {
  font-size: .7rem; padding: .15rem .55rem; font-weight: 800; text-transform: uppercase;
  border: 1.5px solid #000; border-radius: 3px;
}
.badge.cat { background: var(--cyan); color: #000; }
.badge.ok { background: var(--vert); color: #000; }
.badge.test { background: var(--jaune); color: #000; }
.badge.news { background: var(--cyan); color: #000; }
.badge.funfact { background: var(--jaune); color: #000; }
.badge.trend { background: var(--rose-texte); color: #fff; }

.etoiles { margin-left: auto; letter-spacing: 1px; font-size: .95rem; text-shadow: 1px 1px 0 #000; }
.etoiles .on { color: #fff; }
.etoiles .off { color: #9a80c8; }

details summary { cursor: pointer; color: var(--jaune); font-weight: 800; text-transform: uppercase; font-size: .85rem; }
details[open] summary { margin-bottom: .5rem; }

.liens-offres { display: flex; flex-direction: column; gap: .45rem; margin-top: auto; padding-top: .6rem; border-top: 2px dashed var(--bord); }
.liens-offres span { font-size: .72rem; color: var(--doux); text-transform: uppercase; letter-spacing: .5px; }

.btn {
  display: inline-block; text-align: center;
  background: var(--jaune); color: #000; text-decoration: none;
  font-weight: 900; text-transform: uppercase; letter-spacing: .5px;
  padding: .7rem 1.1rem; border: 2px solid #000; border-radius: var(--rayon);
  box-shadow: 4px 4px 0 #000; margin-top: auto;
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn.petit { padding: .45rem .8rem; font-size: .8rem; margin-top: 0; background: var(--rose-texte); color: #fff; }
.marchand { font-size: .78rem; color: var(--doux); }
.vide { color: var(--doux); grid-column: 1 / -1; text-align: center; padding: 2rem; }

/* ---------- Vidéos ---------- */
.grille-videos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video { padding: 0; overflow: hidden; gap: 0; }
.video-cadre {
  position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: none; width: 100%; color: #fff;
}
.video-cadre.vertical { aspect-ratio: 4 / 5; max-height: 420px; }
.carte.video[hidden] { display: none; }
.centre { text-align: center; margin-top: 1.2rem; }
.video-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-cadre .play {
  position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%;
  background: var(--rose); border: 3px solid #000; box-shadow: 4px 4px 0 #000;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.video-cadre .plateforme-nom {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  background: #000; color: #fff; font-weight: 800; font-size: .72rem;
  padding: .15rem .5rem; text-transform: uppercase;
}
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cadre.embed-social { aspect-ratio: auto; display: block; background: #fff; cursor: default; padding: .5rem; }
.video-infos { padding: .9rem 1.1rem 1.1rem; }
.video-infos h3 { font-size: 1rem; }
.video-infos p { font-size: .85rem; }
.hashtags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hashtags a { font-weight: 800; }

/* ---------- Actu ---------- */
.liste-actu { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.1rem; }
.actu .date { font-size: .78rem; color: var(--doux); }
.actu .source { font-size: .8rem; margin-top: auto; }
.grille-influ { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.influ .plateforme { font-size: .78rem; color: var(--cyan); font-weight: 800; text-transform: uppercase; }
.influ .langue { font-size: .7rem; background: #000; color: #fff; padding: .1rem .45rem; font-weight: 800; }

/* ---------- Toast "astuce débloquée" ---------- */
.toast {
  position: fixed; left: 50%; bottom: 12%; transform: translate(-50%, 30px);
  text-align: center; pointer-events: none; opacity: 0; z-index: 50;
  transition: opacity .25s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast-1 {
  display: block; font-size: clamp(2rem, 7vw, 3.6rem); color: var(--jaune);
  -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 #000;
}
.toast-2 {
  display: block; font-family: system-ui, sans-serif; text-transform: none;
  font-weight: 800; color: #fff; text-shadow: 2px 2px 0 #000; font-size: 1.05rem;
}

.apropos p { color: var(--doux); max-width: 780px; margin-bottom: .8rem; }
.footer {
  text-align: center; padding: 2rem; margin-top: 3rem; color: var(--doux); font-size: .9rem;
  border-top: 2px solid var(--rose); background: #12071f;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header { gap: .8rem; }
  .hud { margin-left: auto; }
  .hud-argent { font-size: 1.05rem; }
  .hud-etoiles { font-size: .8rem; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1rem; background: #12071f; padding: 1.2rem 5%;
    border-bottom: 2px solid var(--rose); margin: 0;
  }
  .nav.open { display: flex; }
  .logo { font-size: 1.35rem; }
  .hero { min-height: 480px; }
  .liste-actu { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hud-etoiles { display: none; }
}


/* =========================================================
   V3 : à la une, galerie, pubs, arcade, radio, boutique
   ========================================================= */
.kicker { font-family: var(--titre); text-transform: uppercase; color: var(--cyan); letter-spacing: 2px; font-size: 1.1rem; }

.une { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; }
.une-texte p { color: var(--doux); margin-bottom: 1.2rem; }
.une-video .video-cadre { aspect-ratio: 16 / 9; }

.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.5rem; }
.galerie figure {
  position: relative; border: 2px solid #000; box-shadow: 5px 5px 0 #000; border-radius: var(--rayon);
  overflow: hidden; background: #000;
}
.galerie img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.galerie figure:hover img { transform: scale(1.06); }
.galerie figcaption {
  position: absolute; left: .6rem; bottom: .5rem; font-family: var(--titre); text-transform: uppercase;
  font-size: 1.3rem; color: #fff; -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000;
}

/* --- Publicité --- */
.pub-zone:empty { display: none; }
.pub-haut { max-width: 1240px; margin: 1.2rem auto 0; padding: 0 5%; }
.pub {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center;
  border: 2px dashed var(--jaune); border-radius: var(--rayon); padding: 1rem 1.2rem;
  background: repeating-linear-gradient(-45deg, #1f0d3c 0 14px, #241040 14px 28px);
  color: var(--doux); text-decoration: none;
}
.pub-haut .pub { min-height: 90px; }
.pub-carre .pub { min-height: 250px; flex-direction: column; }
.pub strong { font-family: var(--titre); text-transform: uppercase; color: var(--jaune); font-size: 1.4rem; font-weight: 400; }
.pub .pub-label { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: var(--doux); }
.pub img { max-width: 100%; height: auto; display: block; }
.pub-annonceur { border-style: solid; border-color: #000; background: #000; padding: .3rem; }
.pub-sponsor { margin-top: 1.2rem; }
.actu-mise-en-page { display: grid; grid-template-columns: 1fr 300px; gap: 1.2rem; align-items: start; }
.actu-mise-en-page .liste-actu { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pub-carre { position: sticky; top: 90px; }

/* --- Arcade --- */
.arcade { display: grid; grid-template-columns: minmax(300px, 400px) 1fr minmax(220px, 280px); gap: 1.3rem; align-items: start; }
.jeu-entete { display: flex; justify-content: space-between; align-items: center; }
.jeu-entete h3, .classement h3 { font-family: var(--titre); text-transform: uppercase; font-size: 1.6rem; font-weight: 400; color: var(--jaune); -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000; }
.jeu-etoiles { color: #fff; letter-spacing: 2px; text-shadow: 1px 1px 0 #000; }
.jeu-ecran { position: relative; border: 2px solid #000; border-radius: var(--rayon); overflow: hidden; background: #0b0216; }
.jeu-ecran canvas { display: block; width: 100%; height: auto; touch-action: none; }
.jeu-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  text-align: center; padding: 1rem; background: rgba(11, 2, 22, .78); color: #fff;
}
.jeu-overlay[hidden] { display: none; }
.carte .jeu-titre, .jeu-titre { font-family: var(--titre); text-transform: uppercase; font-size: 2.2rem; color: var(--jaune); -webkit-text-stroke: 1.5px #000; text-shadow: 3px 3px 0 #000; line-height: 1; }
.jeu-overlay .btn, .quiz .btn { margin-top: .4rem; }
.jeu-score { font-size: .9rem; color: var(--doux); }
.jeu-score strong { color: var(--vert); }
.jeu-controles { display: flex; gap: .8rem; justify-content: center; }
.jeu-controles .btn { flex: 1; font-size: 1.3rem; padding: .7rem; }
.quiz { display: flex; flex-direction: column; gap: .8rem; min-height: 320px; justify-content: center; }
.quiz .question { font-weight: 800; font-size: 1.1rem; }
.quiz .reponses { display: grid; gap: .6rem; }
.quiz .reponse {
  text-align: left; background: var(--nuit-2); color: var(--texte); border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  border-radius: var(--rayon); padding: .7rem .9rem; font-weight: 700; cursor: pointer;
}
.quiz .reponse:hover:not(:disabled) { background: #33195e; }
.quiz .reponse.juste { background: var(--vert); color: #000; }
.quiz .reponse.faux { background: #ff4d4d; color: #000; }
.classement ol { padding-left: 1.4rem; display: grid; gap: .3rem; min-height: 120px; }
.classement li { color: var(--doux); }
.classement li strong { color: var(--texte); }
.classement li span { color: var(--vert); float: right; font-weight: 800; }
.pseudo { display: grid; gap: .3rem; font-size: .85rem; color: var(--doux); }
.pseudo input { padding: .6rem; border: 2px solid #000; border-radius: var(--rayon); font: inherit; }

/* --- Radio --- */
.radio { display: grid; grid-template-columns: 280px 1fr; gap: 1.3rem; align-items: start; }
.radio-roue { display: grid; gap: .7rem; }
.station {
  display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer;
  background: var(--nuit-2); color: var(--texte); border: 2px solid #000; box-shadow: 4px 4px 0 #000;
  border-radius: 40px; padding: .5rem 1rem .5rem .5rem;
}
.station .pastille {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid #000; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .7rem; color: #000;
}
.station strong { display: block; font-family: var(--titre); text-transform: uppercase; font-weight: 400; font-size: 1.15rem; letter-spacing: .5px; }
.station small { color: var(--doux); }
.station[aria-selected="true"] { background: #3a1a66; outline: 2px solid var(--jaune); }
.radio-ecran {
  display: flex; align-items: baseline; gap: 1rem; background: #000; border: 2px solid #333; border-radius: var(--rayon);
  padding: .8rem 1rem; font-family: "Courier New", monospace;
}
.radio-freq { color: var(--vert); font-size: 2rem; font-weight: 700; text-shadow: 0 0 10px rgba(87, 227, 137, .6); }
.radio-nom { color: var(--jaune); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.radio-desc { color: var(--doux); }
.radio-titres { display: grid; gap: .45rem; padding-left: 1.6rem; }
.radio-titres li { padding: .35rem 0; border-bottom: 1px dashed var(--bord); }
.radio-titres .artiste { color: var(--doux); }
.radio-titres .liens { float: right; display: inline-flex; gap: .35rem; }
.radio-titres .liens a {
  font-size: .7rem; font-weight: 800; text-decoration: none; text-transform: uppercase;
  padding: .1rem .45rem; border: 1.5px solid #000; border-radius: 3px; color: #000;
}
.lien-spotify { background: #1ed760; }
.lien-deezer { background: #a238ff; color: #fff !important; }
.lien-youtube { background: #c4161c; color: #fff !important; }
.radio iframe { width: 100%; border: 0; border-radius: 12px; margin-top: 1rem; }

/* --- Boutique : visuels produits --- */
.produit-visuel { margin: -1.3rem -1.3rem .4rem; border-bottom: 2px solid #000; background: #2a1350; }
.produit-visuel img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge.goodies { background: var(--rose-texte); color: #fff; }
.badge.jeu { background: var(--cyan); color: #000; }

/* --- Annonceurs --- */
.emplacement .tarif { font-family: var(--titre); text-transform: uppercase; color: var(--vert); font-size: 1.4rem; -webkit-text-stroke: 1px #000; }
.emplacement .format { font-size: .85rem; color: var(--doux); }
.contact-pub { font-weight: 800; color: var(--jaune); word-break: break-all; }

@media (max-width: 1080px) {
  .arcade { grid-template-columns: 1fr 1fr; }
  .classement { grid-column: 1 / -1; }
  .actu-mise-en-page { grid-template-columns: 1fr; }
  .pub-carre { position: static; }
}
@media (max-width: 860px) {
  .une { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .arcade, .radio { grid-template-columns: 1fr; }
  .logo-1 { font-size: .85rem; }
  .logo-2 { font-size: 1.2rem; }
  .radio-titres .liens { float: none; display: flex; margin-top: .25rem; }
}

.demo-lien { position: relative; z-index: 2; }
.badge.deco { background: var(--jaune); color: #000; }
.btn-off { background: #3a2560; color: var(--doux); box-shadow: none; cursor: default; }
.btn-off:hover { transform: none; box-shadow: none; }

/* --- Mascottes --- */
.entete-section { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.mascotte { display: flex; align-items: flex-end; gap: .4rem; margin: 0; position: relative; }
.mascotte img { height: 220px; width: auto; filter: drop-shadow(4px 4px 0 #000); transition: transform .2s; }
.mascotte:hover img { transform: rotate(-4deg) scale(1.05); }
.mascotte figcaption {
  position: absolute; right: 0; bottom: -.4rem; font-family: var(--titre); text-transform: uppercase;
  font-size: .95rem; color: var(--jaune); -webkit-text-stroke: .5px #000; text-shadow: 2px 2px 0 #000;
}
.bulle {
  position: relative; margin: 0 0 4.5rem; max-width: 190px; background: #fff; color: #111;
  font-weight: 800; font-size: .9rem; padding: .55rem .8rem; border: 2px solid #000; border-radius: 14px;
  box-shadow: 3px 3px 0 #000;
}
.bulle::after {
  content: ""; position: absolute; right: -12px; bottom: 12px; border: 7px solid transparent;
  border-left: 12px solid #000;
}
@media (max-width: 860px) {
  .mascotte img { height: 150px; }
  .bulle { margin-bottom: 3rem; font-size: .8rem; max-width: 150px; }
}

/* =========================================================
   V5 : accessibilité, navigation, liens internes, la bande
   ========================================================= */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.lien-evitement {
  position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--jaune); color: #000;
  font-weight: 900; padding: .6rem 1rem; border: 2px solid #000;
}
.lien-evitement:focus { left: .5rem; }
.nav a[aria-current] { color: var(--jaune); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.ticker:hover .ticker-texte, .ticker:focus-within .ticker-texte { animation-play-state: paused; }
.retour-haut {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--jaune); color: #000; font-weight: 900; text-decoration: none; border: 2px solid #000; border-radius: 50%;
  box-shadow: 3px 3px 0 #000; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.retour-haut.visible { opacity: 1; pointer-events: auto; }
.menu-btn { min-width: 44px; min-height: 44px; }

/* Liens internes dans les cartes */
.lien-carte { color: inherit; text-decoration: none; }
.lien-carte:hover { color: var(--jaune); text-decoration: underline; }
.lien-suite { font-weight: 800; color: var(--cyan); text-decoration: none; }
.lien-suite:hover { text-decoration: underline; }
.lien-tout { margin-top: 1.4rem; text-align: center; }
.lien-tout .btn { display: inline-block; }

/* La bande : mascottes en grand */
.bande-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.perso {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem;
  text-decoration: none; color: var(--texte); padding: 1rem 1rem 1.2rem; border: 3px solid #000; border-radius: 16px;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 45%, transparent), transparent 62%), var(--nuit-2);
  box-shadow: 6px 6px 0 #000; transition: transform .15s, box-shadow .15s;
}
.perso:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 9px 9px 0 #000; }
.perso img { width: 100%; max-width: 230px; height: auto; filter: drop-shadow(5px 5px 0 #000); transition: transform .2s; }
.perso:hover img { transform: scale(1.06) rotate(-3deg); }
.perso strong { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: 1.9rem; line-height: 1;
  color: var(--c); -webkit-text-stroke: 1.5px #000; text-shadow: 3px 3px 0 #000; margin-top: .3rem; }
.perso span { color: var(--doux); font-size: .9rem; }
.perso em { font-style: normal; font-weight: 800; color: var(--jaune); margin-top: .4rem; }

/* Pages internes (astuces) */
.page-interne { max-width: 1100px; }
.fil-ariane ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 1.2rem 0 0; font-size: .85rem; color: var(--doux); }
.fil-ariane li + li::before { content: "›"; margin-right: .3rem; color: var(--rose); }
.astuce-page { position: relative; padding: 1.5rem 0 1rem; max-width: 760px; }
.astuce-page .titre-section { margin: .8rem 0; }
.astuce-page p { color: var(--doux); font-size: 1.05rem; margin-bottom: 1rem; }
.astuce-page .chapo { color: var(--texte); font-size: 1.2rem; font-weight: 700; }
.encart-offres { max-width: 420px; margin: 1.2rem 0; }
.mascotte-page { margin-top: 1.5rem; }
.section-cat { padding-top: 1rem; scroll-margin-top: 90px; }
.continuer a { font-weight: 700; }
.nav-interne { display: flex; }

/* Pied de page : plan du site */
.plan-site { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto 1.4rem; text-align: left; }
.plan-site div { display: flex; flex-direction: column; gap: .35rem; }
.plan-site strong { font-family: var(--titre); font-weight: 400; text-transform: uppercase; color: var(--jaune); font-size: 1.1rem; letter-spacing: .5px; }
.plan-site a { color: var(--doux); text-decoration: none; padding: .15rem 0; }
.plan-site a:hover { color: var(--cyan); text-decoration: underline; }

@media (max-width: 860px) {
  .bande-grille { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .perso strong { font-size: 1.4rem; }
  .plan-site { grid-template-columns: 1fr 1fr; }
  .radio-titres .liens a { padding: .45rem .7rem; font-size: .75rem; }
  .filtre { min-height: 40px; }
  .nav-interne {
    display: flex; position: static; flex-direction: row; overflow-x: auto; gap: 1rem; padding: 0; background: none;
    border: 0; white-space: nowrap; font-size: .8rem;
  }
  .header:has(.nav-interne) { flex-wrap: wrap; }
}

.une-video { order: -1; }
@media (max-width: 860px) {
  .lien-suite { display: inline-block; padding: .55rem 0; }
  .lien-carte { display: block; padding: .3rem 0; }
  .plan-site a { padding: .45rem 0; }
  .nav-interne a { padding: .7rem .2rem; }
  .fil-ariane a { display: inline-block; padding: .45rem 0; }
  .continuer a { display: inline-block; padding: .45rem 0; }
  .source a, .hashtags a { display: inline-block; padding: .4rem 0; }
}
.mascotte-page { width: fit-content; }

/* Pages d'astuces : encadré « À retenir » et sources */
.a-retenir { background: var(--nuit-2); border: 2px solid #000; border-left: 6px solid var(--jaune); box-shadow: 4px 4px 0 #000;
  border-radius: var(--rayon); padding: .9rem 1.2rem; margin: 1rem 0 1.4rem; }
.a-retenir h2, .sources h2 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; color: var(--jaune); font-size: 1.3rem; margin-bottom: .4rem; }
.a-retenir ul, .sources ul { padding-left: 1.2rem; display: grid; gap: .3rem; }
.a-retenir li { color: var(--texte); font-weight: 600; }
.sources { margin-top: 1.6rem; padding-top: 1rem; border-top: 2px dashed var(--bord); }
.sources li a { display: inline-block; padding: .2rem 0; }
.note-sources, .voir-aussi { font-size: .9rem; color: var(--doux); }
@media (max-width: 860px) { .sources li a { padding: .55rem 0; } }

/* Liens sous les vidéos (source + astuce liée) */
.video-liens { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .35rem; font-size: .85rem; }
.video-liens a { color: var(--cyan, #2de2e6); min-height: 24px; display: inline-flex; align-items: center; }
.sources .liste-reseaux { list-style: none; padding: 0; display: grid; gap: .6rem; }
.liste-reseaux li { background: var(--carte); color: var(--texte); border-left: 3px solid var(--rose-texte, #e0177a); padding: .6rem .9rem; border-radius: 6px; }
.liste-reseaux small { display: block; color: var(--doux); }

/* ---------- Astuces des réseaux (haut de page) ---------- */
.reseaux { padding-top: 2rem; }
.reseaux .kicker { color: var(--cyan); }
.grille-reseaux .video-cadre.vertical { max-height: 380px; }
.video-cadre:not(.en-apercu) img { transition: transform 6s ease-out; }
.video-cadre:hover img, .video-cadre:focus-visible img { transform: scale(1.08); } /* petit effet « vivant » sans rien charger */
.video-cadre .apercu { z-index: 0; pointer-events: none; background: #000; }
.video-cadre.en-apercu .play { opacity: .9; transform: scale(.7); transition: transform .2s; }
.video-cadre.en-apercu::after {
  content: "Aperçu · clique pour le son"; position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  z-index: 1; background: rgba(0,0,0,.8); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; white-space: nowrap;
}
.badge-veille {
  position: absolute; top: .6rem; right: .6rem; z-index: 1; background: var(--cyan); color: #000;
  font-weight: 800; font-size: .7rem; padding: .15rem .5rem; text-transform: uppercase;
}
.consentement-apercus {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 0 0 1.2rem;
  background: var(--carte); border: 2px solid var(--cyan); border-radius: var(--rayon); padding: .9rem 1.1rem;
}
.consentement-apercus[hidden] { display: none; }
.consentement-apercus p { flex: 1 1 320px; font-size: .9rem; margin: 0; }
.consentement-apercus .boutons { display: flex; gap: .6rem; }
.btn.petit.secondaire { background: transparent; color: var(--texte); border-color: var(--doux); box-shadow: none; }
.proposer { margin-top: 1.4rem; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: .8rem 1.1rem; }
.proposer summary { cursor: pointer; font-weight: 800; color: var(--jaune); min-height: 44px; display: flex; align-items: center; }
.proposer form { display: grid; gap: .5rem; margin-top: .6rem; }
.proposer label { font-size: .9rem; }
.proposer .ligne { display: flex; gap: .6rem; flex-wrap: wrap; }
.proposer input { flex: 1 1 260px; min-height: 44px; padding: .5rem .8rem; border-radius: var(--rayon); border: 2px solid var(--bord); background: var(--nuit); color: var(--texte); font: inherit; }
.proposer .aide, .message-form { font-size: .82rem; color: var(--doux); margin: 0; }
@media (prefers-reduced-motion: reduce) { .video-cadre img { transition: none; } .video-cadre:hover img { transform: none; } }
/* Zones tactiles confortables sur mobile (≥ 44 px) */
@media (max-width: 860px) {
  .video-liens a, .sommaire a, .retour-site { min-height: 44px; display: inline-flex; align-items: center; }
  .video-liens { gap: 0 1.2rem; }
}

/* ---------- Bandeau de consentement (miniatures + aperçus) ---------- */
.bandeau-consentement {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 980px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem;
  background: var(--nuit-2); border: 2px solid var(--cyan); border-radius: var(--rayon);
  box-shadow: 6px 6px 0 #000; padding: 1rem 1.2rem;
}
.bandeau-consentement[hidden] { display: none; }
.bandeau-consentement p { flex: 1 1 420px; margin: 0; font-size: .9rem; }
.bandeau-consentement a { color: var(--cyan); }
.bandeau-consentement .boutons { display: flex; gap: .6rem; }
.bandeau-consentement .btn.petit { min-width: 110px; min-height: 44px; } /* Accepter et Refuser : même poids (CNIL) */

/* ---------- Article à la une : liste des codes ---------- */
.article-une { padding-top: 2rem; padding-bottom: 0; }
.encart-codes {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: center; text-decoration: none; color: var(--texte);
  background: linear-gradient(135deg, var(--carte), #3a0f4a); border: 3px solid var(--jaune); border-radius: var(--rayon);
  box-shadow: 8px 8px 0 #000; padding: 1.2rem; transition: transform .15s;
}
.encart-codes:hover { transform: translate(-2px, -2px); }
.encart-codes img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid #000; border-radius: var(--rayon); }
.encart-codes h2 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; color: var(--jaune); text-shadow: 3px 3px 0 #000; margin: .2rem 0 .6rem; }
.encart-codes .kicker { color: var(--cyan); }
.encart-codes .btn { margin-top: .8rem; }
@media (max-width: 640px) { .encart-codes { grid-template-columns: 1fr; } .encart-codes img { max-height: 220px; aspect-ratio: auto; } }

/* Tableaux de codes */
.tableau-codes h2, .faq h2 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; color: var(--jaune); font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau-codes table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
.tableau-codes th, .tableau-codes td { border-bottom: 1px solid var(--bord); padding: .6rem .5rem; text-align: left; vertical-align: top; }
.tableau-codes thead th { color: var(--cyan); font-size: .8rem; text-transform: uppercase; }
.tableau-codes tbody th { font-weight: 700; }
.combo { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 1px; color: var(--jaune); background: #000; padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; display: inline-block; }
.tableau-codes .ou { display: block; color: var(--doux); font-size: .75rem; margin: .2rem 0; }
.tableau-codes td:last-child { min-width: 110px; }
.faq details { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); margin: .5rem 0; padding: .3rem 1rem; }
.faq summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.faq p { margin: .3rem 0 .8rem; }

/* ---------- Aperçu de la liste des codes (accueil) ---------- */
.apercu-codes { margin-top: 1.4rem; background: var(--carte); border: 2px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; }
.apercu-codes-tete { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; }
.apercu-codes-tete label { grid-column: 1 / -1; font-weight: 800; color: var(--jaune); text-transform: uppercase; font-size: .85rem; }
.apercu-codes-tete input { min-height: 48px; padding: .6rem .9rem; border-radius: var(--rayon); border: 2px solid #000; background: #fff; color: #000; font: inherit; font-weight: 600; box-shadow: 4px 4px 0 #000; }
.compteur-codes { margin: 0; color: var(--doux); font-size: .85rem; white-space: nowrap; }
.liste-codes { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.liste-codes li { display: grid; grid-template-columns: minmax(160px, 1fr) auto; grid-template-areas: "effet codes" "debl codes"; gap: .2rem 1rem; align-items: center; background: var(--nuit-2); border-left: 4px solid var(--jaune); border-radius: 4px; padding: .6rem .8rem; }
.liste-codes li[hidden] { display: none; }
.liste-codes strong { grid-area: effet; }
.liste-codes .codes { grid-area: codes; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.liste-codes .codes small { color: var(--doux); font-size: .72rem; }
.liste-codes .deblocage { grid-area: debl; color: var(--doux); font-size: .8rem; }
.liste-codes .a-trouver { color: var(--doux); font-size: .85rem; }
/* Effet « à suivre » sous la 5e ligne quand la liste est repliée */
.liste-codes.repliee { position: relative; }
.liste-codes.repliee::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--carte)); pointer-events: none; }
.apercu-codes-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 1rem 0 0; }
.apercu-codes-pied .btn { margin-top: 0; }
.apercu-codes-pied a { color: var(--cyan); min-height: 44px; display: inline-flex; align-items: center; }
.aucun-code { color: var(--doux); margin: .8rem 0 0; }
@media (max-width: 640px) {
  .apercu-codes-tete { grid-template-columns: 1fr; }
  .liste-codes li { grid-template-columns: 1fr; grid-template-areas: "effet" "codes" "debl"; }
  .liste-codes .codes { align-items: flex-start; }
  .liste-codes .combo { white-space: normal; }
}

/* Encart « Liste des codes » et recherche collés : un seul bloc */
.bloc-codes { border: 3px solid var(--jaune); border-radius: var(--rayon); box-shadow: 8px 8px 0 #000; overflow: hidden; background: var(--carte); }
.bloc-codes .encart-codes { border: 0; border-radius: 0; box-shadow: none; }
.bloc-codes .encart-codes:hover { transform: none; }
.bloc-codes .encart-codes:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; }
.bloc-codes .apercu-codes { margin-top: 0; border: 0; border-top: 2px dashed var(--bord); border-radius: 0; }

/* Zone de défilement de l'aperçu des codes (3 lignes visibles, 10 codes) */
.liste-codes.defilante {
  overflow-y: scroll; overscroll-behavior: contain; scroll-snap-type: y proximity; padding-right: .5rem;
  scrollbar-width: auto; scrollbar-color: var(--jaune) var(--nuit);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent);
}
.liste-codes.defilante li { scroll-snap-align: start; }
.liste-codes.defilante::-webkit-scrollbar { width: 12px; }
.liste-codes.defilante::-webkit-scrollbar-track { background: var(--nuit); border-radius: 99px; }
.liste-codes.defilante::-webkit-scrollbar-thumb { background: var(--jaune); border-radius: 99px; border: 2px solid var(--nuit); }
.liste-codes:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.indice-defilement { margin: .5rem 0 0; font-size: .85rem; font-weight: 700; color: var(--cyan); text-align: center; }
.indice-defilement.fin { color: var(--jaune); }
.indice-defilement[hidden] { display: none; }
#deplier-codes[hidden] { display: none; }

/* ---------- Annonces Google AdSense ---------- */
.pub-google { display: block; text-align: center; padding: .4rem 0; }
.pub-google .pub-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--doux); margin-bottom: .2rem; }
.pub-zone:empty { min-height: 0; }
.pub-dans-article { margin: 1.6rem 0; min-height: 120px; } /* place réservée : pas de saut de page au chargement */
