:root { 
  --main-color-text: #666;
  --main-blue-color: #5B8FC7;
  --font-size: 16px;
  --height-banner-pc: 900px;
  --height-banner-mobile: 700px;
}


*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wrapper{
    max-width: 1100px;
    margin: 0 auto;
    /*background-color: gray;
    border: 2px solid black;*/
}

.flex{
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: space-between;
}


/* HEADER *****************************************************/




.sectionLine{
    border-bottom: 1px solid #e5e5e5;
}

header section div{
    padding: 15px 0px;
    letter-spacing: 1px;
}

.lienSectionHeader{
    margin-left: 5px;
    text-decoration: none;
    color: var(--main-color-text);
    transition: color 0.3s ease;
}

.spanEnveloppe{
    margin: auto 0;
}

.lienSectionHeader:hover{
    color: var(--main-blue-color);
}

.liensReseaux{
    color: black;
    transition: color 0.3s ease;
    text-decoration: none;
}

.liensReseaux:hover{
    color: var(--main-blue-color);
}

.fa-envelope{
    color: var(--main-blue-color);
}


.conteneur-menu{
            display: flex;
            justify-content: space-between;
            align-items: center;
           /*margin-top: 20px;*/
}


/* Logo section */
.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

    .logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    padding-left : 10px;
}

@media (max-width: 768px) {
    .flex{
        flex-direction: column;
    }

    .lienSectionHeader{
        padding-bottom: 8px;
        border-bottom: 1px solid #e5e5e5;
    }

    .spanEnveloppe{
    margin-top: 10px;;
}

.conteneur-menu{
    justify-content: center;
}

.decalageIcones{
    margin-bottom: -10px;
}
    
}


/* Navigation menu */
nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    color: black;
}

nav ul li a:hover {
    color: #5B8FC7;
}

/* Lien actif (HOME) */
nav ul li a.active {
    color: #5B8FC7;
}

/* Liens avec dropdown (▼) */
nav ul li a.has-dropdown::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
}


/*FIN HEADER *********************************************/


/* BANNIERE */


.boiteAlignement{
    display: flex;
    flex-direction: column;
    height: var(--height-banner-pc);
}

