/*HEADER*/
.contact-link{
    font-weight: bold;
}
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.size{
    width: 100%;
    background-color: #0C2C55;
    color: white;
}
.size .nav-link {
    color: white;
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
}

/*LOGO*/
.logo-img{
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /*Maintient le ratio hauteur/largeur*/
    padding: 20px 0;
    position: relative;
    z-index: 10;
}
.logo-img img{
    width: clamp(120px, 18vw, 200px); /* Responsive: min 120px, max 200px */
    height: auto;
}

/*MENU AVEC PHOTOS*/
* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        h1 {
            color: white;
            font-size: 48px;
            margin-bottom: 60px;
            text-align: center;
            text-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        /* Wrapper pour centrer */
        .cards-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 500px;
            margin-top: -100px;  /* Rapproche du logo */
        }

        /* Conteneur des cartes - Effet éventail */
        .hand {
            display: flex;
            position: relative;
            min-height: 400px;
            padding: 30px;
            justify-content: center;
            align-items: center;
            width: 100%;
            max-width: 1300px; /* Limite max au lieu de fixe */
        }

        /* Carte individuelle */
        .card {
            position: absolute;
            left: 50%;
            transition: all 400ms ease-in-out;
            overflow: hidden;
        }

        /* Position initiale : 3 cartes empilées (centrées) */
        .card:nth-child(1) { transform: translateX(calc(-50% - 60px)); z-index: 1; }
        .card:nth-child(2) { transform: translateX(-50%); z-index: 2; }
        .card:nth-child(3) { transform: translateX(calc(-50% + 60px)); z-index: 3; }

        /* Au survol du conteneur : cartes s'écartent (restent centrées) */
        .hand:hover .card:nth-child(1) { transform: translateX(calc(-50% - 400px)); }
        .hand:hover .card:nth-child(2) { transform: translateX(-50%); }
        .hand:hover .card:nth-child(3) { transform: translateX(calc(-50% + 400px)); }

        /* Effet hover sur carte individuelle */
        .card:nth-child(1):hover { 
         transform: translateX(calc(-50% - 60px)) translateY(-20px) scale(1.05); 
         z-index: 100;
            }
        .card:nth-child(2):hover { 
         transform: translateX(-50%) translateY(-20px) scale(1.05); 
         z-index: 100;
            }
        .card:nth-child(3):hover { 
         transform: translateX(calc(-50% + 60px)) translateY(-20px) scale(1.05); 
         z-index: 100;
            }

/* Quand le groupe est survolé ET une carte est survolée */
.hand:hover .card:nth-child(1):hover { 
    transform: translateX(calc(-50% - 400px)) translateY(-20px) scale(1.05); 
    z-index: 100;
}
.hand:hover .card:nth-child(2):hover { 
    transform: translateX(-50%) translateY(-20px) scale(1.05); 
    z-index: 100;
}
.hand:hover .card:nth-child(3):hover { 
    transform: translateX(calc(-50% + 400px)) translateY(-20px) scale(1.05); 
    z-index: 100;
}

        /* Intérieur de la carte */
        .card-wrap {
            display: flex;
            flex-flow: column;
            justify-content: flex-end;
            position: relative;
            border-radius: 12px;
            width: 350px;
            height: 250px;
            min-width: 350px;
            min-height: 250px;
            overflow: hidden;
            transition: 350ms ease-in-out;
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
            cursor: pointer;
        }

        /* Dégradé sombre en bas de la carte 
        .card-wrap::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6) 100%);
            z-index: 1;
        } */

        /* Titre de la carte */
        .card-wrap h2 {
            position: relative;
            z-index: 2;
            color: white;
            font-size: 24px;
            padding: 20px;
            margin: 0;
            text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        }

        /* Lien invisible pour le clic */
        .card-wrap a {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 3;
        }

        /* Couleurs de fond pour chaque carte */
       .card:nth-child(1) .card-wrap {
         background-image: url('../assets/images/Activites_enfants.png');
         background-size: cover;
        background-position: top center;
        }

        .card:nth-child(2) .card-wrap {
         background-image: url('../assets/images/Activites_adultes.png');
         background-size: cover;
         background-position: top center;
        }

        .card:nth-child(3) .card-wrap {
         background-image: url('../assets/images/Activites_seniors.jpg');
         background-size: cover;
         background-position: top center;
        }          

        /* Responsive pour mobile */
       @media (max-width: 1100px) {
    h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }
        .cards-wrapper {
        min-height: auto;
        margin-top: 20px;
        margin-bottom: 80px; /* Espace avant le footer */
        }
    

    .hand {
        display: flex;
        flex-direction: column;
        gap: 30px;
        height: auto;
        padding: 20px;
        width: 100%;
    }

    .card {
        position: relative;
        left: 0;
        transform: none !important;
    }

    .card-wrap {
        width: 100%;
        max-width: 450px; /* Plus large sur tablette */
        min-width: auto;
        height: 280px;
        min-height: auto;
    }

    .hand:hover .card {
        transform: none !important;
    }

    .card:hover {
        transform: scale(1.02) !important;
    }

    .footer-section {
        margin-top: 20px; /* Réduit la marge négative sur tablette/mobile */
    }
}

