/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@700&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #ccc;
    background-color: #121212;
}

header {
    background-color: #1e1e1e;
    padding: 1em 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
}

.logo {
    color: #ffa726;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffa726;
}

.hero {
    background: url("./image/home.jpg")  no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5em 1em;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.btn {
    background-color: #ffa726;
    color: white;
    padding: 0.75em 1.5em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #fb8c00;
}

.services, .besoin, .about, .contact {
    padding: 4em 1em;
    text-align: center;
}

.services h1, .besoin h1, .about h1, .contact h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    margin-bottom: 1em;
    color: #ffa726;
}

.service-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 1.5em;
    margin: 1em;
    display: inline-block;
    width: calc(25% - 2em);
    vertical-align: top;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: #ffa726;
}

.service-card p, .about p, .contact form label {
    font-size: 1em;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #1e1e1e;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact form label {
    display: block;
    margin-bottom: 0.5em;
    color: #ffa726;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ccc;
}

.contact form input:focus, .contact form textarea:focus {
    outline: none;
    border-color: #ffa726;
}

footer {
    background-color: #1e1e1e;
    color: white;
    text-align: center;
    padding: 1em 0;
    width: 100%;
}

.about-hero {
    background: url("./image/home.avif") no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5em 1em;
}

.about-hero-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
}

.about-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.about-hero p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.about-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4em 1em;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    margin-right: 2em;
}

.about-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: #ffa726;
}

.about-text p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

.contact {
    margin-bottom: 10%;
}

footer {
    background-color: #1e1e1e;
    color: white;
    text-align: center;
    padding: 1em 0;
    width: 100%;
}

.burger {
    display: none; /* Masque le burger button par défaut */
    cursor: pointer;
}

.line1, .line2, .line3 {
    width: 25px;
    height: 3px;
    background-color: #ccc;
    margin: 4px 0;
    transition: transform 0.4s;
}

/* Animer les lignes du burger button */
.change .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.change .line2 {
    opacity: 0;
}

.change .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Styles pour les petits écrans */
@media (max-width: 768px) {
    .hero{
        background-image: none ;
    }
    .hero-content{
        background-color: #1e1e1e;
    }

    .about-hero{
        background-image: none ;
    }
    .about-hero-content{
        background-color: #1e1e1e;
    }
    .about-content {
        display: block;

    }



    .service-card {
        width: 100%;
        margin: 1em 0;
        padding: 0;
    }
    .logo {
        display: none; /* Masque le logo */
    }
    nav {
        padding: 0;
    }
    .nav-links {
        display: none; /* Masque le menu de navigation par défaut sur les petits écrans */
    }

    .burger {
        display: block; /* Affiche le burger button sur les petits écrans */
        margin-left: auto;
    }

    .side-nav {
        position: fixed;
        top: 0;
        left: -250px; /* Masque la side nav par défaut */
        width: 250px;
        height: 100%;
        background-color: #1e1e1e;
        z-index: 1;
        overflow-x: hidden;
        padding-top: 60px;
        transition: 0.5s;
    }

    .side-nav nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Animer l'ouverture de la side nav */
    .side-nav.open {
        left: 0;
    }

    .nav.active {
        display: flex; /* Affiche le menu de navigation lorsque le burger button est activé */
        flex-direction: column;
        align-items: center;
        background-color: #1e1e1e;
        position: absolute;
        top: 70px;
        width: 100%;
    }

    .nav.active li {
        margin: 20px 0;
    }
}
.side-nav {
    position: fixed;
    top: 0;
    left: -250px; /* Masque la side nav par défaut */
    width: 250px;
    height: 100%;
    background-color: #1e1e1e;
    z-index: 1;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
}

.side-nav ul {
    list-style-type: none;
    padding: 0;
}

.side-nav ul li {
    padding: 20px;
}

.side-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* Animer l'ouverture de la side nav */
.side-nav.open {
    left: 0;
}
.toast {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    z-index: 9999;
}