body {
    margin: 0;
    background-color: rgb(0, 164, 170);
}

.logoTitreSection {
    display: flex;
    align-items: center;   
    justify-content: center; 
    gap: 15px;      
    text-decoration: none; 
    color: inherit;
}

.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);
}

/* Barre de navigation */
.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;
}

@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%;
    }
}

/* Titres et textes */
.spanSize2 {
    font-size: 32px;
}

.nousContacter {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
    text-align: center;
    margin: 90px 0 40px 0;
    color: rgb(230, 230, 230);
}

.missionGEM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    margin: 30px 150px;
    color: rgb(230, 230, 230);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .logoTitreSection {
        flex-direction: column; 
        text-align: center;
        gap: 10px;
    }

    .logo { width: 100px; }
    .mainTitle {
        font-size: 1.2rem; 
        text-align: center;
        margin: 0 10px;  
    }

    .missionGEM {
        font-size: 16px;            
        margin: 30px 20px;  
        text-align: center;           
    }

    .nousContacter {
        font-size: 24px;
        margin: 60px 10px 30px 10px;
    }

    body { padding: 10px; }
}

/* Zone d'affichage des contacts (Centre) */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin: 40px auto 120px auto;
    padding: 0 15px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    font-family: 'Alan Sans', sans-serif;
}

.contact-card {
    background: #c1c1c1;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #b3b3b3;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    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: 20px;
    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(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word; 
}

@media (max-width: 650px) {
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-item {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Boutons Fixes Haut d'écran */
.galerie-btn-fixed {
    position: fixed;
    top: 20px;
    left: 20px;  
    z-index: 2000;
    background-color: #333333;
    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;
}

.galerie-btn-fixed:hover {
    transform: scale(1.05);
    background-color: #1a1a1a;
}

.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-galerie-mobile, .menu-podcast-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .galerie-btn-fixed, .podcast-btn-fixed {
        display: none !important;
    }

    .menu-galerie-mobile, .menu-podcast-mobile {
        display: block !important;
    }
}

/* Boutons Flottants Footer */
footer {
    padding-bottom: 240px; 
}

.facebookFooterBtn,
.mailFooterBtn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

.mailFooterBtn {
    bottom: 30px; 
    background-color: #e0e0e0; 
}

.facebookFooterBtn {
    bottom: 105px; 
    background-color: #1861ff; 
}

.facebookFooterText,
.mailFooterText {
    position: fixed;
    right: 15px; 
    font-size: 11px;
    color: white; 
    z-index: 1000;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 600;
    text-align: center;
    width: 60px;
}

.mailFooterText { bottom: 12px; }
.facebookFooterText { bottom: 87px; }

.mailFooterBtn:hover {
    transform: translateY(-5px);
    background-color: #bdbdbd;
}

.facebookFooterBtn:hover {
    transform: translateY(-5px);
    background-color: #0d47a1; 
}

@media (max-width: 600px) {
    .mailFooterBtn, .facebookFooterBtn {
        right: 15px; 
        width: 44px; 
        height: 44px;
    }
    .mailFooterBtn { bottom: 22px; }
    .facebookFooterBtn { bottom: 87px; }
    .facebookFooterText, .mailFooterText {
        right: 7px;
        font-size: 10px;
        width: 60px;
    }
    .mailFooterText { bottom: 4px; }
    .facebookFooterText { bottom: 69px; }
}

/* --- 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;
}