/* ============================================================
   REMICHARVET.CH — CYBERGOTHIC BRUTALIST SYSTEM
   Recodé proprement · monochrome · Gotham/Helvetica bold vibe
   ============================================================ */

:root {
    --bg: #050505;
    --panel: rgba(12, 12, 12, 0.92);
    --panel-solid: #0d0d0d;
    --line: #3a3a3a;
    --line-strong: #666;
    --txt: #c8c8c8;
    --txt-dim: #8a8a8a;
    --white: #f2f2f2;
    --font-display: 'Gotham', 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-brutal: cubic-bezier(0.85, 0, 0.15, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    background-image: url("../logo/background10.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--txt);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection { background: var(--white); color: #000; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Curseur custom (desktop uniquement) ---- */
@media (hover: hover) and (pointer: fine) {
    body.has-crosshair, body.has-crosshair a, body.has-crosshair button,
    body.has-crosshair input, body.has-crosshair textarea { cursor: none; }
}

.crosshair {
    position: fixed;
    top: 0; left: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(1);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
                background 0.25s var(--ease-out), border 0.25s var(--ease-out);
    will-change: transform;
    display: none;
}

/* Hover : léger agrandissement, disque plein → effet négatif (mix-blend-mode: difference) */
.crosshair.is-hover {
    width: 34px; height: 34px;
}

/* Mode x-ray : le curseur s'efface pour laisser place au scanner */
.crosshair.xray-mode {
    opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
    .crosshair { display: block; }
}

/* ---- Overlays d'ambiance : grain + scanlines ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 3px,
        rgba(0, 0, 0, 0.12) 3px, rgba(0, 0, 0, 0.12) 4px
    );
}

/* ---- Transition de page (rideau à colonnes) ---- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    pointer-events: none;
}

.page-transition span {
    flex: 1;
    /* Liseré blanc aux deux extrémités : le front du rideau reste visible sur fond sombre */
    background: linear-gradient(to bottom,
        var(--white) 0px, var(--white) 3px,
        #000 3px, #000 calc(100% - 3px),
        var(--white) calc(100% - 3px), var(--white) 100%);
    border-right: 1px solid #222;
    transform: scaleY(0);
    transform-origin: top;
}

.page-transition.is-in span {
    transform-origin: bottom;
    animation: colOut 0.7s var(--ease-brutal) forwards;
}

.page-transition.is-out span {
    transform-origin: top;
    animation: colIn 0.55s var(--ease-brutal) forwards;
}

.page-transition.is-in span:nth-child(2), .page-transition.is-out span:nth-child(2) { animation-delay: 0.06s; }
.page-transition.is-in span:nth-child(3), .page-transition.is-out span:nth-child(3) { animation-delay: 0.12s; }
.page-transition.is-in span:nth-child(4), .page-transition.is-out span:nth-child(4) { animation-delay: 0.18s; }
.page-transition.is-in span:nth-child(5), .page-transition.is-out span:nth-child(5) { animation-delay: 0.24s; }

@keyframes colOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes colIn  { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Desktop : rideau en bandes horizontales qui balayent l'écran de gauche à droite
   (les colonnes verticales restent sur mobile, où elles fonctionnent bien) */
@media (min-width: 721px) {
    .page-transition { flex-direction: column; }

    .page-transition span {
        transform: scaleX(0);
        transform-origin: left;
        background: linear-gradient(to right,
            #000 0, #000 calc(100% - 4px),
            var(--white) calc(100% - 4px), var(--white) 100%);
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }

    .page-transition.is-in span {
        transform-origin: right;
        animation: rowOut 1.3s var(--ease-brutal) forwards;
    }

    .page-transition.is-out span {
        transform-origin: left;
        animation: rowIn 1s var(--ease-brutal) forwards;
    }

    /* Cascade plus ample sur desktop */
    .page-transition.is-in span:nth-child(2), .page-transition.is-out span:nth-child(2) { animation-delay: 0.1s; }
    .page-transition.is-in span:nth-child(3), .page-transition.is-out span:nth-child(3) { animation-delay: 0.2s; }
    .page-transition.is-in span:nth-child(4), .page-transition.is-out span:nth-child(4) { animation-delay: 0.3s; }
    .page-transition.is-in span:nth-child(5), .page-transition.is-out span:nth-child(5) { animation-delay: 0.4s; }
}

@keyframes rowIn  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rowOut { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---- Cadre principal ---- */
.frame {
    position: relative;
    z-index: 3;
    max-width: 1320px;
    margin: clamp(10px, 2.5vw, 32px) auto;
    padding: clamp(16px, 3vw, 42px);
    background: var(--panel);
    border: 2px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Coins brutalistes */
.frame::before, .frame::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid var(--line-strong);
    pointer-events: none;
}
.frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.frame::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* ---- Header ---- */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--line-strong);
    margin-bottom: clamp(30px, 5vw, 60px);
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-self: start;
}

.nav-link {
    position: relative;
    padding: 9px 14px;
    text-decoration: none;
    color: var(--txt);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out);
}

.nav-link:hover::before, .nav-link.active::before { transform: scaleX(1); transform-origin: left; }
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { border-color: var(--line); background: rgba(255, 255, 255, 0.04); }

.logo {
    justify-self: center;
    display: block;
    line-height: 0;
}

.logo img {
    width: clamp(100px, 10.5vw, 138px);
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.logo:hover img {
    content: url("../logo/logo-portfolio.png");
    transform: scale(1.06) rotate(-2deg);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.35));
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---- Boutons ---- */
.btn {
    position: relative;
    display: inline-block;
    padding: 12px 22px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--line-strong);
    overflow: hidden;
    transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(101%);
    transition: transform 0.4s var(--ease-brutal);
    z-index: -1;
}

