/* Polices hébergées sur le site (licence SIL Open Font License) */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("polices/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("polices/inter-latin.woff2") format("woff2"); }

/* =====================================================================
   Astuces GTA6 — design « nuit tropicale »
   ===================================================================== */
:root {
  --fond: #0a0714;
  --fond-2: #120c22;
  --verre: rgba(22, 14, 40, .55);
  --bord: rgba(255, 255, 255, .09);
  --texte: #f6f1ff;
  --texte-doux: #bdb2d6;
  --rose: #ff3d9a;
  --orange: #ffad42;
  --cyan: #38e1ff;
  --violet: #8a5cff;
  --degrade: linear-gradient(90deg, var(--rose), var(--orange));
  --rayon: 18px;
  --titre: "Anton", "Impact", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
/* grain photo très léger sur tout le site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--cyan); }
img { display: block; max-width: 100%; }
.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; scroll-margin-top: 64px; }

/* ---------- En-tête ---------- */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
header.solide { background: rgba(10, 7, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--bord); }
header .conteneur { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--titre); font-size: 1.6rem; letter-spacing: 1px; text-decoration: none; color: var(--texte); text-transform: uppercase; }
.logo span { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
header nav a { color: var(--texte); opacity: .8; text-decoration: none; margin-left: 26px; font-weight: 600; font-size: .9rem; letter-spacing: .5px; text-transform: uppercase; }
header nav a:hover { opacity: 1; color: var(--rose); }

/* ---------- Bandeau plein écran ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; overflow: hidden; padding: 110px 0 80px; }
.hero-fond { position: absolute; inset: -4%; background-size: cover; background-position: center; animation: zoomLent 28s ease-in-out infinite alternate; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,7,20,.55) 0%, rgba(10,7,20,.25) 40%, rgba(10,7,20,.85) 85%, var(--fond) 100%),
    radial-gradient(ellipse at 20% 10%, rgba(255,61,154,.35), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(56,225,255,.22), transparent 55%); }
.hero .conteneur { position: relative; z-index: 2; width: 100%; }
@keyframes zoomLent { from { transform: scale(1); } to { transform: scale(1.12) translateY(-1.5%); } }
.surtitre { display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; color: var(--orange); margin-bottom: 18px; }
.hero h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2.8rem, 9vw, 7rem); line-height: .95; margin: 0 0 18px; letter-spacing: 1px; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(255,61,154,.45)); }
.hero p { color: #e6def6; font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 auto 30px; max-width: 640px; }
.compteur { display: flex; justify-content: center; gap: 12px; margin: 0 0 34px; }
.compteur .bloc { background: var(--verre); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--bord); border-radius: 14px; min-width: 84px; padding: 12px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.compteur strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.compteur span { color: var(--texte-doux); font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; }
.recherche { width: 100%; max-width: 580px; padding: 16px 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(10,7,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--texte); font-size: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.recherche::placeholder { color: var(--texte-doux); }
.recherche:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255,61,154,.2), 0 10px 40px rgba(0,0,0,.35); }
.defiler { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--texte-doux); font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; animation: flotte 2.4s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translate(-50%, 6px); } }

/* ---------- Titres de section ---------- */
.entete-section { margin-bottom: 28px; }
.entete-section .surtitre { margin-bottom: 6px; }
h2.titre-section { font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; margin: 0; }
.legende { color: var(--texte-doux); font-size: .95rem; margin: 10px 0 0; }
.legende .fiab { margin: 0 4px 0 12px; }
.legende .fiab:first-child { margin-left: 0; }

/* ---------- Grilles et cartes ---------- */
.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.carte { position: relative; display: block; background: var(--fond-2); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; text-decoration: none; color: var(--texte); transition: transform .25s, border-color .25s, box-shadow .25s; }
a.carte:hover { transform: translateY(-4px); border-color: rgba(255,61,154,.6); box-shadow: 0 18px 40px rgba(255,61,154,.15); }
.carte h3 { margin: 10px 0 6px; font-size: 1.12rem; line-height: 1.3; }
.carte p { margin: 0; color: var(--texte-doux); font-size: .95rem; }
.carte.inactive { opacity: .62; }
.meta { color: var(--texte-doux); font-size: .82rem; margin-top: 12px; }
.vide { color: var(--texte-doux); }

/* Carte photo (fond image + dégradé) */
.carte-photo { overflow: hidden; padding: 0; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.carte-photo .fond { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.carte-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,7,20,0) 25%, rgba(10,7,20,.75) 65%, rgba(10,7,20,.96) 100%); }
.carte-photo:hover .fond { transform: scale(1.07); }
.carte-photo .corps { padding: 22px; }
.carte-photo h3 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 1.7rem; margin: 8px 0 4px; }
.carte-photo p { color: #ddd3ee; }

/* Accès rapides */
.hub { grid-template-columns: repeat(4, 1fr); margin-top: -140px; position: relative; z-index: 3; }
.hub .carte-photo { min-height: 240px; }
.hub .carte-photo h3 { font-size: 1.45rem; }

/* Rubriques */
.rubriques .carte-photo { min-height: 210px; }
.rubriques .carte-photo h3 { font-size: 1.45rem; }
.carte-photo.choisie { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose), 0 18px 40px rgba(255,61,154,.25); }
.compteur-guides { position: absolute; top: 14px; right: 14px; }

