/* ============================================
   LAYOUT GLOBAL
   Espacement et structure à toutes les sections
   ============================================ */

section,
header,
footer {
    padding-inline: clamp(2rem, 8vw, 6.4rem);
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    scroll-margin-top: 25rem;
}

.wrapper {
    overflow: clip;
}

/* ============================================
   HEADER & NAVIGATION
   Barre sticky avec blur, logo, liens, hamburger mobile
   ============================================ */

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--color-accent);
    transform-origin: left;
    transform: scaleX(0);
    animation: progress linear;
    animation-timeline: scroll();
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10,10,10,0.6);
    backdrop-filter: blur(10px);
    padding: 0.2rem clamp(2rem, 8vw, 6.4rem);
}

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

.logo img {
    height: 18rem;
}

.nav-contact {
    display: none;
}

nav ul {
    display: flex;
    gap: 4rem;
}

nav ul li a {
    font-family: var(--font-inter);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-accent);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
}

/* ============================================
   FOOTER
   Barre basse : copyright, réseaux, mention technique
   ============================================ */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
    border-top: 1px solid #252525;
    margin-top: 0;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    flex: 1;
}

.footer-copyright .accent {
    font-style: normal;
}

.footer-socials {
    display: flex;
    gap: 2.4rem;
    flex: 1;
    justify-content: center;
}

.footer-socials a {
    font-family: var(--font-inter);
    font-size: var(--fs-mono);
    font-weight: var(--fw-semibold);
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-accent);
}

.footer-built {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    flex: 1;
    text-align: right;
}

.footer-built .accent {
    color: var(--color-accent);
    font-style: normal;
}
