*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
}

.header{
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 40px;

    background:#90a858;

    border-bottom:1px solid #ddd;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:1.3rem;
    font-weight:bold;
}

.logo img{
    width:90px;
    height:45px;
    object-fit:cover;
}

.nav{
    display:flex;
    gap:30px;
}
.nav-link{

    text-decoration:none;
    color:black;

    padding:10px 18px;

    border-radius:999px;

    transition:0.2s;
}

.nav a{
    text-decoration:none;
    color:#ffffff;

    font-weight:500;

    transition:0.2s;
}

.nav a:hover{
    background:#b1cb76;
    color:white;
}

.dropdown{
    position:relative;
}

.dropdown-content{

    display:none;

    position:absolute;

    top:120%;
    left:0;

    min-width:180px;

    background:white;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,0.1);

    z-index:101;
}

.dropdown:hover .dropdown-content{
    display:block;
}

.dropdown-content a{

    display:block;

    text-decoration:none;

    color:black;

    padding:10px;

    border-radius:8px;
}

.reseaux-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reseaux-header img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.reseaux-header a {
    display: flex;
    transition: transform 0.2s ease;
}

.reseaux-header a:hover {
    transform: scale(1.15);
}

.accueil {
    max-width: 1200px;
    margin: 0 auto;

    border-left: 2px solid #444;
    border-right: 2px solid #444;

    box-sizing: border-box;
}

.presentation {
    display: flex;
    align-items: stretch;
    background: #fde16d;
    width: 100%;
}

.texte {
    font-size: 19px;
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.texte-accueil {
    text-align: justify;
}

.texte-accueil2 {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: 0;
    margin-right: 0;
}

.texte-transition {
    display: block;
    text-align: justify;
    font-size: 19px;
    line-height: 1.5;
}

.image_main {
    width: 500px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.image_main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    clip-path: polygon(
        0% 0%,   /* hg */
        100% 0%,
        100% 100%,
        30% 100%  /* bg */
    );
}

.titre-avec-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: fit-content;
    margin: 0 auto;
}


.titre-avec-logo .titre-page {
    margin: 0;
    padding: 30px 0;
}

.logo {
    width: 50px;
    height: auto;
}

.logo-droite {
    transform: scaleX(-1);
}

.titre_h2 {
    color: rgb(255, 255, 255);    
    font-size: 48px;              
    font-family: Arial, sans-serif;

    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.3);
}

.titre-h2-vert {
    margin-top: 300px;
    margin-bottom: 75px;
    text-align: center;
    color: #5f8f2f;
    font-size: 32px;
    font-weight: 600;
}

.services {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    font-family: 'Open Sans', sans-serif;
}

.titre-demarche {
    font-size: 27px;
    font-weight: bold;
}



.activites {
    background: #e8f1d2;
    padding: 50px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 300px));
    justify-content: center;

    gap: 30px;
}

.carte {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;
    cursor: pointer;

    border: 2px solid black;
}

.carte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.bande {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    background: rgba(100, 100, 100, 0.6);

    color: white;
    text-align: center;

    padding: 15px;
    font-size: 22px;
    font-weight: 600;
}

.overlay {
    position: absolute;

    /* zone au-dessus de la bande */
    top: 0;
    left: 0;
    right: 0;
    bottom: 53px;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 28px;
    font-weight: bold;

    opacity: 0;
    transition: 0.3s ease;
}

.carte a {
    color: white;
    text-decoration: none;
}

.carte:hover img {
    filter: brightness(50%);
}

.carte:hover .overlay {
    opacity: 1;
}

.arborescence {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 20px 1%;
    

    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.arborescence a {
    color: #555;
    text-decoration: none;
}


.arborescence span {
    color: #888;
}

.arborescence .page-actuelle {
    color: #222;
    font-weight: 600;
    text-decoration: underline;
}

.titre-page {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 40px;
    color: #222;
    font-weight: 700;
    padding: 30px;
}

.titre-serd {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 37px;
    color: #222;
    font-weight: 700;
    padding: 30px;
}


.bleu {
    color:#4f61b0;
}

.gras{
    font-weight: bold;
}

.texte-asso {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: justify;
    font-size: 20px;
    line-height: 1.5;
}

.texte-origines {
    display: block;
    width: 100%;
    font-size: 20px;
    line-height: 1.5;
    text-align: justify;
}

.texte-image-droite {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 90%;
    margin: 50px auto;
}

.texte-gauche {
    text-align: justify;
    flex: 1;
    font-size: 20px;
    line-height: 1.5;
}

.image-droite {
    flex: 1;
    border: 2px solid black;
}

.image-droite img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin-left: auto;
}


.carte_mentale {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.carte_mentale img {
    width: 100%;
    height: auto;
    display: block;
}

.texte-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

@media (max-width: 700px) {
    .texte-image {
        flex-direction: column;
        gap: 30px;
    }

    .texte-image .texte,
    .texte-image .image {
        width: 100%;
    }

    .texte-image .image img {
        width: 100%;
        height: auto;
        display: block;
    }
}


.texte p {
    text-align: justify;
}

.image {
    flex: 1;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 500px;
}

.conteneur-titre-memoire {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.icone-titre-gauche {
    width: 100px;
    height: 100px;
    object-fit: contain;
    justify-self: start;
    margin-left: 30px;
    margin-top: 50px;
}


.conteneur-titre-memoire .titre-h2-vert {
    margin: 0;
    text-align: center;
}

.texte-demarches {
    display: block;
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 150px;
    text-align: justify;

}

.texte-demarches2 {
    display: block;
    font-size: 20px;
    line-height: 1.5;
}
.cartes-demarches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 90%;
    margin: 50px auto;
}

.carte-demarche {
    width: 100%;
    border: 2px solid black;
    background: white;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    overflow: hidden;

    transition: transform 0.2s;
}

/* PAGE DÉMARCHE : 2 CARTES UNIQUEMENT */
.cartes-demarche-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
}

.cartes-demarche-page .carte-demarche {
    width: 100%;
}

@media (max-width: 600px) {
    .cartes-demarche-page {
        grid-template-columns: 1fr;
        width: 85%;
    }
}


.carte-demarche:hover {
    transform: scale(1.02);
}

.carte-demarche img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    object-fit: contain;
    object-position: center;

    padding: 20px;
    box-sizing: border-box;

    display: block;
}

@media (max-width: 800px) {

    .cartes-demarches {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 90%;
    }

}

@media (max-width: 500px) {

    .cartes-demarches {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 85%;
    }

}

/* PAGE DISPOSITIFS : 6 CARTES */

.cartes-dispositifs-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;

    width: 90%;
    max-width: 1000px;

    margin: 50px auto;
}

.cartes-dispositifs-page .carte-dispositif {
    width: 100%;
    border: 2px solid black;
    background: white;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    overflow: hidden;
}

.cartes-dispositifs-page .carte-dispositif img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;

    object-fit: contain;
    object-position: center;

    padding: 15px;
    box-sizing: border-box;

    display: block;
}

.cartes-dispositifs-page .texte-carte-dispositif {
    background: #777;
    color: white;

    text-align: center;

    padding: 15px;

    font-size: 19px;
    font-weight: bold;

    margin-top: auto;
}

@media (max-width: 800px) {

    .cartes-dispositifs-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 90%;
    }

}


@media (max-width: 500px) {

    .cartes-dispositifs-page {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 85%;
    }

}

.texte-carte-demarche {
    background: #777;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
}

.texte-carte-demarche {
    background: #777;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    margin-top: auto; 
}

.demarche-texte-image {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 90%;
    margin: 60px auto 0;
}

.demarche-paragraphe {
    flex: 1;
    font-size: 22px;
    line-height: 1.5;
    text-align: justify;
}

.demarche-image-legende {
    flex: 1;
    text-align: center;
}

.demarche-image-legende img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
     border: 2px solid black;
}

.demarche-legende-image {
    margin-top: 8px;
    font-size: 16px;
    color: #000000;
    text-align: center;
}




.image-article {
    width: 80%;
    margin: 50px auto 0;
    text-align: center;
}

.image-article img {
    width: 100%;
    display: block;
    border: 2px solid black;
}

.image-article p {
    margin-top: 8px;
    font-size: 19px;
    color: #555;
    text-align: center;
}



.public-intro {
    text-align: center;
    margin-bottom: 30px;
}

.public-texte {
    text-align: justify;
}

.texte-public {
    display: block;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    line-height: 1.5;
}

.image-referentiel img {
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.cartes-missions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 60px;
}

.carte-mission {
    width: 400px;
    border: 2px solid black;
    background: white;
    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    transition: transform 0.2s;
}

.carte-mission:hover {
    transform: scale(1.02);
}

.carte-mission img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 20px;
    display: block;
}

.texte-carte-mission {
    background: #777;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 20px;
    font-weight: bold;
    margin-top: auto;
}

.texte-referentiel {
    display: block;
    width: 80%;
    margin: 0 auto 50px;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
}

.texte-referentiel2 {
    display: block;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    line-height: 1.5;
}

.referentiel-titre {
    text-decoration: underline;
}

.referentiel-bloc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;

    width: 90%;
    margin: 60px auto 0;
}

