/* =============================================================
   PORTFOLIO — CLÉMENT HANOT (site statique)
   Palette :
     --rouge   #C1121F   rouge REC
     --noir    #0D0D0D   noir mat caméra
     --blanc   #F0F0F0   blanc texte
   Typo : DM Serif Display (titres) + Hepta Slab (corps) + JetBrains Mono (labels)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Hepta+Slab:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Palette — noir mat caméra */
    --rouge: #C1121F;
    --rouge-soft: #e04545;

    /* Noirs */
    --noir: #0D0D0D;
    --noir-soft: #1A1A1A;
    --noir-mid: #252525;
    --noir-border: #333333;

    /* Blancs */
    --blanc: #F0F0F0;
    --blanc-soft: #C0C0C0;

    /* Legacy — remappés vers la nouvelle palette */
    --menthe: #F0F0F0;
    --menthe-soft: #1C1C1C;
    --menthe-deep: #282828;
    --sage: #3A3A3A;
    --sage-dark: #2A2A2A;

    --ink: #0D0D0D;
    --paper: #141414;
    --line: rgba(255,255,255,.1);
    --line-soft: rgba(255,255,255,.06);
    --muted: rgba(240,240,240,.45);

    /* Typo */
    --font-display: 'DM Serif Display', 'Times New Roman', serif;
    --font-sans: 'Hepta Slab', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --container: 1480px;
    --gutter: clamp(20px, 4vw, 60px);
    --sidebar-w: 280px;

    /* Easing */
    --ease: cubic-bezier(.22,.61,.36,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
}

/* =========================
   RESET
   ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--rouge); color: var(--menthe); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--noir);
    color: var(--menthe);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; cursor: none; }
button { font-family: inherit; cursor: none; background: none; border: none; color: inherit; }
*, *::before, *::after { cursor: none !important; }

/* =========================
   BOX LAYOUT — sections encadrées
   ========================= */
.box-section {
    margin: 8px;
    border: 1px solid var(--line);
    position: relative;
    transition: border-color .3s ease;
}
/* Le header fixe ne prend pas de margin */
@media (max-width: 600px) {
    .box-section { margin: 4px; }
}

/* =========================
   CURSEUR PERSONNALISÉ
   ========================= */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    width: 28px; height: 28px;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot::before,
.cursor-dot::after {
    content: '';
    position: absolute;
    background: var(--blanc);
    border-radius: 1px;
}
.cursor-dot::before {
    width: 2px; height: 100%;
    left: 50%; top: 0;
    transform: translateX(-50%);
}
.cursor-dot::after {
    width: 100%; height: 2px;
    top: 50%; left: 0;
    transform: translateY(-50%);
}
.cursor-ring { display: none; }
@media (max-width: 900px), (hover: none) {
    *, *::before, *::after { cursor: auto !important; }
    .cursor-dot { display: none; }
}

/* =========================
   TRANSITION DE PAGE
   ========================= */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--noir);
    z-index: 9998;
    transform: translateY(100%);
    pointer-events: none;
}
.page-transition.active {
    animation: pageWipe .9s var(--ease-out) forwards;
}
@keyframes pageWipe {
    0%   { transform: translateY(100%); }
    50%  { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

/* =========================
   HEADER
   ========================= */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: background .3s var(--ease), backdrop-filter .3s var(--ease),
                padding .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(13,13,13,.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    border-bottom-color: var(--line);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
}
.btn-profile {
    background: transparent;
    border: none;
    padding: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -.01em;
    color: var(--menthe);
    transition: color .3s var(--ease);
    position: relative;
}
.btn-profile .dot { color: var(--rouge); }
.header.scrolled .btn-profile,
.header.scrolled .nav-links a { color: var(--menthe); }

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-links a {
    font-family: var(--font-sans);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--menthe);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color .3s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

@media (max-width: 820px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: .68rem; letter-spacing: .14em; }
    .btn-profile { font-size: 1.15rem; }
}

/* =========================
   HERO — workbygabin style
   ========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--noir);
    padding: 130px 0 70px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-img-left {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
    filter: grayscale(20%) contrast(1.08);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 50% 70%, rgba(0,0,0,.25) 0%, rgba(0,0,0,.7) 60%, var(--noir) 100%),
        linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
    color: var(--menthe);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Bandeau "top" du hero : eyebrow + meta latérale */
.hero-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(40px, 8vw, 100px);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(240,240,240,.55);
}
.hero-top .right { text-align: right; }
.hero-top .right span { display: block; line-height: 1.7; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(240,240,240,.6);
}
.hero-eyebrow::before {
    content: "";
    width: 36px; height: 1px;
    background: var(--rouge);
}

