/* Général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Section Accueil */
#accueil {
    height: 100vh;
    background-image: linear-gradient(0deg, rgb(251, 171, 126) 0%, rgb(247, 206, 104) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#accueil h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#accueil .btn {
    padding: 10px 20px;
    background-color: #e67e22;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 12px;
}

#accueil p {
    margin-bottom: 15px;
}

#accueil .btn:hover {
    background-color: #d35400;
}

/* Section À propos */
#a-propos {
    padding: 50px;
    background-color: #ecf0f1;
}

#a-propos h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

/* Section Services */
#services {
    padding: 50px;
    background-color: #fff;
}

#services h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.service {
    width: 30%;
    background-color: #f1c40f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Galerie */
#galerie {
    padding: 50px;
    background-color: #bdc3c7;
}

#galerie h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
}

.gallery_content {
    display: flex;
    justify-content: space-around;
}

/* Contact */
#contact {
    padding: 50px;
    background-color: #fff;
    text-align: center;
}

#contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact input, #contact textarea {
    width: 80%;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#contact .btn {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    cursor: pointer;
}

#contact .btn:hover {
    background-color: #27ae60;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
}

/* MEDIA QUERIES pour des écrans plus petits */
@media screen and (max-width: 768px) {
    /* Adjustments for tablets and small desktops */
    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        font-size: 22px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    #accueil h1 {
        font-size: 32px;
    }

    #accueil p {
        font-size: 16px;
    }

    #accueil .btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 80%; /* Utilisation d'une largeur plus grande sur tablettes */
        margin-bottom: 20px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    #contact input, #contact textarea {
        width: 80%;
    }
}

@media screen and (max-width: 480px) {
    /* Adjustments for mobile devices */
    body {
        font-size: 14px;
    }

    header {
        padding: 10px;
    }

    header .logo {
        font-size: 18px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        margin: 8px 0;
    }

    nav ul li a {
        font-size: 14px;
    }

    #accueil h1 {
        font-size: 24px;
    }

    #accueil p {
        font-size: 14px;
    }

    #accueil .btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service {
        width: 90%;
        margin-bottom: 20px;
    }

    #galerie h2 {
        font-size: 24px;
    }

    .gallery_content {
        display: grid;  
        grid-template-columns: 1fr; /* Une seule colonne pour les mobiles */
    }

    .gallery img {
        height: 180px;
    }

    #contact input, #contact textarea {
        width: 90%;
    }

    #contact .btn {
        width: 90%;
        font-size: 14px;
        padding: 8px 0;
    }

    footer {
        font-size: 12px;
        padding: 10px;
    }
}
