/* ==========================================================================
   WANDWERK — feuille de style principale
   Design « Atelier / Encre » (Direction A) porté depuis les maquettes validées.
   Polices auto-hébergées via assets/fonts/fonts.css (RGPD/LPD).
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #0b0b0d;
    --surface: #141417;
    --surface2: #1c1c20;
    --text: #f4f2ee;
    --muted: #908c84;
    --line: rgba(255,255,255,.09);
    --c1: #ff2d55;
    --c2: #ff7a18;
    --cyan: #00AEEF;
    --magenta: #EC008C;
    --yellow: #FFD400;
    --grad: linear-gradient(120deg, var(--c1), var(--c2));
    --radius: 18px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--c1); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Accessibilité : lien d'évitement */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 10001;
    background: var(--c1); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Grain / noise overlay */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
    0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
    40% { transform: translate(3%,-2%); } 60% { transform: translate(-2%,-3%); } 80% { transform: translate(4%,2%); }
}

/* Custom cursor spotlight */
.cursor-glow {
    position: fixed; top: 0; left: 0; z-index: 9998; width: 460px; height: 460px; border-radius: 50%;
    pointer-events: none; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,174,239,.12), rgba(236,0,140,.06) 40%, transparent 70%);
    mix-blend-mode: screen; opacity: 0; transition: opacity .4s; will-change: transform;
}
/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 10000;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow), var(--c1));
    box-shadow: 0 0 14px rgba(236,0,140,.6);
}
.display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.03em; line-height: 1.02; }

/* ---------- NAV ---------- */
nav {
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; padding: 1rem 2.4rem;
    background: rgba(11,11,13,.72); backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line);
}
.wordmark {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .04em;
    color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .55rem;
}
.wordmark .dotrow { display: inline-flex; gap: 3px; }
.wordmark .dotrow i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.wordmark .dotrow i:nth-child(1){ background: var(--cyan); }
.wordmark .dotrow i:nth-child(2){ background: var(--magenta); }
.wordmark .dotrow i:nth-child(3){ background: var(--yellow); }
nav .links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
nav .links a { color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
nav .links a:hover, nav .links a.active { color: var(--text); }
nav .right { display: flex; align-items: center; gap: 1rem; }

/* Sélecteur de langue (liens, 3 langues) */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 50px; background: var(--surface2); padding: 3px; }
.lang-switch a {
    font-family: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-decoration: none;
    color: var(--muted); padding: .3rem .6rem; border-radius: 50px; transition: color .2s, background .2s;
}
.lang-switch a.active { color: #fff; background: var(--grad); }
.lang-switch a:hover:not(.active) { color: var(--text); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-weight: 600; font-size: .85rem; letter-spacing: .01em;
    border: none; border-radius: 50px; cursor: pointer; text-decoration: none;
    padding: .7rem 1.5rem; transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,45,85,.34); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lg { padding: .95rem 2rem; font-size: .95rem; }
.btn-full { width: 100%; }
.magnetic { display: inline-block; will-change: transform; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 6rem 2.4rem 4rem; overflow: hidden; }
.mesh { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); }
.blob { position: absolute; border-radius: 50%; opacity: .55; mix-blend-mode: screen; will-change: transform; }
.blob.b1 { width: 46vw; height: 46vw; background: var(--magenta); top: -6%; left: -4%; }
.blob.b2 { width: 40vw; height: 40vw; background: var(--c2); top: 18%; right: -8%; opacity: .5; }
.blob.b3 { width: 34vw; height: 34vw; background: var(--cyan); bottom: -12%; left: 22%; opacity: .42; }
.blob.b4 { width: 22vw; height: 22vw; background: var(--yellow); top: 4%; right: 26%; opacity: .3; }
.halftone-layer {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.4px); background-size: 16px 16px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 0 rgba(255,45,85,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,45,85,.5)} 70%{box-shadow:0 0 0 12px rgba(255,45,85,0)} 100%{box-shadow:0 0 0 0 rgba(255,45,85,0)} }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 7.5vw, 6rem); letter-spacing: -0.04em; line-height: .98; margin-bottom: 1.6rem; max-width: 16ch; }
.hero h1 .grad, .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: clamp(1rem,1.5vw,1.22rem); color: var(--muted); max-width: 54ch; font-weight: 300; margin-bottom: 2.4rem; }
.hero .ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.scroll-cue { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--muted); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue .mouse { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-cue .mouse::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 3px; background: var(--text); animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,12px)} }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 7rem 2.4rem; }
.sec-head { margin-bottom: 3.2rem; max-width: 720px; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c2); margin-bottom: 1rem; display: block; }
.sec-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem,4.4vw,3.4rem); letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 1rem; }
.sec-head p { color: var(--muted); font-size: 1.05rem; font-weight: 300; }