.referentiel-image {
    flex: 1;
    text-align: center;
}

.referentiel-image img {
    width: 80%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.referentiel-bouton-container {
    flex: 1;
    display: flex;
    justify-content: center;
    
}

.referentiel-bouton {
    position: relative;

    display: inline-block;

    background: #a5b866;
    color: white;
    border: 2px solid black;

    padding: 20px 45px;
    border-radius: 45px;

    text-align: center;
    font-size: 20px;
    font-weight: bold;

    text-decoration: none;
    transition: 0.2s;
}

.referentiel-bouton:hover {
    transform: scale(1.03);
}

.referentiel-souris {
    position: absolute;

    right: -15px;
    bottom: -15px;

    font-size: 40px;
    text-decoration: none;
}

.referentiel3 {
    width: 80%;
    height: auto;
    display: block;
    margin: 20px auto 0;
}

.referentiel4-conteneur {
    width: 80%;
    margin: 30px auto 0;
    text-align: center;
}

.referentiel4 {
    width: 80%;
    height: auto;
    display: block;
    margin: 30px auto 0;
    border: 2px solid black;
}

.legende-referentiel4 {
    margin-top: 8px;
    font-size: 18px;
    color: #666;
    text-align: center;
}

.texte-accompagnement {
    text-align: justify;
    font-size: 19px;
    line-height: 1.5;
}

.image-accompagnement {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

.image-accompagnement img {
    width: 70%;
    max-width: 800px;
    height: auto;
    display: block;
}

.legende-accompagnement {
    width: 70%;
    max-width: 800px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.texte-animations {
    text-align: center;
    font-size: 19px;
    line-height: 1.5;
}
.animations-colonnes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;

    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;

    box-sizing: border-box;
}
.animation-colonne {
    min-width: 0;
}

.animation-section {
    margin-bottom: 60px;
}

.titre-animation {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 8px;
}

.sous-titre-animation {
    text-align: center;
    font-size: 20px;
    color: #55752f;
    margin-bottom: 30px;
}

.animation-section p {
    font-size: 18px;
    line-height: 1.45;
}

.animation-section h3 {
    font-size: 18px;
    text-decoration: underline;
    margin: 25px 0 5px;
}


/* Tablette */
@media (max-width: 900px) {
    .animations-colonnes {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}


/* Téléphone */
@media (max-width: 600px) {
    .animations-colonnes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .animation-colonne {
        width: 100%;
    }

    .titre-animation {
        font-size: 23px;
    }

    .sous-titre-animation {
        font-size: 18px;
    }

    .animation-section p {
        font-size: 17px;
    }
}
/* ========================= */
/* AFFICHAGE DES IMAGES 1 À 18 */
/* ========================= */

#anim1:checked ~ .diaporama-contenu .anim-diapo1 { display: flex; }
#anim2:checked ~ .diaporama-contenu .anim-diapo2 { display: flex; }
#anim3:checked ~ .diaporama-contenu .anim-diapo3 { display: flex; }
#anim4:checked ~ .diaporama-contenu .anim-diapo4 { display: flex; }
#anim5:checked ~ .diaporama-contenu .anim-diapo5 { display: flex; }
#anim6:checked ~ .diaporama-contenu .anim-diapo6 { display: flex; }
#anim7:checked ~ .diaporama-contenu .anim-diapo7 { display: flex; }
#anim8:checked ~ .diaporama-contenu .anim-diapo8 { display: flex; }
#anim9:checked ~ .diaporama-contenu .anim-diapo9 { display: flex; }
#anim10:checked ~ .diaporama-contenu .anim-diapo10 { display: flex; }
#anim11:checked ~ .diaporama-contenu .anim-diapo11 { display: flex; }
#anim12:checked ~ .diaporama-contenu .anim-diapo12 { display: flex; }
#anim13:checked ~ .diaporama-contenu .anim-diapo13 { display: flex; }
#anim14:checked ~ .diaporama-contenu .anim-diapo14 { display: flex; }
#anim15:checked ~ .diaporama-contenu .anim-diapo15 { display: flex; }
#anim16:checked ~ .diaporama-contenu .anim-diapo16 { display: flex; }
#anim17:checked ~ .diaporama-contenu .anim-diapo17 { display: flex; }
#anim18:checked ~ .diaporama-contenu .anim-diapo18 { display: flex; }

/* ========================= */
/* FLÈCHES GAUCHES 1 À 18    */
/* ========================= */

#anim1:checked ~ .gauche .anim-fleche1 { display: flex; }
#anim2:checked ~ .gauche .anim-fleche2 { display: flex; }
#anim3:checked ~ .gauche .anim-fleche3 { display: flex; }
#anim4:checked ~ .gauche .anim-fleche4 { display: flex; }
#anim5:checked ~ .gauche .anim-fleche5 { display: flex; }
#anim6:checked ~ .gauche .anim-fleche6 { display: flex; }
#anim7:checked ~ .gauche .anim-fleche7 { display: flex; }
#anim8:checked ~ .gauche .anim-fleche8 { display: flex; }
#anim9:checked ~ .gauche .anim-fleche9 { display: flex; }
#anim10:checked ~ .gauche .anim-fleche10 { display: flex; }
#anim11:checked ~ .gauche .anim-fleche11 { display: flex; }
#anim12:checked ~ .gauche .anim-fleche12 { display: flex; }
#anim13:checked ~ .gauche .anim-fleche13 { display: flex; }
#anim14:checked ~ .gauche .anim-fleche14 { display: flex; }
#anim15:checked ~ .gauche .anim-fleche15 { display: flex; }
#anim16:checked ~ .gauche .anim-fleche16 { display: flex; }
#anim17:checked ~ .gauche .anim-fleche17 { display: flex; }
#anim18:checked ~ .gauche .anim-fleche18 { display: flex; }

/* ========================= */
/* FLÈCHES DROITES 1 À 18    */
/* ========================= */

#anim1:checked ~ .droite .anim-fleche1 { display: flex; }
#anim2:checked ~ .droite .anim-fleche2 { display: flex; }
#anim3:checked ~ .droite .anim-fleche3 { display: flex; }
#anim4:checked ~ .droite .anim-fleche4 { display: flex; }
#anim5:checked ~ .droite .anim-fleche5 { display: flex; }
#anim6:checked ~ .droite .anim-fleche6 { display: flex; }
#anim7:checked ~ .droite .anim-fleche7 { display: flex; }
#anim8:checked ~ .droite .anim-fleche8 { display: flex; }
#anim9:checked ~ .droite .anim-fleche9 { display: flex; }
#anim10:checked ~ .droite .anim-fleche10 { display: flex; }
#anim11:checked ~ .droite .anim-fleche11 { display: flex; }
#anim12:checked ~ .droite .anim-fleche12 { display: flex; }
#anim13:checked ~ .droite .anim-fleche13 { display: flex; }
#anim14:checked ~ .droite .anim-fleche14 { display: flex; }
#anim15:checked ~ .droite .anim-fleche15 { display: flex; }
#anim16:checked ~ .droite .anim-fleche16 { display: flex; }
#anim17:checked ~ .droite .anim-fleche17 { display: flex; }
#anim18:checked ~ .droite .anim-fleche18 { display: flex; }


/* TÉLÉPHONE */

@media (max-width: 600px) {

    .diapo-anim {
        height: 350px;
    }

    .diapo-anim-fleche {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .diapo-anim-gauche {
        left: 8px;
    }

    .diapo-anim-droite {
        right: 8px;
    }
}

.biodiversite {
    color: #55752f;
}

.eau {
    color: #1264d8;
}

.consommation {
    color: #ed9632;
}

.jardin {
    color: #8e9b63;
}

.art {
    color: #6846e8;
}

.texte-centre {
    text-align: center;
    color: #ed9632;
    font-size: 20px !important;
}

.cartes-dispositifs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;

    margin: 50px 60px;
    align-items: start;
}

.carte-dispositif {
    border: 2px solid black;
    background: white;

    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;

    transition: transform 0.2s;

    overflow: hidden;
}

.carte-dispositif:hover {
    transform: scale(1.02);
}

.carte-dispositif img {
    width: 100%;
    max-width: 100%;
    height: 250px;

    object-fit: contain;
    object-position: center;

    display: block;
    margin: 0 auto;
}

.texte-carte-dispositif {
    background: #777;
    color: white;

    text-align: center;

    padding: 18px;

    font-size: 20px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
}


.image-dispositifs-bas {
    width: 80%;
    text-align: center;

    margin: 70px auto 50px;
}

.image-dispositifs-bas img {
    width: 70%;
    max-width: 900px;
    height: auto;

    display: block;
    margin: 0 auto;
    border: 2px solid black;
}

.texte-ens {
    text-align: center;
    font-size: 25px;
    line-height: 1.5;
    margin: 40px auto;
    max-width: 900px;
}

.bloc-ens {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 90%;
    margin: 60px auto;
}

.ens-lien {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ens-bouton {
    position: relative;
    display: inline-block;

    background: #a5b866;
    color: white;
    border: 2px solid black;

    padding: 20px 45px;
    border-radius: 45px;

    text-align: center;
    font-size: 20px;
    font-weight: bold;

    text-decoration: none;
    transition: 0.2s;
}

.ens-bouton:hover {
    transform: scale(1.03);
}

.ens-titre {
    text-decoration: underline;
}

.ens-souris {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 40px;
}

.ens-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ens-image img {
    width: 80%;
    max-width: 500px;
    height: auto;
    display: block;
}

.diaporama-ens {
    position: relative;

    width: 75%;       /* moins large */
    max-width: 900px; /* largeur maximale réduite */
    height: 550px;    /* un peu plus haut */
    border: 2px solid black;
    margin: 60px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* Cache les boutons radio */

.diaporama-ens input {
    display: none;
}


/* ========================= */
/* IMAGE                     */
/* ========================= */

.diaporama-contenu {
    width: 100%;
    height: 100%;

    background: white;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.diapo {
    display: none;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.diapo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* ========================= */
/* BANDES LATÉRALES          */
/* ========================= */

.diapo-fleche {
    position: absolute;

    top: 0;

    width: 80px;
    height: 100%;

    background: rgba(100, 100, 100, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.diapo-fleche.gauche {
    left: 0;
}

.diapo-fleche.droite {
    right: 0;
}


/* ========================= */
/* FLÈCHES                   */
/* ========================= */

.fleche {
    display: none;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    color: white;

    font-size: 50px;
    font-weight: bold;

    cursor: pointer;

    user-select: none;
}

.fleche:hover {
    background: rgba(0, 0, 0, 0.15);
}


/* ========================= */
/* AFFICHAGE DES IMAGES      */
/* ========================= */

#ens1:checked ~ .diaporama-contenu .diapo1 {
    display: flex;
}

#ens2:checked ~ .diaporama-contenu .diapo2 {
    display: flex;
}

#ens3:checked ~ .diaporama-contenu .diapo3 {
    display: flex;
}

#ens4:checked ~ .diaporama-contenu .diapo4 {
    display: flex;
}

#ens5:checked ~ .diaporama-contenu .diapo5 {
    display: flex;
}

#ens6:checked ~ .diaporama-contenu .diapo6 {
    display: flex;
}

#ens7:checked ~ .diaporama-contenu .diapo7 {
    display: flex;
}

#ens8:checked ~ .diaporama-contenu .diapo8 {
    display: flex;
}

#ens9:checked ~ .diaporama-contenu .diapo9 {
    display: flex;
}

