body {
    background-color: #f8f9fa;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    font-size: 1.15rem;
}

.en-tete {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
    padding-top: 148px;
    box-sizing: border-box;
    z-index: 1;
}

.en-tete::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./image/IMG_20260416_114426.jpg");
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    filter: blur(15px);
    transform: scale(1.1);
    z-index: -2;
}

.en-tete::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./image/IMG_20260416_114426.jpg");
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
    z-index: -1;
}

nav {
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    background-color: transparent;
    transition: padding 0.3s ease, background-color 0.3s ease;
}

nav.scrolled {
    background-color: white;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav img {
    height: 100px;
    width: auto;
    margin-right: auto;
    transition: height 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
}

nav.scrolled img {
    height: 70px;
}

.titre-bienvenue {
    flex: 1;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding-bottom: 3rem; 
}

.titre-bienvenue h1 {
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0;
    font-size: 3rem;
}

ul.menu-principal {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.menu-principal > li {
    position: relative;
    margin-left: 1.5rem;
}

nav a {
    background-color: #267267;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    cursor: pointer;
}

nav a:hover, .active {
    background-color: white;
    color: #267267;
}

.sous-menu {
    display: none;
    position: absolute;
    background-color: #267267;
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 1001;
}

ul.menu-principal > li > .sous-menu {
    top: 100%;
    left: 0;
}

li:hover > .sous-menu {
    display: block;
}

.sous-menu li {
    position: relative;
}

.sous-menu a {
    border-radius: 0;
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sous-menu .sous-menu {
    display: none;
    position: absolute; 
    top: 0;             
    left: 100%;         
    background-color: #1e5a52;
}

.sous-menu li:hover > .sous-menu {
    display: block;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    min-height: 80vh;
}

h1, h2 {
    text-align: center;
    width: 100%;
    margin: 1.5rem 0;
}

h1 {
    color: #3EBCAA;
    font-size: 2.8rem;
}

h2 {
    color: #212529;
    font-size: 1.8rem;
}

.section-accueil {
    color: #212529;
}

.btn, .btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: #005122;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1.1rem;
}

.btn:hover, .btn-custom:hover {
    opacity: 0.8;
}

form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    width: 90%;
    max-width: 450px; 
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1rem auto;
}

form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; 
    font-size: 1.1rem;
}

.grille-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 60px;
    column-gap: 50px;
    max-width: 900px;
    margin-top: 50px;
}

.item-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cercle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    text-decoration: none;
    margin-bottom: 15px;
    transition: transform 0.2s ease-in-out;
}

.cercle:hover {
    transform: scale(1.1);
}

.cercle i {
    font-size: 50px;
    color: white;
}

.vert{
    background-color: #3EBCAA;
}

.gris {
    background-color: #bcbcbc;
}

.texte-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.4;
}

.fin-de-page {
    font-size: 1.1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    min-height: auto;
    padding: 3rem 5%;
    box-sizing: border-box;
    background-color: #267267;
    color: white;
}

.milieu-de-page {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 2rem 5%;
    box-sizing: border-box;
    color: white;
    gap: 30px;
}

.fin-de-page .left, 
.fin-de-page .middle, 
.fin-de-page .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.fin-de-page h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.fin-de-page a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.fin-de-page .middle iframe {
    width: 100%;
    max-width: 380px;
    height: 250px;
    border-radius: 8px;
    margin: 1rem 0;
}

.btn-style-nav {
    background-color: #267267;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-style-nav:hover {
    background-color: white;
    color: #267267;
    border: 1px solid #267267; 
}

.conteneur-dossiers {
    width: 85%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
}

.lien-dossier {
    font-size: 1.8rem;
    margin: 15px 0;
    color: #551A8B;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: color 0.3s ease;
}

.lien-dossier span {
    text-decoration: underline;
}

.lien-dossier i {
    color: #267267;
    font-size: 2.1rem;
}

.lien-dossier:hover, .lien-dossier:hover i {
    color: #3EBCAA;
}

.section-histoire {
    padding: 4rem 0;
}

.contenu-histoire {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    text-align: left;
    line-height: 1.6;
}

.contenu-histoire h2 {
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.contenu-histoire .sous-titre-intro {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.contenu-histoire .intro-texte {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.bloc-texte {
    margin-bottom: 2rem;
}

.bloc-texte p {
    margin-bottom: 1rem;
}

.contenu-histoire ul {
    padding-left: 20px;
    margin-top: 1rem;
}

.contenu-histoire li {
    margin-bottom: 15px;
    text-align: justify;
}

.galerie-histoire {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.img-unique {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-double {
    width: calc(50% - 10px);
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.img-remontee {
    object-position: center 10%; 
}

@media (max-width: 768px) {
    .grille-menu {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fin-de-page, .milieu-de-page {
        flex-direction: column;
        gap: 40px;
    }

    h1 { font-size: 2.2rem; }

    .sous-menu, .sous-menu .sous-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }

    li:hover > .sous-menu {
        display: block;
    }

    .galerie-histoire {
        flex-direction: column;
        align-items: center;
    }

    .img-double {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}