/* KromaQuiz — sections propres à la page d'accueil (carte défilante, nouveautés,
   paliers de ligue, rayons, « Pourquoi KromaQuiz ? »). Base, en-tête et pied de page : salon.css. */
:root { --radius: 18px; }
/* Carte d'accueil défilante */
.hero { margin-top: 20px; position: relative; border-radius: 24px; overflow: hidden; min-height: 470px; isolation: isolate; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px; padding: 44px 48px; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--slide-bg); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 90% 110%, rgba(255, 255, 255, 0.22), transparent 60%); }
.slide-duel { --slide-bg: linear-gradient(135deg, #1aa6c9 0%, #2b6be0 100%); }
.slide-leagues { --slide-bg: linear-gradient(135deg, #7c4ff0 0%, #b04fd6 100%); }
.slide-worlds { --slide-bg: linear-gradient(135deg, #e89a1c 0%, #e2563f 100%); }
.slide-title { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.slide-badge { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 16, 24, 0.85); color: var(--amber); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.slide-badge svg { width: 28px; height: 28px; }
.slide-text { max-width: 30em; margin: 0 0 24px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, 0.95); }
.play-cta { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--amber); color: var(--night); font-weight: 800; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; padding: 15px 26px; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.play-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.slide-art { position: relative; height: 100%; min-height: 380px; display: flex; justify-content: center; align-items: flex-end; }
.phone { width: 230px; border-radius: 30px; border: 6px solid #0b1219; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); overflow: hidden; background: #0b1219; }
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.phone.back { position: absolute; width: 190px; transform: translate(-58%, -26px) rotate(-7deg); opacity: 0.9; }
.phone.front { position: relative; transform: translate(26%, 40px) rotate(4deg); }
.hero-controls { position: absolute; left: 48px; bottom: 26px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.hero-arrow { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(7, 16, 24, 0.55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-arrow:hover { background: rgba(7, 16, 24, 0.8); }
.hero-dots { display: flex; gap: 7px; }
.hero-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; }
.hero-dot[aria-current="true"] { background: #fff; width: 22px; border-radius: 6px; }

/* Bande de chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.stat { background: var(--card-gradient); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.stat strong { display: block; font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--cyan); }
.stat span { color: var(--muted); font-size: 15px; }

/* Nouveautés et ligues */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 28px; align-items: start; }
.panel { background: var(--card-gradient); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.news + .news { margin-top: 20px; }
.news-kicker { margin: 0 0 6px; color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.news h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; }
.news h3 { margin: 22px 0 8px; font-size: 20px; line-height: 1.3; }
.news p { margin: 0 0 12px; color: #d6dee8; }
.news-split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; }
.news-split img { width: 100%; height: auto; border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; }
.inline-link { color: var(--cyan); font-weight: 700; }
.leagues h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.leagues .sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.tier-list { list-style: none; margin: 0; padding: 0; }
.tier { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.tier:first-child { border-top: 0; }
.tier-rank { width: 22px; color: var(--muted); font-size: 15px; text-align: center; }
.tier-gem { width: 22px; height: 22px; border-radius: 7px; transform: rotate(45deg) scale(0.78); background: var(--gem); box-shadow: 0 0 12px var(--gem); }
.tier-name { flex: 1; font-weight: 700; }
.tier-tag { font-size: 13px; font-weight: 800; color: var(--night); background: var(--gem); padding: 3px 10px; border-radius: 999px; }

/* Rayons (univers, modes) */
.shelf { margin-top: 44px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shelf-head h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.shelf-head .more { text-decoration: none; color: var(--cyan); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.shelf-lead { margin: -6px 0 18px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; background: var(--card-gradient); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-card); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.tile:hover { transform: translateY(-6px); border-color: rgba(61, 232, 255, 0.35); background: var(--card-gradient); box-shadow: var(--shadow-card-hover); }
.tile-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--tile-bg, rgba(61, 232, 255, 0.12)); color: var(--tile-fg, var(--cyan)); }
.tile-icon svg { width: 30px; height: 30px; }
.tile h3 { margin: 2px 0 4px; font-size: 18px; line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.pastille { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--night); background: var(--amber); padding: 2px 8px; border-radius: 999px; }

/* Pourquoi KromaQuiz */
.why { margin-top: 48px; }
.why h2 { margin: 0 0 14px; font-size: 32px; line-height: 1.2; }
.why p { color: #d6dee8; max-width: 52em; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.why-card { background: var(--card-gradient); border: 1px solid var(--card-border); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-card); }
.why-card svg { width: 28px; height: 28px; color: var(--amber); }
.why-card h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
.why-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button-ghost { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 10px; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.availability { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* Tablette et téléphone */
@media (max-width: 980px) {
  .news-layout { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .slide { grid-template-columns: 1fr; padding: 30px 24px 90px; }
  .slide-art { min-height: 0; height: 260px; overflow: hidden; align-items: flex-start; border-radius: 18px 18px 0 0; }
  .phone { width: 200px; }
  .phone.back { display: none; }
  .phone.front { transform: none; }
  .hero-controls { left: 24px; bottom: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .news-split { grid-template-columns: 1fr; }
  .news-split img { max-width: 220px; }
  .panel { padding: 22px; }
  .slide-text { font-size: 17px; }
}

/* Hero de marque : Kromi + titre + slogan (maquette accueil, novembre 2026). */
.brand-hero { display: flex; align-items: center; gap: 32px; margin-top: 20px; padding: 28px 36px; }
.brand-hero-copy { flex: 1 1 auto; min-width: 0; }
.brand-hero-title { margin: 0 0 10px; font-size: clamp(44px, 7vw, 76px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-hero-title .brand-quiz { color: #f5b942; }
.brand-hero-slogan { margin: 0 0 24px; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.4; color: #d6dee8; }
.brand-hero-kromi { flex: 0 0 auto; width: clamp(180px, 26vw, 300px); height: auto; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45)); }

/* Question jouable (maquette accueil, novembre 2026). */
.quiz-demo { margin-top: 20px; }
.quiz-demo h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
.quiz-demo-timer { position: relative; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 18px; }
.quiz-demo-timer-bar { height: 100%; width: 100%; background: var(--amber); border-radius: 999px; transition: width 1s linear; }
.quiz-demo-timer-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--night); }
.quiz-demo-question { margin: 0 0 16px; font-size: 20px; line-height: 1.45; font-weight: 700; }
.quiz-demo-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-demo-option { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.quiz-demo-option:hover { border-color: var(--amber); transform: translateY(-1px); }
.quiz-demo-option:disabled { cursor: default; opacity: 0.75; }
.quiz-demo-option.is-correct { border-color: #2fbf71; background: rgba(47, 191, 113, 0.18); }
.quiz-demo-option.is-wrong { border-color: #e2563f; background: rgba(226, 86, 63, 0.18); }
.quiz-demo-result { margin: 16px 0 0; font-size: 17px; line-height: 1.5; min-height: 1.5em; }
.quiz-demo-result strong { color: var(--amber); }
.quiz-demo-replay { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.08); color: var(--text); font: inherit; font-weight: 700; font-size: 16px; padding: 11px 20px; border-radius: 10px; cursor: pointer; }
.quiz-demo-replay:hover { border-color: var(--amber); }
@media (max-width: 820px) {
  .brand-hero { flex-direction: column; text-align: center; padding: 24px; gap: 8px; }
  .brand-hero-kromi { width: 190px; order: -1; }
  .quiz-demo-options { grid-template-columns: 1fr; }
}
