/* Reset léger */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #fff8f0;
    color: #333; /* couleur par défaut pour index.html */
}

/* Couleurs spécifiques pour les nouvelles pages */
body.page-miel {
    color: #1a4d2e; /* vert foncé pour Miel */
}

body.page-essaims {
    color: #4d1a2e; /* bordeaux pour Essaims */
}

/* Header sticky */
header {
    display: flex;
    align-items: center;
    background-color: #fff8f0;
    height: 120px;
    padding: 0 20px;
    border-bottom: 2px solid #f0e0d0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo à gauche, hauteur du header seulement */
header .logo {
    height: 100%;
    width: auto;
    margin-right: 30px;
    object-fit: contain;
}

/* Menu horizontal avec hover animé */
.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: #b5651d;
    font-weight: bold;
    margin: 0 15px;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.menu a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #b5651d;
    transition: width 0.3s;
    position: absolute;
    bottom: -4px;
    left: 0;
}

.menu a:hover {
    color: #8b3d0f;
}

.menu a:hover::after {
    width: 100%;
}

/* Bannière en dessous du header avec zoom au hover */
.banniere {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 0;
    transition: transform 0.5s ease;
}

.banniere:hover {
    transform: scale(1.02);
}

/* Main content */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Intro + Nos engagements */
.intro-engagements {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.texte-complet {
    flex: 1;
}

.photo-droite-complet {
    flex: 0 0 auto;
    max-width: 250px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Photo pleine largeur */
.photo-pleine-section {
    margin-top: 20px;
}

.photo-pleine {
    width: 100%;
    border-radius: 8px;
}

.photos-miel {
    margin-top: 40px;
    text-align: center;
}

.photos-miel h2 {
    margin-bottom: 20px;
    color: #b5651d;
}

.galerie {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.photo-galerie {
    width: 45%;
    max-width: 400px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.photo-galerie:hover {
    transform: scale(1.05);
}

/* Titres */
h1 {
    margin-bottom: 15px;
    color: #b5651d;
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #b5651d;
}

/* Listes */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Footer avec hover */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f0e0d0;
    margin-top: 40px;
}

footer a {
    color: #b5651d;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #8b3d0f;
    text-decoration: underline;
}

/* Responsive */
@media(max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        padding: 10px;
    }

    header .logo {
        height: 60px;
        margin-bottom: 10px;
    }

    .menu {
        flex-direction: column;
        width: 100%;
    }

    .menu a {
        margin: 5px 0;
    }

    .banniere {
        height: 180px;
    }

    .intro-engagements {
        flex-direction: column;
        gap: 10px;
    }

    .photo-droite-complet {
        max-width: 100%;
        margin: 0 auto;
    }
}