/* Univers : affiches verticales */
.univers-grille { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.univers-grille .carte-photo { min-height: 360px; }

/* Étiquettes */
.etiquettes { display: flex; gap: 6px; flex-wrap: wrap; }
.etiquette { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; background: rgba(56,225,255,.14); color: var(--cyan); backdrop-filter: blur(6px); }
.etiquette.bientot { background: rgba(255,173,66,.18); color: var(--orange); }
.etiquette.sombre { background: rgba(10,7,20,.6); color: #fff; border: 1px solid var(--bord); }
.fiab { display: inline-block; font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.fiab.officiel { background: rgba(80,220,140,.16); color: #5ee39a; }
.fiab.confirme { background: rgba(56,225,255,.14); color: var(--cyan); }
.fiab.rumeur   { background: rgba(255,90,90,.16); color: #ff7a7a; }

/* Liste d'articles : bande photo en haut */
.carte-article { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.carte-article .vignette { height: 150px; background-size: cover; background-position: center; position: relative; transition: transform .6s; }
.carte-article .vignette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--fond-2)); }
.carte-article:hover .vignette { transform: scale(1.05); }
.carte-article .corps { padding: 18px 22px 22px; position: relative; }
.carte-article.inactive .vignette { filter: grayscale(.8) brightness(.7); }

/* Bandeau photo pleine largeur (actus, carte) */
.bandeau-photo { position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--bord); padding: clamp(28px, 6vw, 64px); min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; }
.bandeau-photo .fond { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.bandeau-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,7,20,.95) 0%, rgba(10,7,20,.7) 45%, rgba(10,7,20,.15) 100%); }
.bandeau-photo .texte { max-width: 560px; }
.bandeau-photo p { color: #ddd3ee; font-size: 1.05rem; }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.points span { background: var(--verre); border: 1px solid var(--bord); padding: 6px 12px; border-radius: 999px; font-size: .85rem; backdrop-filter: blur(6px); }

/* Fond d'ambiance entre sections */
.ambiance { position: relative; }
.ambiance::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 10% 0%, rgba(138,92,255,.18), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(255,61,154,.12), transparent 50%); }