.btn:hover { color: #000; border-color: var(--white); z-index: 1; }
.btn:hover::before { transform: translateY(0); }

/* ---- Hero ---- */
.hero { padding: clamp(10px, 3vw, 40px) 0 clamp(20px, 4vw, 50px); }

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--txt-dim);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-kicker::before {
    content: '';
    width: 40px; height: 1px;
    background: var(--line-strong);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.6rem, 9vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--white);
    word-break: break-word;
}

/* Outline : Space Grotesk (formes simples, contour propre sans bug de chevauchement) */
.outline {
    font-family: var(--font-body);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--txt);
    paint-order: stroke fill;
}

.hero-sub {
    margin-top: 22px;
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.4vw, 14px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--txt-dim);
}

/* ---- Entrée des titres à l'arrivée sur la page ----
   Délais calés sur la fin du rideau de transition (~0.6s),
   pour que l'animation soit visible et pas cachée derrière. */
.hero-kicker {
    animation: heroFadeUp 0.8s var(--ease-out) 0.55s both;
}

.hero-title > span {
    display: inline-block;
    will-change: transform, opacity;
    animation: heroRise 1.1s var(--ease-out) 0.65s both;
}

.hero-title > span:nth-of-type(2) { animation-delay: 0.78s; }
.hero-title > span:nth-of-type(3) { animation-delay: 0.91s; }

.hero-sub {
    animation: heroFadeUp 0.8s var(--ease-out) 1s both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(55px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ---- Marquee ---- */
.marquee {
    overflow: hidden;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    padding: 12px 0;
    margin: clamp(24px, 4vw, 50px) 0;
    user-select: none;
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee span {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--txt-dim);
    white-space: nowrap;
}

.marquee span:nth-child(even) {
    font-family: var(--font-body);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-strong);
    paint-order: stroke fill;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Grille catégories (home) ---- */
.top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--line);
    border: 2px solid var(--line);
    margin: clamp(30px, 5vw, 60px) 0;
}

.top-column {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel-solid);
    padding: clamp(20px, 3vw, 36px);
    text-decoration: none;
    color: var(--txt);
    overflow: hidden;
    transition: background 0.4s var(--ease-out);
}

.top-column .cat-index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--txt-dim);
    margin-bottom: 18px;
}

.top-column .cat-media {
    border: 2px solid var(--line);
    overflow: hidden;
    margin-bottom: 22px;
    position: relative;
}

.top-column .cat-media video,
.top-column .cat-media img {
    width: 100%; height: auto;
    transition: transform 0.8s var(--ease-out);
}

