/* ===================================================================================
   ATVOYAGES — Habillage des messages d'alerte (SweetAlert2)
   À charger APRÈS sweetalert2.min.css. Il remplace le look par défaut (pop-up blanc
   générique, bouton bleu) par celui du site, sans modifier les appels Swal.fire().
   =================================================================================== */

/* Fond : voile sombre légèrement flouté */
.swal2-container.swal2-backdrop-show,
.swal2-container { background: rgba(16, 30, 38, .55) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 20000; }

/* Boîte */
.swal2-popup {
    position: relative;
    width: min(92vw, 440px);
    padding: 38px 30px 28px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(10, 24, 34, .38);
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
}
.swal2-popup::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: linear-gradient(90deg, #f9a826, #ffd873 55%, #5a8dab);
}

/* Icônes : couleurs du site */
.swal2-icon { width: 66px; height: 66px; margin: 4px auto 18px; border-width: 3px; font-family: 'Nunito', sans-serif; }
.swal2-icon .swal2-icon-content { font-size: 2.6rem; font-weight: 800; }
.swal2-icon.swal2-warning { border-color: #f9a826; color: #d98a00; background: #fff6e0; }
.swal2-icon.swal2-info { border-color: #5a8dab; color: #2f4f63; background: #e9f1f6; }
.swal2-icon.swal2-question { border-color: #5a8dab; color: #2f4f63; background: #e9f1f6; }
.swal2-icon.swal2-error { border-color: #d64545; background: #fdeeee; }
.swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: #d64545; }
.swal2-icon.swal2-success { border-color: #2e9b6a; color: #2e9b6a; background: #eaf6ef; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #2e9b6a; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(46, 155, 106, .28); }
.swal2-icon.swal2-success [class^=swal2-success-circular-line] { background: transparent; }
.swal2-icon.swal2-success .swal2-success-fix { background: transparent; }

/* Textes */
.swal2-title {
    padding: 0; margin: 0 0 10px;
    font-family: 'Lora', Georgia, serif;
    font-size: 24px; font-weight: 700; line-height: 1.3;
    color: #1c2b34;
    text-transform: none; letter-spacing: 0;
}
.swal2-html-container {
    margin: 0; padding: 0 4px;
    font-size: 15px; font-weight: 500; line-height: 1.65;
    color: #4a5b66;
}

/* Boutons */
.swal2-actions { margin: 26px 0 0; gap: 10px; width: 100%; }
.swal2-styled {
    margin: 0;
    padding: 13px 30px;
    border: 0;
    border-radius: 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.swal2-styled.swal2-confirm {
    background: #2f4f63 !important;               /* écrase confirmButtonColor passé dans le code */
    color: #fff !important;
    box-shadow: none !important;
}
.swal2-styled.swal2-confirm:hover { background: #1b3240 !important; transform: translateY(-1px); }
.swal2-styled.swal2-deny { background: #d64545 !important; color: #fff !important; box-shadow: none !important; }
.swal2-styled.swal2-cancel {
    background: #fff !important;
    color: #2f4f63 !important;
    border: 2px solid #cfdce4;
    padding: 11px 28px;
    box-shadow: none !important;
}
.swal2-styled.swal2-cancel:hover { background: #f1f6f9 !important; }
.swal2-styled:focus { box-shadow: 0 0 0 3px rgba(249, 168, 38, .35) !important; outline: 0; }

/* Barre de minuteur (alertes qui se ferment seules) */
.swal2-timer-progress-bar { background: linear-gradient(90deg, #f9a826, #ffd873); }
.swal2-timer-progress-bar-container { bottom: 0; height: 5px; border-radius: 0; }

/* Entrée en douceur */
@keyframes atvAlerteEntree { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.swal2-popup.swal2-show { animation: atvAlerteEntree .28s ease !important; }

@media (prefers-reduced-motion: reduce) { .swal2-popup.swal2-show { animation: none !important; } }
@media (max-width: 480px) {
    .swal2-popup { padding: 32px 20px 22px; }
    .swal2-title { font-size: 21px; }
    .swal2-actions { flex-direction: column-reverse; }
    .swal2-styled { width: 100%; }
}
