/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
    /* Marques */
    --primary-blue: #0077be;
    --title-blue:#1A61AA;
    --accent-coral: #ff7043;
    --sunny-yellow: #ffca28;
    
    /* Bonnets */
    --bonnet-orange: #F98C01;
    --bonnet-gris: #808080;
    --bonnet-vert: #228B22;
    --bonnet-bleu: #66A8E9;
    --bonnet-rouge: #978286;
    
    /* Planning Azur */
    --azur-ecole: #00b4d8;
    --azur-perf: #0077be;
    --azur-adultes: #00bfa5;
    --azur-entrainement: #023e8a;
}

* {
    font-family: "Proza Libre", sans-serif;
    font-weight: 400;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

i { font-style: italic; }

/* ============================================================
   2. TYPOGRAPHIE (PROZA LIBRE)
   ============================================================ */
h1, h2, h3, h4, .fw-bold { font-family: "Proza Libre", sans-serif; }

h1 { color: var(--primary-blue); font-weight: 800; }
h2 { color: #2177BE; font-weight: 700; } /* Ajusté pour lisibilité sur fond blanc */
.h5 {
	color: var(--title-blue) !important;
}
.text-primary { color: var(--primary-blue) !important; }
.bor { color: var(--bonnet-rouge); }

/* Classes utilitaires Proza */
.proza-libre-medium { font-weight: 500; }
.proza-libre-semibold { font-weight: 600; }
[class*="-italic"] { font-style: italic; }

/* ============================================================
   3. COMPOSANTS GÉNÉRIQUES (ICÔNES, CARDS, BTN)
   ============================================================ */
.swim-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.si-primary { fill: var(--primary-blue); }
.si-secondary { fill: #4fc3f7; opacity: 0.4; }
.si-accent { fill: var(--accent-coral); }
.si-white { fill: #ffffff; }

.card {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.card:hover {
    background-color: #f8fdff;
    transform: translateY(-5px);
}

.card:hover .swim-icon {
    transform: translateY(-10px) scale(1.1);
}

.btn-primary { 
    background-color: var(--primary-blue); 
    border: none; 
    padding: 10px 25px;
    border-radius: 50px;
}
.btn-primary:hover { background-color: #005f99; transform: scale(1.02); }

/* ============================================================
   4. SECTIONS HERO (BACKDROPS)
   ============================================================ */
.hero-adultes, .hero-entree, .hero-aquatique {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff !important;
}

.hero-adultes  { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/background/piscine-nereus-2.jpg'); }
.hero-entree   { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/background/piscine-nereus-entree.jpg'); }
.hero-aquatique { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('../images/background/piscine-nereus.jpg'); }

.hero-aquatique h1, .hero-aquatique h2, .hero-aquatique p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ============================================================
   5. CAROUSEL & PLANNING & PRAESES
   ============================================================ */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    height: 550px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex; justify-content: center; align-items: center;
}

.carousel-item.active { opacity: 1; visibility: visible; z-index: 2; }

.carousel-item img {
    max-width: 80%; max-height: 40%;
    position: absolute; top: 35%; left: 50%;
    transform: translate(-50%, -50%);
}

.carousel-caption-custom {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0, 119, 190, 0.98) 30%);
    color: white; padding: 60px 40px 30px; text-align: center;
}

.carousel-btn {
    position: absolute; top: 40%; transform: translateY(-50%);
    z-index: 99; display: flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue); transition: all 0.3s ease;
}

.prev { left: 15px; }
.next { right: 15px; }
.carousel-btn:hover { background-color: var(--primary-blue); color: white; transform: translateY(-50%) scale(1.1); }

/* ============================================================
   SECTION PRÉSIDENTE (Style Glassmorphism & Détaché)
   ============================================================ */

#mot-presidente {
    border-bottom: 20px solid var(--bonnet-bleu); /* Rappel de couleur Aqua */
}

/* 1. La Photo Glassmorphism
   ------------------------------------------------------------ */
.glass-photo-frame {
    background: rgba(255, 255, 255, 0.3); /* Transparent */
    backdrop-filter: blur(10px); /* Flou moderne */
    border-radius: 50%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-block;
    transition: all 0.4s ease;
    cursor: default;
}

.glass-photo-frame:hover {
    box-shadow: 0 15px 45px rgba(0, 119, 190, 0.25);
    transform: scale(1.02);
}

.presidente-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.glass-badge-coral {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background-color: var(--accent-coral);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 2. Le Texte Détaché
   ------------------------------------------------------------ */
.presidente-text-block {
    position: relative;
    padding-left: 20px;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: -10px;
    opacity: 0.15;
}

.detached-text {
    font-family: 'Segoe UI', Roboto, sans-serif; /* Différent du texte global */
    color: #444; /* Gris plus foncé pour le contraste */
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;
}

.detached-text p {
    margin-bottom: 1.5rem;
}

.text-piscine {
    color: var(--azur-perf) !important;
    opacity: 1 !important;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .glass-photo-frame {
        padding: 10px;
    }
    .presidente-photo {
        width: 180px;
        height: 180px;
    }
    .presidente-text-block h2 {
        padding-left: 0 !important;
        text-align: center;
        margin-top: 20px;
    }
    .detached-text {
        padding-left: 0 !important;
        text-align: center;
    }
    .quote-icon { display: none; }
}

/* --- Planning (Correctifs de lisibilité) --- */
.table th {
    background-color: var(--azur-perf) !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    border: none !important;
}

.event {
    border-radius: 8px; padding: 10px 5px;
    font-size: 0.85rem; font-weight: 700; 
    color: #ffffff !important; /* Forcé pour lisibilité */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.event.ecole { background-color: var(--azur-ecole); }
.event.perf { background-color: var(--azur-perf); }
.event.adultes { background-color: var(--azur-adultes); }
.event.entrainement { background-color: var(--azur-entrainement); }

.bg-piscine-ecole { background-color: var(--azur-ecole); }
.bg-piscine-perf { background-color: var(--azur-perf); }
.bg-piscine-adultes { background-color: var(--azur-adultes); }
.bg-piscine-entrainement { background-color: var(--azur-entrainement); }

/* ============================================================
   6. NAVBAR & FOOTER
   ============================================================ */
.navbar {
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding-top: 5px; padding-bottom: 5px;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 119, 190, 0.15);
}
/* Style pour l'item de menu de la page courante */
.nav-link.active.disabled, 
.dropdown-item.disabled {
    color: var(--primary-blue) !important; /* On garde la couleur de la marque */
    cursor: default; /* Curseur flèche normal au lieu de la main */
    pointer-events: none; /* Désactive complètement le clic */
    opacity: 1; /* Bootstrap baisse l'opacité par défaut sur .disabled, on l'annule */
}

/* On s'assure que le gras est bien appliqué */
.navbar-nav .nav-link.active {
    font-weight: 700 !important;
}
.footer-aqua {
    background: linear-gradient(180deg, #0077be 0%, #023e8a 100%);
    color: white;
    position: relative;
}

.footer-wave svg {
    width: 100%; height: 60px;
}

.footer-wave .shape-fill { fill: #f8f9fa; }

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--sunny-yellow); padding-left: 5px; }

.social-links a {
    width: 40px; height: 40px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.1);
    color: white; transition: 0.3s; margin-right: 8px;
}
.social-links a:hover { background: var(--accent-coral); color: white; }

.footer-partners img {
    height: 35px; filter: brightness(0) invert(1); opacity: 0.8;
}

/* ============================================================
   7. TROMBINOSCOPE, PROMOS & COMPTE À REBOURS
   ============================================================ */
.card-trombi { border-radius: 15px; transition: 0.3s; overflow: hidden; background: white; }
.card-trombi:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 119, 190, 0.2) !important; }

.card-img-wrapper { height: 220px; overflow: hidden; }
.card-img-top { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card-trombi:hover .card-img-top { transform: scale(1.1); }

/* Bannières */
/* --- 1. BASE COMMUNE --- */
.promo-section {
    margin-bottom: 20px;
    margin-top: 10px;
}
.promo-content {
    border-radius: 25px;
    transition: all 0.3s ease;
    border-left: 3px solid orange;
}

/* --- 2. STYLE ANNONCE (Standard) --- */
.promo-annonce .promo-content {
    background-color: var(--at-blue); /* Ou ta couleur actuelle */
    color: white;
}
.promo-annonce .bg-accent {
    background-color: rgba(255,255,255,0.2);
}

/* --- 3. STYLE ALERTE (Ultra visible) --- */
.promo-alerte .promo-content {
    background: linear-gradient(135deg, #d00000 0%, #8b0000 100%);
    border: 2px solid #ff4d4d;
    color: white;
    animation: alertPulse 3s infinite;
}

.promo-alerte .promo-icon {
    background-color: rgba(255, 255, 255, 0.25);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.promo-alerte .bg-accent {
    background-color: white !important;
    color: #8b0000 !important;
    font-weight: 800;
    font-size: 24px;
}

/* Animation Alerte */
@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(208, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(208, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(208, 0, 0, 0); }
}

/* Effet de balayage lumineux sur l'alerte */
.promo-alerte .promo-content::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 30%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-30deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    15% { left: 120%; }
    100% { left: 120%; }
}
#detailsParking {
    /* Assure que le texte est bien lisible sur le bleu */
    color: rgba(255, 255, 255, 0.95);
}




#btn-parking {
    min-width: 130px; /* Fixe la largeur pour éviter le mouvement du bouton */
    transition: all 0.3s ease;
}

.border-white-50 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}



