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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* VARIABLES */
:root {
    --bg-color: #fff;
    --text-color: #333;
    --navbar-bg: #fff;
    --footer-bg: #f4f4f4;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --navbar-bg: #1e1e1e;
    --footer-bg: #1e1e1e;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

/* NAVBAR */
.navbar {
    background: var(--navbar-bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.navbar > div:last-child {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* BRAND */
.brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: lighter;
    letter-spacing: 0.05em;
}

.brand .name {
    font-size: 1.2rem;
    white-space: nowrap;
}

/* DESKTOP = CENTRÉ */
.brand .tagline,
.brand h1.tagline {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    white-space: nowrap;
    margin: 0;
    font-weight: 400;
    color: inherit;
}

body.dark-mode .brand {
    color: #e0e0e0;
}

.brand a {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
}

/* NAV */
.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

body.dark-mode .navbar nav ul li a {
    color: #e0e0e0;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    width: 100%;
}

.navbar nav ul li a:hover {
    color: #000000;
}

body.dark-mode .navbar nav ul li a:hover {
    color: #a8edea;
}

body.dark-mode .navbar nav ul li a::after {
    background: #a8edea;
}

/* BUTTONS */
#toggle-music {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

#toggle-dark {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* HERO */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease-in-out;
}

.hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* ARROWS */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}

.arrow:hover {
    opacity: 1;
}

.arrow-left { left: 0.5rem; }
.arrow-right { right: 0.5rem; }

.hero:hover .arrow {
    opacity: 1;
}

/* FOOTER */
.footer {
    background: var(--footer-bg);
    padding: 2rem;
    text-align: center;
}

/* MOBILE */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-brand-mobile {
    display: none;
}

@media (max-width: 768px) {

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar.menu-open nav .nav-brand-mobile {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-weight: 400;
        text-align: left;
    }

    .navbar.menu-open nav .nav-brand-mobile .name,
    .navbar.menu-open nav .nav-brand-mobile .tagline {
        display: block;
        margin: 0;
        line-height: 1.2;
        font-weight: 400;
        font-size: 0.88rem;
    }


    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    /* ✅ FIX MOBILE : tout sur une ligne */
    .brand {
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
    }

    .navbar .brand .name,
    .navbar .brand .tagline,
    .navbar .brand h1.tagline {
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }

    .navbar .brand .name {
        font-size: 0.78rem;
    }

    .navbar .brand .tagline,
    .navbar .brand h1.tagline {
        position: static;
        transform: none;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 75vw;
        max-width: 250px;
        background: var(--navbar-bg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        padding-top: 60px;
    }

    .navbar.menu-open nav {
        transform: translateX(0);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar.menu-open nav .nav-brand-mobile {
        order: 0;
        width: 100%;
    }

    .navbar.menu-open nav ul {
        order: 1;
        width: 100%;
        flex-direction: column;
        padding: 2rem 1rem;
    }

    /* HERO MOBILE */
    .hero {
        margin-top: 50px;
        background-size: contain;
        background-repeat: no-repeat;
        height: auto;
        min-height: 50vh;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0.5rem;
    }

    .menu-toggle {
        font-size: 1.8rem;
        padding: 0.5rem;
    }

    #toggle-music {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .navbar .brand {
        flex: 1;
        min-width: 0;
    }

    .navbar .brand .name {
        font-size: clamp(0.55rem, 5vw, 0.78rem);
        max-width: 70vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar .brand .tagline,
    .navbar .brand h1.tagline {
        font-size: clamp(0.65rem, 6vw, 0.72rem);
        max-width: 70vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }
}

/* Landscape Orientation - Increase Image Size */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        margin-top: 50px;
        height: 90vh;
        background-size: cover;
    }
}

/*.aligner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}*/