/* assets/css/style.css */

/* ── Variables ── */
:root {
    --bg:        #F0EBE6;
    --dark:      #111111;
    --accent1:   #FF5C5C;
    --accent2:   #B8F03C;
    --accent3:   #f07e3c;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --radius:    16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #0d0d0d; }
body {
    background: var(--bg);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Grain overlay ── */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── Navigation ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(240, 235, 230, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(17,17,17,0.08);
}
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
    align-items: center;
}
.nav-links li {
    display: flex;
    align-items: center;
    line-height: 1;
}
.nav-links a {
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent1); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 2rem;
}
.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--accent2);
    color: var(--dark);
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-nav:hover { background: #d4f768; color: var(--dark); transform: translateY(-1px); }
.btn-nav--outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn-nav--outline:hover { background: var(--dark); color: var(--bg); }
.nav-user { font-size: 0.85rem; font-weight: 500; }

/* ── Main ── */
main { padding-top: 80px; }
.main--no-pad { padding-top: 0; }

/* ── Navbar transparente (home) ── */
.site-nav--home {
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    transition: background 0.4s ease, border-color 0.4s ease;
}
.site-nav--home .nav-logo,
.site-nav--home .nav-links a { color: rgba(255,255,255,0.9); }
.site-nav--home .nav-links a:hover { color: var(--accent2); }
.site-nav--home .btn-nav {
    background: var(--accent3);
    color: var(--dark);
    border: none;
}
.site-nav--home .btn-nav:hover { background: #fff; color: var(--dark); }
.site-nav--home.nav-scrolled {
    background: rgba(240,235,230,0.95);
    border-bottom: 1px solid rgba(17,17,17,0.08);
    backdrop-filter: blur(12px);
}
.site-nav--home.nav-scrolled .nav-logo,
.site-nav--home.nav-scrolled .nav-links a { color: var(--dark); }
.site-nav--home.nav-scrolled .nav-links a:hover { color: var(--accent1); }
.site-nav--home.nav-scrolled .btn-nav {
    background: var(--dark);
    color: var(--bg);
    border-color: var(--dark);
    backdrop-filter: none;
}

/* ── Texture noisy (utilitaire) ── */
.noisy-el {
    position: relative;
    overflow: hidden;
}
.noisy-el::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.10;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ── Étoile décorative hero ── */

/* SVG morphing noms */
.hero-mag__morph-svg {
    width: clamp(14rem, 47vw, 54rem);
    height: auto;
    display: block;
    overflow: visible;
    margin: 0 auto;
}
.hero-mag__morph-svg--b {
    width: clamp(23rem, 77vw, 88rem);
    margin-left: 6vw;
    margin-right: 0;
}

/* ── Hero Magazine (plein écran) ── */
.hero-mag {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-mag__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0c1810 0%, #162819 50%, #0a0f1c 100%);
    transform-origin: center;
}
.hero-mag__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
}
.hero-mag__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.38) 0%,
        rgba(0,0,0,0.10) 45%,
        rgba(0,0,0,0.60) 100%
    );
}
.hero-mag__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.14;
    mix-blend-mode: overlay;
    pointer-events: none;
}
/* Labels aux 4 coins */
.hero-mag__corner {
    position: absolute;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    line-height: 1.9;
    z-index: 10;
}
.hero-mag__corner span { display: block; }
.hero-mag__corner--tl { top: 5.5rem; left: 2.5rem; }
.hero-mag__corner--tr { top: 5.5rem; right: 2.5rem; text-align: right; }
.hero-mag__corner--bl { bottom: 3rem; left: 2.5rem; }
.hero-mag__corner--br { bottom: 3rem; right: 2.5rem; text-align: right; }
.hero-mag__corner a {
    color: var(--accent3);
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid currentColor;
    line-height: 1.2;
    padding-bottom: 1px;
}
/* Titre central */
.hero-mag__center {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
    will-change: transform, opacity;
}
.hero-mag__t1,
.hero-mag__t2 {
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 18rem);
    line-height: 0.84;
    text-transform: uppercase;
    display: block;
    will-change: transform, opacity;
}
.hero-mag__t2 {
    color: #fff;
    padding-left: 6vw;
}
/* Tags entre les deux noms */
.hero-mag__tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 0.55rem 0;
    will-change: opacity;
}
.hero-mag__tags span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    padding: 0.22rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 100px;
}
/* Indicateur scroll — mouse */
.hero-mag__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
}
.hero-mag__mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 13px;
    position: relative;
    flex-shrink: 0;
}
.hero-mag__mouse-dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-mag__scroll-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* CTA partagé */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--accent1);
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform var(--transition), background var(--transition);
    flex-shrink: 0;
}
.hero-cta:hover { background: #e03e3e; transform: translateY(-2px); }

@media (max-width: 768px) {
    .hero-mag__morph-svg { width: clamp(14rem, 90vw, 26rem); }
    .hero-mag__morph-svg--b { width: clamp(23rem, 90vw, 43rem); margin-left: 3vw; }
    .hero-mag__corner--tl, .hero-mag__corner--bl { left: 1.25rem; }
    .hero-mag__corner--tr, .hero-mag__corner--br { right: 1.25rem; }
    .hero-mag__tags { gap: 0.4rem; }
    .hero-mag__tags span { font-size: 0.58rem; padding: 0.18rem 0.6rem; }
}

/* ── Hamburger ── */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    color: inherit;
    position: relative;
    z-index: 202;
    flex-shrink: 0;
}
.nav-burger__line {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1),
                width 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    transform-origin: center;
}
.nav-burger__line:nth-child(1) { width: 26px; }
.nav-burger__line:nth-child(2) { width: 18px; }
.nav-burger.is-active .nav-burger__line:nth-child(1) {
    width: 24px;
    transform: translateY(4.5px) rotate(45deg);
}
.nav-burger.is-active .nav-burger__line:nth-child(2) {
    width: 24px;
    transform: translateY(-4.5px) rotate(-45deg);
}

