/* =================== Header ==================== */
header {
    display: flex;
    height: 55px;
    width: 100%;
    max-width: 1420px;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 36px;

    z-index: 1000;

    background: transparent;
    padding: 30px 0;
    border-radius: 15px;
    transition: background 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, padding 0.3s ease-in-out;
}

header.header-active {
    background: var(--surface-2);
    backdrop-filter: blur(12px);
}

header a {
    text-decoration: none;
}

header .logo {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;
}

/* Navigation */
nav {
    display: flex;
    padding: 4px 4px 4px 15px;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;

    background: transparent;
    border: none;
    border-radius: 0;
}

.nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;

    color: var(--text-primary);
    font-family: Baskervville;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-bottom: 4px;

    transition: color 0.3s ease-in-out;
}

/* Ligne survol / active */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Bouton rejoindre */
.bouton-connect {
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;

    border-radius: 13px;
    background: transparent;
    border: 1px solid var(--accent-primary);

    color: var(--accent-strong);
    font-family: Baskervville;
    font-size: 25px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.bouton-connect:hover {
    background: var(--accent-primary-hover);
    border-color: var(--text-primary);
}


/* =================== Footer ==================== */
footer {
    display: flex;
    width: 100%;
    max-width: 1420px;
    padding-bottom: 21px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer a {
    text-decoration: none;
}

/* Grille 3 colonnes : logo | navigation | légales */
.footer-content {
    display: inline-grid;
    row-gap: 10px;
    column-gap: 80px;
    align-self: stretch;
    grid-template-rows: fit-content(100%) 1.00px;
    grid-template-columns: minmax(0,1fr) fit-content(100%) fit-content(100%);
}

.footer-content p {
    color: var(--text-primary);
    font-family: Baskervville;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    margin: 0;
}

.footer-content .footer-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    color: var(--text-secondary);
    font-family: Baskervville;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.footer-content .footer-link:hover {
    color: var(--text-primary);
}

/* Colonnes footer */
.footer-content .logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
}

.footer-content .nav {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    align-self: start;
    grid-row: 1 / span 1;
    grid-column: 2 / span 1;
}

.footer-content .legales {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    align-self: start;
    grid-row: 1 / span 1;
    grid-column: 3 / span 1;
}

/* Copyright */
.copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    align-self: stretch;

    color: var(--text-primary);
    font-family: Baskervville;
    font-weight: 400;
    font-style: normal;
    margin: 0;
}

.copyright h1 {
    font-size: 16px;
    line-height: 100%;
    margin: 0;
}

.copyright p {
    text-align: center;
    font-size: 12px;
    line-height: normal;
    margin: 0;
}