/* ==========================================================================
   REVOLUM — feuille de styles
   ========================================================================== */

:root {
  --night: #04071a;
  --night-2: #090f2e;
  --indigo: #2b3c8e;
  --azure: #1672c4;
  --cyan: #03a8ea;
  --sky: #5fd0ff;
  --paper: #f4f6fb;
  --white: #fff;
  --ink: #0a0f24;
  --ink-2: #3a4260;
  --muted: #6b7391;
  --line: rgba(10, 15, 36, .1);

  /* dégradé du symbole (surchargé sur fond sombre) */
  --g0: #2b3c8e;
  --g1: #03a8ea;
  --grad: linear-gradient(95deg, var(--indigo), var(--cyan));

  --ff: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-serif: 'Instrument Serif', 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
  --radius: 26px;
  --gutter: clamp(20px, 4vw, 56px);
}

.theme-dark {
  --g0: #4763e6;
  --g1: #33ceff;
  --grad: linear-gradient(95deg, #8fa5ff, #33ceff);
  --line: rgba(255, 255, 255, .12);
  --muted: rgba(226, 233, 255, .62);
  color: #fff;
  background: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Typographie ---------- */
em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }
.title { margin-top: 22px; font-size: clamp(2.2rem, 4.6vw, 4.2rem); font-weight: 300; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.title em { font-size: 1.08em; }
.title-xl { font-size: clamp(2.8rem, 6.4vw, 6rem); }

.section { padding-block: clamp(84px, 11vw, 168px); position: relative; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.section-intro { color: var(--ink-2); max-width: 46ch; justify-self: end; }
.theme-dark .section-intro { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1; white-space: nowrap; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s, color .3s, border-color .3s; }
.btn svg, .link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(5px); }
.btn-primary { color: #fff; background: linear-gradient(95deg, #3148b8, #06a9ee); box-shadow: 0 10px 34px -10px rgba(6, 169, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(6, 169, 238, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn-light { background: #fff; color: var(--ink); padding: 13px 22px; }
.btn-light:hover { background: var(--sky); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--azure); }

/* ---------- Symbole (SVG généré par main.js) ---------- */
.mark svg { width: 100%; height: auto; overflow: visible; }
.mk-vortex, .mk-core, .mk-blade { transform-origin: 180px 190px; }
.mk-vortex { transform: rotate(var(--rot, 0deg)); }
.mk-core { animation: mk-spin 22s linear infinite; }
.mk-bulb { opacity: var(--bulb, 1); }
.mk-outline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mk-ring { fill: none; stroke: rgba(160, 190, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mk-sat { fill: #bfeeff; filter: drop-shadow(0 0 6px #33ceff) drop-shadow(0 0 14px #33ceff); }
@keyframes mk-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background .4s, backdrop-filter .4s, height .4s var(--ease), box-shadow .4s; }
.site-header.is-scrolled { --header-h: 68px; background: rgba(4, 7, 26, .88); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 36px; width: auto; filter: brightness(0) invert(1); transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 30px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 38px); font-size: .93rem; font-weight: 400; }
.nav > a:not(.btn) { position: relative; padding: 8px 0; opacity: .82; transition: opacity .3s; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav > a:not(.btn):hover, .nav > a.is-current { opacity: 1; }
.nav > a:not(.btn):hover::after, .nav > a.is-current::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--header-h); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 55% at 78% 38%, rgba(30, 62, 170, .42), transparent 70%),
    radial-gradient(40% 40% at 12% 90%, rgba(3, 168, 234, .14), transparent 70%),
    linear-gradient(180deg, #04071a 0%, #070c26 60%, #04071a 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 88px 88px; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); }

.hero-inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(24px, 4vw, 72px); padding-block: clamp(36px, 6vh, 80px); }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin-top: 26px; font-size: clamp(3rem, 7.2vw, 7rem); font-weight: 200; line-height: .96; letter-spacing: -.04em; }
.hero-title .line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.hero-title .line > span { display: block; transform: translateY(115%); animation: rise 1.2s var(--ease) .15s forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .28s; }
.hero-title em { font-size: 1.1em; letter-spacing: -.02em; }
.hero-lead { margin-top: 30px; max-width: 52ch; font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: rgba(226, 233, 255, .78); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .eyebrow, .hero-lead, .hero-actions, .hero-foot { opacity: 0; animation: fade-up 1s var(--ease) forwards; }
.hero .eyebrow { animation-delay: .1s; }
.hero-lead { animation-delay: .55s; }
.hero-actions { animation-delay: .7s; }
.hero-foot { animation-delay: 1s; }

.hero-visual { display: grid; place-items: center; }
.mark-hero { position: relative; width: min(100%, 37svh, 370px); transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .9s var(--ease); }
/* halo et faisceaux centrés sur le cœur du vortex (44,9 % / 29,8 % du symbole) */
.mark-hero::before, .mark-hero::after { content: ""; position: absolute; left: 44.9%; top: 29.8%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -1; }
.mark-hero::before { width: 230%; margin: -115% 0 0 -115%; background: radial-gradient(closest-side, rgba(51, 206, 255, .34), rgba(71, 99, 230, .2) 38%, transparent 72%); opacity: 0; animation: halo-on 2.2s ease-out 1.5s forwards, halo-pulse 7s ease-in-out 3.7s infinite; }
.mark-hero::after { width: 420%; margin: -210% 0 0 -210%; background: repeating-conic-gradient(from 0deg, rgba(120, 200, 255, .075) 0deg 3deg, transparent 3deg 24deg); -webkit-mask-image: radial-gradient(closest-side, transparent 16%, #000 30%, transparent 78%); mask-image: radial-gradient(closest-side, transparent 16%, #000 30%, transparent 78%); opacity: 0; animation: halo-on 3s ease-out 1.8s forwards, mk-spin 90s linear infinite; }

.mark-hero .mk-blade { animation: blade-in 1.5s var(--ease) both; animation-delay: calc(.1s + var(--i) * 80ms); }
.mark-hero .mk-outline { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.7s cubic-bezier(.65, 0, .2, 1) 1s forwards; }
.mark-hero .mk-bar { animation: bar-in .7s var(--ease) both; animation-delay: calc(2.1s + var(--i) * 80ms); }
.mark-hero .mk-orbits { opacity: 0; animation: halo-on 2s ease-out 1.6s forwards; }

.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px 28px; border-top: 1px solid var(--line); }
.hero-pillars { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 4vw, 60px); font-size: .9rem; letter-spacing: .04em; color: rgba(226, 233, 255, .8); }
.hero-pillars span { margin-right: 12px; font-family: var(--ff-serif); font-style: italic; font-size: 1.1rem; color: var(--sky); }
.scroll-hint { display: inline-flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-hint-ring { width: 46px; height: 46px; padding: 11px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .3s; }
.scroll-hint:hover .scroll-hint-ring { border-color: var(--sky); }
.scroll-hint .mk-vortex { animation: mk-spin 9s linear infinite; }

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blade-in { from { opacity: 0; transform: rotate(-220deg) scale(.1); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes halo-on { to { opacity: 1; } }
@keyframes halo-pulse { 50% { transform: scale(1.08); filter: brightness(1.25); } }

/* ---------- Bandeau secteurs ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; }
.ticker-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: ticker 44s linear infinite; }
.ticker span { font-size: .82rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: rgba(226, 233, 255, .7); white-space: nowrap; }
.ticker i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: none; }
@keyframes ticker { to { transform: translateX(calc(-50% - 22px)); } }

/* ==========================================================================
   Approche
   ========================================================================== */
.statement { margin-top: 26px; max-width: 24em; font-size: clamp(1.7rem, 3.5vw, 3.3rem); font-weight: 300; line-height: 1.16; letter-spacing: -.025em; text-wrap: pretty; }
.statement em { font-size: 1.08em; }

.pillars { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 120px); margin-top: clamp(56px, 8vw, 120px); }
.pillars-sticky { position: sticky; top: calc(var(--header-h) + 36px); }
.pillars-stage { position: relative; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, #fff 0%, #fff 55%, rgba(255, 255, 255, 0) 100%); }
.pillars-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.pillars-stage::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from -90deg, var(--cyan) calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); }
.mark-pillars { width: 66%; }
.pillars-count { position: absolute; right: 2%; bottom: 4%; font-size: .85rem; letter-spacing: .12em; color: var(--muted); }
.pillars-count b { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 2.2rem; letter-spacing: 0; color: var(--ink); margin-right: 6px; }
.pillars-note { margin-top: 36px; max-width: 42ch; color: var(--ink-2); }

.pillar { padding-block: clamp(36px, 6vw, 76px); border-top: 1px solid var(--line); opacity: .32; transition: opacity .7s var(--ease); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar.is-active { opacity: 1; }
.pillar-num { font-family: var(--ff-serif); font-style: italic; font-size: 1.3rem; color: var(--azure); }
.pillar h3 { margin-top: 14px; font-size: clamp(2.1rem, 4.6vw, 4.2rem); font-weight: 300; line-height: 1; letter-spacing: -.035em; }
.pillar p { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; }

/* ==========================================================================
   Expertises
   ========================================================================== */
.expertises { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(20, 40, 120, .35); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.card-tag { position: absolute; left: 20px; top: 20px; border: 1px solid rgba(255, 255, 255, .16); padding: 9px 16px; border-radius: 999px; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(4, 7, 26, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* illustrations vectorielles des cartes (générées par _tools/illus.py) */
.illu { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.card:hover .illu { transform: scale(1.04); }
.illu .blend { mix-blend-mode: screen; }
.illu text { font-family: var(--ff); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; fill: rgba(226, 233, 255, .6); }
.illu text.val { font-size: 14px; letter-spacing: .04em; text-transform: none; fill: #dff8ff; }
.illu .cable { stroke: rgba(190, 210, 255, .45); stroke-width: 1; }

.illu-etude .wall { fill: rgba(120, 150, 255, .06); stroke: rgba(150, 180, 255, .3); stroke-width: 1; }
.illu-etude .wall-2 { fill: rgba(120, 150, 255, .035); }
.illu-etude .window { fill: rgba(95, 208, 255, .06); stroke: rgba(150, 190, 255, .28); stroke-width: 1; }
.illu-etude .floor { fill: rgba(255, 255, 255, .03); stroke: rgba(150, 180, 255, .4); stroke-width: 1; }
.illu-etude .grid { stroke: rgba(150, 180, 255, .09); stroke-width: 1; }
.illu-etude .wire { fill: none; stroke: rgba(150, 180, 255, .2); stroke-width: 1; stroke-dasharray: 3 6; }
.illu-etude .iso { fill: none; stroke-width: 1; }
.illu-etude .iso-1 { stroke: rgba(234, 252, 255, .85); }
.illu-etude .iso-2 { stroke: rgba(95, 216, 255, .6); }
.illu-etude .iso-3 { stroke: rgba(111, 140, 255, .5); stroke-dasharray: 2 4; }
.illu-etude .pool { animation: illu-pool 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.illu-etude .desk { fill: rgba(190, 215, 255, .1); stroke: rgba(200, 222, 255, .5); stroke-width: 1; }
.illu-etude .leg { stroke: rgba(200, 222, 255, .3); stroke-width: 1; }
.illu-etude .lamp { fill: #eafcff; }
.illu-etude .cone { opacity: .8; transition: opacity .8s; }
.card:hover .illu-etude .cone { opacity: 1; }
.illu-etude .scan { stroke: #9be9ff; stroke-width: 1.5; filter: drop-shadow(0 0 6px #33ceff); animation: illu-scan 7s cubic-bezier(.45, 0, .55, 1) infinite; }
.illu-etude .pin { fill: #eafcff; stroke: rgba(51, 206, 255, .45); stroke-width: 5; }
.illu-etude .lead { fill: none; stroke: rgba(226, 233, 255, .55); stroke-width: 1; }
@keyframes illu-pool { 50% { opacity: .72; } }
@keyframes illu-scan { 0% { transform: translate(0, 0); opacity: 0; } 8%, 92% { opacity: .9; } 100% { transform: translate(291px, 168px); opacity: 0; } }

.illu-gamme .ceiling { fill: rgba(255, 255, 255, .035); }
.illu-gamme .edge { fill: none; stroke: rgba(160, 190, 255, .38); stroke-width: 1; }
.illu-gamme .ground { stroke: rgba(160, 190, 255, .24); stroke-width: 1; }
.illu-gamme .star { fill: rgba(226, 240, 255, .7); }
.illu-gamme .body { fill: #0c1542; stroke: url(#d-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.illu-gamme .rib { stroke: rgba(143, 165, 255, .6); stroke-width: 1; }
.illu-gamme .emit { fill: #eafcff; }
.illu-gamme .beam, .illu-gamme .emit { animation: illu-beam 8s ease-in-out infinite; animation-delay: calc(var(--i) * 1.1s); }
.illu-gamme .beam { opacity: .16; }
.illu-gamme .emit { opacity: .45; }
.illu-gamme .lum text { transition: fill .5s; }
.card:hover .illu-gamme .beam, .card:hover .illu-gamme .emit { animation: none; opacity: 1; transition: opacity .7s; }
.card:hover .illu-gamme .lum text { fill: #dff8ff; }
@keyframes illu-beam { 10%, 46% { opacity: 1; } 62%, 100% { opacity: var(--off, .16); } }
.illu-gamme .emit { --off: .45; }

.card-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3.4vw, 46px); flex: 1; }
.card-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.card-body > p { color: var(--ink-2); }
.checks { display: grid; gap: 0; margin-top: 4px; }
.checks li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); font-weight: 400; font-size: 1rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.card .link-arrow { margin-top: auto; padding-top: 12px; }

/* ==========================================================================
   Méthode — le cycle
   ========================================================================== */
.methode { background: radial-gradient(60% 60% at 22% 62%, rgba(30, 62, 170, .32), transparent 70%), var(--night); overflow: hidden; }
.cycle { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.cycle-dial { position: relative; width: min(100%, 480px); aspect-ratio: 1; margin-inline: auto; padding: 9%; }
.cycle-dial > svg { width: 100%; height: 100%; overflow: visible; }
.cycle-track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.cycle-inner { fill: rgba(255, 255, 255, .025); stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.cycle-seg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; stroke-linecap: round; transition: stroke .6s, stroke-width .6s; }
.cycle-seg.is-done { stroke: rgba(95, 208, 255, .45); }
.cycle-seg.is-active { stroke: url(#cycleGrad); stroke-width: 4; filter: drop-shadow(0 0 10px rgba(51, 206, 255, .7)); }
.cycle-pointer { transform-origin: 200px 200px; transform: rotate(var(--a, 0deg)); transition: transform 1.2s var(--ease); }
.cycle-dot { fill: #fff; }
.cycle-glow { fill: rgba(51, 206, 255, .35); filter: blur(4px); }
.cycle-core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mark-cycle { width: 38%; }
.mark-cycle .mk-vortex { transition: transform 1.4s var(--ease); }
.cycle-label { position: absolute; font-family: var(--ff-serif); font-style: italic; font-size: 1.25rem; color: rgba(226, 233, 255, .4); transition: color .5s; }
.cycle-label.is-active { color: var(--sky); }
.cycle-label.l0 { top: 0; left: 50%; transform: translateX(-50%); }
.cycle-label.l1 { right: 0; top: 50%; transform: translateY(-50%); }
.cycle-label.l2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.cycle-label.l3 { left: 0; top: 50%; transform: translateY(-50%); }

.step { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: start; width: 100%; padding: 26px 0; text-align: left; border-top: 1px solid var(--line); }
.cycle-steps li:last-child .step { border-bottom: 1px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, #8fa5ff, #33ceff); transform: scaleX(0); transform-origin: left; }
.step.is-active::before { transform: scaleX(1); transition: transform var(--step-dur, .6s) linear; }
.step-num { font-family: var(--ff-serif); font-style: italic; font-size: 1.25rem; line-height: 1.9; color: var(--muted); transition: color .4s; }
.step-body { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .7s var(--ease); }
.step-body strong { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.2; color: rgba(255, 255, 255, .5); transition: color .4s; }
.step-body > span { overflow: hidden; color: var(--muted); max-width: 48ch; opacity: 0; transition: opacity .6s, padding .7s var(--ease); }
.step:hover strong { color: rgba(255, 255, 255, .85); }
.step.is-active .step-body { grid-template-rows: auto 1fr; }
.step.is-active strong { color: #fff; }
.step.is-active .step-num { color: var(--sky); }
.step.is-active .step-body > span { opacity: 1; padding-top: 10px; }

/* ==========================================================================
   Réalisations
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 23vw, 330px); gap: clamp(10px, 1.3vw, 18px); }
.shot { position: relative; overflow: hidden; border-radius: 20px; background: #dfe4f0; cursor: zoom-in; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease), filter .8s; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 26, .78)); opacity: .0; transition: opacity .6s; }
.shot figcaption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; color: #fff; font-size: 1.05rem; font-weight: 400; line-height: 1.3; transform: translateY(12px); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.shot figcaption span { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--sky); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }
.shot:hover figcaption, .shot:focus-visible figcaption { transform: none; opacity: 1; }
.s1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.s2 { grid-column: 5 / 13; grid-row: 1; }
.s3 { grid-column: 5 / 9; grid-row: 2; }
.s4 { grid-column: 9 / 13; grid-row: 2; }
.s5 { grid-column: 1 / 8; grid-row: 3; }
.s6 { grid-column: 8 / 13; grid-row: 3 / 5; }
.s7 { grid-column: 1 / 4; grid-row: 4; }
.s8 { grid-column: 4 / 8; grid-row: 4; }
.s9 { grid-column: 1 / 13; grid-row: 5 / 7; }

/* ==========================================================================
   Engagement
   ========================================================================== */
.engagement { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 14vw, 200px) clamp(48px, 6vw, 80px); }
.engagement-media { position: absolute; inset: -12% 0; z-index: -2; transform: translate3d(0, var(--parallax, 0px), 0); }
.engagement-media img { width: 100%; height: 100%; object-fit: cover; }
.engagement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4, 7, 26, .92) 0%, rgba(4, 7, 26, .7) 45%, rgba(4, 7, 26, .25) 100%), linear-gradient(0deg, rgba(4, 7, 26, .85), transparent 45%); }
.engagement-copy { max-width: 640px; }
.engagement-copy > p:not(.eyebrow) { margin-top: 28px; font-size: 1.12rem; color: rgba(236, 241, 255, .86); }
.engagement-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(64px, 10vw, 140px); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.engagement-points li { padding: clamp(22px, 2.6vw, 36px); background: rgba(4, 7, 26, .5); }
.engagement-points b { display: block; font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.engagement-points span { display: block; margin-top: 10px; color: rgba(236, 241, 255, .8); font-size: .98rem; line-height: 1.5; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { overflow: hidden; background: radial-gradient(55% 60% at 85% 20%, rgba(30, 62, 170, .4), transparent 70%), var(--night); }
.contact-mark { position: absolute; right: -14vw; top: 50%; width: min(78vw, 980px); margin-top: calc(min(78vw, 980px) / -2); opacity: .16; pointer-events: none; }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.contact-copy > p:not(.eyebrow) { margin-top: 28px; max-width: 44ch; color: var(--muted); font-size: 1.1rem; }
.contact-mail { display: inline-block; margin-top: 44px; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 300; letter-spacing: -.02em; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 8px; transition: border-color .3s, color .3s; }
.contact-mail span { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-mail:hover { color: var(--sky); border-color: var(--sky); }

.form { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 46px); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; }
.field > span, .chips legend { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; font: inherit; font-weight: 400; color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); border-radius: 0; outline: none; transition: border-color .3s, box-shadow .3s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 1px 0 var(--sky); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8a8a; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { margin-block: 6px; }
.chips legend { margin-bottom: 12px; padding: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span { display: block; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); font-size: .93rem; font-weight: 400; transition: background .3s, border-color .3s, color .3s; }
.chips label:hover span { border-color: rgba(255, 255, 255, .55); }
.chips input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note.is-error { color: #ffabab; }
.form-note.is-ok { color: var(--sky); }
.form-legal { font-size: .8rem; color: var(--muted); }
.form-legal a, .footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-legal a:hover, .footer-legal a:hover { color: var(--sky); }
.form button[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page mentions légales ---------- */
.legal-page { background: #fff; }
.legal-page .site-header { position: sticky; top: 0; }
.legal { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px); }
.legal-inner { max-width: 860px; }
.legal section { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.legal h2 { margin-bottom: 14px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 400; letter-spacing: -.02em; }
.legal p { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal a { color: var(--azure); text-decoration: underline; text-underline-offset: 3px; }
.legal dl { display: grid; margin-top: 18px; }
.legal dl div { display: grid; grid-template-columns: minmax(150px, 240px) 1fr; gap: 6px 24px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 400; }
.legal-page .footer-legal { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 600px) { .legal dl div { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 44px 30px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: .93rem; color: rgba(226, 233, 255, .78); }
.footer-nav a:hover, .footer-mail:hover { color: var(--sky); }
.footer-mail { font-weight: 400; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding: 22px 84px 0 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- Retour en haut ---------- */
.to-top { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(4, 7, 26, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); --g0: #6f88ff; --g1: #33ceff; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); transition: opacity .5s, transform .5s var(--ease), visibility .5s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top > svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.to-top .to-top-progress { stroke: var(--sky); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); stroke-linecap: round; }
.to-top .mark { width: 28px; }

/* ---------- Visionneuse ---------- */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: clamp(16px, 4vw, 56px); border: 0; background: rgba(4, 7, 26, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; animation: fade-in .4s; }
.lightbox::backdrop { background: rgba(4, 7, 26, .6); }
.lightbox figure { display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); border-radius: 14px; object-fit: contain; }
.lightbox figcaption { font-size: .95rem; color: rgba(226, 233, 255, .8); }
.lightbox-nav, .lightbox-close { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); font-size: 1.6rem; line-height: 1; transition: background .3s, border-color .3s; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.lightbox-close { position: absolute; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px); }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Adaptation mobile
   ========================================================================== */
@media (max-width: 1000px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-intro { justify-self: start; }
  .cycle { grid-template-columns: 1fr; }
  .cycle-dial { width: min(100%, 380px); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 96px var(--gutter) 40px; background: rgba(4, 7, 26, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 300; letter-spacing: -.02em; opacity: 0; visibility: hidden; transition: none; }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
  .nav > a:not(.btn) { opacity: 1; }
  .nav .nav-cta { margin-top: 28px; font-size: 1rem; padding: 17px 26px; }
  .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4, 7, 26, .92); }

  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 20px 36px; }
  .hero-visual { order: -1; }
  .mark-hero { width: min(40vw, 25svh, 200px); }
  .hero .eyebrow { font-size: .68rem; letter-spacing: .16em; align-items: flex-start; line-height: 1.5; }
  .hero .eyebrow .dot { margin-top: .35em; flex: none; }
  .hero-lead { margin-top: 22px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { padding: 15px 22px; }
  .hero-title { font-size: clamp(2.7rem, 12.5vw, 4.6rem); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .scroll-hint { display: none; }

  .pillars { grid-template-columns: 1fr; }
  .pillars-sticky { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; }
  .pillars-note { margin-top: 0; font-size: .98rem; }
  .pillars-count { display: none; }
  .pillar { opacity: 1; }

  .cards { grid-template-columns: 1fr; }
  .illu text, .illu .anno { display: none; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; grid-auto-flow: dense; }
  .shot { grid-column: auto; grid-row: auto; border-radius: 14px; }
  .s1, .s6 { grid-row: span 2; }
  .s2, .s5, .s9 { grid-column: span 2; }
  .shot::after { opacity: .85; }
  .shot figcaption { opacity: 1; transform: none; left: 14px; right: 14px; bottom: 12px; font-size: .9rem; }

  .engagement-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-nav { grid-row: 2; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .illu-gamme .beam, .illu-gamme .emit { animation: none; opacity: 1; }
  .illu-etude .scan { display: none; }
}
