@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body{
    background-color: black;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

header {
    background-color: #000;
    padding: 1rem 2rem;
}

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: url("ressources/img_de_garde.jpeg.png") center/cover no-repeat;
    overflow: hidden;
}

.header-container {
    max-width: 1880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

header nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 120px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    z-index: 3;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.nav-open .burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
header.nav-open .burger span:nth-child(2) {
    opacity: 0;
}
header.nav-open .burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

header nav a:hover {
    color: #FFEE00;
    filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.5));
}

header nav a.active {
    color: #FFEE00;
    filter: drop-shadow(0 0 8px rgba(255, 238, 0, 0.8));
}

.spacer {
    width: 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 80px;
    margin-top: 200px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: #FFEE00;
    margin-bottom: 10px;
    line-height: 1.1;
    text-align: center;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn.primary {
    background: linear-gradient(120deg, #ffee00, #ff9d00);
    color: #000;
    box-shadow: 0 12px 30px rgba(255, 196, 0, 0.35);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 196, 0, 0.45);
}

.hero-btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
}

.hero-btn.ghost:hover {
    border-color: #ffee00;
    color: #000;
    background: linear-gradient(120deg, #ffee00, #ff9d00);
    box-shadow: 0 12px 30px rgba(255, 196, 0, 0.35);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.75));
    z-index: 1;
}

footer {
    background-color: #000;
    padding: 1.5rem 2rem;
    border-top: 1px solid #333;
    margin-top: 0px;
    width: 100%;
}

.footer-container {
    max-width: 1880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #FFEE00;
    transform: translateY(-3px);
}

footer nav {
    display: flex;
    gap: 2rem;
    position: static;
    transform: none;
}

footer nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer nav a:hover {
    color: #FFEE00;
}

/* Bouton CTA style outline, utilisable sur tous les footers */
.cta-button {
    min-width: 260px;
    height: 3em;
    padding: 0 1.6rem;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: transparent;
    border: 3px solid #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Mobile menu & layout */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 45px;
    }

    header nav {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.96);
        padding: 80px 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        display: none;
        z-index: 10;
        transform: none;
        overflow-y: auto;
    }

    header.nav-open nav {
        display: flex;
    }

    header nav a {
        font-size: 0.95rem;
    }

    .spacer {
        display: none;
    }

    .burger {
        display: flex;
        z-index: 11;
    }

    .hero {
        min-height: 60vh;
        padding-top: 20px;
    }

    .hero-content {
        margin-top: 120px;
    }

    footer {
        padding: 1.5rem 1rem;
        margin-top: 60px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        align-items: center;
    }

    .social-links {
        justify-content: center;
        gap: 1.2rem;
    }

    footer nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        font-size: 14px;
        white-space: normal;
        height: auto;
        min-height: 3em;
        padding: 0.8rem 1.2rem;
    }
}