/* Volleyball Coach Simulator 2027 : couleurs R2 du jeu (noir, or, rouge) */
:root {
  --bg: #0d0d0e;
  --bg2: #141416;
  --panel: #18181a;
  --line: #2a2a2e;
  --text: #f2f2f2;
  --muted: #a3a3a8;
  --gold: #d9b44a;
  --gold-2: #f0cf6a;
  --red: #e3263b;
  --radius: 14px;
  --head: 'Barlow Condensed', 'Arial Narrow', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(900px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h2, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: clamp(28px, 3.4vw, 40px); }
h4 { font-size: 24px; }
.kicker { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 auto; }
.head { margin-bottom: 56px; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 14, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: .04em; }
.brand b { color: var(--gold); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(227, 38, 59, .3); }
.btn-red:hover { background: #f03a4e; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.lang { position: relative; }
.lang-btn { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-width: 170px; display: none; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.lang.open .lang-menu { display: block; }
.lang-menu button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 12px; border-radius: 6px; font: 500 14px Inter, sans-serif; cursor: pointer; display: flex; justify-content: space-between; }
.lang-menu button:hover, .lang-menu button.on { background: #232326; color: var(--gold); }
.lang-menu small { color: var(--muted); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; transition: transform .15s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #121212; box-shadow: 0 10px 30px rgba(217, 180, 74, .25); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid #3a3a3e; color: var(--text); }
.btn-ghost:hover { border-color: var(--red); }

/* Accroche */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(800px 500px at 78% 30%, rgba(217, 180, 74, .16), transparent 70%),
  radial-gradient(600px 400px at 10% 90%, rgba(227, 38, 59, .14), transparent 70%),
  linear-gradient(180deg, #111113, var(--bg)); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(50% - 2px), rgba(255,255,255,.05) calc(50% - 2px), rgba(255,255,255,.05) calc(50% + 2px), transparent calc(50% + 2px)),
  linear-gradient(90deg, transparent calc(33% - 1px), rgba(255,255,255,.025) calc(33% - 1px), rgba(255,255,255,.025) 33%, transparent 33%),
  linear-gradient(90deg, transparent calc(67% - 1px), rgba(255,255,255,.025) calc(67% - 1px), rgba(255,255,255,.025) 67%, transparent 67%); }
.hero-in { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; color: var(--gold); border: 1px solid rgba(217,180,74,.4); background: rgba(217,180,74,.08); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 22px; }
.hero-logo { width: min(380px, 100%); margin: 0 0 18px -6px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.hero-title { font-family: var(--head); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 14px; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 13px; color: #d6d6d9; }
.chips li::before { content: '●'; color: var(--red); margin-right: 8px; font-size: 9px; vertical-align: 2px; }
.hero-shot { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .5s; }
.hero-shot:hover { transform: none; }

/* Cadre des captures */
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #34343a; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(217,180,74,.06); position: relative; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.zoomable { cursor: zoom-in; }

/* Chiffres */
.stats { border-block: 1px solid var(--line); background: var(--bg2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in div { padding: 30px 16px; text-align: center; border-left: 1px solid var(--line); }
.stats-in div:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--head); font-size: 52px; line-height: 1; color: var(--gold); }
.stats .upto { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; vertical-align: 6px; }
.stats span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }

/* Sections */
.section { padding: 110px 0; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.video { margin-top: 36px; }
.video video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev { grid-template-columns: 5fr 7fr; }
.feature.rev figure { order: 2; }
.num { display: block; font-family: var(--head); font-size: 20px; font-weight: 700; color: var(--red); letter-spacing: .1em; margin-bottom: 8px; }
.num::after { content: ''; display: inline-block; width: 46px; height: 2px; background: var(--gold); margin-left: 12px; vertical-align: 5px; }
.feature-text p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: #dcdcdf; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(217,180,74,.5); transform: translateY(-3px); }
.card .ico { font-size: 28px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(227,38,59,.2), rgba(217,180,74,.2)); margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

.flags { list-style: none; padding: 0; margin: 44px auto 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 980px; }
.flags li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px 12px 12px; font-weight: 600; }
.flags img { width: 40px; height: 28px; object-fit: cover; border-radius: 4px; }
.note { color: var(--muted); font-size: 14px; max-width: 760px; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; position: relative; text-align: left; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .9; }
.gallery button:hover img { transform: scale(1.04); opacity: 1; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-weight: 600; font-size: 14px; color: #fff; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
details[open] { border-color: rgba(217,180,74,.45); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 0 0 20px; }

.final { padding: 110px 0; background: radial-gradient(700px 360px at 50% 100%, rgba(227,38,59,.22), transparent 70%), radial-gradient(600px 300px at 50% 0, rgba(217,180,74,.12), transparent 70%); }
.final img { margin: 0 auto 24px; }
.final .lead { margin-bottom: 30px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }


/* Pastille « mobile bientôt » */
.soon-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px dashed #4a4a50; color: #d6d6d9; font-size: 13px; font-weight: 600; text-decoration: none; }
.soon-pill:hover { border-color: var(--gold); color: var(--gold); }
.soon-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,180,74,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(217,180,74,0); } }

/* Deux modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.mode:hover { transform: translateY(-4px); border-color: rgba(227,38,59,.6); }
.mode.gold:hover { border-color: rgba(217,180,74,.7); }
.mode img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.mode-body { padding: 26px 28px 30px; }
.mode-title { font-size: 44px; color: var(--gold); margin-bottom: 10px; }
.mode-title.red { color: var(--red); }
.mode-body p { color: var(--muted); margin: 0 0 16px; }
.more { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--text); }
.more::after { content: ' →'; color: var(--gold); }

/* Section MyTeam */
.myteam { position: relative; overflow: hidden; background: #0b0b0c; border-block: 1px solid #3a3220; }
.myteam-bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 500px at 85% 0, rgba(217,180,74,.13), transparent 70%),
  radial-gradient(700px 500px at 0 60%, rgba(227,38,59,.10), transparent 70%); }
.myteam .wrap { position: relative; }
.badge-new { display: inline-block; background: var(--gold); color: #141414; padding: 5px 12px; border-radius: 6px; letter-spacing: .14em; }
.num.gold { color: var(--gold); }
.num.gold::after { background: var(--red); }
.divisions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 20px; }
.divisions span:not(.arrow) { padding: 6px 16px; border-radius: 8px; border: 2px solid; }
.div-bronze { color: #d08a4e; border-color: #8a5a32; }
.div-silver { color: #cfd3d8; border-color: #7d838a; }
.div-gold { color: var(--gold-2); border-color: var(--gold); box-shadow: 0 0 24px rgba(217,180,74,.25); }
.divisions .arrow { color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 90px; }
.strip figure { cursor: zoom-in; }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-weight: 600; font-size: 14px; }
.fair { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; background: linear-gradient(135deg, rgba(217,180,74,.08), rgba(227,38,59,.06)); border: 1px solid rgba(217,180,74,.35); border-radius: 18px; padding: 40px; }
.fair-text p { color: var(--muted); font-size: 17px; }
.shield { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: #141414; font-size: 28px; font-weight: 800; margin-bottom: 18px; }

/* Mobile */
.mobile-in { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.lead.left { margin: 0 0 22px; }
.phones { position: relative; height: 420px; }
.phone { position: absolute; background: #050505; border: 2px solid #3a3a3e; border-radius: 34px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.phone .screen { width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone.tablet { left: 0; top: 0; width: 82%; aspect-ratio: 4 / 3; border-radius: 26px; padding: 14px; }
.phone.tablet .screen { border-radius: 14px; }
.phone:not(.tablet) { right: 0; bottom: 0; width: 56%; aspect-ratio: 19.5 / 9; border-color: var(--gold); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 12px; border: 1px solid #3a3a3e; background: #0d0d0e; min-width: 190px; }
.store-ico { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #e7e7ea, #9a9aa2); }
.store-ico.play { background: linear-gradient(135deg, var(--gold), var(--red)); display: grid; place-items: center; color: #111; font-size: 13px; }
.store small { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.store b { font-size: 18px; }

/* Galerie : repère MyTeam */
.gallery button.mt::after { content: 'MyTeam'; position: absolute; top: 10px; left: 10px; background: var(--gold); color: #141414; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* Agrandissement des captures */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); }
.lightbox img { max-height: calc(100vh - 110px); width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { text-align: center; color: var(--muted); margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 1px solid #333; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 18px; right: 18px; font-size: 18px !important; }
.lb-prev { left: 18px; top: 50%; }
.lb-next { right: 18px; top: 50%; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.shown { opacity: 1; transform: none; }

/* Tablettes et téléphones */
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-in, .feature, .feature.rev { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev figure { order: 0; }
  .hero-shot { transform: none; }
  .feature { margin-bottom: 80px; }
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .section, .final { padding: 76px 0; }
  .modes, .fair, .mobile-in { grid-template-columns: 1fr; }
  .fair { padding: 26px; gap: 28px; }
  .phones { height: 360px; max-width: 560px; }
  .topbar .btn-small { margin-left: auto; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in div:nth-child(3) { border-left: 0; }
  .stats-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats strong { font-size: 40px; }
  .cards, .gallery, .strip { grid-template-columns: 1fr; }
  .head { margin-bottom: 36px; }
  .phones { height: 260px; }
  .divisions { font-size: 15px; gap: 6px; }
  .divisions span:not(.arrow) { padding: 4px 9px; }
  .mode-title { font-size: 34px; }
  .topbar-in { gap: 12px; }
  .brand span { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