.promo-action .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-blue);
}
@keyframes shine-effect { 0% { left: -60%; } 20%, 100% { left: 130%; } }

.bg-sunny { background-color: var(--sunny-yellow) !important; color: #005a8d !important; font-weight: 800; }
.btn-sunny { background-color: var(--sunny-yellow); color: #005a8d; border: none; font-weight: 700; border-radius: 50px; }
.btn-sunny:hover { background-color: #ffd54f; transform: scale(1.05); }

.countdown-item {
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; padding: 8px; min-width: 65px; text-align: center;
}

.countdown-item span { color: var(--sunny-yellow); font-size: 1.3rem; font-weight: 800; display: block; }
.countdown-item label { font-size: 0.65rem; text-transform: uppercase; margin: 0; opacity: 0.9; }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .promo-content { border-radius: 20px; }
    .promo-stage-box { flex-direction: column; text-align: center; gap: 20px; }
    #countdown { justify-content: center; width: 100%; }
    .carousel-container { height: 600px; }
    .table-responsive { border: none; }
}
/* --- Formulaire Inscription Design --- */

.glass-form-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    z-index: 10;
}

/* Style des champs personnalisé */
.form-floating-custom {
    position: relative;
    margin-bottom: 1rem;
}

.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem 1rem 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.05);
}

