/* Polices auto-hébergées (self-host) — aucune requête externe, aucun cookie */
@font-face {
    font-family: 'UnifrakturCook';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/UnifrakturCook-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/Outfit-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/Outfit-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/SpaceGrotesk-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/SpaceGrotesk-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/SpaceGrotesk-700.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body { overflow-x: hidden; }
body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

:root {
    --accent-color: #18a0fb;
    --surface-glass: rgba(15, 20, 28, 0.55);
    --text-color: #ecf3ff;
    --muted-color: #c5d3ea;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.02em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(24, 160, 251, 0.15), transparent 40%),
                linear-gradient(to bottom, rgba(4, 8, 15, 0.35), rgba(4, 8, 15, 0.55));
    pointer-events: none;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 96px;
    min-height: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content h1,
.content h2,
.content h3,
.content p {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 1px 0 #333;
}

.content h1 {
    font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem);
}

.triangle1 {
    z-index: -1;
    float: left;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 500px solid transparent;
    border-top: 300px solid white;
    position: fixed;
    top: 0;
    left: -50px;
}

.triangle2 {
    z-index: -1;
    float: right;
    width: 0;
    height: 0;
    border-left: 500px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 300px solid white;
    position: fixed;
    bottom: 0;
    right: -50px;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    font-family: 'UnifrakturCook', cursive;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 1.5rem;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-menu a:hover {
    color: #fff;
    background-color: rgba(24, 160, 251, 0.22);
}

.navbar-menu a.active {
    color: #fff;
    background-color: rgba(24, 160, 251, 0.28);
    border-bottom: 2px solid #18a0fb;
}

.navbar-menu a:focus-visible,
.navbar-toggle:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.4s;
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 1rem;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.footer-legal {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

.profile-card,
.projets-section,
.stage-section,
.veille-bloc,
.timeline-text,
.skill-block,
.pdf-container {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.footer-bottom {
    margin-top: 1rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablette */
@media (max-width: 1024px) {
    .content {
        max-width: 96vw;
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .navbar-container {
        padding: 1rem 1rem;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .content {
        padding-top: 86px;
        padding-left: 4vw;
        padding-right: 4vw;
        font-size: 1rem;
    }
    h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .navbar-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0.5rem;
    }
    .footer {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
    .triangle1,
    .triangle2 {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 58px;
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0.5rem 0;
    }

    .navbar-toggle {
        display: flex;
    }
}