/* ── Overlay plein écran ── */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow: hidden;
}
.nav-overlay__wave {
    position: absolute;
    inset: 0;
    will-change: transform;
}
.nav-overlay__wave--1 { background: #f5f5f2; }
.nav-overlay__wave--2 { background: #f0ece7; }
.nav-overlay__wave--3 { background: var(--bg); }
.nav-overlay__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 3rem 3rem;
    z-index: 10;
    overflow-y: auto;
}
.nav-overlay__links { display: flex; flex-direction: column; }
.nav-overlay__link {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    color: #0d2018;
    text-decoration: none;
    line-height: 1;
    padding: 0.18em 0;
    display: flex;
    align-items: baseline;
    gap: 0.35em;
    border-bottom: 1px solid rgba(13,32,24,0.08);
    transition: color 0.22s ease, padding-left 0.30s cubic-bezier(0.22,1,0.36,1);
}
.nav-overlay__link:last-child { border-bottom: none; }
.nav-overlay__link:hover {
    color: var(--accent1);
    padding-left: 0.5em;
}
.nav-overlay__num {
    font-family: var(--font-body);
    font-size: 0.20em;
    font-weight: 700;
    color: rgba(13,32,24,0.35);
    letter-spacing: 0.12em;
    align-self: flex-start;
    margin-top: 0.55em;
    flex-shrink: 0;
}
.nav-overlay__bottom {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-overlay__btn {
    padding: 0.65rem 1.8rem;
    background: var(--accent2);
    color: var(--dark);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
}
.nav-overlay__btn:hover { background: #d4f768; color: var(--dark); transform: translateY(-1px); }
.nav-overlay__btn--ghost {
    background: transparent;
    color: rgba(13,32,24,0.5);
    border: 1px solid rgba(13,32,24,0.18);
}
.nav-overlay__btn--ghost:hover {
    background: rgba(13,32,24,0.05);
    color: #0d2018;
    transform: none;
}
.nav-overlay__user { color: rgba(13,32,24,0.4); font-size: 0.88rem; }

/* Nav transparente quand overlay ouvert */
body.menu-open .site-nav {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
}
body.menu-open .site-nav .nav-logo { color: #0d2018; }
body.menu-open .nav-burger { color: #0d2018; }
body.menu-open { overflow: hidden; }

/* Responsive : affiche burger, cache liens */
@media (max-width: 900px) {
    .nav-burger  { display: flex; }
    .nav-links   { display: none; }
    .nav-actions { display: none; }
    .nav-overlay__inner { padding: 5rem 2rem 2.5rem; }
    .nav-overlay__link { font-size: clamp(2.8rem, 13vw, 5rem); }
}

/* ── Sections ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent1);
    margin-bottom: 0.5rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.9;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* ── Cartes de traces ── */
.traces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Grille projets (cards homepage) ── */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.projet-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--dark);
    display: block;
    position: relative;
    will-change: transform, opacity;
}
.projet-card--dark {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.projet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: inherit;
}
.projet-card__media {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee;
    display: block;
}
.projet-card__media--placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--accent1) 0%, #6c63ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: #fff;
}
.projet-card__body { padding: 1.5rem; }
.projet-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.6rem;
}
.projet-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    background: var(--accent2);
    border-radius: 100px;
    color: var(--dark);
}
.projet-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.projet-card__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

