/* ========== BASE ========== */
/* Mise en page de base et typographie */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

/* Contenu principal prend la hauteur restante */
main {
    flex: 1;
}

/* ========== HEADER ========== */
/* Barre supérieure avec navigation et logo */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #000;
    border-bottom: 1px solid #e60023;
    position: relative;
}

/* Groupes de boutons de navigation */
.nav-left, .nav-right {
    display: flex;
    gap: 24px;
}

/* Positionnement centré du logo */
.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Taille du logo et curseur */
.logo {
    width: 160px;
    cursor: pointer;
}

/* Boutons de navigation */
.nav-left button,
.nav-right button {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f0f0f0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Effet hover sur boutons */
.nav-left button:hover,
.nav-right button:hover {
    color: #e60023;
    transform: scale(1.05);
}

/* Hamburger styles (hidden by default) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background: #e60023;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile menu hidden by default */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;              /* Modifié ici */
    left: 0;
    right: 0;
    background: #181818;
    z-index: 99;
    padding: 20px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.mobile-menu button {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.1em;
    padding: 16px 0;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}
.mobile-menu button:hover {
    background: #222;
}

/* Responsive: show only logo and hamburger, hide navs */
@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none !important;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }
    .logo-wrapper {
        margin: 0 auto;
    }
    .mobile-menu {
        display: none;
    }
    .mobile-menu.open {
        display: flex;
    }
}

/* ========== FOOTER ========== */
/* Pied de page simple et stylé */
.footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e60023;
    font-size: 14px;
    color: #f0f0f0;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ========== BUTTONS ========== */
/* Bouton d'appel à l'action principal */
.cta-button {
    display: inline-block;
    background: #e60023;
    color: #fff;
    font-weight: 600;
    font-size: 1.15em;
    padding: 16px 38px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(230,0,35,0.13);
    transition: background 0.2s;
    margin-top: 10px;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
}

.cta-button:hover {
    background: #b8001a;
}

/* ========== HERO SECTION ========== */
/* Section d'accroche principale */
.hero {
    text-align: center;
    padding: 60px 20px 40px 20px;
}

.hero h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 span {
    color: #e60023;
}

.hero p {
    font-size: 1.3em;
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* ========== RESPONSIVE ========== */
/* Ajustements pour petits écrans */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        padding: 20px;
    }

    .nav-left, .nav-right {
        justify-content: center;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    .logo-wrapper {
        position: static;
        transform: none;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .about {
        padding-bottom: 40px;
    }
}