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);
}

.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%;
    }
}

.spanGras {
    font-weight: 600;
}

.spanSize {
    font-size: 22px;
}

.spanSize2 {
    font-size: 32px;
}

.whatIsGEM, .unGEMEst, .nousProposons, .sensibilisationInterventions, 
.participationEvenements, .nosCreations, .nousContacter {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
    text-align: center;
    margin: 90px 0 70px 0;
    color: rgb(230, 230, 230);
}

.whatIsGEM { margin-top: 90px; }
.whatIsREAGIR {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 28px;
    text-align: center;
    margin: 90px 0 80px 0;
    color: rgb(230, 230, 230);
}

.explicationGEM, .explicationREAGIR, .explicationNousProposons, 
.explicationSensibilisationInterventions, .explicationParticipationEvenements, 
.explicationNosCreations, .nousContacterBOTTOM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    text-align: justify;
    margin: 50px 150px 0 150px;
    color: rgb(230, 230, 230);
}

.explicationSensibilisationInterventions, .explicationParticipationEvenements { margin-bottom: 80px; }
.nousContacterBOTTOM { margin-bottom: 120px; }

.missionGEM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin: 50px 150px 0 150px;
    color: rgb(230, 230, 230);
}

.actionMursGEM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    text-align: center;
    margin: 50px 0 0 0;
    color: rgb(220, 220, 220);
}

.nosCreationsBOTTOM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    text-align: justify;
    margin: 50px 150px 60px 150px;
    color: rgb(214, 214, 214);
}

.explicationNosCreationsBOTTOM {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    text-align: justify;
    margin: 20px 150px 120px 150px;
    color: rgb(235, 235, 235);
}

.gem-image-container {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    padding: 10px;
}

.gem-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gem-image-caption {
    font-family: 'Alan Sans', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

@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;  
    }

    .explicationGEM, .missionGEM, .explicationREAGIR,
    .explicationNousProposons, .explicationSensibilisationInterventions,
    .explicationParticipationEvenements, .explicationNosCreations,
    .explicationNosCreationsBOTTOM, .nousContacterBOTTOM, .nosCreationsBOTTOM {
        font-size: 16px;            
        margin: 30px 20px 0 20px;  
        text-align: left;           
    }

    .whatIsGEM, .unGEMEst, .whatIsREAGIR, .nousProposons,
    .sensibilisationInterventions, .participationEvenements,
    .nosCreations, .nousContacter {
        font-size: 20px;
        margin: 60px 10px 40px 10px;
    }

    body {
        padding: 10px;
    }

    .navList {
        width: 90%;
        font-size: 18px;
    }
}

footer {
    padding-bottom: 240px; 
}

.footerText {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    font-size: 14px;
    font-style: italic;
    margin-top: 60px;
    z-index: 1; 
    color: white;
}

.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: 20px; 
    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: 4px; 
}

.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: 0px;
    }

    .facebookFooterText {
        bottom: 69px;
    }
}

.footer-buttons-container {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-footer-link {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Alan Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-footer-link:hover {
    transform: translateY(-2px);
}

.btn-galerie-custom {
    background-color: #2c3e50;
    border: 2px solid #1a252f;
}

.btn-galerie-custom:hover {
    background-color: #34495e;
}

.btn-podcast-custom {
    background-color: #004dc6;
    border: 2px solid #002d75;
}

.btn-podcast-custom:hover {
    background-color: #003fa3;
}


.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 GALERIE FIXE (HAUT GAUCHE - GRAND É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;
}

/* --- BOUTON PODCAST FIXE (HAUT DROITE - 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-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;
    }
}

.adresse-link {
    text-decoration: none;
    color: inherit;
}

/* --- 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;
}