/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    color: #000000;
    background-color: #f9f9f9;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 80px; 
}

header {
    background-color: #4F7335;
    padding: 10px 20px; 
    display: flex;
    align-items: center;
    position: fixed; 
    top: 0;
    width: 100%; 
    z-index: 10; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.profile-image {
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 20px;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem; 
    margin: 0; 
    padding: 0; 
}


nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}


nav ul li a:hover {
    color: #000000;
    text-decoration: underline;
    transform: scale(1.1);
}
.empty-space {
    height: 150px; 
}

/* Titre principal */
.title {
    margin-top: 100px; 
    text-align: center; 
}

/* Section principale */
.main-content {
    max-width: 90%;
    margin: 2rem auto;
    text-align: center;
}

.main-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #4F7335;
    margin-bottom: 1rem;
}

.nanas-image {
    width: 100%;
    max-width: 460px;
    height: auto;
    border: 2px solid black;
    margin: 1.5rem auto;
    display: block;
}

.text-content {
    background-color: #F1E7E7; 
    width: 100vw;  
    margin-left: 0;  
    margin-right: 0; 
    padding: 1.5rem;  
    text-align: left;  
    font-size: 1rem;  
    box-sizing: border-box; 
    position: relative;  
    left: 50%;  
    right: 50%;  
    transform: translateX(-50%); 
}

.text-content h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 0.75rem;
}

.text-content p {
    font-size: 1rem;
    color: #000000;
}

/* Section verte */
.section-green {
    background-color: #4F7335;
    padding: 2rem 1rem;
    text-align: center;
    color: #ffffff;
}

.section-green .content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.image-container {
    flex: 1 1 300px;
    text-align: center;
}

.image-container img {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.text-container {
    flex: 2;
    font-size: 1rem;
    text-align: justify;
    color: #ffffff;
}

/* Galerie */
.gallery-section {
    text-align: center;
    margin: 3rem auto;
}

.gallery-section h2 {
    font-size: 2rem;
    color: #4F7335;
    margin-bottom: 1rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 250px));
    gap: 2rem;
    padding: 1rem;
    justify-content: center
}

.gallery img {
    width: 100%;
    height: auto;
    max-height: 94%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

.gallery img:hover {
    transform: scale(1.1);
}

.gallery-text {
    text-align: justify;
    margin: 0 auto;
    max-width: 800px; 
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
}

/* Section contact */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    background-color: #F1E7E7;
    padding: 2rem;
}

.contact-info {
    flex: 1 1 300px;
    color: #4F7335;
    font-size: 1rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #000000;
}

.contact-map img {
    width: 100%;
    max-width: 300px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Formulaire de contact */
.contact-form {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.contact-form h5 {
    font-size: 1.5rem;
    color: #070741;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    background-color: #4F7335;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #06401c;
}

/* Petits écrans */
@media (max-width: 480px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        margin: 0 0 1rem 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .main-content {
        font-size: 0.9rem;
    }

    .text-content {
        font-size: 0.85rem;
        padding: 1rem;
    }

    .section-green .content {
        flex-direction: column;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contact-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-info ul {
        padding-left: 1rem;
    }

    .contact-map img {
        max-width: 100%;
    }

    .contact-form {
        width: 90%;
    }
}

/* Écrans moyens */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        max-width: 95%;
        margin: 1.5rem auto;
    }

    .section-green .content {
        gap: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .contact-form {
        max-width: 350px;
    }
}
