/* Overrides pour le formulaire du jeu-concours : on force un empilement vertical
   pour que "Nombre de points" et "Identifiant McDonald's" soient sur des lignes
   distinctes quelle que soit la largeur d'écran. */

#jeu-concours-2026 .contest-form {
    grid-template-columns: 1fr;
    gap: 16px;
}

#jeu-concours-2026 .contest-submit {
    width: 100%;
}

/* ============================================================
   Modale de fin de spin — DA McDonald's, minimal
   ============================================================ */

.prize-modal[hidden] { display: none !important; }

.prize-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: prize-fade-in 200ms ease;
}

.prize-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 32, 28, .55);
}

.prize-modal-card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: 92vh;
    overflow: auto;
    padding: 40px 28px 28px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    animation: prize-pop 320ms cubic-bezier(.16, 1.1, .3, 1.05);
}

.prize-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #f3f3f3;
    color: #292929;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .15s;
}
.prize-modal-close:hover { background: #e6e6e6; }

.prize-modal-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
}

.prize-modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12));
}

.prize-modal-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    color: #292929;
    letter-spacing: -.5px;
}

.prize-modal-lead {
    margin: 0 0 10px;
    font-size: 17px;
    color: #292929;
    line-height: 1.35;
}
.prize-modal-lead strong {
    color: #292929;
    font-weight: 800;
}

.prize-modal-info {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1.4;
}

.prize-modal-cta {
    display: inline-block;
    width: 100%;
    background: #ffbc0d;
    color: #292929;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .15s ease, transform .1s ease;
    font-family: inherit;
}
.prize-modal-cta:hover  { background: #ffc93f; }
.prize-modal-cta:active { transform: translateY(1px); }

/* Animations */
@keyframes prize-fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes prize-pop {
    from { opacity: 0; transform: scale(.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Sortie */
.prize-modal.prize-modal-closing {
    animation: prize-fade-out 180ms ease forwards;
}
.prize-modal.prize-modal-closing .prize-modal-card {
    animation: prize-shrink 180ms ease forwards;
}
@keyframes prize-fade-out { to { opacity: 0; } }
@keyframes prize-shrink   { to { transform: scale(.95); opacity: 0; } }

/* Mobile */
@media (max-width: 480px) {
    .prize-modal { padding: 14px; }
    .prize-modal-card { padding: 32px 22px 22px; border-radius: 20px; }
    .prize-modal-title { font-size: 26px; }
    .prize-modal-image { width: 120px; height: 120px; }
}
