/* ═══════════════════════════════════════════════════════════
   LA QUESTION MYSTÈRE — feuille de style du site
   Palette et typographie reprises telles quelles de l'application,
   pour qu'un visiteur qui arrive de l'App Store reconnaisse le jeu.
   ═══════════════════════════════════════════════════════════ */

@font-face{
  font-family:"Titan One";
  src:url("../fonts/titan-one.ttf") format("truetype");
  font-weight:400;font-style:normal;font-display:swap;
}

:root{
  /* les quatre couleurs du dégradé de l'app */
  --soleil:#FFA63A;
  --corail:#FF6E4E;
  --framboise:#E63E6E;
  --prune:#A8348A;
  /* le brun du contour du cube : c'est la couleur de texte du site */
  --brun:#4A1908;
  --brun-doux:#7A4326;
  --creme:#FFF4E2;
  --creme-fonce:#FFE7C4;
  --or:#FFC93C;
  --blanc:#FFFFFF;

  --rayon:22px;
  --ombre:0 2px 0 rgba(74,25,8,.14), 0 14px 30px rgba(74,25,8,.10);
  --ombre-forte:0 4px 0 rgba(74,25,8,.22), 0 20px 44px rgba(74,25,8,.18);
}

*{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  color:var(--brun);
  background:var(--creme);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.enveloppe{width:min(100% - 40px,1080px);margin-inline:auto}

/* ─────────── typographie ─────────── */
.titan{font-family:"Titan One",-apple-system,Impact,sans-serif;font-weight:400;letter-spacing:.01em}

h2.titre{
  font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:clamp(30px,5.4vw,44px);line-height:1.1;
  color:var(--brun);margin-bottom:12px;
}
.chapeau{
  font-size:clamp(16px,2.4vw,18.5px);color:var(--brun-doux);
  max-width:54ch;margin-bottom:34px;
}


/* ═══════════ EN-TÊTE : le dégradé et les rayons de l'app ═══════════ */
.entete{
  position:relative;overflow:hidden;
  background:linear-gradient(168deg,var(--soleil) 0%,var(--corail) 34%,
                             var(--framboise) 68%,var(--prune) 100%);
  padding:clamp(38px,7vw,72px) 0 clamp(58px,9vw,96px);
  color:#fff;
}
/* Les rayons tournent lentement, comme dans le jeu. Le carré fait 150 % de la
   plus grande dimension : c'est la diagonale maximale, donc aucun coin ne
   reste à découvert pendant la rotation. */
.rayons{
  position:absolute;left:50%;top:34%;width:150vmax;height:150vmax;
  transform:translate(-50%,-50%);pointer-events:none;
  background:repeating-conic-gradient(from 0deg,
    rgba(255,255,255,.20) 0deg 4deg, rgba(255,255,255,0) 4deg 9deg);
  animation:tourne 120s linear infinite;
}
@keyframes tourne{to{transform:translate(-50%,-50%) rotate(360deg)}}

.entete .enveloppe{position:relative;z-index:1}

/* En-tête centré. Le titre est en blanc plein : sur un dégradé orange-rose,
   le jaune pâle de l'application ne tient pas le contraste — il faut du blanc
   pour que le nom reste lisible sur toute la hauteur du dégradé. */
.entete-corps{position:relative;z-index:1;text-align:center;
  display:flex;flex-direction:column;align-items:center}

.icone-hero{
  width:clamp(88px,17vw,120px);height:auto;border-radius:23%;
  box-shadow:0 5px 0 rgba(74,25,8,.22),0 18px 38px rgba(74,25,8,.3);
  margin-bottom:22px;
}
.sur-titre{
  font-size:clamp(12px,2.4vw,15px);font-weight:800;letter-spacing:.26em;
  text-transform:uppercase;margin-bottom:4px;
}
.titre-marque{
  font-family:"Titan One",-apple-system,Impact,sans-serif;font-weight:400;
  font-size:clamp(44px,11vw,86px);line-height:1;letter-spacing:.01em;
  color:#fff;text-shadow:0 4px 0 rgba(74,25,8,.28),0 12px 26px rgba(74,25,8,.3);
  margin-bottom:20px;
}
.accroche{
  font-size:clamp(17px,2.9vw,21px);line-height:1.5;font-weight:600;
  max-width:34ch;margin-bottom:28px;
  text-shadow:0 1px 8px rgba(74,25,8,.22);
}
.mention{font-size:13.5px;margin-top:14px;opacity:.9;font-weight:600}

/* ─────────── boutons ─────────── */
.bouton{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:17px;border:none;border-radius:15px;
  padding:15px 26px;cursor:pointer;text-decoration:none;
  background:linear-gradient(180deg,var(--soleil),var(--corail));
  color:#fff;box-shadow:0 4px 0 #C2451F;
  transition:transform .09s ease,box-shadow .09s ease,filter .15s ease;
}
.bouton:hover{filter:brightness(1.05)}
.bouton:active{transform:translateY(4px);box-shadow:0 0 0 #C2451F}
.bouton:focus-visible{outline:3px solid var(--brun);outline-offset:3px}
.bouton.grand{font-size:clamp(17px,2.6vw,20px);padding:17px 34px;border-radius:17px}
.bouton.calme{
  background:var(--creme-fonce);color:var(--brun);box-shadow:0 4px 0 #E4C79A;
}
.bouton.calme:active{box-shadow:0 0 0 #E4C79A}
.bouton.clair{
  background:#fff;color:var(--framboise);box-shadow:0 4px 0 rgba(94,19,56,.35);
}
.bouton.clair:active{box-shadow:0 0 0 rgba(94,19,56,.35)}

.rangee-boutons{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

/* ═══════════ SECTIONS CLAIRES ═══════════ */
.section{padding:clamp(52px,8vw,88px) 0}
.section.pale{background:var(--creme-fonce)}

/* Les trois temps d'une manche. La numérotation est ici légitime : c'est un
   déroulé, l'ordre porte l'information. */
.etapes{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(238px,1fr))}
.etape{
  background:var(--blanc);border-radius:var(--rayon);
  padding:26px 24px;box-shadow:var(--ombre);
}
.etape .rang{
  font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:34px;color:var(--corail);line-height:1;display:block;margin-bottom:10px;
}
.etape h3{font-size:18px;margin-bottom:7px}
.etape p{font-size:15px;color:var(--brun-doux)}

/* Les thèmes, dans les mêmes pastilles que dans l'application */
/* Les huit thèmes en grille à colonnes égales. En pastilles flottantes, les
   libellés de longueurs très différentes — « Football » contre
   « Cinéma & Séries » — produisaient des lignes déséquilibrées et des trous
   en fin de rangée. Une grille règle le problème : 4 colonnes sur ordinateur,
   2 sur téléphone, toutes les cases de même largeur. */
.grille-themes{
  list-style:none;display:grid;gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.grille-themes li{
  display:flex;align-items:center;gap:11px;
  background:var(--blanc);border-radius:15px;padding:14px 16px;
  font-size:15px;font-weight:700;box-shadow:var(--ombre);
}
.pastille{
  width:30px;height:30px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;line-height:0;
  border:2px solid var(--blanc);box-shadow:0 1px 3px rgba(0,0,0,.2);
}
/* L'emoji reçoit sa propre police : sans cela la hauteur de ligne est calculée
   sur la police du texte, plus haute, et l'emoji se décale vers le haut. */
.pastille i{
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  font-style:normal;font-size:15px;line-height:1;display:block;
}

/* Appel final, sur le dégradé */
.final{
  background:linear-gradient(150deg,var(--corail),var(--framboise) 55%,var(--prune));
  color:#fff;text-align:center;position:relative;overflow:hidden;
}
.final .enveloppe{position:relative;z-index:1}
.final h2{font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:clamp(25px,4.6vw,36px);line-height:1.15;margin-bottom:22px;
  text-shadow:0 2px 0 rgba(74,25,8,.22)}

/* ═══════════ PIED DE PAGE ═══════════ */
.pied{background:var(--brun);color:rgba(255,255,255,.72);padding:44px 0 38px;font-size:14.5px}
.pied a{color:#FFD98A;text-decoration:none;border-bottom:1px solid rgba(255,217,138,.35)}
.pied a:hover{border-bottom-color:#FFD98A}
.pied-liens{display:flex;flex-wrap:wrap;gap:10px 26px;margin-bottom:20px}
.pied .fin{font-size:13px;opacity:.6}

/* ═══════════ PAGES DE TEXTE (confidentialité, assistance) ═══════════ */
.page-texte{padding:clamp(40px,6vw,64px) 0 clamp(56px,8vw,80px);max-width:none}
.page-texte .enveloppe{width:min(100% - 40px,720px)}
.retour{
  display:inline-flex;align-items:center;gap:7px;font-size:14.5px;font-weight:700;
  color:var(--brun-doux);text-decoration:none;margin-bottom:26px;
}
.retour:hover{color:var(--framboise)}
.page-texte h1{
  font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:clamp(28px,5.4vw,40px);line-height:1.14;margin-bottom:8px;
}
.maj{font-size:13.5px;color:var(--brun-doux);margin-bottom:34px}
.page-texte h2{
  font-family:"Titan One",-apple-system,Impact,sans-serif;
  font-size:clamp(19px,3.2vw,23px);margin:34px 0 10px;
}
.page-texte p,.page-texte li{font-size:16px;margin-bottom:12px}
.page-texte ul{padding-left:22px;margin-bottom:14px}
.page-texte li{margin-bottom:7px}
.encadre{
  background:var(--blanc);border-radius:var(--rayon);
  padding:22px 24px;box-shadow:var(--ombre);margin:22px 0 30px;
}
.encadre p:last-child{margin-bottom:0}
.faq{margin-top:6px}
.faq details{
  background:var(--blanc);border-radius:16px;box-shadow:var(--ombre);
  margin-bottom:12px;overflow:hidden;
}
.faq summary{
  cursor:pointer;padding:17px 20px;font-weight:700;font-size:16px;
  list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-family:"Titan One",sans-serif;color:var(--corail);font-size:21px}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 20px 18px;color:var(--brun-doux);margin:0}

/* ═══════════ ACCESSIBILITÉ ═══════════ */
:focus-visible{outline:3px solid var(--framboise);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
@media (max-width:560px){
    .grille-themes{grid-template-columns:repeat(2,1fr);gap:9px}
  .grille-themes li{font-size:13.5px;padding:12px;gap:8px}
}