.form-control-custom:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 119, 190, 0.1);
    transform: translateY(-2px);
}

.form-floating-custom label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}
/* Cache le texte du placeholder par défaut pour éviter le chevauchement */
.form-control-custom::placeholder {
    color: transparent;
    transition: color 0.3s ease;
}

/* Affiche le placeholder seulement quand on clique dans le champ (focus) */
.form-control-custom:focus::placeholder {
    color: #bbb; 
}

/* Le label monte si le champ est focus OU si le placeholder n'est PAS affiché (donc champ rempli) */
.form-control-custom:focus + label,
.form-control-custom:not(:placeholder-shown) + label {
    top: 0.3rem !important;
    left: 0.8rem !important;
    font-size: 0.75rem !important;
    color: var(--primary-blue) !important;
    font-weight: 700;
    background: white; /* Optionnel : pour masquer la ligne du champ derrière le texte */
    padding: 0 5px;
}

/* Animation du label au focus ou si rempli */
.form-control-custom:focus + label,
.form-control-custom:not(:placeholder-shown) + label {
    top: 0.3rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Bouton Submit Aqua */
.btn-submit-aqua {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--azur-ecole) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.3);
}

.btn-submit-aqua:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 190, 0.4);
    filter: brightness(1.1);
}

/* Bulles décoratives animées */
.bubble {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(0, 119, 190, 0.1));
    border-radius: 50%;
    z-index: 1;
    animation: float 15s infinite alternate ease-in-out;
}

