/* Page CMS « Jeu Axopneus – 1 commande remboursée toutes les 80 » (templates/cms/page-9.tpl).
   La page réutilise les composants de la page « Livraison et montage » (hero-garage, steps-garage,
   avantages-garage, formules-garage, forfait-garage, faq-garage) ; ce fichier ne contient que les
   ajustements et les éléments propres au jeu. */

/* Même conteneur que la page 8 : theme.css exclut .cms-id-9 de la règle .container-fluid */
.cms-id-9 #wrapper > .container-fluid.website {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 16px;
    padding-left: 16px;
}

.cms-id-9 #wrapper {
    overflow-x: clip;
}

/* Sections pleine largeur, comme .hero-garage et .formules-garage */
.jeu-page > section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* En-tête (maquette client : texte à gauche, carte « commande remboursée » à droite) */
.jeu-hero {
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
}

/* Si jeu-hero-entrepot.webp est absent, le calque big-pneu.webp prend le relais */
.jeu-hero-bg {
    position: absolute;
    inset: 0;
    background-color: #111;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.45) 100%),
        url(../img/jeu-hero-entrepot.webp),
        url(../img/big-pneu.webp);
    background-size: cover;
    background-position: 75% center;
    background-repeat: no-repeat;
}

.jeu-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 56px;
}

.jeu-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.jeu-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px 10px 18px;
    border-radius: 999px;
    background: var(--yellow, #ffc700);
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.jeu-hero-badge svg {
    flex: none;
}

.jeu-hero-title {
    margin: 22px 0 0;
    max-width: 15em;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(32px, 4.4vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #fff;
}

.jeu-hero-title span {
    color: var(--yellow, #ffc700);
}

.jeu-hero-desc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    margin-top: 22px;
}

.jeu-hero-desc p {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-wrap: pretty;
}

.jeu-hero-desc .jeu-hero-desc-accent {
    font-weight: 600;
    color: var(--yellow, #ffc700);
}

/* Trois avantages alignés, séparés par un filet vertical */
.jeu-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.jeu-hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.jeu-hero-stat-icone {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--yellow, #ffc700);
    border-radius: 50%;
    color: var(--yellow, #ffc700);
}

.jeu-hero-stat-texte {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.jeu-hero-stat-value {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--yellow, #ffc700);
}

.jeu-hero-stat-label {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
}

/* Grand bouton jaune « Trouver mes pneus » */
.jeu-hero-cta,
.jeu-hero-cta:focus {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin-top: 40px;
    padding: 18px 28px;
    border-radius: 16px;
    background: var(--yellow, #ffc700);
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(255, 199, 0, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.jeu-hero-cta span {
    flex: 1;
    text-align: center;
}

.jeu-hero-cta svg {
    flex: none;
}

.jeu-hero-cta:hover {
    background: #ffd633;
    color: #111;
    text-decoration: none;
}

.jeu-hero-cta:hover .jeu-hero-cta-fleche {
    transform: translateX(3px);
}

.jeu-hero-cta-fleche {
    transition: transform 0.2s ease;
}

/* Pied du hero : règlement + mention, tout en bas */
.jeu-hero-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 28px;
    padding-left: 4px;
    color: #e5e7eb;
}

.jeu-hero-pied svg {
    flex: none;
}

.jeu-hero-lien,
.jeu-hero-lien:focus {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jeu-hero-lien:hover {
    color: var(--yellow, #ffc700);
}

.jeu-hero-pied-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.45);
}

.jeu-hero-mention {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
}

/* Carte « Commande remboursée » façon ticket, avec éclats jaunes */
.jeu-hero-aside {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.jeu-gain-zone {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 0 36px;
}

.jeu-gain-eclats {
    position: absolute;
    pointer-events: none;
}

.jeu-gain-eclats--gauche {
    top: 50%;
    left: -6px;
    width: 34px;
    height: 68px;
    transform: translateY(-50%);
}

.jeu-gain-eclats--droite {
    top: -42px;
    right: -8px;
    width: 64px;
    height: 64px;
}

.jeu-gain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 28px 24px 34px;
    border-radius: 18px;
    background: #fff;
    color: #111;
    /* Encoche de ticket sur le bord gauche */
    -webkit-mask: radial-gradient(circle 13px at 0 50%, transparent 97%, #000 100%);
    mask: radial-gradient(circle 13px at 0 50%, transparent 97%, #000 100%);
}

/* Ombre sur le conteneur : sur .jeu-gain elle serait rognée par le masque */
.jeu-gain-zone {
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.35));
}

.jeu-gain-entete {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jeu-gain-icone {
    flex: none;
    display: flex;
}

.jeu-gain-icone svg {
    width: 60px;
    height: 60px;
}

.jeu-gain-titre {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.jeu-gain-surligne {
    padding: 4px 10px;
    margin-left: -4px;
    border-radius: 4px;
    background: var(--yellow, #ffc700);
    transform: rotate(-2deg);
}

.jeu-gain-montant {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #111;
}

.jeu-gain-montant span {
    font-size: 17px;
    font-weight: 700;
}

.jeu-gain-montant strong {
    font-size: clamp(40px, 4vw, 54px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.jeu-gain-montant small {
    font-size: 18px;
    font-weight: 800;
}

@media (min-width: 640px) {
    .jeu-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, auto));
        justify-content: start;
        gap: 0;
    }

    .jeu-hero-stat {
        padding: 4px 18px;
    }

    .jeu-hero-stat:first-child {
        padding-left: 0;
    }

    .jeu-hero-stat + .jeu-hero-stat {
        border-left: 1px solid rgba(255, 255, 255, 0.28);
    }
}

@media (min-width: 992px) {
    .jeu-hero-bg {
        background-image:
            linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.2) 66%, rgba(0, 0, 0, 0) 100%),
            url(../img/jeu-hero-entrepot.webp),
            url(../img/big-pneu.webp);
        background-position: 70% center;
    }

    .jeu-hero-inner {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        gap: 40px;
        padding: 72px 32px 64px;
    }

    .jeu-hero-aside {
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: 24px;
    }
}

/* Exemples de calcul (cartes .formule-card sans image) */
.jeu-exemple-num {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.jeu-exemple-lignes {
    margin: 14px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jeu-exemple-lignes div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.jeu-exemple-lignes dt {
    font-weight: 400;
    color: #6b7280;
}

.jeu-exemple-lignes dd {
    margin: 0;
    font-weight: 700;
    color: #111;
}

.jeu-exemple-gain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 199, 0, 0.12);
    color: #111;
}

.jeu-exemple-gain span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b45309;
}

.jeu-exemple-gain strong {
    font-size: 24px;
    font-weight: 800;
}

/* Conditions (contenu CMS, modifiable dans Apparence > Pages) */
.jeu-conditions-section {
    background: #fff;
}

.jeu-conditions ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: jeu;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jeu-conditions li {
    counter-increment: jeu;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.5;
    color: #111;
}

.jeu-conditions li::before {
    content: counter(jeu);
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 199, 0, 0.12);
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
}

/* Mentions légales */
.jeu-mentions {
    padding: 28px 0 40px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.jeu-mentions-lien {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111;
}

.jeu-mentions p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #6b7280;
}

.jeu-mentions mark {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 199, 0, 0.25);
    color: #111;
}

@media (min-width: 768px) {
    .cms-id-9 #wrapper > .container-fluid.website {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .cms-id-9 #wrapper > .container-fluid.website {
        max-width: 1024px;
    }

    .jeu-conditions-row {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .cms-id-9 #wrapper > .container-fluid.website {
        max-width: 1280px;
        padding-right: 24px;
        padding-left: 24px;
    }
}
