/* ════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ════════════════════════════════════════════════
   VARIABLES
════════════════════════════════════════════════ */
:root {
    /* ── Palette : source unique de toutes les couleurs du site ───────── */
    --ink: #0B0C10;            /* texte principal et fonds sombres */
    --accent: #0055FF;         /* accent principal : liens, CTA, détails */
    --accent-2: #AAFF00;       /* accent secondaire : très ponctuel */
    --bg: #F9F9F9;             /* fonds clairs */
    --surface: #FFFFFF;        /* surfaces blanches, textes sur fonds sombres */
    --accent-hover: color-mix(in srgb, var(--accent) 82%, var(--ink));
    --on-accent: var(--surface);

    /* Métal argenté (boutons secondaires) et métal sombre (bouton actif du sélecteur), éclairés à 45° */
    --btn-silver: linear-gradient(135deg,
        color-mix(in srgb, var(--surface) 72%, var(--ink)) 0%,
        var(--surface) 20%,
        color-mix(in srgb, var(--surface) 80%, var(--ink)) 40%,
        color-mix(in srgb, var(--surface) 96%, var(--ink)) 58%,
        color-mix(in srgb, var(--surface) 70%, var(--ink)) 78%,
        var(--surface) 92%,
        color-mix(in srgb, var(--surface) 76%, var(--ink)) 100%);
    --btn-silver-shadow: inset 1px 1px 0 var(--surface),
        inset -1px -1px 0 color-mix(in srgb, var(--ink) 18%, transparent),
        0 4px 14px -6px color-mix(in srgb, var(--ink) 35%, transparent);
    --btn-dark-metal: linear-gradient(135deg,
        color-mix(in srgb, var(--ink) 86%, var(--surface)) 0%,
        var(--ink) 22%,
        color-mix(in srgb, var(--ink) 74%, var(--surface)) 40%,
        color-mix(in srgb, var(--ink) 84%, var(--surface)) 48%,
        var(--ink) 66%,
        color-mix(in srgb, var(--ink) 88%, var(--surface)) 100%);
    --btn-dark-shadow: inset 1px 1px 0 color-mix(in srgb, var(--surface) 25%, transparent),
        inset -1px -1px 0 color-mix(in srgb, var(--surface) 8%, transparent);

    /* Métal brillant éclairé à 45° : bandes claires et sombres, reflet net */
    --btn-metal: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 90%, var(--ink)) 0%,
        color-mix(in srgb, var(--accent) 94%, var(--surface)) 18%,
        color-mix(in srgb, var(--accent) 91%, var(--ink)) 34%,
        color-mix(in srgb, var(--accent) 92%, var(--surface)) 50%,
        var(--accent) 62%,
        color-mix(in srgb, var(--accent) 95%, var(--ink)) 80%,
        color-mix(in srgb, var(--accent) 95%, var(--surface)) 94%,
        color-mix(in srgb, var(--accent) 91%, var(--ink)) 100%);
    --btn-metal-shadow: inset 1px 1px 0 color-mix(in srgb, var(--surface) 55%, transparent),
        inset -1px -1px 0 color-mix(in srgb, var(--ink) 40%, transparent),
        0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent);

    /* Statuts du formulaire de contact (hors palette, réservés aux messages) */
    --success: #22C55E;
    --error: #EF4444;

    /* ── Alias utilisés par les feuilles de style ─────────────────────── */
    --blue: var(--accent);
    --blue-hover: var(--accent-hover);
    --blue-light: color-mix(in srgb, var(--accent) 5%, transparent);
    --white: var(--surface);
    --black: var(--ink);
    --grey: var(--bg);
    --grey-text: color-mix(in srgb, var(--ink) 68%, var(--bg));
    --grey-mid: color-mix(in srgb, var(--ink) 45%, var(--bg));
    --border: color-mix(in srgb, var(--ink) 10%, transparent);
    --border-blue: color-mix(in srgb, var(--accent) 15%, transparent);

    --hero-from: color-mix(in srgb, var(--accent) 14%, var(--ink));
    --hero-to: var(--ink);

    --font-title: 'Outfit', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --font-size-base: 18px;

    --radius: 12px;
    --max: 1080px;
}


/* ════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════ */
body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.65;
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
}

h1 {
    font-weight: 600;
}

p {
    color: var(--grey-text);
    font-weight: 400;
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}


/* ════════════════════════════════════════════════
   BOUTONS
════════════════════════════════════════════════ */

/* Primaire */
/* Secondaire */
@media (max-width: 600px) {
    .btn-primary,
}


/* ════════════════════════════════════════════════
   HEADER & SCROLL BEHAVIOR
════════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--ink) 42%, transparent);
    padding: 0 48px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--surface) 18%, transparent);
    backdrop-filter: blur(18px) saturate(180%);
    transition: transform 0.3s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            color-mix(in srgb, var(--surface) 35%, transparent),
            color-mix(in srgb, var(--surface) 5%, transparent));
    opacity: 0.6;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 125px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--grey-mid);
    text-decoration: none;
    transition: color .2s;
}

.nav-link:hover {
    color: var(--white);
}




/* ════════════════════════════════════════════════
   MENU BURGER & MOBILE MENU
════════════════════════════════════════════════ */
.menu-burger {
    display: none !important;
}

.mobile-sidebar,
.mobile-overlay {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 600px) {
    /* Footer mobile : une seule ligne dans 70px */
    .cta-section + footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 0 24px;
        text-align: left;
    }

    .cta-section + footer .footer-links {
        flex-direction: row;
        gap: 0;
    }

    .cta-section + footer .footer-links a {
        font-size: 13px;
    }

    .cta-section + footer .footer-copy {
        display: none;
    }
}

