/* Le site de TRUC, d'après la maquette « Site TRUC » : les styles de chaque bloc sont écrits dans la page,
   ici il y a le socle, les animations, les survols et l'adaptation au téléphone. */
html, body { margin: 0; background: #14113a; color: #fff4e0; font-family: 'Space Grotesk', sans-serif; scroll-behavior: smooth; overflow-x: clip; }
* { box-sizing: border-box; }
a { color: #ffd84a; }
a:hover { color: #fff4e0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid #ff5fa2; outline-offset: 4px; }

/* Le curseur « si tu invites » */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 18px; background: #14113a; border-radius: 99px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; margin-top: -13px; border-radius: 99px; background: #ffd84a; border: 6px solid #14113a; cursor: grab; }
input[type=range]::-moz-range-track { height: 18px; background: #14113a; border-radius: 99px; }
input[type=range]::-moz-range-thumb { width: 32px; height: 32px; border-radius: 99px; background: #ffd84a; border: 6px solid #14113a; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wob { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-2deg) scale(1.03); } }
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes blink { 50% { opacity: .25; } }

/* Un ticket du giveaway */
.ticket { width: 26px; height: 36px; background: #ffd84a; border: 3px solid #fff4e0; border-radius: 6px; animation: pop .35s ease-out both; }

/* Les survols de la maquette (les styles de départ sont dans la page, d'où les !important) */
.survol-1:hover { color: #ffd84a !important; }
.survol-2:hover { transform: translateY(-2px) rotate(-2deg) !important; }
.survol-3:hover, .survol-10:hover { transform: translateY(-4px) rotate(-1.5deg) !important; box-shadow: 0 14px 0 #14113a !important; }
.survol-10:hover { box-shadow: 0 16px 0 #14113a !important; }
.survol-4:hover { transform: translateY(-4px) rotate(1.5deg) !important; box-shadow: 0 14px 0 #14113a !important; }
.survol-3:active, .survol-4:active, .survol-10:active { transform: translateY(6px) !important; box-shadow: 0 4px 0 #14113a !important; }
.survol-5:hover { transform: rotate(0deg) translateY(-10px) scale(1.03) !important; }
.survol-6:hover { transform: translateY(-3px) !important; box-shadow: 0 11px 0 #14113a !important; }
.survol-6:active { transform: translateY(5px) !important; box-shadow: 0 3px 0 #14113a !important; }
.survol-7:hover { transform: rotate(0) translateY(-10px) !important; }
.survol-8:hover { transform: translateY(-6px) rotate(-.5deg) !important; }
.survol-11:hover { background: #14113a !important; }

/* Les liens de la navigation, et la barre « Rejoindre » du téléphone */
.nav-liens { display: contents; }
.barre-mobile { display: none; }
.barre-mobile.visible { transform: translateY(0) !important; }

/* Téléphone : les stickers décoratifs disparaissent, la lisibilité d'abord */
@media (max-width: 719px) {
  .bureau-seul, .nav-liens { display: none !important; }
  .barre-mobile { display: block; }
  .pied { padding-bottom: 100px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Page introuvable */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 16px; text-align: center; position: relative; overflow: hidden; }

/* Page de connexion (comptes du site) */
.page-compte { position: relative; overflow: hidden; min-height: calc(100vh - 80px); display: flex; justify-content: center; align-items: flex-start; padding: clamp(40px, 7vw, 80px) 16px 90px; }
.titre-compte { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(56px, 10vw, 100px); line-height: 1; color: #ffd84a; -webkit-text-stroke: clamp(8px, 1.5vw, 14px) #0a0820; paint-order: stroke fill; text-shadow: 0 12px 0 #0a0820; transform: rotate(-2deg); }
.carte-compte { width: 100%; background: #fff4e0; color: #14113a; border: 7px solid #14113a; border-radius: 36px; box-shadow: 0 14px 0 #14113a; padding: clamp(20px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.carte-compte .vue, .carte-compte .etape, .carte-compte form { display: flex; flex-direction: column; gap: 16px; }
.carte-compte [hidden] { display: none !important; }
.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #14113a; padding: 6px; border-radius: 999px; }
.onglets button { font: 700 16px 'Space Grotesk', sans-serif; color: #fff4e0; background: transparent; border: 0; border-radius: 999px; padding: 10px 8px; cursor: pointer; }
.onglets button[aria-selected=true] { background: #ffd84a; color: #14113a; }
.champ { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.champ small { font-weight: 500; opacity: .7; }
.champ input, .champ textarea { font: 500 17px 'Space Grotesk', sans-serif; color: #14113a; background: #fff; border: 4px solid #14113a; border-radius: 16px; padding: 12px 14px; width: 100%; }
.champ textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; resize: vertical; word-break: break-all; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: #ff5fa2; box-shadow: 0 0 0 4px rgba(255, 95, 162, .25); }
.bouton { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 19px 'Space Grotesk', sans-serif; color: #fff; background: #e8364f; text-decoration: none; border: 5px solid #14113a; border-radius: 999px; box-shadow: 0 7px 0 #14113a; padding: 12px 22px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.bouton:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 0 #14113a; }
.bouton:active { transform: translateY(5px); box-shadow: 0 2px 0 #14113a; }
.bouton:disabled { opacity: .6; cursor: wait; transform: none; }
.bouton.secondaire { background: #fff4e0; color: #14113a; }
.bouton.danger { background: #14113a; }
.boutons { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.lien { font: inherit; font-weight: 700; color: #e8364f; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.aide { margin: 0; font-size: 15px; text-align: center; }
.erreur { margin: 0; background: #e8364f; color: #fff; font-weight: 700; border-radius: 14px; padding: 10px 14px; }
.succes { margin: 0; background: #2fbf5b; color: #fff; font-weight: 700; border-radius: 14px; padding: 10px 14px; }
.sous-titre { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-size: 26px; line-height: 1.1; }
.etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.etapes li { display: flex; gap: 14px; align-items: center; }
.etapes li > span { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 4px solid #14113a; display: flex; align-items: center; justify-content: center; font: 400 22px 'Bagel Fat One', sans-serif; }
.etapes b { display: block; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: 20px; }
.etapes a { color: #e8364f; font-weight: 700; }
.moi { display: flex; align-items: center; gap: 18px; background: #14113a; color: #fff4e0; border-radius: 28px; padding: 16px 20px; }
.moi img { width: 84px; height: 84px; border-radius: 999px; border: 5px solid #ffd84a; background: #fff4e0; object-fit: cover; flex: none; }
.moi .petit { font-family: 'Press Start 2P', monospace; font-size: 10px; color: #ffd84a; }
.moi .nom { font-family: 'Bagel Fat One', sans-serif; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.moi .pseudo { font-weight: 700; opacity: .75; overflow-wrap: anywhere; }
.supprimer summary { cursor: pointer; font-weight: 700; font-size: 15px; text-align: center; color: #14113a; opacity: .7; }
.supprimer form { margin-top: 14px; }

/* Le lien « Connexion » de l'en-tête (avatar quand on est connecté) */
.lien-compte { display: flex; align-items: center; gap: 8px; color: #fff4e0; text-decoration: none; }
.lien-compte img { width: 34px; height: 34px; border-radius: 999px; border: 3px solid #ffd84a; object-fit: cover; }

/* ---- L'en-tête et le pied communs (morceaux/entete.html, morceaux/pied.html) ---- */
.entete { position: sticky; top: 0; z-index: 20; background: #14113a; border-bottom: 6px solid #0a0820; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px clamp(16px, 4vw, 48px); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff4e0; }
.logo img { width: 44px; display: block; }
.logo span { font-family: 'Bagel Fat One', sans-serif; font-size: 30px; line-height: 1; }
.logo:hover { color: #fff4e0; }
.nav-principale { display: flex; gap: clamp(14px, 2.5vw, 30px); font-weight: 700; font-size: 17px; }
.nav-principale a, .nav-mobile a { color: #fff4e0; text-decoration: none; }
.nav-principale a[aria-current=page] { color: #ffd84a; text-decoration: underline 4px; text-underline-offset: 8px; }
.entete-droite { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); font-weight: 700; font-size: 17px; }
.bouton-rejoindre { background: #ffd84a; color: #14113a !important; text-decoration: none; padding: 10px 20px; border: 4px solid #0a0820; border-radius: 999px; box-shadow: 0 5px 0 #0a0820; transition: transform .15s; white-space: nowrap; }
.nav-mobile { display: none; }
.pied { background: #0a0820; padding: 28px clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 16px; color: #fff4e0; }
.pied-logo { display: flex; align-items: center; gap: 10px; }
.pied-logo img { width: 30px; display: block; }
.pied-logo span { font-family: 'Bagel Fat One', sans-serif; font-size: 22px; }
.pied-liens { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.pied-liens a { color: #fff4e0; text-decoration: none; }
.pied-liens a:hover { color: #ffd84a; }
.pied-texte { font-family: 'Press Start 2P', monospace; font-size: 11px; }
@media (max-width: 719px) {
  .nav-principale { display: none; }
  .logo span { font-size: 24px; }
  .logo img { width: 36px; }
  .lien-compte span { display: none; }
  .bouton-rejoindre { padding: 8px 14px; }
  .nav-mobile { display: flex; order: 9; width: 100%; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 15px; border-top: 3px solid #0a0820; padding-top: 8px; margin-top: 2px; }
  .nav-mobile a { padding: 4px 6px; border-radius: 999px; }
  .nav-mobile a[aria-current=page] { background: #ffd84a; color: #14113a; }
}

/* ---- Les pages du site (tops, casino, banque, profil) ---- */
.page { position: relative; overflow: hidden; min-height: 80vh; padding: clamp(50px, 7vw, 90px) clamp(16px, 4vw, 48px) 110px; }
.page-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.page-voile { position: absolute; inset: 0; background: rgba(20, 17, 58, .45); pointer-events: none; }
.page-contenu { position: relative; max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.surtitre { font-family: 'Press Start 2P', monospace; font-size: 13px; color: #fff4e0; text-shadow: 3px 3px 0 #0a0820; }
.grand-titre { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(56px, 10vw, 120px); line-height: .95; color: #ffd84a; -webkit-text-stroke: clamp(8px, 1.6vw, 15px) #0a0820; paint-order: stroke fill; text-shadow: 0 12px 0 #0a0820; }
.titre-section { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1; color: #fff4e0; -webkit-text-stroke: clamp(6px, 1vw, 9px) #0a0820; paint-order: stroke fill; text-shadow: 0 7px 0 #0a0820; }
.chapo { margin: 0; max-width: 720px; font-weight: 700; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; color: #fff4e0; text-shadow: 0 2px 0 #0a0820; }
.carte { background: #fff4e0; color: #14113a; border: 7px solid #14113a; border-radius: 34px; box-shadow: 0 12px 0 #14113a; padding: clamp(18px, 3vw, 30px); }
.carte-nuit { background: #14113a; color: #fff4e0; border: 6px solid #fff4e0; border-radius: 30px; box-shadow: 0 10px 0 #0a0820; padding: clamp(18px, 3vw, 28px); }
.etiquette { font-family: 'Press Start 2P', monospace; font-size: 10px; letter-spacing: .02em; line-height: 1.6; }
.carte a:not(.puce):not(.bouton):not(.pastille), .tuile a:not(.bouton) { color: #e8364f; font-weight: 700; }
.puce, .pastille { color: #14113a; }
.gros-chiffre { font-family: 'Bagel Fat One', sans-serif; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.tuile { background: #fff4e0; color: #14113a; border: 6px solid #14113a; border-radius: 28px; box-shadow: 0 9px 0 #14113a; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.tuile .etiquette { opacity: .8; }
.tuile small { font-weight: 700; opacity: .75; }
.pastille { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 3px solid #14113a; background: #ffd84a; color: #14113a; }
.jauge { height: 18px; background: #14113a; border-radius: 999px; overflow: hidden; border: 3px solid #14113a; }
.jauge > span { display: block; height: 100%; background: linear-gradient(90deg, #ff5fa2, #ffd84a); border-radius: 999px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.puces { display: flex; flex-wrap: wrap; gap: 10px; }
.puce { font: 700 16px 'Space Grotesk', sans-serif; color: #14113a; background: #fff4e0; border: 4px solid #14113a; border-radius: 999px; box-shadow: 0 5px 0 #14113a; padding: 8px 16px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.puce:hover { transform: translateY(-2px); }
.puce[aria-pressed=true], .puce[aria-selected=true] { background: #ffd84a; transform: translateY(3px); box-shadow: 0 2px 0 #14113a; }
.message-vide { text-align: center; font-weight: 700; font-size: 18px; padding: 30px 10px; }
.chargement { text-align: center; font-family: 'Press Start 2P', monospace; font-size: 12px; color: #fff4e0; padding: 40px; animation: blink 1s steps(1) infinite; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.positif { color: #1f9b47; }
.negatif { color: #e8364f; }
.carte-nuit .positif { color: #2fbf5b; }
.carte-nuit .negatif { color: #ff6b81; }

/* Tops */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: clamp(10px, 2vw, 22px); }
.marche { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #fff4e0; }
.marche .avatar { width: clamp(70px, 11vw, 120px); height: clamp(70px, 11vw, 120px); border-radius: 999px; border: 6px solid #14113a; background: #fff4e0; object-fit: cover; box-shadow: 0 8px 0 #0a0820; }
.marche:nth-child(2) .avatar { width: clamp(90px, 14vw, 150px); height: clamp(90px, 14vw, 150px); border-color: #ffd84a; }
.marche .nom { font-family: 'Bagel Fat One', sans-serif; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.05; -webkit-text-stroke: 5px #0a0820; paint-order: stroke fill; overflow-wrap: anywhere; }
.marche .socle { width: 100%; border: 6px solid #14113a; border-bottom: 0; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 14px 8px; color: #14113a; }
.marche .socle b { font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.marche .valeur { font-weight: 700; font-size: clamp(13px, 1.6vw, 16px); }
.marche:nth-child(1) .socle { background: #c7a8ff; min-height: clamp(110px, 14vw, 150px); }
.marche:nth-child(2) .socle { background: #ffd84a; min-height: clamp(150px, 19vw, 200px); }
.marche:nth-child(3) .socle { background: #ff9f6b; min-height: clamp(90px, 11vw, 120px); }
.couronne { font-size: clamp(34px, 5vw, 50px); line-height: 1; margin-bottom: -16px; animation: bob 2.4s ease-in-out infinite; }
.liste-top { display: flex; flex-direction: column; gap: 12px; }
.ligne-top { display: grid; grid-template-columns: 54px 52px 1fr auto; align-items: center; gap: 14px; background: #fff4e0; color: #14113a; border: 5px solid #14113a; border-radius: 22px; box-shadow: 0 7px 0 #14113a; padding: 10px 18px 10px 12px; }
.ligne-top.est-moi, .marche.est-moi .socle { outline: 5px dashed #ff5fa2; outline-offset: 4px; }
.ligne-top .rang { font-family: 'Bagel Fat One', sans-serif; font-size: 28px; text-align: center; }
.ligne-top img { width: 52px; height: 52px; border-radius: 999px; border: 4px solid #14113a; object-fit: cover; background: #fff; }
.ligne-top .nom { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.ligne-top .niv { font-size: 14px; opacity: .7; font-weight: 700; }
.ligne-top .valeur { font-family: 'Bagel Fat One', sans-serif; font-size: clamp(18px, 2.4vw, 24px); text-align: right; white-space: nowrap; }
@media (max-width: 560px) { .ligne-top { grid-template-columns: 40px 44px 1fr; } .ligne-top .valeur { grid-column: 2 / -1; text-align: left; } .ligne-top img { width: 44px; height: 44px; } }

/* Banque */
.anneau { width: min(280px, 70vw); aspect-ratio: 1; border-radius: 999px; border: 7px solid #14113a; box-shadow: 0 10px 0 #14113a; display: grid; place-items: center; position: relative; }
.anneau::after { content: ''; position: absolute; inset: 17%; border-radius: 999px; background: #fff4e0; border: 6px solid #14113a; }
.anneau > div { position: relative; z-index: 1; text-align: center; max-width: 62%; }
.anneau .gros-chiffre { font-size: clamp(22px, 3vw, 30px); }
.legende { display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.legende span { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 3px solid #14113a; vertical-align: -3px; margin-right: 8px; }
.explications { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.explication { display: flex; flex-direction: column; gap: 10px; }
.explication .icone { width: 64px; height: 64px; border-radius: 20px; border: 5px solid #14113a; display: grid; place-items: center; font-size: 32px; }
.explication h3 { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: 26px; line-height: 1.05; }
.explication p { margin: 0; font-weight: 500; font-size: 16.5px; line-height: 1.45; }
.flux { display: flex; flex-direction: column; gap: 12px; }
.flux-ligne { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 12px; align-items: center; font-weight: 700; }
@media (max-width: 560px) { .flux-ligne { grid-template-columns: 1fr auto; } .flux-barre { grid-column: 1 / -1; grid-row: 2; } }
.flux-barre { height: 22px; border-radius: 999px; background: rgba(20, 17, 58, .12); overflow: hidden; }
.flux-barre span { display: block; height: 100%; border-radius: 999px; }
.bareme { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-weight: 700; }
.bareme td { padding: 10px 14px; background: #fff; border-top: 3px solid #14113a; border-bottom: 3px solid #14113a; }
.bareme td:first-child { border-left: 3px solid #14113a; border-radius: 14px 0 0 14px; }
.bareme td:last-child { border-right: 3px solid #14113a; border-radius: 0 14px 14px 0; text-align: right; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: 20px; }

/* Profil */
.profil-tete { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 34px); }
.anneau-niveau { --p: 0; width: clamp(150px, 22vw, 210px); aspect-ratio: 1; border-radius: 999px; padding: 14px; background: conic-gradient(#ffd84a calc(var(--p) * 1%), #14113a 0); border: 6px solid #0a0820; box-shadow: 0 10px 0 #0a0820; position: relative; flex: none; }
.anneau-niveau img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; border: 6px solid #0a0820; background: #fff4e0; }
.anneau-niveau .niv { position: absolute; right: -6px; bottom: -6px; background: #ff5fa2; color: #fff; border: 5px solid #0a0820; border-radius: 999px; padding: 6px 14px; font-family: 'Bagel Fat One', sans-serif; font-size: 22px; line-height: 1; }
.profil-nom { margin: 0; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(44px, 7vw, 84px); line-height: .95; color: #fff4e0; -webkit-text-stroke: clamp(7px, 1.2vw, 12px) #0a0820; paint-order: stroke fill; text-shadow: 0 9px 0 #0a0820; overflow-wrap: anywhere; }
.releve { display: flex; flex-direction: column; gap: 8px; }
.releve-ligne { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 14px; background: #fff; border: 3px solid #14113a; border-radius: 16px; font-weight: 700; }
.releve-ligne small { grid-column: 1; font-weight: 500; opacity: .7; }
.releve-ligne b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: 20px; }
.interrupteur { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 62px; height: 34px; border-radius: 999px; background: #14113a; border: 4px solid #14113a; position: relative; cursor: pointer; flex: none; }
.interrupteur input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 999px; background: #fff4e0; transition: transform .2s; }
.interrupteur input:checked { background: #2fbf5b; }
.interrupteur input:checked::after { transform: translateX(28px); }
.formulaire-ligne { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.formulaire-ligne input { flex: 1 1 140px; min-width: 0; font: 700 18px 'Space Grotesk', sans-serif; color: #14113a; background: #fff; border: 4px solid #14113a; border-radius: 16px; padding: 10px 14px; }
.formulaire-ligne .bouton { flex: 0 0 auto; font-size: 17px; padding: 10px 18px; }

/* Casino */
.barre-casino { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.solde { display: flex; align-items: center; gap: 12px; background: #14113a; color: #fff4e0; border: 5px solid #fff4e0; border-radius: 999px; padding: 10px 22px; box-shadow: 0 7px 0 #0a0820; }
.solde .gros-chiffre { color: #ffd84a; font-size: clamp(26px, 3.4vw, 36px); }
.solde.bouge { animation: pop .4s ease-out; }
.mises { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mises input { width: 120px; font: 700 20px 'Space Grotesk', sans-serif; color: #14113a; background: #fff; border: 4px solid #14113a; border-radius: 16px; padding: 8px 12px; text-align: center; }
.jeu { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.resultat { min-height: 52px; text-align: center; font-family: 'Bagel Fat One', sans-serif; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.resultat small { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; opacity: .8; margin-top: 4px; }
.resultat.gagne { color: #1f9b47; animation: pop .45s ease-out; }
.resultat.perdu { color: #e8364f; }
.rouleaux { display: flex; gap: clamp(8px, 2vw, 18px); background: #14113a; padding: clamp(12px, 2vw, 20px); border-radius: 30px; border: 6px solid #0a0820; box-shadow: inset 0 0 0 5px #ff5fa2, 0 10px 0 #0a0820; }
.rouleau { width: clamp(80px, 15vw, 130px); aspect-ratio: .85; background: #fff4e0; border: 5px solid #0a0820; border-radius: 20px; display: grid; place-items: center; font-size: clamp(46px, 9vw, 78px); overflow: hidden; }
.rouleau.tourne span { animation: defile .09s linear infinite; }
.rouleau.arrete span { animation: pop .3s ease-out; }
@keyframes defile { 0% { transform: translateY(-30%); filter: blur(2px); } 100% { transform: translateY(30%); filter: blur(2px); } }
.table-gains { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-weight: 700; }
.table-gains span { background: #fff; border: 3px solid #14113a; border-radius: 999px; padding: 4px 12px; }
.roue-zone { position: relative; width: min(320px, 78vw); aspect-ratio: 1; }
.roue { width: 100%; height: 100%; border-radius: 999px; border: 8px solid #0a0820; box-shadow: 0 10px 0 #0a0820, inset 0 0 0 10px #c99a3b; transition: transform 4.2s cubic-bezier(.12, .8, .14, 1); }
.roue-centre { position: absolute; inset: 30%; border-radius: 999px; background: #14113a; border: 6px solid #ffd84a; display: grid; place-items: center; color: #fff4e0; font-family: 'Bagel Fat One', sans-serif; font-size: clamp(30px, 7vw, 46px); }
.roue-centre.rouge { background: #e8364f; } .roue-centre.noir { background: #14113a; } .roue-centre.vert { background: #1f9b47; }
.roue-fleche { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #ffd84a; filter: drop-shadow(0 4px 0 #0a0820); z-index: 2; }
.tapis-numeros { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; width: 100%; max-width: 640px; }
.tapis-numeros button { font: 400 15px 'Bagel Fat One', sans-serif; color: #fff; border: 3px solid #14113a; border-radius: 10px; padding: 7px 0; cursor: pointer; }
.tapis-numeros button.rouge { background: #e8364f; } .tapis-numeros button.noir { background: #14113a; } .tapis-numeros button.vert { background: #1f9b47; grid-row: span 3; }
.tapis-numeros button[aria-pressed=true] { outline: 4px solid #ffd84a; outline-offset: 1px; transform: scale(1.08); }
@media (max-width: 560px) { .tapis-numeros { grid-template-columns: repeat(7, 1fr); } .tapis-numeros button.vert { grid-row: auto; grid-column: span 7; } }
.table-bj { width: 100%; display: flex; flex-direction: column; gap: 18px; align-items: center; background: radial-gradient(circle at 50% 0, #2fbf5b, #157a3a 70%); border: 7px solid #0a0820; border-radius: 40px; box-shadow: inset 0 0 0 6px #c99a3b, 0 12px 0 #0a0820; padding: clamp(18px, 3vw, 30px); color: #fff4e0; }
.main-bj { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.main-bj .etiquette { background: #14113a; padding: 6px 10px; border-radius: 999px; }
.cartes-bj { display: flex; gap: 0; min-height: 132px; }
.carte-jeu { width: clamp(70px, 12vw, 92px); aspect-ratio: .7; background: #fff; color: #14113a; border: 4px solid #0a0820; border-radius: 14px; box-shadow: 0 6px 0 rgba(10, 8, 32, .5); margin-left: -18px; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 8px; font-family: 'Bagel Fat One', sans-serif; font-size: clamp(20px, 3vw, 26px); line-height: 1; animation: distribue .35s ease-out both; }
.carte-jeu:first-child { margin-left: 0; }
.carte-jeu.rouge { color: #e8364f; }
.carte-jeu .milieu { align-self: center; font-size: clamp(30px, 5vw, 40px); }
.carte-jeu .bas { align-self: flex-end; transform: rotate(180deg); }
.carte-jeu.dos { background: repeating-linear-gradient(45deg, #ff5fa2 0 8px, #c7a8ff 8px 16px); }
@keyframes distribue { from { transform: translateY(-40px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ciel { position: relative; width: 100%; height: clamp(260px, 40vw, 380px); background: linear-gradient(#0a0820, #2a1f6b); border: 7px solid #0a0820; border-radius: 34px; overflow: hidden; box-shadow: 0 12px 0 #0a0820; }
.ciel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ciel .multiplicateur { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font-family: 'Bagel Fat One', sans-serif; font-size: clamp(54px, 10vw, 100px); color: #fff4e0; -webkit-text-stroke: 10px #0a0820; paint-order: stroke fill; }
.ciel .multiplicateur.explose { color: #e8364f; animation: pop .4s ease-out; }
.ciel .multiplicateur.encaisse { color: #2fbf5b; }
.fusee { position: absolute; width: 90px; transition: left .25s linear, bottom .25s linear; filter: drop-shadow(0 6px 0 #0a0820); }
.champ-auto { width: 90px; font: 700 18px 'Space Grotesk', sans-serif; color: #14113a; background: #fff; border: 4px solid #14113a; border-radius: 14px; padding: 8px 10px; text-align: center; }
.historique { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.historique span { font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 3px solid #14113a; background: #fff; color: #14113a; }
.historique span.gagne { background: #2fbf5b; color: #fff; }
.historique span.perdu { background: #e8364f; color: #fff; }

/* ---- Casino : la salle de jeu ---- */
/* Le cadre d'ampoules : deux rangées de points (jaunes, roses) qui s'allument à tour de rôle */
.salle { position: relative; padding: 18px; border-radius: 46px; background: #14113a; border: 6px solid #0a0820; box-shadow: 0 14px 0 #0a0820, 0 0 40px rgba(255, 95, 162, .35); }
.salle::before { content: ''; position: absolute; inset: 3px; padding: 10px; border-radius: 40px; pointer-events: none;
  background: radial-gradient(circle, #ffd84a 0 3px, transparent 4px) 0 0 / 22px 22px, radial-gradient(circle, #ff5fa2 0 3px, transparent 4px) 11px 11px / 22px 22px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ampoules .8s steps(1) infinite; }
@keyframes ampoules { 50% { background-position: 11px 11px, 0 0; } }
.salle > .carte { position: relative; box-shadow: none; }
.secoue { animation: secoue .45s ease-in-out; }
@keyframes secoue { 20%, 60% { transform: translateX(-8px) rotate(-.4deg); } 40%, 80% { transform: translateX(8px) rotate(.4deg); } }

/* Choisir son jeu */
.tuiles-jeux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tuile-jeu { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font: 700 15px 'Space Grotesk', sans-serif; color: #14113a; background: #fff4e0; border: 6px solid #14113a; border-radius: 28px; box-shadow: 0 9px 0 #14113a; padding: 14px 10px 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.tuile-jeu:hover { transform: translateY(-4px) rotate(-1deg); }
.tuile-jeu .emoji { font-size: clamp(38px, 5vw, 54px); line-height: 1.1; }
.tuile-jeu b { font-family: 'Bagel Fat One', sans-serif; font-weight: 400; font-size: clamp(20px, 2.4vw, 26px); line-height: 1; }
.tuile-jeu small { font-weight: 700; opacity: .7; }
.tuile-jeu .max { margin-top: 4px; font-size: 13px; background: #14113a; color: #ffd84a; border-radius: 999px; padding: 3px 10px; }
.tuile-jeu[aria-selected=true] { background: #ffd84a; transform: translateY(5px); box-shadow: 0 4px 0 #14113a; }
@media (max-width: 719px) { .tuiles-jeux { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tuile-jeu small { display: none; } }

/* La mise : des jetons */
.zone-mise { display: flex; flex-direction: column; gap: 12px; }
.ligne-mise { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mise-affichee { display: flex; align-items: center; gap: 8px; }
.mise-affichee input { width: 110px; font: 400 26px 'Bagel Fat One', sans-serif; color: #14113a; background: #ffd84a; border: 4px solid #fff4e0; border-radius: 16px; padding: 4px 10px; text-align: center; }
.jeton { width: 62px; height: 62px; border-radius: 999px; border: 4px solid #0a0820; display: grid; place-items: center; font: 400 13px 'Bagel Fat One', sans-serif; color: #fff; cursor: pointer; position: relative; box-shadow: 0 5px 0 #0a0820; transition: transform .12s; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.jeton::before { content: ''; position: absolute; inset: 5px; border-radius: 999px; border: 3px dashed rgba(255, 255, 255, .85); }
.jeton:hover { transform: translateY(-3px) rotate(-8deg); }
.jeton:active { transform: translateY(3px); box-shadow: 0 2px 0 #0a0820; }
.mini-bouton { font: 700 15px 'Space Grotesk', sans-serif; color: #14113a; background: #fff4e0; border: 3px solid #0a0820; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.stats-session { display: flex; flex-wrap: wrap; gap: 10px; }
.stats-session span { font-weight: 700; font-size: 15px; background: rgba(255, 244, 224, .12); border: 3px solid rgba(255, 244, 224, .35); border-radius: 999px; padding: 5px 12px; }
.stats-session b.positif { color: #2fbf5b; } .stats-session b.negatif { color: #ff6b81; }

/* Les fêtes : confettis et grosse bannière */
.confettis { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confettis i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: tombe var(--d, 1.8s) cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes tombe { to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 720deg)); opacity: .9; } }
.banniere-gain { position: fixed; left: 50%; top: 40%; z-index: 51; pointer-events: none; transform: translate(-50%, -50%); text-align: center; font-family: 'Bagel Fat One', sans-serif; font-size: clamp(54px, 11vw, 120px); line-height: .95; color: #ffd84a; -webkit-text-stroke: 14px #0a0820; paint-order: stroke fill; text-shadow: 0 12px 0 #0a0820; animation: banniere 2.4s ease-out forwards; white-space: nowrap; }
.banniere-gain small { display: block; font-size: .42em; color: #fff4e0; -webkit-text-stroke: 9px #0a0820; }
@keyframes banniere { 0% { transform: translate(-50%, -50%) scale(0) rotate(-12deg); } 15% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); } 25%, 80% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }

/* Machine : le levier */
.machine-et-levier { display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); }
.levier { width: 34px; height: 170px; position: relative; cursor: pointer; flex: none; background: none; border: 0; padding: 0; }
.levier::before { content: ''; position: absolute; left: 13px; top: 26px; width: 9px; height: 120px; background: #c99a3b; border: 3px solid #0a0820; border-radius: 6px; transform-origin: 50% 100%; transition: transform .2s; }
.levier::after { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #ff8aa8, #e8364f 60%); border: 4px solid #0a0820; transition: transform .2s; }
.levier.tire::before { transform: scaleY(-.6); }
.levier.tire::after { transform: translateY(150px); }
.levier:disabled { cursor: wait; }
@media (max-width: 719px) { .levier { display: none; } }

/* Roulette : la bille et les derniers numéros */
.bille-orbite { position: absolute; inset: 0; pointer-events: none; transition: transform 4.2s cubic-bezier(.12, .8, .14, 1); z-index: 1; }
.bille { position: absolute; left: 50%; top: 9%; width: clamp(12px, 3.6vw, 18px); height: clamp(12px, 3.6vw, 18px); margin-left: calc(clamp(12px, 3.6vw, 18px) / -2); border-radius: 999px; background: radial-gradient(circle at 35% 35%, #fff, #c9c4e8); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.derniers-numeros { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 34px; }
.derniers-numeros span { width: 34px; height: 34px; border-radius: 999px; border: 3px solid #0a0820; display: grid; place-items: center; color: #fff; font: 400 15px 'Bagel Fat One', sans-serif; animation: pop .3s ease-out; }

/* Crash : un ciel étoilé */
.ciel { background: radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 2px) 0 0 / 90px 90px, radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .7) 0 1px, transparent 2px) 0 0 / 130px 130px, linear-gradient(#0a0820, #2a1f6b); }
.ciel.vole { animation: defile-ciel 6s linear infinite; }
@keyframes defile-ciel { to { background-position: -90px 90px, -130px 130px, 0 0; } }