/* ── Grille images projets (/projets.php) ── */
.projets-img-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.projet-img-item {
    width: calc(33.333% - 0.67rem);
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    display: block;
    text-decoration: none;
    will-change: transform, opacity;
    flex-shrink: 0;
}
.projet-img-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    transition: transform 0.45s ease;
}
.projet-img-item__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent1) 0%, #6c63ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: #fff;
}
.projet-img-item__overlay {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.projet-img-item:hover .projet-img-item__overlay { opacity: 1; }

/* Cercle + flèche transparente */
.projet-img-item__overlay::after {
    content: '';
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.92)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    transform: scale(0.8);
    transition: transform 0.28s ease;
}
.projet-img-item:hover .projet-img-item__overlay::after {
    transform: scale(1);
}
@media (max-width: 768px) {
    .projet-img-item { width: calc(50% - 0.5rem); }
}
@media (max-width: 480px) {
    .projet-img-item { width: 100%; }
}

/* Stack badges */
.stack-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    background: #f0f0f0;
    border-radius: 6px;
    color: #555;
}
.stack-badge--lg {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
}
.stack-badge--dark {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
}

/* Filtres tag projets (ancienne page img-grid) */
.projet-tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.projet-tag-btn {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 2px solid var(--dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--dark);
    transition: background var(--transition), color var(--transition);
}
.projet-tag-btn:hover,
.projet-tag-btn.active {
    background: var(--dark);
    color: var(--bg);
}

/* ── Filtres client-side (liste éditoriale) ── */
.projets-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 3rem;
}
.projets-filter-btn {
    padding: 0.38rem 1rem;
    border-radius: 100px;
    border: 1.5px solid rgba(17,17,17,0.18);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.projets-filter-btn span {
    font-size: 0.68rem;
    background: rgba(17,17,17,0.08);
    border-radius: 100px;
    padding: 0.05rem 0.45rem;
    transition: background 0.2s;
}
.projets-filter-btn:hover,
.projets-filter-btn.active {
    background: var(--dark);
    color: var(--bg);
    border-color: var(--dark);
}
.projets-filter-btn:hover span,
.projets-filter-btn.active span {
    background: rgba(255,255,255,0.15);
}

/* ── Liste éditoriale projets ── */
.projets-liste {
    border-top: 1px solid rgba(17,17,17,0.1);
}
.projet-row {
    display: grid;
    grid-template-columns: 52px 1fr auto 44px;
    align-items: center;
    gap: 1.5rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid rgba(17,17,17,0.08);
    text-decoration: none;
    color: var(--dark);
    transition: color 0.22s;
    will-change: transform, opacity;
}
.projet-row:hover { color: var(--dark); }
.projet-row__num {
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.06em;
}
.projet-row__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.projet-row:hover .projet-row__title { transform: translateX(10px); }
.projet-row__tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.projet-row__tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    background: var(--accent2);
    border-radius: 100px;
    color: var(--dark);
}
.projet-row__arrow {
    font-size: 1.3rem;
    opacity: 0.25;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), opacity 0.25s;
    text-align: right;
}
.projet-row:hover .projet-row__arrow { transform: translateX(5px); opacity: 1; }
@media (max-width: 640px) {
    .projet-row { grid-template-columns: 36px 1fr 32px; gap: 0.75rem; }
    .projet-row__tags { display: none; }
    .projet-row__title { font-size: clamp(1.4rem, 6vw, 2rem); }
}

