/* ── DARK DICE DUNGEON — SITE DE PRÉSENTATION ─────────────────────────────────
   Un seul thème, sombre, assumé : c'est celui du jeu. Toutes les couleurs sont
   posées explicitement, aucune ne dépend du réglage clair/sombre du visiteur.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    --sol:      #08070d;
    --panneau:  #13101c;
    --panneau2: #1b1728;
    --trait:    #241f33;
    --trait2:   #362f4a;
    --encre:    #ece8f6;
    --gris:     #948da9;
    --or:       #e0aa3e;
    --or-sombre:#8a6a26;
    --violet:   #8f7bff;
    --sang:     #c8453f;

    --pixel:   "Press Start 2P", monospace;
    --titre:   "Saira Condensed", "Arial Narrow", sans-serif;
    --texte:   "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sol);
    color: var(--encre);
    font-family: var(--texte);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--or); }

/* ── L'ACCROCHE ──────────────────────────────────────────────────────────── */
.tete {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 22px 88px;
    overflow: hidden;
    border-bottom: 1px solid var(--trait);
}

.tete-fond {
    position: absolute;
    inset: 0;
    background: url("/img/fond_titre.jpg") center/cover no-repeat;
    /* L'image est claire au centre : sans ce voile, le titre s'y perdrait. */
    filter: saturate(0.75);
}
.tete-fond::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(8,7,13,.35), rgba(8,7,13,.88) 72%),
        linear-gradient(180deg, rgba(8,7,13,.55), rgba(8,7,13,.35) 45%, var(--sol));
}

.tete-dedans {
    position: relative;
    max-width: 760px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.titre-jeu {
    font-family: var(--pixel);
    font-size: clamp(30px, 7.5vw, 62px);
    line-height: 1.28;
    margin: 0;
    color: #c9a7ff;
    text-shadow:
        3px 3px 0 #2a1745,
        0 0 26px rgba(143,123,255,.55);
    letter-spacing: 0.02em;
}

.accroche {
    font-family: var(--titre);
    font-weight: 600;
    font-size: clamp(17px, 3.4vw, 25px);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--sang);
    margin: 0;
    text-shadow: 0 0 18px rgba(200,69,63,.45);
}

.pitch {
    max-width: 60ch;
    margin: 0;
    color: #d6d1e6;
}
.pitch strong { color: var(--or); font-weight: 500; }

.bouton-principal {
    display: inline-block;
    font-family: var(--titre);
    font-weight: 800;
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    color: #14100a;
    background: linear-gradient(180deg, #f0c25c, var(--or));
    border: 2px solid #fff3d0;
    border-radius: 8px;
    padding: 15px 34px;
    box-shadow: 0 0 30px rgba(224,170,62,.4);
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.bouton-principal:hover,
.bouton-principal:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(224,170,62,.62);
    outline: none;
}
.bouton-principal:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

.mention-magasins {
    font-family: var(--titre);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gris);
    margin: 0;
}

/* ── BANDES ──────────────────────────────────────────────────────────────── */
.bande { padding: 88px 22px; border-bottom: 1px solid var(--trait); }
.bande-sombre { background: var(--panneau); }
.bande-sortie {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(143,123,255,.13), transparent 62%),
        var(--sol);
}

.dedans { max-width: 1080px; margin: 0 auto; }
.dedans.etroit { max-width: 620px; text-align: center; }

.chapeau {
    /* Pas la police pixel ici : Press Start 2P n'a pas de vrais accents, et
       « LA MÉCANIQUE » y sortait avec un é minuscule au milieu des capitales.
       Elle reste pour le titre du jeu et les pastilles, qui sont sans accent. */
    font-family: var(--titre);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--or);
    margin: 0 0 16px;
}

h2 {
    font-family: var(--titre);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 20px;
    text-wrap: balance;
    color: var(--encre);
}

h3 {
    font-family: var(--titre);
    font-weight: 600;
    font-size: 21px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    color: var(--or);
}

p { margin: 0 0 16px; max-width: 62ch; }
.dedans.etroit p { margin-left: auto; margin-right: auto; }

.sous-titre-section { color: var(--gris); max-width: 66ch; margin-bottom: 34px; }

/* ── DEUX COLONNES ───────────────────────────────────────────────────────── */
.deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 54px;
    align-items: center;
}

