/* Importation d'une police Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Couleurs */
:root {
    --color-white: #fff;
    --color-green: #005f30; /* vert */
    --color-gold2: #C9B774;  /* or clair */
    --color-gold: #e8dfc8;  /* or clair */
    --color-black: #000000; /* noir */
}

/* Styles généraux */
body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--color-black);
}

body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-gold); /* Arrière-plan doré pour le body */
}

/* Header */
header {
    background-color: var(--color-gold);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 5%;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--color-green);
    padding: 0.5em 1em;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--color-gold2);
}

/* Section Nos Services */
.services-section {
    text-align: center;
    padding: 50px 0;
    margin-top: 20px;
}

.services-section h2 {
    font-size: 2.5em;
    color: var(--color-black);
    margin-bottom: 40px;
}

/* Grid pour les services - 2 par 2 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 110px;
    padding: 0 20px;
}

/* Styles pour les items de service en carré */
.service-item {
    background-color: var(--color-green);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Largeur à 100% pour garder une mise en page fluide */
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    font-size: 1.2em;
    color: var(--color-white);
    margin: 0;
    padding: 10px;
    text-align: center;
    background-color: var(--color-green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.service-item img {
    width: 100%;
    height: calc(100% - 50px);
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

/* Footer */
footer {
    background-color: var(--color-gold);
    text-align: center;
    padding: 1em 0;
    margin-top: 50px;
    font-size: 1em;
    color: var(--color-black);
}

/* Responsive Design - uniquement pour petits écrans */
@media screen and (max-width: 768px) {
    .services-section h2 {
        font-size: 2em;
    }

    .services-grid {
        grid-template-columns: 1fr; /* 1 colonne pour les petits écrans */
        gap: 10px; /* Espacement réduit uniquement pour les petits écrans */
        padding: 0; /* Retire le padding latéral pour éviter les bordures */
    }

    .service-item {
        height: 280px; /* Diminue la hauteur du conteneur */
    }

    .service-item img {
        height: calc(100% - 40px); /* Utilise plus d’espace pour l’image */
    }
}

/* Styles pour petits écrans */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: var(--color-gold);
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        z-index: 10;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 1em 0;
        background-color: var(--color-gold);
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger-icon {
        width: 40px;
        height: 40px;
    }
}

/* Masquer le hamburger sur les grands écrans */
@media screen and (min-width: 769px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 180px;
    height: 180px;
    margin-right: 20px;
}

/* Réduire la taille du logo sur les petits appareils */
@media screen and (max-width: 768px) {
    .logo-img {
        width: 100px;
        height: 100px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo-img {
        width: 80px;
        height: 80px;
        margin-right: 5px;
    }
}

/* Compacte et stylise le menu déroulant */
.nav-menu.active {
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1em;
    position: absolute;
    top: 60px;
    right: 0;
    width: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu li {
    margin: 5px 0;
    text-align: center;
}

.hamburger {
    display: block;
    cursor: pointer;
    padding: 0.5em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.hamburger-icon {
    width: 40px;
    height: 40px;
}
@media screen and (min-width: 769px) {
    .hamburger {
        display: none;
    }
}
/* Masquer le menu normal sur les petits écrans */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 1em;
        position: absolute;
        top: 60px;
        right: 0;
        width: auto;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
}
