/* ==========================================================================
   JC Virtual Tour - site v3 (3DGS + 360)
   Feuille autonome de la page d'accueil. Les pages études de cas et légales
   gardent style.css pour l'instant.
   ========================================================================== */

:root {
    --bg: #0C0C0E;
    --bg-2: #131316;
    --surface: rgba(255, 255, 245, 0.035);
    --surface-2: rgba(255, 255, 245, 0.06);
    --line: rgba(255, 255, 245, 0.08);
    --line-2: rgba(255, 255, 245, 0.16);
    --text: #F5F5F0;
    --text-2: #B8B8B0;
    --muted: #75756E;

    --accent: #FFC93C;
    --accent-2: #F59E0B;
    --accent-ink: #1A1300;
    --grad: linear-gradient(135deg, #FFD43A 0%, #F59E0B 100%);
    --glow: rgba(245, 158, 11, 0.35);

    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

    --f-body: 'Outfit', system-ui, sans-serif;
    --f-head: 'Space Grotesk', 'Outfit', sans-serif;

    /* Échelle typographique : chaque titre de la page utilise l'un de ces niveaux */
    --fs-display: clamp(2.3rem, 4.6vw, 3.7rem);
    --fs-h2: clamp(1.55rem, 2.6vw, 2.15rem);
    --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);
    --fs-h4: 1.04rem;
    --fs-lead: 1rem;

    --hdr-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="light"] {
    --bg: #F6F4EE;
    --bg-2: #EEEBE2;
    --surface: rgba(20, 20, 10, 0.035);
    --surface-2: rgba(20, 20, 10, 0.06);
    --line: rgba(20, 20, 10, 0.09);
    --line-2: rgba(20, 20, 10, 0.18);
    --text: #141412;
    --text-2: #4A4A44;
    --muted: #85857C;
    --accent: #E9A200;
    --accent-2: #D97706;
    --glow: rgba(217, 119, 6, 0.25);
    --shadow: 0 20px 50px rgba(60, 40, 0, 0.12);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--hdr-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.lock { overflow: hidden; }

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 48px); }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    padding: .8em 1.4em;
    border-radius: 999px;
    font-weight: 600;
    font-size: .875rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}

.btn-primary {
    background: var(--grad);
    color: var(--accent-ink);
    box-shadow: 0 8px 30px -8px var(--glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }

.btn-ghost {
    border: 1px solid var(--line-2);
    background: var(--surface);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .65em 1.1em; font-size: .8rem; }
.btn-lg { padding: .95em 1.55em; font-size: .9rem; }

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: border-color .2s;
}

.icon-btn:hover { border-color: var(--line-2); }

.mini-btn {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-size: .8rem;
    font-weight: 500;
    padding: .5em .9em;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    transition: color .2s, border-color .2s;
}

.mini-btn:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Header ---------- */

.hdr {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--hdr-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 max(24px, calc((100vw - 1280px) / 2));
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
    color: #F5F5F0;
}