#ens10:checked ~ .diaporama-contenu .diapo10 {
    display: flex;
}

#ens11:checked ~ .diaporama-contenu .diapo11 {
    display: flex;
}

#ens12:checked ~ .diaporama-contenu .diapo12 {
    display: flex;
}

#ens13:checked ~ .diaporama-contenu .diapo13 {
    display: flex;
}

#ens14:checked ~ .diaporama-contenu .diapo14 {
    display: flex;
}

#ens15:checked ~ .diaporama-contenu .diapo15 {
    display: flex;
}

#ens16:checked ~ .diaporama-contenu .diapo16 {
    display: flex;
}

#ens17:checked ~ .diaporama-contenu .diapo17 {
    display: flex;
}


/* ========================= */
/* FLÈCHES GAUCHES           */
/* ========================= */

#ens1:checked ~ .gauche .fleche1 {
    display: flex;
}

#ens2:checked ~ .gauche .fleche2 {
    display: flex;
}

#ens3:checked ~ .gauche .fleche3 {
    display: flex;
}

#ens4:checked ~ .gauche .fleche4 {
    display: flex;
}

#ens5:checked ~ .gauche .fleche5 {
    display: flex;
}

#ens6:checked ~ .gauche .fleche6 {
    display: flex;
}

#ens7:checked ~ .gauche .fleche7 {
    display: flex;
}

#ens8:checked ~ .gauche .fleche8 {
    display: flex;
}

#ens9:checked ~ .gauche .fleche9 {
    display: flex;
}

#ens10:checked ~ .gauche .fleche10 {
    display: flex;
}

#ens11:checked ~ .gauche .fleche11 {
    display: flex;
}

#ens12:checked ~ .gauche .fleche12 {
    display: flex;
}

#ens13:checked ~ .gauche .fleche13 {
    display: flex;
}

#ens14:checked ~ .gauche .fleche14 {
    display: flex;
}

#ens15:checked ~ .gauche .fleche15 {
    display: flex;
}

#ens16:checked ~ .gauche .fleche16 {
    display: flex;
}

#ens17:checked ~ .gauche .fleche17 {
    display: flex;
}


/* ========================= */
/* FLÈCHES DROITES           */
/* ========================= */

#ens1:checked ~ .droite .fleche1 {
    display: flex;
}

#ens2:checked ~ .droite .fleche2 {
    display: flex;
}

#ens3:checked ~ .droite .fleche3 {
    display: flex;
}

#ens4:checked ~ .droite .fleche4 {
    display: flex;
}

#ens5:checked ~ .droite .fleche5 {
    display: flex;
}

#ens6:checked ~ .droite .fleche6 {
    display: flex;
}

#ens7:checked ~ .droite .fleche7 {
    display: flex;
}

#ens8:checked ~ .droite .fleche8 {
    display: flex;
}

#ens9:checked ~ .droite .fleche9 {
    display: flex;
}

#ens10:checked ~ .droite .fleche10 {
    display: flex;
}

#ens11:checked ~ .droite .fleche11 {
    display: flex;
}

#ens12:checked ~ .droite .fleche12 {
    display: flex;
}

#ens13:checked ~ .droite .fleche13 {
    display: flex;
}

#ens14:checked ~ .droite .fleche14 {
    display: flex;
}

#ens15:checked ~ .droite .fleche15 {
    display: flex;
}

#ens16:checked ~ .droite .fleche16 {
    display: flex;
}

#ens17:checked ~ .droite .fleche17 {
    display: flex;
}

.titre-ens {
    text-align:center;
    font-size:32px;
    color:#222;
    margin:50px auto 20px;
}

.texte-ens-description {
    max-width:850px;
    margin:0 auto 50px;
    text-align:center;
    font-size:20px;
    line-height:1.5;
}

.sous-titre-ens {
    text-align:center;
    font-size:25px;
    margin:40px auto 30px;
}

.ressources-ens {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px 40px;
    width:80%;
    max-width:800px;
    margin:0 auto 60px;
    
}

.ressource-ens {
    background:#a5b866;
    color:white;
    border: 2px solid black;
    padding:20px 30px;
    border-radius:35px;
    text-align:center;
    text-decoration:none;
    font-size:19px;
    font-weight:bold;
    transition:.2s;

    display:flex;
    align-items:center;
    justify-content:center;
}

.ressource-ens:hover {
    background:#8fa650;
    transform:scale(1.03);
}

/* ========================= */
/* TEXTE D'INTRODUCTION      */
/* ========================= */

.texte-ecole-dehors {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
}

.texte-ecole-dehors p {
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 25px;
}


/* ========================= */
/* PREMIER BLOC              */
/* ========================= */

.ecole-dehors-bloc1 {
    width: 90%;
    max-width: 1000px;
    margin: 10px auto 70px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 40px;
}


/* Image gauche */

.ecole-dehors-image1 {
    width: 45%;
    text-align: center;
}

.ecole-dehors-image1 img {
    width: 80%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;

    border: 2px solid black;
}


/* Contenu droite */

