/* ==========================================================================
   Élémentium Studio — feuille de style du site public
   Palette tirée du logo : Feu (orange), Eau (bleu), Terre (vert), contour marine.
   ========================================================================== */

:root {
    --feu: #ff8a1f;
    --feu-2: #e8562a;
    --eau: #3ba3e0;
    --terre: #7cb342;
    --navy: #0b3a5b;
    --grad: linear-gradient(100deg, var(--feu) 0%, var(--feu-2) 22%, var(--eau) 55%, var(--terre) 100%);

    --bg: #05090d;
    --bg-2: #0a1219;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .1);
    --text: #eef2f5;
    --muted: #8fa0ad;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);

    --font-display: "Syne", system-ui, sans-serif;
    --font-body: "Manrope", system-ui, sans-serif;
    --radius: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --gutter: clamp(16px, 4vw, 48px);
}

[data-theme="light"] {
    --bg: #f6f1e7;
    --bg-2: #efe6d6;
    --surface: rgba(11, 58, 91, .04);
    --surface-2: rgba(11, 58, 91, .08);
    --border: rgba(11, 58, 91, .14);
    --text: #0b1b26;
    --muted: #56656f;
    --shadow: 0 30px 70px -35px rgba(11, 58, 91, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1rem/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--feu); color: #fff; }
:focus-visible { outline: 2px solid var(--eau); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(90px, 12vw, 170px); position: relative; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6em;
    font: 600 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terre); box-shadow: 0 0 0 4px rgba(124, 179, 66, .2); animation: pulse 2s infinite; }
.hero__eyebrow::before { display: none; }

.section-title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 700; max-width: 16ch; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.section-head--row .section-title { margin-bottom: .2em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); }
.lead strong { color: var(--feu); font-weight: 600; }

.tag {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: .45em .9em; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border);
}

/* ---------------------------------------------------------------- Boutons */
.btn {
    --bg-btn: var(--surface-2);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: 1em 1.7em; border-radius: 99px; font-weight: 600; font-size: .95rem;
    background: var(--bg-btn); border: 1px solid var(--border); overflow: hidden; isolation: isolate;
    transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
    transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: transparent; }
.btn--primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--small { padding: .7em 1.3em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface); font-size: 1.05rem;
    transition: background .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); transform: rotate(-20deg); }

/* ---------------------------------------------------------------- Préchargement */
.preloader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: var(--bg); transition: clip-path 1s var(--ease);
    clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
html:not(.js) .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__logo { width: 92px; height: 92px; border-radius: 50%; animation: spin 3s linear infinite; }
.preloader__bars { display: flex; gap: 6px; }
.preloader__bars span { width: 46px; height: 3px; border-radius: 3px; transform-origin: left; animation: bar 1.2s var(--ease) infinite alternate; }
.preloader__bars .feu { background: var(--feu); }
.preloader__bars .eau { background: var(--eau); animation-delay: .15s; }
.preloader__bars .terre { background: var(--terre); animation-delay: .3s; }
.preloader__count { font: 700 clamp(2.5rem, 8vw, 5rem)/1 var(--font-display); letter-spacing: -.04em; }

/* ---------------------------------------------------------------- Curseur, grain, progression */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--feu); }
.cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--text); opacity: .5;
    display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, opacity .3s;
}
.cursor__label { font: 700 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .9; }
.cursor.is-label .cursor__ring { width: 90px; height: 90px; margin: -45px 0 0 -45px; background: var(--feu-2); border-color: transparent; opacity: 1; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }

.grain {
    position: fixed; inset: -50%; z-index: 9990; pointer-events: none; opacity: .05;
    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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1s steps(4) infinite;
}
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------------- Navigation */
.nav {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; margin-inline: auto;
    width: min(1320px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 10px 10px 10px 18px; border-radius: 99px; border: 1px solid transparent;
    transition: background .4s, border-color .4s, transform .5s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); border-color: var(--border); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-140%); }
.nav__brand { display: flex; align-items: center; gap: 12px; font: 700 1.05rem/1 var(--font-display); }
.nav__brand img { width: 38px; height: 38px; border-radius: 50%; transition: transform .8s var(--ease); }
.nav__brand:hover img { transform: rotate(360deg); }
.nav__brand em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: .3em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; padding: .6em 1em; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 99px; transition: color .3s, background .3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--text); position: relative; z-index: 1002; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--bg); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 999; background: var(--bg-2); display: flex; flex-direction: column; justify-content: space-between;
    padding: 110px var(--gutter) 40px; clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
