/* Page Osark Game : « écran de sélection » façon console (choix de Florian, 14/10), couleur ORANGE du logo Osark Game.
   La base (barre du haut, boutons, pied de page) vient de ../service/service.css ; ici le fond, la typo, l'accent et la disposition. */
.page-game {
  --orange: #fb881b;        /* orange clair du logo */
  --orange-moyen: #df6118;  /* orange moyen du logo */
  --orange-sombre: #8e2b22; /* rouge brique du logo */
  --sur-orange: #2a0f00;
  --noir: #070608;
  --panneau: #0f0d10;
  --affiche: 'Anton', 'Bricolage Grotesque', Impact, sans-serif;
  background: var(--noir);
  overflow-x: clip;
}
.page-game .entete { border-bottom-color: rgba(251, 136, 27, .18); }
.page-game .entete nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.page-game .entete .bouton--plein { background: var(--orange); color: var(--sur-orange); }
.page-game .grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* l'écran de sélection : tient dans la hauteur de l'écran */
.selection { display: grid; grid-template-columns: minmax(280px, 30%) minmax(0, 1fr); min-height: calc(100svh - 107px); }
.selection > * { min-width: 0; } /* la rangée d onglets défile seule sur téléphone, sans élargir la page */

/* colonne de gauche : la marque et la liste des jeux */
.menu { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 30px); padding: clamp(24px, 4vh, 44px) clamp(20px, 3vw, 44px);
  background: linear-gradient(180deg, var(--panneau), #0a080b); border-right: 1px solid rgba(251, 136, 27, .16); }
.menu__marque { display: flex; align-items: center; gap: 14px; }
.menu__marque img { width: clamp(64px, 5.5vw, 88px); height: auto; filter: drop-shadow(0 0 16px rgba(251, 136, 27, .35)); }
.menu__marque span { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1 var(--affiche); text-transform: uppercase; letter-spacing: .04em; }
.menu h1 { font: 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.05 var(--affiche); text-transform: uppercase; color: var(--texte-doux); }
.menu h1 span { display: block; background: linear-gradient(90deg, var(--orange-sombre), var(--orange-moyen) 35%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .1em; margin-top: -.1em; }

.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
/* Retour R7 du 15/10 : ServeurGG n'est pas un jeu, il a sa propre rubrique dans la liste. */
.liste__rubrique { padding: 0 20px 2px; font: 700 .72rem var(--police); letter-spacing: .16em; text-transform: uppercase; color: var(--texte-doux); }
.liste__rubrique--separee { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(251, 136, 27, .2); }
.liste button { width: 100%; text-align: left; cursor: pointer; display: grid; gap: 2px; padding: 14px 16px 14px 20px; border-radius: 10px;
  border: 0; background: transparent; color: var(--texte-doux); position: relative; transition: background .2s, color .2s; }
.liste button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: transparent; transition: background .2s; }
.liste button:hover { background: rgba(251, 136, 27, .07); color: var(--texte); }
.liste button[aria-selected="true"] { background: rgba(251, 136, 27, .12); color: var(--texte); }
.liste button[aria-selected="true"]::before { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.liste__nom { font: 400 clamp(1.3rem, 1.9vw, 1.7rem)/1.05 var(--affiche); text-transform: uppercase; letter-spacing: .02em; }
.liste__type { font: 600 .78rem var(--police); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.liste__bientot { padding: 14px 16px 14px 20px; border: 1.5px dashed rgba(251, 136, 27, .28); border-radius: 10px; color: var(--texte-doux); font-size: .9rem; }
.liste__bientot strong { display: block; font: 400 1.2rem/1.1 var(--affiche); text-transform: uppercase; color: var(--texte); }

/* la scène de droite : le jeu choisi en très grand */
/* Retour R6 du 15/10 : le panneau est un écran posé dans la page (marge, coins, ombre flottante), rien ne paraît coupé à droite. */
.scene { position: relative; overflow: hidden; background: #000; margin: clamp(14px, 2vw, 28px); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .4), 0 14px 28px -8px rgba(0, 0, 0, .55), 0 50px 100px -20px rgba(0, 0, 0, .8); }
.ecran-jeu { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s; }
.ecran-jeu.actif { opacity: 1; visibility: visible; transition: opacity .45s; }
.ecran-jeu__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecran-jeu__fond--pixel, #logo-flubber { image-rendering: pixelated; }
.ecran-jeu__fond--haut-gauche { object-position: left top; }
.ecran-jeu::before { content: ""; position: absolute; inset: 0; z-index: 1;
  /* Retour R4 du 15/10 : voile franc sous le texte pour qu'il se lise d'un coup d'oeil. */
  background: linear-gradient(to top, rgba(7, 6, 8, .97) 0%, rgba(7, 6, 8, .82) 40%, rgba(7, 6, 8, .25) 75%, rgba(7, 6, 8, 0) 100%),
              linear-gradient(to right, rgba(7, 6, 8, .9) 0%, rgba(7, 6, 8, .6) 40%, rgba(7, 6, 8, 0) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .ecran-jeu.actif .ecran-jeu__fond { animation: zoom-lent 18s ease-out both; }
  @keyframes zoom-lent { from { transform: scale(1.08); } to { transform: scale(1); } }
}
.ecran-jeu__infos { position: relative; z-index: 2; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); padding: clamp(24px, 4vw, 56px); max-width: 640px; }
/* Retour du 15/10 : le logo ne doit jamais sortir du haut du panneau (il suit la hauteur de l'écran). */
.ecran-jeu__logo { display: block; width: auto; max-width: min(100%, 320px); max-height: clamp(90px, 22vh, 200px); height: auto; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .8)); }
.ecran-jeu h2 { font: 400 clamp(2.4rem, 5vw, 4.4rem)/.95 var(--affiche); text-transform: uppercase; }
.ecran-jeu__logo + h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* le logo dit déjà le nom */
.ecran-jeu__accroche { margin-top: 14px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
.ecran-jeu__badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ecran-jeu__badges span { font: 700 .72rem var(--police); letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(251, 136, 27, .16); color: var(--orange); backdrop-filter: blur(4px); }
.ecran-jeu ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 4px; color: #e6e1dc; }
.ecran-jeu ul li::before { content: "▸ "; color: var(--orange); }
.ecran-jeu__action { margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(90deg, var(--orange-moyen), var(--orange)); color: var(--sur-orange); font: 400 1.5rem/1 var(--affiche); text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 12px 30px -8px rgba(251, 136, 27, .55); transition: transform .2s, box-shadow .2s; }
.ecran-jeu__action:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(251, 136, 27, .7); }
.ecran-jeu__action:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Retour R4 du 15/10 : ServeurGG en fenêtre qui flotte à droite, le texte à gauche ne passe plus sur sa capture. */
.ecran-jeu--fenetre { background: radial-gradient(120% 90% at 85% 20%, rgba(251, 136, 27, .16), rgba(7, 6, 8, 0) 60%), #0b0a0c; align-items: center; }
.ecran-jeu--fenetre::before { display: none; }
/* Le slime de Flubber qui se promène en bas de la fiche (script de la page). */
.slime-balade { position: absolute; z-index: 1; left: 0; bottom: 10px; width: clamp(56px, 6vw, 84px); height: auto; image-rendering: pixelated; pointer-events: none;
  transform: translateX(-120px); transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
@media (prefers-reduced-motion: reduce) { .slime-balade { transform: none; left: auto; right: 24px; } }
/* Retour R12 du 15/10 : vue ordinateur + vue téléphone de chaque jeu, comme le hero de l'accueil en plus petit. */
.appareils { position: absolute; z-index: 2; right: clamp(28px, 4vw, 56px); top: 46%; width: min(44%, 620px); transform: translateY(-50%); }
.appareils__pc { border-radius: 10px; overflow: hidden; background: #0b0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 4px rgba(0, 0, 0, .4), 0 14px 28px -8px rgba(0, 0, 0, .55), 0 50px 100px -20px rgba(0, 0, 0, .85); }
.appareils__barre { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #1a1714; color: #a39a90; font: 600 .7rem var(--police); }
.appareils__barre i { width: 8px; height: 8px; border-radius: 50%; background: #4a423b; }
.appareils__barre span { margin-left: 6px; flex: 1; padding: 3px 8px; border-radius: 5px; background: #0e0c0b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appareils__pc img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.appareils__tel { position: absolute; right: -18px; bottom: -34px; width: 24%; border-radius: 16px; border: 4px solid #0b0a0c; overflow: hidden; background: #0b0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 18px 40px -10px rgba(0, 0, 0, .8); }
.appareils__tel img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.appareils__tel--paysage { width: 42%; bottom: -30px; }
.appareils__tel--paysage img { aspect-ratio: 844 / 390; }
.ecran-jeu__infos { max-width: min(48%, 600px); }
.ecran-jeu__action { white-space: nowrap; }

/* téléphone et tablette en portrait : la liste devient une rangée d'onglets au-dessus de la scène */
@media (max-width: 860px) {
  .selection { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: calc(100svh - 107px); }
  .menu { border-right: 0; border-bottom: 1px solid rgba(251, 136, 27, .16); padding: 18px 16px 12px; gap: 12px; }
  .menu h1 { display: none; }
  .liste { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .liste li { flex: none; }
  .liste button { padding: 10px 14px 10px 16px; width: auto; }
  .liste button::before { top: auto; left: 12px; right: 12px; bottom: 4px; width: auto; height: 3px; }
  .liste__nom { font-size: 1.15rem; white-space: nowrap; }
  .liste__type { display: none; }
  .liste__rubrique { display: none; }
  .liste li:has(#onglet-serveurgg) { margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(251, 136, 27, .3); }
  .liste__bientot { display: none; }
  .scene { min-height: 560px; margin: 12px; border-radius: 14px; }
  .ecran-jeu::before { background: linear-gradient(to top, rgba(7, 6, 8, .97) 0%, rgba(7, 6, 8, .7) 45%, rgba(7, 6, 8, .1) 80%); }
  .ecran-jeu__logo { max-width: min(70%, 260px); max-height: 18vh; }
  .ecran-jeu__action { padding: 14px 28px; font-size: 1.3rem; }
  .ecran-jeu__infos { max-width: none; }
  .ecran-jeu .appareils { display: none; } /* 3W et Flubber : le décor suffit, la hauteur manque */
  .ecran-jeu--fenetre { flex-direction: column; justify-content: flex-end; }
  .ecran-jeu--fenetre .appareils { display: block; position: relative; right: auto; top: auto; transform: none; width: calc(100% - 32px); margin: 12px 16px 0; flex: none; }
  .ecran-jeu--fenetre .appareils__pc img { aspect-ratio: 5 / 2; object-position: left top; }
  .ecran-jeu--fenetre .appareils__tel { display: none; }
  .ecran-jeu--fenetre .ecran-jeu__infos { padding-top: 14px; padding-bottom: 20px; }
}

/* Invitation à créer le jeu de ses rêves (Florian, 15/10), juste sous l'écran de sélection. */
.votre-jeu { margin: clamp(14px, 2vw, 28px); margin-top: 0; padding: clamp(22px, 3vw, 36px) clamp(22px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 40px);
  border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 0% 0%, rgba(251, 136, 27, .22), rgba(251, 136, 27, 0) 70%), radial-gradient(50% 120% at 100% 100%, rgba(142, 43, 34, .35), rgba(142, 43, 34, 0) 70%), rgba(20, 16, 14, .55);
  box-shadow: 0 0 0 1px rgba(251, 136, 27, .25), 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.votre-jeu__petit { font: 600 .78rem var(--police); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.votre-jeu h2 { margin-top: 6px; font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.05 var(--affiche); text-transform: uppercase; max-width: 22em; }
.votre-jeu__texte { margin-top: 10px; color: #d8d2cc; line-height: 1.5; max-width: 40em; }
.votre-jeu .ecran-jeu__action { margin-top: 0; flex: none; }
@media (max-width: 860px) { .votre-jeu { flex-direction: column; align-items: flex-start; margin: 12px; } }

/* Le devis de la page Game prend l'orange d'Osark Game et le fond de la page (Florian, 15/10 : un devis adapté par page). */
.devis-jeu { --sarcelle: var(--orange); }
.devis-jeu .devis h2 { font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.05 var(--affiche); text-transform: uppercase; letter-spacing: 0; }
.devis-jeu .devis-form { background: rgba(20, 16, 14, .72); border-color: rgba(251, 136, 27, .22); }
.devis-jeu .bouton--plein { background: var(--orange); color: var(--sur-orange); }
.devis-jeu .devis-form input, .devis-jeu .devis-form textarea, .devis-jeu .projet span { background-color: rgba(30, 24, 20, .9); }
