/*
 * Habillage du jeu-concours CANAL+ "L'offre venue d'ailleurs".
 *
 * Fond : approximation CSS (dégradé + grille + halo) en attendant le vrai
 * visuel (onde/grille + logo CANAL+) fourni par le client — à remplacer dans
 * .game-hero__bg / .cross dès que l'asset est disponible (cf. README).
 */

@font-face {
    font-family: 'Canal';
    src: url("../fonts/CanalLightRomain-yjh6mfL.otf") format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canal';
    src: url("../fonts/CanalLightItalique-KimbYUG.otf") format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Canal';
    src: url("../fonts/CanalBoldRomain-RHdW0xi.otf") format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Canal';
    src: url("../fonts/CanalBoldItalique-EjokQ3p.otf") format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Noir pur : doit matcher exactement le fond des bandeaux (hero-band.webp,
       offers-band.webp), sinon le raccord avec les images laisse un liseré visible. */
    --bg: #000000;
    --card-bg: #ffffff;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, .68);
    --accent-cyan: #5cd6ef;
    --input-border: #d7d7dc;
    --input-placeholder: #9a9aa3;
    --radius-card: 28px;
    --radius-input: 14px;
    --max-width: 430px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        repeating-linear-gradient(90deg, rgba(92, 214, 239, .05) 0 1px, transparent 1px 34px),
        var(--bg);
    color: var(--text-light);
    font-family: 'Canal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Bandeaux "onde + croix" (hero du haut et bandeau du bas) --- */

.game-band {
    position: relative;
    padding: 0 0 28px;
    overflow: hidden;
}

.game-band__art {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.game-hero {
    padding-top: 12px;
}

.game-hero__title,
.game-hero__subtitle {
    padding: 0 24px;
}

.game-hero__title {
    margin: 0 0 8px;
    font-size: 1.9rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.15;
}

.game-hero__subtitle {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 300;
    text-align: center;
}

/* --- Carte formulaire --- */

.game-card {
    background: var(--card-bg);
    color: #111;
    border-radius: var(--radius-card);
    margin: -8px 20px 0;
    padding: 32px 24px 28px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.game-card__title {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.game-card__subtitle {
    margin: 0 0 24px;
    text-align: center;
    color: #444;
    font-weight: 300;
}

.field {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-input);
    padding: 14px 18px;
    margin-bottom: 16px;
}

/* Honeypot anti-bot : hors écran plutôt que display:none, pour piéger aussi
   les bots qui filtrent les champs masqués par display/visibility. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field:focus-within {
    border-color: var(--accent-cyan);
}

.field__icon {
    flex: none;
    width: 22px;
    height: 22px;
    color: #111;
}

.field input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    font: inherit;
    font-family: 'Canal', sans-serif;
    font-size: 1rem;
    color: #111;
    background: transparent;
}

.field input::placeholder {
    color: var(--input-placeholder);
    font-weight: 300;
}

.field--error {
    border-color: #e0453c;
}

.field-error {
    color: #e0453c;
    font-size: .8rem;
    margin: -10px 0 14px 4px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 24px;
}

.consent input {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #111;
}

.consent label {
    font-size: .9rem;
    line-height: 1.35;
    color: #444;
    font-weight: 300;
}

.btn-play {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 18px;
    background: #111;
    color: var(--accent-cyan);
    font-family: 'Canal', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
}

.btn-play:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.game-card__footnote {
    margin: 20px 0 4px;
    text-align: center;
    font-size: .85rem;
    color: #666;
    font-weight: 300;
}

.game-card__rules-link {
    display: block;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
    color: #111;
    text-decoration: underline;
}

.game-card__privacy {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--input-border);
    text-align: left;
    font-size: .72rem;
    line-height: 1.5;
    color: #666;
    font-weight: 300;
}

.game-card__privacy a {
    color: #666;
    font-weight: 700;
}

/* --- Bandeau offres (bas de page) --- */

.game-offers-band {
    padding-bottom: 0;
}

.game-legal {
    text-align: center;
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 300;
    padding: 20px 24px 32px;
}

.game-legal a {
    color: var(--text-muted);
    font-weight: 700;
}

/* --- Page de remerciement --- */

.game-merci {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 32px;
    gap: 16px;
}

.game-merci__title {
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.game-merci__text {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

.game-merci__link {
    color: var(--accent-cyan);
    font-weight: 700;
    text-decoration: underline;
}
