:root {
    --red: #8f1528;
    --red-deep: #4e0712;
    --gold: #f3d48a;
    --gold-deep: #c4963a;
    --ink: #2b1218;
    --muted: #7d6570;
    --line: #f0e4e8;
    --card: #fffdfb;
}

* { box-sizing: border-box; }

body.game {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(900px 420px at 50% -8%, rgba(255, 214, 170, .35), transparent 60%),
        linear-gradient(180deg, #b42338 0%, #7a1020 42%, #4a0812 100%);
}

.scene {
    width: min(460px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0 32px;
}

.cookies-ask .scene {
    padding-bottom: 180px;
}

.garland {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.garland i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 8px 0 -2px rgba(0, 0, 0, .15);
}

.garland i:nth-child(3n) { background: #fff; }
.garland i:nth-child(3n+1) { background: #1f6b45; }

.hero { color: #fff; text-align: center; }

.eyebrow {
    margin: 0;
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.eyebrow em {
    color: var(--gold);
    font-style: italic;
}

.hero h1 {
    margin: 6px 0 12px;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.hero-art {
    position: relative;
    margin: 0 auto 8px;
    max-width: 420px;
    text-align: center;
}

.hero-art img {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    margin: 0 auto;
    height: auto;
    display: block;
    background: #fff;
    border-radius: 16px;
}

.under {
    margin-top: 16px;
    color: #fff;
    text-align: center;
}

.prize-badge {
    display: inline-block;
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #5a3b10;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.15;
}

.ribbon {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8e7b2, #e2c16a);
    color: #6a4314;
    font-family: Georgia, Palatino, serif;
    font-style: italic;
}

.guarantees {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0 0 8px;
    font-size: .92rem;
    font-weight: 600;
}

.disclaimer {
    margin: 0 0 16px;
    font-size: .78rem;
    opacity: .9;
}

.is-compact .hero-art,
.is-compact .ribbon,
.is-compact .guarantees { display: none; }

.is-compact .hero h1 { font-size: 1.5rem; }
.is-compact .disclaimer { margin-bottom: 12px; }

.sheet { display: block; }

.card {
    background: var(--card);
    border-radius: 28px;
    padding: 22px 18px 18px;
    box-shadow: 0 18px 50px rgba(40, 0, 8, .28);
}

.card h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.45rem;
}

.lead {
    margin: 0 0 16px;
    text-align: center;
    color: var(--muted);
}

.step-label {
    margin: 0 0 8px;
    text-align: center;
    color: var(--red);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.step-bar {
    height: 6px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: #f3d5dc;
    overflow: hidden;
}

.step-bar span {
    display: block;
    height: 100%;
    background: var(--red);
}

.field { margin-bottom: 12px; }

.field label,
.req {
    display: block;
    margin-bottom: 4px;
    font-size: .86rem;
    font-weight: 600;
}

.req::after { content: " *"; color: var(--red); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.input,
input.input,
select.input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #eadfe3;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.input:focus { border-color: var(--red); outline: none; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.civility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.civility-option { position: relative; }

.civility-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
}

.civility-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1px solid #eadfe3;
    border-radius: 14px;
    font-weight: 600;
}

.civility-option:has(input:checked) span {
    border-color: var(--red);
    background: #fff1f4;
    color: var(--red);
}

.civility-option:has(input:focus-visible) span {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0 14px;
    font-size: .92rem;
    line-height: 1.35;
}

.check input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex: none;
    accent-color: var(--red);
}

.check a { color: var(--ink); }

.btn-go,
.btn-next {
    display: block;
    width: 100%;
    height: 56px;
    border-radius: 999px;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-go {
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, #d12642, #9b1228);
    box-shadow: 0 8px 16px rgba(155, 18, 40, .25);
}

.btn-next {
    margin-top: 10px;
    border: 2px solid var(--red);
    color: var(--red);
    background: #fff;
}

.btn-go::after,
.btn-next::after { content: "  ›"; }

.secure,
.card-links {
    margin: 10px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
}

.card-links a { color: var(--ink); margin: 0 6px; }

.field-error {
    margin: 6px 0 0;
    color: #9d1830;
    font-size: .86rem;
}

.flash {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff4d6;
    color: #6a4314;
}

.offer {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #2a1016;
    color: #fff;
}

.offer img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.offer h3 { margin: 0 0 6px; }
.offer p { margin: 0; color: #f6e7ea; }

/* Étape 3 — créa partenaire (maquette mobile DevenirPanéliste) */
body.game.offer-step {
    background: radial-gradient(ellipse at 50% 35%, #bd0b22, #790009 65%, #570007);
    font-family: Arial, Helvetica, sans-serif;
    color: #171923;
}

.game.offer-step .scene {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 0 0 24px;
}

.game.offer-step .offer-hero {
    display: block;
    width: 100%;
    height: auto;
}

.game.offer-step .sheet {
    margin: 0 6.7%;
}

.game.offer-step .offer-panel {
    position: relative;
    margin: 0;
    padding: 14px 12px 22px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px #45000035;
}

.game.offer-step .offer-panel h1 {
    text-align: center;
    color: #bd0024;
    font-size: clamp(18px, 3.3vw, 26px);
    margin: 0 0 8px;
}

.game.offer-step .offer-progress {
    height: 7px;
    background: #c8002a;
    border-radius: 20px;
    margin: 0 10% 12px;
}

.game.offer-step .offer-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
    font-size: clamp(10px, 2.7vw, 17px);
    font-weight: bold;
    white-space: nowrap;
}

.game.offer-step .offer-steps li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game.offer-step .offer-steps span {
    display: inline-grid;
    place-items: center;
    background: #bd0024;
    color: #fff;
    border-radius: 50%;
    width: 21px;
    height: 21px;
}

.game.offer-step .offer-steps li[aria-current] {
    background: #fce5e8;
    color: #a00018;
    border-radius: 30px;
    padding: 4px;
}

.game.offer-step .offer-go {
    margin: 0;
}

.game.offer-step .offer-creative {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.game.offer-step .offer-creative img {
    display: block;
    width: 100%;
    height: auto;
}

.game.offer-step .offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    text-align: center;
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(14px, 3.8vw, 25px);
    min-height: 52px;
    padding: 12px 8px;
    border-radius: 40px;
    margin-top: 14px;
    cursor: pointer;
}

.game.offer-step .offer-cta span {
    font-size: 1.35em;
    line-height: 1;
}

.game.offer-step .offer-cta-primary {
    border: 0;
    background: linear-gradient(#dc002e, #950007);
    color: #fff;
    box-shadow: 0 5px 12px #a0001830;
}

.game.offer-step .offer-cta-secondary {
    background: #fff;
    border: 2px solid #bd0024;
    color: #990016;
}

.game.offer-step .offer-cta:focus-visible,
.game.offer-step .offer-creative:focus-visible {
    outline: 3px solid #006cb5;
    outline-offset: 3px;
}

.game.offer-step .site-footer {
    margin: 18px 6.7% 0;
}

@media (min-width: 600px) {
    .game.offer-step .offer-panel {
        padding: 22px 24px 32px;
        border-radius: 30px;
    }

    .game.offer-step .offer-steps span {
        width: 28px;
        height: 28px;
    }

    .game.offer-step .offer-cta {
        min-height: 64px;
    }

    .game.offer-step .offer-steps {
        margin-bottom: 24px;
    }
}

.confirm { text-align: center; }

.check-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    font-size: 2rem;
    line-height: 64px;
}

.draw {
    display: inline-block;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff1f4;
    color: var(--red);
    font-weight: 700;
}

.redirect-note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .92rem;
}

.banner-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.banner-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.rebound {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(160deg, #8f1830, #4c1020);
    color: #fff;
    text-align: left;
}

.rebound p { margin: 0 0 8px; }
.rebound-brand { font-weight: 700; }
.rebound-title {
    font-family: Georgia, Palatino, serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    font-size: .85rem;
}

.site-footer a,
.site-footer button {
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.fine,
.hint {
    margin: 8px 0 0;
    text-align: left;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.4;
}

.hint a,
.fine a,
.legal a { color: var(--red); }

.legal h2,
.legal h3,
.legal p,
.legal li { text-align: left; }

.legal h2 { font-size: 1.35rem; }

.legal h3 {
    margin: 18px 0 6px;
    font-size: 1.05rem;
}

.legal p,
.legal li {
    color: #3a2a2e;
    font-size: .95rem;
    line-height: 1.45;
}

.legal .lead { text-align: left; }

.legal ul,
.legal ol { margin: 0 0 12px; padding-left: 1.2rem; }

.table-wrap { overflow-x: auto; margin: 0 0 12px; }

.legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.legal th,
.legal td {
    border-bottom: 1px solid #ead7dc;
    padding: 8px 6px;
    vertical-align: top;
    text-align: left;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cookie {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 12px;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.cookies-ask .cookie {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.cookie p { margin: 0; font-size: .88rem; }

.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cookie button {
    margin-top: 8px;
    flex: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--red);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie button.ghost {
    background: #f3e6ea;
    color: var(--red);
}

@media (max-width: 380px) {
    .split { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
}