.ecole-dehors-contenu1 {
    width: 55%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.ecole-dehors-contenu1 p {
    font-size: 16px;
    line-height: 1.45;
    margin: 35px 0 0;
}


/* Bouton */

.ecole-dehors-bouton {
    display: inline-block;

    background: #a5b866;
    color: white;
    border: 2px solid black;

    padding: 12px 30px;
    border-radius: 40px;

    text-align: center;
    font-size: 18px;
    font-weight: bold;

    text-decoration: none;

    transition: 0.2s;
}

.ecole-dehors-bouton:hover {
    transform: scale(1.03);
}


/* Image VisiO */

.ecole-dehors-visio {
    width: 100%;
    height: auto;
    display: block;
}

.visio-image {
    position: relative;
    width: 80%;
    max-width: 400px;
    margin: 35px auto 0;
    display: block;
}

.visio-image img {
    border: 2px solid black;
}

.visio-image a {
    position: relative;
    display: block;
}

.visio-souris {
    position: absolute;
    right: 0;
    bottom: 0;
    /* Translate décale l'élément : 0% horizontalement, 50% vers le bas */
    transform: translateY(75%);
    
    font-size: 25px;
    line-height: 1;
    pointer-events: none;
}

/* ========================= */
/* DEUXIÈME BLOC             */
/* ========================= */

.ecole-dehors-bloc2 {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 50px;
}


/* Texte gauche */

.ecole-dehors-texte2 {
    width: 40%;

    text-align: justify;
}

.ecole-dehors-texte2 p {
    font-size: 16px;
    line-height: 1.45;
}


/* Image droite */

.ecole-dehors-image2 {
    width: 60%;
    text-align: center;
}

.ecole-dehors-image2 img {
    width: 100%;
    height: auto;

    display: block;
    margin: 0 auto;

    border: 2px solid black;
}


/* ========================= */
/* LÉGENDES                  */
/* ========================= */

.ecole-dehors-legende {
    font-size: 13px;
    line-height: 1.3;

    text-align: center;

    margin-top: 5px;
}

/* ========================= */
/* BOUTONS DU HAUT           */
/* ========================= */

.ecole-dehors-boutons {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.ecole-dehors-bouton2 {
    background: white;
    color: #8fa75a;

    border: 2px solid #8fa75a;
    border-radius: 30px;

    padding: 8px 15px;

    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;

    flex: 1;

    transition: 0.2s;
}

.ecole-dehors-bouton2:hover {
    background: #a5b866;
    color: white;
}


/* ========================= */
/* TEXTE INTRODUCTIF         */
/* ========================= */

.ecole-dehors-intro2 {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto 15px;

    font-size: 16px;
    line-height: 1.45;

    text-align: left;
}


/* ========================= */
/* SOUS-TITRE                */
/* ========================= */

.ecole-dehors-sous-titre {
    text-align: center;

    font-size: 20px;
    font-weight: bold;

    margin: 20px auto;
}


/* ========================= */
/* DÉROULEMENT               */
/* ========================= */

.ecole-dehors-deroulement {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.ecole-dehors-deroulement p {
    font-size: 16px;
    line-height: 1.45;

    margin-bottom: 22px;
}


/* ========================= */
/* DEUX IMAGES               */
/* ========================= */

.ecole-dehors-images3 {
    width: 90%;
    max-width: 1000px;

    margin: 25px auto 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: 70px;
}

.ecole-dehors-images3 > div {
    flex: 1;
    text-align: center;
}

.ecole-dehors-images3 img {
    width: 100%;
    max-width: 500px;
    height: 250px;

    object-fit: cover;

    display: block;
    margin: 0 auto;

    border: 2px solid black;
}


/* Légende commune */

.ecole-dehors-legende3 {
    text-align: center;

    font-size: 13px;
    line-height: 1.3;

    margin: 5px auto 60px;
}


/* ========================= */
/* DERNIER BLOC              */
/* ========================= */

.ecole-dehors-bloc3 {
    width: 90%;
    max-width: 1000px;

    margin: 0 auto 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 50px;
}


/* Texte à gauche */

.ecole-dehors-texte3 {
    width: 35%;
}

.ecole-dehors-texte3 p {
    font-size: 16px;
    line-height: 1.45;

    text-align: justify;
}


/* Image à droite */

.ecole-dehors-image3 {
    width: 65%;
}

.ecole-dehors-image3 img {
    width: 100%;
    height: auto;

    display: block;

    border: 1px solid black;
}

/* ========================= */
/* CONTENU ATE               */
/* ========================= */

.ate-contenu {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}


/* ========================= */
/* SOUS-TITRE                */
/* ========================= */

.ate-sous-titre {
    text-align: center;
    font-size: 24px;
    margin: 30px 0;
}


/* ========================= */
/* INTRODUCTION               */
/* ========================= */

.ate-introduction {
    width: 100%;
    text-align: justify;
}

.ate-introduction p {
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.ate-boutons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;

    margin: 35px auto 25px;
}

.ate-bouton {
    position: relative;

    width: 300px;

    padding: 10px 30px;

    background: #a5b866;
    color: white;
    border: 2px solid black;

    border-radius: 40px;

    text-align: center;
    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    transition: 0.2s;
}

.ate-bouton:hover {
    transform: scale(1.03);
}

.ate-bouton span {
    position: absolute;

    right: -8px;
    bottom: -10px;

    font-size: 30px;
}

.ate-2024 {
    margin-top: 20px;
}

.ate-2024 p {
    font-size: 19px;
    text-align: justify;
    line-height: 1.45;
    margin-bottom: 20px;
}

.ate-date {
    font-weight: bold;
    margin-bottom: 25px !important;
}


/* ========================= */
/* DIAPORAMA                 */
/* ========================= */

.ate-diaporama {
    width: 75%;
    max-width: 900px;
    height: 550px;
    border: 2px solid black;

    margin: 40px auto 60px;
}

#ate1:checked ~ .diaporama-contenu .ate-diapo1 {
    display: flex;
}

#ate2:checked ~ .diaporama-contenu .ate-diapo2 {
    display: flex;
}

#ate3:checked ~ .diaporama-contenu .ate-diapo3 {
    display: flex;
}

#ate4:checked ~ .diaporama-contenu .ate-diapo4 {
    display: flex;
}

#ate5:checked ~ .diaporama-contenu .ate-diapo5 {
    display: flex;
}

#ate6:checked ~ .diaporama-contenu .ate-diapo6 {
    display: flex;
}

#ate7:checked ~ .diaporama-contenu .ate-diapo7 {
    display: flex;
}

#ate8:checked ~ .diaporama-contenu .ate-diapo8 {
    display: flex;
}

#ate9:checked ~ .diaporama-contenu .ate-diapo9 {
    display: flex;
}

#ate10:checked ~ .diaporama-contenu .ate-diapo10 {
    display: flex;
}

#ate1:checked ~ .gauche .ate-fleche1,
#ate2:checked ~ .gauche .ate-fleche2,
#ate3:checked ~ .gauche .ate-fleche3,
#ate4:checked ~ .gauche .ate-fleche4,
#ate5:checked ~ .gauche .ate-fleche5,
#ate6:checked ~ .gauche .ate-fleche6,
#ate7:checked ~ .gauche .ate-fleche7,
#ate8:checked ~ .gauche .ate-fleche8,
#ate9:checked ~ .gauche .ate-fleche9,
#ate10:checked ~ .gauche .ate-fleche10 {
    display: flex;
}

#ate1:checked ~ .droite .ate-fleche1,
#ate2:checked ~ .droite .ate-fleche2,
#ate3:checked ~ .droite .ate-fleche3,
#ate4:checked ~ .droite .ate-fleche4,
#ate5:checked ~ .droite .ate-fleche5,
#ate6:checked ~ .droite .ate-fleche6,
#ate7:checked ~ .droite .ate-fleche7,
#ate8:checked ~ .droite .ate-fleche8,
#ate9:checked ~ .droite .ate-fleche9,
#ate10:checked ~ .droite .ate-fleche10 {
    display: flex;
}

/* ========================= */
/* EXPOSITION IMMERSIVE      */
/* ========================= */

.exposition-sous-titre {
    text-align: center;
    color: #405eae;

    font-size: 32px;
    line-height: 1.3;

    margin: -15px auto 45px;

    font-weight: bold;
}


/* ========================= */
/* INTRODUCTION              */
/* ========================= */

.exposition-introduction {
    width: 90%;
    max-width: 900px;

    margin: 0 auto 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    text-align: center;
}

.exposition-introduction img {
    width: 65px;
    height: 65px;

    object-fit: contain;

    flex-shrink: 0;
}

.exposition-introduction p {
    font-size: 17px;
    line-height: 1.45;

    margin: 0;
}


/* ========================= */
/* DIAPORAMA                 */
/* ========================= */

.exposition-diaporama {
    width: 75%;
    max-width: 900px;
    height: 500px;

    margin: 30px auto 50px;
}


/* ========================= */
/* TEXTES                    */
/* ========================= */

.exposition-texte {
    width: 90%;
    max-width: 950px;

    margin: 0 auto 45px;
}

.exposition-texte p {
    font-size: 18px;
    line-height: 1.45;

    margin-bottom: 25px;
}


/* ========================= */
/* SUPPORTS / PUBLIC         */
/* ========================= */

.exposition-section {
    width: 90%;
    max-width: 950px;

    margin: 0 auto 40px;
}

.exposition-section h2 {
    font-size: 25px;

    margin-bottom: 20px;
}

.exposition-section ul {
    padding-left: 25px;
}

.exposition-section li {
    font-size: 19px;
    line-height: 1.45;

    margin-bottom: 5px;
}

.exposition-public p {
    font-size: 19px;
    line-height: 1.45;
}

#expo1:checked ~ .diaporama-contenu .expo-diapo1,
#expo2:checked ~ .diaporama-contenu .expo-diapo2,
#expo3:checked ~ .diaporama-contenu .expo-diapo3,
#expo4:checked ~ .diaporama-contenu .expo-diapo4,
#expo5:checked ~ .diaporama-contenu .expo-diapo5 {
    display: flex;
}


/* ========================= */
/* FLÈCHES GAUCHES - EXPO    */
/* ========================= */

#expo1:checked ~ .gauche .expo-fleche1,
#expo2:checked ~ .gauche .expo-fleche2,
#expo3:checked ~ .gauche .expo-fleche3,
#expo4:checked ~ .gauche .expo-fleche4,
#expo5:checked ~ .gauche .expo-fleche5 {
    display: flex;
}


/* ========================= */
/* FLÈCHES DROITES - EXPO    */
/* ========================= */

#expo1:checked ~ .droite .expo-fleche1,
#expo2:checked ~ .droite .expo-fleche2,
#expo3:checked ~ .droite .expo-fleche3,
#expo4:checked ~ .droite .expo-fleche4,
#expo5:checked ~ .droite .expo-fleche5 {
    display: flex;
}

.exposition-fonctionnement {
    width: 90%;
    max-width: 1000px;
    margin: 80px auto 0;
    font-size: 19px;
    line-height: 1.45;
}