/* Nom monumental — workbygabin style */
.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(4.5rem, 18vw, 18rem);
    line-height: .82;
    letter-spacing: -.04em;
    color: var(--menthe);
    margin: 0;
    text-align: left;
    width: 100%;
}
.hero h1 .row {
    display: block;
    overflow: hidden;
    position: relative;
}
.hero h1 .row .word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1s var(--ease-out), opacity .6s ease;
}
.is-loaded .hero h1 .row .word { transform: translateY(0); opacity: 1; }
.is-loaded .hero h1 .row:nth-child(2) .word { transition-delay: .12s; }
.hero h1 .accent {
    color: var(--rouge);
    font-style: italic;
}
.hero h1 .stroke {
    color: transparent;
    -webkit-text-stroke: 2px var(--menthe);
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    font-style: normal;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: rgba(240,240,240,.65);
    margin: 36px 0 0;
    max-width: 640px;
    line-height: 1.55;
}

.hero-desc { display: none; }

/* Bandeau bas du hero : boutons Acad/Pro + indication scroll */
.hero-bottom {
    width: 100%;
    margin-top: clamp(40px, 6vw, 80px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.filter-buttons {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 14px 32px;
    border: 1px solid rgba(240,240,240,.25);
    background: transparent;
    color: var(--menthe);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.filter-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--rouge);
    transform: translateY(101%);
    transition: transform .4s var(--ease-out);
    z-index: -1;
}
.filter-btn:hover { border-color: var(--rouge); }
.filter-btn:hover::before { transform: translateY(0); }
.filter-btn.active {
    background: var(--rouge);
    color: var(--menthe);
    border-color: var(--rouge);
}

.hero-scroll-hint {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(240,240,240,.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.hero-scroll-hint::after {
    content: "";
    width: 50px; height: 1px;
    background: rgba(240,240,240,.5);
    transform-origin: left;
    animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
    0%   { transform: scaleX(0); }
    50%  { transform: scaleX(1); }
    100% { transform: scaleX(0); transform-origin: right; }
}

@media (max-width: 800px) {
    .hero { padding: 110px 0 60px; }
    .hero-top { font-size: .62rem; letter-spacing: .18em; }
    .hero-bottom { flex-direction: column; align-items: flex-start; }
    .filter-btn { padding: 12px 22px; font-size: .68rem; letter-spacing: .16em; }
    .hero-scroll-hint { display: none; }
}

/* =========================
   SECTION PROJETS — layout sidebar + grille
   ========================= */
.projects-section {
    background: var(--noir-soft);
    padding: 100px 0 0;
}
.projects-header {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto 60px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.projects-header .label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
}
.projects-header h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    line-height: .95;
    letter-spacing: -.02em;
    margin-top: 14px;
    color: var(--menthe);
}
.projects-header h2 em { font-style: italic; color: var(--rouge); }
.projects-count {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .14em;
}

/* Layout principal : sidebar + grille */
.projects-layout {
    width: 100%;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    align-items: start;
    gap: 0;
}

/* ----- SIDEBAR filtres (style Amazon) ----- */
.filters-sidebar {
    position: sticky;
    top: 88px;
    padding: 36px 36px 60px 6%;
    border-right: 1px solid var(--line);
    background: var(--noir-soft);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--noir-border) transparent;
}
.filters-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--noir-border); border-radius: 3px; }