/* ── Floating image preview ── */
.projet-preview {
    position: fixed;
    top: 0; left: 0;
    width: 340px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
    z-index: 90;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.projet-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.projet-preview__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent1) 0%, #6c63ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 5rem;
    color: #fff;
}
@media (hover: none) { .projet-preview { display: none; } }
.trace-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--dark);
    display: block;
    position: relative;
}
.trace-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.035;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}
.trace-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    color: var(--dark);
}
.trace-card__media {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #eee;
    display: block;
}
.trace-card__media--placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--dark);
}
.trace-card__body { padding: 1.5rem; }
.trace-card__type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.trace-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.trace-card__meta { font-size: 0.8rem; color: #666; }

/* ── Filtres ── */
.filters-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    align-items: center;
}
.filters-bar select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--dark);
    border-radius: 100px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 2rem;
}
.filters-bar button {
    padding: 0.5rem 1.5rem;
    background: var(--dark);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.filters-bar button:hover { background: var(--accent1); }
.filters-bar a {
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ── Tooltips AC ── */
.ac-ref {
    display: inline-block;
    background: var(--accent2);
    color: var(--dark);
    padding: 0.1em 0.5em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}
.ac-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    width: 260px;
    text-align: left;
    z-index: 200;
    pointer-events: none;
    line-height: 1.4;
    white-space: normal;
}
.ac-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--dark);
}
.ac-ref:hover .ac-tooltip,
.ac-ref:focus .ac-tooltip { display: block; }
.ac-tooltip-title { font-weight: 700; margin-bottom: 0.25rem; display: block; }

/* ── Page Détail Trace ── */
.trace-detail-header {
    padding: 5rem 2rem 3rem;
    background: var(--dark);
    color: var(--bg);
}
.trace-detail-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    text-transform: uppercase;
}
.trace-detail-meta span {
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.trace-detail-body {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.argumentaire { font-size: 1.05rem; line-height: 1.8; }

/* Gallery multi-images */
.trace-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.trace-gallery__item { display: flex; flex-direction: column; }
.trace-gallery__media {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 300px;
    display: block;
    transition: opacity 0.2s;
}
.trace-gallery__link:hover .trace-gallery__media { opacity: 0.88; }
.trace-gallery__pdf {
    display: inline-flex;
    margin-top: 0.5rem;
}
.comments-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem 5rem;
}
.comment-item {
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.comment-author { font-weight: 700; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: #666; }
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark);
    border-radius: 12px;
    font-family: var(--font-body);
    resize: vertical;
    min-height: 100px;
    background: transparent;
}
.comment-form button {
    margin-top: 0.75rem;
    padding: 0.75rem 2rem;
    background: var(--dark);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    font-family: var(--font-body);
}
.comment-form button:hover { background: var(--accent1); }

/* ── Auth pages ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.auth-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1;
}
.auth-page .form-control {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    background: #fafafa;
    transition: border-color 0.2s;
}
.auth-page .form-control:focus {
    border-color: var(--dark);
    box-shadow: none;
    background: #fff;
}
.auth-page .btn-primary {
    background: var(--dark);
    border: none;
    border-radius: 100px;
    padding: 0.75rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: background var(--transition);
}
.auth-page .btn-primary:hover { background: var(--accent1); }

/* ── Contact ── */
.contact-form .form-control {
    border: 2px solid var(--dark);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    background: transparent;
    transition: border-color 0.2s;
}
.contact-form .form-control:focus {
    border-color: var(--accent1);
    box-shadow: none;
    background: #fff;
}
.contact-form label { font-weight: 600; margin-bottom: 0.4rem; }
.btn-submit {
    padding: 1rem 3rem;
    background: var(--dark);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--accent1); transform: translateY(-2px); }

/* ── Scroll reveal ── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-item {
    opacity: 0;
}

/* ── Transition de page ── */
.pt-outer {
    position: fixed;
    inset: 0;
    background: #0d0d0d;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}
html.pt-active .pt-outer { visibility: visible; }
.pt-inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    will-change: top, left, right, bottom, border-radius;
}
.pt-label {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 9vw, 5.5rem);
    color: var(--dark);
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;
}

/* ── Footer ── */
.site-footer {
    padding: 3rem 2rem;
    background: var(--dark);
    color: var(--bg);
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy { font-size: 0.9rem; opacity: 0.7; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
    color: var(--bg);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

/* ── À propos — skill bars ── */
.skill-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 100px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--accent1);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    visibility: hidden;
    opacity: 0;
}
.lightbox.is-open {
    visibility: visible;
}
.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    cursor: default;
    user-select: none;
    display: block;
}
.lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
    padding: 0.25rem 0.5rem;
}
.lightbox__close:hover { opacity: 1; }