/* Tablette - cartes plus grandes */
@media (min-width: 768px) and (max-width: 1100px) {
    .card-wrap {
        max-width: 500px;
        height: 300px;
    }
}

/* Mobile - réduire hauteurs */
@media (max-width: 576px) {
    .card-wrap {
        max-width: 100%;
        height: 220px;
    }

    .cards-wrapper {
        margin-top: 0;
        margin-bottom: 80px; /* Espace avant footer */
    }

    .footer-section {
        margin-top: 0; /* Supprime marge négative sur mobile */
    }
}

/* Menu hamburger visible sur fond sombre */
.navbar-toggler {
    border-color: white;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu déroulant Activités */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    background-color: #0C2C55;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.dropdown-item {
    color: white;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
}

/* Mobile : dropdown s'ouvre au clic */
@media (max-width: 991px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: none; /* Désactive hover sur mobile */
    }

    .dropdown-menu.show {
        display: block !important;
        position: static;
        width: 100%;
        margin-top: 0;
        background-color: rgba(12, 44, 85, 0.9);
    }
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0C2C55;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1a4a8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Responsive scroll-to-top */
@media (max-width: 576px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Boutons navigation entre activités */
.activites-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 40px 20px 80px 20px; /* Espacement uniforme avant footer */
    background-color: transparent;
}

/* Fond gris uniquement pour la page enfants */
.activites-navigation.nav-bg-gray {
    background-color: #f8f9fa;
    margin-top: -40px;
    margin-bottom: 0;
    padding: 40px 20px 130px 20px;
}

.activites-navigation .btn-activite {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #0C2C55;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(12, 44, 85, 0.2);
}

.activites-navigation .btn-activite:hover {
    background: #1a4a8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(12, 44, 85, 0.3);
    color: white;
}

.activites-navigation .btn-activite i {
    font-size: 1.1rem;
}

/* Responsive navigation activités */
@media (max-width: 576px) {
    .activites-navigation {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
        margin-bottom: 0;
        padding: 30px 15px 60px 15px; /* Espacement uniforme mobile */
    }

    .activites-navigation.nav-bg-gray {
        margin-top: -30px;
        padding: 30px 15px 80px 15px;
    }

    .activites-navigation .btn-activite {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 25px;
    }
}


 /*FOOTER*/
.footer-section {
    background-color: #0C2C55;
    color: white;
    padding: 50px 30px 20px 30px;
    margin-top: -50px;
}

.footer-section h6 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    /*margin-top: ;*/  /* Augmente cette valeur si nécessaire */
}

.footer-section h6::after {
    position: absolute;
    content: "";
    background: white;
    width: 40px;
    height: 2px;
    left: 0;
    bottom: -8px;
}

.footer-section p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: white;
}

.social-link {
    color: #E1306C !important; /* Rose Instagram */
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    -webkit-text-fill-color: #E1306C; /* Force la couleur du texte */
}

.social-link:hover {
    color: #ff6b9d !important; /* Rose plus clair au survol */
    -webkit-text-fill-color: #ff6b9d;
}