.filters-sidebar h3 {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.filters-group { margin-bottom: 32px; }
.filters-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
}
.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    margin: 0 -10px;
    font-family: var(--font-sans);
    font-size: .92rem;
    font-weight: 400;
    color: var(--menthe);
    cursor: none;
    border-radius: 4px;
    transition: background .2s var(--ease), color .2s var(--ease);
    user-select: none;
}
.filter-link > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-link input[type="checkbox"] {
    width: 14px; height: 14px;
    accent-color: var(--rouge);
    cursor: none;
}
.filter-link:hover { background: var(--menthe-deep); color: var(--rouge); }
.filter-link.active {
    background: var(--rouge);
    color: var(--menthe);
}
.filter-link .count {
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .04em;
}
.filter-link.active .count { color: rgba(240,240,240,.7); }
.filter-reset {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: color .25s var(--ease), border-color .25s var(--ease);
}
.filter-reset:hover { color: var(--rouge); border-color: var(--rouge); }

/* ----- GRILLE des projets (Noah-Condamines : tuiles avec tags toujours visibles) ----- */
.projects {
    background: var(--noir);
    padding: 0;
    display: block;
    position: relative;
    overflow: visible;
}
.projects-grid {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    overflow: visible;
}

/* =========================
   CARTES PROJET — viseur caméra
   ========================= */
.project-card {
    position: relative;
    background-color: var(--noir);
    color: var(--menthe);
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.65);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
    cursor: none;
    transition: transform .5s var(--ease-out), z-index 0s, box-shadow .5s var(--ease-out);
    z-index: 1;
}
.project-card:hover {
    transform: scale(1.06);
    z-index: 20;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

/* Image de fond — floue par défaut, nette au hover */
.card-bg {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(.6);
    transition: filter .55s var(--ease-out), transform .55s var(--ease-out);
    z-index: 0;
}
.project-card:hover .card-bg {
    filter: blur(0px) brightness(.85);
    transform: scale(.93);
}

/* Vidéo de fond — même comportement que .card-bg */
.card-bg-video {
    position: absolute;
    inset: -8%;
    width: calc(100% + 16%);
    height: calc(100% + 16%);
    object-fit: cover;
    filter: blur(4px) brightness(.6);
    transition: filter .55s var(--ease-out), transform .55s var(--ease-out);
    z-index: 0;
    pointer-events: none;
}
.project-card:hover .card-bg-video {
    filter: blur(0px) brightness(.85);
    transform: scale(.93);
}

/* Voile gradient pour lisibilité de la barre méta */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.0) 0%,
        rgba(0,0,0,.0) 55%,
        rgba(0,0,0,.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Coins de cadrage — viseur caméra */
.vf-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--menthe);
    border-style: solid;
    z-index: 5;
    pointer-events: none;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .35s ease;
}
.vf-corner.vf-tl { top: 12px;  left: 12px;  border-width: 2px 0 0 2px; }
.vf-corner.vf-tr { top: 12px;  right: 12px; border-width: 2px 2px 0 0; }
.vf-corner.vf-bl { bottom: 52px; left: 12px;  border-width: 0 0 2px 2px; }
.vf-corner.vf-br { bottom: 52px; right: 12px; border-width: 0 2px 2px 0; }
.project-card:hover .vf-corner {
    width: 28px; height: 28px;
    border-color: #fff;
}

/* Indicateur REC */
.vf-rec {
    position: absolute;
    top: 14px;
    left: 42px;
    font-family: var(--font-mono);
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--rouge);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}
.vf-rec-dot {
    width: 6px; height: 6px;
    background: var(--rouge);
    border-radius: 50%;
    animation: recBlink 1.4s ease infinite;
}
@keyframes recBlink {
    0%, 45%  { opacity: 1; }
    50%, 95% { opacity: 0; }
    100%     { opacity: 1; }
}

