:root {
  --bg: #0b1a2b;
  --bg-deep: #071221;
  --panel: #112338;
  --panel-up: #16304a;
  --line: rgba(255, 255, 255, .08);
  --text: #f7f4ee;
  --soft: #c9d3e0;
  --muted: #9fb0c6;
  --gold: #ffc247;
  --gold-soft: rgba(255, 194, 71, .16);
  --font: 'Barlow', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { margin: 0; line-height: 1.15; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }

/* ----- en-tête : la peinture du jeu, fondue dans le bleu nuit sous la galerie ----- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 18, 33, .7) 0%, rgba(11, 26, 43, .25) 16%, rgba(11, 26, 43, .4) 42%, rgba(11, 26, 43, .92) 66%, var(--bg) 80%),
    radial-gradient(120% 70% at 50% 20%, transparent 55%, rgba(7, 18, 33, .55)),
    url('img/hero.webp') center 30% / cover no-repeat;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 24px; height: 32px; }
.brand b { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05rem; }
.brand b span, .intro h1 .name span { color: var(--gold); }
.hub { display: inline-flex; align-items: center; gap: 4px; color: var(--soft); text-decoration: none; font-size: .9rem; transition: color .2s; }
.hub:hover { color: var(--gold); }

.intro { text-align: center; padding-block: 36px 26px; }
.intro-mark { position: relative; width: 84px; margin: 0 auto 12px; }
.intro-mark img { width: 84px; filter: drop-shadow(0 0 22px rgba(255, 194, 71, .6)); animation: float 6s ease-in-out infinite; }
.soon { position: absolute; left: calc(100% + 16px); top: 34%; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 3px 11px; border-radius: 999px; white-space: nowrap; background: rgba(255, 194, 71, .18); border: 1px solid rgba(255, 194, 71, .65); color: var(--gold); font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
.soon i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s ease-out infinite; }
.intro h1 { font-weight: 600; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .55); }
.intro h1 .kicker { display: block; margin-bottom: 6px; font-size: clamp(.68rem, 1.8vw, .82rem); font-weight: 700; letter-spacing: .22em; color: var(--gold); }
.intro h1 .name { display: block; font-size: clamp(2.4rem, 7vw, 3.9rem); letter-spacing: .06em; }
.tagline { margin: 4px 0 10px; font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 500; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.lead { max-width: 52ch; margin: 0 auto 20px; color: var(--soft); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-block; padding: 10px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ffd270, #f2b33d); color: #1a1200; box-shadow: 0 8px 24px rgba(255, 194, 71, .3); }
.btn-gold:hover { color: #000; box-shadow: 0 12px 30px rgba(255, 194, 71, .45); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .75); color: var(--text); background: rgba(7, 18, 33, .35); backdrop-filter: blur(3px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ----- les rangées sous l'en-tête ----- */
main { padding-bottom: 8px; }
.row { padding-block: 26px; border-top: 1px solid var(--line); }
.pair { display: grid; gap: 26px; }
.cap, .feature h2 { margin-bottom: 10px; font-size: .9rem; font-weight: 700; line-height: 1.35; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.feature { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 18px; align-items: start; }
.feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.feature:hover img { transform: scale(1.03) rotate(-.6deg); }
.feature p { margin: 0; font-size: .94rem; color: var(--soft); }

/* ----- les huit domaines ----- */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.domains li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 14px 16px; border-radius: 10px; background: linear-gradient(160deg, var(--panel-up), var(--panel)); border: 1px solid var(--line); transition: transform .25s, border-color .25s; }
.domains li:hover { transform: translateY(-3px); border-color: rgba(255, 194, 71, .45); }
.domains i { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; margin: 4px; border-radius: 6px; transform: rotate(45deg); background: linear-gradient(135deg, #ffdc7d, #dea03a); box-shadow: 0 0 16px rgba(255, 194, 71, .35); color: #2a1d00; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.domains li:hover i { transform: rotate(135deg) scale(1.08); }
.domains svg { width: 17px; height: 17px; fill: currentColor; transform: rotate(-45deg); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.domains li:hover svg { transform: rotate(-135deg); }
.domains h3 { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.3; }
.domains span { font-size: .82rem; line-height: 1.35; color: var(--muted); }

/* ----- les quatre étapes et les chiffres ----- */
.steps { display: grid; gap: 12px; align-content: center; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step); grid-row: 1 / 3; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--gold); color: #1a1200; font-size: .8rem; font-weight: 800; }
.steps b { font-weight: 600; }
.steps span { font-size: .85rem; color: var(--muted); }
.data { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 0; padding: 0; list-style: none; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255, 194, 71, .28); background: linear-gradient(180deg, rgba(22, 48, 74, .7), rgba(17, 35, 56, .7)); }
.data::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 194, 71, .12) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.data.is-seen::after { animation: sheen 1.8s ease-out .2s; }
.data li { padding: 14px 10px; text-align: center; }
.data li + li { border-left: 1px solid var(--line); }
.data b { display: block; font-size: clamp(1.15rem, 3.4vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--gold); font-variant-numeric: tabular-nums; }
.data span { font-size: .8rem; color: var(--muted); }

/* ----- les questions ----- */
.faq details { margin-top: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 194, 71, .35); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: .92rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-top: 5px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.faq details[open] summary::after { margin-top: 9px; transform: rotate(-135deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: 0; padding: 0 14px 12px; font-size: .9rem; color: var(--muted); }

.foot { display: flex; align-items: center; gap: 16px; padding-block: 22px 36px; font-size: .85rem; color: var(--muted); }
.foot::before, .foot::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 194, 71, .55), transparent); }
.foot p { margin: 0; text-align: center; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 194, 71, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 194, 71, 0); } }
@keyframes sheen { to { transform: translateX(100%); } }