.menu__links { display: grid; gap: 4px; }
.menu__links a { font: 700 clamp(2.2rem, 9vw, 4rem)/1.1 var(--font-display); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .6s var(--ease), color .3s; }
.menu__links a small { font: 500 .8rem var(--font-body); color: var(--muted); }
.menu__links a:hover { color: var(--feu); }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s; } .menu-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .15s; } .menu-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .25s; } .menu-open .menu__links a:nth-child(7) { transition-delay: .3s; }
.menu__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); }

.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--text); color: var(--bg); transform: translateY(-3px); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; min-height: max(100svh, 640px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: -5%; background-size: cover; background-position: center; opacity: .16; filter: saturate(1.2) blur(2px); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 50%, transparent 0%, var(--bg) 75%), linear-gradient(to bottom, transparent 70%, var(--bg)); pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin-inline: auto; padding: 120px var(--gutter) 80px; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__title { font-size: clamp(2rem, 7.2vw, 8.6rem); white-space: nowrap; font-weight: 800; line-height: .88; letter-spacing: -.055em; margin: 0 0 .25em; text-transform: uppercase; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line--outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); padding-left: clamp(0px, 6vw, 110px); }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__lead { font-size: clamp(1.15rem, 2.2vw, 1.7rem); max-width: 34ch; margin-bottom: 2rem; color: var(--muted); }
.hero__lead .typed { color: var(--text); font-weight: 600; }
.typed-caret { color: var(--feu); animation: blink .8s infinite; margin-left: 2px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__side { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; display: grid; gap: 14px; }
.hero__side a { color: var(--muted); font-size: 1.1rem; transition: color .3s, transform .3s; }
.hero__side a:hover { color: var(--text); transform: translateX(-4px); }
.hero__elements { position: absolute; left: var(--gutter); bottom: 34px; z-index: 2; display: flex; gap: 22px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero__elements .feu { color: var(--feu); } .hero__elements .eau { color: var(--eau); } .hero__elements .terre { color: var(--terre); }
.hero__scroll { position: absolute; left: 50%; bottom: 30px; z-index: 2; width: 26px; height: 42px; border: 1.5px solid var(--muted); border-radius: 20px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--text); border-radius: 3px; animation: scrollDot 1.8s var(--ease) infinite; }

/* ---------------------------------------------------------------- Bandeau défilant */
.marquee { padding-block: 26px; border-block: 1px solid var(--border); overflow: hidden; background: var(--bg-2); }
.marquee__row { display: flex; }
.marquee__track { display: flex; align-items: center; gap: 34px; padding-right: 34px; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.marquee__track span { font: 700 clamp(1.8rem, 4.5vw, 3.6rem)/1 var(--font-display); letter-spacing: -.03em; }
.marquee__track span:nth-of-type(3n+1) { color: transparent; -webkit-text-stroke: 1px var(--text); }
.marquee__track i { font-size: 1.6rem; color: var(--feu); }
.marquee__track i:nth-of-type(3n+2) { color: var(--eau); } .marquee__track i:nth-of-type(3n) { color: var(--terre); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------------------------------------------------------------- À propos */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__visual { perspective: 1200px; }
.about__frame { position: relative; border-radius: calc(var(--radius) * 1.5); transform-style: preserve-3d; }
.about__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: inherit; box-shadow: var(--shadow); }
.about__badge { position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; display: grid; place-items: center; transform: translateZ(60px); }
.about__badge img { width: 70px; height: 70px; border-radius: 50%; }
.about__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.about__badge text { font: 700 12.5px var(--font-body); letter-spacing: 3px; fill: var(--text); }
.about__badge::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); z-index: -1; border: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--border); }
.stat strong { display: block; font: 700 clamp(2rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 8px; }
.stat:nth-child(1) strong { color: var(--feu); } .stat:nth-child(2) strong { color: var(--eau); } .stat:nth-child(3) strong { color: var(--terre); }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- Univers : panneaux horizontaux */
.elements { position: relative; padding-top: clamp(90px, 12vw, 160px); }
.elements__intro { margin-bottom: 40px; }
.elements__pin { height: 100vh; overflow: hidden; perspective: 1600px; }
.elements__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.element-panel { --c: var(--feu); position: relative; width: 100vw; height: 100%; display: grid; place-items: center; padding: 0 var(--gutter); overflow: hidden; transform-style: preserve-3d; }
.element-panel--eau { --c: var(--eau); }
.element-panel--terre { --c: var(--terre); }
.element-panel__inner {
    position: relative; z-index: 1; width: min(1200px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
    padding: clamp(28px, 4vw, 56px); border-radius: calc(var(--radius) * 1.6); border: 1px solid var(--border);
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, transparent), var(--surface) 60%);
    backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
.element-panel__num { font-size: .8rem; letter-spacing: .2em; color: var(--muted); }
.element-panel h3 { font-size: clamp(2.6rem, 6vw, 5rem); color: var(--c); margin: .2em 0 .1em; display: flex; align-items: center; gap: .25em; }
.element-panel__verb { font: 600 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--font-display); margin-bottom: 1em; }
.element-panel ul { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.element-panel li { padding: .45em 1em; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); font-size: .85rem; }
.element-panel__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.4; box-shadow: 0 0 0 1px var(--border), 0 40px 80px -30px color-mix(in srgb, var(--c) 60%, transparent); }
.element-panel__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.element-panel__giant {
    position: absolute; left: 50%; bottom: -.18em; transform: translateX(-50%); z-index: 0; pointer-events: none;
    font: 800 clamp(8rem, 30vw, 28rem)/1 var(--font-display); letter-spacing: -.06em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap;
}

