/* Elevate · pages projet (realisations/<id>.html), chargé après pages.css.
   Chaque page prend la direction artistique du site présenté : sa palette, ses polices, son motif.
   Un thème = un bloc [data-theme="…"] de variables. Les sections .is-alt basculent sur la palette
   secondaire du thème (papier sous une nuit, nuit sous un papier) pour donner du rythme.
   Appareils en 3D (ordinateur, téléphone) en CSS : perspective, couvercle incliné, socle à plat. */

/* Valeurs par défaut (page Réalisations, sans thème de projet) : les couleurs d'Elevate */
:root { --f-display: var(--font); --f-text: var(--font); --f-label: var(--font); --f-em: var(--font); --em-style: normal;
    --accent: var(--sky); --btn: var(--blue); --btn-hi: var(--blue-hi); --on-accent: #ffffff; --r2: 18px; --glow: rgba(61, 90, 241, 0.35); }

/* ================================================================ Thèmes */
[data-theme="exlibris"] {
    --f-display: 'Libre Caslon Display', 'Big Caslon', Georgia, serif;
    --f-text: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
    --f-label: 'Source Serif 4', Georgia, serif;
    --f-em: 'Source Serif 4', Georgia, serif;
    --display-ls: -0.01em; --title-ls: -0.02em;
    --bg: #0f1828; --bg-2: #142038; --ink: #f3eee2; --soft: #c3c8d2; --mute: #8f98aa;
    --line: rgba(216, 192, 122, 0.15); --line-2: rgba(216, 192, 122, 0.34);
    --panel: rgba(216, 192, 122, 0.05); --panel-2: rgba(216, 192, 122, 0.1);
    --accent: #d8c07a; --btn: #b89e54; --btn-hi: #cdb46b; --on-accent: #14213a;
    --alt-bg: #fbf7ee; --alt-bg-2: #f4eddf; --alt-ink: #14213a; --alt-soft: #33405a; --alt-mute: #5a6273;
    --alt-line: rgba(20, 33, 58, 0.14); --alt-line-2: rgba(118, 97, 42, 0.42); --alt-panel: #f4eddf; --alt-panel-2: #efe5d0;
    --alt-accent: #76612a; --alt-btn: #14213a; --alt-btn-hi: #21334e; --alt-on-accent: #fbf7ee;
    --dev-shell: linear-gradient(160deg, #26344f, #0b1220 60%); --dev-edge: rgba(216, 192, 122, 0.5);
    --glow: rgba(216, 192, 122, 0.3); --r2: 4px;
}
[data-theme="oree"] {
    --f-display: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
    --f-text: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
    --f-label: 'Jost', system-ui, sans-serif;
    --f-em: 'Instrument Serif', Georgia, serif;
    --display-ls: -0.02em; --title-ls: -0.03em;
    --bg: #fffcf5; --bg-2: #fbf4e4; --ink: #1e1a13; --soft: #3f382c; --mute: #6b604e;
    --line: rgba(30, 26, 19, 0.12); --line-2: rgba(30, 26, 19, 0.26);
    --panel: rgba(255, 255, 255, 0.62); --panel-2: #ffffff;
    --accent: #8a6418; --btn: #1e1a13; --btn-hi: #3f382c; --on-accent: #fffcf5;
    --alt-bg: #f3e6c8; --alt-bg-2: #eedcb6; --alt-ink: #1e1a13; --alt-soft: #3f382c; --alt-mute: #5e5444;
    --alt-line: rgba(30, 26, 19, 0.14); --alt-line-2: rgba(30, 26, 19, 0.3); --alt-panel: rgba(255, 252, 245, 0.6); --alt-panel-2: #fffcf5;
    --alt-accent: #7e5a12; --alt-btn: #1e1a13; --alt-btn-hi: #3f382c; --alt-on-accent: #fffcf5;
    --dev-shell: linear-gradient(160deg, #fbf9f4, #d8d2c4 70%); --dev-edge: rgba(30, 26, 19, 0.2);
    --glow: rgba(244, 180, 58, 0.35); --r2: 20px;
    color-scheme: light;
}
[data-theme="biseau"] {
    --f-display: 'Fraunces', 'Fraunces repli', Georgia, serif;
    --f-text: 'Manrope', system-ui, sans-serif;
    --f-label: 'Plex Mono', ui-monospace, Consolas, monospace;
    --f-em: 'Fraunces', Georgia, serif;
    --display-w: 300; --display-ls: -0.02em; --title-ls: -0.035em; --label-ls: 0.14em;
    --bg: #15221b; --bg-2: #1d2e25; --ink: #f1ebe1; --soft: #c8c2b5; --mute: #949b93;
    --line: rgba(241, 235, 225, 0.12); --line-2: rgba(217, 154, 78, 0.38);
    --panel: rgba(241, 235, 225, 0.04); --panel-2: rgba(241, 235, 225, 0.08);
    --accent: #d99a4e; --btn: #c9893a; --btn-hi: #d99a4e; --on-accent: #15221b;
    --alt-bg: #f3eee6; --alt-bg-2: #e9e1d4; --alt-ink: #1a1f1b; --alt-soft: #4e5650; --alt-mute: #636c66;
    --alt-line: rgba(26, 31, 27, 0.14); --alt-line-2: rgba(26, 31, 27, 0.32); --alt-panel: #e9e1d4; --alt-panel-2: #e1d7c6;
    --alt-accent: #8c5419; --alt-btn: #15221b; --alt-btn-hi: #1d2e25; --alt-on-accent: #f3eee6;
    --dev-shell: linear-gradient(160deg, #34403a, #101813 65%); --dev-edge: rgba(217, 154, 78, 0.38);
    --glow: rgba(217, 154, 78, 0.35); --r2: 6px;
}
[data-theme="epiane"] {
    --f-display: 'Fraunces', Georgia, serif;
    --f-text: 'Manrope', system-ui, sans-serif;
    --f-label: 'Manrope', system-ui, sans-serif;
    --f-em: 'Fraunces', Georgia, serif;
    --display-ls: -0.015em; --title-ls: -0.03em;
    --bg: #07090f; --bg-2: #0d1422; --ink: #f6ecda; --soft: #cfc3ad; --mute: #a2967f;
    --line: rgba(245, 216, 146, 0.13); --line-2: rgba(245, 216, 146, 0.32);
    --panel: rgba(26, 38, 62, 0.42); --panel-2: rgba(26, 38, 62, 0.7);
    --accent: #f5d892; --btn: #e3b45c; --btn-hi: #f5d892; --on-accent: #1a2133;
    --alt-bg: #f3e8d5; --alt-bg-2: #eadcc3; --alt-ink: #1a2133; --alt-soft: #45464f; --alt-mute: #5f5a55;
    --alt-line: rgba(26, 33, 51, 0.14); --alt-line-2: rgba(168, 116, 31, 0.42); --alt-panel: #eadcc3; --alt-panel-2: #e2d1b3;
    --alt-accent: #8a5a14; --alt-btn: #1a2133; --alt-btn-hi: #13213a; --alt-on-accent: #f6ecda;
    --dev-shell: linear-gradient(160deg, #24395d, #0b111d 65%); --dev-edge: rgba(245, 216, 146, 0.4);
    --glow: rgba(227, 180, 92, 0.32); --r2: 22px;
}
[data-theme="golf"] {
    --f-display: 'Instrument Serif', Georgia, serif;
    --f-text: 'Manrope', system-ui, sans-serif;
    --f-label: 'Manrope', system-ui, sans-serif;
    --f-em: 'Instrument Serif', Georgia, serif;
    --display-ls: -0.015em; --title-ls: -0.03em;
    --bg: #0a0b09; --bg-2: #121510; --ink: #ece6d8; --soft: #c4bead; --mute: #a29c8b;
    --line: rgba(236, 230, 216, 0.12); --line-2: rgba(228, 200, 142, 0.32);
    --panel: rgba(30, 42, 27, 0.38); --panel-2: rgba(30, 42, 27, 0.66);
    --accent: #e4c88e; --btn: #c9a55c; --btn-hi: #e4c88e; --on-accent: #16140f;
    --alt-bg: #efe8da; --alt-bg-2: #e5dcc9; --alt-ink: #16140f; --alt-soft: #3d3a31; --alt-mute: #5e584b;
    --alt-line: rgba(22, 20, 15, 0.14); --alt-line-2: rgba(22, 20, 15, 0.3); --alt-panel: #e5dcc9; --alt-panel-2: #dcd1bb;
    --alt-accent: #6f531d; --alt-btn: #1e2a1b; --alt-btn-hi: #3e6b3e; --alt-on-accent: #efe8da;
    --dev-shell: linear-gradient(160deg, #2b3027, #0b0d0a 65%); --dev-edge: rgba(201, 165, 92, 0.45);
    --glow: rgba(201, 165, 92, 0.3); --r2: 999px;
}
[data-theme="colombe"] {
    --f-display: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
    --f-text: 'Jost', 'Segoe UI', system-ui, sans-serif;
    --f-label: 'Jost', system-ui, sans-serif;
    --f-em: 'Cormorant Garamond', Georgia, serif;
    --em-style: normal; --display-ls: 0; --title-ls: -0.01em; --display-lh: 1.02;
    --bg: #f7f3ec; --bg-2: #fbf8f3; --ink: #26231f; --soft: #5c554c; --mute: #6e675d;
    --line: rgba(38, 35, 31, 0.11); --line-2: rgba(184, 146, 74, 0.42);
    --panel: rgba(255, 253, 249, 0.66); --panel-2: #fffdf9;
    --accent: #7a5b22; --btn: #26231f; --btn-hi: #46403a; --on-accent: #fbf8f3;
    --alt-bg: #ebe8f0; --alt-bg-2: #e2dee9; --alt-ink: #26231f; --alt-soft: #4f4a52; --alt-mute: #625c64;
    --alt-line: rgba(38, 35, 31, 0.11); --alt-line-2: rgba(122, 91, 34, 0.38); --alt-panel: rgba(255, 253, 249, 0.6); --alt-panel-2: #fffdf9;
    --alt-accent: #6a5320; --alt-btn: #26231f; --alt-btn-hi: #46403a; --alt-on-accent: #fbf8f3;
    --dev-shell: linear-gradient(160deg, #fffdf9, #e6dfd2 70%); --dev-edge: rgba(184, 146, 74, 0.4);
    --glow: rgba(184, 146, 74, 0.25); --r2: 22px;
    color-scheme: light;
}
[data-theme="floraison"] {
    --f-display: 'Fraunces', Georgia, serif;
    --f-text: 'Manrope', system-ui, sans-serif;
    --f-label: 'Manrope', system-ui, sans-serif;
    --f-em: 'Fraunces', Georgia, serif;
    --display-w: 300; --display-ls: -0.025em; --title-ls: -0.04em;
    --bg: #fbf6f1; --bg-2: #f6eee4; --ink: #1d2a25; --soft: #4b5a53; --mute: #5f6d66;
    --line: rgba(29, 42, 37, 0.11); --line-2: rgba(200, 58, 134, 0.32);
    --panel: rgba(255, 255, 255, 0.6); --panel-2: #ffffff;
    --accent: #a8296c; --btn: #c83a86; --btn-hi: #a8296c; --on-accent: #ffffff;
    --alt-bg: #1c2a25; --alt-bg-2: #24403a; --alt-ink: #f4ede4; --alt-soft: #c9c2b8; --alt-mute: #a7a198;
    --alt-line: rgba(244, 237, 228, 0.12); --alt-line-2: rgba(245, 220, 216, 0.32); --alt-panel: rgba(244, 237, 228, 0.05); --alt-panel-2: rgba(244, 237, 228, 0.1);
    --alt-accent: #f6c9d6; --alt-btn: #f5dcd8; --alt-btn-hi: #ffffff; --alt-on-accent: #1d2a25;
    --dev-shell: linear-gradient(160deg, #ffffff, #eadfd6 70%); --dev-edge: rgba(200, 58, 134, 0.28);
    --glow: rgba(200, 58, 134, 0.22); --r2: 32px;
    color-scheme: light;
}
[data-theme="fragrance"] {
    --f-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
    --f-text: 'Manrope', system-ui, sans-serif;
    --f-label: 'Plex Mono', ui-monospace, Consolas, monospace;
    --f-em: 'Bodoni Moda', 'Didot', serif;
    --em-style: normal; --display-ls: -0.01em; --title-ls: 0.14em; --title-tt: uppercase; --label-ls: 0.22em;
    --bg: #0a0806; --bg-2: #120e0a; --ink: #e8d9bf; --soft: #bfae92; --mute: #8f816c;
    --line: rgba(232, 217, 191, 0.11); --line-2: rgba(216, 163, 92, 0.36);
    --panel: rgba(232, 217, 191, 0.035); --panel-2: rgba(232, 217, 191, 0.07);
    --accent: #f1cd94; --btn: #e0761c; --btn-hi: #f6a14a; --on-accent: #0a0806;
    --alt-bg: #e8d9bf; --alt-bg-2: #ddcba9; --alt-ink: #1b1510; --alt-soft: #4a3d2e; --alt-mute: #665643;
    --alt-line: rgba(27, 21, 16, 0.14); --alt-line-2: rgba(27, 21, 16, 0.3); --alt-panel: #ddcba9; --alt-panel-2: #d3bf98;
    --alt-accent: #8e3a12; --alt-btn: #0a0806; --alt-btn-hi: #1b1510; --alt-on-accent: #e8d9bf;
    --dev-shell: linear-gradient(160deg, #2a2016, #050403 60%); --dev-edge: rgba(224, 118, 28, 0.42);
    --glow: rgba(224, 118, 28, 0.35); --r2: 2px;
}

[data-theme="bjc"] {
    --f-display: 'Fraunces', 'Fraunces repli', Georgia, serif;
    --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-label: 'Inter', system-ui, sans-serif;
    --f-em: 'Fraunces', Georgia, serif;
    --display-w: 300; --display-ls: -0.03em; --title-ls: -0.045em; --label-ls: 0.2em;
    --bg: #0f0f0f; --bg-2: #161514; --ink: #efe9dd; --soft: #b8b0a2; --mute: #8f887c;
    --line: rgba(201, 169, 97, 0.16); --line-2: rgba(201, 169, 97, 0.36);
    --panel: rgba(239, 233, 221, 0.03); --panel-2: rgba(239, 233, 221, 0.06);
    --accent: #e8d5a6; --btn: #c9a961; --btn-hi: #e8d5a6; --on-accent: #0f0f0f;
    --alt-bg: #efe9dd; --alt-bg-2: #e6dfd0; --alt-ink: #161514; --alt-soft: #4a453d; --alt-mute: #6b655b;
    --alt-line: rgba(22, 21, 20, 0.12); --alt-line-2: rgba(139, 122, 74, 0.45); --alt-panel: #e6dfd0; --alt-panel-2: #ddd4c2;
    --alt-accent: #8b7a4a; --alt-btn: #0f0f0f; --alt-btn-hi: #2b2824; --alt-on-accent: #efe9dd;
    --dev-shell: linear-gradient(160deg, #2b2824, #0a0a0a 60%); --dev-edge: rgba(201, 169, 97, 0.5);
    --glow: rgba(201, 169, 97, 0.3); --r2: 14px;
}

[data-theme="roule"] {
    --f-display: 'Space Grotesk', 'Space Grotesk Fallback', system-ui, sans-serif;
    --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-label: 'Space Grotesk', system-ui, sans-serif;
    --f-em: 'Space Grotesk', system-ui, sans-serif;
    --em-style: normal; --display-w: 600; --display-ls: -0.035em; --title-ls: -0.045em; --label-ls: 0.12em;
    --bg: #0e1014; --bg-2: #14171c; --ink: #f2f2f0; --soft: #b8bdc5; --mute: #8c929c;
    --line: rgba(242, 242, 240, 0.12); --line-2: rgba(77, 141, 255, 0.4);
    --panel: rgba(242, 242, 240, 0.035); --panel-2: #1b1f25;
    --accent: #4d8dff; --btn: #0056d6; --btn-hi: #0047b3; --on-accent: #ffffff;
    --alt-bg: #f2f2f0; --alt-bg-2: #e7e7e3; --alt-ink: #07080a; --alt-soft: #3d4148; --alt-mute: #5b616b;
    --alt-line: rgba(0, 0, 0, 0.12); --alt-line-2: rgba(0, 86, 214, 0.4); --alt-panel: #ffffff; --alt-panel-2: #e7e7e3;
    --alt-accent: #003c96; --alt-btn: #0056d6; --alt-btn-hi: #0047b3; --alt-on-accent: #ffffff;
    --dev-shell: linear-gradient(160deg, #3a4049, #0e1014 60%); --dev-edge: rgba(184, 189, 197, 0.45);
    --glow: rgba(0, 86, 214, 0.38); --r2: 10px;
}

/* Variables dérivées : le reste du site (pages.css) lit --sky, --blue, --font. Recalculées dans .is-alt. */
[data-theme], [data-theme] .is-alt {
    --sky: var(--accent); --blue: var(--btn); --blue-hi: var(--btn-hi); --font: var(--f-text);
    --sky-soft: color-mix(in srgb, var(--accent) 14%, transparent);
}
[data-theme] .is-alt {
    --bg: var(--alt-bg); --bg-2: var(--alt-bg-2); --ink: var(--alt-ink); --soft: var(--alt-soft); --mute: var(--alt-mute);
    --line: var(--alt-line); --line-2: var(--alt-line-2); --panel: var(--alt-panel); --panel-2: var(--alt-panel-2);
    --accent: var(--alt-accent); --btn: var(--alt-btn); --btn-hi: var(--alt-btn-hi); --on-accent: var(--alt-on-accent);
    background: var(--bg); color: var(--ink);
}
html:has(> body[data-theme="oree"]) { background: #fffcf5; color-scheme: light; }
html:has(> body[data-theme="colombe"]) { background: #f7f3ec; color-scheme: light; }
html:has(> body[data-theme="floraison"]) { background: #fbf6f1; color-scheme: light; }
html:has(> body[data-theme="exlibris"]) { background: #0f1828; }
html:has(> body[data-theme="biseau"]) { background: #15221b; }
html:has(> body[data-theme="epiane"]) { background: #07090f; }
html:has(> body[data-theme="golf"]) { background: #0a0b09; }
html:has(> body[data-theme="fragrance"]) { background: #0a0806; }
html:has(> body[data-theme="bjc"]) { background: #0f0f0f; }
html:has(> body[data-theme="roule"]) { background: #0e1014; }
html { scroll-padding-top: 128px; }

/* ================================================================ Habillage commun aux couleurs du projet */
body[data-theme] { background: var(--bg); color: var(--ink); font-family: var(--f-text); }
[data-theme] .sky { background: var(--bg); }
[data-theme] ::selection { background: var(--accent); color: var(--bg); }
[data-theme] .top { background: color-mix(in srgb, var(--bg) 94%, transparent); border-color: var(--line); }
[data-theme] .brand svg { color: var(--accent); }
[data-theme] .btn { color: var(--on-accent); background: var(--btn); box-shadow: 0 10px 26px -14px var(--glow); font-family: var(--f-text); font-weight: 600; }
[data-theme] .btn:hover { background: var(--btn-hi); }
[data-theme] .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
[data-theme] .btn-ghost:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent); }
[data-theme] .link { color: var(--accent); }
[data-theme] .crumbs a { color: var(--soft); }
[data-theme] .crumbs { color: var(--mute); }
[data-theme] .foot { background: var(--bg-2); margin-top: 0; }
[data-theme] .foot h2 { color: var(--accent); }
[data-theme] .seg { border-color: var(--line-2); background: var(--panel); }
[data-theme] .seg button { color: var(--soft); font-family: var(--f-text); }
[data-theme] .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 900px) { [data-theme] .nav { background: color-mix(in srgb, var(--bg) 97%, transparent); } }

/* Typographie du projet */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1.3 var(--f-label); letter-spacing: var(--label-ls, 0.18em); text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }
.h-sec { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(36px, 4.6vw, 72px); line-height: var(--display-lh, 1); letter-spacing: var(--display-ls, -0.02em); text-wrap: balance; }
.h-sec em, .cv-accroche em, .spec-sample em, .next-acc em { font-family: var(--f-em); font-style: var(--em-style, italic); color: var(--accent); }
[data-theme] .lead { font-family: var(--f-text); font-weight: 400; color: var(--soft); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; max-width: 52ch; }
.note { font-size: 13px; line-height: 1.6; color: var(--mute); max-width: 80ch; }
.sec-top { display: grid; gap: 18px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.sec-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; }
.sec-row > div:not(.seg) { display: grid; gap: 18px; max-width: 760px; }
[data-theme] .sec { padding: clamp(72px, 10vw, 140px) 0; }

/* ================================================================ Sommaire collant + progression */
.case-nav { position: sticky; top: 68px; z-index: 40; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 95%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.case-nav ul { display: flex; align-items: center; gap: 2px; height: 50px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.case-nav ul::-webkit-scrollbar { display: none; }
.case-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; text-decoration: none;
    font: 500 12px/1 var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); transition: color 0.3s; }
.case-nav a:hover, .case-nav a.is-on { color: var(--ink); }
.case-nav a.is-on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--accent); }
.case-nav a.is-cta { margin-left: auto; color: var(--accent); }
.case-nav li:last-child { margin-left: auto; }
.case-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent); }

/* ================================================================ Couverture */
.cv { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 118px); display: grid; align-content: start; padding-bottom: clamp(28px, 4vw, 48px); }
.cv-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cv-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: clamp(20px, 3.5vw, 48px); }
.cv-copy { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: start; }
.cv-kicker { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 12px/1.4 var(--f-label); letter-spacing: var(--label-ls, 0.16em); text-transform: uppercase; color: var(--mute); }
.cv-kicker span + span::before { content: '·'; margin-right: 10px; color: var(--accent); }
.cv-kicker span:first-child { color: var(--accent); }
.cv-title { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(54px, 7.4vw, 124px); line-height: 0.92; letter-spacing: var(--title-ls, -0.03em);
    text-transform: var(--title-tt, none); text-wrap: balance; }
.cv-accroche { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(24px, 2.5vw, 38px); line-height: 1.12; letter-spacing: var(--display-ls, -0.01em); max-width: 22ch; }
.cv-pitch { max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--soft); }
.cv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cv-note { margin-top: clamp(18px, 3vw, 36px); font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.cv-stage { position: relative; aspect-ratio: 1.22; display: grid; align-items: center; }

/* Entrée de la couverture */
.js .cv-copy > * { opacity: 0; transform: translateY(18px); animation: cv-in 1s var(--ease) forwards; }
.js .cv-copy > :nth-child(2) { animation-delay: 0.08s; } .js .cv-copy > :nth-child(3) { animation-delay: 0.18s; }
.js .cv-copy > :nth-child(4) { animation-delay: 0.26s; } .js .cv-copy > :nth-child(5) { animation-delay: 0.34s; }
.js .cv-stage { opacity: 0; animation: cv-stage-in 1.6s var(--ease) 0.15s forwards; }
@keyframes cv-in { to { opacity: 1; transform: none; } }
@keyframes cv-stage-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ================================================================ Motifs de fond, un par direction */
/* Ex Libris : la lampe de lecture et les rayonnages */
.motif-lamp { position: absolute; inset: -20% -10% auto auto; width: 80%; height: 90%; background: radial-gradient(closest-side, rgba(216, 192, 122, 0.26), rgba(216, 192, 122, 0.06) 55%, transparent); }
.motif-spines { position: absolute; left: 0; bottom: 0; width: 100%; height: 26%; opacity: 0.6;
    -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent); mask-image: linear-gradient(0deg, #000 30%, transparent); }
/* ORÉE : le plan d'architecte et le soleil */
.motif-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.motif-sun { position: absolute; right: -8vmin; top: -14vmin; width: 62vmin; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, #ffd36b 0%, rgba(244, 180, 58, 0.55) 34%, rgba(244, 180, 58, 0) 68%); opacity: 0.75; }
.motif-scale { position: absolute; left: var(--gut); bottom: 22px; width: 190px; color: rgba(30, 26, 19, 0.42); font: 11px var(--f-text); }
.motif-scale text { fill: currentColor; } .motif-north text { fill: currentColor; font: 13px var(--f-text); }
.motif-north { position: absolute; right: var(--gut); bottom: 18px; width: 38px; color: rgba(30, 26, 19, 0.42); }
/* BISEAU : la lumière du comptoir, le tapis de bar, le grain de la pellicule */
.motif-glow { position: absolute; inset: 0; background: radial-gradient(70% 60% at 12% 105%, rgba(217, 154, 78, 0.34), transparent 70%), radial-gradient(50% 50% at 92% 0%, rgba(217, 154, 78, 0.14), transparent 70%); }
.motif-dots { position: absolute; inset: 40% 0 0 0; background: radial-gradient(circle, rgba(217, 154, 78, 0.3) 1.3px, transparent 1.9px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); opacity: 0.6; }
.motif-grain { position: absolute; inset: 0; opacity: 0.09; mix-blend-mode: overlay;
    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"); }
/* Épiane : la vitrine éclairée sous la neige */
.motif-window { position: absolute; inset: 0; background: radial-gradient(55% 60% at 74% 58%, rgba(227, 180, 92, 0.3), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(27, 46, 79, 0.9), transparent 70%),
    linear-gradient(0deg, rgba(246, 236, 218, 0.07), transparent 18%); }
/* Golf : la balle dorée et sa trajectoire */
.motif-ball { position: absolute; right: -10vmin; top: 6%; width: 58vmin; aspect-ratio: 1; border-radius: 50%; opacity: 0.32;
    background: radial-gradient(circle at 34% 30%, rgba(255, 240, 200, 0.55), transparent 42%),
        radial-gradient(circle, rgba(10, 11, 9, 0.55) 0 2.6px, transparent 3.4px) 0 0 / 15px 15px,
        radial-gradient(circle at 40% 35%, #e4c88e, #7a5c24 75%);
    box-shadow: 0 0 120px 10px rgba(201, 165, 92, 0.25); }
.motif-arc { position: absolute; inset: 8% 0 0 0; width: 100%; height: 80%; }
.motif-arc path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 0.006 0.009; opacity: 0.45; vector-effect: non-scaling-stroke; }
/* Colombe : la brume perlée */
.motif-mist { position: absolute; inset: 0; background: radial-gradient(45% 50% at 85% 20%, rgba(232, 229, 239, 0.95), transparent 70%),
    radial-gradient(40% 45% at 10% 85%, rgba(227, 234, 226, 0.9), transparent 70%), radial-gradient(35% 40% at 55% 105%, rgba(243, 229, 225, 0.9), transparent 70%); }
/* Floraison : des taches de couleur qui flottent */
.motif-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.7; animation: blob 18s ease-in-out infinite alternate; }
.motif-blob.b1 { width: 46vmin; height: 46vmin; right: 4%; top: -8%; background: #f6c9d6; }
.motif-blob.b2 { width: 36vmin; height: 36vmin; right: 30%; bottom: -10%; background: #d1b0d5; animation-duration: 22s; }
.motif-blob.b3 { width: 24vmin; height: 24vmin; left: 6%; top: 10%; background: #ffe08a; opacity: 0.45; animation-duration: 26s; }
@keyframes blob { to { transform: translate3d(-6vmin, 5vmin, 0) scale(1.12); } }
/* Fragrance : le liquide ambré et la fumée */
.motif-liquid { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 75%;
    background: radial-gradient(50% 55% at 62% 100%, rgba(224, 118, 28, 0.55), rgba(74, 26, 4, 0.35) 45%, transparent 72%); animation: breathe 7s ease-in-out infinite alternate; }
.motif-smoke { position: absolute; width: 50vmin; height: 90vmin; border-radius: 50%; filter: blur(70px); background: rgba(216, 163, 92, 0.12); animation: smoke 16s ease-in-out infinite alternate; }
.motif-smoke.s1 { right: 18%; top: -30%; } .motif-smoke.s2 { right: 2%; top: 10%; animation-duration: 21s; background: rgba(192, 96, 15, 0.12); }
@keyframes breathe { to { opacity: 0.7; transform: scale(1.06); } }
@keyframes smoke { to { transform: translate3d(-8vmin, 6vmin, 0) rotate(12deg); } }

/* BJC : l'or brossé d'une monture et le reflet nacré d'une perle */
.motif-sheen { position: absolute; inset: -20% -40%; background: linear-gradient(100deg, transparent 38%, rgba(232, 213, 166, 0.1) 46%, rgba(244, 230, 193, 0.18) 50%, rgba(232, 213, 166, 0.08) 54%, transparent 62%);
    animation: sheen 9s ease-in-out infinite; }
.motif-nacre { position: absolute; right: -12%; bottom: -30%; width: 70vmin; height: 70vmin; border-radius: 50%; filter: blur(70px); opacity: 0.16;
    background: linear-gradient(115deg, #f1ece4 0%, #e3d9f0 28%, #d8ece8 52%, #f3e3d6 76%); }
@keyframes sheen { 0% { transform: translateX(-30%); } 55%, 100% { transform: translateX(30%); } }

/* Caen Roule : l'asphalte, la ligne de route qui défile, les feux des voitures */
.motif-asphalt { position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 30%, rgba(0, 86, 214, 0.28), transparent 70%), radial-gradient(40% 40% at 10% 100%, rgba(229, 72, 77, 0.12), transparent 70%); }
.motif-road { position: absolute; left: -10%; right: -10%; bottom: 7%; height: 4px; opacity: 0.55;
    background: repeating-linear-gradient(90deg, #f2f2f0 0 70px, transparent 70px 130px); animation: road 1.6s linear infinite;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
@keyframes road { to { transform: translateX(-130px); } }

/* ================================================================ Appareils en 3D */
.stage3d { perspective: 1900px; perspective-origin: 50% 30%; }
.dev3d { position: relative; width: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx, -12deg)) rotateY(var(--ry, -20deg)); will-change: transform; }
.laptop { position: relative; width: 82%; margin: 0 auto; transform-style: preserve-3d; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.laptop-lid { position: relative; z-index: 1; padding: 2.1% 2.1% 2.6%; border-radius: 3.2% / 5%; background: var(--dev-shell);
    box-shadow: inset 0 0 0 1px var(--dev-edge), inset 0 0 0 3px rgba(0, 0, 0, 0.35); transform-origin: 50% 100%; transform: rotateX(var(--lid, 14deg)); transform-style: preserve-3d; }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.6%; background: #000; }
.laptop-cam { position: absolute; top: 0.9%; left: 50%; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.16); }
.laptop-base { position: absolute; left: -8%; right: -8%; top: 100%; aspect-ratio: 16 / 9.4; border-radius: 0 0 6% 6% / 0 0 10% 10%; transform-origin: 50% 0; transform: rotateX(90deg);
    background: var(--dev-shell); box-shadow: inset 0 0 0 1px var(--dev-edge); }
.laptop-base span { position: absolute; left: 7%; right: 7%; top: 9%; height: 52%; border-radius: 2%;
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 5.5%, transparent 5.5% 6.5%), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 16%, transparent 16% 20%); opacity: 0.5; }
.laptop-base span::after { content: ''; position: absolute; left: 34%; right: 34%; top: 118%; height: 52%; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--dev-edge); }
.laptop-shadow { position: absolute; left: 0; right: 0; top: 100%; height: 40%; transform: translateY(30%); background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 70%); filter: blur(10px); z-index: -1; }
.phone { position: absolute; right: 0; bottom: -8%; width: 22%; transform: translateZ(90px) rotateY(-4deg); transform-style: preserve-3d; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), width 0.9s var(--ease), right 0.9s var(--ease), bottom 0.9s var(--ease); }
.phone-body { position: relative; padding: 3.6%; border-radius: 15% / 7%; background: var(--dev-shell);
    box-shadow: inset 0 0 0 1px var(--dev-edge), inset 0 0 0 3px rgba(0, 0, 0, 0.3), 0 34px 70px -22px rgba(0, 0, 0, 0.6), 0 0 60px -26px var(--glow); }
.phone-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 12% / 5.6%; background: #000; }
.phone-island { position: absolute; top: 4.4%; left: 50%; width: 26%; height: 2.3%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.scr { position: absolute; inset: 0; }
.scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity 1.4s var(--ease); }
.scr img.is-on { opacity: 1; }
.scr iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #000; opacity: 0; transition: opacity 0.9s var(--ease); }
.scr iframe.is-ready { opacity: 1; }
.glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 36%); }
.cv-stage .laptop { width: 86%; margin: 0 0 0 auto; }
.cv-stage .phone { right: -1%; }

/* ================================================================ Le projet en trois temps */
.actes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.acte { position: relative; display: grid; gap: 14px; align-content: start; padding: clamp(26px, 2.8vw, 40px); border-radius: var(--r2); border: 1px solid var(--line); background: var(--panel); }
.acte-n { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(64px, 6.6vw, 104px); line-height: 0.85; letter-spacing: -0.02em; color: var(--accent); }
.acte-label { font: 500 12px/1.3 var(--f-label); letter-spacing: var(--label-ls, 0.16em); text-transform: uppercase; color: var(--mute); }
.acte h3 { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; letter-spacing: var(--display-ls, -0.01em); }
.acte p:last-child { font-size: 16px; line-height: 1.7; color: var(--soft); }
.acte.is-result { border-color: var(--line-2); background: var(--panel-2); box-shadow: 0 30px 60px -40px var(--glow); }
.acte.is-result p:last-child { color: var(--ink); }
/* Variantes de métier */
[data-theme="exlibris"] .acte { border-radius: 0; border-width: 1px 0 0; background: none; padding-left: 0; padding-right: 0; }
[data-theme="exlibris"] .acte.is-result { background: none; box-shadow: none; border-top: 2px solid var(--accent); }
[data-theme="exlibris"] .acte-label::before { content: '§ '; color: var(--accent); }
[data-theme="exlibris"] .acte p:last-child { text-align: justify; hyphens: auto; }
[data-theme="oree"] .acte { border-radius: 0; background: none; }
[data-theme="oree"] .acte::before, [data-theme="oree"] .acte::after { content: ''; position: absolute; width: 16px; height: 16px; border-color: var(--ink); border-style: solid; }
[data-theme="oree"] .acte::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
[data-theme="oree"] .acte::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
[data-theme="oree"] .acte.is-result { background: var(--bg); }
[data-theme="biseau"] .acte { border-style: dashed; }
[data-theme="biseau"] .acte-n { font-style: italic; }
[data-theme="golf"] .acte-n { display: grid; place-items: center; width: 1.25em; aspect-ratio: 1; border-radius: 50%; font-size: clamp(44px, 4.2vw, 64px); border: 1px solid var(--line-2); color: var(--accent); }
[data-theme="golf"] .acte { border-radius: 26px; }
[data-theme="colombe"] .acte { text-align: center; justify-items: center; border: 0; background: none; border-top: 1px solid var(--line-2); border-radius: 0; }
[data-theme="colombe"] .acte.is-result { background: var(--panel); border-radius: 0 0 var(--r2) var(--r2); box-shadow: none; }
[data-theme="floraison"] .acte { border-radius: 40px 40px 40px 8px; }
[data-theme="floraison"] .acte-n { font-style: italic; }
/* Fragrance : la pyramide olfactive, de la note de tête à la note de fond */
[data-theme="fragrance"] .actes { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
[data-theme="fragrance"] .acte { width: 100%; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; border-radius: 0; background: none; border-width: 1px 0 0; }
[data-theme="fragrance"] .acte:nth-child(1) { max-width: 640px; } [data-theme="fragrance"] .acte:nth-child(2) { max-width: 860px; } [data-theme="fragrance"] .acte:nth-child(3) { max-width: 1080px; }
[data-theme="fragrance"] .acte-n { grid-row: span 3; }
[data-theme="fragrance"] .acte.is-result { background: linear-gradient(90deg, transparent, var(--panel-2), transparent); box-shadow: none; }
/* Caen Roule : les étapes numérotées comme des plaques d'immatriculation */
[data-theme="roule"] .acte-n { position: relative; justify-self: start; display: inline-flex; align-items: center; padding: 6px 40px; border-radius: 8px;
    font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; color: #07080a; background: #fff;
    border: 2px solid #07080a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 12px 30px -14px rgba(0, 0, 0, 0.6); overflow: hidden; white-space: nowrap; }
[data-theme="roule"] .acte-n::before, [data-theme="roule"] .acte-n::after { position: absolute; top: 0; bottom: 0; width: 26px; display: grid; place-items: center; background: #0056d6; color: #fff; font-size: 12px; font-weight: 700; }
[data-theme="roule"] .acte-n::before { content: 'F'; left: 0; }
[data-theme="roule"] .acte-n::after { content: '14'; right: 0; }
[data-theme="roule"] .acte { border-radius: 10px; }
[data-theme="roule"] .acte.is-result { border-color: #2fbf71; box-shadow: inset 0 3px 0 #2fbf71; }
/* BJC : des cartes taillées comme une pierre (pans coupés) */
[data-theme="bjc"] .acte { border: 0; border-radius: 0; background: var(--panel-2);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
[data-theme="bjc"] .acte.is-result { background: linear-gradient(150deg, rgba(139, 122, 74, 0.22), var(--panel-2) 60%); box-shadow: none; }
[data-theme="bjc"] .acte-n { font-style: italic; }

/* ================================================================ En direct, en 3D */
.live3d { display: grid; gap: 22px; }
.live3d-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.live3d-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.live3d-stage { position: relative; height: clamp(440px, 58vw, 860px); display: grid; align-items: center; }
.live3d-stage .dev3d { --rx: -6deg; --ry: 0deg; height: 100%; display: grid; align-items: center; transition: transform 0.9s var(--ease); }
.live3d-stage .laptop { width: min(88%, calc((100% - 0px) * 1)); --lid: 6deg; }
.live3d-stage .phone { right: 4%; bottom: 4%; width: auto; height: 46%; aspect-ratio: 0.486; opacity: 0; transform: translateZ(-160px) scale(0.8); pointer-events: none; }
.live3d[data-mode="mobile"] .laptop { opacity: 0; transform: translateZ(-380px) scale(0.86); pointer-events: none; }
.live3d[data-mode="mobile"] .phone { right: 50%; bottom: 2%; height: 96%; opacity: 1; transform: translateX(50%) translateZ(0); pointer-events: auto; }
.live3d[data-mode="both"] .laptop { width: 74%; margin-left: 0; }
.live3d[data-mode="both"] .phone { right: 1%; bottom: 3%; height: 72%; opacity: 1; transform: translateZ(70px) rotateY(-6deg); pointer-events: auto; }
.live3d.is-exploring .dev3d { --rx: 0deg !important; --ry: 0deg !important; }
.live3d.is-exploring .laptop { --lid: 0deg; }
.live3d.is-exploring[data-mode="both"] .phone { transform: translateZ(0); }
.live3d-shield { position: absolute; inset: 0; z-index: 5; display: grid; align-content: end; justify-items: center; gap: 10px; padding-bottom: clamp(18px, 4%, 40px);
    border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; transition: opacity 0.4s; }
.shield-pill { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--btn); color: var(--on-accent);
    font: 600 15px/1 var(--f-text); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6), 0 0 0 6px color-mix(in srgb, var(--btn) 22%, transparent); transition: transform 0.4s var(--ease); }
.live3d-shield:hover .shield-pill { transform: translateY(-3px); }
.shield-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.shield-hint { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.live3d.is-exploring .live3d-shield { opacity: 0; pointer-events: none; }
.live3d-exit { position: absolute; z-index: 6; right: 0; top: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--ink); font: 500 13px/1 var(--f-text); cursor: pointer; }
.live3d-note { margin-top: 0; }

/* ================================================================ Version mobile : l'éventail */
.mobile-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mobile-copy { display: grid; gap: 22px; justify-items: start; }
.points { list-style: none; display: grid; gap: 12px; margin: 4px 0 8px; }
.points li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.points li::before { content: ''; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--accent);
    background: radial-gradient(circle, var(--accent) 0 2.5px, transparent 3px); }
.fan { position: relative; height: clamp(420px, 44vw, 640px); perspective: 1600px; }
.fan-phone { position: absolute; left: 50%; top: 50%; width: clamp(140px, 15vw, 228px); z-index: calc(10 - var(--a, 0));
    transform: translate(-50%, -50%) translateX(calc(var(--k) * 64%)) translateZ(calc(var(--a, 0) * -110px)) rotateY(calc(var(--k) * -16deg));
    transition: transform 0.8s var(--ease); }
.fan-phone .phone-body { box-shadow: inset 0 0 0 1px var(--dev-edge), inset 0 0 0 3px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.55); }
.fan-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan-phone:hover { transform: translate(-50%, -54%) translateX(calc(var(--k) * 64%)) translateZ(60px) rotateY(0deg); z-index: 20; }
.fan.rv { opacity: 1; transform: none; }
.js .fan.rv:not(.in) .fan-phone { transform: translate(-50%, -40%) translateZ(-200px); }

/* ================================================================ La visite, carrousel 3D */
.visite { overflow: hidden; }
.flow { position: relative; }
.flow-track { --fw: min(64vw, 1000px); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 24px calc(50vw - var(--fw) / 2) 18px; }
.flow-track::-webkit-scrollbar { display: none; }
.flow-track[hidden] { display: none; }
.flow-track.is-mobile { --fw: clamp(190px, 20vw, 270px); }
.flow-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; }
.flow-item { flex: 0 0 var(--fw); scroll-snap-align: center; display: grid; gap: 14px; align-content: start; margin: 0 calc(var(--fw) * -0.04);
    transform: perspective(1500px) rotateY(var(--fy, 0deg)) scale(var(--fs, 1)); opacity: var(--fo, 1); transform-origin: 50% 50%; }
.flow-track.is-mobile .flow-item { margin: 0 calc(var(--fw) * 0.02); }
.flow-frame { padding: 1.2%; border-radius: 14px; background: var(--dev-shell); box-shadow: inset 0 0 0 1px var(--dev-edge), 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.flow-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; background: #000; }
.flow-track.is-mobile .flow-frame { padding: 3.4%; border-radius: 15% / 7%; }
.flow-track.is-mobile .flow-frame img { aspect-ratio: 390 / 844; border-radius: 12% / 5.6%; }
.flow-item figcaption { display: flex; gap: 12px; justify-content: center; font-size: 14px; color: var(--soft); opacity: var(--fc, 1); }
.flow-item figcaption b { font: 500 13px/1.5 var(--f-label); color: var(--accent); font-variant-numeric: tabular-nums; }
.flow-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
.flow-count { min-width: 76px; text-align: center; font: 500 14px/1 var(--f-label); color: var(--soft); font-variant-numeric: tabular-nums; }
.round-btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background 0.3s, border-color 0.3s; }
.round-btn:hover { border-color: var(--accent); background: var(--sky-soft); }
.round-btn:disabled { opacity: 0.3; cursor: default; }

/* ================================================================ Avant / après */
.ba2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
[data-theme="golf"] .ba2 { border-radius: 26px; }
.ba2-item { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.4vw, 34px); background: var(--bg); }
.ba2-item dt { font: 500 12px/1.4 var(--f-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.ba2-item dd { display: grid; gap: 6px; justify-items: start; }
.ba2-before s { font-size: 18px; color: var(--mute); text-decoration-color: var(--accent); }
.ba2-after { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(40px, 3.8vw, 62px); line-height: 0.95; letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ba2-gain { margin-top: 6px; padding: 6px 12px; border-radius: 999px; font: 500 12.5px/1.2 var(--f-text); color: var(--ink); background: var(--sky-soft); }
.resultats .note { margin-top: 18px; }

/* ================================================================ Direction artistique */
.da-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.da-copy { display: grid; gap: 22px; justify-items: start; }
.fiche2 { width: 100%; border-top: 1px solid var(--line); margin-top: 8px; }
.fiche2 > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fiche2 dt { font: 500 11.5px/1.4 var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.fiche2 dd { font-size: 15.5px; }
.tags2 { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags2 li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--soft); }
.da-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.da-board { display: grid; gap: clamp(22px, 2.6vw, 34px); padding: clamp(22px, 3vw, 40px); border-radius: calc(var(--r2) + 4px); border: 1px solid var(--line); background: var(--panel); }
[data-theme="golf"] .da-board { border-radius: 30px; }
.swatches { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.swatches li { display: grid; gap: 4px; font-size: 13.5px; }
.sw { aspect-ratio: 1.7; border-radius: calc(var(--r2) * 0.6 + 4px); background: var(--c); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.22); margin-bottom: 6px; }
[data-theme="golf"] .sw { border-radius: 16px; }
.swatches b { font-weight: 600; }
.swatches code { font: 12px var(--f-label); color: var(--mute); }
.specimens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.spec { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: calc(var(--r2) * 0.6 + 6px); border: 1px solid var(--line); }
[data-theme="golf"] .spec { border-radius: 18px; }
.spec-aa { font-size: 58px; line-height: 1; color: var(--accent); }
.spec-display .spec-aa { font-family: var(--f-display); font-weight: var(--display-w, 400); }
.spec-text .spec-aa { font-family: var(--f-text); font-weight: 500; }
.spec p { display: grid; gap: 2px; font-size: 14px; } .spec p span { color: var(--mute); font-size: 13px; }
.spec-sample { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(28px, 3vw, 46px); line-height: 1.08; letter-spacing: var(--display-ls, -0.01em); }

/* ================================================================ Projet suivant, dans ses propres couleurs */
.suivant { padding-top: 0 !important; }
.next { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 60px);
    padding: clamp(30px, 5vw, 70px); overflow: hidden; border-radius: calc(var(--r2) + 6px); text-decoration: none; background: var(--bg); color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 100px -60px var(--glow); font-family: var(--f-text); }
.next[data-theme="golf"] { border-radius: 36px; }
.next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 100%, var(--glow), transparent 70%); }
.next-copy { display: grid; gap: 14px; }
.next-label { font: 500 12px/1.4 var(--f-label); letter-spacing: var(--label-ls, 0.16em); text-transform: uppercase; color: var(--accent); }
.next-name { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(46px, 6.4vw, 104px); line-height: 0.92; letter-spacing: var(--title-ls, -0.03em); text-transform: var(--title-tt, none); }
.next-acc { font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: clamp(20px, 2vw, 30px); line-height: 1.15; }
.next-meta { font-size: 14px; color: var(--soft); }
.next-img { perspective: 1400px; }
.next-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-2);
    transform: rotateY(-16deg) rotateX(6deg); transition: transform 1s var(--ease); }
.next:hover .next-img img { transform: rotateY(-4deg) rotateX(2deg) scale(1.02); }
.next:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.all-link { margin-top: 16px; }

/* ================================================================ Contact */
.contact2 { border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 0% 0%, var(--sky-soft), transparent 70%), var(--bg-2); }
.contact2-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact2-intro { position: sticky; top: 150px; display: grid; gap: 22px; justify-items: start; }
.steps2 { list-style: none; display: grid; gap: 12px; margin: 6px 0; }
.steps2 li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.55; color: var(--soft); }
.steps2 span { font: 500 13px/1.6 var(--f-label); color: var(--accent); }
.mail2 { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line-2); }
.mail2:hover { border-color: var(--accent); }
.form2 { position: relative; display: grid; gap: 26px; padding: clamp(22px, 3.2vw, 44px); border-radius: calc(var(--r2) + 6px); border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 40px 90px -60px var(--glow); }
[data-theme="golf"] .form2 { border-radius: 30px; }
.form2-head { display: flex; justify-content: space-between; gap: 10px; font: 500 12px/1 var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.form2-head span:first-child { color: var(--accent); }
.form2 fieldset { border: 0; display: grid; gap: 16px; min-width: 0; }
.form2 legend { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--f-display); font-weight: var(--display-w, 400); font-size: 24px; }
.form2 legend span { font: 500 12px/1 var(--f-label); color: var(--accent); }
.form2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field2 { display: grid; gap: 8px; }
.field2-label { font-size: 13.5px; font-weight: 500; color: var(--soft); }
.field2-label em { font-style: normal; color: var(--accent); }
.field2-label small { font-size: 12px; font-weight: 400; color: var(--mute); }
.form2 input[type="text"], .form2 input[type="email"], .form2 input[type="tel"], .form2 textarea {
    width: 100%; min-height: 50px; padding: 13px 16px; border-radius: min(var(--r2), 14px); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
    font: 400 15.5px/1.4 var(--f-text); transition: border-color 0.25s, box-shadow 0.25s; }
.form2 textarea { resize: vertical; min-height: 130px; }
.form2 input::placeholder, .form2 textarea::placeholder { color: var(--mute); opacity: 0.85; }
.form2 input:focus, .form2 textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--sky-soft); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chip2 { position: relative; }
.chip2 input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip2 span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--soft); cursor: pointer; transition: all 0.25s; }
.chip2 span:hover { border-color: var(--accent); color: var(--ink); }
.chip2 input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip2 input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field2-error { display: none; font-size: 13px; color: #d9534f; }
[data-theme="exlibris"] .field2-error, [data-theme="epiane"] .field2-error, [data-theme="golf"] .field2-error, [data-theme="biseau"] .field2-error, [data-theme="fragrance"] .field2-error, [data-theme="bjc"] .field2-error, [data-theme="roule"] .field2-error { color: #ff9b8a; }
.field2.is-invalid .field2-error { display: block; }
.field2.is-invalid input, .field2.is-invalid textarea { border-color: #d9534f; }
.form2-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.form2-foot p { font-size: 13.5px; color: var(--mute); max-width: 32ch; }
.form2-alert { font-size: 14px; color: #d9534f; }
.form2-alert:empty { display: none; }
.form2-done { display: none; gap: 14px; padding: 22px; border-radius: min(var(--r2), 16px); background: var(--panel-2); border: 1px solid var(--line-2); }
.form2.is-sent .form2-done { display: grid; }
.form2-done-title { font-family: var(--f-display); font-size: 26px; }
.form2-done p { font-size: 15px; line-height: 1.6; color: var(--soft); }
.form2-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ================================================================ Écrans moyens et étroits */
@media (max-width: 1080px) {
    .actes { grid-template-columns: 1fr; }
    .acte { grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; }
    .acte-n { grid-row: span 3; }
    [data-theme="colombe"] .acte { grid-template-columns: 1fr; }
    [data-theme="colombe"] .acte-n { grid-row: auto; }
}
@media (max-width: 960px) {
    .cv { min-height: 0; }
    .cv-grid, .mobile-grid, .da-grid, .contact2-grid, .next { grid-template-columns: 1fr; }
    .cv-stage { width: min(100%, 640px); margin: 8px auto 0; }
    .contact2-intro { position: static; }
    .fan { height: clamp(380px, 90vw, 560px); }
    .fan-phone { width: clamp(130px, 30vw, 200px); }
}
@media (max-width: 760px) {
    .live3d-stage { height: min(78svh, 700px); }
    .live3d .seg button[data-mode="both"] { display: none; }
    .live3d[data-mode="mobile"] .phone { height: 94%; }
    .live3d-stage .laptop { width: 100%; }
    .flow-track { --fw: 84vw; }
    .flow-track.is-mobile { --fw: 62vw; }
    .flow-item { margin: 0 2vw; }
    .form2-grid { grid-template-columns: 1fr; }
    .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .specimens { grid-template-columns: 1fr; }
    .acte { grid-template-columns: 1fr; }
    .acte-n { grid-row: auto; font-size: 56px; }
    [data-theme="fragrance"] .acte { grid-template-columns: 1fr; }
    .fan-phone { transform: translate(-50%, -50%) translateX(calc(var(--k) * 52%)) translateZ(calc(var(--a, 0) * -110px)) rotateY(calc(var(--k) * -18deg)); }
    .motif-scale, .motif-north { display: none; }
    .case-nav a { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .js .cv-copy > *, .js .cv-stage { opacity: 1; transform: none; animation: none; }
    .motif-blob, .motif-liquid, .motif-smoke, .motif-sheen, .motif-road, .shield-dot { animation: none; }
    .scr img { transition: none; }
}

/* Fragrance : le nom en capitales espacées, comme sur le flacon ; un peu plus petit pour tenir à côté des appareils */
[data-theme="fragrance"] .cv-title { font-size: clamp(42px, 5.2vw, 88px); }
/* Titre du contact : à côté du formulaire, un cran plus petit */
.contact2 .h-sec { font-size: clamp(32px, 3.6vw, 56px); }


/* ================================================================ Téléphone (20/10/2026)
   Plus compact et plus lisible : le sommaire colle sous l'en-tête (en haut quand l'en-tête s'efface),
   titres ramenés, textes un cran plus petits, sections et cartes moins espacées. */
@media (max-width: 720px) {
    .case-nav { top: 56px; transition: top 0.35s var(--ease); }
    .top-hidden .case-nav { top: 0; }
    .case-nav ul { height: 42px; }
    .case-nav a { min-height: 40px; padding: 0 9px; font-size: 10.5px; }
    .cv { padding-bottom: 20px; }
    .cv-grid { gap: 18px; padding-top: 12px; }
    .cv-copy { gap: 12px; }
    .cv-kicker { gap: 4px 8px; font-size: 10.5px; }
    .cv-title, [data-theme="fragrance"] .cv-title { font-size: clamp(36px, 10.6vw, 46px); }
    .cv-accroche { font-size: 19px; }
    .cv-pitch { font-size: 14.5px; line-height: 1.6; }
    .cv-note { margin-top: 14px; font-size: 11.5px; }
    .h-sec, .contact2 .h-sec { font-size: clamp(27px, 7.6vw, 34px); }
    [data-theme] .lead { font-size: 15px; line-height: 1.6; }
    [data-theme] .sec { padding: 52px 0; }
    .sec-top { gap: 12px; margin-bottom: 26px; }
    .sec-row { gap: 14px 24px; }
    .actes { gap: 12px; }
    .acte { gap: 10px; padding: 20px 18px; }
    .acte-n { font-size: 40px; }
    [data-theme="golf"] .acte-n { font-size: 34px; }
    .acte h3 { font-size: 21px; }
    .acte p:last-child { font-size: 14.5px; line-height: 1.6; }
    .live3d { gap: 16px; }
    .live3d-stage { height: min(70svh, 620px); }
    .mobile-grid, .da-grid, .contact2-grid { gap: 28px; }
    .fan { height: clamp(320px, 86vw, 420px); }
    .flow-item figcaption { font-size: 13px; }
    .ba2-after { font-size: 34px; }
    .spec-sample { font-size: 26px; }
    .spec-aa { font-size: 44px; }
    .next-name { font-size: clamp(34px, 10vw, 44px); }
    .next-acc { font-size: 17px; }
    .contact2-intro { gap: 16px; }
    .form2 { gap: 20px; padding: 20px 16px; }
    .form2 legend { margin-bottom: 10px; font-size: 20px; }
    .form2-done-title { font-size: 22px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .case-nav { transition: none; } }