/* ABOUT / MANIFESTO */
.manifesto { position: relative; overflow: hidden; }
.manifesto .wrap { padding-top: 8rem; padding-bottom: 8rem; }
.manifesto .halftone-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35; background-image: radial-gradient(var(--surface2) 1.6px, transparent 1.8px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.manifesto-inner { position: relative; z-index: 1; }
.manifesto .kicker { color: var(--cyan); }
.manifesto-statement { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem, 5.6vw, 4.6rem); letter-spacing: -.035em; line-height: 1.08; max-width: 18ch; margin-bottom: 2.4rem; }
.manifesto-statement em { font-style: normal; background: linear-gradient(120deg, var(--cyan), var(--magenta), var(--yellow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.manifesto-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; margin-top: 2rem; }
.manifesto-body p { color: var(--muted); font-size: 1.1rem; font-weight: 300; max-width: 50ch; }
.mani-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
.mani-stat .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); letter-spacing: -.03em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mani-stat .l { color: var(--muted); font-size: .8rem; letter-spacing: .04em; margin-top: .35rem; }

/* WORKFLOW (pinned horizontal) */
.workflow { background: var(--surface); position: relative; }
.workflow-head { max-width: 1180px; margin: 0 auto; padding: 7rem 2.4rem 0; }
.workflow-head .kicker { color: var(--cyan); }
.workflow-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem,4.4vw,3.4rem); letter-spacing: -.03em; line-height: 1.04; margin-bottom: 1rem; }
.workflow-head p { color: var(--muted); font-weight: 300; max-width: 46ch; }
.wf-progress { height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; margin-top: 2.5rem; max-width: 1180px; }
.wf-progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow), var(--c1)); transition: width .12s linear; }
.pin-track { height: 520vh; position: relative; }
.pin-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.pin-sticky::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.4px); background-size: 20px 20px; }
.pin-rail { display: flex; gap: clamp(1.5rem,4vw,3.4rem); will-change: transform; padding: 0 clamp(1.4rem,8vw,8rem); position: relative; z-index: 1; }
.wf-step { flex: 0 0 clamp(280px, 58vw, 520px); display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 2rem; }
.wf-step .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(5rem, 13vw, 10rem); line-height: .85; letter-spacing: -.05em; margin-bottom: 1.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-step:nth-child(2) .num { background: linear-gradient(120deg, var(--cyan), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-step:nth-child(3) .num { background: linear-gradient(120deg, var(--magenta), var(--yellow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-step:nth-child(4) .num { background: linear-gradient(120deg, var(--yellow), var(--c1)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-step:nth-child(5) .num { background: linear-gradient(120deg, var(--cyan), var(--magenta)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wf-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem,3.4vw,2.3rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: .7rem; }
.wf-step p { color: var(--muted); font-weight: 300; font-size: 1.02rem; max-width: 34ch; }
.wf-step .tick { width: 56px; height: 2px; background: var(--c2); margin-top: 1.6rem; opacity: .7; }

/* TECH */
.tech { background: var(--ink); position: relative; overflow: hidden; }
.tech .kicker { color: var(--magenta); }
.counters { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-bottom: 4rem; }
.counter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; position: relative; overflow: hidden; }
.counter::before { content: ''; position: absolute; top: -30%; right: -30%; width: 120px; height: 120px; border-radius: 50%; background: var(--grad); filter: blur(34px); opacity: .25; }
.counter .cv { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.2rem,4.6vw,3.2rem); letter-spacing: -.03em; line-height: 1; }
.counter .cv .unit { font-size: .5em; color: var(--muted); margin-left: .15em; -webkit-text-fill-color: var(--muted); }
.counter .cl { color: var(--muted); font-size: .84rem; margin-top: .5rem; }
.counter:nth-child(1) .cv { background: linear-gradient(120deg,var(--cyan),var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter:nth-child(2) .cv { background: linear-gradient(120deg,var(--magenta),var(--yellow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter:nth-child(3) .cv { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter:nth-child(4) .cv { background: linear-gradient(120deg,var(--yellow),var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.tech-feats { display: flex; flex-direction: column; gap: 1.2rem; }
.tech-feat { display: grid; grid-template-columns: 46px 1fr; gap: 1.2rem; align-items: start; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.tech-feat:last-child { border-bottom: 1px solid var(--line); }
.tech-feat .ti { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface2); position: relative; overflow: hidden; }
.tech-feat .ti svg { width: 24px; height: 24px; }
.tech-feat h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.12rem; font-weight: 600; margin-bottom: .25rem; }
.tech-feat p { color: var(--muted); font-size: .92rem; font-weight: 300; }
.printhead-demo { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px); background-size: 14px 14px; }
.printhead-demo .printed { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: radial-gradient(circle at 20% 30%, var(--magenta) 0 8px, transparent 9px) 0 0/26px 26px, radial-gradient(circle at 70% 60%, var(--cyan) 0 7px, transparent 8px) 0 0/30px 30px, linear-gradient(120deg, rgba(255,212,0,.22), rgba(0,174,239,.2)); }
.printhead-demo .head { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(180deg, var(--cyan), var(--magenta), var(--yellow)); box-shadow: 0 0 14px rgba(236,0,140,.7); }
.printhead-demo .head::after { content: ''; position: absolute; top: 8px; left: -10px; width: 24px; height: 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 3px; }
.printhead-demo .lbl { position: absolute; bottom: 12px; left: 14px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); z-index: 2; background: rgba(11,11,13,.55); padding: .3rem .6rem; border-radius: 50px; backdrop-filter: blur(4px); }

/* before/after slider */
.ba-wrap { margin-top: 4rem; }
.ba { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); user-select: none; touch-action: none; cursor: ew-resize; }
.ba .layer { position: absolute; inset: 0; }
.ba .blank { background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 30%), repeating-linear-gradient(90deg, #2a2a2e 0 2px, #26262a 2px 64px), #28282c; }
.ba .blank::after { content: ''; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(0,0,0,.25) 1px, transparent 1.5px); background-size: 7px 7px; }
.ba .blank .tag, .ba .printed-wall .tag { position: absolute; top: 14px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .3rem .7rem; border-radius: 50px; background: rgba(11,11,13,.6); backdrop-filter: blur(6px); }
.ba .blank .tag { right: 14px; color: var(--muted); }
.ba .printed-wall .tag { left: 14px; color: var(--yellow); }
.ba .printed-wall { clip-path: inset(0 50% 0 0); background: radial-gradient(circle at 18% 26%, var(--magenta) 0 22px, transparent 24px) 0 0 / 90px 90px, radial-gradient(circle at 62% 70%, var(--cyan) 0 18px, transparent 20px) 0 0 / 110px 110px, radial-gradient(circle at 82% 22%, var(--yellow) 0 14px, transparent 16px) 0 0 / 80px 80px, linear-gradient(120deg, #ff2d55, #ff7a18 45%, #00AEEF); }
.ba .printed-wall::after { content: ''; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .35; background-image: radial-gradient(rgba(0,0,0,.6) 1.4px, transparent 1.8px); background-size: 9px 9px; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); z-index: 5; background: linear-gradient(180deg, var(--cyan), var(--magenta)); }
.ba .handle .grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.ba .handle .grip::before { content: '‹ ›'; font-size: .9rem; letter-spacing: -2px; color: #fff; font-weight: 700; }
.ba-hint { color: var(--muted); font-size: .82rem; margin-top: .9rem; text-align: center; }

/* sectors strip / marquee */
.sectors-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.marquee { display: flex; gap: 3rem; padding: 1.6rem 0; white-space: nowrap; width: max-content; animation: scrollx 26s linear infinite; }
.marquee span { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem,3vw,2.4rem); font-weight: 600; letter-spacing: -.02em; color: var(--muted); display: inline-flex; align-items: center; gap: 3rem; }
.marquee span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c2); }
@keyframes scrollx { to { transform: translateX(-50%); } }
.sectors-strip:hover .marquee { animation-play-state: paused; }

/* gallery teaser */
.gallery-teaser { background: var(--surface); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.gallery-head h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2rem,4.4vw,3.4rem); letter-spacing: -.03em; }
.gallery-row { display: flex; gap: 1.2rem; overflow-x: auto; padding: .5rem .25rem 1.6rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--c1) var(--surface2); }
.gallery-row::-webkit-scrollbar { height: 8px; }
.gallery-row::-webkit-scrollbar-track { background: var(--surface2); border-radius: 50px; }
.gallery-row::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 50px; }
.gcard { flex: 0 0 340px; height: 440px; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; position: relative; border: 1px solid var(--line); transition: transform .35s; will-change: transform; text-decoration: none; color: var(--text); }
.gcard:hover { transform: translateY(-8px); }
.gcard img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1; }
.gcard .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(11,11,13,.92)); z-index: 2; }
.gcard .meta .tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c2); font-weight: 700; }
.gcard .meta h4 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; margin-top: .3rem; }
.gcard .meta .surf { font-size: .74rem; color: var(--muted); margin-top: .2rem; }