/* ---------------------------------------------------------------- Expertise */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.service-card {
    --c: var(--feu);
    position: relative; padding: 38px 32px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, background .4s; min-height: 270px;
}
.el-eau { --c: var(--eau); } .el-terre { --c: var(--terre); } .el-feu { --c: var(--feu); }
.service-card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.service-card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--c) 35%, transparent), transparent 55%); }
.service-card:hover .service-card__glare { opacity: 1; }
.service-card__num { position: absolute; top: 26px; right: 28px; font: 700 .85rem var(--font-display); color: var(--muted); }
.service-card__icon { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; font-size: 1.6rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 28px; transform: translateZ(40px); transition: transform .5s var(--ease); }
.service-card:hover .service-card__icon { transform: translateZ(60px) rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.45rem; transform: translateZ(30px); }
.service-card p { color: var(--muted); margin: 0; transform: translateZ(20px); }

/* ---------------------------------------------------------------- Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: .65em 1.3em; border-radius: 99px; border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .35s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------------------------------------------------------------- Portfolio */
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 18px; }
.work { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.work:nth-child(7n+1) { grid-row: span 2; }
.work:nth-child(7n+4) { grid-column: span 2; }
.work.is-hidden { display: none; }
.work__open { position: absolute; inset: 0; width: 100%; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.work:hover img { transform: scale(1.08); filter: saturate(1.2); }
.work figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent); color: #fff;
    transform: translateY(30%); opacity: 0; transition: transform .6s var(--ease), opacity .5s;
}
.work:hover figcaption, .work:focus-within figcaption { transform: none; opacity: 1; }
.work figcaption h3 { font-size: 1.3rem; margin: .6em 0 .2em; }
.work figcaption p { margin: 0; font-size: .9rem; opacity: .8; }
.work .tag { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }

/* ---------------------------------------------------------------- Vidéos */
.videos .filters { margin-bottom: 36px; }
.videos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .5s var(--ease), border-color .4s; }
.video-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--feu) 50%, transparent); }
.video-card.is-hidden { display: none; }
.video-card--featured { grid-column: span 2; grid-row: span 2; }
.video-card--featured h3 { font-size: 1.8rem; }
.video-card__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.video-card--featured .video-card__thumb { aspect-ratio: 16/8.4; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.video-card:hover .video-card__thumb img { transform: scale(1.06); }
.video-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--muted); background: var(--grad); opacity: .35; }
.video-card__play {
    position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.35); transition: transform .5s var(--ease), background .3s;
}
.video-card__play::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); animation: ripple 2s infinite; }
.video-card:hover .video-card__play { transform: scale(1.15); background: var(--feu-2); }
.video-card__duration { position: absolute; right: 12px; bottom: 12px; padding: .2em .6em; border-radius: 6px; font-size: .78rem; font-weight: 600; background: rgba(0,0,0,.7); color: #fff; }
.video-card__info { padding: 20px 22px 18px; }
.video-card__info h3 { font-size: 1.2rem; margin: .7em 0 .6em; }
.video-card__meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .88rem; }
.like-btn, .share-btn { display: inline-flex; align-items: center; gap: .35em; color: var(--muted); transition: color .3s, transform .3s var(--ease); }
.like-btn:hover, .share-btn:hover { color: var(--text); }
.like-btn.is-liked { color: #ff4d6d; }
.like-btn.is-liked i::before { content: "\f415"; } /* bi-heart-fill */
.like-btn.pop { animation: pop .5s var(--ease); }
.share-btn { margin-left: auto; }

/* ---------------------------------------------------------------- Équipe */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.member { --c: var(--feu); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transform-style: preserve-3d; transition: border-color .4s; }
.member:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.member__photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transition: filter .7s, transform 1s var(--ease); }
.member:hover .member__photo img { filter: none; transform: scale(1.05); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--c) 55%, transparent), transparent 50%); opacity: 0; transition: opacity .5s; }
.member:hover .member__photo::after { opacity: 1; }
.member__initials { display: grid; place-items: center; height: 100%; font: 800 5rem var(--font-display); color: var(--c); background: var(--surface-2); }
.member__socials { position: absolute; left: 50%; bottom: 18px; z-index: 1; display: flex; gap: 8px; transform: translate(-50%, 30px); opacity: 0; transition: all .5s var(--ease); }
.member:hover .member__socials { transform: translate(-50%, 0); opacity: 1; }
.member__socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b1b26; }
.member__info { padding: 22px 24px 26px; transform: translateZ(30px); }
.member__info h3 { font-size: 1.3rem; margin-bottom: .3em; }
.member__role { display: block; color: var(--c); font-weight: 600; font-size: .9rem; margin-bottom: .8em; }
.member__info p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------------------------------------------------------------- Appel à l'action */
.cta { position: relative; padding-block: clamp(110px, 16vw, 220px); text-align: center; overflow: hidden; border-block: 1px solid var(--border); }
.cta .eyebrow::before { display: none; }
.cta__glow { position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, var(--feu), var(--eau), var(--terre), var(--feu)); filter: blur(120px); opacity: .18; border-radius: 50%; animation: spin 20s linear infinite; pointer-events: none; }
.cta__title { position: relative; font-size: clamp(2.6rem, 8vw, 7.5rem); font-weight: 800; letter-spacing: -.05em; max-width: 14ch; margin: 0 auto .6em; }
.cta__title .word { display: inline-block; }
.cta__button {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 170px; height: 170px; border-radius: 50%; background: var(--text); color: var(--bg); font: 700 1.1rem var(--font-display);
    transition: transform .5s var(--ease);
}
.cta__button i { font-size: 1.5rem; transition: transform .5s var(--ease); }
.cta__button:hover i { transform: rotate(45deg); }
.cta__button::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--muted); animation: spin 14s linear infinite; }

/* ---------------------------------------------------------------- Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list i { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--surface-2); color: var(--feu); }
.contact__list li:nth-child(2) i { color: var(--eau); } .contact__list li:nth-child(3) i { color: var(--terre); }
.contact__list strong { display: block; font-family: var(--font-display); }
.contact__list span, .contact__list a { display: block; color: var(--muted); }
.contact__list a:hover { color: var(--text); }
.contact__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 260px; }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
[data-theme="dark"] .contact__map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.3); }
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.contact__form { padding: clamp(24px, 4vw, 44px); position: sticky; top: 100px; }

/* Champs à libellé flottant */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: block; margin-bottom: 16px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 1.55em 1.1em .6em; font: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; outline: none; resize: vertical; transition: border-color .3s, background .3s; appearance: none;
}
.field select option { background: var(--bg-2); color: var(--text); }
.field--select::after { content: "\f282"; font-family: "bootstrap-icons"; position: absolute; right: 1.1em; top: 1.25em; pointer-events: none; color: var(--muted); }
.field span { position: absolute; left: 1.15em; top: 1.1em; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); font-size: .98rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--eau); background: var(--surface-2); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span { top: .5em; font-size: .72rem; letter-spacing: .04em; color: var(--eau); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff5d5d; }
.field__error { display: block; color: #ff6b6b; font-size: .8rem; margin-top: 6px; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; text-align: center; }
.form-status.is-success { color: var(--terre); }
.form-status.is-error { color: #ff6b6b; }

/* ---------------------------------------------------------------- Pied de page */
.footer { padding-top: clamp(70px, 9vw, 120px); background: var(--bg-2); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.5fr; gap: 40px; }
.footer__brand img { border-radius: 50%; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); max-width: 34ch; margin-bottom: 22px; }
.footer h4 { font-size: 1rem; margin-bottom: 1.2em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6em; }
.footer ul a { color: var(--muted); transition: color .3s, padding .3s; }
.footer ul a:hover { color: var(--text); padding-left: 6px; }
.footer p { color: var(--muted); }
.newsletter { position: relative; display: flex; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 0; padding: 1em 3.6em 1em 1.3em; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; outline: none; }
.newsletter input:focus { border-color: var(--eau); }
.newsletter button { position: absolute; right: 5px; top: 5px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.1rem; transition: transform .4s var(--ease); }
.newsletter button:hover { transform: rotate(-45deg); }
.newsletter .form-status { width: 100%; text-align: left; }
.footer__giant {
    font: 800 min(8.1vw, 6.8rem)/.85 var(--font-display); letter-spacing: -.06em; white-space: nowrap; text-transform: uppercase; text-align: center;
    margin: clamp(40px, 6vw, 80px) 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; user-select: none;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer__bottom i { margin-left: 3px; } .footer__bottom .bi-fire { color: var(--feu); } .footer__bottom .bi-droplet { color: var(--eau); } .footer__bottom .bi-tree { color: var(--terre); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 1.2rem; opacity: 0; transform: translateY(20px); transition: all .5s var(--ease); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; padding: .9em 1.5em; border-radius: 99px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); transition: transform .6s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; }

/* ---------------------------------------------------------------- Modales */
.modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 10, .82); backdrop-filter: blur(10px); }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; transition: transform .4s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.25); }

