/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
}

body {
    font-family: Montserrat, "Helvetica Neue", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typographie */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-color);
}

p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-color);
}

a {
    color: var(--button-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

span {
    font-weight: 600;
}

/* Layout */

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5vw 10vh 5vw;
    background-color: var(--surface-color);
}

ul {
    margin-left: 2rem;
    line-height: 1.3;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--muted-text-color);
}

ul li {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background-color: var(--button-color);
    color: white;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

nav .logo {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: bold;
    color: white;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    position: relative;
    transition: color 0.3s ease;
    font-weight: normal;
}

nav a:hover {
    color: var(--secondary-color);
}

nav a::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 100%;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: white;
    border-radius: 2px;
}

/* Footer */
footer {
    background-color: var(--button-color);
    text-align: center;
    padding: 0 2rem;
    color: white;
    margin-top: auto;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
}

#legal-info {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background-color: var(--button-color);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2rem;
        margin-top: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border: var(--border-outline);
    }

    nav ul.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}