.capture img {
    border: 1px solid var(--trait2);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.capture-large { max-width: 340px; margin: 36px auto 0; }

/* ── TROIS / QUATRE ──────────────────────────────────────────────────────── */
.trois, .quatre { display: grid; gap: 26px; margin-top: 34px; }
.trois  { grid-template-columns: repeat(3, 1fr); }
.quatre { grid-template-columns: repeat(4, 1fr); }
.trois p, .quatre p { color: var(--gris); font-size: 15.5px; }

.carte {
    background: var(--panneau2);
    border: 1px solid var(--trait);
    border-radius: 10px;
    padding: 22px 20px;
}
.carte-or { border-color: var(--or-sombre); }

.etiquette {
    display: inline-block;
    font-family: var(--titre);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 3px;
    margin: 0 0 10px;
}
.etiquette-libre { background: var(--or); color: #14100a; }

.note-libre {
    margin: 34px auto 0;
    max-width: 68ch;
    text-align: center;
    color: var(--gris);
    border-top: 1px solid var(--trait);
    padding-top: 24px;
}
.note-libre strong { color: var(--or); font-weight: 500; }

/* ── GALERIE ─────────────────────────────────────────────────────────────── */
.galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 44px;
}
.galerie figure { margin: 0; }
.galerie img {
    border: 1px solid var(--trait2);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
}

/* ── HÉROS ───────────────────────────────────────────────────────────────── */
.heros {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}
.heros li { text-align: center; }
.heros img {
    border: 1px solid var(--trait2);
    border-radius: 8px;
    margin-bottom: 8px;
}
.heros span {
    font-family: var(--titre);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gris);
}

/* ── FORMULAIRE ──────────────────────────────────────────────────────────── */
.formulaire { margin: 30px auto 40px; max-width: 480px; text-align: left; }

.libelle {
    display: block;
    font-family: var(--titre);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gris);
    margin-bottom: 8px;
}

.ligne-formulaire { display: flex; gap: 10px; }

.ligne-formulaire input {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--panneau2);
    border: 1px solid var(--trait2);
    border-radius: 7px;
    padding: 13px 15px;
    color: var(--encre);
    font-family: var(--texte);
    font-size: 16px;
}
.ligne-formulaire input::placeholder { color: #6c6580; }
.ligne-formulaire input:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 1px;
    border-color: var(--violet);
}

.ligne-formulaire button {
    flex: 0 0 auto;
    font-family: var(--titre);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #14100a;
    background: linear-gradient(180deg, #f0c25c, var(--or));
    border: 2px solid #fff3d0;
    border-radius: 7px;
    padding: 0 22px;
    cursor: pointer;
}
.ligne-formulaire button:hover { filter: brightness(1.08); }
.ligne-formulaire button:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.chapeau-magasins { margin-top: 40px; }

.magasins {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.magasins li {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--panneau2);
    border: 1px dashed var(--trait2);
    border-radius: 8px;
    padding: 11px 17px;
    font-family: var(--titre);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gris);
}
.pastille {
    font-family: var(--pixel);
    font-size: 8px;
    letter-spacing: 0;
    color: var(--or);
    border: 1px solid var(--or-sombre);
    border-radius: 3px;
    padding: 4px 6px;
}

/* ── PIED ────────────────────────────────────────────────────────────────── */
.pied {
    padding: 54px 22px 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.pied img { border-radius: 10px; opacity: .9; }
.pied p { margin: 0; color: var(--gris); font-size: 15px; }
.pied strong { color: var(--encre); font-weight: 500; }
.menu-pied { font-size: 13px; color: #6c6580; }

/* ── PETITS ÉCRANS ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .deux-colonnes { grid-template-columns: 1fr; gap: 34px; }
    .capture { max-width: 320px; margin: 0 auto; }
    .trois, .quatre, .galerie { grid-template-columns: repeat(2, 1fr); }
    .heros { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .bande { padding: 62px 18px; }
    .trois, .quatre, .galerie { grid-template-columns: 1fr; }
    .heros { grid-template-columns: repeat(3, 1fr); }
    .ligne-formulaire { flex-direction: column; }
    .ligne-formulaire button { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* ── SÉLECTEUR DE LANGUE ─────────────────────────────────────────────────── */
.langues {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;
    display: flex;
    gap: 6px;
    font-family: var(--titre);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
}
.langues a {
    color: var(--gris);
    text-decoration: none;
    padding: 6px 11px;
    border: 1px solid var(--trait2);
    border-radius: 5px;
    background: rgba(8,7,13,.62);
    backdrop-filter: blur(3px);
}
.langues a:hover { color: var(--encre); border-color: var(--or-sombre); }
.langues a[aria-current="page"] {
    color: #14100a;
    background: var(--or);
    border-color: var(--or);
}
.langues a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* ── LE TRAILER ──────────────────────────────────────────────────────────── */
.cadre-video {
    margin: 6px 0 4px;
    width: min(268px, 62vw);
}
.cadre-video video {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid var(--trait2);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,.75), 0 0 40px rgba(143,123,255,.16);
}

/* ── PAGE DE REMERCIEMENT ────────────────────────────────────────────────── */
.page-merci { min-height: 100vh; display: flex; align-items: center; }
.page-merci .retour { margin-top: 34px; }
