/* KromaQuiz — style « salon de jeux » partagé par toutes les pages.
   Fond nuit, en-tête et pied de page communs, couleurs de la marque (cyan, ambre, violet).
   Les pages intérieures chargent ce fichier APRÈS styles.css : il en reprend les blocs
   (cartes, galerie, pages légales) en version nuit, sans toucher à leur contenu. */
:root {
  --bg: #071018;
  --bg-2: #0b1826;
  --panel: #121f2e;
  --panel-2: #182839;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --soft: #d6dee8;
  --cyan: #3de8ff;
  --amber: #ffc857;
  --violet: #9d6cff;
  --rose: #ff5d86;
  --lime: #8ce36b;
  --blue: #3d8bff;
  --night: #071018;
  --wrap-max: 1180px;
  /* Variables de styles.css, redéfinies pour les pages intérieures. */
  --ink: #ffffff;
  --muted: #a9b6c6;
  --hair: rgba(255, 255, 255, 0.08);
  --bg-soft: #0b1826;
  --accent: #3de8ff;
  --accent-soft: rgba(61, 232, 255, 0.12);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 14px 30px rgba(0, 0, 0, 0.45);
  /* Profondeur 3D des cartes, comme dans l'app : biseau net,
     dégradé marqué et ombre large, lisibles sur fond nuit. */
  --card-gradient: linear-gradient(180deg, var(--panel-2), var(--panel));
  --card-border: rgba(255, 255, 255, 0.14);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.55), 0 24px 48px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.55), 0 32px 64px rgba(0, 0, 0, 0.65);
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html[data-language="fr"] [data-lang="en"] { display: none; }
html[data-language="en"] [data-lang="fr"] { display: none; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(61, 232, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(157, 108, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--wrap-max), 100% - 32px); max-width: none; margin-inline: auto; padding: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.icon { width: 18px; height: 18px; }
h1, h2, h3 { color: var(--text); }
h1 { line-height: 1.1; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(7, 16, 24, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-top: 0; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-dot { color: var(--cyan); }
.brand-quiz { color: #f5b942; }
.site-menu { display: flex; gap: 6px; margin-inline: auto; }
.site-menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 10px; }
.site-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: inline-block; text-decoration: none; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; padding: 11px 20px; border-radius: 10px; box-shadow: 0 6px 18px rgba(61, 139, 255, 0.35); white-space: nowrap; }
.header-cta:hover { filter: brightness(1.08); }
.language { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.language:hover { background: rgba(255, 255, 255, 0.06); }
.menu-toggle { display: none; appearance: none; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }

/* Pied de page */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: transparent; padding: 44px 0 30px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-tagline { margin: 10px 0 14px; color: var(--muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; border-radius: 12px; color: var(--text); }
.foot-col h4 { margin: 4px 0 12px; color: var(--text); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-col a, .site-footer .foot-col a { display: block; text-decoration: none; padding: 4px 0; color: var(--muted); }
.foot-col a:hover, .site-footer .foot-col a:hover, .footer-bottom a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a { text-decoration: none; }

/* Blocs des pages intérieures (Découvrir, Assistance, Confidentialité, Conditions, 404) */
.wrap.legal-return { display: flex; margin-top: 18px; }
.eyebrow, .tab-index, .pastille { color: var(--cyan); }
/* Profondeur 3D des cartes, comme dans l'app : dégradé de surface,
   reflet en haut, ombre de contact et ombre d'ambiance. */
.card3d, .legal-card { background: var(--card-gradient); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); }
.button-dark, .btn.primary { background: var(--amber); color: var(--night); }
.btn { border-color: var(--line-strong); color: var(--text); }
.text-link { color: var(--cyan); }
.quiet-link { color: var(--muted); }
.quiet-link:hover { color: var(--text); }
.legal-card h2, .legal-card h3 { color: var(--text); }
.legal-card p, .legal-card li, .muted, .small-note, .screen-points, .discover-intro-copy p, .gallery-description p, .gallery-counter, .settings-note { color: var(--soft); }
.legal-card a { color: var(--cyan); }
.legal-head .badge { color: var(--night); background: var(--cyan); }
.notice { border: 1px solid var(--line); background: var(--bg-2); color: var(--soft); }
.screen-tab { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); }
.screen-tab[aria-selected="true"] { background: var(--amber); color: var(--night); border-color: var(--amber); }
.screen-tab[aria-selected="true"] .tab-index { color: var(--night); }
.round-button { border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); }
.zoom-indicator { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.image-dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.image-dialog::backdrop { background: rgba(3, 6, 12, 0.75); }
.dialog-close { border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--text); }
.status-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* Tablette et téléphone */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-menu { display: none; position: absolute; left: 16px; right: 16px; top: 76px; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
  .site-menu.is-open { display: flex; background: var(--panel); border-bottom: 1px solid var(--line); }
  .header-inner { position: relative; justify-content: space-between; }
  .header-cta { display: inline-block; }
}
@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-cta { padding: 10px 12px; font-size: 13px; letter-spacing: 0.02em; }
  .brand { font-size: 19px; }
  .language, .menu-toggle { padding: 9px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
}