/* ---------- Apparition au défilement ---------- */
.apparait { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.apparait.vu { opacity: 1; transform: none; }

/* ---------- Page article ---------- */
.hero-article { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; padding: 120px 0 40px; isolation: isolate; }
.hero-article .fond { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero-article::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,7,20,.45), rgba(10,7,20,.75) 60%, var(--fond)); }
.hero-article .conteneur { max-width: 820px; width: 100%; }
.hero-article h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.02; margin: 14px 0 10px; letter-spacing: .5px; }
article { max-width: 820px; margin: 0 auto; padding: 10px 16px 72px; font-size: 1.07rem; }
article h1 { font-family: var(--titre); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3rem); }
article h2 { margin-top: 40px; font-family: var(--titre); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; font-size: 1.8rem; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.astuce { background: linear-gradient(90deg, rgba(255,61,154,.14), rgba(255,173,66,.06)); border: 1px solid rgba(255,61,154,.3); padding: 16px 20px; border-radius: 14px; margin: 24px 0; }
.retour { display: inline-block; margin-bottom: 8px; text-decoration: none; color: #fff; opacity: .85; font-weight: 600; }
.retour:hover { opacity: 1; }
.page-simple { padding-top: 110px; }

/* ---------- Pied de page ---------- */
footer { position: relative; border-top: 1px solid var(--bord); padding: 48px 0 36px; color: var(--texte-doux); font-size: .85rem; text-align: center; background: linear-gradient(180deg, var(--fond), #07050f); }
footer .logo { display: inline-block; margin-bottom: 14px; }
.liens-pied { margin-bottom: 14px; }
.liens-pied a { color: var(--texte-doux); margin: 0 10px; text-decoration: none; }
.liens-pied a:hover { color: var(--texte); }
.credits { margin-top: 10px; font-size: .78rem; opacity: .8; }
.credits a { color: var(--texte-doux); }
.signaler { margin-top: 48px; }

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 900px) {
  .hub { grid-template-columns: repeat(2, 1fr); margin-top: -100px; }
}
@media (max-width: 600px) {
  section { padding: 52px 0; }
  header nav a { margin-left: 14px; font-size: .78rem; }
  header nav a:nth-child(n+3) { display: none; }
  .logo { font-size: 1.3rem; }
  .compteur { gap: 8px; }
  .compteur .bloc { min-width: 66px; padding: 10px 6px; }
  .compteur strong { font-size: 1.8rem; }
  .hub { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -70px; }
  .hub .carte-photo { min-height: 190px; }
  .hub .carte-photo h3 { font-size: 1.15rem; }
  .hub .carte-photo p { display: none; }
  .hub .carte-photo .corps { padding: 14px; }
  .univers-grille { grid-template-columns: 1fr 1fr; gap: 12px; }
  .univers-grille .carte-photo { min-height: 260px; }
  .univers-grille .carte-photo h3 { font-size: 1.25rem; }
  .univers-grille .carte-photo p { font-size: .82rem; }
  .univers-grille .carte-photo .corps { padding: 14px; }
  .bandeau-photo::before { background: linear-gradient(180deg, rgba(10,7,20,.35), rgba(10,7,20,.95) 70%); }
  .liens-pied a { display: inline-block; margin: 4px 8px; }
  .defiler { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fond, .defiler { animation: none; }
  .apparait { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Sources en bas d'article */
.sources { margin-top: 44px; padding: 18px 22px; border: 1px solid var(--bord); border-radius: 14px; background: var(--fond-2); font-size: .9rem; }
.sources ul { margin: 8px 0 0; padding-left: 18px; }
.sources a { color: var(--texte-doux); }
article ul li { margin-bottom: 6px; }

/* --- Fonctionnalités v5 --- */
.lien-bouton { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; }

/* Bouton « Sans spoiler » */
.bouton-spoilers { background: var(--verre); border: 1px solid var(--bord); color: var(--texte); border-radius: 999px; padding: 6px 12px; font: 600 .78rem "Inter", system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bouton-spoilers:hover { border-color: var(--rose); }
.spoiler { position: relative; filter: blur(7px); cursor: pointer; transition: filter .3s; user-select: none; }
.spoiler::after { content: "Spoiler — cliquer pour afficher"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; filter: blur(0); font-weight: 700; font-size: .85rem; }
.spoiler.revele, .spoilers-visibles .spoiler { filter: none; cursor: auto; user-select: auto; }
.spoiler.revele::after, .spoilers-visibles .spoiler::after { display: none; }

/* Checklists à cocher */
ul.checklist { list-style: none; padding: 0; margin: 12px 0 28px; }
ul.checklist li { margin: 0 0 8px; }
ul.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid var(--bord); border-radius: 12px; background: var(--fond-2); cursor: pointer; transition: border-color .2s, background .2s; }
ul.checklist label:hover { border-color: rgba(255,61,154,.5); }
ul.checklist input { width: 20px; height: 20px; accent-color: var(--rose); flex-shrink: 0; }
ul.checklist input:checked + span { color: var(--texte-doux); text-decoration: line-through; }
.progression { margin-top: 24px; }
.progression-texte { font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.progression.complet .progression-texte { color: #5ee39a; }
.progression-piste { height: 8px; border-radius: 999px; background: var(--fond-2); border: 1px solid var(--bord); overflow: hidden; }
.progression-remplie { height: 100%; width: 0; background: var(--degrade); transition: width .4s ease; }

/* Frise chronologique */
ol.frise { list-style: none; padding: 0 0 0 26px; margin: 24px 0; border-left: 2px solid rgba(255,61,154,.4); }
ol.frise li { position: relative; margin: 0 0 18px; }
ol.frise li::before { content: ""; position: absolute; left: -34px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--degrade); box-shadow: 0 0 12px rgba(255,61,154,.6); }

@media (max-width: 600px) {
  .bouton-spoilers { padding: 5px 9px; font-size: .7rem; }
  header nav a:nth-child(n+3) { display: none; }
  header nav a:nth-child(n+2) { margin-left: 10px; }
}
