/* Barlow (SIL OFL 1.1, voir fonts/OFL.txt), servie par le site : aucun appel à Google Fonts. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/barlow-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

: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); }
.top-links { display: flex; align-items: center; gap: 18px; }
@media (max-width: 759px) { .top { flex-wrap: wrap; row-gap: 8px; } .top-links { flex-wrap: wrap; gap: 6px 16px; } }

.intro { text-align: center; padding-block: 36px 26px; }
.intro-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto 14px; }
.intro-mark img { width: 84px; filter: drop-shadow(0 0 22px rgba(255, 194, 71, .6)); animation: float 6s ease-in-out infinite; }
.soon { 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); }
.cat-intro .soon { margin-bottom: 14px; }
@media (max-width: 420px) { .soon { white-space: normal; text-align: center; } }
.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; }
.foot .foot-by { margin-top: 6px; font-size: .8rem; }
.foot .foot-by a { color: var(--soft); text-decoration: underline; text-decoration-color: rgba(255, 194, 71, .45); text-underline-offset: 3px; }
.foot .foot-by a:hover, .foot .foot-by a:focus-visible { color: var(--gold); }

@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 (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) {
  /* Plus haut que le milieu : la barre de lecture de la bande-annonce occupe le bas. */
  .shots-main .splide__arrow { width: 40px; height: 40px; top: 24%; }
  .shots-main .splide__arrow svg { width: 16px; height: 16px; }
  .shot-zoom { right: 8px; top: 8px; padding: 5px 10px; font-size: .78rem; }
}

/* ----- être prévenu à la sortie ----- */
.notify { display: grid; gap: 18px; align-items: center; padding: 22px 20px; margin-top: 8px; border-radius: 12px; border: 1px solid rgba(255, 194, 71, .35); background: linear-gradient(135deg, rgba(22, 48, 74, .85), rgba(17, 35, 56, .85)); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.notify-text p { margin: 0; font-size: .94rem; color: var(--soft); }
.notify-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.notify-form input[type=email] { min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(7, 18, 33, .7); color: var(--text); font: inherit; }
.notify-form input[type=email]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.notify-form .btn { padding-inline: 20px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.notify-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.notify-msg { grid-column: 1 / -1; min-height: 1.2em; margin: 0; font-size: .88rem; color: var(--muted); }
.notify-msg.is-ok { color: #8fe3a5; }
.notify-msg.is-err { color: #ff9a8a; }
.notify-privacy { grid-column: 1 / -1; margin: 0; font-size: .8rem; color: var(--muted); }
.notify-privacy a { color: var(--soft); }
.notify-privacy a:hover { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ----- ce que le jeu fait autrement ----- */
.different { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.different li { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-up), var(--panel)); border-left: 3px solid var(--gold); }
.different b { font-size: .95rem; font-weight: 700; }
.different span { font-size: .86rem; line-height: 1.45; color: var(--muted); }

/* ----- le relevé de partie et l'auteur ----- */
.note { margin-top: 8px !important; font-size: .8rem !important; font-style: italic; color: var(--muted) !important; }
.maker img { aspect-ratio: auto; width: 64px; justify-self: center; border: 0; box-shadow: none; filter: drop-shadow(0 0 18px rgba(255, 194, 71, .45)); }
.maker:hover img { transform: none; }
.feature img[src$="shot-country.webp"], .feature img[src$="shot-parliament.webp"] { object-position: center; }

@media (min-width: 860px) {
  .notify { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 759px) {
  .different { grid-template-columns: 1fr; }
  .notify-form { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 56px 1fr; }
}

/* ----- téléphone : lecture et cibles tactiles ----- */
@media (max-width: 759px) {
  /* Liens d'en-tête et de pied de page : une zone de toucher plus haute, sans changer le dessin. */
  .hub { padding-block: 8px; }
  .top { padding-block: 6px; row-gap: 0; }
  .foot { flex-direction: column; gap: 14px; text-align: center; }
  .foot::before, .foot::after { flex: none; width: 60%; }
  .foot .foot-by a { display: inline-block; padding-block: 8px; }
}
@media (max-width: 599px) {
  /* L'image au-dessus du texte : à côté, elle laissait une colonne de 200 px de large. */
  .feature { grid-template-columns: 1fr; gap: 12px; }
  .feature img { aspect-ratio: 16 / 9; }
  .feature.maker { grid-template-columns: 56px 1fr; gap: 14px; }
  .maker img { aspect-ratio: auto; }
}

/* ----- les sept menus : chaque tuile mène à sa page, celle de la page courante est mise en avant ----- */
.menus-intro { margin: -2px 0 0; font-size: .9rem; color: var(--muted); }
.domains li:has(> a) { padding: 0; }
.domains li > a { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; height: 100%; padding: 14px 16px; border-radius: inherit; color: inherit; text-decoration: none; }
.domains li > a:hover h3, .domains li > a:focus-visible h3 { color: var(--gold); }
.domains li > a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.domains li.is-current { border-color: rgba(255, 194, 71, .7); background: linear-gradient(160deg, rgba(255, 194, 71, .16), var(--panel)); }
.domains li.is-current h3 { color: var(--gold); }
.domains em { grid-column: 2; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ----- pied de page : les pages de PoliEconia ----- */
.foot-nav { margin-bottom: 10px; font-size: .82rem; line-height: 2; text-align: center; }
.foot-nav a { color: var(--soft); text-decoration: none; }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--gold); }
.foot-nav [aria-current] { color: var(--gold); }

@media (max-width: 759px) {
  .domains li > a { grid-template-columns: 1fr; justify-items: center; row-gap: 8px; padding: 12px 4px 10px; text-align: center; }
  .domains em { display: none; }
  .foot-nav a, .foot-nav span { display: inline-block; padding-block: 6px; }
}

/* ----- page d'un menu : introduction courte sur la bannière du menu, captures, onglets, leviers ----- */
.hero-cat::before {
  background:
    linear-gradient(180deg, rgba(7, 18, 33, .78) 0%, rgba(11, 26, 43, .55) 35%, rgba(11, 26, 43, .9) 75%, var(--bg) 100%),
    var(--cat-bg, url('img/hero.webp')) center 40% / cover no-repeat;
}
.cat-intro { padding-block: 26px 34px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }
.cat-intro h1 { text-transform: none; }
.cat-intro h1 .kicker { margin-bottom: 10px; }
.cat-name { display: block; max-width: 22ch; margin-inline: auto; font-size: clamp(1.7rem, 4.4vw, 2.7rem); font-weight: 700; line-height: 1.15; }
.cat-intro .lead { margin-top: 14px; }

.figs { display: grid; gap: 22px; }
.fig { margin: 0; }
.fig .shot-link img { aspect-ratio: auto; }
.fig .shot-link:hover img { transform: scale(1.015); }
.fig .shot-link:hover .shot-zoom { background: var(--gold); color: #1a1200; }
.fig figcaption { margin-top: 10px; font-size: .9rem; color: var(--soft); }

.tab-grid { display: grid; gap: 16px; margin-top: 16px; }
.tab-card { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-up), var(--panel)); }
.tab-card img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.tab-card div { padding: 14px 18px 18px; }
.tab-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--gold); }
.tab-card p { margin: 0; font-size: .92rem; color: var(--soft); }

.prose p { max-width: 75ch; margin: 0 0 12px; color: var(--soft); }
.prose ul { max-width: 75ch; margin: 0 0 12px; padding-left: 20px; color: var(--soft); }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--text); }

