/* Page d'accueil OasisMax : barre latérale fixe à gauche (Rolly, Dicey), contenu au centre,
   barre d'onglets en verre en bas sur téléphone (comme le Clipping Center). */

.cote { position: fixed; top: 12px; bottom: 12px; left: 12px; z-index: 30; width: 268px; border-radius: 24px; padding: 12px;
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; }
.cote::-webkit-scrollbar { display: none; }

.page { margin-left: 292px; padding-right: 16px; }
.page > .entete { max-width: none; margin: 12px 0 0; }
.lobby { max-width: 1240px; margin: 0 auto; padding: 24px 0 70px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }

/* Titre de section : pastille, titre, « View all » et flèches (Dicey). */
.tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tete .bulle { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex: none; }
.tete .bulle .ic { width: 18px; height: 18px; }
.tete h2 { margin: 0; font-size: 22px; }
.tete .droite { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tete .bouton-verre { height: 38px; padding: 0 16px; font-size: 13.5px; }
.tete .bouton-rond { width: 38px; height: 38px; }
.tete .bouton-rond .ic { width: 16px; height: 16px; }

/* Rangées de jeux qui défilent. Le rembourrage laisse la place au survol (la tuile monte de 6 px). */
.rail { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 18px; margin: -8px -2px -18px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
.rail > .tuile, .rail .jeu { width: 172px; }
.rail .jeu .tuile { width: 100%; }

/* Originals : le nombre de joueurs sous chaque tuile (Stake). */
.jeu { display: grid; gap: 8px; }
.jeu small { display: flex; align-items: center; gap: 7px; padding-left: 2px; font-size: 12.5px; font-weight: 600; color: var(--doux); white-space: nowrap; }

/* Deux portes en haut quand la barre latérale n'est plus là (Stake, Rainbet) : le casino et la course. */
.acces { display: none; }
.porte { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 16px 18px; border-radius: 20px; }
.porte .titre { position: relative; z-index: 1; font-size: 24px; }
.porte small { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.porte img { position: absolute; right: -14px; bottom: -22px; width: 116px; pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.porte:hover img { transform: translateY(-4px) rotate(-6deg); }
.porte #compte { font-variant-numeric: tabular-nums; }
.porte #compte b { font-weight: 800; color: #fff; }
.tuile.slot { aspect-ratio: 154 / 160; }
.tuile.slot::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, rgba(2, 4, 11, 0.9)); pointer-events: none; }

/* Originals à venir : tuile en verre avec trame, en attendant leurs visuels. */
.bientot { position: relative; overflow: hidden; width: 172px; aspect-ratio: 155 / 210; border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.bientot .trame { position: absolute; inset: 0; opacity: 0.7; -webkit-mask-image: radial-gradient(circle at 50% 35%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 35%, #000, transparent 70%); }
.bientot .anneau { position: absolute; left: 50%; top: 36%; width: 76px; height: 76px; transform: translate(-50%, -50%); opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(59, 98, 255, 0.7)); }
.bientot .titre { position: relative; font-size: 22px; }
.bientot small { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--doux); }
.bientot .badge { position: absolute; top: 9px; left: 9px; height: 24px; padding: 0 9px; font-size: 10.5px; }

/* Pied de page. */
.pied { border-radius: 28px; padding: 40px 36px 26px; display: grid; gap: 30px; }
.pied .colonnes { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
.pied .marque p { margin: 12px 0 0; color: var(--doux); font-size: 14.5px; max-width: 280px; line-height: 1.5; }
.pied h4 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eclat); }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--doux); }
.pied ul a:hover { color: var(--texte); }
.pied .reseaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pied .reseaux a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pied .bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--ligne); font-size: 13px; color: var(--doux); }
/* Les colonnes sont des accordéons : ouvertes sur ordinateur, fermées sur téléphone (Stake, Rainbet). */
.pied details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.pied details summary::-webkit-details-marker { display: none; }
.pied details summary .ic { display: none; width: 16px; height: 16px; color: var(--doux); transform: rotate(90deg); transition: transform 0.3s; }
.pied details[open] summary .ic { transform: rotate(-90deg); }
/* Cryptos acceptées et badges (Rainbet, Stake). */
.confiance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--ligne); }
.jetons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.etiquette-pied { margin-right: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eclat); }
.jeton { display: inline-grid; place-items: center; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.badges-pied { display: flex; flex-wrap: wrap; gap: 8px; }
.badges-pied .puce { height: 32px; }

/* Drop flotte en bas à droite et ouvre le chat (Rolly). */
.bulle-drop { position: fixed; z-index: 50; right: 22px; bottom: 22px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bulle-drop img { width: 86px; max-width: none; margin-top: -16px; filter: drop-shadow(0 8px 16px rgba(18, 56, 255, 0.55)); }
.bulle-drop:hover { transform: translateY(-4px) scale(1.06); }

/* Barre d'onglets du téléphone, pastille bleue qui glisse. */
.barre-mobile { display: none; }

@media (max-width: 1180px) {
  .cote { display: none; }
  .page { margin-left: 0; padding: 0 12px; }
  .acces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 1080px) {
  /* Premier écran : haut de page, les deux portes, puis les Originals sans avoir à défiler (Stake, Rainbet).
     Ensuite des jeux, puis seulement trois blocs d'info compacts en bas, comme Rainbet. */
  .haut { display: contents; }
  .heros { order: 1; }
  .acces { order: 2; }
  .originals { order: 3; }
  .gains { order: 4; }
  .promos { order: 5; }
  .slots { order: 6; }
  .fournisseurs { order: 7; }
  .recompenses { order: 8; }
  .paris { order: 9; }
  .aide { order: 10; }
  .pied { order: 11; }
  .barre-jeux, .carte-coffre { display: none; }
  .heros { min-height: 340px; }
  /* Promos : un bandeau qu'on fait glisser au lieu de trois cartes empilées (Duelbits). */
  .promos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .promos::-webkit-scrollbar { display: none; }
  .promo { flex: none; width: 46%; scroll-snap-align: start; }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
  .lobby { padding-bottom: 170px; }
  .accueil .bascule { bottom: 96px; }
  .bulle-drop { right: 12px; bottom: 88px; width: 54px; height: 54px; }
  .bulle-drop img { width: 74px; margin-top: -14px; }
  .barre-mobile { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: max(env(safe-area-inset-bottom), 10px);
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border-radius: 26px; }
  .barre-mobile .pastille { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 21px;
    transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1), width 0.55s cubic-bezier(0.34, 1.3, 0.64, 1); }
  .barre-mobile a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px;
    font-size: 10.5px; font-weight: 700; color: var(--doux); transition: color 0.3s; }
  .barre-mobile a[aria-selected="true"] { color: #fff; }
}
@media (max-width: 640px) {
  .page { padding: 0 8px; }
  .page > .entete { margin: 8px 0 0; }
  .lobby { gap: 20px; padding-top: 12px; }
  .heros { min-height: 0; }
  .promos { gap: 10px; margin: 0 -8px; padding: 0 8px; }
  .promo { width: 84%; min-height: 176px; padding: 18px; scroll-snap-align: center; }
  .promo h3 { font-size: 22px; }
  .promo .objet { width: 150px; }
  .acces { gap: 10px; }
  .porte { min-height: 74px; padding: 12px 14px; }
  /* La bascule de l'aperçu passe en bas de page : elle cachait les jeux du premier écran. */
  .accueil .bascule { position: static; transform: none; width: max-content; margin: -150px auto 110px; }
  .porte .titre { font-size: 20px; }
  .porte img { width: 92px; right: -16px; bottom: -18px; }
  .porte .dotation { display: none; }
  .tete { margin-bottom: 12px; }
  .tete h2 { font-size: 19px; }
  .tete .bouton-rond { display: none; }
  .tete .bouton-verre { height: 32px; padding: 0 12px; font-size: 12.5px; }
  .rail { gap: 10px; }
  .rail > .tuile, .rail .jeu, .bientot { width: 28vw; }
  .rail .tuile.slot { width: 34vw; }
  .jeu { gap: 6px; }
  .jeu small { font-size: 11px; gap: 5px; padding-left: 1px; }
  .jeu .point-live { width: 6px; height: 6px; }
  .tuile .badge { top: 6px; left: 6px; height: 20px; padding: 0 7px; font-size: 9.5px; }
  .tuile .nom { bottom: 8px; gap: 2px; }
  .tuile .nom b { font-size: 15px; }
  .tuile .nom small { font-size: 6.5px; letter-spacing: 0.14em; }
  .bientot { padding: 10px; border-radius: 16px; }
  .bientot .titre { font-size: 15px; }
  .bientot small { font-size: 8.5px; }
  .bientot .anneau { width: 48px; height: 48px; }
  .pied { padding: 28px 20px 22px; }
  .pied .colonnes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pied .marque { margin-bottom: 14px; }
  .pied details { border-radius: 14px; padding: 0 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ligne); }
  .pied details summary { pointer-events: auto; cursor: pointer; min-height: 52px; }
  .pied details summary .ic { display: block; }
  .pied details h4 { margin: 0; }
  .pied details ul { padding-bottom: 16px; }
  .confiance { flex-direction: column; align-items: flex-start; }
}
