body {
    margin: 0;
    background-color: rgb(0, 164, 170);
}

.logoTitreSection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    width: 135px;
    height: auto;
    display: block;
    margin: 0;
}

.mainTitle {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: rgb(0, 77, 230);
}

.navbar {
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.navList {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 20px;
    background-color: #d5f0ff;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navList a {
    text-decoration: none;
    color: black;
    transition: color 0.2s ease;
}

.navList a:hover {
    color: #0077cc;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    margin: 10px 15px;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-toggle {
    display: none;
}

.spanGras {
    font-weight: 600;
}

.spanSize {
    font-size: 22px;
}

.spanSize2 {
    font-size: 32px;
    color: #f6f6f6;
}

.galerie-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Alan Sans', sans-serif;
}

.galerie-title {
    text-align: center;
    color: rgb(0, 77, 230);
    margin-bottom: 40px;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.galerie-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.img-wrapper {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    background-color: #eaeaea;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;
}

.galerie-item:hover .img-wrapper img {
    transform: scale(1.05); 
}

.galerie-caption {
    margin: 0;
    padding: 15px;
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.4;
    text-align: left;
    flex-grow: 1;
    background-color: #ffffff;
}

.galerie-item.full-width {
    grid-column: 1 / -1;
    max-width: 400px;
    width: 100%;
}

.img-wrapper.portrait {
    height: 450px; 
}

.facebookFooterBtn {
    position: fixed;
    bottom: 101px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1861ff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.mailFooterBtn {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000; 
}

.facebookFooterBtn:hover {
    background-color: #0d47a1; 
    transform: translateY(-5px);
}

.mailFooterBtn:hover {
    background-color: #e0e0e0; 
    transform: translateY(-5px);
}

.facebookFooterText {
    position: fixed;
    bottom: 72px;
    right: 10px;
    font-size: 12px;
    color: white;
    z-index: 1000; 
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}

.mailFooterText {
    position: fixed;
    bottom: 0px;
    right: 16px;
    font-size: 12px;
    color: white;
    z-index: 1000; 
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
}

@media (max-width: 768px) {
    .navList {
        position: absolute;
        top: 65px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        background-color: #d5f0ff;
        border-radius: 12px;
        gap: 20px;
        padding: 25px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.4s ease;
    }

    #menu-toggle:checked + .menu-icon + .navList {
        max-height: 400px;
        opacity: 1;
    }

    .menu-icon {
        display: flex;
        position: relative;
        z-index: 2;
    }

    #menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .navList a {
        font-size: 18px;
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    /* Version rétrécie (48px) et espacée des boutons mobiles fixes */
    .facebookFooterBtn {
        width: 48px;
        height: 48px;
        bottom: 110px;
        right: 25px;
    }
    .facebookFooterText {
        bottom: 88px;
        right: 20px;
        width: 58px;
        text-align: center;
    }

    .mailFooterBtn {
        width: 48px;
        height: 48px;
        bottom: 35px;
        right: 25px;
    }
    .mailFooterText {
        bottom: 13px;
        right: 20px;
        width: 58px;
        text-align: center;
    }
}





.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 40px auto;
    padding: 0 15px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    font-family: 'Alan Sans', sans-serif;
}

.podcast-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: #004dc6;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 77, 198, 0.3);
    border: 2px solid #002d75;
    transition: transform 0.2s, background-color 0.2s;
}

.podcast-btn:hover {
    background-color: #003fa3;
    transform: translateY(-2px);
}

.contact-card {
    background: #c1c1c1;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c1c1c1;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.contact-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.contact-item:hover {
    background-color: #f1f5f9;
    border-color: #004dc6;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-text {
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word; 
}

@media (max-width: 650px) {
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-item {
        width: 100%;
        box-sizing: border-box;
    }
}




/* --- BOUTON PODCAST FLOTTANT (GRAND ÉCRAN) --- */
.podcast-btn-fixed {
    position: fixed;
    top: 20px; 
    right: 20px;
    z-index: 2000;
    background-color: #e30613;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: bold;
    font-family: 'Alan Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.podcast-btn-fixed:hover {
    transform: scale(1.05);
    background-color: #bd050f;
}

.menu-podcast-mobile {
    display: none;
}




/* BOUTON PODCAST MOBILE */

@media screen and (max-width: 768px) {
    .podcast-btn-fixed {
        display: none !important;
    }
    
    .menu-podcast-mobile {
        display: block !important;
    }
}




.galerie-section-title {
    font-family: 'Alan Sans', sans-serif;
    font-size: 2rem;
    color: #333333;
    text-align: center;
    margin: 50px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e30613;
    padding-bottom: 10px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}




/* Style du conteneur de la sous-catégorie d'activité */
.galerie-item.activite-groupe {
    grid-column: 1 / -1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e30613;
    margin-bottom: 20px;
}

/* Titre de l'activité spécifique */
.sous-categorie-titre {
    font-family: 'Alan Sans', sans-serif;
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

/* Petite description sous le titre de l'activité */
.sous-categorie-description {
    font-style: italic;
    color: #666;
    margin: 0 0 20px 0;
}

/* Grille interne pour aligner les photos de la même activité */
.sous-galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px;
}

.sous-galerie-grid .img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.sous-galerie-grid .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* --- BOUTON MASQUER --- */
.toggle-btn-minimal {
    background: none;
    border: none;
    color: #666666;
    font-family: 'Alan Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.toggle-btn-minimal span {
    font-size: 1.1rem;
    line-height: 1;
}

.toggle-btn-minimal:hover {
    color: #e30613;
}


.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2500;
    width: 45px;
    height: 45px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e30613;
    transform: scale(1.1);
}

@media screen and (max-width: 600px) {
    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* --- SECTION MENTIONS LÉGALES --- */
.legal-section {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 15px;
    padding-bottom: 20px;
}

/* Bouton tout en bas */
.legal-toggle-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legal-toggle-btn:hover {
    opacity: 1;
}

.legal-toggle-btn .arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.legal-toggle-btn.active .arrow {
    transform: rotate(180deg);
}

/* Zone déroulante du texte des mentions légales */
.legal-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin 0.3s ease;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.legal-content.active {
    max-height: 2000px; /* Assez grand pour tout le texte */
    opacity: 1;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.legal-content h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.legal-content h3 {
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 3px;
}

.legal-content p {
    margin-bottom: 10px;
}