.social-link i {
    font-size: 24px;
    margin-right: 10px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.copyright {
    font-size: 12px;
    color: #aaaaaa;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-bottom: 0;
}


/*Qui sommes nous?*/

.main {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px 100px 20px;  /* top right bottom left */
  text-align: left;
}
main h1{
    color: #0C2C55;
    text-shadow: 0 2px 6px rgba(12, 44, 85, 0.15);
}
.main h2{
    color: #0C2C55;
}
.main h3{
    color: #0C2C55;
}
.main h4{
    color: #0C2C55;
    margin-top: 40px;
    margin-bottom: 10px;
}
.main p{
    text-align: justify;
}
main a{
    font-weight: bold;
}

/*Accordion*/
:root{
  --primary: #227093;
  --secondary: #0C2C55/*#ff5252 ancienne couleur*/;
  --background: #eee;
  --highlight: #ffda79;
  /* Theme color */
  --theme: var(--primary);
}
*, *::before, *::after {
  box-sizing: border-box;
}
/*body {
  display: grid;
  place-content: center;
  place-items: start;
  grid-template-columns: repeat(auto-fit, min(100%, 30rem));
  gap: 1rem;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  color: var(--primary);
  background: var(--background);
}*/

/* Core styles/functionality */
.tab {
  position: relative;
}
.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
  max-height: 50rem; /* Augmenté pour afficher tout le contenu */
}

/* Visual styles */
.accordion {
  color: var(--theme);
  border: 2px solid;
  border-radius: 0.5rem;
  overflow: hidden;
}
.tab__label,
.tab__close {
  display: flex;
  color: white;
  background: var(--theme);
  cursor: pointer;
}
.tab__label {
  justify-content: space-between;
  padding: 1rem;
}
.tab__label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}
.tab__content p {
  margin: 0;
  padding: 1.2rem 1rem 1rem 1rem; /* Plus d'espace en haut */
}

/* Listes dans l'accordéon - même espacement */
.tab__content ul {
  margin: 0;
  padding: 1.2rem 1rem 1rem 2.5rem; /* top right bottom left */
}

.tab__content ul li {
  margin-bottom: 0.5rem;
}
.tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}
.accordion--radio {
  --theme: var(--secondary);
}

/* Arrow animation */
.tab input:not(:checked) + .tab__label:hover::after {
  animation: bounce .5s infinite;
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}


/*Activités enfants*/
/*Team*/
.bg-soft {
    background-color: #f8f9fa;
}

.team-card {
    border: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px -1px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 320px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.team-card:hover .team-image {
    filter: grayscale(0%);
}

.role-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #e9ecef;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #0d6efd;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.member-social {
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    color: #495057;
    font-size: 1.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #0d6efd;
}

/* LinkedIn - couleur bleue officielle */
.social-link-linkedin {
    color: #0077B5 !important;
    -webkit-text-fill-color: #0077B5 !important;
    font-weight: 500;
}

.social-link-linkedin:hover {
    color: #005885 !important;
    -webkit-text-fill-color: #005885 !important;
}

/* Mobile/Tablette : afficher les liens sociaux sans hover */
@media (max-width: 991px) {
    .member-social {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Carousel images*/
.carousel-item img {
    height: 350px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center;
}

/*Carousel adultes - hauteur différente*/
#carouselAdultes .carousel-item img {
    height: 450px !important;
    object-position: top;  /* Ajoute cette ligne */
}
/*Carousel Ladies - hauteur différente*/
#carouselLadies .carousel-item img {
    height: 450px !important;
    object-position: top;  /* Ajoute cette ligne */
}
/*Carousel Seniors - hauteur différente*/
#carouselSeniors .carousel-item img {
    height: 450px !important;
    object-position: top;  /* Ajoute cette ligne */
}

/* Carousel responsive - hauteurs réduites sur mobile */
@media (max-width: 768px) {
    .carousel-item img {
        height: 280px !important;
    }
    #carouselAdultes .carousel-item img,
    #carouselLadies .carousel-item img,
    #carouselSeniors .carousel-item img,
    #carouselSeniors1 .carousel-item img,
    #carouselSeniors2 .carousel-item img {
        height: 320px !important;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 220px !important;
    }
    #carouselAdultes .carousel-item img,
    #carouselLadies .carousel-item img,
    #carouselSeniors .carousel-item img,
    #carouselSeniors1 .carousel-item img,
    #carouselSeniors2 .carousel-item img {
        height: 250px !important;
    }
}

/*Activités colonnes*/
.col-md-6 {
    display: flex;
    flex-direction: column;
}

.col-md-6 p {
    text-align: justify;
}

.col-md-6 .carousel {
    margin-top: auto;  /* Pousse le carousel vers le bas */
}

/*main h2.page-subtitle {
    text-align: center;
    margin-bottom: 75px;
    margin-top: -50px;
    color: #0C2C55;
}*/

/*===========================================
  CONTACT FORM SIMPLE STYLES
===========================================*/

.contact-section-simple {
    padding: 20px 20px 100px 20px;
    background-color: #f5f5f5;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.contact-card h1 {
    text-align: center;
    color: #0C2C55;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 2.2rem;
    text-shadow: 0 2px 6px rgba(12, 44, 85, 0.15);
}

