/* GENERAL */

@font-face {
    font-family: gravitas;
    src: url(../fonts/GravitasOne-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    margin: 0 auto;
}

body {
    background-color: #1F0802;
    color: white;
}

h2 {
    font-family: "gravitas";
}

/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: clamp(14px, 3vw, 40px) clamp(16px, 3vw, 30px);
    font-family: "gravitas";
    position: relative;
}

h1 {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
}

h1 a {
    transition: color 0.5s;
}

h1 a:hover {
    color: #DB2D00;
}

a {
    text-decoration: none;
    color: white;
}

.principale ul {
    display: flex;
    gap: clamp(20px, 4vw, 60px);
}

li {
    list-style-type: none;
}

.principale ul li {
    padding: clamp(6px, 1vw, 10px);
    position: relative;
    display: flex;
    justify-content: center;
    font-family: "gravitas";
}

.principale ul li::after {
    content: "";
    background-color: #DB6161;
    position: absolute;
    width: 50px;
    height: 2px;
    bottom: 0;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.principale ul li:hover::after {
    width: 0px;
}

.secondaire ul {
    display: flex;
    gap: clamp(16px, 2.5vw, 30px);
}

.secondaire ul li a {
    font-size: clamp(1rem, 2vw, 1.3rem);
    transition: color 0.5s;
}

.secondaire ul li a:hover {
    color: #DB2D00;
}

/* BURGER — caché sur desktop */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.25s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
}

.menu-overlay.open {
    display: block;
}

.menu-panel {
    display: none;
}

/* FOOTER */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 50px);
    background-color: #DB6161;
    padding: clamp(24px, 3vw, 35px) clamp(14px, 3vw, 20px);
    border-top-left-radius: clamp(24px, 4vw, 50px);
    border-top-right-radius: clamp(24px, 4vw, 50px);
}

.footer {
    display: flex;
    gap: clamp(24px, 12vw, 200px);
    flex-wrap: wrap;
    justify-content: center;
}

.apropos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 15px);
    text-align: center;
}

.apropos a {
    border: 1px solid white;
    padding: clamp(4px, 0.8vw, 6px) clamp(8px, 1.2vw, 12px);
    border-radius: 5px;
    transition: background-color 0.5s;
}

.apropos a:hover {
    color: white;
    background-color: #1F0802;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
}

h3 {
    font-family: "gravitas";
}

.nav ul li {
    margin-bottom: 5px;
}

.sub-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
}

footer a {
    transition: color 0.5s;
}

footer a:hover {
    color: #1F0802;
}

.sub-nav ul li {
    margin-bottom: 5px;
}

.sub-nav ul {
    display: flex;
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
}

footer p {
    color: gainsboro;
    margin-bottom: 0;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {

    .burger {
        display: flex;
    }

    .principale,
    .secondaire {
        display: none;
    }

    .menu-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: 72vw;
        max-width: 260px;
        background: #2a0c03;
        opacity: 0.9;
        border-left: 1px solid rgba(219, 97, 97, 0.4);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        padding: 60px 20px 40px;
    }

    .menu-panel.open {
        transform: translateX(0);
    }

    .menu-panel .principale,
    .menu-panel .secondaire { 
    display: flex; 
    }

    .menu-panel .principale ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    }

    .menu-panel .principale ul li {
    width: 100%;
    text-align: center;
    padding: 18px 10px;
    font-size: 1.1rem;
    border-bottom: 0.5px solid rgba(219, 97, 97, 0.2);
    }

    .menu-panel .secondaire ul {
    justify-content: center;
    gap: 24px;
    }

    .menu-panel .secondaire ul li a {
    font-size: 1.4rem;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }
}