/* Barre méta en bas — Année · Titre · Thème */
.vf-meta {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,.3);
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.vf-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border-right: 1px solid rgba(255,255,255,.15);
}
.vf-meta-item:last-child { border-right: none; }
.vf-meta-center { flex: 2; }
.vf-meta-label {
    font-family: var(--font-mono);
    font-size: .5rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(240,240,240,.4);
    line-height: 1;
}
.vf-meta-val {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 500;
    color: var(--menthe);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
a.vf-meta-val {
    text-decoration: none;
    transition: color .2s ease;
}
a.vf-meta-val:hover { color: var(--rouge); }

/* Supprimer les anciens styles de tag flottant */
.project-card .project-tag { display: none; }

/* Loading / empty state */
.projects-empty {
    grid-column: 1 / -1;
    padding: 80px 30px;
    text-align: center;
    color: rgba(240,240,240,.4);
    font-family: var(--font-mono);
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Responsive grille */
@media (max-width: 1100px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { aspect-ratio: 4 / 3; }
}

/* Sidebar responsive : passe en haut sur mobile */
@media (max-width: 980px) {
    .projects-layout { grid-template-columns: 1fr; }
    .filters-sidebar {
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 24px 6% 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 32px;
    }
    .filter-reset { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
    .filters-sidebar { grid-template-columns: 1fr; }
}

/* =========================
   STATS
   ========================= */
.stats-section {
    width: 100%;
    background: var(--noir);
    color: var(--menthe);
    padding: 110px 0;
}
.stats-inner {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.stat {
    border-left: 1px solid rgba(240,240,240,.15);
    padding: 8px 0 8px 28px;
}
.stat-number {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    color: var(--menthe);
    letter-spacing: -.03em;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.stat-number .plus { color: var(--rouge); font-style: italic; font-size: .6em; }
.stat-label {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(240,240,240,.45);
    line-height: 1.5;
}
@media (max-width: 900px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    .stats-section { padding: 60px 0; }
}

/* =========================
   TIMELINE
   ========================= */
.timeline-section {
    background: var(--noir-soft);
    padding: 120px 0;
}
.timeline-inner {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
}
.timeline-header { margin-bottom: 60px; }
.timeline-header .label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
}
.timeline-header h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.02em;
    margin-top: 14px;
    color: var(--menthe);
}
.timeline-header h2 em { font-style: italic; color: var(--rouge); }

.timeline {
    position: relative;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr 2fr;
    gap: 40px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    transition: background .35s var(--ease);
}
.timeline-item:hover { background: var(--menthe-deep); }
.timeline-year {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--rouge);
    line-height: 1;
}
.timeline-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--menthe);
}
.timeline-title small {
    display: block;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-top: 8px;
}
.timeline-desc {
    color: rgba(240,240,240,.65);
    line-height: 1.7;
    font-size: .98rem;
    max-width: 640px;
    font-family: var(--font-sans);
}
@media (max-width: 820px) {
    .timeline-item { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
    .timeline-year { font-size: 1.7rem; }
}


/* =========================
   FOOTER
   ========================= */
.footer {
    background: var(--noir);
    color: var(--menthe);
    padding: 110px 0 30px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "Contact";
    position: absolute;
    top: -20px; left: -10px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(8rem, 22vw, 22rem);
    line-height: 1;
    color: rgba(115,186,155,.08);
    letter-spacing: -.03em;
    pointer-events: none;
    user-select: none;
}
.footer-inner {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(240,240,240,.1);
    position: relative;
    z-index: 1;
}
.contact-section { text-align: left; }
.contact-title {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(240,240,240,.45);
    font-weight: 500;
    margin-bottom: 30px;
}
.contact-email {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--menthe);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: 14px;
    transition: color .3s var(--ease);
}
.contact-email:hover { color: var(--rouge); }
.contact-text {
    color: rgba(240,240,240,.5);
    font-size: .95rem;
    font-family: var(--font-mono);
    letter-spacing: .06em;
}
.socials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-self: end;
    margin-top: 30px;
}
.socials::before {
    content: "Suivre";
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(240,240,240,.4);
    margin-bottom: 6px;
}
.contact-icon {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--menthe);
    font-family: var(--font-sans);
    font-size: .9rem;
    letter-spacing: .04em;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-icon:hover { border-color: var(--menthe); color: var(--sage); }
.contact-icon img {
    width: 22px; height: 22px;
    object-fit: contain;
    filter: invert(1) grayscale(1) contrast(1);
    transition: filter .25s var(--ease), transform .25s var(--ease);
}
.contact-icon:hover img { transform: translateX(4px); }
.contact-icon::after { content: attr(data-label); }