/* Placeholder mural CMYK (quand pas d'image) */
.mural-ph { position: absolute; inset: 0; z-index: 0; }
.mural-ph::after { content: ''; position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .4; background-image: radial-gradient(rgba(0,0,0,.55) 1.5px, transparent 2px); background-size: 10px 10px; }
.mural-ph.p0 { background: radial-gradient(circle at 25% 30%, var(--magenta) 0 30px, transparent 32px) 0 0/120px 120px, linear-gradient(135deg,#ff2d55,#ff7a18); }
.mural-ph.p1 { background: radial-gradient(circle at 70% 60%, var(--cyan) 0 26px, transparent 28px) 0 0/130px 130px, linear-gradient(135deg,#00AEEF,#0b0b0d); }
.mural-ph.p2 { background: radial-gradient(circle at 40% 40%, var(--yellow) 0 24px, transparent 26px) 0 0/110px 110px, linear-gradient(135deg,#FFD400,#ff2d55); }
.mural-ph.p3 { background: radial-gradient(circle at 60% 30%, var(--c2) 0 28px, transparent 30px) 0 0/120px 120px, linear-gradient(135deg,#1c1c20,#ff7a18); }
.mural-ph.p4 { background: radial-gradient(circle at 30% 60%, var(--magenta) 0 26px, transparent 28px) 0 0/120px 120px, linear-gradient(135deg,#00AEEF,#EC008C); }
.mural-ph.p5 { background: radial-gradient(circle at 70% 40%, var(--cyan) 0 24px, transparent 26px) 0 0/110px 110px, linear-gradient(135deg,#ff7a18,#0b0b0d); }

/* big cta band */
.cta-band { position: relative; overflow: hidden; background: var(--surface2); }
.cta-band .wrap { text-align: center; }
.cta-band h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(2.2rem,5.5vw,4.6rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 1.6rem; }
.cta-band .contactline { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0 2.4rem; color: var(--muted); }
.cta-band .contactline a { color: var(--text); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; }
.cta-band .contactline a:hover { color: var(--c2); }
.cta-band .bandblob { position: absolute; width: 50vw; height: 50vw; border-radius: 50%; background: var(--magenta); filter: blur(120px); opacity: .22; top: -20%; left: -10%; pointer-events: none; }
.cta-band .bandblob.two { background: var(--cyan); left: auto; right: -10%; top: auto; bottom: -25%; opacity: .18; }

/* footer */
footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 4rem 2.4rem 2.6rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
footer .wordmark { margin-bottom: 1rem; }
footer p, footer a { color: var(--muted); font-size: .88rem; font-weight: 300; text-decoration: none; }
footer a:hover { color: var(--text); }
footer h5 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; font-weight: 700; }
footer .col p { margin-bottom: .5rem; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 1.4rem 2.4rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-bottom p { font-size: .76rem; color: var(--muted); }

/* tilt + reveal */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .2s ease-out; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* Bandeau cookies */
.cookie-banner[hidden] { display: none !important; } /* l'attribut hidden doit primer sur display:flex */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10002; max-width: 720px; margin: 0 auto; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.cookie-banner p { font-size: .84rem; color: var(--muted); flex: 1 1 300px; }
.cookie-banner a { color: var(--cyan); text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: .6rem; }
.cookie-banner .btn { padding: .55rem 1.1rem; font-size: .8rem; }

/* Contenu générique (pages légales, confirmation) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 1rem; }
.prose h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p { color: var(--muted); margin-bottom: 1rem; font-weight: 300; }
.page-hero { padding: 8rem 2.4rem 2rem; max-width: 1180px; margin: 0 auto; }
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.4rem,6vw,4rem); letter-spacing: -.03em; }
.page-hero .eyebrow { margin-bottom: 1rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .manifesto-body { grid-template-columns: 1fr; gap: 2rem; }
    .counters { grid-template-columns: repeat(2,1fr); }
    .tech-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    nav { padding: .9rem 1.2rem; }
    nav .links { display: none; }
    .wrap { padding: 4.5rem 1.4rem; }
    .workflow-head { padding: 4.5rem 1.4rem 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .gcard { flex: 0 0 78vw; height: 380px; }
    .hero { padding: 4rem 1.4rem 3rem; min-height: 88vh; }
    .cursor-glow { display: none; }
    .mani-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 540px) { .counters { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
    .cursor-glow { display: none !important; }
    body::after { animation: none !important; }
    .pin-track { height: auto !important; }
    .pin-sticky { position: static; height: auto; padding: 2rem 0; display: block; }
    .pin-rail { flex-wrap: wrap; transform: none !important; padding: 0 1.4rem; flex-direction: column; }
    .wf-step { flex: 1 1 100%; padding: 1.4rem 0 1.4rem 1.8rem; }
    .wf-step .num { font-size: 4rem; }
}

/* ==========================================================================
   GALERIE — filtres, masonry, lightbox
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 1280px; margin: 0 auto 1.6rem; padding: 0 2rem; }
.filter-pill {
    font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 600; letter-spacing: .01em;
    color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: 50px;
    padding: .5rem 1.1rem; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.filter-pill:hover { color: var(--text); border-color: var(--text); }
.filter-pill.active { color: #fff; background: var(--grad); border-color: transparent; }

.gallery-masonry { max-width: 1280px; margin: 1rem auto 4rem; padding: 0 2rem; column-count: 3; column-gap: 1.1rem; }
@media (max-width: 960px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 600px) { .gallery-masonry { column-count: 1; } }
.gitem {
    break-inside: avoid; margin-bottom: 1.1rem; position: relative; border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--line); cursor: pointer; display: block;
    background: var(--surface2);
}
.gitem .visual { position: relative; width: 100%; }
.gitem .visual img { width: 100%; height: auto; display: block; opacity: 0; transition: opacity .5s; }
.gitem .visual img.loaded { opacity: 1; }
.gitem .mural-ph { position: relative; padding-top: 125%; }
.gitem .overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.3rem; background: linear-gradient(transparent 40%, rgba(11,11,13,.92));
    opacity: 0; transition: opacity .3s;
}
.gitem:hover .overlay { opacity: 1; }
.gitem .overlay .ttl { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 600; }
.gitem .overlay .loc { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.gitem .overlay .tech { margin-top: .5rem; }
.gitem .overlay .tech span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c2); font-weight: 700; }
.gallery-empty { max-width: 1280px; margin: 2rem auto; padding: 0 2rem; color: var(--muted); text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10005; background: rgba(6,6,8,.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lb-stage { position: relative; max-width: 1100px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-visual { position: relative; max-width: 100%; max-height: 74vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.lb-visual img { max-height: 74vh; width: auto; max-width: 100%; display: block; }
.lb-visual .mural-ph { width: min(70vw, 620px); padding-top: 60%; }
.lb-close, .lb-nav { position: absolute; background: rgba(20,20,23,.8); color: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: -3.2rem; right: 0; width: 44px; height: 44px; font-size: 1.4rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.8rem; z-index: 2; }
.lb-prev { left: -1rem; } .lb-next { right: -1rem; }
.lb-nav:hover, .lb-close:hover { background: var(--grad); border-color: transparent; }
.lb-cap { margin-top: 1.2rem; text-align: center; max-width: 640px; }
.lb-cap .ttl { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 600; }
.lb-cap .loc { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.lb-cap .tech { color: var(--c2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-top: .5rem; }
.lb-cap .desc { color: var(--muted); font-weight: 300; margin-top: .8rem; }
.lb-counter { color: var(--muted); font-size: .8rem; margin-top: .8rem; letter-spacing: .1em; }
@media (max-width: 720px) { .lb-prev { left: 0; } .lb-next { right: 0; } .lb-close { top: -3rem; } }

/* ==========================================================================
   CONTACT — grille formulaire + panneau, toast
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; max-width: 1180px; margin: 0 auto; padding: 0 2.4rem 5rem; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.panel h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin-bottom: .4rem; }
.panel .lead { color: var(--muted); font-weight: 300; margin-bottom: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--c1); }
.field input, .field select, .field textarea {
    font-family: inherit; font-size: .92rem; color: var(--text); background: var(--surface2);
    border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,174,239,.16); }
.field.error input, .field.error textarea { border-color: var(--c1); box-shadow: 0 0 0 3px rgba(255,45,85,.16); }
.field .err-msg { color: var(--c1); font-size: .78rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 1.4rem; }
.form-note { color: var(--muted); font-size: .78rem; margin-top: .7rem; text-align: center; }
.form-alert { background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.4); color: #ffb3c0; padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; font-size: .88rem; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.detail-card { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.detail-card .dl { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.detail-card .dv { margin-top: .3rem; font-weight: 500; }
.detail-card .dv a { color: var(--text); text-decoration: none; }
.detail-card .dv a:hover { color: var(--c2); }
.cal-embed { margin-top: 1.4rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cal-embed iframe { width: 100%; height: 560px; border: 0; display: block; }

/* Confirmation */
.confirm-wrap { max-width: 640px; margin: 0 auto; padding: 10rem 2.4rem 6rem; text-align: center; }
.confirm-wrap .check { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; margin-bottom: 1.5rem; }
.confirm-wrap h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem,5vw,3rem); margin-bottom: 1rem; }
.confirm-wrap p { color: var(--muted); font-weight: 300; margin-bottom: 2rem; }

/* ==========================================================================
   Slider avant/après avec vraies images + image machine
   ========================================================================== */
.ba .layer.has-img { background: #000; }
.ba .layer.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba .printed-wall.has-img { background: none; }
.ba .printed-wall.has-img::after { display: none; }

.machine-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.machine-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Popup de prise de rendez-vous
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 10006; background: rgba(6,6,8,.9); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal.open { display: flex; }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 1.8rem; position: relative; }
.modal-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin-bottom: .4rem; }
.modal-card .lead { color: var(--muted); font-weight: 300; margin-bottom: 1.4rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.modal-close:hover { background: var(--grad); border-color: transparent; }
.slot-day { margin-bottom: 1.2rem; }
.slot-day .day-lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c2); font-weight: 700; margin-bottom: .6rem; }
.slot-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot-btn { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .9rem; color: var(--text); background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: .55rem 1rem; cursor: pointer; transition: all .2s; }
.slot-btn:hover { border-color: var(--c2); }
.slot-btn.selected { background: var(--grad); border-color: transparent; color: #fff; }
.modal-foot { margin-top: 1.4rem; display: flex; gap: .6rem; }
.modal-hint { color: var(--muted); font-size: .82rem; margin-top: .8rem; }
.modal-alert { background: rgba(255,45,85,.12); border: 1px solid rgba(255,45,85,.4); color: #ffb3c0; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .86rem; }