/* Champ caché anti-spam */
.hidden-field {
    display: none !important;
}

/* Champs du formulaire */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #0C2C55;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(12, 44, 85, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #bbb;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

/* Ligne avec 2 champs côte à côte */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-field {
    flex: 1;
}

/* Bouton Submit */
.btn-submit-simple {
    width: 100%;
    padding: 18px 30px;
    background: #0C2C55;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-simple:hover {
    background: #0C2C55;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.btn-submit-simple span {
    transition: transform 0.3s ease;
}

.btn-submit-simple:hover span {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 600px) {
    .contact-card {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .contact-card h1 {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}



/* Option 3 - Boîte info centrée */
.download-info-box {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.download-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.download-info-box h4 {
    margin: 0 0 10px 0;
    color: #0C2C55;
    font-size: 18px;
}

.download-info-box p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.btn-download-box {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0C2C55;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-download-box:hover {
    background-color: #1a4a8a;
    color: white;
}


/* Fond gris pour la page contact uniquement */
.bg-contact {
    background-color: #f5f5f5;
}





.section-construction {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 8rem;
  
  /* Subtil dégradé gris → très léger, du blanc vers un gris très clair */
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 50%, #ebedf0 100%);
  
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 16px;               /* garde un léger arrondi pour la douceur */
  /* border et box-shadow supprimés pour plus de clean */
  
  color: #1e293b;
}

.section-construction__barrier {
  width: 140px;
  height: auto;
  margin-bottom: 2.5rem;
  opacity: 0.92;
}

.section-construction__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 1.2rem;
  color: #0C2C55;
  text-shadow: 0 2px 6px rgba(12, 44, 85, 0.15);
}

.section-construction__text {
  font-size: 1.22rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 2.8rem;
  color: #334155;
}

.section-construction__btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background-color: #0C2C55;
  color: white;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(12, 44, 85, 0.20);
}

.section-construction__btn:hover {
  background-color: #0a2549;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(12, 44, 85, 0.28);
}

/* Responsive */
@media (max-width: 640px) {
  .section-construction {
    padding: 4rem 1rem 6rem;
  }
  .section-construction__title {
    font-size: 2rem;
  }
  .section-construction__barrier {
    width: 110px;
  }
}

/* ==========================================================================
   FIN Bloc "Section en construction" – Moov'Ensemble style (couleur #0C2C55)
   ========================================================================== */


/* ==========================================================================
   Événements 
   ========================================================================== */
.events-section {
  padding: 0 1.5rem 4rem 1.5rem;
  max-width: 1100px;
  margin: -75px auto 0 auto; /* rapproche du logo */
}

.events-section h1 {
  color: #0C2C55;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(12, 44, 85, 0.15);
}

.intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #475569;
}

.event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(12, 44, 85, 0.12);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: transform 0.2s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12, 44, 85, 0.18);
}

.event-card__content {
  padding: 2rem;
}

.event-card__title {
  color: #0C2C55;
  margin: 0 0 1rem;
  font-size: 1.9rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: #64748b;
}

.event-date, .event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #0C2C55;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #0a2549;
}

/* Responsive événements */
@media (min-width: 768px) {
  .events-section {
    padding: 6rem 2rem;
  }
}

/* Mobile - réduire la marge négative pour éviter le chevauchement avec le logo */
@media (max-width: 768px) {
  .events-section {
    margin-top: -20px; /* Réduit sur mobile */
  }
}

/* ==========================================================================
   Galerie – Moov'Ensemble
   ========================================================================== */