.hdr.scrolled {
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom-color: var(--line);
    color: var(--text);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-name span { font-weight: 400; opacity: .7; margin-left: .3em; }

.nav { display: flex; gap: 4px; }

.nav a {
    padding: .5em .85em;
    border-radius: 999px;
    font-size: .9rem;
    opacity: .75;
    transition: opacity .2s, background .2s;
}

.nav a:hover { opacity: 1; }
.nav a.on { opacity: 1; background: rgba(255, 255, 245, .08); }
[data-theme="light"] .hdr.scrolled .nav a.on { background: var(--surface-2); }

.hdr-right { display: flex; align-items: center; gap: 10px; }

.lang-pill {
    display: flex;
    border: 1px solid rgba(255, 255, 245, .14);
    border-radius: 999px;
    padding: 3px;
    font-size: .75rem;
    font-weight: 600;
    font-family: var(--f-body);
}

.hdr.scrolled .lang-pill { border-color: var(--line); }
.lang-pill > * { padding: .3em .7em; border-radius: 999px; opacity: .6; }
.lang-pill .on { background: var(--grad); color: var(--accent-ink); opacity: 1; }

.hdr .icon-btn { border-color: rgba(255, 255, 245, .14); background: rgba(255, 255, 245, .04); }
.hdr.scrolled .icon-btn { border-color: var(--line); background: var(--surface); }
.i-sun { display: none; }
[data-theme="light"] .i-sun { display: block; }
[data-theme="light"] .i-moon { display: none; }

.burger { display: none; width: 38px; height: 38px; position: relative; }

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), top .3s var(--ease);
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.mnav {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.mnav.open { opacity: 1; pointer-events: auto; }
.mnav nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mnav nav a:not(.btn) { font-family: var(--f-head); font-size: 1.6rem; font-weight: 500; }
.mnav .mnav-lang { font-size: .95rem !important; color: var(--muted); font-family: var(--f-body) !important; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: min(100vh, 1100px);
    min-height: min(100svh, 1100px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #050506;
    color: #F5F5F0;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(120% 90% at 72% 35%, #2A1E0C 0%, #0D0B09 50%, #050506 100%);
}

.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.no-video .hero-video { display: none; }

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 5, 6, .97) 0%, rgba(5, 5, 6, .88) 28%, rgba(5, 5, 6, .55) 50%, rgba(5, 5, 6, .12) 78%, rgba(5, 5, 6, 0) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 6, 0) 22%);
    pointer-events: none;
}

.hero-inner {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
    padding: calc(var(--hdr-h) + 40px) 0 120px;
    max-width: 1200px;
}

.hero-inner > * { max-width: 640px; }

.hero-title {
    font-size: var(--fs-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    opacity: 0;
    animation: rise 1s var(--ease) .35s forwards;
}

.hero-title .grad { display: block; padding-bottom: .08em; }

.hero-sub {
    margin-top: 26px;
    font-size: var(--fs-lead);
    color: #C9C9C0;
    max-width: 520px !important;
    opacity: 0;
    animation: rise 1s var(--ease) .5s forwards;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    opacity: 0;
    animation: rise 1s var(--ease) .65s forwards;
}

.hero .btn-ghost { border-color: rgba(255, 255, 245, .22); background: rgba(255, 255, 245, .05); }

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 24px;
    height: 38px;
    margin-left: -12px;
    border: 1.5px solid rgba(255, 255, 245, .3);
    border-radius: 14px;
}

.hero-scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: #FFC93C;
    animation: wheel 1.8s infinite;
}

/* ---------- Sections ---------- */

.sec { padding: clamp(56px, 7vw, 96px) 0; position: relative; }

.sec-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; }
.sec-head p { margin: 12px auto 0; color: var(--text-2); font-size: .95rem; max-width: 600px; }

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

/* Sélecteur 3D / 360 */
.seg-wrap { display: flex; justify-content: center; margin: -12px 0 28px; }

.seg {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.seg button {
    padding: .6em 1.4em;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--text-2);
}

.seg button[aria-selected="true"] { background: var(--grad); color: var(--accent-ink); }

/* ---------- Démo live ---------- */

.demo-panel { max-width: none; margin: 0 auto; }
.demo-panel.hero-compare { margin-top: 0; }
.demo-panel.hero-compare .compare-container { max-width: none; }
.demo-panel .compare-labels-row,
.demo-panel .compare-instruction { max-width: none; }

.player-stage {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-2);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-frame:fullscreen { aspect-ratio: auto; }

.player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.player-facade { position: absolute; inset: 0; cursor: pointer; overflow: hidden; color: #fff; }

/* Un zoom très lent sur la capture, comme un plan de cinéma */
.player-cover {
    position: absolute;
    inset: 0;
    transform-origin: 60% 45%;
    animation: kenburns 22s ease-in-out infinite alternate;
}

.player-facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(5, 5, 6, .82) 0%, rgba(5, 5, 6, .2) 38%, rgba(5, 5, 6, 0) 60%),
        radial-gradient(70% 70% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
    transition: opacity .4s;
}

.player-facade:hover::after { opacity: .8; }
.player-facade-inner { position: absolute; inset: 0; z-index: 1; }

/* Bouton lecture en verre dépoli, au centre */
.play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 4px;
    color: #FFC93C;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    transition: transform .35s var(--ease), background .35s;
}

