/* Styles généraux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Couleurs globales */
:root {
    --primary-color: #007BFF;
    --secondary-color: #4caf50;
    --background-light: #ffffff;
    --background-dark: #333333;
    --text-light: #ffffff;
    --text-dark: #333333;
}

/* Conteneur global */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Conteneur du header */
header {
    background: var(--background-dark);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Conteneur pour centrer le menu */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

header .logo img {
    margin-right: auto;
    display: flex;
    align-items: center;
}

header .logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation par défaut (desktop) */
header nav {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 20px;
    text-align: center;
}

header nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav a:hover,
header nav a.active {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Menu Burger (caché par défaut) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.opened .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.opened .bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.opened .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Media query pour mobile */
@media (max-width: 1034px) {
    .burger-menu {
        display: flex;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-dark);
        z-index: 999;
        flex-direction: column;
    }

    header nav.active {
        display: flex;
    }

    header nav a {
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Media query pour desktop */
@media (min-width: 1035px) {
    .burger-menu {
        display: none;
    }

    header nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
    }

    header nav a {
        width: auto;
        text-align: center;
        border-bottom: none;
    }
}

/* Section Hero */
.hero {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-light);
    background: var(--secondary-color);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.hero .btn-primary:hover {
    background: var(--primary-color);
}

/* Cards Section */
.services {
    padding: 50px 20px;
    background: var(--background-light);
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--background-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
}

/* Formulaire */
form {
    max-width: 1200px;
    width: 80%;
    margin: 50px auto;
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    color: #e6e6e6;
}

form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

form input,
form select,
form textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}