/* Site de Split 60 : la nuit néon du jeu. Aucune ressource externe. */
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("/fonts/unbounded-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("/fonts/unbounded-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("/fonts/unbounded-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --nuit: #0B0920; --nuit-2: #120F33; --nuit-3: #1A1640; --creme: #FFF3E6; --doux: #B9B2E0; --trait: rgba(124, 107, 255, .35);
  --or: #FFD23F; --or-2: #FF9F1C; --corail: #FF6B5E; --indigo: #7C6BFF; --teal: #2ED3C6;
  --titre: "Unbounded", "Avenir Next", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Yu Gothic", "Malgun Gothic", "Microsoft YaHei", system-ui, sans-serif;
  --texte: "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --large: 1120px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--creme); font: 500 17px/1.6 var(--texte); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; font-family: var(--titre); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.cadre { width: min(var(--large), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- En-tête */
.haut { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.haut.colle { background: rgba(11, 9, 32, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--trait); }
.haut.colle .cadre { padding-block: 10px; }
.haut .cadre { transition: padding .3s; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.haut .marque { font: 800 15px var(--titre); color: var(--creme); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.haut .marque img { width: 34px; height: 34px; border-radius: 9px; }
.haut nav { display: flex; align-items: center; gap: 6px; }
.haut nav a { color: var(--creme); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.haut nav a:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 640px) { .haut nav > a { display: none; } }
/* Menu des langues */
.langues { position: relative; }
.langues summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--trait); background: rgba(18, 15, 51, .6); display: flex; align-items: center; gap: 8px; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary::after { content: ""; width: 7px; height: 7px; border: solid var(--or); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
.langues[open] summary::after { rotate: 225deg; translate: 0 2px; }
.langues ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 170px; border-radius: 18px; background: var(--nuit-2); border: 1.5px solid var(--indigo); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 26px rgba(124, 107, 255, .3); }
.haut .langues ul a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.haut .langues ul a:hover { background: rgba(124, 107, 255, .22); }
footer .toutes { flex-basis: 100%; gap: 6px 18px; font-size: 14px; padding-top: 14px; border-top: 1px solid var(--trait); }
footer .toutes span { color: var(--or); font-weight: 700; }

/* ---- Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border-radius: 999px;
  font: 800 17px var(--titre); color: #3A2400; text-decoration: none; border: 0;
  background: linear-gradient(180deg, #FFE98A 0%, var(--or) 38%, var(--or-2) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -4px 0 rgba(160, 80, 0, .35), 0 0 0 3px #2A1A00, 0 10px 34px rgba(255, 190, 40, .35); }
a.bouton:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bouton.attente { cursor: default; }
.bouton.sombre { color: var(--creme); background: linear-gradient(180deg, #2A2380, #17124F);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 0 0 2px var(--indigo), 0 0 26px rgba(124, 107, 255, .4); font-size: 15px; min-height: 50px; }

/* ---- Accueil : héros */
.heros { position: relative; isolation: isolate; padding: 124px 0 76px; overflow: hidden; }
.heros::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/fond.webp") center / cover no-repeat; }
.heros::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 30% 20%, rgba(11, 9, 32, .25), rgba(11, 9, 32, .86) 62%, var(--nuit) 100%), linear-gradient(180deg, transparent 60%, var(--nuit)); }
.heros .cadre { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.heros .texte { text-align: center; }
.yeux { display: flex; justify-content: center; gap: 6px; margin-bottom: -18px; }
.oeil { position: relative; width: clamp(84px, 11vw, 124px); aspect-ratio: 1; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .5)); animation: flotte 4.2s ease-in-out infinite; }
.oeil + .oeil { animation-delay: -1.9s; }
.oeil img { position: absolute; inset: 0; width: 100%; height: 100%; }
.oeil .iris { inset: auto; left: 50%; top: 59.7%; width: 48.5%; height: 48.5%; margin: -24.25% 0 0 -24.25%; will-change: transform; }
.oeil .ferme { opacity: 0; }
.oeil.cligne .globe, .oeil.cligne .iris, .oeil.cligne .paupiere { opacity: 0; }
.oeil.cligne .ferme { opacity: 1; }
@keyframes flotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.heros .logo { width: min(430px, 82%); margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.heros h1 { font-size: clamp(22px, 3.1vw, 33px); margin-top: 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.heros h1 em { font-style: normal; color: var(--or); text-shadow: 0 0 22px rgba(255, 210, 63, .55); }
.heros .accroche { margin: 16px auto 26px; max-width: 30em; color: #E9E2FF; font-size: 18px; }
.heros .gages { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--doux); }
.heros .gages li { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--trait); background: rgba(18, 15, 51, .6); }
.heros .tel { justify-self: center; rotate: 4deg; position: relative; animation: plane 6s ease-in-out infinite; }
.heros .tel::before { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 107, 255, .5), rgba(255, 107, 94, .18) 55%, transparent); filter: blur(30px); }
@keyframes plane { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 860px) { .heros { padding-top: 96px; } .heros .cadre { grid-template-columns: 1fr; } .heros .tel { rotate: 0deg; width: min(270px, 70vw); } }