.footer-bottom {
    width: 92%;
    max-width: var(--container);
    margin: 30px auto 0;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(240,240,240,.35);
    font-size: .76rem;
    font-family: var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-link {
    color: rgba(240,240,240,.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(240,240,240,.2);
    padding-bottom: 2px;
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.footer-link:hover { color: var(--menthe); border-color: var(--menthe); }

@media (max-width: 820px) {
    .footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .socials { justify-self: start; }
    .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* =========================
   PAGE PROJET (détail)
   ========================= */
.project-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: var(--noir);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0 0 80px;
}
.project-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.project-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.95) 100%);
    z-index: 1;
}
.project-hero .hero-inner {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--menthe);
    padding: 0 6%;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}
.project-hero .eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(240,240,240,.6);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.project-hero .eyebrow::before {
    content: "";
    width: 36px; height: 1px;
    background: var(--rouge);
}
.project-hero .project-title-big {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: .95;
    letter-spacing: -.02em;
    color: var(--menthe);
    text-shadow: 0 6px 30px rgba(0,0,0,.45);
    margin: 0 0 24px;
    max-width: 1100px;
}
.project-hero .project-title-big em { font-style: italic; }
.project-subtags {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 18px;
}
.tag {
    display: inline-block;
    background: transparent;
    color: var(--menthe);
    border: 1px solid rgba(240,240,240,.25);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.project-main {
    background: var(--noir-soft);
    color: var(--menthe);
    padding: 100px 0 120px;
}
.project-main .container {
    width: 92%;
    max-width: var(--container);
    margin: 0 auto;
}
.project-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 32px;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.project-back:hover { color: var(--rouge); border-color: var(--rouge); gap: 16px; }

.project-meta-bar {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.project-meta-bar .project-year { color: var(--rouge); font-weight: 500; }

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 0;
}
.project-right { display: flex; flex-direction: column; gap: 24px; }
.box {
    background: var(--noir-mid);
    color: var(--menthe);
    border-radius: 0;
    border: 1px solid var(--line);
    padding: 32px;
}
.description-box {
    background: transparent;
    border: none;
    padding: 0;
}
.box h3, .box h4 {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 20px 0;
}
.box-content {
    color: rgba(240,240,240,.82);
    line-height: 1.8;
    font-size: 1rem;
    font-family: var(--font-sans);
}
.description-box .box-content {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.55;
    color: var(--menthe);
}
.description-box .box-content::first-letter {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 4.8rem;
    line-height: .85;
    float: left;
    margin: 8px 14px 0 0;
    color: var(--rouge);
    font-style: italic;
}
.software-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.software-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--menthe);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: .95rem;
}
.software-list li:last-child { border-bottom: none; }
.software-list li::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--rouge);
    border-radius: 50%;
}
.apprentissage-box .box-content {
    white-space: pre-wrap;
    font-size: .98rem;
    font-family: var(--font-sans);
}
.links-box a, .links-full a {
    color: var(--rouge);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--rouge);
    padding-bottom: 2px;
}
.links-box a:hover, .links-full a:hover { color: var(--noir); border-color: var(--noir); }
.project-bottom-links {
    margin-top: 48px;
    display: flex;
    justify-content: flex-start;
}
.project-bottom-links .links-full {
    width: 100%;
    border-radius: 0;
    padding: 28px 32px;
    background: var(--noir);
    border: none;
    color: var(--menthe);
}
.project-bottom-links .box-content { color: var(--menthe); font-family: var(--font-sans); }
.project-bottom-links a {
    color: var(--menthe);
    background: transparent;
    margin-left: 16px;
    display: inline-block;
    border-bottom: 1px solid var(--menthe);
    padding-bottom: 2px;
}
.project-bottom-links strong {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(240,240,240,.5);
    font-weight: 500;
}
@media (max-width: 900px) {
    .project-grid { grid-template-columns: 1fr; gap: 30px; }
    .project-hero { min-height: 70vh; padding-bottom: 50px; }
    .description-box { padding: 0; }
    .project-bottom-links .links-full { padding: 18px; }
    .description-box .box-content { font-size: 1.15rem; }
    .description-box .box-content::first-letter { font-size: 3.4rem; }
}

/* =========================
   ANIMATIONS GÉNÉRIQUES
   ========================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].is-visible { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="scale"].is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