.top-column:hover .cat-media video,
.top-column:hover .cat-media img {
    transform: scale(1.05);
}

.top-column .cat-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.top-column .cat-name .arrow {
    font-family: var(--font-mono);
    transition: transform 0.4s var(--ease-out);
}

.top-column:hover { background: #141414; }
.top-column:hover .cat-name .arrow { transform: translateX(8px); }

.top-column::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-brutal);
}

.top-column:hover::after { transform: scaleX(1); }

/* ---- Intro / bloc "qui suis-je" ---- */
.intro {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    border: 2px solid var(--line);
    padding: clamp(28px, 4vw, 56px);
    margin: clamp(30px, 5vw, 60px) 0;
    overflow: hidden;
    background: var(--panel-solid);
}

.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../logo/gifbackground.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.22;
}

.intro > * { position: relative; }

.intro h2, .section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 22px;
}

.intro p { color: #ddd; max-width: 62ch; }

.intro .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--txt-dim);
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.intro .meta strong { color: var(--white); font-weight: 400; }

/* ---- Intro de page (texte seul) ---- */
.page-intro {
    max-width: 70ch;
    margin: 0 0 clamp(30px, 5vw, 56px);
    padding-left: 20px;
    border-left: 2px solid var(--line-strong);
    color: var(--txt);
}

/* ---- Groupes par client / collaboration ---- */
.client-group { margin-bottom: clamp(44px, 7vw, 80px); }

.client-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--line-strong);
    padding-bottom: 14px;
    margin-bottom: 28px;
}

.client-index {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--txt-dim);
}

.client-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.3rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin: 0;
}

.client-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--txt-dim);
    margin-left: auto;
}

@media (max-width: 720px) {
    .client-meta { margin-left: 0; width: 100%; }
}

/* ---- Grille projets ---- */
.work-grid {
    display: grid;
    /* auto-fill (et non auto-fit) : une carte seule garde la largeur d'une colonne au lieu de s'étirer */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(20px, 3vw, 36px);
    margin-bottom: clamp(40px, 6vw, 70px);
}

.work-card {
    position: relative;
    border: 2px solid var(--line);
    background: var(--panel-solid);
    padding: 18px 18px 26px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}

.work-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }

.work-card .work-index {
    position: absolute;
    top: -14px; right: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--txt-dim);
}

/* Images à leur taille originale, jamais recadrées, toujours en couleur */
.work-image-wrapper {
    overflow: hidden;
    border: 1px solid var(--line);
    margin-bottom: 20px;
}

.work-image-wrapper img {
    width: 100%; height: auto;
    transition: transform 0.9s var(--ease-out);
}

.work-card:hover .work-image-wrapper img {
    transform: scale(1.04);
}

.work-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 12px;
}

.work-desc { font-size: 14px; color: var(--txt); margin-bottom: 16px; flex-grow: 1; }

.work-tags {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--txt-dim);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.work-card .btn { margin-top: 18px; align-self: flex-start; }

/* ---- Galerie photo ---- */
.gallery {
    columns: 3;
    column-gap: 14px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border: 2px solid var(--line);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.03); }

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid var(--line-strong);
    transform: scale(0.96);
    transition: transform 0.4s var(--ease-out);
}

.lightbox.open img { transform: scale(1); }

.lightbox .lb-close {
    position: absolute;
    top: 20px; right: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--white);
    background: none;
    border: 1px solid var(--line-strong);
    padding: 10px 16px;
}

/* ---- Profil / X-ray ---- */
.profil-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
    margin-bottom: clamp(40px, 6vw, 70px);
}

.image-holder {
    position: relative;
    border: 2px solid var(--line);
    overflow: hidden;
}

.image-holder img { width: 100%; height: auto; }