.lightbox { background: rgba(2, 6, 10, .94); backdrop-filter: blur(12px); }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); display: grid; gap: 18px; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__figure img { max-height: 74vh; width: auto; margin-inline: auto; border-radius: 16px; object-fit: contain; }
.lightbox__figure figcaption { color: #fff; text-align: center; }
.lightbox__figure h3 { font-size: 1.5rem; margin-bottom: .3em; }
.lightbox__figure p { color: rgba(255,255,255,.7); }
.lightbox__nav { position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); font-size: 1.2rem; transition: background .3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }

.player { padding-top: 76px; }
.player__box { position: relative; z-index: 1; width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); transform: translateY(30px) scale(.97); transition: transform .55s var(--ease); }
.player.is-open .player__box { transform: none; }
.player__screen { position: relative; aspect-ratio: 16/9; background: #000; }
.player__screen iframe, .player__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 26px 26px; }
.player__title { font-size: 1.6rem; margin: .6em 0 .3em; }
.player__desc { margin: 0; max-width: 60ch; }
.player__actions { display: flex; align-items: center; gap: 18px; }
.player__actions .share-btn { margin: 0; }

.submit__box { position: relative; z-index: 1; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(24px, 4vw, 40px); background: var(--bg-2); transform: translateY(30px); transition: transform .55s var(--ease); }
.submit.is-open .submit__box { transform: none; }
.submit__box .modal__close { background: var(--surface-2); color: var(--text); }
.submit__box h3 { font-size: 1.8rem; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); margin: 20px 0; }
.tab { flex: 1; padding: .7em; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .3s; }
.tab.is-active { background: var(--text); color: var(--bg); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.dropzone { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; margin-bottom: 16px; border: 1.5px dashed var(--border); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color .3s, background .3s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--eau); background: var(--surface); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone i { font-size: 2.2rem; color: var(--eau); }
.dropzone__name { font-size: .85rem; color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* ---------------------------------------------------------------- États d'animation (JS actif uniquement) */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .reveal-lines .rl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .reveal-lines .rl > span { display: inline-block; }

/* ---------------------------------------------------------------- Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bar { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(124, 179, 66, 0); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ripple { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes pop { 40% { transform: scale(1.35); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .nav__links { display: none; }
    .burger { display: block; }
    .services__grid, .team__grid { grid-template-columns: repeat(2, 1fr); }
    .videos__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; }
    .about__visual { max-width: 460px; }
    .about__badge { right: -10px; bottom: -30px; width: 130px; height: 130px; }
    .about__badge text { font-size: 15px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .work:nth-child(7n+4) { grid-column: span 1; }
    .contact__form { position: static; }
    .hero__side { display: none; }
    /* Univers : empilement vertical, sans épinglage */
    .elements__pin { height: auto; overflow: visible; perspective: none; }
    .elements__track { flex-direction: column; width: 100%; gap: 24px; padding-bottom: 40px; }
    .element-panel { width: 100%; height: auto; padding: 0 var(--gutter); }
    .element-panel__inner { grid-template-columns: 1fr; }
    .element-panel__giant { display: none; }
}
@media (max-width: 640px) {
    .nav { padding-left: 12px; }
    .nav__brand span, .nav__actions .btn { display: none; }
    .services__grid, .team__grid, .videos__grid { grid-template-columns: 1fr; }
    .video-card--featured { grid-column: auto; grid-row: auto; }
    .video-card--featured h3 { font-size: 1.3rem; }
    .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .work:nth-child(7n+1) { grid-row: span 1; }
    .work figcaption { transform: none; opacity: 1; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .footer__top { grid-template-columns: 1fr; }
    .hero__elements { gap: 14px; font-size: .7rem; }
    .hero__scroll { display: none; }
    .lightbox__nav { top: auto; bottom: 18px; }
}

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