.bubble-1 { width: 300px; height: 300px; top: -50px; left: -100px; }
.bubble-2 { width: 200px; height: 200px; bottom: 50px; right: -50px; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(15deg); }
}

@media (max-width: 768px) {
    .glass-form-container { padding: 1.5rem; }
}

/* --- Validation Visuelle Dynamique --- */

/* État d'erreur */
.form-control-custom.is-invalid {
    border-color: var(--accent-coral) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff7043'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff7043' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* État de succès */
.form-control-custom.is-valid {
    border-color: #2ecc71 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%232ecc71' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    color: var(--accent-coral);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 1rem;
    font-weight: 600;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* --- Style de l'infobulle (Tooltip) --- */

[data-tooltip] {
    position: relative;
    cursor: pointer;
}

/* Le corps de l'infobulle */
[data-tooltip]:before {
    content: attr(data-tooltip); /* Récupère le texte du HTML */
    position: absolute;
    bottom: 125%; /* Position au-dessus de l'icône */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(2, 62, 138, 0.95); /* Bleu marine profond AquaTeam */
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* La petite flèche sous l'infobulle */
[data-tooltip]:after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(2, 62, 138, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Affichage au survol */
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.card-title{
	color:var(--title-blue)  !important;
}
/* --- Card Recrutement Dynamique --- */
.recrutement-card-dynamic {
    background: linear-gradient(135deg, var(--azur-perf) 0%, var(--primary-blue) 100%);
    border-radius: 20px;
    padding: 35px 45px;
    position: relative;
    overflow: hidden; /* Pour contenir les vagues */
}

/* Effet de vague en arrière-plan pour le dynamisme */
.wave-bg {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 38%;
    animation: drift 10s infinite linear;
    pointer-events: none;
}

@keyframes drift {
    from { transform: rotate(0deg); }
    from { transform: rotate(360deg); }
}

/* L'icône avec le petit point de notification */
.icon-stack {
    position: relative;
    display: inline-flex;
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-coral);
    border: 2px solid white;
    border-radius: 50%;
}

/* Bouton avec effet de brillance (Glossy) */
.btn-shiny-aqua {
    display: inline-block;
    padding: 12px 35px;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-shiny-aqua:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    color: var(--primary-blue);
}

/* Typographie */
.recrutement-card-dynamic h3 {
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-warning {
    color: var(--sunny-yellow) !important; /* Le jaune pour faire ressortir "Équipe" */
}
/* --- Login Section --- */
.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    /* Ombre très diffuse pour le côté premium */
    box-shadow: 0 10px 40px rgba(0, 119, 190, 0.08) !important;
}

.brand-logo-mini {
    width: 60px;
    height: 60px;
    background: rgba(0, 119, 190, 0.1);
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}

/* Inputs minimalistes */
.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #adb5bd;
    font-size: 1.1rem;
    z-index: 5;
}

.form-control-minimal {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background-color: #f8f9fa;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-minimal:focus {
    background-color: #ffffff;
    border-color: var(--azur-ecole);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

/* Bouton Connexion */
.btn-login-aqua {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-login-aqua:hover {
    background: #005f99;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 190, 0.3);
}
/* Bouton Connexion Variante Solaire */
.btn-login-sunny {
    background: linear-gradient(135deg, #FFCA28 0%, #FF9800 100%);
    color: #005a8d; /* Texte bleu foncé pour un contraste maximal et lisible */
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.btn-login-sunny:hover {
    background: linear-gradient(135deg, #FFD54F 0%, #FB8C00 100%);
    color: #00446a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

.btn-login-sunny:active {
    transform: translateY(0);
}
/* Lien oublié / inscription */
.text-primary {
    color: var(--primary-blue) !important;
    transition: opacity 0.2s;
}

.text-primary:hover {
    opacity: 0.8;
}

/* --- Style Modale Récupération --- */
/* --- Cadre Modale avec Bordure Dégradée --- */
.custom-modal {
    border-radius: 24px !important;
    position: relative;
    padding: 2px; /* L'épaisseur de ta bordure */
    background: linear-gradient(135deg, var(--azur-ecole), var(--primary-blue)); /* Les couleurs du dégradé */
}

/* On crée un fond blanc à l'intérieur qui laisse apparaître la bordure */
.custom-modal .modal-content {
    background: #fff;
    border-radius: 22px !important; /* Un peu moins que le parent pour épouser la forme */
    border: none;
    width: 100%;
    height: 100%;
}

/* Optionnel : On adoucit l'ombre pour qu'elle soit plus bleutée */
.custom-modal.shadow-lg {
    box-shadow: 0 15px 40px rgba(0, 119, 190, 0.15) !important;
}

/* --- Cards de Niveaux --- */
.level-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    padding: 30px 15px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.level-card:hover {
    transform: translateY(-8px);
    border-color: var(--azur-ecole);
    box-shadow: 0 15px 35px rgba(0, 119, 190, 0.08);
    color: var(--primary-blue);
}

.level-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.level-card:hover .level-icon {
    transform: scale(1.1) rotate(-5deg);
}

.btn-level {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.level-card:hover .btn-level {
    opacity: 1;
}

/* On s'assure que sur mobile le texte ne soit pas trop gros */
@media (max-width: 576px) {
    .level-card h4 { font-size: 0.85rem; }
    .level-card { padding: 20px 10px; }
}
/* --- Style Galerie Photos --- */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover; /* Garde des images de même taille */
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 119, 190, 0.6); /* Ton bleu AquaTeam */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Style Vidéos --- */
.video-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card iframe {
    border: none;
}

/* --- Section CTA Test Gratuit --- */
.cta-glass-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--azur-perf) 100%);
    border-radius: 40px;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Petites bulles décoratives */
.cta-glass-box::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-icon-float {
    font-size: 3rem;
    color: var(--sunny-yellow); /* Utilisation de ton jaune pour l'icône de succès */
    filter: drop-shadow(0 0 15px rgba(255, 202, 40, 0.4));
    animation: float-soft 3s infinite ease-in-out;
}

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Adaptation du bouton pour cette section */
.cta-glass-box .btn-login-sunny {
    min-width: 300px;
    border-radius: 50px; /* Plus arrondi pour le côté "bouton d'action" */
}

/* Mobile */
@media (max-width: 768px) {
    .cta-glass-box { padding: 40px 15px; }
    .cta-glass-box h2 { font-size: 1.8rem; }
}
/* --- Styles École de Natation --- */
.icon-circle {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.2);
}

.price-box {
    transition: transform 0.3s ease;
}

.price-box:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.15) !important;
}

#infos-ecole h2 {
    letter-spacing: -0.5px;
}

/* Le bouton jaune spécifique à cette section */
.btn-warning {
    background-color: var(--sunny-yellow);
    border: none;
    color: var(--azur-entrainement);
}

.btn-warning:hover {
    background-color: #ffd54f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* --- Aquateam Exclusive Radio Toggle --- */
:root {
    --at-blue: #0077b6;   /* Bleu Aquateam dynamique */
    --at-orange: #ff7b00; /* Orange sport / sécurité */
    --at-light: #caf0f8;  /* Bleu très clair pour les fonds */
}

.at-swimming-toggle {
    display: flex;
    position: relative;
    background: #f1f5f9;
    border-radius: 12px; /* Look un peu plus carré/moderne que le pill-shape */
    padding: 4px;
    width: 100%;
    max-width: 320px;
    border: 2px solid #e2e8f0;
}

.at-radio-input {
    display: none;
}

.at-label {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    transition: all 0.3s ease;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

/* Le Slider (le fond mobile) */
.at-selection-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* --- Logique de sélection --- */

/* Cas : NON (On utilise l'orange de sécurité/attention) */
#at_nager_no:checked ~ .at-selection-slider {
    left: 4px;
    background: var(--at-orange);
}
#at_nager_no:checked ~ .label-no {
    color: white;
}

/* Cas : OUI (Le bleu club) */
#at_nager_yes:checked ~ .at-selection-slider {
    left: calc(50%);
    background: var(--at-blue);
}
#at_nager_yes:checked ~ .label-yes {
    color: white;
}

/* Feedback au survol */
.at-label:hover:not(.at-radio-input:checked + label) {
    color: var(--at-blue);
}