.play-btn::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    animation: halo 2.6s ease-out infinite;
}

.player-facade:hover .play-btn { transform: scale(1.08); background: rgba(255, 255, 255, .2); }

.player-meta { position: absolute; left: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 32px); right: 30%; }
.player-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FFD97A; }
.player-facade h3 { font-size: var(--fs-h2); margin: 6px 0 6px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.player-hint { font-size: .85rem; color: rgba(255, 255, 255, .72); }

.player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.player-actions { display: flex; gap: 8px; margin-left: auto; }

/* Couverture générée quand il n'y a pas d'image */
/* En attendant une vraie capture : un fond sombre légèrement teinté */
.gen-cover {
    background:
        radial-gradient(80% 70% at 70% 20%, hsl(var(--h) 35% 26% / .8), transparent 70%),
        linear-gradient(170deg, hsl(var(--h) 18% 14%), hsl(var(--h) 12% 6%));
}

.img-cover { background-size: cover; background-position: center; }

/* ---------- Fonctionnalités : liste à gauche, vidéo à droite ---------- */

.feat { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 28px; align-items: start; }
.feat-list { display: flex; flex-direction: column; gap: 4px; }

.feat-item {
    position: relative;
    text-align: left;
    padding: 16px 20px 18px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    overflow: hidden;
    transition: background .3s, border-color .3s;
}

.feat-item::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.feat-item b { display: block; font-family: var(--f-head); font-size: var(--fs-h4); font-weight: 600; color: var(--muted); transition: color .3s; }
.feat-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.feat-desc > span { min-height: 0; overflow: hidden; color: var(--text-2); font-size: .875rem; line-height: 1.5; opacity: 0; transition: opacity .35s; }
.feat-item:hover b { color: var(--text); }
.feat-item.on { background: var(--surface-2); border-color: var(--line); }
.feat-item.on::before { background: var(--grad); }
.feat-item.on b { color: var(--text); }
.feat-item.on .feat-desc { grid-template-rows: 1fr; }
.feat-item.on .feat-desc > span { opacity: 1; padding-top: 6px; transition-delay: .12s; }
.feat-bar { position: absolute; left: 24px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.feat-item.on .feat-bar.run { animation: featbar 7s linear forwards; }
.feat.manual .feat-bar { display: none; }

.feat-stage {
    position: sticky;
    top: calc(var(--hdr-h) + 24px);
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: radial-gradient(80% 80% at 50% 30%, rgba(255, 201, 60, .07), transparent 70%), var(--bg-2);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.feat-media { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.feat-media.on { opacity: 1; }
.feat-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-media .art { position: absolute; inset: 0; min-height: 0; }
.feat-media.has-video .art { display: none; }
.feat-stage .map { transform: scale(1.9); }
.feat-stage .phone { transform: scale(1.7); }
.feat-stage .vid { width: min(80%, 520px); }
.feat-stage .poi-card { transform: scale(1.3); transform-origin: top left; }

.art { position: relative; flex: 1; min-height: 140px; color: var(--accent); overflow: hidden; }

/* 01 vol */
.art-fly svg { position: absolute; inset: 8% 6% 0; width: 88%; height: 92%; overflow: visible; }
.iso { stroke-width: 1.2; opacity: .5; }
.iso-floor { fill: rgba(255, 201, 60, .04); }
.iso-obj { fill: rgba(255, 201, 60, .08); }
.fly-path { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .7; animation: dash 3s linear infinite; }
.drone-core { fill: var(--accent); }
.drone-halo { fill: none; stroke: var(--accent); stroke-opacity: .35; }

/* 02 personnage */
.art-walk { min-height: 170px; }
.walk-floor { position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.walk-wall { position: absolute; right: 18%; bottom: 18%; width: 10px; height: 56%; border-radius: 3px; background: repeating-linear-gradient(45deg, var(--line-2) 0 4px, transparent 4px 8px); border: 1px solid var(--line-2); }
.walk-hit { position: absolute; left: -14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: hit 4s infinite; }
.walk-guy { position: absolute; bottom: 18%; left: 12%; width: 26px; height: 56px; animation: walk 4s var(--ease) infinite; }
.walk-head { position: absolute; top: 0; left: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.walk-body { position: absolute; top: 17px; left: 3px; width: 20px; height: 39px; border-radius: 10px 10px 6px 6px; background: var(--grad); animation: bob .5s ease-in-out infinite alternate; }
.walk-shadow { position: absolute; bottom: -4px; left: -2px; width: 30px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .35); }

/* 03 parcours */
.art-intro { display: grid; place-items: center; padding: 24px; }
.vid { width: min(100%, 380px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: var(--shadow); }
.vid-screen { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.vid-scene { position: absolute; inset: 0; opacity: 0; animation: scenes 9s infinite; }
.vid-scene.s1 { background: radial-gradient(60% 80% at 30% 60%, #A26A2A, transparent), linear-gradient(160deg, #2B1C0C, #0C0805); animation-delay: 0s; }
.vid-scene.s2 { background: radial-gradient(60% 80% at 70% 40%, #2A6F7A, transparent), linear-gradient(160deg, #0C1E22, #050A0C); animation-delay: 3s; }
.vid-scene.s3 { background: radial-gradient(60% 80% at 50% 70%, #7A2A55, transparent), linear-gradient(160deg, #220C1A, #0A0508); animation-delay: 6s; }
.vid-screen::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.4px); background-size: 9px 9px; animation: pan 9s linear infinite; }
.vid-title { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-family: var(--f-head); font-size: .85rem; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.vid-ctrl { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #111; }
.vid-play { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vid-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.vid-fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--grad); animation: fill 9s linear infinite; }
.vid-track i { position: absolute; top: -2px; width: 2px; height: 8px; background: rgba(255, 255, 255, .5); }
.vid-time { font-family: var(--f-body); font-size: .65rem; color: rgba(255, 255, 255, .6); }

/* 04 points d'intérêt */
.art-poi { min-height: 160px; }
.poi { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 2.4s infinite; }
.poi.p1 { left: 20%; top: 58%; }
.poi.p2 { left: 72%; top: 30%; animation-delay: .8s; }
.poi.p3 { left: 48%; top: 74%; animation-delay: 1.6s; }
.poi-card { position: absolute; left: 30%; top: 18%; display: flex; flex-direction: column; padding: 8px; width: 120px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .72rem; color: var(--muted); animation: pop 4.8s var(--ease) infinite; }
.poi-card b { color: var(--text); font-size: .78rem; }
.poi-card-img { height: 40px; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(135deg, #6B4A1F, #2A1B0A); }

/* 05 clic */
.art-click svg { position: absolute; inset: 10% 8%; width: 84%; height: 80%; overflow: visible; }
.click-path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 3s var(--ease) infinite; }
.click-from { fill: var(--text-2); }
.ct-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-origin: center; animation: ring 3s infinite; }
.ct-dot { fill: var(--accent); }

/* 06 plan */
.art-map { display: grid; place-items: center; }
.map { position: relative; width: 150px; height: 110px; }
.map-room { position: absolute; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); }
.map-room.r1 { left: 0; top: 0; width: 60%; height: 55%; }
.map-room.r2 { left: 60%; top: 0; width: 40%; height: 100%; }
.map-room.r3 { left: 0; top: 55%; width: 60%; height: 45%; }
.map-me { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); offset-path: path("M25 30 L70 30 L110 50 L110 85 L45 85 L25 30"); animation: follow 8s linear infinite; }
.map-cone { position: absolute; left: 5px; top: 5px; width: 34px; height: 34px; margin: -17px; background: conic-gradient(from 60deg, rgba(255, 201, 60, .35) 0 60deg, transparent 60deg); border-radius: 50%; }

/* 07 mobile */
.art-mobile { display: grid; place-items: center; }
.phone { position: relative; width: 74px; height: 140px; border-radius: 16px; border: 2px solid var(--line-2); overflow: hidden; background: #000; }
.phone-scene { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, #6B4A1F, transparent), linear-gradient(180deg, #1C130A, #050505); animation: pan 6s ease-in-out infinite alternate; }
.phone-stick { position: absolute; left: 8px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.phone-stick span { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #FFC93C; animation: stick 3s ease-in-out infinite; }
.phone-cross { position: absolute; right: 9px; bottom: 15px; width: 20px; height: 20px; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)) center / 4px 100% no-repeat, linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)) center / 100% 4px no-repeat; border-radius: 2px; }

/* Illustration de secours des fonctionnalités 360 : une vraie photo et l'icône */
.art-360 {
    display: grid;
    place-items: center;
    color: #FFC93C;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .72)), url('https://assets.jc-virtualtour.com/tours/pan-bar/bar-a-tir/Pan_Bar_8.jpg') center / cover;
}

.feat-media:nth-child(even) .art-360 {
    background-image: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .72)), url('https://assets.jc-virtualtour.com/tours/le-3bis/bar-a-jeux-immersif/d53d26fc-013e-458d-bdfe-e001af1c4ad1/color/hd/pz.webp');
}

.art-360 svg {
    box-sizing: content-box;
    width: 84px;
    height: 84px;
    padding: 30px;
    border-radius: 50%;
    background: rgba(10, 10, 10, .5);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- 3D ou 360 : les deux offres ---------- */

.offers { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }

.offer {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    background: radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .05), transparent 60%), linear-gradient(160deg, #141416, #0B0B0C);
}


/* La 3D : liseré doré et halo, c'est l'offre phare */
.offer-3d { border-color: transparent; box-shadow: 0 40px 120px -40px rgba(245, 158, 11, .5); background: radial-gradient(90% 75% at 100% 0%, rgba(255, 201, 60, .16), transparent 62%), linear-gradient(160deg, #17130C, #0B0B0C); }
.offer-3d::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(140deg, #FFD43A, rgba(245, 158, 11, .15) 35%, rgba(245, 158, 11, 0) 60%, #F59E0B);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.offer-body { padding: clamp(24px, 3vw, 40px); }

.offer-tag {
    display: inline-block;
    padding: .4em 1em;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offer-3d .offer-tag { background: var(--grad); color: #1A1300; border-color: transparent; }
.offer h3 { font-size: var(--fs-h3); font-weight: 700; margin-top: 14px; }
.offer-claim { font-family: var(--f-head); font-size: var(--fs-h4); font-weight: 500; margin-top: 8px; color: rgba(255, 255, 255, .85); }
.offer-3d .offer-claim { color: #FFD97A; }
.offer-lead { color: rgba(255, 255, 255, .76); margin-top: 12px; max-width: 520px; font-size: .9rem; }
.offer-list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: .875rem; }
.offer-list li { display: flex; gap: 10px; align-items: baseline; }
.offer-list li::before { content: "\2713"; flex: none; width: 18px; text-align: center; font-weight: 700; color: #FFC93C; }
.offer .btn-ghost { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.formats-both { text-align: center; margin-top: 28px; color: var(--text-2); }

/* ---------- Réalisations ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 28px; }

.filter {
    padding: .5em 1em;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: .85rem;
    color: var(--text-2);
    transition: all .2s;
}

.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-sep { width: 1px; background: var(--line); margin: 4px 4px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    color: #fff;
    border: 1px solid var(--line);
    isolation: isolate;
    animation: cardIn .6s var(--ease) both;
}

.card-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-case {
    position: relative;
    z-index: 2;
    display: inline-flex;
    margin-top: 14px;
    font-size: .82rem;
    font-weight: 600;
    color: #FFD97A;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.card-case:hover { color: #fff; }

.card-cover { position: absolute; inset: 0; z-index: -2; transition: transform 1s var(--ease); }
.card:hover .card-cover { transform: scale(1.06); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%); }

.card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }

.fmt-chip {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .3em .7em;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .06em;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
}

.fmt-chip.is-3d { background: var(--grad); color: #1A1300; border-color: transparent; }
.card-cat { font-size: .72rem; padding: .3em .7em; border-radius: 999px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.card-body { padding: 20px; }
.card-title { display: block; font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: var(--fs-h4); }
.card-place { display: block; }
.card-place { font-size: .85rem; color: rgba(255, 255, 255, .72); margin-top: 4px; }

.card-go {
    position: absolute;
    right: 18px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #000;
    transform: scale(.6);
    opacity: 0;
    transition: transform .35s var(--ease), opacity .35s;
}

.card:hover .card-go, .card:focus-within .card-go { transform: scale(1); opacity: 1; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.quote { margin: 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; font-size: .95rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .85rem; color: var(--muted); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote figcaption img.logo { object-fit: contain; padding: 7px; background: #141416; border: 1px solid var(--line); }
.quote figcaption b { display: block; color: var(--text); font-weight: 600; }
.quote .stars { margin-left: auto; color: var(--accent); letter-spacing: 2px; }

/* ---------- Pour qui : accordéon de photos ---------- */

.aud { display: flex; gap: 12px; height: 460px; }

.aud-item {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    isolation: isolate;
    color: #fff;
    cursor: pointer;
    transition: flex .7s var(--ease);
}

.aud-item.on { flex: 4.5; cursor: default; }
.aud-item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 5, 6, .55); transition: background .6s; }
.aud-item.on::before { background: linear-gradient(180deg, rgba(5, 5, 6, .05) 30%, rgba(5, 5, 6, .85) 100%); }

.aud-name {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-family: var(--f-head);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .3s;
}

.aud-item.on .aud-name { opacity: 0; }

.aud-body {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(100%, 560px);
    min-width: 320px;
    padding: 32px;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .4s .15s, transform .5s .15s var(--ease);
}

.aud-item.on .aud-body { opacity: 1; transform: none; pointer-events: auto; }
.aud-body h3 { font-size: var(--fs-h3); font-weight: 700; }
.aud-body p { color: rgba(255, 255, 255, .82); margin: 8px 0 18px; max-width: 440px; font-size: .9rem; }

.aud-link {
    display: inline-flex;
    padding: .65em 1.3em;
    border-radius: 999px;
    background: var(--grad);
    color: #1A1300;
    font-weight: 600;
    font-size: .9rem;
    transition: transform .25s var(--ease);
}

.aud-link:hover { transform: translateY(-2px); }

/* ---------- Contact ---------- */

.cta {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: clamp(28px, 4vw, 56px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 245, .1);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 80% at 0% 100%, rgba(245, 158, 11, .16), transparent 60%),
        radial-gradient(50% 60% at 100% 0%, rgba(255, 212, 58, .05), transparent 60%),
        linear-gradient(160deg, #141210, #09090A);
}

.cta h2 { font-size: var(--fs-h2); font-weight: 700; }
.cta-txt p { margin-top: 18px; color: rgba(255, 255, 255, .75); max-width: 460px; }
.cta-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

.cta-line {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
    padding: 12px 18px 12px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-wrap: anywhere;
    transition: border-color .25s, transform .25s var(--ease);
}

.cta-line:hover { border-color: rgba(255, 255, 255, .28); transform: translateX(4px); }
.cta-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #FFC93C; }
.cta-line small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.brief {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px;
    border-radius: 24px;
    background: rgba(10, 10, 12, .55);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brief-title { font-family: var(--f-head); font-size: var(--fs-h4); font-weight: 600; }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
    padding: .55em 1em;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .9rem;
    color: #fff;
    transition: all .2s;
}

.chip:hover { border-color: #FFC93C; }
.chip[aria-pressed="true"] { background: var(--grad); color: #1A1300; border-color: transparent; font-weight: 600; }
.brief-send { margin-top: 4px; }

/* ---------- Footer ---------- */

.ftr { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.ftr-brand p { margin-top: 14px; color: var(--muted); font-size: .9rem; max-width: 260px; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.ftr-col b { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.ftr-col a { color: var(--text-2); transition: color .2s; overflow-wrap: anywhere; }
.ftr-col a:hover { color: var(--accent); }
.ftr-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* ---------- Visite plein écran ---------- */

.tmodal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #000;
    animation: fadeIn .35s var(--ease);
}

.tmodal[hidden] { display: none; }

.tmodal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: #0B0B0D;
    border-bottom: 1px solid rgba(255, 255, 245, .08);
    color: #F5F5F0;
}

.tmodal-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tmodal-id b { font-family: var(--f-head); white-space: nowrap; }
.tmodal-id span:last-child { color: #8F8F86; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmodal-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.tmodal .mini-btn { border-color: rgba(255, 255, 245, .12); background: rgba(255, 255, 245, .04); color: #B8B8B0; }
.tmodal .icon-btn { border-color: rgba(255, 255, 245, .14); background: rgba(255, 255, 245, .04); color: #fff; }
.tmodal iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* ---------- Apparition au scroll ---------- */

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 201, 60, 0); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes walk { 0% { left: 12%; opacity: 0; } 6% { opacity: 1; } 55% { left: calc(82% - 38px); } 60%, 80% { left: calc(82% - 46px); opacity: 1; } 90%, 100% { left: calc(82% - 46px); opacity: 0; } }
@keyframes hit { 0%, 54% { opacity: 0; transform: scale(.4); } 58% { opacity: 1; } 70%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes bob { to { transform: translateY(-2px); } }
@keyframes scenes { 0% { opacity: 0; transform: scale(1.1); } 6%, 33% { opacity: 1; } 40%, 100% { opacity: 0; transform: scale(1); } }
@keyframes pan { from { transform: translateX(0); } to { transform: translateX(-18px); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes pop { 0%, 15% { opacity: 0; transform: translateY(8px) scale(.9); } 25%, 75% { opacity: 1; transform: none; } 85%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes draw { 0% { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes follow { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes stick { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(6px, -6px); } 50% { transform: translate(0, -8px); } 75% { transform: translate(-6px, -4px); } }
@keyframes featbar { to { transform: scaleX(1); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes halo { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes look { from { background-position: 30% 50%; } to { background-position: 70% 50%; } }
@keyframes arrowPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .nav { display: none; }
    .burger { display: block; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .offers { grid-template-columns: 1fr; }
    .ftr-grid { grid-template-columns: repeat(3, 1fr); }
    .ftr-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .feat { grid-template-columns: 1fr; }
    .feat-stage { order: -1; top: calc(var(--hdr-h) + 8px); z-index: 2; }
    .cta { grid-template-columns: 1fr; gap: 32px; }
    .quotes { grid-template-columns: 1fr; }
    .aud { flex-direction: column; height: auto; }
    .aud-item { flex: none; height: 84px; transition: height .6s var(--ease); }
    .aud-item.on { flex: none; height: 400px; }
    .aud-name { writing-mode: horizontal-tb; transform: none; left: 24px; bottom: auto; top: 50%; margin-top: -.7em; }
    .aud-body { min-width: 0; padding: 24px; }
    .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 6, .75) 35%, rgba(5, 5, 6, .35) 100%); }
    .hero-inner { align-self: end; padding-bottom: 96px; }
}

@media (max-width: 640px) {
    :root { --hdr-h: 62px; }
    .wrap, .hero-inner { width: calc(100% - 32px); }
    .hdr { padding: 0 16px; gap: 10px; }
    .hide-sm { display: none; }
    .hdr .brand-name span { display: none; }
    .hero-ctas .btn { flex: 1 1 auto; }
    .player-frame { aspect-ratio: 4 / 5; }
    .player-bar { flex-direction: column; align-items: stretch; }
    .player-actions { margin-left: 0; }
    .player-actions .mini-btn { flex: 1; justify-content: center; }
    .feat-item { padding: 14px 16px 16px 20px; }
    .feat-stage .map { transform: scale(1.3); }
    .feat-stage .phone { transform: scale(1.15); }
    .art-360 svg { width: 56px; height: 56px; padding: 22px; }
    .grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
    .grid::-webkit-scrollbar { display: none; }
    .grid .card { flex: 0 0 82%; scroll-snap-align: start; }
    .offer-body { padding: 28px 22px; }
    .brief { padding: 22px; }
    .sec-head { text-align: left; }
    .sec-head p { margin-left: 0; }
    .seg-wrap { justify-content: flex-start; }
    .filters { justify-content: flex-start; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-col:last-child { grid-column: 1 / -1; }
    .ftr-bottom { flex-direction: column; gap: 6px; }
    .tmodal-id span:last-child, #tmodalNew { display: none; }
}

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