.imagePresentation{
    position: relative;
    width: 100%;
    height: var(--height-banner-pc);
    background-image: url('../images/Groupe_EnsemblePourBrumath_3.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay sombre pour améliorer la lisibilité */
.imagePresentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.texteBanniere{
    color: white;
    position: relative;
    /*top: 30%;*/
    text-align: left;
    /*margin: 0*/
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    /* height: var(--height-banner-pc); */
    margin-top: auto;
    padding-bottom: 30px;
}

.texteBanniere h1{
    font-size: 80px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}

.texteBanniere p {
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}
/* Bouton */
.boutonContact{
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.boutonContact:hover {
    background-color: white;
    color: #333;
}



@media (max-width: 768px) {

    .boiteAlignement{
        height: var(--height-banner-mobile);
}

    .imagePresentation{
    position: relative;
    width: 100%;
    height: var(--height-banner-mobile);
    background-image: url('../images/Groupe_EnsemblePourBrumath_3.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.texteBanniere{
    text-align: center;
    /*height: var(--height-banner-mobile);*/
    margin-top: auto;

}

    .texteBanniere h1{
        font-size: 40px;
    }

    .texteBanniere p {
    font-size: 20px;
    }

}

/* FIN BANNIERE */

/* A PROPOS */

.zoneAPropos {
    padding: 50px 0;
    background-color: #fff;
}

/* Titre centré avec lignes */
.titreAPropos {
    text-align: center;
    margin-bottom: 60px;
}

.titre-wrapper {
    position: relative;
    display: inline-block;
}

.titreAPropos h2 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 5px;
    color: #333;
}

.ligneDeco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.ligneDeco::before,
.ligneDeco::after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: #4A90E2;
    max-width: 80px;
}

.ligneDeco .ligneDecoPoint {
    width: 10px;
    height: 10px;
    background-color: #E94B8B;
    border-radius: 50%;
}

/* Contenu en deux colonnes */
        .about-content {
           /* display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;*/
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;
        }

        .text-column{
            width:60%;
        }

        /* Colonne de texte */
        .text-column h3 {
            font-size: 36px;
            color: #333;
            /*margin-bottom: 15px;*/
            font-weight: 700;
        }

        .text-column .subtitle {
            font-size: 16px;
            color: #999;
            margin-bottom: 30px;
        }

        .text-column p {
            font-size: 16px;
            line-height: 1.8;
            color: #666;
            margin-bottom: 20px;
        }

        .signature {
            font-family: 'Brush Script MT', cursive;
            font-size: 32px;
            color: #333;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .author-name {
            font-size: 16px;
            color: #666;
            font-weight: 500;
        }

        /* Colonne image - vous avez déjà le code */
        .image-column {
            position: relative;
            display: inline-block;
        }

        .image-box {
            width: 100%;
            height: 550px;
            background-color: #ddd;
            position: relative;
            z-index: 2;
        }

        .image-box img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .image-column::after {
            content: '';
            position: absolute;
            width: calc(100% - 30px);
            height: calc(100% - 30px);
            border: 6px solid #6B9BD1;
            bottom: -15px;
            right: -15px;
            z-index: 1;
        }

        .texteGras{
            font-weight: bold;
        }

        .text-column p{
            font-size: 20px;
        }


@media (max-width: 768px) {
            .about-content {
           /* display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;*/
            display: flex;
            justify-content: space-evenly;
            text-align: center;
            flex-wrap: wrap;
            flex-direction: column-reverse;
        }
        .text-column{
            width:100%;
            margin-top: 50px;
        }

        .image-column {
        position: relative;
        display: inline-block;
        width: 60%;
        margin: 0 auto;
        }

        .image-box {
            width: 100%;
            height: unset;
            background-color: #ddd;
            position: relative;
            z-index: 2;
        }

        .image-box img {
            width: 100%;
            height: unset;
            object-fit: cover;
            display: block;
        }
        
}

        /* BANNIERE 2 */

.imagePresentation2{
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/Groupe_EnsemblePourBrumath_Assis.jpg');
    background-size: cover;
    background-position: 50% calc(70% - 30px); /* Décale de 20px vers le haut */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Overlay sombre pour améliorer la lisibilité */
.imagePresentation2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.texteBanniere2{
    color: white;
    position: relative;
    /*top: 30%;*/
    text-align: center;
    /*margin: 0*/
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.texteBanniere2 h1{
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}

.texteBanniere2 p {
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}


@media (max-width: 768px) {
    .imagePresentation2{
        position: relative;
        width: 100%;
        height: 500px;
        background-image: url('../images/Groupe_EnsemblePourBrumath_Assis.jpg');
        background-size: cover;
        background-position: center; /* Décale de 20px vers le haut */
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: unset;
        margin-bottom: 50px;
    }
    .texteBanniere2 h1{
        font-size: 40px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 25px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }   

    .texteBanniere2 p {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 35px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* RENCONTRE */

.sectionRencontres{
    margin-bottom: 60px;
}

.zoneRencontreFlex{
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    flex-wrap:wrap;

}

.zoneRencontreFlex2{
    display: flex;
    width: 100%;
    justify-content: space-between;
    row-gap: 10px;

}

.zoneRencontreFlex h2{
    font-size: 40px;
    color: var(--main-blue-color);
    margin-bottom: 20px;
}

.zoneRencontreFlex2 h3{
    font-size: 32px;
    color: var(--main-blue-color);
    margin-top: 50px;
    margin-bottom: 10px;
    /*height: 70px;*/
}

.zoneRencontreFlex2 p{
    font-size: 20px;
    color: var(--main-color-text);
}

.zoneRencontreFlex p{
    font-size: 20px;
    color: var(--main-color-text);
}

.zoneRencontreFlex2 div{
    width: 40%;

}

.zoneEvent{
    display: flex;
    height: 150px;
    width: 100%;
    /*background-color: blue;*/
    box-shadow: 10px 5px 5px rgb(204, 204, 204);
    /*margin-left: 50px;*/
    /*flex-direction: column;*/
    margin-bottom: 20px;
}

.fa-location-dot{
    color: var(--main-blue-color);
}

@media (max-width: 768px) {
    .zoneEvent{
    box-shadow: 2px 1px 1px rgb(204, 204, 204);
}
}

.imageEvent{
    width: 100px;
    height:150px;
    object-fit: cover;
}

.dateFlex{
    display: flex;
    justify-content: space-between;
}

.fa-calendar-days{
    color: var(--main-blue-color);
}

.fa-clock{
    color: var(--main-blue-color);
}

.zoneRencontreCoupe{
    width:40%;
}

.dateFlex p{
    font-size: 16px;
}

.flex-item {
    flex: 0 0 50%;
}

.zoneFlexEvent{
    width:100%;
    padding: 15px 10px;
}

.zoneFlexEvent h3{
    padding-top: 10px;
    font-size: 25px;
    color: var(--main-blue-color);
    text-align: center;
}

/* Bouton */
.boutonAgenda{
    margin-top: 10px;
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--main-color-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid var(--main-color-text);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.boutonAgenda:hover {
    background-color: var(--main-blue-color);
    color: #333;
}

.alignementBouton{
    text-align: center;
}

@media (max-width: 768px) {

    .zoneRencontreFlex2{
        flex-direction: column;
    }


    .zoneRencontreFlex2 div{
        width: 100%;
    }

    .zoneRencontreCoupe{
        width:100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .flex-item {
        flex: unset;
    }

    .zoneFlexEvent h3{
        padding-top: 10px;
        font-size: 20px;
        color: var(--main-blue-color);
        text-align: center;
    }

    .boutonAgenda{
        margin-top: 10px;
        display: inline-block;
        padding: 2.5px 5px;
        background-color: transparent;
        color: var(--main-color-text);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border: 2px solid var(--main-color-text);
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: unset;
        text-align: center;
    }

    .dateFlex p{
    font-size: 10px;
}


}


/* SONDAGE ******************/


       /* BANNIERE 3 */

.imagePresentation3{
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../images/Image_Sondage_1920x1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Overlay sombre pour améliorer la lisibilité */
.imagePresentation3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.texteBanniere3{
    color: white;
    position: relative;
    /*top: 30%;*/
    text-align: center;
    /*margin: 0*/
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.texteBanniere3 h1{
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}

.texteBanniere3 p {
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px black;
}




@media (max-width: 768px) {
    .texteBanniere3 h1{
        font-size: 40px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 25px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .texteBanniere3 p {
        font-size: 20px;
        line-height: 1.6;
        margin-bottom: 35px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

}






/* FORMULAIRE */

.zoneFormulaire{
    margin-bottom: 50px;
}

 .form-container {
            background: white;
            padding: 50px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        }
        @media (max-width: 768px) {
    .form-container{
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
}

        .form-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .form-title h2 {
            font-size: 32px;
            color: #333;
            margin-bottom: 10px;
        }

        .form-title p {
            color: #666;
            font-size: 16px;
        }

        /* Style des champs de formulaire */
        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 600;
            font-size: 14px;
        }

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group textarea {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 15px;
            transition: all 0.3s ease;
            font-family: 'Arial', sans-serif;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-group textarea {
            min-height: 150px;
            resize: vertical;
        }

        /* Layout en 2 colonnes pour nom et prénom */
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        /* Bouton d'envoi */
        .btn-submit {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 10px;
        }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }

        .btn-submit:active {
            transform: translateY(0);
        }

        /* Style pour les listes déroulantes (select) */
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
    appearance: none; /* Retire le style par défaut du navigateur */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px; /* Espace pour la flèche */
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select:hover {
    border-color: #667eea;
}

/* Style des options du select */
.form-group select option {
    padding: 10px;
    font-size: 15px;
}


        /* Messages de validation d'erreur */
        .form-error {
            color: #e74c3c;
            font-size: 13px;
            margin-top: 5px;
        }

        /* Messages flash */
        .alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 25px;
            font-size: 15px;
        }

        .alert-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

 .decalagePageFormulaire{
    margin-top: 30px;
}       
        /* Responsive */
        @media (max-width: 768px) {
            .form-container {
                padding: 30px 25px;
            }

            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .form-title h2 {
                font-size: 26px;
            }

            .wrapper {
                padding: 0 15px;
            }

            .zoneFormulaire {
                padding: 40px 0;
            }
        }

        /* Animation d'apparition */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .form-container {
            animation: fadeInUp 0.6s ease;
        }


/* FOOTER */

footer{
    background-color: black;
}

.flexFooter{
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-top: 50px;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.texteFooterPresentation{
    width:70%;
    color: white;
    padding-top: 20px;
    font-size: 20px;
    line-height: 32px;
    text-align: left;
}

.flexFooter h3{
    color: white;
    font-weight: bold;
    font-size: 24px;
    padding-bottom: 20px;
}


.lienSectionFooter{
    margin-left: 5px;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.lienSectionFooter:hover{
    color: var(--main-blue-color);
}

.liensReseauxFooter{
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 20px;
}

.liensReseauxFooter:hover{
    color: var(--main-blue-color);
}

.footerEnveloppeTexte{
    font-size: 20px;
    margin-bottom: 20px;
}

.footerMoi{
    margin-top: 20px;
    padding-bottom: 10px;
}

.footerMoi p{
    color: var(--main-color-text);
    text-align: center;
    font-size: 20px;
}

.flexIconeFooter{
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .flexFooter{
        flex-direction: column;
        gap: 50px;
        text-align: center;
        margin: 0 auto;
    }

    .texteFooterPresentation{
        width:100%;
        color: white;
        padding-top: 20px;
        font-size: 20px;
        line-height: 32px;
        text-align: center;
    }

    .flexIconeFooter{
        display: flex;
        gap: 10px;
        justify-content: center;
    }

}









/* ===== STRUCTURE ===== */
nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 10;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
  transition: transform 0.4s ease-in-out;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #5B8FC7;
}

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 30;

  /* Nouvelle partie : la fixe en haut à droite */
  position: fixed;
  top: 25px;
  right: 25px;
}

.burger span {
  width: 100%;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 15;
  }

  /* Le menu s’affiche quand la checkbox est cochée */
  .menu-toggle:checked ~ .nav-links {
    right: 0;
  }

  /* Overlay (fond semi-transparent) */
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 10;
  }

  /* Quand la checkbox est cochée, afficher l’overlay */
  .menu-toggle:checked ~ .overlay {
    display: block;
    opacity: 1;
    pointer-events: all;
  }

  /* Animation du burger en croix */
  .menu-toggle:checked + .burger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked + .burger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Cache la checkbox */
.menu-toggle {
  display: none;
}


/* décalage footer en bas */
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.error404{
    font-size: 100px;
    margin-bottom: 20px;
}

.sectionerreur404{
    margin: 0 auto;
}

.lienretour404{
    font-size: 50px;
    text-decoration: none;
    color: var(--main-color-text);
}

@media (max-width: 768px) {
    .error404{
    font-size: 50px;
    margin-bottom: 20px;
    }

    .lienretour404{
    font-size: 30px;
    text-decoration: none;
    color: var(--main-color-text);
}

}













/* SLIDER ------------------------------- */


/* Container du slider */
        .slider-section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .slider-container {
            position: relative;
            overflow-x: hidden; /* Cache le débordement horizontal */
            overflow-y: visible; /* Permet au zoom de dépasser verticalement */
            padding: 20px 60px 40px 60px; /* Espace en haut et en bas */
        }
        
        /* Conteneur pour masquer le débordement horizontal seulement */
        .slider-overflow-wrapper {
            overflow-x: hidden;
            overflow-y: visible;
        }

        /* Wrapper des photos */
        .slider-wrapper {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 20px;
        }

        /* Chaque photo */
        .slider-item {
            flex: 0 0 auto;
            width: 200px;
            height: 250px;
            position: relative;
            cursor: pointer;
            border-radius: 10px;
            overflow: visible; /* Permet au scale de ne pas être coupé */
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .slider-item-inner {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .slider-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .slider-item:hover img {
            transform: scale(1.15);
        }


        .overlay-description{
            display:none;
        }

        /* Overlay texte au survol */
        .slider-item .overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 12px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .slider-item:hover .overlay {
            transform: translateY(0);
        }

        .overlay-name {
            font-size: 14px;
            font-weight: 600;
            text-align: center;
        }

        /* Flèches de navigation */
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .slider-arrow:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
        }

        .arrow-left {
            left: 10px;
        }

        .arrow-right {
            right: 10px;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }

        .modal.active {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            border-radius: 15px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: background 0.3s ease;
        }

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .modal-image {
            width: 100%;
            height: 400px;
            object-fit: cover;
            border-radius: 15px 15px 0 0;
        }

        .modal-info {
            padding: 30px;
        }

        .modal-info h2 {
            font-size: 24px;
            color: #333;
            margin-bottom: 15px;
        }

        .modal-info p {
            font-size: 16px;
            color: #666;
            line-height: 1.6;
        }

        #modalName{
            text-align:center;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .slider-container {
                padding: 15px 50px 30px 50px;
            }

            .slider-item {
                width: 150px;
                height: 200px;
            }

            .slider-arrow {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }

            .modal-image {
                height: 300px;
            }

            .modal-info {
                padding: 20px;
            }

            .modal-info h2 {
                font-size: 20px;
            }
        }


.instagram-media {
    min-height: auto !important;
    max-height: 700px;
    overflow: hidden;
}


@media (max-width: 768px) {
    .slider-container {
        position: relative;
        overflow: hidden;
        padding: 0 60px;
        padding-bottom: 40px;
        max-width: 80vw;
        margin: 0 auto;
    }

    .slider-item {
        width: 100px;     
        height: 140px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .overlay-name {
        font-size: 12px;

    .modal-image {
        height: 300px;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 20px;
    }
}

}


table {
  border-collapse: collapse;
  border: 2px solid rgb(140 140 140);
  font-family: sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

caption {
  caption-side: bottom;
  padding: 10px;
  font-weight: bold;
}

thead,
tfoot {
  background-color: rgb(228 240 245);
}

th,
td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

td:last-of-type {
  text-align: center;
}

tbody > tr:nth-of-type(even) {
  background-color: rgb(237 238 242);
}

tfoot th {
  text-align: right;
}

tfoot td {
  font-weight: bold;
}