.fonctionnement-titre {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fonctionnement-titre h2 {
    font-size: 25px;
    margin: 0;
}

.fonctionnement-titre img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-right: 30px;
}

.fonctionnement-bloc {
    margin-bottom: 40px;
}

.fonctionnement-bloc p {
    margin-bottom: 10px;
}

.fonctionnement-sous-titre {
    font-weight: bold;
    margin-bottom: 20px !important;
}

.fonctionnement-exemples {
    margin-top: 10px;
}

.fonctionnement-ateliers {
    margin-top: 35px;
}

.fonctionnement-bleu {
    color: #4f61b0;
    font-weight: bold;
}

.fonctionnement-pluviometrie {
    margin-top: 40px !important;
}

.fonctionnement-goutte-bas {
    display: block;
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin: 30px auto 0;
}

.coordonnees-association {
    width: 90%;
    border: 2px solid black;
    background-color: #c9e265;
    max-width: 700px;
    margin: 60px auto;
    text-align: center;
    font-size: 19px;
    line-height: 1.6;
}

.nom-association {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 35px;
}

.coordonnees-association p {
    margin-bottom: 25px;
}

.coordonnees-association a {
    color: #4f61b0;
    text-decoration: underline;
}

.labo-titre {
    text-align: center;
    font-size: 32px;
    margin: 20px auto 15px;
    color: #111;
}

.labo-sous-titre {
    text-align: center;
    font-size: 18px;
    line-height: 1.35;
    margin: 0 auto 50px;
    color: #111;
}

.labo-introduction {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin: 0 auto 70px;
}

.labo-texte-intro {
    width: 32%;
    padding: 10px;
    text-align: justify;
    font-size: 19px;
    line-height: 1.35;
}

.labo-diaporama {
    width: 52%;
    max-width: 700px;
    height: 350px;
    margin: 0;
    border: 2px solid black;
}

.labo-diapo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.labo-boutons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 900px;
    margin: 0 auto 70px;
    gap: 40px;
}

.labo-bouton {
    position: relative;
    flex: 1;
    background: #a5b866;
    color: white;
    border: 2px solid black;
    padding: 14px 25px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.2s;
}

.labo-bouton:hover {
    transform: scale(1.03);
}

.labo-bouton span {
    position: absolute;
    right: -5px;
    bottom: -12px;
    font-size: 28px;
}

.labo-document {
    width: 75%;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.labo-document img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 2px solid black;
}

#labo1:checked ~ .diaporama-contenu .labo-diapo1,
#labo2:checked ~ .diaporama-contenu .labo-diapo2,
#labo3:checked ~ .diaporama-contenu .labo-diapo3,
#labo4:checked ~ .diaporama-contenu .labo-diapo4,
#labo5:checked ~ .diaporama-contenu .labo-diapo5,
#labo6:checked ~ .diaporama-contenu .labo-diapo6 {
    display: flex;
}

#labo1:checked ~ .gauche .labo-fleche1,
#labo2:checked ~ .gauche .labo-fleche2,
#labo3:checked ~ .gauche .labo-fleche3,
#labo4:checked ~ .gauche .labo-fleche4,
#labo5:checked ~ .gauche .labo-fleche5,
#labo6:checked ~ .gauche .labo-fleche6 {
    display: flex;
}

#labo1:checked ~ .droite .labo-fleche1,
#labo2:checked ~ .droite .labo-fleche2,
#labo3:checked ~ .droite .labo-fleche3,
#labo4:checked ~ .droite .labo-fleche4,
#labo5:checked ~ .droite .labo-fleche5,
#labo6:checked ~ .droite .labo-fleche6 {
    display: flex;
}



.serd-introduction {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto 65px;
    text-align: justify;
}

.serd-introduction p {
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 25px;
}

.serd-grille {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 45px;
    row-gap: 55px;
    align-items: stretch; 
}


.serd-activite {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}


.serd-titre-activite {
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 20px 0;
    min-height: 52px; 
    display: flex;
    align-items: center;
    justify-content: center;
}


.serd-diapo {
    width: 100%;
    height: 330px;
    margin: auto 0 0 0; 
    border: 2px solid #777;
    box-sizing: border-box; 
}

.serd-diapo .diaporama-contenu {
    width: 100%;
    height: 100%;
}

.serd-diapo .diapo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 800px) {

    .serd-grille {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .serd-diapo {
        height: 420px;
    }

    .serd-activite h2 {
        min-height: auto;
        font-size: 18px;
    }

}

@media (max-width: 500px) {

    .serd-diapo {
        height: 320px;
    }

    .serd-titre {
        font-size: 26px;
    }

    .serd-titre-activite {
        font-size: 22px;
    }

}

#serd1-1:checked ~ .diaporama-contenu .serd1-diapo1,
#serd1-2:checked ~ .diaporama-contenu .serd1-diapo2,
#serd1-3:checked ~ .diaporama-contenu .serd1-diapo3,
#serd1-4:checked ~ .diaporama-contenu .serd1-diapo4,
#serd1-5:checked ~ .diaporama-contenu .serd1-diapo5,
#serd2-1:checked ~ .diaporama-contenu .serd2-diapo1,
#serd2-2:checked ~ .diaporama-contenu .serd2-diapo2,
#serd2-3:checked ~ .diaporama-contenu .serd2-diapo3,
#serd2-4:checked ~ .diaporama-contenu .serd2-diapo4,
#serd2-5:checked ~ .diaporama-contenu .serd2-diapo5,
#serd2-6:checked ~ .diaporama-contenu .serd2-diapo6,
#serd2-7:checked ~ .diaporama-contenu .serd2-diapo7,
#serd2-8:checked ~ .diaporama-contenu .serd2-diapo8,
#serd3-1:checked ~ .diaporama-contenu .serd3-diapo1,
#serd3-2:checked ~ .diaporama-contenu .serd3-diapo2,
#serd3-3:checked ~ .diaporama-contenu .serd3-diapo3,
#serd3-4:checked ~ .diaporama-contenu .serd3-diapo4,
#serd3-5:checked ~ .diaporama-contenu .serd3-diapo5,
#serd3-6:checked ~ .diaporama-contenu .serd3-diapo6,
#serd3-7:checked ~ .diaporama-contenu .serd3-diapo7,
#serd3-8:checked ~ .diaporama-contenu .serd3-diapo8,
#serd3-9:checked ~ .diaporama-contenu .serd3-diapo9,
#serd3-10:checked ~ .diaporama-contenu .serd3-diapo10,
#serd4-1:checked ~ .diaporama-contenu .serd4-diapo1,
#serd4-2:checked ~ .diaporama-contenu .serd4-diapo2,
#serd4-3:checked ~ .diaporama-contenu .serd4-diapo3,
#serd4-4:checked ~ .diaporama-contenu .serd4-diapo4,
#serd4-5:checked ~ .diaporama-contenu .serd4-diapo5,
#serd4-6:checked ~ .diaporama-contenu .serd4-diapo6,
#serd4-7:checked ~ .diaporama-contenu .serd4-diapo7,
#serd4-8:checked ~ .diaporama-contenu .serd4-diapo8,
#serd5-1:checked ~ .diaporama-contenu .serd5-diapo1,
#serd5-2:checked ~ .diaporama-contenu .serd5-diapo2,
#serd5-3:checked ~ .diaporama-contenu .serd5-diapo3,
#serd5-4:checked ~ .diaporama-contenu .serd5-diapo4,
#serd5-5:checked ~ .diaporama-contenu .serd5-diapo5,
#serd6-1:checked ~ .diaporama-contenu .serd6-diapo1,
#serd6-2:checked ~ .diaporama-contenu .serd6-diapo2,
#serd6-3:checked ~ .diaporama-contenu .serd6-diapo3,
#serd6-4:checked ~ .diaporama-contenu .serd6-diapo4,
#serd7-1:checked ~ .diaporama-contenu .serd7-diapo1,
#serd7-2:checked ~ .diaporama-contenu .serd7-diapo2,
#serd7-3:checked ~ .diaporama-contenu .serd7-diapo3,
#serd7-4:checked ~ .diaporama-contenu .serd7-diapo4,
#serd7-5:checked ~ .diaporama-contenu .serd7-diapo5,
#serd7-6:checked ~ .diaporama-contenu .serd7-diapo6,
#serd7-7:checked ~ .diaporama-contenu .serd7-diapo7,
#serd8-1:checked ~ .diaporama-contenu .serd8-diapo1,
#serd8-2:checked ~ .diaporama-contenu .serd8-diapo2,
#serd8-3:checked ~ .diaporama-contenu .serd8-diapo3 {
    display: flex;
}

#serd1-1:checked ~ .gauche .serd1-fleche1,
#serd1-2:checked ~ .gauche .serd1-fleche2,
#serd1-3:checked ~ .gauche .serd1-fleche3,
#serd1-4:checked ~ .gauche .serd1-fleche4,
#serd1-5:checked ~ .gauche .serd1-fleche5,

