/* Thème clair automatique (demande de Pascal, 15/11/2026) : le téléphone en mode clair -> Athlos en blanc et or ;
   en mode sombre -> l'appli reste noire et or (style Premium). Chargé après premium.css, il ne fait que remplacer les couleurs.
   L'or est plus foncé qu'en sombre pour rester lisible sur le blanc. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --fond: #f6f4ef; --surface: #ffffff; --surface-2: #f0ede6; --bord: #ded9ce;
    --texte: #1b1915; --texte-doux: #66615a;
    --or: #a87b17; --or-clair: #8a6410; --or-fonce: #c99a35;
    --alerte: #c4573b; --ok: #3f8a52;
    --degrade-or: linear-gradient(135deg, #f3dc94 0%, #d8ad4a 50%, #b98a26 100%);   /* boutons (texte foncé dessus) */
    --degrade-or-texte: linear-gradient(135deg, #c5952d 0%, #a87b17 50%, #6f5210 100%);
  }
  html { background: var(--fond); }
  body { background: radial-gradient(120% 60% at 50% -10%, #f3e7c6 0%, var(--fond) 55%) fixed; }
  h1, .indicateur, .chrono, .tuile-valeur { background: var(--degrade-or-texte); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .carte, .encadre, .tuile, .trophee, .onglet {
    background: linear-gradient(160deg, #ffffff 0%, #faf8f3 100%);
    border-color: var(--bord); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 6px 18px rgba(60,45,10,.07);
  }
  .encadre.or, .carte[aria-pressed="true"], .trophee.gagne { border-color: rgba(168,123,23,.6); box-shadow: 0 0 0 1px rgba(168,123,23,.18), 0 8px 22px rgba(168,123,23,.10); }
  .bouton { color: #1a1305; box-shadow: 0 6px 16px rgba(168,123,23,.22), 0 1px 0 rgba(255,255,255,.6) inset; }
  .bouton.secondaire { background: #ffffff; color: var(--texte); box-shadow: 0 0 0 1px var(--bord) inset; }
  .champ::placeholder { color: #a39e94; }
  .accueil .emblème { background: radial-gradient(circle at 30% 25%, #ffffff, #efe9da); }
  .visuel { background: radial-gradient(circle at 50% 40%, #ffffff, #ece8df); }
  .visuel.avec-image { border: 1px solid var(--bord); }
  .onglet[aria-pressed="true"] { background: rgba(0,0,0,.03); }
  .barre-temps { background: rgba(0,0,0,.08); }
  .retour-raison { border-top-color: rgba(0,0,0,.08); }
  .heros::before { background: radial-gradient(closest-side, rgba(216,173,74,.28), transparent); }
  .heros img { filter: drop-shadow(0 12px 18px rgba(60,45,10,.22)); }
  .logo-accueil img { filter: drop-shadow(0 6px 12px rgba(60,45,10,.18)); }
}