@media (max-width: 600px) {
    .menu-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        background: color-mix(in srgb, var(--ink) 42%, transparent);
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 101;
        border-radius: var(--radius);
        position: relative;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .menu-burger::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom,
                color-mix(in srgb, var(--surface) 35%, transparent),
                color-mix(in srgb, var(--surface) 5%, transparent));
        opacity: 0.6;
        border-radius: var(--radius);
        pointer-events: none;
        z-index: -1;
    }

    .menu-burger span {
        width: 100%;
        height: 2px;
        background: var(--white);
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-radius: 1px;
        position: relative;
        z-index: 1;
    }

    .menu-burger.active span {
        position: absolute;
        width: 55%;
        left: 22.5%;
        top: 50%;
        margin-top: -1px;
        transform-origin: center;
    }

    .menu-burger.active span:nth-child(1) {
        transform: translateY(-50%) rotate(45deg);
    }

    .menu-burger.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-burger.active span:nth-child(3) {
        transform: translateY(-50%) rotate(-45deg);
    }


    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: color-mix(in srgb, var(--ink) 42%, transparent);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        z-index: 100;
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow-y: auto;
    }

    .mobile-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom,
                color-mix(in srgb, var(--surface) 35%, transparent),
                color-mix(in srgb, var(--surface) 5%, transparent));
        opacity: 0.6;
        pointer-events: none;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    .mobile-sidebar-content {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .mobile-sidebar .logo {
        display: none;
    }

    .mobile-sidebar nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 72px 24px 0 24px;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: color-mix(in srgb, var(--ink) 50%, transparent);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99;
    }

    .mobile-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}


/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
footer {
    background: var(--hero-to);
    border-top: 1px solid color-mix(in srgb, var(--surface) 6%, transparent);
    padding: 36px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 125px;
}

.footer-logo img {
    display: block;
    height: 32px;
    max-height: 32px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: color-mix(in srgb, var(--surface) 80%, var(--ink));
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 16px;
    color: color-mix(in srgb, var(--surface) 20%, transparent);
}

/* Footer posé par-dessus le bas de la section CTA, semi-transparent (toutes les pages) */
:root {
    --footer-h: 70px;
}

.cta-section + footer {
    position: relative;
    z-index: 2;
    height: var(--footer-h);
    margin-top: calc(-1 * var(--footer-h));
    background: color-mix(in srgb, var(--ink) 55%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--surface) 12%, transparent);
}


/* ════════════════════════════════════════════════
   LAYOUT — CONTENT WRAPPER
════════════════════════════════════════════════ */
.content {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 48px;
}

section {
    padding: 84px 0;
}

section+section {
    border-top: 0;
}


/* ─── Section label ─────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}

.section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}

h2 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 20px;
}


/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 800px) {
    header {
        padding: 0 24px;
    }

    .content {
        padding: 0 24px;
    }

    footer {
        padding: 28px 24px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}


/* ════════════════════════════════════════════════
   BOUTONS — charte unique (toutes les pages)
   primaire : plein bleu · secondaire : contour
════════════════════════════════════════════════ */
.btn-primary,
.btn-secondary,
.btn-contact,
.btn-download-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}

.btn-primary,
.btn-contact {
    background: var(--btn-metal);
    border-color: var(--accent);
    color: var(--on-accent);
    box-shadow: var(--btn-metal-shadow);
}

.btn-primary:hover,
.btn-contact:hover {
    filter: brightness(1.08);
    border-color: var(--accent-hover);
}


.btn-secondary,
.btn-download-cv {
    background: var(--btn-silver);
    border-color: transparent;
    color: var(--ink);
    box-shadow: var(--btn-silver-shadow);
}

.btn-secondary:hover,
.btn-download-cv:hover {
    filter: brightness(1.04);
    color: var(--ink);
}

@media (max-width: 600px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Balayage de lumière sur le métal : transition aller-retour (entrée et sortie de la souris) */
.btn-primary,
.btn-contact,
.btn-secondary,
.btn-download-cv {
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: background-position .6s ease-out, background-color .2s, color .2s, border-color .2s;
}

.btn-primary:hover,
.btn-contact:hover,
.btn-secondary:hover,
.btn-download-cv:hover {
    background-position: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
.btn-contact,
.btn-secondary,
.btn-download-cv {
        transition: background-color .2s, color .2s, border-color .2s;
    }
}

/* Mobile : tous les CTA prennent toute la largeur de leur conteneur */
@media (max-width: 600px) {
    .btn-primary,
.btn-secondary,
.btn-contact,
.btn-download-cv {
        width: 100%;
        align-self: stretch;
    }
}

/* ════════════════════════════════════════════════
   REVEAL AU SCROLL — apparition douce (voir js/reveal.js)
════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity .45s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform .6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Reflet métallique toutes les 5 secondes sur les CTA primaires (couche séparée : n'interfère pas avec le survol) */
.btn-primary,
.btn-contact {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 35%,
        color-mix(in srgb, var(--surface) 45%, transparent) 50%,
        transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
    animation: cta-sheen 5s ease-in-out infinite;
}

@keyframes cta-sheen {
    0% {
        transform: translateX(-100%);
    }
    12% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::after,
    .btn-contact::after {
        animation: none;
        display: none;
    }
}

/* Mobile : titres h2 en graisse 500 */
@media (max-width: 600px) {
    h2 {
        font-weight: 500;
    }
}
