/* ===================================================================================
   ATVOYAGES — Écran de chargement (clic sur « Continuer », « Réserver »…)
   Utilisation : <form data-chargement="Message affiché"> + atv-chargement.js
   =================================================================================== */
#atv-chargement {
    position: fixed; inset: 0; z-index: 30000;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(16, 30, 38, .62);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    font-family: 'Nunito', sans-serif;
}
#atv-chargement.on { display: flex; animation: atvChFondu .25s ease both; }

#atv-chargement .atv-ch-boite {
    position: relative; overflow: hidden;
    width: min(92vw, 380px);
    padding: 40px 30px 32px;
    text-align: center;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(10, 24, 34, .4);
}
#atv-chargement .atv-ch-boite::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: linear-gradient(90deg, #f9a826, #ffd873 55%, #5a8dab);
}

/* Anneau animé autour d'un bateau */
#atv-chargement .atv-ch-anneau {
    position: relative; width: 84px; height: 84px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff6e0;
}
#atv-chargement .atv-ch-anneau::before {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 4px solid #e7eef2; border-top-color: #f9a826; border-right-color: #ffd873;
    animation: atvChTour 1s linear infinite;
}
#atv-chargement .atv-ch-anneau i { font-size: 30px; color: #2f4f63; animation: atvChTangage 1.8s ease-in-out infinite; }

#atv-chargement .atv-ch-titre {
    margin: 0 0 8px; padding: 0;
    font-family: 'Lora', Georgia, serif; font-size: 21px; font-weight: 700; line-height: 1.3;
    color: #1c2b34; text-transform: none; letter-spacing: 0;
}
#atv-chargement .atv-ch-sous { margin: 0; font-size: 14.5px; line-height: 1.6; color: #6d7f8b; }

/* Petits points qui avancent */
#atv-chargement .atv-ch-points { display: inline-flex; gap: 6px; margin-top: 18px; }
#atv-chargement .atv-ch-points span { width: 8px; height: 8px; border-radius: 50%; background: #c89608; opacity: .25; animation: atvChPoint 1.2s ease-in-out infinite; }
#atv-chargement .atv-ch-points span:nth-child(2) { animation-delay: .2s; }
#atv-chargement .atv-ch-points span:nth-child(3) { animation-delay: .4s; }

@keyframes atvChFondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes atvChTour { to { transform: rotate(360deg); } }
@keyframes atvChTangage { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
@keyframes atvChPoint { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
    #atv-chargement .atv-ch-anneau::before, #atv-chargement .atv-ch-anneau i, #atv-chargement .atv-ch-points span { animation: none; }
}
