/* Styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Polices */
@font-face {
    font-family: 'Yellosun';
    src: url('yellosun.otf') format('opentype'),
        url('yellosun.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'sourgummy';
    src: url('SourGummy-VariableFont_wdth,wght.ttf') format('truetype');
    font-display: swap;
}

/* Corps de page */
body {
    color: #333;
    text-align: center;
    background-color: #dfd6b6;
    font-size: 1.2em;
    font-family: 'sourgummy', sans-serif;
}

/* Bannière */
header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-container {
    width: 100%;
    height: 500px;
    position: relative;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation */
nav {
    background-color: #4c6830;
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    border-radius: 5px;
}

nav:hover {
    text-decoration: underline;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 25px;
}

/* Sections principales */
section {
    padding: 40px 20px;
    margin: 20px 0;
}

section h1,
section h2,
section h3 {
    font-family: 'Yellosun', sans-serif;
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #4c6830;
}

section p,
section ul {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Images horizontales */
.styled-images {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

/* Images verticales */
.portrait-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: block;
}

/* Galerie */
.gallery-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-container img {
    width: calc(33.333% - 20px);
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.gallery-container img:hover {
    transform: scale(1.1);
}

/* Calendrier */
.calendar-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 75%;
    overflow: hidden;
}

.calendar-container iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 50%;
    border: none;
}
/* --- FORMULAIRE DE CONTACT --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.2em;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4c6830;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'sourgummy', sans-serif;
}

.contact-form button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4c6830;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #365020;
}

/* --- PIED DE PAGE --- */
footer {
    background-color: #4c6830;
    color: white;
    padding: 40px 30px;
    font-size: 1.5em;
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

footer .footer-block {
    flex: 1;
    max-width: 300px;
    padding: 10px;
    text-align: center;
}

footer .logo-block img {
    width: 500px;
    height: auto;
}

/* Liens et réseaux sociaux */
footer .social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

footer .social-links a,
footer .contact-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer .social-links a:hover,
footer .contact-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-block {
        max-width: none;
        text-align: center;
        font-size: 0.9em;
    }

    footer .logo-block img {
        width: 300px;
    }
}
/* --- 🌿 RESPONSIVE DESIGN POUR MOBILES --- */
@media screen and (max-width: 768px) {

    /* Bannière */
    .banner-container {
        height: auto;
        /* Laisse l’image définir sa hauteur */
        max-height: 250px;
        /* Limite la hauteur */
    }

    .banner-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Navigation */
    nav {
        position: relative;
        /* Sous la bannière */
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 10px;
        padding: 5px 0;
        border-radius: 0;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 5px;
    }

    nav ul li {
        flex: 1 1 calc(50% - 10px);
        /* Deux colonnes */
        text-align: center;
    }

    nav ul li a {
        font-size: 14px;
        padding: 6px;
    }
@media screen and (max-width: 768px) {
    .portrait-image {
        display: block;
        max-width: 90vw;
        /* L’image ne dépassera jamais 90% de la largeur de l’écran */
        height: auto;
        /* Conserve les proportions */
        object-fit: contain;
        /* Empêche le recadrage */
        margin: 20px auto;
        /* Centre l’image */
    }
}

    /* Galerie */
    .gallery-container img {
        width: 90%;
        /* Chaque image prend la largeur de l’écran */
        max-width: none;
        height: auto;
    }

    /* Pied de page */
    footer {
        padding: 15px 10px;
    }

    footer .footer-content {
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    footer .footer-block {
        flex: 1 1 100%;
        /* Chaque bloc s’adapte à la largeur du téléphone */
        max-width: 100%;
        text-align: center;
    }

    footer .logo-block img {
        width: 90%;
        /* Logo réduit mais centré */
        height: auto;
    }

    footer .social-links {
        flex-wrap: wrap;
        /* Si besoin, les liens passent à la ligne */
    }

    footer .social-links a {
        font-size: 1.2em;
        /* Lisible sur mobile */
        margin: 5px;
    }
}