#serd2-1:checked ~ .gauche .serd2-fleche1,
#serd2-2:checked ~ .gauche .serd2-fleche2,
#serd2-3:checked ~ .gauche .serd2-fleche3,
#serd2-4:checked ~ .gauche .serd2-fleche4,
#serd2-5:checked ~ .gauche .serd2-fleche5,
#serd2-6:checked ~ .gauche .serd2-fleche6,
#serd2-7:checked ~ .gauche .serd2-fleche7,
#serd2-8:checked ~ .gauche .serd2-fleche8,

#serd3-1:checked ~ .gauche .serd3-fleche1,
#serd3-2:checked ~ .gauche .serd3-fleche2,
#serd3-3:checked ~ .gauche .serd3-fleche3,
#serd3-4:checked ~ .gauche .serd3-fleche4,
#serd3-5:checked ~ .gauche .serd3-fleche5,
#serd3-6:checked ~ .gauche .serd3-fleche6,
#serd3-7:checked ~ .gauche .serd3-fleche7,
#serd3-8:checked ~ .gauche .serd3-fleche8,
#serd3-9:checked ~ .gauche .serd3-fleche9,
#serd3-10:checked ~ .gauche .serd3-fleche10,

#serd4-1:checked ~ .gauche .serd4-fleche1,
#serd4-2:checked ~ .gauche .serd4-fleche2,
#serd4-3:checked ~ .gauche .serd4-fleche3,
#serd4-4:checked ~ .gauche .serd4-fleche4,
#serd4-5:checked ~ .gauche .serd4-fleche5,
#serd4-6:checked ~ .gauche .serd4-fleche6,
#serd4-7:checked ~ .gauche .serd4-fleche7,
#serd4-8:checked ~ .gauche .serd4-fleche8,

#serd5-1:checked ~ .gauche .serd5-fleche1,
#serd5-2:checked ~ .gauche .serd5-fleche2,
#serd5-3:checked ~ .gauche .serd5-fleche3,
#serd5-4:checked ~ .gauche .serd5-fleche4,
#serd5-5:checked ~ .gauche .serd5-fleche5,

#serd6-1:checked ~ .gauche .serd6-fleche1,
#serd6-2:checked ~ .gauche .serd6-fleche2,
#serd6-3:checked ~ .gauche .serd6-fleche3,
#serd6-4:checked ~ .gauche .serd6-fleche4,

#serd7-1:checked ~ .gauche .serd7-fleche1,
#serd7-2:checked ~ .gauche .serd7-fleche2,
#serd7-3:checked ~ .gauche .serd7-fleche3,
#serd7-4:checked ~ .gauche .serd7-fleche4,
#serd7-5:checked ~ .gauche .serd7-fleche5,
#serd7-6:checked ~ .gauche .serd7-fleche6,
#serd7-7:checked ~ .gauche .serd7-fleche7,

#serd8-1:checked ~ .gauche .serd8-fleche1,
#serd8-2:checked ~ .gauche .serd8-fleche2,
#serd8-3:checked ~ .gauche .serd8-fleche3 {
    display:flex;
}


#serd1-1:checked ~ .droite .serd1-fleche1,
#serd1-2:checked ~ .droite .serd1-fleche2,
#serd1-3:checked ~ .droite .serd1-fleche3,
#serd1-4:checked ~ .droite .serd1-fleche4,
#serd1-5:checked ~ .droite .serd1-fleche5,

#serd2-1:checked ~ .droite .serd2-fleche1,
#serd2-2:checked ~ .droite .serd2-fleche2,
#serd2-3:checked ~ .droite .serd2-fleche3,
#serd2-4:checked ~ .droite .serd2-fleche4,
#serd2-5:checked ~ .droite .serd2-fleche5,
#serd2-6:checked ~ .droite .serd2-fleche6,
#serd2-7:checked ~ .droite .serd2-fleche7,
#serd2-8:checked ~ .droite .serd2-fleche8,

#serd3-1:checked ~ .droite .serd3-fleche1,
#serd3-2:checked ~ .droite .serd3-fleche2,
#serd3-3:checked ~ .droite .serd3-fleche3,
#serd3-4:checked ~ .droite .serd3-fleche4,
#serd3-5:checked ~ .droite .serd3-fleche5,
#serd3-6:checked ~ .droite .serd3-fleche6,
#serd3-7:checked ~ .droite .serd3-fleche7,
#serd3-8:checked ~ .droite .serd3-fleche8,
#serd3-9:checked ~ .droite .serd3-fleche9,
#serd3-10:checked ~ .droite .serd3-fleche10,

#serd4-1:checked ~ .droite .serd4-fleche1,
#serd4-2:checked ~ .droite .serd4-fleche2,
#serd4-3:checked ~ .droite .serd4-fleche3,
#serd4-4:checked ~ .droite .serd4-fleche4,
#serd4-5:checked ~ .droite .serd4-fleche5,
#serd4-6:checked ~ .droite .serd4-fleche6,
#serd4-7:checked ~ .droite .serd4-fleche7,
#serd4-8:checked ~ .droite .serd4-fleche8,

#serd5-1:checked ~ .droite .serd5-fleche1,
#serd5-2:checked ~ .droite .serd5-fleche2,
#serd5-3:checked ~ .droite .serd5-fleche3,
#serd5-4:checked ~ .droite .serd5-fleche4,
#serd5-5:checked ~ .droite .serd5-fleche5,

#serd6-1:checked ~ .droite .serd6-fleche1,
#serd6-2:checked ~ .droite .serd6-fleche2,
#serd6-3:checked ~ .droite .serd6-fleche3,
#serd6-4:checked ~ .droite .serd6-fleche4,

#serd7-1:checked ~ .droite .serd7-fleche1,
#serd7-2:checked ~ .droite .serd7-fleche2,
#serd7-3:checked ~ .droite .serd7-fleche3,
#serd7-4:checked ~ .droite .serd7-fleche4,
#serd7-5:checked ~ .droite .serd7-fleche5,
#serd7-6:checked ~ .droite .serd7-fleche6,
#serd7-7:checked ~ .droite .serd7-fleche7,

#serd8-1:checked ~ .droite .serd8-fleche1,
#serd8-2:checked ~ .droite .serd8-fleche2,
#serd8-3:checked ~ .droite .serd8-fleche3 {
    display:flex;
}

.mentions-legales {
    width: 90%;
    max-width: 950px;
    margin: 20px auto 100px;
    font-size: 17px;
    line-height: 1.6;
}

.mentions-legales p {
    margin-bottom: 30px;
}

.mentions-legales h2 {
    color: #5f8f2f;
    font-size: 23px;
    margin: 40px 0 15px;
}

.mentions-legales a {
    color: #4f61b0;
    text-decoration: underline;
}

.mentions-legales strong {
    font-weight: bold;
}

.politique-confidentialite {
    width: 90%;
    max-width: 950px;
    margin: 20px auto 100px;
    font-size: 17px;
    line-height: 1.6;
}

.politique-confidentialite p {
    margin-bottom: 30px;
}

.politique-confidentialite ul {
    padding-left: 30px;
    margin-bottom: 50px;
}

.politique-confidentialite li {
    margin-bottom: 18px;
}

.politique-confidentialite h2 {
    color: #5f8f2f;
    font-size: 23px;
    margin: 50px 0 20px;
}

.partenaires-titre {
    margin-top: 20px;
    margin-bottom: 70px;
    font-size: 32px;
}

.partenaires-image-principale {
    border: 2px solid black;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-bottom: 80px;
}

.partenaires-image-centre {
    width: 65%;
    max-width: 700px;
    height: auto;
    display: block;
}

.partenaires-petite-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
}

.partenaires-section {
    width: 100%;
    margin-bottom: 75px;
}

.partenaires-section h2 {
    font-size: 21px;
    text-decoration: underline;
    margin: 0 0 30px 30px;
}