.levers { display: grid; gap: 10px; margin: 16px 0 0; }
.levers div { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.levers dt { font-weight: 700; color: var(--text); }
.levers dd { margin: 4px 0 0; font-size: .9rem; color: var(--soft); }

.faq-solo { max-width: 860px; }

@media (min-width: 860px) {
  .figs { grid-template-columns: 1fr 1fr; align-items: start; }
  .tab-grid { grid-template-columns: 1fr 1fr; }
  .levers { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) { .different.cases { grid-template-columns: 1fr 1fr; } }

/* ----- la bande-annonce, première diapositive du carrousel : mêmes proportions que les captures ----- */
.shot-video { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 194, 71, .35); background: #071221; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.shot-video video { display: block; width: 100%; height: auto; aspect-ratio: 1980 / 1265; object-fit: contain; background: #071221; }
.thumb-video img { object-position: center; }
.thumb-video::after { content: ''; position: absolute; left: 50%; top: 38%; width: 0; height: 0; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--gold); filter: drop-shadow(0 0 6px rgba(0, 0, 0, .7)); }

/* ----- les menus du jeu, comme la barre latérale du jeu -----
   Le contenu reste toujours centré : le menu flotte par-dessus, il ne décale rien.
   - ordinateur (≥ 1240 px) : il glisse depuis la gauche dès que la bande du haut sort de l'écran. Déplié (236 px),
     il tient dans la marge d'un écran large ; replié en rail d'icônes (56 px), il tient dans celle d'un écran courant
     et se déplie au survol, par-dessus le contenu. Le bouton du bas réduit ou agrandit, et le choix est retenu.
   - téléphone et tablette : tiroir derrière le bouton Menus, et barre fine en haut une fois l'en-tête quitté. */
:root { --side-w: 236px; --rail-w: 56px; }
.side-nav { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: var(--side-w); display: flex; flex-direction: column; gap: 14px; padding: 16px 10px 14px; overflow-x: hidden; overflow-y: auto; background: rgba(7, 18, 33, .97); border-right: 1px solid rgba(255, 194, 71, .22); box-shadow: 8px 0 30px rgba(0, 0, 0, .35); }
.side-brand { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 4px 8px 12px; border-bottom: 1px solid rgba(255, 194, 71, .3); color: var(--text); text-decoration: none; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.side-brand img { flex: none; width: 24px; height: auto; }
.side-brand b span { color: var(--gold); }
.side-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.side-item { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; padding: 8px 8px 8px 9px; border-radius: 8px; border-left: 3px solid transparent; color: var(--text); text-decoration: none; transition: background .2s, border-color .2s; }
.side-item i { grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: var(--gold); }
.side-item svg { width: 17px; height: 17px; fill: currentColor; }
.side-name { font-weight: 700; font-size: .95rem; line-height: 1.3; white-space: nowrap; }
.side-tabs { font-size: .72rem; line-height: 1.35; color: var(--muted); }
a.side-item:hover, a.side-item:focus-visible { background: rgba(255, 194, 71, .08); }
a.side-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.side-item.is-current { border-left-color: var(--gold); background: rgba(255, 194, 71, .12); }
.side-item.is-current .side-name { color: var(--gold); }
.side-item.is-soon { opacity: .5; }
.side-item.is-soon .side-tabs { font-style: italic; }
.side-cta { margin-top: auto; text-align: center; white-space: nowrap; }
.side-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: .82rem; text-align: left; white-space: nowrap; cursor: pointer; }
.side-toggle:hover, .side-toggle:focus-visible { color: var(--gold); background: rgba(255, 194, 71, .08); }
.side-toggle svg { flex: none; width: 18px; height: 18px; transition: transform .3s; }
.side-rail .side-toggle svg { transform: rotate(180deg); }
.side-backdrop { position: fixed; z-index: 55; inset: 0; background: rgba(3, 9, 18, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }

.burger { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 194, 71, .5); background: rgba(7, 18, 33, .6); color: var(--text); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.burger:hover, .burger:focus-visible { border-color: var(--gold); color: var(--gold); }
.burger-icon, .burger-icon::before, .burger-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.burger-icon { position: relative; }
.burger-icon::before, .burger-icon::after { content: ''; position: absolute; left: 0; }
.burger-icon::before { top: -6px; }
.burger-icon::after { top: 6px; }
.mini-bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: rgba(7, 18, 33, .95); border-bottom: 1px solid rgba(255, 194, 71, .25); transform: translateY(-110%); transition: transform .3s; }
.mini-bar .brand img { width: 24px; }

@media (min-width: 1240px) {
  .burger, .mini-bar, .side-backdrop { display: none; }
  .side-nav { transition: width .25s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); }
  .js .side-nav { transform: translateX(-100%); visibility: hidden; transition: width .25s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s .35s; }
  .js.past-hero .side-nav { transform: none; visibility: visible; transition: width .25s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1); }
  /* Replié : le rail d'icônes. Les noms restent lisibles par les lecteurs d'écran. Le survol ou le clavier le déplient. */
  .side-rail .side-nav:not(:hover):not(:focus-within) { width: var(--rail-w); box-shadow: none; }
  .side-rail .side-nav:not(:hover):not(:focus-within) :is(.side-name, .side-tabs, .side-brand b, .side-toggle span) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .side-rail .side-nav:not(:hover):not(:focus-within) .side-item { grid-template-columns: 22px; padding-inline: 4px 0; }
  .side-rail .side-nav:not(:hover):not(:focus-within) .side-cta { visibility: hidden; }
  .side-rail .side-nav:not(:hover):not(:focus-within) .side-brand { padding-inline: 6px 0; }
}
@media (max-width: 1239px) {
  .side-toggle { display: none; }
  .side-nav { width: min(300px, 86vw); transform: translateX(-100%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .nav-open .side-nav { transform: none; visibility: visible; transition: transform .3s; }
  .nav-open .side-backdrop { opacity: 1; pointer-events: auto; }
  .nav-open body { overflow: hidden; }
  .past-hero .mini-bar { transform: none; }
  .top { flex-wrap: wrap; }
  .top .burger { order: 2; margin-left: auto; }
  .top .top-links { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .side-nav, .mini-bar, .side-backdrop, .side-toggle svg { transition: none !important; }
}

/* La note sous les chiffres du moteur : dire à quoi ils servent. */
.data-note { max-width: 75ch; margin: 12px auto 0; font-size: .86rem; line-height: 1.55; color: var(--soft); text-align: center; }
