/* ============================================================ GLOBAL PREMIUM STYLE ============================================================ */
:root {
    --primary: #121212;
    --secondary: #1e1e1e;
    --accent: #ff6a00;
    --accent-alt: #ff2b2b;
    --gradient: linear-gradient(135deg, #ff7a00, #ff1e00);
    --text: #f0f0f0;
    --text-muted: #cfcfcf;
    --radius: 14px;
    --transition: 0.3s ease;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* ----- BASE ----- */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: var(--primary);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ----- TOPBAR ----- */
.topbar {
    display: flex;
    justify-content: space-between;
    /* boutons aux extrémités */
    align-items: center;
    padding: 22px 40px;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 106, 0, 0.35);
    position: relative;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.18);
    z-index: 20;
}

.logo-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.nav-left,
.nav-right {
    display: flex;
    gap: 26px;
    align-items: center;
}

.logo-wrapper {
    margin: 0 auto;
    /* Centrage dans le flex */
    position: relative;
    /* supprimé absolute */
}

.logo {
    width: 165px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-left button,
.nav-right button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius);
    transition: color .25s ease, transform .25s ease;
}

.nav-left button:hover,
.nav-right button:hover {
    color: #e60023;
    background: rgba(230, 0, 35, 0.12);
    transform: scale(1.08);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 26px;
    height: 3px;
    margin: 4px 0;
    background: #e60023;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #181818;
    z-index: 999;
    padding: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mobile-menu button {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.15em;
    padding: 18px 0;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-menu button:hover {
    background: rgba(230, 0, 35, 0.18);
    border-radius: var(--radius);
}

/* ----- HERO SECTION ----- */
.hero {
    text-align: center;
    padding: 70px 20px 50px 20px;
}

.hero h1 {
    font-size: 2.9em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff6a00, #ff2b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3em;
    max-width: 650px;
    margin: 0 auto 38px auto;
    color: var(--text-muted);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(145deg, #ff6a00, #ff2b2b);
    color: #fff;
    font-weight: 600;
    font-size: 1.15em;
    padding: 16px 42px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(255, 43, 43, 0.25);
    transition: 0.25s;
}

.cta-button:hover {
    background: linear-gradient(145deg, #ff2b2b, #b4001a);
    box-shadow: 0 6px 22px rgba(255, 43, 43, 0.35);
    transform: scale(1.04);
}

/* ----- FOOTER ----- */
.footer {
    background: var(--secondary);
    padding: 22px;
    text-align: center;
    border-top: 1px solid rgba(230, 0, 35, 0.35);
    font-size: 14px;
    color: #dcdcdc;
    font-weight: 500;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        padding: 20px;
    }

    .nav-left,
    .nav-right {
        justify-content: center;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    .logo-wrapper {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {

    .nav-left,
    .nav-right {
        display: none !important;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 18px 20px;
    }
}