/* X-ray : version originale — dégradé doux + fondu smooth */
.image-holder .photo-img-xray {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 30%, transparent 100%);
    mask-image: radial-gradient(circle 90px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 30%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-holder:hover .photo-img-xray { opacity: 1; }

.image-holder {
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.image-holder:hover {
    transform: scale(1.02);
    border-color: var(--line-strong);
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.12), inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.xray-hint {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--txt-dim);
    text-align: center;
}

.profil-text p { margin-bottom: 18px; }
.profil-text strong { color: var(--white); }

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.skill-list li {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    padding: 7px 12px;
    color: var(--txt-dim);
    transition: color 0.3s, border-color 0.3s;
}

.skill-list li:hover { color: var(--white); border-color: var(--line-strong); }

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2px;
    background: var(--line);
    border: 2px solid var(--line);
    margin-bottom: clamp(40px, 6vw, 70px);
}

.contact-info, .contact-form { background: var(--panel-solid); padding: clamp(24px, 4vw, 44px); }

.contact-item { margin-bottom: 24px; }

.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--txt-dim);
    margin-bottom: 6px;
}

.contact-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--white);
    text-decoration: none;
    word-break: break-all;
}

a.contact-value:hover { text-decoration: underline; }

.form-group { position: relative; margin-bottom: 26px; }

.cyber-form input, .cyber-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--line);
    padding: 12px 2px;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.05em;
    resize: vertical;
    transition: border-color 0.3s;
}

.cyber-form input:focus, .cyber-form textarea:focus {
    outline: none;
    border-color: var(--white);
}

.cyber-form input::placeholder, .cyber-form textarea::placeholder {
    color: var(--txt-dim);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
}

.cyber-form .btn { border-color: var(--white); }

/* ---- FAQ ---- */
.faq-section { margin-bottom: clamp(40px, 6vw, 70px); }

.faq-item {
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    padding: 22px 26px;
    margin-bottom: 14px;
    background: var(--panel-solid);
    transition: border-left-color 0.3s;
}

.faq-item:hover { border-left-color: var(--white); }

.faq-item h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 10px;
}

.faq-item p { font-size: 14px; }
.faq-item a { color: var(--txt); }

/* ---- Footer ---- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 2px solid var(--line-strong);
    padding-top: 26px;
    margin-top: clamp(30px, 5vw, 60px);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--txt-dim);
}

.footer .f-clock { color: var(--txt); }

/* ---- Reveals (scroll) ---- */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
}

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

/* ---- Glitch ---- */
.glitch { position: relative; display: inline-block; }

.glitch.is-glitching::before,
.glitch.is-glitching::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: inherit;
}

.glitch.is-glitching::before {
    transform: translate(3px, -2px);
    clip-path: inset(20% 0 55% 0);
    opacity: 0.75;
    animation: glitchShift 0.28s steps(2) infinite;
}

.glitch.is-glitching::after {
    transform: translate(-3px, 2px);
    clip-path: inset(60% 0 15% 0);
    opacity: 0.75;
    animation: glitchShift 0.32s steps(2) reverse infinite;
}

@keyframes glitchShift {
    0% { clip-path: inset(10% 0 70% 0); }
    50% { clip-path: inset(65% 0 8% 0); }
    100% { clip-path: inset(30% 0 45% 0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .top-grid { grid-template-columns: 1fr 1fr; }
    .gallery { columns: 2; }
    .intro { grid-template-columns: 1fr; }
    .intro .meta { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
    .profil-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .site-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        row-gap: 18px;
    }
    .logo { grid-column: 1; grid-row: 1; justify-self: start; }
    .header-right { grid-column: 2; grid-row: 1; align-self: center; }
    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        justify-content: space-between;
        border-top: 1px solid var(--line);
        padding-top: 14px;
        gap: 0;
    }
    .nav-link { font-size: 10.5px; padding: 8px 6px; letter-spacing: 0.12em; }
    .btn { padding: 10px 14px; font-size: 10.5px; }
    .top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .gallery { columns: 1; }
    .work-grid { grid-template-columns: 1fr; }
    .frame::before, .frame::after { display: none; }
}

/* ---- Accessibilité mouvement ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}


/* --- Fix fond : motif net répété + voile sombre (au lieu du cover étiré) --- */
body{background-image:linear-gradient(rgba(5,5,5,.5),rgba(5,5,5,.5)),url("../logo/background10.png");background-size:cover,600px auto;background-position:center,center;background-repeat:no-repeat,repeat;background-attachment:fixed,fixed;}
