/* ==========================================================================
   Ludora : site vitrine (Static SSR, une seule feuille de style)
   Palette : rôles --color-* identiques à l'application (Ludora.Front.UI/wwwroot/css/ludora-theme.css,
   mode d'emploi dans branding/palette.md), en clair ou en sombre selon le système.
   Mobile d'abord : 640 px (2 colonnes), 760 px (navigation complète), 960 px (grand écran).
   ========================================================================== */

:root {
    --brand-violet: #6A4BE8;
    --brand-night: #2A1B7A;
    --brand-cream: #FFF8EC;
    --brand-amber: #F2A93B;
    --brand-lilac: #A796F5;
    --brand-gradient: linear-gradient(135deg, var(--brand-violet), var(--brand-night));

    color-scheme: light;
    --color-primary: #6A4BE8;
    --color-on-primary: #FFFFFF;
    --color-primary-container: #E6E0FC;
    --color-on-primary-container: #2A1B7A;
    --color-secondary: #F2A93B;
    --color-on-secondary: #2A1B7A;
    --color-secondary-container: #FDEBCB;
    --color-on-secondary-container: #5C3A00;
    --color-background: #FFF8EC;
    --color-surface: #FFFFFF;
    --color-on-surface: #1E1640;
    --color-on-surface-variant: #5B5378;
    --color-outline: #CFC7E0;

    --accent-gradient: linear-gradient(120deg, #6A4BE8 10%, #2A1B7A 90%);
    --play-bg: var(--brand-night);
    --play-ink: var(--brand-cream);
    --shadow-s: 0 1px 2px rgb(30 22 64 / .06), 0 4px 12px rgb(30 22 64 / .06);
    --shadow-m: 0 10px 28px rgb(42 27 122 / .16);
    --shadow-l: 0 24px 60px rgb(42 27 122 / .26);

    --font-body: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
    --font-tech: "Bahnschrift", "Avenir Next Condensed", "DIN Alternate", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", system-ui, sans-serif;
    --radius-s: 12px;
    --radius-m: 18px;
    --radius-l: 26px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --container: 1120px;
    --gutter: 16px;
    --header-h: 64px;
}

/* Le bloc sombre est écrit deux fois : système en sombre, ou thème forcé par data-theme. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --color-primary: #A796F5;
        --color-on-primary: #1E1257;
        --color-primary-container: #3D2BA0;
        --color-on-primary-container: #E6E0FC;
        --color-secondary: #F5BD62;
        --color-on-secondary: #2A1B7A;
        --color-secondary-container: #5C3A00;
        --color-on-secondary-container: #FDEBCB;
        --color-background: #15102E;
        --color-surface: #1E1840;
        --color-on-surface: #F3EEFF;
        --color-on-surface-variant: #B9B0D6;
        --color-outline: #4A4170;
        --accent-gradient: linear-gradient(120deg, #A796F5 10%, #F5BD62 90%);
        --play-bg: var(--brand-cream);
        --play-ink: var(--brand-night);
        --shadow-s: 0 1px 2px rgb(0 0 0 / .3), 0 4px 12px rgb(0 0 0 / .25);
        --shadow-m: 0 10px 28px rgb(0 0 0 / .4);
        --shadow-l: 0 24px 60px rgb(0 0 0 / .5);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-primary: #A796F5;
    --color-on-primary: #1E1257;
    --color-primary-container: #3D2BA0;
    --color-on-primary-container: #E6E0FC;
    --color-secondary: #F5BD62;
    --color-on-secondary: #2A1B7A;
    --color-secondary-container: #5C3A00;
    --color-on-secondary-container: #FDEBCB;
    --color-background: #15102E;
    --color-surface: #1E1840;
    --color-on-surface: #F3EEFF;
    --color-on-surface-variant: #B9B0D6;
    --color-outline: #4A4170;
    --accent-gradient: linear-gradient(120deg, #A796F5 10%, #F5BD62 90%);
    --play-bg: var(--brand-cream);
    --play-ink: var(--brand-night);
    --shadow-s: 0 1px 2px rgb(0 0 0 / .3), 0 4px 12px rgb(0 0 0 / .25);
    --shadow-m: 0 10px 28px rgb(0 0 0 / .4);
    --shadow-l: 0 24px 60px rgb(0 0 0 / .5);
}

@media (min-width: 640px) {
    :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- Socle ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-on-surface);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
a { color: var(--color-primary); }
ul, ol { margin: 0; }

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 8px;
}

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

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus { top: 12px; }

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Typographie ---------- */

.eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 900; letter-spacing: -.02em; }
.h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 900; letter-spacing: -.015em; }
.h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }

.lead {
    max-width: 62ch;
    margin-top: 16px;
    font-size: clamp(17px, 2.2vw, 20px);
    color: var(--color-on-surface-variant);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-primary);
}

.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Boutons ---------- */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s var(--ease-out), box-shadow .2s, background-color .2s;
}

a.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
    box-shadow: 0 6px 18px rgb(106 75 232 / .3);
}

.btn--ghost {
    background: var(--color-surface);
    color: var(--color-on-surface);
    border-color: var(--color-outline);
}

.btn--ghost:hover { border-color: var(--color-primary); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Bouton Google Play (texte, sans le badge officiel tant que l'app n'est pas publiée). */
.btn--play {
    min-height: 58px;
    padding: 0 22px 0 18px;
    border-radius: 16px;
    background: var(--play-bg);
    color: var(--play-ink);
    text-align: left;
    box-shadow: var(--shadow-m);
}

.btn--play .icon { width: 26px; height: 26px; }

.btn--play__text {
    display: flex;
    flex-direction: column;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
}

.btn--play__text small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    opacity: .8;
}

.btn--play.is-soon { cursor: default; }
.btn--play.is-soon .icon { color: var(--brand-amber); }
.btn--on-dark { --play-bg: var(--brand-cream); --play-ink: var(--brand-night); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
}

/* ---------- Puces ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding: 0;
    list-style: none;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--color-outline);
    border-radius: 999px;
    background: var(--color-surface);
    font-size: 14px;
    font-weight: 800;
}

.chips .icon { width: 16px; height: 16px; stroke-width: 3; color: var(--color-primary); }

.chips--on-dark li { border-color: rgb(255 255 255 / .3); background: rgb(255 255 255 / .1); color: #fff; }
.chips--on-dark .icon { color: var(--brand-amber); }

.chips--on-amber { margin-top: 0; }
.chips--on-amber li { border-color: transparent; }

.chips--on-amber li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-amber);
}

/* ---------- Bandeau de suggestion de langue ---------- */

.lang-suggest {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
    font-size: 15px;
}

.lang-suggest[hidden] { display: none; }

.lang-suggest__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    min-height: 48px;
    padding-block: 6px;
}

.lang-suggest p { margin-right: auto; }

.lang-suggest__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 900;
    color: inherit;
}

.lang-suggest__link .icon { width: 16px; height: 16px; }

.lang-suggest__close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    color: inherit;
    cursor: pointer;
}

/* ---------- En-tête ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgb(207 199 224 / .5);
    background: color-mix(in srgb, var(--color-background) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--color-primary);
    text-decoration: none;
}

.brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgb(42 27 122 / .3);
}

.brand__name { font-size: 26px; font-weight: 900; letter-spacing: -.01em; }

.site-nav,
.site-header__cta { display: none; }

.site-nav ul {
    display: flex;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    color: var(--color-on-surface);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--color-primary-container);
    color: var(--color-on-primary-container);
}

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1.5px solid var(--color-outline);
    border-radius: 999px;
    background: var(--color-surface);
}

.lang-switch a {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.2;
    color: var(--color-on-surface-variant);
    text-decoration: none;
}

.lang-switch a[aria-current] {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.mobile-menu { position: relative; }

.mobile-menu__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-outline);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-on-surface);
    list-style: none;
    cursor: pointer;
}

.mobile-menu__toggle::-webkit-details-marker { display: none; }
.mobile-menu__close,
.mobile-menu[open] .mobile-menu__open { display: none; }
.mobile-menu[open] .mobile-menu__close { display: block; }

.mobile-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(290px, calc(100vw - 2 * var(--gutter)));
    padding: 10px;
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-m);
    background: var(--color-surface);
    box-shadow: var(--shadow-l);
}

.mobile-menu__panel ul { margin-bottom: 8px; padding: 0; list-style: none; }

.mobile-menu__panel li a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--color-on-surface);
    text-decoration: none;
}

.mobile-menu__panel li a:hover { background: var(--color-primary-container); }
.mobile-menu__panel .btn { width: 100%; }

@media (min-width: 760px) {
    .site-header__bar { gap: 16px; }
    .site-nav { display: block; }
    .site-header__cta { display: inline-flex; }
    .mobile-menu { display: none; }
}

/* ---------- Accueil : héros ---------- */

