/* =========================================
   VARIABLES GLOBALES (Custom Properties)
   ========================================= */
:root {
    /* Couleurs */
    --bg-color: #15122c;
    --btn-color: #15122c;
    --btn-hover-color: #ffffff;
    --btn-text-hover-color: #14131c;
    --txt-color: #ffffff;
    
    /* Dégradés */
    --header-gradient: linear-gradient(to bottom, rgb(0, 0, 0) -10px, rgba(0, 0, 0, 0) 200px);

    /* Polices */
    --font-primary: "lft-etica", sans-serif;
    --font-secondary: "berthold-block-w1g-condensed", sans-serif;
    --font-tertiary: "lft-etica-compressed", sans-serif;
}

/* =========================================
   BASE & RESET
   ========================================= */
body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--txt-color);
    font-family: var(--font-primary);
}

/* Typographie de base */
h1 {
    color: var(--txt-color);
    font-size: 100px;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-style: normal;
    line-height: 7rem;
    margin: 0; /* Ajout d'un reset de marge pour éviter les débordements */
}

h2 {
    color: var(--txt-color);
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 400;
    font-style: normal;
    line-height: 2.4rem;
    margin: 0;
}

/* =========================================
   HEADER PRINCIPAL (.main-header)
   ========================================= */
.main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background: var(--header-gradient);
    height: 250px; 
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000; /* Valeur sécurisée pour passer par-dessus les autres éléments */
    pointer-events: none;
}

/* Réactivation des clics sur les éléments interactifs du header */
.main-header__home-link, 
.main-header__logo,
.main-nav {
    pointer-events: auto; 
    cursor: pointer;
}

.main-header__logo {
    width: 170px;
    height: 49px;
}

/* =========================================
   NAVIGATION (.main-nav)
   ========================================= */
.main-nav__list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0; /* Remplacement de margin-top pour un raccourci propre */
    gap: 40px;
}

.main-nav__link {
    text-decoration: none;
    color: var(--txt-color);
    font-family: var(--font-tertiary);
    font-size: 25px;
    transition: color 0.3s ease; /* Ajout d'une transition douce sur le texte */
}

.main-nav__link:hover {
    color: rgba(255, 255, 255, 0.7); /* Feedback visuel au survol */
}

@media (max-width: 768px) {
    .main-nav__list {
        gap: 20px;
    }

    .main-nav__link {
        font-size: 20px;
    }
}