.gallery-section {
  padding: 0 1.5rem 4rem 1.5rem; /* top à 0 car déjà dans .main */
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-section h1 {
  color: #0C2C55;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.8rem;
  text-shadow: 0 2px 6px rgba(12, 44, 85, 0.15);
}

.intro {
  text-align: center;
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.event-gallery {
  margin-bottom: 5rem;
}

.event-gallery h2 {
  color: #0C2C55;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.event-date {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  display: block;
}

/* Force les images de galerie à remplir leur espace */
.gallery-grid .gallery-item img {
  width: 100% !important;
  height: 280px !important;         /* Hauteur fixe – ajuste à 260px ou 300px si trop grand/petit */
  object-fit: cover !important;     /* Recadre sans déformer */
  object-position: center !important;
  display: block !important;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.25s;
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item img {
  width: 100%;
  height: 280px;               /* ← Hauteur fixe pour uniformiser, ajuste à 240px ou 300px selon tes goûts */
  object-fit: cover;           /* ← Recadre sans déformer, sujet centré */
  object-position: center;
  display: block;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;       /* ratio 16:9 pour vidéos */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Caption plus visible et mieux positionné */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 44, 85, 0.85) !important; /* plus opaque */
  color: white;
  padding: 12px 10px;
  font-size: 1rem;
  text-align: center;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* empêche le texte de déborder sur plusieurs lignes */
}

.gallery-item:hover .gallery-caption {
  background: rgba(12, 44, 85, 0.92);
}

/* Responsive galerie */
@media (max-width: 768px) {
  .gallery-section {
    padding: 1rem 1rem 3rem 1rem;
  }
  .gallery-section h1 {
    font-size: 2rem; /* Réduit sur mobile */
    margin-bottom: 0.5rem;
  }
  .event-gallery h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .gallery-section h1 {
    font-size: 1.7rem; /* Encore plus petit sur très petit écran */
  }
}

/* Lightbox gallery - video play overlay */
.gallery-videos .col-12 > a {
  position: relative;
  display: block;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(12, 44, 85, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-play-overlay i {
  color: white;
  font-size: 24px;
  margin-left: 4px; /* Centre optiquement le triangle play */
}

.gallery-videos .col-12 > a:hover .video-play-overlay {
  background: rgba(12, 44, 85, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery item clickable */
.gallery-item a {
  display: block;
  position: relative;
  cursor: pointer;
}

.gallery-item a:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Gallery cover - Option 2 compact */
.gallery-cover-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.gallery-cover-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
}

.gallery-cover-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-cover-link:hover .gallery-cover-img {
  transform: scale(1.05);
}

/* Badge compteur de médias */
.gallery-media-count {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 10px;
}

.gallery-media-count span {
  background: rgba(12, 44, 85, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Overlay "Voir la galerie" */
.gallery-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(12, 44, 85, 0.9));
  padding: 40px 20px 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-cover-overlay span {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

.gallery-cover-link:hover .gallery-cover-overlay {
  opacity: 1;
}

/* Cacher les liens pour les autres médias */
.gallery-hidden-links {
  display: none;
}

/* Video play overlay sur cover */
.gallery-cover-link .video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(12, 44, 85, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-cover-link .video-play-overlay i {
  color: white;
  font-size: 28px;
  margin-left: 5px;
}

.gallery-cover-link:hover .video-play-overlay {
  background: rgba(12, 44, 85, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery responsive mobile */
@media (max-width: 768px) {
  .gallery-cover-img {
    height: 280px;
  }
  .gallery-cover-link .video-play-overlay {
    width: 60px;
    height: 60px;
  }
  .gallery-cover-link .video-play-overlay i {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .gallery-cover-img {
    height: 220px;
  }
  .gallery-media-count span {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

.tooltip a.text-white {
  color: #ffffff !important;
  text-decoration: underline;
}
.tooltip a.text-white:hover {
  color: #ffd700 !important;
}

.tooltip-inner {
  background-color: #0C2C55 !important;
  color: white !important;
  max-width: 320px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.tooltip-inner a {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: bold !important;
}

.tooltip-inner a:hover {
  color: #ffd700 !important; /* jaune au hover pour bien voir */
}

.tooltip.show {
  opacity: 1 !important;
}

.salle-btn {
  border-radius: 50px !important; /* boutons très arrondis */
  padding: 10px 24px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border: 2px solid #0C2C55 !important;
  color: #0C2C55 !important;
  background: transparent !important;
}

.salle-btn:hover {
  background: rgba(12, 44, 85, 0.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(12, 44, 85, 0.15) !important;
}

.salle-btn.active {
  background: #0C2C55 !important;
  color: white !important;
  border-color: #0C2C55 !important;
  box-shadow: 0 4px 12px rgba(12, 44, 85, 0.25) !important;
}

/* Responsive : boutons plus petits sur mobile */
@media (max-width: 576px) {
  .salle-btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
  }
}

/* Planning des Cours - Styles spécifiques */

.schedule-event {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(12,44,85,0.25);
  z-index: 100;
}

/* Planning style Outlook */
.schedule-event-outlook {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-event-outlook:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(12,44,85,0.4);
  z-index: 500 !important;
}

.schedule-event-outlook:hover .details-tooltip {
  display: block;
}

/* Permettre au tooltip de dépasser les cellules */
.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

#planningTable {
  overflow: visible !important;
}

#planningTable tbody {
  overflow: visible !important;
}

#planningTable td {
  position: relative;
  min-width: 100px;
  overflow: visible !important;
}

#planningTable tbody tr {
  height: 60px;
  overflow: visible !important;
}

.details-tooltip {
  display: none;
  position: absolute;
  z-index: 1000; /* très haut pour passer au-dessus de tout */
  bottom: calc(100% + 8px); /* au-dessus de l'élément */
  left: 50%;
  transform: translateX(-50%);
  background: #0C2C55;
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  width: max-content;
  min-width: 240px;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  text-align: left;
  white-space: normal;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Zone invisible qui connecte le tooltip au cours (évite la disparition) */
.details-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px; /* couvre le gap entre tooltip et cours */
}

/* Flèche en bas (pointe vers l'élément) */
.details-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #0C2C55 transparent transparent transparent;
}

/* Survol */
.schedule-event:hover .details-tooltip {
  display: block;
}

/* Sur mobile */
@media (max-width: 576px) {
  .details-tooltip {
    width: 90vw;
    max-width: none;
    left: 5vw;
    transform: none;
  }
}

/* Lien */
.details-tooltip a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: bold;
  transition: background 0.3s;
}

.details-tooltip a:hover {
  background: rgba(255,255,255,0.4);
  color: #ffd700 !important;
}

/* Force le parent à ne pas couper */
.table-responsive, .table, .planning-section, .container, body {
  overflow: visible !important;
}

/* Boutons filtre salle */
.salle-btn {
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  border: 2px solid #0C2C55 !important;
  color: #0C2C55 !important;
  background: transparent !important;
}

.salle-btn:hover {
  background: rgba(12, 44, 85, 0.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(12, 44, 85, 0.15) !important;
}

.salle-btn.active {
  background: #0C2C55 !important;
  color: white !important;
  border-color: #0C2C55 !important;
  box-shadow: 0 4px 12px rgba(12, 44, 85, 0.25) !important;
}

/* ==========================================================================
   Planning Mobile - Vue par jour avec onglets
   ========================================================================== */

/* Par défaut : cacher la vue mobile, montrer desktop */
.planning-mobile {
  display: none;
}

.planning-desktop {
  display: block;
}

/* Sur tablette et mobile : inverser */
@media (max-width: 991px) {
  .planning-desktop {
    display: none !important;
  }

  .planning-mobile {
    display: block !important;
  }
}

/* Conteneur des onglets jours */
.jours-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  background: #0C2C55;
  border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Bouton onglet jour */
.jour-tab {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jour-tab:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.jour-tab.active {
  background: white;
  color: #0C2C55;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.15);
}

/* Titre du jour */
.jour-titre {
  color: #0C2C55;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Liste des cours */
.cours-liste {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Carte de cours */
.cours-card {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cours-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Barre de couleur à gauche */
.cours-card-color {
  width: 6px;
  flex-shrink: 0;
}

/* Contenu de la carte */
.cours-card-content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cours-card-info {
  flex: 1;
}

.cours-card-nom {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
}

.cours-card-details {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.cours-card-details i {
  width: 18px;
  color: #94a3b8;
}

/* Horaire à droite */
.cours-card-horaire {
  text-align: right;
  padding-left: 15px;
}

.cours-card-heure-debut {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0C2C55;
}

.cours-card-heure-fin {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Message aucun cours */
.aucun-cours {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 1.1rem;
}

.aucun-cours i {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive mobile petit */
@media (max-width: 480px) {
  .jours-tabs {
    gap: 6px;
    padding: 12px 8px;
  }

  .jour-tab {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .jour-titre {
    font-size: 1.5rem;
  }

  .cours-card-content {
    flex-direction: column;
    gap: 10px;
  }

  .cours-card-horaire {
    text-align: left;
    padding-left: 0;
    display: flex;
    gap: 8px;
    align-items: baseline;
  }
}

/* ==========================================================================
   Bannière Cookies
   ========================================================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0C2C55;
  color: white;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-banner.show {
  transform: translateY(0);
}

#cookie-banner.hide {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.cookie-btn-refuse {
  background: transparent;
  color: white;
}

.cookie-btn-refuse:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-btn-accept {
  background: white;
  color: #0C2C55;
  border-color: white;
}

.cookie-btn-accept:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Responsive mobile */
@media (max-width: 600px) {
  #cookie-banner {
    padding: 15px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    font-size: 0.9rem;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}