/* ---- Téléphone */
.tel { width: min(300px, 100%); border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #3A3470, #0E0B2A 60%);
  box-shadow: 0 0 0 2px rgba(124, 107, 255, .7), 0 0 46px rgba(124, 107, 255, .45), 0 30px 60px rgba(0, 0, 0, .6); }
.tel img { border-radius: 36px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.tel.couche { width: min(760px, 100%); border-radius: 38px; }
.tel.couche img { aspect-ratio: 844 / 390; border-radius: 30px; }

/* ---- Sections */
section { padding: 84px 0; position: relative; }
.surtitre { font: 800 13px var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.titre { font-size: clamp(27px, 4.2vw, 44px); }
.titre em { font-style: normal; color: var(--or); }
.chapo { color: var(--doux); max-width: 36em; margin-top: 14px; font-size: 18px; }
.centre { text-align: center; } .centre .chapo { margin-inline: auto; }

/* Le principe : deux moitiés séparées par le trait du logo */
.principe .moities { margin-top: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.moitie { padding: 30px; border-radius: 28px; background: var(--nuit-2); border: 2px solid; }
.moitie.a { border-color: rgba(255, 107, 94, .7); box-shadow: 0 0 40px rgba(255, 107, 94, .18); }
.moitie.b { border-color: rgba(124, 107, 255, .8); box-shadow: 0 0 40px rgba(124, 107, 255, .2); }
.moitie h3 { font-size: 20px; margin-bottom: 8px; } .moitie.a h3 { color: #FFA69C; } .moitie.b h3 { color: #A9B6FF; }
.moitie p { color: var(--doux); }
.eclair { width: 54px; position: relative; }
.eclair::before { content: ""; position: absolute; left: 50%; top: -14px; bottom: -14px; width: 4px; translate: -50% 0; rotate: 9deg; border-radius: 4px; background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, .55), 0 0 44px 10px rgba(255, 210, 63, .5); }
.regle { margin: 38px auto 0; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; text-align: center; }
.regle b { font: 800 clamp(46px, 8vw, 78px)/1 var(--titre); color: var(--or); text-shadow: 0 0 34px rgba(255, 210, 63, .5); }
.regle span { max-width: 17em; text-align: left; color: var(--creme); font-size: 18px; font-weight: 600; }
@media (max-width: 760px) { .principe .moities { grid-template-columns: 1fr; } .eclair { width: auto; height: 46px; } .eclair::before { left: 14px; right: 14px; top: 50%; bottom: auto; width: auto; height: 4px; translate: 0 -50%; rotate: -3deg; } .regle span { text-align: center; } }

/* Chiffres */
.chiffres { padding: 0; }
.chiffres ul { list-style: none; margin: 0; padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-radius: 28px; background: linear-gradient(180deg, var(--nuit-3), var(--nuit-2)); border: 1.5px solid var(--trait); }
.chiffres li { text-align: center; } .chiffres b { display: block; font: 800 clamp(30px, 5vw, 50px)/1.1 var(--titre); color: var(--or); }
.chiffres span { color: var(--doux); font-weight: 700; font-size: 15px; }
@media (max-width: 640px) { .chiffres ul { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

/* Ruban des mini-jeux : deux rangées qui défilent en sens inverse */
.ruban { margin-top: 34px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ruban .rang { overflow: hidden; }
.ruban .piste { display: flex; gap: 14px; width: max-content; animation: defile 90s linear infinite; }
.ruban .rang + .rang .piste { animation-direction: reverse; animation-duration: 100s; }
.ruban i { --t: 104px; flex: 0 0 auto; width: var(--t); height: var(--t); border-radius: 22px; background: url("/img/mini-jeux.webp") calc(var(--c) * var(--t) * -1) calc(var(--r) * var(--t) * -1) / calc(var(--t) * 8) auto; box-shadow: 0 0 0 1.5px var(--trait), 0 8px 20px rgba(0, 0, 0, .4); }
@keyframes defile { to { translate: calc(-50% - 7px) 0; } }
@media (max-width: 640px) { .ruban i { --t: 80px; border-radius: 17px; } }

/* Vitrine d'écrans : le téléphone du centre en grand, ses voisins en retrait */
.vitrine { --w: min(264px, 58vw); margin-top: 40px; outline: none; }
.vitrine .scene { position: relative; height: calc(var(--w) * 2.2 + 118px); perspective: 1400px; overflow: hidden; touch-action: pan-y; }
.diapo { margin: 0; position: absolute; left: 50%; top: 14px; width: var(--w); margin-left: calc(var(--w) / -2); cursor: pointer;
  transform: translateX(calc(var(--d, 0) * 74%)) scale(calc(1 - var(--a, 0) * .17)) rotateY(calc(var(--d, 0) * -16deg)); opacity: calc(1 - var(--a, 0) * .42); z-index: calc(10 - var(--a, 0));
  transition: transform .65s cubic-bezier(.2, .8, .2, 1), opacity .65s ease; will-change: transform; }
.diapo.loin { opacity: 0; pointer-events: none; }
.diapo.active { cursor: default; }
.diapo .tel { width: 100%; }
.diapo:not(.active) .tel { box-shadow: 0 0 0 2px rgba(124, 107, 255, .4), 0 20px 40px rgba(0, 0, 0, .5); }
.diapo figcaption { margin-top: 18px; text-align: center; font: 800 17px var(--titre); opacity: 0; transition: opacity .4s; }
.diapo.active figcaption { opacity: 1; transition-delay: .2s; }
.diapo figcaption small { display: block; font: 600 15px/1.45 var(--texte); color: var(--doux); margin-top: 6px; }
.commandes { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 6px; }
.commandes .prec, .commandes .suiv { width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: linear-gradient(180deg, #2A2380, #17124F); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 0 0 2px var(--indigo), 0 0 22px rgba(124, 107, 255, .4); transition: transform .15s, filter .15s; }
.commandes .prec:hover, .commandes .suiv:hover { filter: brightness(1.25); transform: scale(1.06); }
.commandes .prec::before, .commandes .suiv::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border: solid var(--creme); border-width: 0 3px 3px 0; translate: -70% -50%; rotate: -45deg; }
.commandes .prec::before { rotate: 135deg; translate: -30% -50%; }
.points { display: flex; gap: 4px; }
.points button { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.points button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-radius: 9px; translate: -50% -50%; background: rgba(185, 178, 224, .4); transition: width .3s, background .3s; }
.points button.active::before { width: 24px; background: var(--or); box-shadow: 0 0 12px rgba(255, 210, 63, .7); }
/* Sans JavaScript : une simple grille */
html:not(.js) .vitrine .scene { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px 22px; padding-inline: 20px; overflow: visible; }
html:not(.js) .diapo { position: static; margin: 0; width: auto; transform: none; opacity: 1; cursor: default; }
html:not(.js) .diapo figcaption { opacity: 1; } html:not(.js) .commandes { display: none; }

/* Mondes */
.mondes ol { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mondes li { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4.4; isolation: isolate; border: 1.5px solid var(--trait); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.mondes li > img.decor { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .6s; }
.mondes li:hover > img.decor { scale: 1.06; }
.mondes li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 9, 32, .05) 30%, rgba(11, 9, 32, .92)); }
.mondes .embleme { width: 58px; margin-bottom: 8px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.mondes h3 { font-size: 17px; color: var(--or); } .mondes p { font-size: 14px; color: #E2DCFF; line-height: 1.4; margin-top: 4px; }
@media (max-width: 900px) { .mondes ol { grid-template-columns: repeat(2, 1fr); } .mondes li { aspect-ratio: 3 / 3.2; } .mondes li:last-child { grid-column: span 2; aspect-ratio: 3 / 1.6; } }

/* Modes */
.modes .grille { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte { padding: 26px; border-radius: 24px; background: var(--nuit-2); border: 1.5px solid var(--trait); }
.carte h3 { font-size: 18px; margin-bottom: 8px; } .carte p { color: var(--doux); font-size: 16px; }
.carte .pastille { display: inline-block; font: 800 12px var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--nuit); background: var(--teal); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.carte:nth-child(2n) .pastille { background: var(--or); } .carte:nth-child(3n) .pastille { background: #FFA69C; }
@media (max-width: 900px) { .modes .grille { grid-template-columns: 1fr; } }

/* Debout ou couché */
.sens .tel { margin: 44px auto 0; }

/* Promesses */
.promesses { background: linear-gradient(180deg, transparent, rgba(124, 107, 255, .08), transparent); }
.promesses ul { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promesses li { padding: 22px; border-radius: 22px; border: 1.5px solid var(--trait); background: rgba(18, 15, 51, .7); }
.promesses b { display: block; font: 800 17px var(--titre); color: var(--creme); margin-bottom: 6px; }
.promesses span { color: var(--doux); font-size: 15.5px; }
@media (max-width: 900px) { .promesses ul { grid-template-columns: 1fr; } }

/* Appel final */
.final { text-align: center; padding-bottom: 96px; }
.final .trophee { width: 120px; margin: 0 auto 10px; filter: drop-shadow(0 0 30px rgba(255, 210, 63, .5)); }
.final .bouton { margin-top: 28px; }

/* Pied de page */
footer { border-top: 1.5px solid var(--trait); padding: 34px 0 44px; color: var(--doux); font-size: 15px; }
footer .cadre { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } footer a { color: var(--creme); }

/* ---- Pages de texte (confidentialité, assistance, mentions légales) */
.page { padding: 128px 0 70px; }
.page .cadre { max-width: 760px; }
.page h1 { font-size: clamp(23px, 6.4vw, 42px); color: var(--or); }
.page .maj { color: var(--doux); margin-top: 10px; font-size: 15px; }
.page .resume { margin: 28px 0 8px; padding: 22px 24px; border-radius: 22px; background: var(--nuit-2); border: 1.5px solid var(--trait); font-size: 18px; font-weight: 600; }
.page h2 { font-size: 21px; margin: 40px 0 12px; }
.page p + p, .page ul + p, .page p + ul { margin-top: 12px; }
.page ul { margin: 0; padding-left: 22px; } .page li + li { margin-top: 6px; }
.page dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; } .page dt { color: var(--doux); } .page dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .page dl { grid-template-columns: 1fr; gap: 2px; } .page dd { margin-bottom: 10px; } }
.page details { border-bottom: 1.5px solid var(--trait); padding: 16px 0; }
.page summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.page summary::after { content: "+"; color: var(--or); font: 800 20px var(--titre); } .page details[open] summary::after { content: "−"; }
.page details p { margin-top: 10px; color: #E2DCFF; }
.page .attente { color: var(--doux); font-style: italic; }

/* Apparition au défilement (seulement si le visiteur accepte les animations) */
@media (prefers-reduced-motion: no-preference) {
  .js .monte { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
  .js .monte.vu { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .oeil, .heros .tel, .ruban .piste { animation: none; } .diapo { transition: none; } }
