/* Carnet GTA VI — DA « Vice City au soleil » (feuille unique, refondue le 17/11/2026)
   Anciennes couches empilées : app.css.bak_2026-11-17_pro2 */

/* ==========================================================================
   1. Polices et jetons de design
   ========================================================================== */
@font-face { font-family: "Mr Dafoe"; src: url(/polices/MrDafoe.ttf); font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url(/polices/BebasNeue.ttf); font-display: swap; }
@font-face { font-family: "Exo 2"; src: url(/polices/Exo2.ttf); font-display: swap; }
@font-face { font-family: "Exo 2"; font-weight: 600 900; src: url(/polices/Exo2-600.ttf); font-display: swap; }

:root {
  /* Couleurs de marque */
  --rose: #ff2e88; --orange: #ff8a3d; --jaune: #ffd166; --cyan: #2de2e6; --violet: #b388ff; --danger: #ff5a6e;
  /* Versions éclaircies pour les textes sur fond prune (contraste AA) */
  --t-rose: #ff8fbe; --t-orange: #ffb27a; --t-cyan: #8ff3f5; --t-jaune: #ffe08f; --t-violet: #d4bcff; --t-danger: #ffb3bd;
  --texte: #fdf2ff; --doux: #e2d0ef; --pale: #c4acd6;
  /* Surfaces */
  --nuit: #0b0414;
  --panneau: linear-gradient(160deg, rgba(88, 24, 96, .93), rgba(50, 12, 68, .95));
  --fenetre: linear-gradient(160deg, #5a1862, #330c45);
  --creux: rgba(30, 6, 42, .5);
  --ligne: rgba(255, 255, 255, .1);
  --bord-champ: rgba(255, 255, 255, .16);
  --degrade: linear-gradient(90deg, var(--rose), var(--orange));
  --bandeau: linear-gradient(90deg, #ff2e88, #ff6a5e 50%, #ff9a3d);
  /* Polices */
  --police: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --affiche: "Bebas Neue", "Arial Narrow", sans-serif;
  --script: "Mr Dafoe", cursive;
  /* Échelle de texte (une seule pour tout le site) */
  --fs-1: .78rem;  /* méta, légendes */
  --fs-2: .9rem;   /* textes secondaires */
  --fs-3: 1rem;    /* texte courant */
  --fs-4: 1.2rem;  /* boutons, intertitres */
  --fs-5: 1.5rem;  /* titres de section */
  --fs-6: 2rem;    /* chiffres clés */
  --fs-7: clamp(3.6rem, 14vw, 6rem); /* chrono */
  /* Espacements, rayons, ombres */
  --e-1: .35rem; --e-2: .6rem; --e-3: 1rem; --e-4: 1.6rem; --e-5: 2.4rem;
  --rayon: 18px; --rayon-petit: 12px; --rayon-pilule: 999px;
  --ombre: 0 10px 30px rgba(40, 6, 50, .35), 0 2px 6px rgba(40, 6, 50, .25);
  --ombre-haute: 0 30px 80px rgba(20, 2, 30, .6);
  --transition: .18s ease;
  --entete: 68px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
* { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--police); font-size: var(--fs-3); line-height: 1.55; color: var(--texte); background: var(--nuit);
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
::selection { background: rgba(255, 46, 136, .45); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 46, 136, .55) transparent; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.chiffres { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   3. Décor : ciel qui suit l'heure (html[data-ciel] = jour | soir | nuit)
   ========================================================================== */
.ciel { position: fixed; inset: 0; z-index: -1; overflow: hidden; transition: background 1.5s ease; }
.etoiles {
  position: absolute; inset: 0 0 40% 0; opacity: 0; transition: opacity 1.5s ease;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, #ffd6f0, transparent), radial-gradient(1px 1px at 75% 12%, #fff, transparent),
    radial-gradient(1px 1px at 88% 30%, #c8ffff, transparent), radial-gradient(1px 1px at 20% 40%, #fff, transparent),
    radial-gradient(1px 1px at 65% 45%, #fff, transparent), radial-gradient(1.5px 1.5px at 42% 15%, #fff, transparent),
    radial-gradient(1px 1px at 5% 50%, #fff, transparent), radial-gradient(1px 1px at 95% 6%, #fff, transparent);
}
.soleil {
  position: absolute; left: 50%; top: 62%; width: 52vmin; height: 52vmin; transform: translate(-50%, -62%);
  border-radius: 50%; clip-path: inset(0 0 38% 0); /* coupé net par l'horizon */
  transition: opacity 1.5s ease;
}
.skyline { position: absolute; left: 0; right: 0; top: calc(62% - 120px); height: 120px; }
.skyline svg { width: 100%; height: 100%; display: block; }
.skyline svg g, .skyline svg g path { transition: fill 1.5s ease; }
.sol { /* reflets sur la mer */
  position: absolute; left: -50%; right: -50%; top: 62%; bottom: -10%; transform-origin: top; transform: perspective(300px) rotateX(62deg);
  background-image: linear-gradient(rgba(255, 255, 255, .55) 2px, transparent 2px); background-size: 100% 26px;
  -webkit-mask: radial-gradient(ellipse 30% 100% at 50% 0, #000, transparent 80%); mask: radial-gradient(ellipse 30% 100% at 50% 0, #000, transparent 80%);
}

/* Soir (coucher de soleil, la DA validée) */
html[data-ciel="soir"] .ciel, html:not([data-ciel]) .ciel {
  background:
    radial-gradient(ellipse 60% 30% at 50% 60%, rgba(255, 236, 160, .75), transparent 70%),
    linear-gradient(180deg, #1fa9d6 0%, #5fcde6 16%, #b7e6ef 28%, #ffc6dc 40%, #ff9fb4 50%, #ffa06b 58%, #ffc15e 61.8%,
      #3fd8e0 62%, #1db8c9 70%, #1192ad 84%, #0b6f8f 100%);
}
html[data-ciel="soir"] .soleil, html:not([data-ciel]) .soleil {
  background: linear-gradient(180deg, #fffbe0 0%, #ffe680 30%, #ffb04d 65%, #ff6f8e 100%);
  -webkit-mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 61%, transparent 61% 66%, #000 66% 73%, transparent 73% 79%, #000 79% 84%, transparent 84% 91%, #000 91%);
          mask: linear-gradient(180deg, #000 48%, transparent 48% 52%, #000 52% 61%, transparent 61% 66%, #000 66% 73%, transparent 73% 79%, #000 79% 84%, transparent 84% 91%, #000 91%);
  filter: drop-shadow(0 0 40px rgba(255, 214, 102, .9)) drop-shadow(0 0 90px rgba(255, 138, 61, .55));
}
.skyline svg g { fill: #6b2370; }
.skyline svg g path:nth-child(n+2) { fill: #3d0d47; } /* palmiers plus sombres que les immeubles */
.sol { opacity: .45; }

/* Jour : grand ciel bleu, soleil haut, mer turquoise */
html[data-ciel="jour"] .ciel {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 250, 220, .9), rgba(255, 240, 180, .25) 14%, transparent 32%),
    linear-gradient(180deg, #1b8fd6 0%, #39aee6 25%, #7fd0f0 45%, #c9eef7 60%, #e8f8fb 61.8%,
      #4fe0e6 62%, #27c6d4 70%, #149fba 84%, #0b7c9b 100%);
}
html[data-ciel="jour"] .soleil {
  left: 78%; top: 24%; width: 16vmin; height: 16vmin; transform: translate(-50%, -50%); clip-path: none;
  background: radial-gradient(circle, #fffef5 0%, #fff6c4 55%, #ffe680 100%);
  filter: drop-shadow(0 0 30px rgba(255, 245, 200, .95)) drop-shadow(0 0 80px rgba(255, 230, 150, .6));
}
html[data-ciel="jour"] .skyline svg g { fill: #8a4a9a; }
html[data-ciel="jour"] .skyline svg g path:nth-child(n+2) { fill: #4f2163; }
html[data-ciel="jour"] .sol { opacity: .55; }

/* Nuit : néon doux, étoiles, lune */
html[data-ciel="nuit"] .ciel {
  background:
    radial-gradient(ellipse 70% 22% at 50% 62%, rgba(255, 46, 136, .32), transparent 70%),
    linear-gradient(180deg, #05010d 0%, #12052a 30%, #2a0a45 50%, #5a1258 60%, #7d1d5e 61.8%,
      #1a0a3a 62%, #120830 75%, #0a0520 100%);
}
html[data-ciel="nuit"] .etoiles { opacity: 1; }
html[data-ciel="nuit"] .soleil {
  left: 22%; top: 16%; width: 11vmin; height: 11vmin; transform: translate(-50%, -50%); clip-path: none;
  background: radial-gradient(circle at 40% 40%, #fffaf0, #ecdff7 60%, #c9b3e6);
  filter: drop-shadow(0 0 18px rgba(230, 210, 255, .7));
}
html[data-ciel="nuit"] .skyline svg g { fill: #22093a; }
html[data-ciel="nuit"] .skyline svg g path:nth-child(n+2) { fill: #12041f; }
html[data-ciel="nuit"] .sol { opacity: .28; background-image: linear-gradient(rgba(255, 120, 190, .7) 2px, transparent 2px); }
html[data-ciel="nuit"] { --bandeau: linear-gradient(90deg, #c8136c, #d8454a 50%, #d9742c); }

/* ==========================================================================
   4. Éléments de base : titres, champs, boutons
   ========================================================================== */
h2 {
  display: flex; align-items: center; gap: var(--e-2); margin: 0 0 1.1rem;
  font-family: var(--affiche); font-weight: 400; font-size: var(--fs-5); line-height: 1.15; letter-spacing: .12em;
  color: var(--t, var(--t-rose));
}
h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: linear-gradient(var(--rose), var(--orange)); flex: none; }
h3 { margin: 0; }

input, select, textarea {
  font: inherit; color: var(--texte); width: 100%; min-height: 44px; padding: .65rem .85rem;
  background: var(--creux); border: 1px solid var(--bord-champ); border-radius: var(--rayon-petit);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45, 226, 230, .25); }
::placeholder { color: rgba(240, 220, 250, .55); }
textarea { min-height: 9rem; resize: vertical; }
select option { background: #3a0f4c; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .4rem 1.3rem;
  font-family: var(--affiche); font-weight: 400; font-size: var(--fs-4); letter-spacing: .12em; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: rgba(45, 226, 230, .08); border: 1.5px solid var(--cyan); border-radius: var(--rayon-pilule);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.bouton:hover { background: rgba(45, 226, 230, .16); box-shadow: 0 0 0 3px rgba(45, 226, 230, .15); }
.bouton.neon { background: var(--degrade); border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(120, 0, 60, .35); }
.bouton.neon:hover { box-shadow: 0 6px 18px rgba(255, 46, 136, .4); }
.bouton.danger { border-color: var(--danger); color: var(--t-danger); background: rgba(255, 90, 110, .08); }
.bouton.danger:hover { background: rgba(255, 90, 110, .16); box-shadow: 0 0 0 3px rgba(255, 90, 110, .15); }
.bouton:active, .gros-bouton:active, .puce:active { transform: scale(.97); }
.bouton:disabled { opacity: .55; cursor: default; }

.lien {
  font-family: var(--affiche); font-size: var(--fs-4); letter-spacing: .08em; color: var(--t-cyan);
  background: none; border: none; cursor: pointer; padding: .3rem; transition: color var(--transition);
}
.lien:hover { color: #fff; }
.erreur { color: var(--t-danger); min-height: 1.3em; margin: 0; font-size: var(--fs-2); }
.info, .aide { color: var(--doux); font-size: var(--fs-2); }
.aide { margin: .2rem 0 1rem; }

/* ==========================================================================
   5. Connexion
   ========================================================================== */
.ecran-connexion { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; }
.carte-connexion {
  width: min(400px, 100%); padding: 2.4rem 1.8rem 1.6rem; text-align: center;
  background: var(--panneau); border: 1px solid rgba(255, 46, 136, .5); border-radius: 24px;
  box-shadow: var(--ombre-haute); backdrop-filter: blur(10px); animation: apparition .4s ease both;
}
.carte-connexion .logo { font-size: 3.4rem; margin-bottom: .2rem; }
.carte-connexion .logo .script, .carte-connexion .logo .six { text-shadow: 0 0 10px rgba(255, 46, 136, .7); }
.sous-titre { color: var(--doux); margin: .3rem 0 1rem; }
.badge-sortie {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.4rem; padding: .3rem .9rem;
  font-family: var(--affiche); font-size: 1.05rem; letter-spacing: .12em; color: var(--t-jaune);
  background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .4); border-radius: var(--rayon-pilule);
}
.badge-sortie::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jaune); box-shadow: 0 0 8px var(--jaune); }
.carte-connexion form { display: grid; gap: .8rem; text-align: left; }
.carte-connexion label { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .15em; color: var(--doux); margin-bottom: -.4rem; }
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 3rem; }
.oeil {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; background: none; border: none; border-radius: 8px; color: var(--doux); cursor: pointer;
}
.oeil:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.oeil svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte-connexion .bouton { width: 100%; min-height: 50px; font-size: 1.35rem; margin-top: .3rem; }
.carte-connexion .erreur { text-align: center; }
.carte-connexion.secoue { animation: secoue .4s ease; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pied-connexion { margin: 1.4rem 0 0; font-size: var(--fs-1); letter-spacing: .1em; text-transform: uppercase; color: var(--pale); }

/* Logo (enseigne) */
.logo { display: flex; align-items: baseline; justify-content: center; gap: .45em; margin: 0; font-weight: 400; white-space: nowrap; }
.logo .script {
  display: inline-block; font-family: var(--script); font-size: 1.15em; line-height: .9; color: #fff; transform: rotate(-6deg);
  text-shadow: 0 0 6px rgba(120, 0, 60, .5), 2px 2px 0 rgba(120, 0, 60, .35);
}
.logo .six { font-family: var(--affiche); font-size: .8em; letter-spacing: .1em; color: #fff; text-shadow: 2px 2px 0 rgba(120, 0, 60, .35); }
.logo.petit { font-size: 2.3rem; }

/* ==========================================================================
   6. En-tête et onglets
   ========================================================================== */
.entete {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem;
  min-height: var(--entete); padding: .5rem 1.6rem; background: var(--bandeau); box-shadow: 0 4px 18px rgba(255, 46, 136, .35);
}
.onglets { display: flex; gap: .5rem; margin-left: auto; }
.onglets button {
  display: flex; align-items: center; gap: .4rem; padding: .3rem 1.1rem; cursor: pointer;
  font-family: var(--affiche); font-size: 1.3rem; letter-spacing: .1em; color: #fff;
  background: none; border: 2px solid transparent; border-radius: var(--rayon-pilule);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.onglets button:not(.actif):hover { background: rgba(255, 255, 255, .18); }
.onglets button.actif { background: #fff; color: #d0105f; box-shadow: 0 2px 10px rgba(120, 0, 60, .3); }
.ic { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.actions-entete { display: flex; align-items: center; gap: .3rem; }
.actions-entete .lien { color: #fff; display: inline-flex; align-items: center; gap: .35rem; }
.actions-entete .lien:hover { color: #fff; opacity: .85; }

main { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 6rem; }
.vue { animation: apparition .28s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   7. Panneaux
   ========================================================================== */
.bloc {
  --c: var(--rose); --t: var(--t-rose);
  margin-bottom: var(--e-4); padding: 1.5rem 1.6rem; border-radius: var(--rayon);
  background: var(--panneau); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: var(--ombre), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(10px);
}
.vue > .bloc:nth-of-type(4n+2) { --c: var(--cyan); --t: var(--t-cyan); }
.vue > .bloc:nth-of-type(4n+3) { --c: var(--jaune); --t: var(--t-jaune); }
.vue > .bloc:nth-of-type(4n+4) { --c: var(--violet); --t: var(--t-violet); }
.titre-bloc { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.titre-bloc h2 { margin-bottom: 0; }

/* Volets dépliables (fermés par défaut) */
.volet summary { display: flex; align-items: center; gap: var(--e-2); cursor: pointer; list-style: none; }
.volet summary::-webkit-details-marker { display: none; }
.volet summary h2 { margin: 0; }
.volet summary::after { content: '▾'; margin-left: auto; font-size: 1.3rem; color: var(--t); transition: transform .2s; }
.volet[open] summary { margin-bottom: var(--e-2); }
.volet[open] summary::after { transform: rotate(180deg); }
.volet .sessions { max-height: 60vh; overflow-y: auto; }

/* États vides */
.vide {
  grid-column: 1 / -1; flex-basis: 100%; margin: 0; padding: 1.4rem 1rem; text-align: center;
  border: 1px dashed rgba(255, 255, 255, .2); border-radius: var(--rayon-petit); color: var(--doux); font-size: var(--fs-2);
}

/* Chargement : formes grises animées */
.squelette {
  border-radius: var(--rayon-petit); min-height: 1.2rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 75%);
  background-size: 300% 100%; animation: reflet 1.3s ease-in-out infinite;
}
@keyframes reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sq-ligne { height: 2.6rem; margin-bottom: .5rem; grid-column: 1 / -1; }
.sq-carte { height: 7.5rem; }
.sq-image { aspect-ratio: 16 / 9; }
.sq-graphe { height: 220px; }

/* ==========================================================================
   8. Accueil : carte de bienvenue
   ========================================================================== */
.heros {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.6rem 1.8rem; border-color: rgba(255, 209, 102, .55);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 138, 61, .35), transparent 55%),
    radial-gradient(circle at 0 100%, rgba(45, 226, 230, .18), transparent 50%), var(--panneau);
}
.heros-texte { flex: 1 1 280px; min-width: 0; }
.surtitre { margin: 0; font-family: var(--affiche); font-size: 1.05rem; letter-spacing: .25em; color: var(--t-jaune); }
.heros-titre { margin: .15rem 0 .4rem; font-family: var(--script); font-weight: 400; font-size: 2.8rem; line-height: 1.05; color: #fff;
  text-shadow: 0 0 12px rgba(255, 46, 136, .55); }
.heros-lignes { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; color: var(--doux); font-size: var(--fs-2); }
.heros-lignes b { color: var(--texte); font-weight: 600; }
.compte { display: flex; gap: .6rem; }
.compte div {
  min-width: 4.6rem; padding: .6rem .4rem .45rem; text-align: center; border-radius: var(--rayon-petit);
  background: var(--creux); border: 1px solid rgba(255, 209, 102, .3);
}
.compte b { display: block; font-family: var(--affiche); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--t-jaune); font-variant-numeric: tabular-nums; }
.compte span { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .15em; color: var(--doux); }
/* Anneau de progression (après la sortie) */
.anneau {
  --p: 0; position: relative; width: 8.5rem; height: 8.5rem; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--rose), var(--orange) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0);
}
.anneau::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #45114f; }
.anneau > * { position: relative; }
.anneau b { font-family: var(--affiche); font-weight: 400; font-size: 2.3rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.anneau span { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .12em; color: var(--doux); }

/* ==========================================================================
   9. Session de jeu
   ========================================================================== */
.session { text-align: center; padding: 2.2rem 1.5rem 1.8rem; }
.etiquette-session { margin: 0; font-family: var(--affiche); font-size: var(--fs-4); letter-spacing: .25em; color: var(--doux); }
.session.en-jeu .etiquette-session { color: var(--t-cyan); }
.session.en-jeu .etiquette-session::before { content: "●"; color: #ff4d6d; margin-right: .5rem; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.chrono {
  margin: .5rem 0 1.2rem; font-family: var(--affiche); font-size: var(--fs-7); line-height: 1; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 10px rgba(255, 46, 136, .55), 0 0 26px rgba(255, 46, 136, .2);
}
.gros-bouton {
  width: min(360px, 100%); padding: .75rem 1rem; cursor: pointer;
  font-family: var(--affiche); font-size: 1.6rem; letter-spacing: .15em; color: #fff;
  background: var(--degrade); border: 2px solid transparent; border-radius: var(--rayon-pilule);
  box-shadow: 0 8px 22px rgba(255, 46, 136, .4); text-shadow: 0 1px 2px rgba(120, 0, 60, .35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gros-bouton:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 46, 136, .5); }
.session.en-jeu .gros-bouton { background: rgba(45, 226, 230, .12); border-color: var(--cyan); box-shadow: 0 8px 22px rgba(45, 226, 230, .25); text-shadow: none; }
.gros-bouton:disabled { opacity: .6; }
.stats-rapides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 620px; margin: 1.8rem auto 0; }

/* Chiffres clés (Accueil et Temps) */
.stats-rapides > div, .cartes-stats > div {
  padding: .8rem .5rem; border-radius: var(--rayon-petit); background: var(--creux); border: 1px solid rgba(45, 226, 230, .25);
}
.stats-rapides b, .cartes-stats b {
  display: block; font-family: var(--affiche); font-weight: 400; font-size: var(--fs-6); line-height: 1.1; letter-spacing: .03em;
  color: var(--t-cyan); font-variant-numeric: tabular-nums;
}
.stats-rapides span, .cartes-stats span { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: .15em; color: var(--doux); }

/* Fenêtre de fin de session */
dialog input[type=range] { padding: 0; min-height: 0; accent-color: var(--rose); }
.fin-duree { margin: 0; color: var(--doux); }
.fin-duree b { color: var(--t-orange); }

/* ==========================================================================
   10. Rappels
   ========================================================================== */
.ajout-rapide, .barre-outils { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .8rem; }
.ajout-rapide input, .barre-outils input[type=search] { flex: 1; min-width: 180px; }
.ajout-rapide .bouton { min-width: 48px; padding-inline: .9rem; font-size: 1.5rem; }
.rappels, .sessions { list-style: none; margin: 0; padding: 0; }
.rappels li, .sessions li {
  display: flex; gap: .7rem; padding: .7rem .5rem; border-bottom: 1px solid var(--ligne); border-radius: 8px;
  transition: background var(--transition);
}
.rappels li:hover, .sessions li:hover { background: rgba(255, 255, 255, .04); }
.rappels li { align-items: center; }
.rappels span { flex: 1; overflow-wrap: anywhere; }
.rappels li.fait span { text-decoration: line-through; color: var(--pale); }
.case {
  width: 1.5rem; height: 1.5rem; flex: none; cursor: pointer; font-weight: 900; color: #1a0b2e;
  background: none; border: 2px solid var(--cyan); border-radius: 7px; transition: background var(--transition);
}
.fait .case { background: var(--cyan); }
.suppr {
  width: 2rem; height: 2rem; flex: none; background: none; border: none; border-radius: 8px; cursor: pointer;
  color: var(--pale); font-size: 1rem; transition: color var(--transition), background var(--transition);
}
.suppr:hover { color: var(--t-danger); background: rgba(255, 90, 110, .12); }

/* ==========================================================================
   11. Notes
   ========================================================================== */
.filtres { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.puce {
  padding: .25rem .95rem; cursor: pointer; font-family: var(--affiche); font-size: 1.05rem; letter-spacing: .1em; color: var(--doux);
  background: var(--creux); border: 1.5px solid rgba(179, 136, 255, .5); border-radius: var(--rayon-pilule);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.puce:hover { border-color: var(--violet); color: #fff; }
.puce.actif { color: #fff; background: rgba(179, 136, 255, .25); border-color: var(--violet); }
.grille-notes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.note {
  font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 1rem 1.1rem;
  background: var(--creux); border: 1px solid var(--c, var(--rose)); border-radius: var(--rayon-petit);
  box-shadow: 0 0 6px color-mix(in srgb, var(--c, var(--rose)) 40%, transparent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.note:hover { transform: translateY(-3px); box-shadow: 0 8px 20px color-mix(in srgb, var(--c, var(--rose)) 35%, transparent); }
.note h3 {
  display: flex; gap: .4rem; margin-bottom: .35rem; font-family: var(--affiche); font-weight: 400; font-size: 1.5rem; letter-spacing: .08em;
  color: color-mix(in srgb, var(--c, var(--rose)) 70%, #fff);
}
.note p { margin: 0; color: var(--texte); font-size: .95rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.note .meta { margin-top: .5rem; font-family: var(--affiche); font-size: .95rem; letter-spacing: .12em; color: color-mix(in srgb, var(--c, var(--rose)) 70%, #fff); }

/* ==========================================================================
   12. Captures : mosaïque qui respecte le format de chaque image
   ========================================================================== */
.grille-captures { display: flex; flex-wrap: wrap; gap: .8rem; }
.grille-captures::after { content: ""; flex-grow: 999; } /* dernière rangée non étirée */
.vignette {
  --r: 1.778; position: relative; flex: var(--r) 1 calc(var(--r) * 190px); aspect-ratio: var(--r); max-width: 100%;
  padding: 0; overflow: hidden; cursor: pointer; border: 1px solid rgba(143, 243, 245, .5); border-radius: var(--rayon-petit);
  background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .14) 50%, rgba(255, 255, 255, .06) 75%) 0 0 / 300% 100%;
  animation: reflet 1.3s ease-in-out infinite; box-shadow: 0 0 6px rgba(45, 226, 230, .3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vignette.charge { animation: none; background: #000; }
.vignette img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s ease, transform .25s ease; }
.vignette.charge img { opacity: 1; }
.vignette:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(45, 226, 230, .3); }
.vignette:hover img { transform: scale(1.04); }
.vignette span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem .6rem .4rem; text-align: left;
  font-size: var(--fs-1); letter-spacing: .05em; color: #fff; background: linear-gradient(transparent, rgba(5, 1, 12, .9));
}
/* Accueil et fenêtres : grille régulière */
.grille-captures.mini, dialog .grille-captures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
dialog .grille-captures { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.grille-captures.mini::after, dialog .grille-captures::after { content: none; }
.grille-captures.mini .vignette, dialog .vignette { aspect-ratio: 16 / 9; }
.suite-galerie { height: 1px; }
body.depot main { outline: 3px dashed var(--cyan); outline-offset: -8px; }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: 1fr auto; background: rgba(5, 1, 12, .97); touch-action: pan-y; }
.visionneuse img { width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.fermer, .nav-vis {
  position: absolute; z-index: 2; width: 2.8rem; height: 2.8rem; cursor: pointer; font-size: 1.4rem; color: #fff;
  background: rgba(0, 0, 0, .55); border: 1.5px solid var(--cyan); border-radius: 50%;
}
.fermer { top: .8rem; right: .8rem; }
.nav-vis { top: 45%; font-size: 2rem; }
.prec { left: .8rem; } .suiv { right: .8rem; }
.vis-bas {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .7rem; padding-bottom: calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(30, 8, 40, .95); border-top: 1px solid rgba(255, 46, 136, .5);
}
.vis-bas input { flex: 2; min-width: 180px; }
.vis-bas select { flex: 1; min-width: 150px; width: auto; }

/* Fenêtre d'envoi de captures */
.envoi-liste { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 46vh; overflow-y: auto; padding-right: .2rem; }
.envoi-item { display: grid; gap: .35rem; }
.envoi-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid rgba(143, 243, 245, .5); }
.envoi-item input { font-size: .85rem; padding: .45rem .6rem; }
.envoi-progression { display: flex; gap: .6rem; align-items: center; color: var(--doux); font-size: var(--fs-2); }
.envoi-progression progress { flex: 1; height: 10px; accent-color: var(--rose); }
#actions-album { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

/* ==========================================================================
   13. Temps de jeu : chiffres, graphe, sessions
   ========================================================================== */
.cartes-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cartes-stats > div { padding: .9rem; }

.graphe { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.graphe-axe { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: var(--fs-1); color: var(--pale); text-align: right; font-variant-numeric: tabular-nums; }
.graphe-axe span { transform: translateY(-50%); }
.graphe-axe span:last-child { transform: translateY(50%); }
.graphe-zone {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 6px; height: 200px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 100% 50%;
}
.colonne {
  position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center;
  padding: 0; background: none; border: none; cursor: pointer; border-radius: 8px 8px 0 0;
}
.colonne i {
  display: block; width: min(70%, 34px); height: var(--h); min-height: 2px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(0deg, var(--rose), var(--orange)); opacity: .85; transition: opacity var(--transition), filter var(--transition);
}
.colonne:hover i, .colonne:focus-visible i { opacity: 1; filter: brightness(1.15); }
.colonne:hover, .colonne:focus-visible { background: rgba(255, 255, 255, .05); }
.colonne.courante i { opacity: 1; background: linear-gradient(0deg, #1fc3d0, var(--cyan)); box-shadow: 0 0 12px rgba(45, 226, 230, .45); }
.bulle {
  position: absolute; bottom: calc(var(--h) + 8px); left: 50%; z-index: 2; transform: translate(-50%, 4px);
  padding: .35rem .6rem; white-space: nowrap; pointer-events: none; opacity: 0;
  font-size: var(--fs-2); font-weight: 600; color: #fff; background: #2a0a36; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
  box-shadow: var(--ombre); transition: opacity var(--transition), transform var(--transition);
}
.bulle small { display: block; font-weight: 400; font-size: var(--fs-1); color: var(--doux); }
.colonne:first-child .bulle { left: 0; transform: translate(0, 4px); }
.colonne:last-child .bulle { left: auto; right: 0; transform: translate(0, 4px); }
.colonne:hover .bulle, .colonne:focus-visible .bulle, .colonne.courante .bulle.toujours { opacity: 1; transform: translate(-50%, 0); }
.colonne:first-child:hover .bulle, .colonne:first-child:focus-visible .bulle { transform: translate(0, 0); }
.colonne:last-child:hover .bulle, .colonne:last-child:focus-visible .bulle, .colonne:last-child.courante .bulle.toujours { transform: translate(0, 0); }
.graphe-dates { grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; font-size: var(--fs-1); color: var(--pale); text-align: center; font-variant-numeric: tabular-nums; }
.graphe-dates .courante { color: var(--t-cyan); font-weight: 700; }

.sessions li { align-items: flex-start; }
.sessions .quand { flex: 1; min-width: 0; }
.sessions .quand small { display: block; color: var(--doux); font-size: var(--fs-2); }
.sessions .droite { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; }
.sessions .duree { font-family: var(--affiche); font-size: 1.35rem; letter-spacing: .05em; color: var(--t-orange); font-variant-numeric: tabular-nums; }
.sessions li.en-cours .duree { color: var(--t-cyan); }
.sessions .pct { color: var(--t-cyan); font-weight: 700; }
.sessions .commentaire {
  margin: .4rem 0 0; padding: .4rem .6rem; border-left: 3px solid var(--rose); border-radius: 4px;
  background: rgba(255, 46, 136, .08); font-size: var(--fs-2); font-style: italic; white-space: pre-line; overflow-wrap: anywhere;
}

/* ==========================================================================
   14. Fenêtres et notifications
   ========================================================================== */
dialog {
  width: min(560px, calc(100% - 1.5rem)); max-height: calc(100% - 2rem); padding: 1.5rem; color: var(--texte);
  background: var(--fenetre); border: 1px solid rgba(255, 46, 136, .55); border-radius: var(--rayon); box-shadow: var(--ombre-haute);
}
dialog[open] { animation: apparition .22s ease both; }
dialog::backdrop { background: rgba(5, 1, 12, .75); backdrop-filter: blur(2px); }
dialog form { display: grid; gap: .75rem; }
dialog h2 { --t: var(--t-rose); margin: 0; }
dialog label { color: var(--doux); font-size: var(--fs-2); }
dialog .ligne { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
dialog .ligne > * { flex: 1; }
dialog label.coche { display: flex; gap: .5rem; align-items: center; flex: none; color: var(--texte); }
dialog label.coche input { width: auto; min-height: 0; }
dialog .actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
dialog .actions .gauche { margin-right: auto; }

.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; max-width: calc(100% - 2rem); padding: .65rem 1.2rem .65rem .8rem;
  font-weight: 600; color: #fff; background: rgba(42, 10, 54, .97); border: 1px solid rgba(45, 226, 230, .6); border-radius: var(--rayon-pilule);
  box-shadow: var(--ombre); animation: toast-entre .25s ease both;
}
.toast::before {
  content: "✓"; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%;
  font-size: .85rem; font-weight: 900; color: #10323a; background: var(--cyan);
}
.toast.erreur { border-color: var(--danger); }
.toast.erreur::before { content: "!"; color: #fff; background: var(--danger); }
@keyframes toast-entre { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ==========================================================================
   15. Grand écran
   ========================================================================== */
@media (min-width: 980px) {
  #vue-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-4); align-items: start; }
  #vue-accueil > * { margin: 0; }
  #vue-accueil > .heros, #vue-accueil > .session, #vue-accueil > .volet, #vue-accueil > .bloc:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   16. Téléphone : onglets en bas façon appli
   ========================================================================== */
@media (max-width: 720px) {
  :root { --fs-5: 1.3rem; --fs-6: 1.7rem; --entete: 58px; }
  .entete { justify-content: space-between; padding: .4rem 1rem; padding-top: calc(.4rem + env(safe-area-inset-top)); }
  .logo.petit { font-size: 1.9rem; }
  .logo { font-size: 2.4rem; }
  .onglets {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; gap: 0; justify-content: space-around;
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    background: rgba(42, 10, 54, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 46, 136, .35); box-shadow: 0 -6px 20px rgba(20, 2, 30, .35);
  }
  .onglets button {
    flex: 1; flex-direction: column; gap: .15rem; min-height: 56px; padding: .25rem 0; border: none; border-radius: 0;
    font-family: var(--police); font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--doux);
  }
  .onglets button .ic { width: 3.2rem; height: 1.9rem; padding: .3rem 0; border-radius: var(--rayon-pilule); box-sizing: border-box; transition: background var(--transition); }
  .onglets button:not(.actif):hover { background: none; }
  .onglets button.actif { background: none; color: #fff; box-shadow: none; }
  .onglets button.actif .ic { background: var(--degrade); stroke: #fff; }
  .actions-entete .texte-bouton { display: none; }
  main { padding: 1.2rem .85rem calc(6.5rem + env(safe-area-inset-bottom)); }
  .bloc { padding: 1.2rem 1.1rem; margin-bottom: 1.2rem; }
  .session { padding: 1.6rem 1rem 1.4rem; }
  .stats-rapides { gap: .5rem; }
  .heros { padding: 1.3rem 1.2rem; gap: 1.1rem; }
  .heros-titre { font-size: 2.3rem; }
  .compte { width: 100%; }
  .compte div { flex: 1; min-width: 0; }
  .compte b { font-size: 2.1rem; }
  .anneau { width: 7rem; height: 7rem; }
  .graphe-zone { gap: 3px; }
  .graphe-dates { gap: 3px; font-size: .62rem; }
  .vignette { flex-basis: calc(var(--r) * 120px); }
  .grille-captures { gap: .5rem; }
  .nav-vis { display: none; }
  dialog .actions .bouton { flex: 1; padding-inline: .5rem; }
  dialog .actions .gauche { margin-right: 0; }
  .toast { bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .vue, dialog[open], .carte-connexion, .toast, .squelette, .vignette { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   17. Actus Rockstar (Newswire)
   ========================================================================== */
.grille-actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--e-3); }
.actu {
  display: flex; flex-direction: column; overflow: hidden; color: var(--texte); text-decoration: none;
  background: var(--creux); border: 1px solid var(--ligne); border-radius: var(--rayon-petit);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.actu:hover, .actu:focus-visible { transform: translateY(-3px); border-color: var(--violet); box-shadow: 0 10px 24px rgba(45, 226, 230, .25); }
.actu-image { aspect-ratio: 16 / 9; background: rgba(0, 0, 0, .35); overflow: hidden; }
.actu-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.actu:hover .actu-image img { transform: scale(1.04); }
.actu-texte { display: flex; flex-direction: column; gap: var(--e-1); padding: var(--e-2) var(--e-3) var(--e-3); }
.actu-meta { font-size: var(--fs-1); color: var(--pale); }
.actu-meta b { color: var(--t-cyan); font-weight: 600; }
.actu-titre { font-size: var(--fs-3); font-weight: 600; line-height: 1.3; }
.grille-actus .squelette { aspect-ratio: 16 / 11; }
@media (min-width: 980px) { #vue-accueil > .actus-accueil { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  #actus-accueil { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--e-1); }
  #actus-accueil .actu { scroll-snap-align: start; }
}