.hero {
    position: relative;
    overflow: clip;
    padding: 36px 0 56px;
}

.hero .container { position: relative; z-index: 1; }

.hero__grid { display: grid; gap: 40px; align-items: center; }

.hero__title {
    font-size: clamp(38px, 7vw, 64px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.05;
}

.hero__accent {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
    padding: 12px 0 8px;
}

.hero__visual::before {
    content: "";
    position: absolute;
    inset: 8% -10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(106 75 232 / .28), transparent);
}

.hero__visual .phone { grid-area: 1 / 1; }

.hero__visual .phone--front {
    z-index: 2;
    width: min(54vw, 300px);
    transform: translateX(-20%) rotate(-4deg);
}

.hero__visual .phone--back {
    z-index: 1;
    width: min(46vw, 260px);
    transform: translateX(32%) translateY(6%) rotate(7deg);
}

@media (min-width: 960px) {
    .deco--1 { display: block; }
    .hero { padding: 72px 0 96px; }
    .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}

.deco {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.deco--amber { background: var(--brand-amber); opacity: .55; }
.deco--lilac { background: var(--brand-lilac); opacity: .55; border-radius: 6px; }
.deco--1 { top: 10%; left: 3%; width: 16px; height: 16px; display: none; }
.deco--2 { top: 7%; right: 10%; width: 22px; height: 22px; transform: rotate(18deg); }
.deco--3 { bottom: 8%; left: 44%; width: 14px; height: 14px; }

/* ---------- Capture dans un cadre de téléphone ---------- */

.phone {
    padding: 7px;
    border-radius: 34px;
    background: #1E1640;
    box-shadow: var(--shadow-l), inset 0 0 0 1px rgb(255 255 255 / .08);
}

.phone img { width: 100%; border-radius: 27px; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section--tight { padding: 16px 0 56px; }
.section--alt { background: color-mix(in srgb, var(--color-primary-container) 38%, var(--color-background)); }

@media (min-width: 960px) {
    .section { padding: 88px 0; }
    .section--tight { padding: 24px 0 88px; }
}

.section-head { max-width: 680px; margin-bottom: 32px; }

.section-head__lead {
    margin-top: 12px;
    font-size: 18px;
    color: var(--color-on-surface-variant);
}

.section-more { margin-top: 24px; }
.section-subtitle { margin-bottom: 16px; }

/* ---------- Cartes de jeux (univers de l'application) ---------- */

.game-grid { display: grid; gap: 16px; }

@media (min-width: 760px) {
    .game-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    /* Nombre impair de jeux : le dernier se centre sous les autres, à la largeur d'une colonne. */
    .game-grid > .game-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 12px);
    }
}

.game-card {
    position: relative;
    display: block;
    isolation: isolate;
    overflow: hidden;
    min-height: 210px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-l);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-m);
    transition: transform .2s var(--ease-out), box-shadow .2s;
}

.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }

.game-card__art {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.game-card--forest::after { background: linear-gradient(to top, rgb(31 52 26 / .88), rgb(31 52 26 / .1) 70%); }
.game-card--space::after { background: linear-gradient(to top, rgb(5 6 15 / .75), rgb(5 6 15 / 0) 70%); }
.game-card--space { box-shadow: var(--shadow-m), inset 0 0 0 1px rgb(61 225 255 / .35); }
.game-card--wonders::after { background: linear-gradient(to top, rgb(20 37 72 / .88), rgb(20 37 72 / .05) 70%); }
.game-card--wingspan::after { background: linear-gradient(to top, rgb(22 60 64 / .92), rgb(22 60 64 / .05) 75%); }
.game-card--belote::after { background: linear-gradient(to top, rgb(12 46 30 / .9), rgb(12 46 30 / .05) 70%); }
.game-card--tarot::after { background: linear-gradient(to top, rgb(48 8 18 / .9), rgb(48 8 18 / .05) 70%); }
.game-card--skyjo::after { background: linear-gradient(to top, rgb(18 62 120 / .86), rgb(18 62 120 / 0) 70%); }
.game-card--gobbler::after { background: linear-gradient(to top, rgb(10 7 32 / .88), rgb(10 7 32 / 0) 70%); }
.game-card--gobbler { box-shadow: var(--shadow-m), inset 0 0 0 1px rgb(167 150 245 / .35); }

.game-card__body {
    position: absolute;
    right: 92px;
    bottom: 22px;
    left: 24px;
}

.game-card__kicker {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.game-card__name { margin-top: 2px; color: #fff; }

.game-card__players {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-weight: 800;
    color: rgb(255 255 255 / .92);
}

.game-card__go {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    transition: transform .2s var(--ease-out);
}

.game-card:hover .game-card__go { transform: translateX(3px); }

.game-card--forest .game-card__kicker { color: #F6D98B; }

.game-card--forest .game-card__name {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 700;
    text-shadow: 0 2px 12px rgb(0 0 0 / .35);
}

.game-card--forest .game-card__go { background: #FFF8EC; color: #2F5130; }
.game-card--space .game-card__kicker { color: #3DE1FF; }

.game-card--space .game-card__name {
    font-family: var(--font-tech);
    font-size: clamp(28px, 4.2vw, 38px);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #EAF6FF;
    text-shadow: 0 0 18px rgb(61 225 255 / .5);
}

.game-card--space .game-card__go {
    background: #3DE1FF;
    color: #05060F;
    box-shadow: 0 0 24px rgb(61 225 255 / .55);
}

.game-card--wonders .game-card__kicker { color: #F2C94C; }

.game-card--wonders .game-card__name {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 700;
    letter-spacing: .04em;
    text-shadow: 0 2px 12px rgb(0 0 0 / .4);
}

.game-card--wonders .game-card__go { background: #F2C94C; color: #143560; }
.game-card--wingspan .game-card__kicker { color: #FFD9A0; text-shadow: 0 1px 6px rgb(10 40 44 / .7); }

.game-card--wingspan .game-card__name {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    color: #FFFDF7;
    text-shadow: 0 2px 10px rgb(10 40 44 / .5);
}

.game-card--wingspan .game-card__go { background: #F2B45A; color: #163C40; }
.game-card--belote .game-card__kicker { color: #F2C45A; }

.game-card--belote .game-card__name {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.6vw, 42px);
    font-style: italic;
    font-weight: 700;
    text-shadow: 0 2px 12px rgb(0 0 0 / .4);
}

.game-card--belote .game-card__go { background: #E2A72E; color: #2B1D04; }
.game-card--tarot .game-card__kicker { color: #F3D58A; }

.game-card--tarot .game-card__name {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 700;
    letter-spacing: .03em;
    text-shadow: 0 2px 12px rgb(0 0 0 / .45);
}

.game-card--tarot .game-card__go { background: #E3B04B; color: #3F0D18; }
.game-card--skyjo .game-card__kicker { color: #FFE27A; }

.game-card--skyjo .game-card__name {
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 900;
    letter-spacing: .02em;
    text-shadow: 0 2px 12px rgb(10 40 80 / .45);
}

.game-card--skyjo .game-card__go { background: #FFC23A; color: #12305A; }
.game-card--gobbler .game-card__kicker { color: #F5BD62; }

.game-card--gobbler .game-card__name {
    font-size: clamp(30px, 4.6vw, 42px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .01em;
    color: #F3EEFF;
    text-shadow: 0 0 18px rgb(160 132 255 / .6);
}

.game-card--gobbler .game-card__go {
    background: #F2A93B;
    color: #2A1B7A;
    box-shadow: 0 0 18px rgb(242 169 59 / .5);
}

/* Bas des pages de jeux : les autres jeux, trois par ligne en grand écran, la dernière ligne centrée. */
@media (min-width: 960px) {
    .game-grid--compact { display: flex; flex-wrap: wrap; justify-content: center; }
    .game-grid--compact > .game-card { flex: 0 1 calc((100% - 48px) / 3); }
    /* Hauteur fixe : avec le ratio 16/9, la hauteur minimale élargirait les cartes hors du conteneur. */
    .game-grid--compact .game-card { aspect-ratio: auto; min-height: 200px; }
    .game-grid--compact .game-card__name { font-size: 30px; }
    /* Nom long sur un ciel clair : sur une seule ligne, le surtitre reste dans le dégradé sombre. */
    .game-grid--compact .game-card--wingspan .game-card__name { font-size: 26px; }
}

/* Encart du Gobe-doigts (accueil, page Jeux) */
.promo {
    display: grid;
    gap: 20px;
    align-items: center;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px dashed var(--color-outline);
}

.promo__text > p:not(.eyebrow) {
    margin: 12px 0 14px;
    font-size: 18px;
    color: var(--color-on-surface-variant);
}

@media (min-width: 760px) {
    .promo { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.more-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-top: 28px;
    font-weight: 700;
    color: var(--color-on-surface-variant);
}

/* Page « Jeux » */

.game-list { display: grid; gap: 40px; padding: 0; list-style: none; }
.game-list__item { display: grid; gap: 18px; align-items: center; }

.game-list__text p {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--color-on-surface-variant);
}

@media (min-width: 860px) {
    .game-list__item { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}

.suggest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.suggest p { max-width: 54ch; color: var(--color-on-surface-variant); }

/* ---------- Étapes et fonctionnalités ---------- */

.steps,
.features {
    display: grid;
    gap: 16px;
    padding: 0;
    list-style: none;
}

.step,
.feature {
    padding: 24px;
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-l);
    background: var(--color-surface);
}

.step p,
.feature p {
    margin-top: 6px;
    color: var(--color-on-surface-variant);
}

.step__number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--color-secondary);
    color: var(--color-on-secondary);
    font-size: 20px;
    font-weight: 900;
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--color-primary-container);
    color: var(--color-primary);
}

.feature__icon .icon { width: 24px; height: 24px; }

/* Étapes avec un bouton chacune (page testeurs) : le bouton reste en bas de la carte. */
.steps--actions .step { display: flex; flex-direction: column; align-items: flex-start; }
.steps--actions .step p { flex: 1; margin-bottom: 20px; }
.steps--actions .btn { white-space: normal; text-align: center; }

@media (min-width: 640px) {
    .features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 960px) {
    .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Galerie de captures ---------- */

.gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 8px max(var(--gutter), calc((100% - var(--container)) / 2)) 28px;
    scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    scrollbar-width: thin;
}

.gallery__item {
    flex: 0 0 auto;
    width: min(60vw, 240px);
    scroll-snap-align: start;
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }

.faq__item {
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-m);
    background: var(--color-surface);
    transition: box-shadow .2s;
}

.faq__item[open] { box-shadow: var(--shadow-s); }

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__icon {
    position: relative;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--color-primary-container);
}

.faq__icon::before,
.faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--color-primary);
    transform: translate(-50%, -50%);
    transition: transform .2s var(--ease-out);
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.faq__answer {
    padding: 0 20px 20px;
    color: var(--color-on-surface-variant);
}

.faq__answer .text-link { margin-top: 10px; }
.faq-group__title { margin-bottom: 18px; }
.faq-group__title a { color: inherit; text-decoration: none; }
.faq-group__title a:hover { color: var(--color-primary); }

/* ---------- En-tête des pages internes ---------- */

.page-intro { padding: 24px 0 40px; }

@media (min-width: 960px) {
    .page-intro { padding: 40px 0 64px; }
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    color: var(--color-on-surface-variant);
}

.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-on-surface); }

.page-intro__body { max-width: 780px; }
.page-intro__body > p:not(.eyebrow, .lead) { margin-top: 16px; }

/* Pages de jeux : l'en-tête reprend l'univers du jeu (dessins de l'application). */
.page-intro--game { color: #fff; }

.page-intro--game .breadcrumbs ol,
.page-intro--game .lead { color: rgb(255 255 255 / .86); }

.page-intro--game .breadcrumbs [aria-current] { color: #fff; }
.page-intro--game .h1 { color: #fff; }
.page-intro--game .pill { border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .12); color: #fff; }

.page-intro--forest {
    background:
        linear-gradient(180deg, rgb(31 52 26 / .82), rgb(31 52 26 / .9)),
        url("../img/forest-scene.svg") center bottom / cover no-repeat;
}

.page-intro--forest .eyebrow { color: #F6D98B; }
.page-intro--forest .h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; }

.page-intro--space {
    background:
        linear-gradient(180deg, rgb(5 6 15 / .74), rgb(5 6 15 / .86)),
        url("../img/space-scene.svg") center / cover no-repeat;
}

.page-intro--space .eyebrow { color: #3DE1FF; }
.page-intro--space .h1 { font-family: var(--font-tech); font-weight: 700; letter-spacing: .01em; }

.page-intro--wonders {
    background:
        linear-gradient(180deg, rgb(20 53 96 / .8), rgb(20 53 96 / .9)),
        url("../img/wonders-scene.svg") center bottom / cover no-repeat;
}

.page-intro--wonders .eyebrow { color: #F2C94C; }
.page-intro--wonders .h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }

.page-intro--wingspan {
    background:
        linear-gradient(180deg, rgb(22 60 64 / .8), rgb(22 60 64 / .9)),
        url("../img/wingspan-scene.svg") right center / cover no-repeat;
}

.page-intro--wingspan .eyebrow { color: #FFD9A0; }
.page-intro--wingspan .h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }

.page-intro--belote {
    background:
        linear-gradient(180deg, rgb(19 74 49 / .82), rgb(19 74 49 / .9)),
        url("../img/belote-scene.svg") right center / cover no-repeat;
}

.page-intro--belote .eyebrow { color: #F2C45A; }
.page-intro--belote .h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; }

.page-intro--tarot {
    background:
        linear-gradient(180deg, rgb(63 13 24 / .82), rgb(63 13 24 / .9)),
        url("../img/tarot-scene.svg") right center / cover no-repeat;
}

.page-intro--tarot .eyebrow { color: #F3D58A; }
.page-intro--tarot .h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }

.page-intro--skyjo {
    background:
        linear-gradient(180deg, rgb(18 62 120 / .78), rgb(18 62 120 / .88)),
        url("../img/skyjo-scene.svg") right center / cover no-repeat;
}

.page-intro--skyjo .eyebrow { color: #FFE27A; }
.page-intro--skyjo .h1 { font-weight: 900; }

.page-intro--gobbler {
    background:
        linear-gradient(180deg, rgb(10 7 32 / .78), rgb(10 7 32 / .88)),
        url("../img/gobbler-scene.svg") right center / cover no-repeat;
}

.page-intro--gobbler .eyebrow { color: #F5BD62; }
.page-intro--gobbler .h1 { font-weight: 900; }

.page-intro--testers { background: var(--brand-gradient); }
.page-intro--testers .eyebrow { color: var(--brand-amber); }
.page-intro--testers .h1 { font-weight: 900; }

@media (min-width: 860px) {
    .page-intro--forest {
        background:
            linear-gradient(90deg, rgb(31 52 26 / .94) 0%, rgb(31 52 26 / .78) 55%, rgb(31 52 26 / .2) 100%),
            url("../img/forest-scene.svg") center bottom / cover no-repeat;
    }

    .page-intro--space {
        background:
            linear-gradient(90deg, rgb(5 6 15 / .94) 0%, rgb(5 6 15 / .86) 45%, rgb(5 6 15 / .1) 100%),
            url("../img/space-scene.svg") center / cover no-repeat;
    }

    .page-intro--wonders {
        background:
            linear-gradient(90deg, rgb(20 53 96 / .95) 0%, rgb(20 53 96 / .82) 50%, rgb(20 53 96 / .15) 100%),
            url("../img/wonders-scene.svg") center bottom / cover no-repeat;
    }

    .page-intro--wingspan {
        background:
            linear-gradient(90deg, rgb(22 60 64 / .96) 0%, rgb(22 60 64 / .86) 50%, rgb(22 60 64 / .12) 100%),
            url("../img/wingspan-scene.svg") right center / cover no-repeat;
    }

    .page-intro--belote {
        background:
            linear-gradient(90deg, rgb(19 74 49 / .96) 0%, rgb(19 74 49 / .86) 50%, rgb(19 74 49 / .15) 100%),
            url("../img/belote-scene.svg") right center / cover no-repeat;
    }

    .page-intro--tarot {
        background:
            linear-gradient(90deg, rgb(63 13 24 / .96) 0%, rgb(63 13 24 / .86) 50%, rgb(63 13 24 / .15) 100%),
            url("../img/tarot-scene.svg") right center / cover no-repeat;
    }

    .page-intro--skyjo {
        background:
            linear-gradient(90deg, rgb(18 62 120 / .94) 0%, rgb(18 62 120 / .82) 50%, rgb(18 62 120 / .1) 100%),
            url("../img/skyjo-scene.svg") right center / cover no-repeat;
    }

    .page-intro--gobbler {
        background:
            linear-gradient(90deg, rgb(10 7 32 / .95) 0%, rgb(10 7 32 / .84) 50%, rgb(10 7 32 / .1) 100%),
            url("../img/gobbler-scene.svg") right center / cover no-repeat;
    }
}

/* ---------- Pages de jeux ---------- */

.showcase {
    display: grid;
    gap: 28px;
    align-items: center;
}

.showcase + .showcase {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px dashed var(--color-outline);
}

.showcase .phone { justify-self: center; width: min(70vw, 290px); }
.showcase__text { max-width: 540px; }
.showcase__text .h3 { font-size: 24px; }

.showcase__text p {
    margin-top: 8px;
    font-size: 18px;
    color: var(--color-on-surface-variant);
}

.showcase__text p + .h3 { margin-top: 28px; }

@media (min-width: 860px) {
    /* Texte calé en haut, à côté du téléphone : centré, il laisserait un grand vide sous le titre de section. */
    .showcase { grid-template-columns: 1fr 290px; gap: 72px; align-items: start; }
    .showcase__text { padding-top: 40px; }
    .showcase--reverse { grid-template-columns: 290px 1fr; }
    .showcase--reverse .phone { order: -1; }
}

.checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--color-outline);
    border-radius: var(--radius-m);
    background: var(--color-surface);
    font-weight: 700;
}

.checklist--plain { gap: 10px; margin: 12px 0 16px; }

.checklist--plain li {
    padding: 0;
    border: 0;
    background: none;
    font-weight: 400;
    color: var(--color-on-surface-variant);
}

.checklist--plain strong { color: var(--color-on-surface); }

.checklist .icon {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    padding: 4px;
    border-radius: 999px;
    background: var(--color-secondary);
    color: var(--color-on-secondary);
    stroke-width: 3.5;
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    font-size: 15px;
    color: var(--color-on-surface-variant);
}

.note .icon { margin-top: 2px; }

.disclaimer {
    margin-top: 32px;
    padding-left: 14px;
    border-left: 3px solid var(--color-outline);
    font-size: 14px;
    color: var(--color-on-surface-variant);
}

/* ---------- Pages légales ---------- */

.legal { display: grid; gap: 12px; }
.legal > .note { margin: 0 0 8px; }

.summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    padding: 22px 24px;
    border-radius: var(--radius-l);
    background: var(--color-secondary-container);
    color: var(--color-on-secondary-container);
}

.summary .h3 { color: inherit; }
.summary p { margin: 4px 0 12px; }
.summary__art { flex: none; width: 112px; height: 112px; }

@media (max-width: 520px) {
    .summary { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
    .summary__art { width: 80px; height: 80px; }
}

.info-card {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--color-outline);
    border-radius: 22px;
    background: var(--color-surface);
}

.info-card__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--color-primary-container);
    color: var(--color-primary);
}

.info-card__icon .icon { width: 22px; height: 22px; }
.info-card .h3 { margin: 8px 0 6px; }
.info-card p { margin-bottom: 8px; color: var(--color-on-surface-variant); overflow-wrap: anywhere; }
.info-card p:last-child { margin-bottom: 0; }
.info-card strong { color: var(--color-on-surface); }
.info-card a { font-weight: 800; }

@media (max-width: 520px) {
    .info-card { flex-direction: column; gap: 4px; padding: 18px; }
}

.request-id { margin-top: 16px; font-size: 14px; color: var(--color-on-surface-variant); }

/* ---------- Bandeau de téléchargement ---------- */

.download-band {
    padding: 56px 0;
    background: var(--brand-gradient);
    color: var(--brand-cream);
}

.download-band__inner { display: grid; gap: 24px; justify-items: start; }
.download-band .h2 { color: #fff; }
.download-band p { max-width: 54ch; margin-top: 8px; opacity: .86; }

.download-band__logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgb(0 0 0 / .35);
}

@media (min-width: 860px) {
    .download-band { padding: 64px 0; }
    .download-band__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

/* ---------- Pied de page ---------- */

.site-footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--color-outline);
    background: var(--color-surface);
    font-size: 15px;
}

.site-footer__grid { display: grid; gap: 32px; }

.site-footer__brand p {
    max-width: 36ch;
    margin-top: 12px;
    color: var(--color-on-surface-variant);
}

.site-footer__title {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-on-surface-variant);
}

.site-footer__nav ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.site-footer__nav a { font-weight: 700; color: var(--color-on-surface); text-decoration: none; }
.site-footer__nav a:hover { color: var(--color-primary); text-decoration: underline; }

.site-footer__bottom {
    display: grid;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-outline);
    font-size: 13px;
    color: var(--color-on-surface-variant);
}

@media (min-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
    .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