@media (min-width: 860px) {
  .pair { grid-template-columns: 1fr 1fr; gap: 0; }
  .pair > :first-child { padding-right: 28px; }
  .pair > :last-child { padding-left: 28px; border-left: 1px solid var(--line); }
  .intro { padding-block: 46px 30px; }
}
@media (max-width: 759px) {
  .row { padding-block: 22px; }
  .feature { grid-template-columns: 38% 1fr; gap: 14px; }
  .feature h2, .cap { font-size: .8rem; letter-spacing: .1em; }
  .feature p { font-size: .88rem; }
  /* Sur téléphone, les domaines deviennent des tuiles : le losange et le nom. */
  .domains { gap: 8px; }
  .domains li { grid-template-columns: 1fr; justify-items: center; row-gap: 8px; padding: 12px 4px 10px; text-align: center; }
  .domains i { grid-row: auto; width: 24px; height: 24px; }
  .domains svg { width: 14px; height: 14px; }
  .domains h3 { font-size: .72rem; font-weight: 600; line-height: 1.2; }
  .domains span { display: none; }
  .data li { padding: 10px 4px; }
  .data span { display: block; font-size: .7rem; line-height: 1.3; }
}
@media (max-width: 420px) {
  .soon { left: calc(100% + 8px); padding: 2px 8px; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-mark img, .soon i, .data.is-seen::after { animation: none; }
  .feature img, .domains i, .domains svg, .shot-link img, .shots-thumbs .splide__slide { transition: none; }
}

/* ----- galerie : carrousel Splide, plein écran PhotoSwipe ----- */
.shots { padding-bottom: 8px; }
.shots-main { position: relative; }
.shots-main:not(.is-initialized) .splide__track { padding-inline: 8%; }
.shots-main:not(.is-initialized) .splide__slide { width: 100%; }
@media (max-width: 760px) { .shots-main:not(.is-initialized) .splide__track { padding-inline: 6%; } }
.shots-main .splide__track { border-radius: 16px; }
.shots-main .splide__slide { padding-bottom: 4px; }
.shot-link { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); cursor: zoom-in; }
.shot-link img { width: 100%; aspect-ratio: 1980 / 1265; object-fit: cover; object-position: top; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s; }
/* Les voisines restent en retrait : plus petites, plus sombres. */
.shots-main.is-initialized .splide__slide:not(.is-active) .shot-link { cursor: pointer; }
.shots-main.is-initialized .splide__slide:not(.is-active) img { transform: scale(.92); filter: brightness(.45) saturate(.7); }
.shots-main .splide__slide.is-active .shot-link:hover img { transform: scale(1.015); }
.shot-zoom { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(7, 18, 33, .78); border: 1px solid rgba(255, 194, 71, .45); color: var(--gold); font-weight: 700; font-size: .85rem; backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s, background .2s; pointer-events: none; }
.splide__slide.is-active .shot-zoom, .shots-main:not(.is-initialized) .shot-zoom { opacity: 1; }
.splide__slide.is-active .shot-link:hover .shot-zoom { background: var(--gold); color: #1a1200; }
.shot-cap { margin: 12px 4px 0; font-size: .95rem; color: var(--muted); opacity: 0; transition: opacity .4s; }
.shot-cap b { color: var(--text); }
.splide__slide.is-active .shot-cap, .shots-main:not(.is-initialized) .shot-cap { opacity: 1; }

.shots-main .splide__arrow { position: absolute; top: calc(50% - 30px); z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 194, 71, .5); background: rgba(7, 18, 33, .82); color: var(--gold); cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s, background .2s, color .2s; }
.shots-main .splide__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.shots-main .splide__arrow--prev { left: 1%; }
.shots-main .splide__arrow--prev svg { transform: scaleX(-1); }
.shots-main .splide__arrow--next { right: 1%; }
.shots-main .splide__arrow:hover { background: var(--gold); color: #1a1200; transform: scale(1.08); }
.shots-main .splide__arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shots-main .splide__progress { margin: 14px auto 0; width: min(240px, 50%); height: 3px; border-radius: 3px; background: var(--panel-up); overflow: hidden; }
.shots-main .splide__progress__bar { height: 100%; background: var(--gold); }

.shots-thumbs { margin-top: 18px; }
.shots-thumbs .splide__list { justify-content: center; }
.shots-thumbs .splide__slide { position: relative; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; cursor: pointer; transition: opacity .25s, border-color .25s, transform .25s; }
.shots-thumbs .splide__slide:hover { opacity: .85; transform: translateY(-2px); }
.shots-thumbs .splide__slide.is-active { opacity: 1; border-color: var(--gold); }
.shots-thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shots-thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; background: linear-gradient(transparent, rgba(7, 18, 33, .92)); font-weight: 700; font-size: .85rem; text-align: center; }
.shots-thumbs .splide__slide:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Le plein écran aux couleurs du jeu. */
.pswp { --pswp-bg: #050d18; --pswp-icon-color: #ffc247; --pswp-icon-color-secondary: #050d18; }
.pswp__counter { font-family: var(--font); font-weight: 600; color: var(--muted); }
.pswp-caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); padding: 10px 16px; border-radius: 12px; background: rgba(7, 18, 33, .85); border: 1px solid var(--line); color: var(--muted); font: 500 .95rem/1.45 var(--font); text-align: center; pointer-events: none; }
.pswp-caption b { color: var(--text); }
.pswp-caption:empty { display: none; }
@media (max-width: 759px) {
  .shots-main .splide__arrow { width: 40px; height: 40px; top: calc(50% - 44px); }
  .shots-main .splide__arrow svg { width: 16px; height: 16px; }
  .shot-zoom { right: 8px; top: 8px; padding: 5px 10px; font-size: .78rem; }
}