.logos-grille {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.logos-reseaux {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 35px;
    row-gap: 35px;
}

.logos-reseaux img {
    width: 130px;
    height: 75px;
    object-fit: contain;
}

.logos-collectivites {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;
    row-gap: 35px;
}

.logos-collectivites img {
    width: 145px;
    height: 80px;
    object-fit: contain;
}


.logos-organismes {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 25px;
    row-gap: 35px;
}

.logos-organismes img {
    width: 125px;
    height: 70px;
    object-fit: contain;
}


/* ÉCO-ORGANISMES */

.partenaires-eco {
    margin-top: 10px;
}

.logos-eco {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.logos-eco > div {
    width: 100%;
    text-align: center;
}

.logos-eco img {
    width: 150px;
    height: 70px;
    object-fit: contain;
}

.logos-eco p {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 8px;
}

.logos-eco a {
    color: #222;
    text-decoration: underline;
}


/* AGENCES */

.partenaires-agences {
    margin-bottom: 100px;
}

.logos-agences {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 25px;
    row-gap: 45px;
}

.logos-agences img {
    width: 150px;
    height: 90px;
    object-fit: contain;
}


/* RESPONSIVE */

@media(max-width:900px) {

    .logos-reseaux,
    .logos-collectivites,
    .logos-agences {
        grid-template-columns: repeat(3, 1fr);
    }

    .logos-organismes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:600px) {

    .logos-reseaux,
    .logos-collectivites,
    .logos-organismes,
    .logos-eco,
    .logos-agences {
        grid-template-columns: repeat(2, 1fr);
    }

    .partenaires-section h2 {
        margin-left: 10px;
    }
}

body {
    margin: 0;
    background: #e5e5e5;
}

.page {
    background: #e5e5e5;
    min-height: calc(100vh - 200px);
}

.conteneur {
    max-width: 1200px;
    min-height: calc(100vh - 200px);

    margin: 0 auto;
    padding: 40px;
    padding-bottom: 300px;

    background: white;
    box-sizing: border-box;
    
}

.conteneur img {
    max-width: 100%;
    height: auto;
    display: block;
   
}






.footer {
    background: linear-gradient(
        to bottom,
        #c9e265,
        #89d957
    );

    width: 100%;
    padding: 50px 0 20px;
    box-sizing: border-box;
}

.footer-contenu {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

   
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 

    box-sizing: border-box;
    padding: 0; 
}

.footer-colonne {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.footer-colonne ul {
    color: black;
    padding-left: 0; 
    margin: 0;
    list-style: none; 
}

.footer-colonne h3 {
    color: #3e6d19;
    margin-bottom: 15px;

    font-size: 22px;
    font-weight: bold;
}

.footer-colonne h3:hover {
    text-decoration: underline;
}

.footer-colonne a {
    color: #3e6d19;
    text-decoration: none;
}

.footer-colonne li {
    margin: 8px 0;
    overflow-wrap: break-word;
}

.footer-colonne li a {
    color: black;
    text-decoration: none;
}

.footer-colonne li a:hover {
    text-decoration: underline;
    color: #3e6b19;
}

.footer-bas {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;

    padding: 20px 20px 0;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;

    border-top: 1px solid rgba(255,255,255,0.2);

    box-sizing: border-box;
}

.footer-bas a {
    color: black;
    text-decoration: none;
}

.footer-bas a:hover {
    text-decoration: underline;
    color: white;
}



@media (max-width: 900px) {

   .footer-contenu {
        grid-template-columns: repeat(3, 1fr); 
    }

    .footer-colonne {
        width: 33.33%;
    }

}



@media (max-width: 600px) {

    .footer-contenu {
        grid-template-columns: 1fr; 
        padding: 0 30px;
    }

    .footer-colonne {
        width: 100%;
        padding: 0;
    }

    .footer-bas {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

}

.contact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.contact a {
    display: flex;
    transition: transform 0.2s ease;
}

.contact a:hover {
    transform: scale(1.15);
}

/* =========================================
   MENU BURGER MOBILE
   ========================================= */

/* Checkbox invisible */
#menu-mobile-toggle {
    display: none;
}

/* Burger invisible sur PC */
.menu-burger {
    display: none;
}

/* Menu mobile invisible par défaut */
.menu-mobile {
    display: none;
}

/* Les checkbox des sous-menus sont invisibles */
.menu-mobile-section input {
    display: none;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    /* Header */
    .header {
        position: relative;
        padding: 12px 20px;
    }


    /* Menus PC cachés */
    .nav {
        display: none;
    }


    /* Réseaux sociaux cachés sur mobile */
    .reseaux-header {
        display: none;
    }


    /* Burger */
    .menu-burger {
        display: block;
        margin-left: auto;

        color: white;
        font-size: 32px;
        line-height: 1;

        cursor: pointer;
        user-select: none;
    }


    /* Menu mobile fermé */
    .menu-mobile {
        display: none;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        z-index: 200;

        background: #90a858;

        padding: 10px 20px 20px;

        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    }


    /* Menu mobile ouvert */
    #menu-mobile-toggle:checked ~ .menu-mobile {
        display: flex;
        flex-direction: column;
    }


    /* Sections */
    .menu-mobile-section {
        width: 100%;
    }


    /* Boutons des catégories */
    .menu-mobile-section > label {
        display: block;

        color: white;
        font-size: 17px;

        padding: 14px 10px;

        cursor: pointer;
    }


    /* Liens simples */
    .menu-mobile > a {
        display: block;

        color: white;
        text-decoration: none;

        font-size: 17px;

        padding: 14px 10px;
    }


    /* Sous-menus fermés */
    .menu-mobile-sousmenu {
        display: none;

        padding-left: 15px;
    }


    /* Sous-menus ouverts */
    .menu-mobile-section input:checked ~ .menu-mobile-sousmenu {
        display: block;
    }


    /* Liens des sous-menus */
    .menu-mobile-sousmenu a {
        display: block;

        color: white;
        text-decoration: none;

        font-size: 15px;

        padding: 10px;
    }


    /* Effet au survol */
    .menu-mobile > a:hover,
    .menu-mobile-section > label:hover,
    .menu-mobile-sousmenu a:hover {
        background: #b1cb76;
    }
}


/* =========================================
   PC
   ========================================= */

@media (min-width: 701px) {

    #menu-mobile-toggle,
    .menu-burger,
    .menu-mobile {
        display: none !important;
    }

}

/* Accueil : espacement et lisibilite sur ordinateur et mobile. */
.accueil .image_main {
    width: min(500px, 42%);
}
.accueil .presentation .texte {
    min-width: 0;
    gap: 24px;
    line-height: 1.5;
}

.accueil .presentation .texte > p {
    margin: 0;
    width: 100%;
}

.accueil .presentation .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.4;
}

.accueil .services span {
    white-space: nowrap;
}

.accueil .activites .carte {
    min-width: 0;
    container-type: inline-size;
}

.accueil .activites .bande,
.accueil .activites .overlay {
    text-align: center;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.accueil .activites .bande {
    font-size: clamp(16px, 3vw, 22px);
    font-size: clamp(16px, 8cqi, 22px);
    padding: 12px 8px;
}

.accueil .activites .overlay {
    font-size: clamp(18px, 4vw, 28px);
    font-size: clamp(18px, 10cqi, 28px);
    padding: 8px;
    bottom: 65px;
}

@media (max-width: 700px) {
    .accueil .presentation {
        flex-direction: column;
    }

    .accueil .presentation .texte {
        padding: 32px 20px;
    }

    .accueil .image_main {
        width: 100%;
    }

    .accueil .image_main img {
        height: auto;
        clip-path: none;
    }

    .accueil .activites {
        padding: 28px 20px;
        gap: 16px;
    }
}

/* Association : titre et photo adaptes aux petits ecrans. */
@media (max-width: 700px) {
    .page-association .titre-avec-logo {
        display: grid;
        grid-template-columns: clamp(24px, 5vw, 36px) minmax(0, 1fr) clamp(24px, 5vw, 36px);
        width: 100%;
        gap: 8px;
    }

    .page-association .titre-avec-logo .logo {
        width: 100%;
        height: auto;
    }

    .page-association .titre-avec-logo .titre-page {
        min-width: 0;
        font-size: clamp(22px, 5vw, 32px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .page-association .texte-image-droite {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .page-association .texte-gauche,
    .page-association .image-droite {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .page-association .image-droite img {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
    }
}

/* Cadre de l'image du projet educatif. */
.image-projet-educatif {
    border: 2px solid #000;
}


/* Demarches : titre compact et schema sur toute la largeur du mobile. */
@media (max-width: 700px) {
    .page-demarche .titre-avec-logo {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        width: fit-content;
        max-width: 100%;
        gap: 8px;
    }

    .page-demarche .titre-avec-logo .logo {
        width: 100%;
        height: auto;
    }

    .page-demarche .titre-avec-logo .titre-page {
        min-width: 0;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
    }

    .page-demarche .conteneur .schema-demarche {
        width: calc(100% + 80px);
        max-width: none;
        height: auto;
        margin-left: -40px;
        margin-right: -40px;
    }
}

/* Demarche educative : lecture et photo sur mobile. */
@media (max-width: 700px) {
    .page-demarche-educative .titre-demarche {
        text-align: left;
        font-size: clamp(22px, 5vw, 27px);
        line-height: 1.3;
    }

    .page-demarche-educative .texte-demarches {
        margin-bottom: 32px;
    }

    .page-demarche-educative .demarche-texte-image {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 24px;
        margin-top: 32px;
    }

    .page-demarche-educative .demarche-paragraphe,
    .page-demarche-educative .demarche-image-legende {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .page-demarche-educative .demarche-image-legende img {
        width: 100%;
        height: auto;
    }
}

/* Referentiel Qualite : illustrations et cadre lisibles sur mobile. */
@media (max-width: 700px) {
    .page-referentiel .titre-avec-logo {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        width: fit-content;
        max-width: 100%;
        gap: 8px;
    }

    .page-referentiel .titre-avec-logo .logo {
        width: 100%;
        height: auto;
    }

    .page-referentiel .titre-avec-logo .titre-page {
        min-width: 0;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
    }

    .page-referentiel .image-referentiel img {
        width: 100%;
    }

    .page-referentiel .referentiel-bloc {
        flex-direction: column;
        width: 100%;
        gap: 24px;
    }

    .page-referentiel .referentiel-image,
    .page-referentiel .referentiel-bouton-container {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .page-referentiel .referentiel-bouton {
        max-width: 100%;
        padding: 20px 16px;
    }

    .page-referentiel .conteneur .referentiel3 {
        width: calc(100% + 80px);
        max-width: none;
        height: auto;
        margin: 28px -40px 0;
    }

    .page-referentiel .referentiel4-conteneur,
    .page-referentiel .referentiel4 {
        width: 100%;
    }
}

/* Partenaires : titre et logos centres sur mobile. */
@media (max-width: 700px) {
    .page-partenaires .titre-avec-logo {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        width: 100%;
        gap: 8px;
    }

    .page-partenaires .titre-avec-logo .logo {
        width: 100%;
        height: auto;
    }

    .page-partenaires .titre-avec-logo .titre-page {
        min-width: 0;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .page-partenaires .partenaires-image-principale {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 0 0 12px;
        justify-items: center;
    }

    .page-partenaires .partenaires-image-centre {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }

    .page-partenaires .partenaires-petite-image {
        width: 100%;
        max-width: 150px;
        height: auto;
        align-self: center;
    }
}

@media (max-width: 600px) {
    .page-partenaires .logos-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Animations, accompagnement, dispositifs et ENS : ajustements mobiles. */
@media (max-width: 700px) {
    .titre-avec-logo.titre-mobile-ajuste {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        width: 100%;
        gap: 8px;
    }

    .titre-mobile-ajuste .logo {
        width: 100%;
        height: auto;
    }

    .titre-mobile-ajuste .titre-page {
        min-width: 0;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .page-accompagnement .image-accompagnement img,
    .page-accompagnement .legende-accompagnement,
    .page-dispositifs .image-dispositifs-bas,
    .page-dispositifs .image-dispositifs-bas img {
        width: 100%;
    }

    :is(.page-animations, .page-ens, .page-exposition, .page-ate, .page-labo, .page-serd) .diaporama-ens {
        width: calc(100% + 40px);
        max-width: none;
        height: auto;
        aspect-ratio: 4 / 3;
        margin: 40px -20px;
    }

    :is(.page-animations, .page-ens, .page-exposition, .page-ate, .page-labo, .page-serd) .diapo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    :is(.page-animations, .page-ens, .page-exposition, .page-ate, .page-labo, .page-serd) .diapo-fleche {
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 44px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 6px;
    }

    :is(.page-animations, .page-ens, .page-exposition, .page-ate, .page-labo, .page-serd) .fleche {
        font-size: 26px;
        line-height: 1;
        color: white;
    }

    .page-ens .bloc-ens {
        flex-direction: column;
        width: 100%;
        gap: 24px;
    }

    .page-ens .ens-lien,
    .page-ens .ens-image {
        flex: none;
        min-width: 0;
        width: 100%;
    }

    .page-ens .ens-bouton {
        max-width: 100%;
        padding: 20px 16px;
    }

    .page-ens .ens-image img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    .page-ens .ressources-ens {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 16px;
    }

    .page-ens .ressource-ens {
        min-width: 0;
        padding: 20px 16px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 700px) {
    .page-accompagnement .titre-mobile-ajuste .titre-page {
        font-size: clamp(18px, 5vw, 28px);
    }

    :is(.page-animations, .page-accompagnement, .page-dispositifs, .page-ens) .arborescence {
        flex-wrap: wrap;
    }
}

/* Exposition : sous-titre legerement plus petit et en italique. */
.page-exposition .exposition-sous-titre {
    font-size: 30px;
    font-style: italic;
}

@media (max-width: 700px) {
    .page-exposition .exposition-sous-titre {
        font-size: clamp(22px, 4.7vw, 30px);
    }

    :is(.page-exposition, .page-ecole-dehors) .arborescence {
        flex-wrap: wrap;
    }

    .page-ecole-dehors :is(.ecole-dehors-bloc1, .ecole-dehors-bloc2, .ecole-dehors-bloc3, .ecole-dehors-images3) {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 28px;
    }

    .page-ecole-dehors :is(.ecole-dehors-image1, .ecole-dehors-image2, .ecole-dehors-image3, .ecole-dehors-contenu1, .ecole-dehors-texte2, .ecole-dehors-texte3, .ecole-dehors-images3 > div) {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .page-ecole-dehors .ecole-dehors-contenu1 {
        order: -1;
    }

    .page-ecole-dehors .visio-image {
        width: 100%;
        max-width: none;
    }

    .page-ecole-dehors :is(.ecole-dehors-image1, .ecole-dehors-image2, .ecole-dehors-image3, .ecole-dehors-images3) img {
        width: 100%;
        max-width: none;
        height: auto;
        object-fit: contain;
    }

    .page-ecole-dehors .ecole-dehors-boutons {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .page-ecole-dehors .ecole-dehors-bouton,
    .page-ecole-dehors .ecole-dehors-bouton2 {
        flex: none;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .page-ecole-dehors .ecole-dehors-bouton2 {
        width: 100%;
    }
}

/* Labo des futurs et SERD : mise en page mobile. */
@media (max-width: 700px) {
    .page-labo .labo-introduction {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
    }

    .page-labo .labo-texte-intro {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .page-labo .labo-diaporama {
        margin-top: 0;
        margin-bottom: 0;
    }

    .page-labo .labo-boutons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .page-labo .labo-bouton {
        flex: none;
        min-width: 0;
        width: 100%;
        max-width: 350px;
        overflow-wrap: anywhere;
    }

    .page-labo .labo-document {
        width: calc(100% + 40px);
        max-width: none;
        margin-left: -20px;
        margin-right: -20px;
    }

    :is(.page-labo, .page-serd) .arborescence {
        flex-wrap: wrap;
    }

    .page-serd .titre-serd {
        min-width: 0;
        padding: 30px 0;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .page-serd .serd-grille {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-serd .serd-activite {
        min-width: 0;
    }

    .page-serd .serd-diapo {
        margin: 0 -20px;
    }
}

@media (max-width: 700px) {
    .page-ecole-dehors .ecole-dehors-bloc3 {
        gap: 8px;
    }

    .page-ecole-dehors .ecole-dehors-image3 {
        order: -1;
    }

    .page-ecole-dehors .ecole-dehors-texte3 p {
        text-align: center;
        font-size: 13px;
        line-height: 1.4;
    }

    .page-exposition .fonctionnement-titre {
        width: calc(100% + 40px);
        margin-left: -20px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 65px;
        gap: 16px;
        align-items: center;
    }

    .page-exposition .fonctionnement-titre h2 {
        min-width: 0;
        font-size: clamp(20px, 6vw, 25px);
    }

    .page-exposition .fonctionnement-titre img {
        width: 65px;
        height: 65px;
        margin-right: 0;
    }
}

/* Header ordinateur : reserver la largeur du logo et eviter les chevauchements. */
@media (min-width: 701px) {
    .header > .logo {
        width: 90px;
        flex: 0 0 90px;
    }

    .header > .nav,
    .header > .reseaux-header {
        flex-shrink: 0;
    }

    .header .nav-link {
        display: block;
        white-space: nowrap;
    }
}

/* Fenetre ordinateur etroite : toutes les rubriques restent sur une meme ligne. */
@media (min-width: 701px) and (max-width: 1100px) {
    .header {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px 8px;
        padding: 12px 20px;
    }

    .header > .logo {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .header > .reseaux-header {
        grid-column: 4 / 6;
        grid-row: 1;
        justify-self: end;
    }

    .header > .nav {
        grid-row: 2;
        min-width: 0;
        justify-content: center;
    }

    .header .nav-link {
        padding: 10px 6px;
        font-size: 14px;
    }
}

/* Image de fond commune aux pages du site. */
body {
    --marge-fond: 16px;
    background: #e5e5e5 url("images/background.jpeg") center / cover no-repeat fixed;
}

main.page {
    background: transparent;
}

.page-accueil .accueil,
main.page > .conteneur {
    width: calc(100% - 2 * var(--marge-fond));
    background-color: #fff;
}

@media (max-width: 700px) {
    body {
        --marge-fond: 8px;
        background-position: center top;
        background-size: auto 600px;
        background-repeat: repeat-y;
        background-attachment: scroll;
    }
}

@media (max-width: 360px) {
    main.page > .conteneur {
        overflow-wrap: anywhere;
    }

    main.page .titre-avec-logo .titre-page {
        min-width: 0;
    }

    main.page .ate-bouton {
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* Menus ordinateur : supprimer le vide sous le titre et retarder la fermeture. */
@media (min-width: 701px) {
    .header .dropdown-content {
        display: block;
        top: 100%;
        visibility: hidden;
        transition: visibility 0s 500ms;
    }

    .header .dropdown-content a {
        transition-property: background-color, color;
    }

    .header .dropdown:hover .dropdown-content {
        visibility: visible;
        transition-delay: 0s;
    }
}

/* Titres de page sur telephone. */
@media (max-width: 700px) {
    main.page .titre-avec-logo {
        max-width: 100%;
        gap: 8px;
    }

    main.page .titre-avec-logo > .logo {
        width: clamp(20px, 6vw, 36px);
        flex: 0 0 auto;
    }

    main.page h1:is(.titre-page, .titre-serd),
    main.page .titre-avec-logo h1.titre-page {
        min-width: 0;
        padding: 24px 0;
        font-size: clamp(22px, 5.5vw, 32px);
        line-height: 1.2;
        text-wrap: balance;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}
