/* ===== Modal CGV ===== */

.modal-choice {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;              /* sera mis à "flex" en JS */
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.modal-choice-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-choice-inner {
    position: relative;
    background: #ffffff;
    max-width: 900px;
    width: 75%;
    max-height: 80vh;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(15%);
    margin: 0 auto;
}

/* Zone scrollable du texte CGV (id="cgv-scroll") */
#cgv-scroll {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Boutons (container) */
.modal-message-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Si tu veux un minimum de style pour les boutons */
.modal-message-buttons .button-grey,
.modal-message-buttons .button-red {
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

.modal-message-buttons .button-refuse {
    background-color: white;
    font-weight: 500;
    border-radius: 8px;
    color: var(--red-dark) !important;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    border: 1px solid var(--red-dark);
}
.modal-message-buttons .button-refuse:hover {
    background-color: var(--red-dark);
    font-weight: 500;
    border-radius: 8px;
    color: white !important;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    border: 1px solid var(--red-dark);
}

.modal-message-buttons .button-red {
    background-color: var(--red-dark);
    font-weight: 500;
    border-radius: 8px;
    color: white;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    padding: 12px 24px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    border: 1px solid var(--red-dark);
}

/* Petit message en bas avant scroll complet */
#scroll-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #c0392b;
}


/* ===== Loader global ===== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    display: none;              /* sera mis à "flex" en JS */
    align-items: center;
    justify-content: center;
}

.loader-inner {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-inner p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Spinner simple */
.spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #c0392b;
    animation: rst-spin 0.7s linear infinite;
}

@keyframes rst-spin {
    to {
        transform: rotate(360deg);
    }
}
