/* ==========================================================
   CASEMAN — Charte graphique
   Violet profond : sérieux, confiance · Or : ambition, valeur
   Gris anthracite : sobriété, crédibilité
   ========================================================== */
:root {
  --ink: #261C2C;
  --text: #4E4552;
  --muted: #7D7482;
  --violet-900: #22132A;
  --violet-800: #4A1754;
  --violet: #62206E;
  --violet-500: #8B3A99;
  --violet-100: #F1E5F3;
  --violet-50: #FAF6FA;
  --crimson: #9E1B4A;
  --gold: #F0B414;
  --gold-grad: linear-gradient(135deg, #F7C531, #F0B414 60%, #E39E0A);
  --violet-grad: linear-gradient(135deg, #7A2A88 0%, #62206E 50%, #3E1347 100%);
  --line: #ECE5EE;
  --white: #FFFFFF;

  --head: 'Urbanist', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38,28,44,.04), 0 12px 32px -12px rgba(38,28,44,.14);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
strong { color: var(--ink); font-weight: 600; }
.accent { color: var(--violet); position: relative; }
.accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--gold-grad); border-radius: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); flex: none; transform: skewY(-30deg); }
.eyebrow--light { color: #EADCEE; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 8px;
  font-family: var(--head); font-weight: 600; font-size: .92rem; letter-spacing: .01em; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-800); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(98,32,110,.6); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }
.btn--gold { background: var(--gold-grad); color: var(--violet-900); }
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(227,158,10,.7); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; width: max-content; }
.logo__img { height: 58px; width: auto; }
.footer .logo__img { height: 72px; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(38,28,44,.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { font-size: .92rem; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; transition: color .25s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:not(.btn):hover { color: var(--violet); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 170px 0 90px; text-align: center; background: linear-gradient(180deg, var(--violet-50) 0%, #fff 100%); }
/* Facettes du logo en arrière-plan (forme, couleur et sens d'origine) */
.hero__shape { position: absolute; z-index: -1; opacity: .42; height: auto; }
.hero__shape--violet { width: 270px; left: 40px; top: 110px; }
.hero__shape--rose { width: 120px; left: 110px; top: 330px; }
.hero__shape--jaune { width: 300px; right: 30px; top: 450px; }
.hero__inner { max-width: 920px; }
.hero .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.hero__lead { margin-top: 22px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 72px auto 0; max-width: 760px; border-top: 1px solid var(--line); padding-top: 40px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--ink); }
.stat__num .count { color: var(--violet); }
.stat__label { margin-top: 10px; font-size: 1rem; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--violet-50); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__lead { margin-top: 18px; font-size: 1.08rem; }

/* Notre histoire */
.story { display: grid; grid-template-columns: 340px 1fr; gap: 90px; align-items: start; }
.story > * { min-width: 0; }
.story__media { position: sticky; top: 120px; isolation: isolate; }
.story__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%; border-radius: 18px; box-shadow: var(--shadow); }
.story__media::before { content: ""; position: absolute; width: 90px; height: 90px; right: -16px; top: -16px; background: var(--gold-grad); border-radius: 6px; z-index: -1; }
.story__card { position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 14px; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(38,28,44,.4); }
.story__card svg { width: 38px; height: 38px; flex: none; }
.story__card strong { display: block; font-family: var(--head); font-size: .92rem; }
.story__card span { font-size: .78rem; color: var(--muted); }
.story__copy h2 { margin-bottom: 36px; }
.chapters { position: relative; display: grid; gap: 36px; }
.chapters::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, #8A3399, #CC3566 50%, #F0B414); opacity: .35; }
.chapter { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 26px; }
.chapter__n {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--head); font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, #8A3399, #4A1754); box-shadow: 0 8px 18px -8px rgba(98,32,110,.55);
}
.chapter:nth-child(2) .chapter__n { background: linear-gradient(135deg, #CC3566, #8A1640); box-shadow: 0 8px 18px -8px rgba(158,27,74,.55); }
.chapter:nth-child(3) .chapter__n { background: linear-gradient(135deg, #F9CF45, #E59A06); color: #261C2C; box-shadow: 0 8px 18px -8px rgba(240,180,20,.65); }
.chapter h3 { font-size: 1.3rem; margin: 8px 0 12px; }
.chapter p + p { margin-top: 10px; }

/* Nos expertises : défilement narratif + scène animée */
@property --fx { syntax: '<number>'; inherits: false; initial-value: .3; }
@property --fy { syntax: '<number>'; inherits: false; initial-value: .25; }

.xp { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }

/* Colonne texte */
.xp__steps { position: relative; padding-left: 56px; }
.xp__rail {
  position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.xp__rail span {
  position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #8A3399, #CC3566 50%, #F0B414);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.xp-step {
  --c1: #8A3399; --c2: #4A1754; --c: #62206E; --soft: rgba(98,32,110,.14);
  position: relative; min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0;
  transition: opacity .6s var(--ease);
}
.xp-step--rose { --c1: #CC3566; --c2: #8A1640; --c: #9E1B4A; --soft: rgba(158,27,74,.14); }
.xp-step--jaune { --c1: #F9CF45; --c2: #E59A06; --c: #C98A00; --soft: rgba(240,180,20,.24); }
.xp.is-ready .xp-step:not(.is-active) { opacity: .26; }
/* point sur le rail */
.xp-step::before {
  content: ""; position: absolute; left: -48px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.xp-step.is-active::before { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; box-shadow: 0 0 0 7px var(--soft); transform: scale(1.1); }
/* grand numéro qui se remplit */
.xp-step__n {
  display: block; margin-bottom: 12px; font-family: var(--head); font-weight: 700; font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: .9; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--c);
  background: linear-gradient(135deg, var(--c1), var(--c2)) no-repeat bottom / 100% 0%; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1s var(--ease);
}
.xp-step.is-active .xp-step__n { background-size: 100% 100%; }
.xp-step h3 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); margin-bottom: 14px; }
.xp-step p { font-size: 1.05rem; max-width: 470px; }
.xp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 500px; }
.xp-tags li {
  padding: 7px 15px; border-radius: 100px; font-size: .86rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--line); transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
}
.xp-tags li.is-current { border-color: transparent; background: var(--violet-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(98,32,110,.8); }
.xp-step.is-active .xp-tags li { animation: tagIn .6s var(--ease) var(--ad, 0s) both; }
.xp-tags li:nth-child(2) { --ad: .07s; } .xp-tags li:nth-child(3) { --ad: .14s; }
.xp-tags li:nth-child(4) { --ad: .21s; } .xp-tags li:nth-child(5) { --ad: .28s; }
.xp-tags li:nth-child(6) { --ad: .35s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.xp-step__media { display: none; }

/* Scène (colonne de droite, fixe pendant le défilement) */
.xp__stage { position: sticky; top: max(100px, calc(50vh - 240px)); height: 560px; }
.xp__glow { position: absolute; inset: 8% 4%; border-radius: 50%; filter: blur(70px); opacity: 0; transition: opacity 1.1s var(--ease); animation: drift 14s ease-in-out infinite alternate; }
.xp__glow--1 { background: radial-gradient(circle at 40% 45%, rgba(138,51,153,.6), rgba(98,32,110,.16) 55%, transparent 72%); }
.xp__glow--2 { background: radial-gradient(circle at 45% 40%, rgba(204,53,102,.55), rgba(158,27,74,.15) 55%, transparent 72%); }
.xp__glow--3 { background: radial-gradient(circle at 55% 50%, rgba(249,207,69,.75), rgba(240,180,20,.2) 55%, transparent 72%); }
.xp[data-active="1"] .xp__glow--1, .xp[data-active="2"] .xp__glow--2, .xp[data-active="3"] .xp__glow--3 { opacity: .75; }
@keyframes drift { to { transform: translate(4%, -3%) scale(1.08); } }
.xp__dots {
  position: absolute; inset: -4% -6%; opacity: .8;
  background: radial-gradient(circle, rgba(98,32,110,.2) 1.2px, transparent 1.7px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}
.xp__tilt { position: absolute; inset: 0; transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
.scene { position: absolute; inset: 0; visibility: hidden; transition: visibility 0s .6s; }
.scene.is-on { visibility: visible; transition-delay: 0s; }

/* Documents */
.doc {
  --r: 0deg; --r0: var(--r); --x0: 0px; --y0: 70px; --dl: 0s; --fd: 0s;
  position: absolute; container-type: inline-size;
  opacity: 0; translate: var(--x0) var(--y0); rotate: var(--r0); scale: .9;
  transition: opacity .45s var(--ease), translate .5s var(--ease), rotate .5s var(--ease), scale .5s var(--ease);
}
.scene.is-on .doc {
  opacity: 1; translate: 0 0; rotate: var(--r); scale: 1;
  transition-duration: .7s, 1.2s, 1.2s, 1.2s; transition-delay: calc(var(--dl) + .1s);
  animation: float 7s ease-in-out infinite; animation-delay: var(--fd);
}
@keyframes float { 50% { transform: translateY(-10px); } }
.doc__paper {
  position: relative; overflow: hidden; border-radius: 10px; background: #fff;
  box-shadow: 0 0 0 1px rgba(38,28,44,.07), 0 34px 60px -28px rgba(38,28,44,.5), 0 12px 24px -16px rgba(38,28,44,.25);
}
.doc__paper img { width: 100%; height: auto; }

/* 01 · Sujets */
.d-s3 { width: 58%; right: 2%; top: 3%; --r: 6deg; --r0: 16deg; --x0: 70px; --y0: -30px; --fd: -2s; }
.d-s1 { width: 40%; left: 6%; top: 9%; --r: -8deg; --r0: -18deg; --x0: -70px; --dl: .1s; --fd: -4.5s; }
.d-s2 { width: 42%; left: 33%; top: 19%; --r: 2deg; --y0: 130px; --dl: .22s; --fd: -1s; }

/* 02 · Corrigés */
.d-cb { width: 38%; right: 3%; top: 12%; --r: 9deg; --r0: 18deg; --x0: 80px; --fd: -3s; }
.d-cb .doc__paper, .d-gb .doc__paper { opacity: .7; filter: saturate(.6); }
.d-co { width: 43%; left: 18%; top: 2%; --r: -3deg; --r0: -10deg; --y0: 110px; --dl: .12s; --fd: -1s; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.ink__hl rect { fill: rgba(240,180,20,.5); transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.scene.is-on .ink__hl rect { animation: hl .6s var(--ease) var(--ad, 0s) forwards; }
.ink__hl rect:nth-child(1) { --ad: .9s; } .ink__hl rect:nth-child(2) { --ad: 1.2s; }
.ink__hl rect:nth-child(3) { --ad: 1.5s; } .ink__hl rect:nth-child(4) { --ad: 1.8s; }
.ink__hl rect:nth-child(5) { --ad: 2.05s; } .ink__hl rect:nth-child(6) { --ad: 2.25s; }
.ink__hl rect:nth-child(7) { --ad: 2.45s; }
@keyframes hl { to { transform: scaleX(1); } }
.ink__pen path { fill: none; stroke: #CC3566; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.is-on .ink__pen path { animation: draw .8s ease-out var(--ad, 0s) forwards; }
.ink__pen path:nth-child(1) { --ad: 1.6s; } .ink__pen path:nth-child(2) { --ad: 2.2s; }
.ink__pen path:nth-child(3) { --ad: 2.9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* loupe : grossit le corrigé en suivant les réponses */
.lens {
  position: absolute; z-index: 3; width: 46cqw; height: 46cqw; border-radius: 50%;
  left: calc(var(--fx) * 100cqw - 23cqw); top: calc(var(--fy) * 162.95cqw - 23cqw);
  background: #fff url(assets/expertise-corrige.webp) no-repeat;
  background-size: 240cqw auto;
  background-position: calc(23cqw - var(--fx) * 240cqw) calc(23cqw - var(--fy) * 391.08cqw);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(204,53,102,.6), 0 24px 40px -12px rgba(38,28,44,.55);
  opacity: 0; scale: .5; transition: opacity .3s, scale .4s var(--ease);
}
.lens::after {
  content: ""; position: absolute; left: 84%; top: 84%; width: 16cqw; height: 4cqw; border-radius: 4cqw;
  background: linear-gradient(135deg, #CC3566, #8A1640); transform-origin: 0 50%; transform: rotate(45deg);
}
.scene.is-on .lens { opacity: 1; scale: 1; transition: opacity .5s 1s, scale .8s var(--ease) 1s; animation: lens 12s ease-in-out 1s infinite; }
@keyframes lens {
  0%, 6% { --fx: .26; --fy: .25; }
  16% { --fx: .44; --fy: .25; }
  26%, 30% { --fx: .34; --fy: .298; }
  42%, 50% { --fx: .82; --fy: .348; }
  62%, 66% { --fx: .3; --fy: .771; }
  78%, 84% { --fx: .22; --fy: .885; }
  100% { --fx: .26; --fy: .25; }
}

/* 03 · Grilles */
.d-gb { width: 30%; right: 3%; top: 0; --r: 8deg; --r0: 16deg; --x0: 60px; --fd: -3s; }
.d-gr { width: 100%; left: 0; top: 25%; --y0: 100px; --dl: .12s; --fd: -2s; }
.d-gr .doc__paper { transform: perspective(1100px) rotateY(-14deg) rotateX(8deg) rotateZ(-1deg); }
.grid-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-ink .row { fill: rgba(98,32,110,.1); stroke: #8A3399; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.scene.is-on .row { animation: rowPulse 4.5s ease-in-out var(--ad, 0s) infinite; }
.row--1 { --ad: 1s; } .row--2 { --ad: 2.5s; } .row--3 { --ad: 4s; }
@keyframes rowPulse { 0%, 100% { opacity: 0; } 6%, 28% { opacity: 1; } 36% { opacity: 0; } }
.scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22%; translate: -110% 0; mix-blend-mode: multiply;
  background: linear-gradient(90deg, transparent, rgba(240,180,20,.12) 40%, rgba(240,180,20,.45) 92%, rgba(229,154,6,.9) 99%, transparent);
}
.scene.is-on .scan { animation: scan 4.5s cubic-bezier(.6, 0, .4, 1) 1s infinite; }
@keyframes scan { 0% { translate: -110% 0; } 70%, 100% { translate: 480% 0; } }
.badge {
  position: absolute; z-index: 6; right: -1%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
  border-radius: 100px; background: #fff; font-family: var(--head); font-weight: 700; font-size: .82rem; color: var(--ink); white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(38,28,44,.5), 0 0 0 1px rgba(38,28,44,.05);
  opacity: 0; translate: 24px 0; scale: .8; transition: opacity .3s, translate .3s, scale .3s;
}
.badge--1 { top: calc(37% - 17px); } .badge--2 { top: calc(49% - 17px); } .badge--3 { top: calc(61% - 17px); }
.badge i { position: relative; width: 20px; height: 20px; border-radius: 50%; flex: none; background: linear-gradient(135deg, #8A3399, #4A1754); }
.badge i::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.badge--wip i { background: var(--gold-grad); }
.badge--wip i::after { left: 4px; top: 4px; width: 12px; height: 12px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; transform: none; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene.is-on .badge { opacity: 1; translate: 0 0; scale: 1; transition: opacity .5s, translate .7s var(--ease), scale .7s cubic-bezier(.3, 1.6, .5, 1); }
.scene.is-on .badge--1 { transition-delay: 1.2s; } .scene.is-on .badge--2 { transition-delay: 2.7s; } .scene.is-on .badge--3 { transition-delay: 4.2s; }

/* Pastilles flottantes (verre dépoli) */
.chip {
  --dl: .5s; --fd: 0s;
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 14px;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 18px 40px -18px rgba(38,28,44,.45);
  opacity: 0; translate: 0 16px; scale: .94; transition: opacity .3s, translate .4s var(--ease), scale .4s var(--ease);
}
.scene.is-on .chip {
  opacity: 1; translate: 0 0; scale: 1; transition-duration: .7s; transition-delay: var(--dl);
  animation: float 6s ease-in-out infinite; animation-delay: var(--fd);
}
.chip small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.chip b { display: block; font-family: var(--head); font-weight: 700; font-size: .98rem; color: var(--ink); line-height: 1.3; }
.chip__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, #8A3399, #4A1754); }
.chip__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip__icon--rose { background: linear-gradient(135deg, #CC3566, #8A1640); }
.chip__icon--jaune { background: linear-gradient(135deg, #F9CF45, #E59A06); }
.chip__icon--jaune svg { stroke: var(--ink); }
.chip--stat { top: 2%; left: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px; --dl: .55s; --fd: -2s; }
.chip--stat strong { font-family: var(--head); font-size: 1.9rem; line-height: 1; background: var(--violet-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip--stat span { font-size: .8rem; color: var(--muted); }
.chip--ticker { left: 0; bottom: 5%; min-width: 260px; --dl: .7s; --fd: -3.5s; }
.ticker.is-in { animation: tickIn .5s var(--ease); }
@keyframes tickIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.chip--note { right: 0; top: 50%; --dl: .8s; --fd: -1.5s; }
.chip--note2 { left: 0; bottom: 4%; --dl: 1s; --fd: -4s; }
.chip--ref { left: 2%; top: 5%; --dl: .5s; --fd: -2.5s; }
.chip--score { left: 0; bottom: 4%; --dl: .7s; --fd: -4s; }
.ring { width: 40px; height: 40px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--violet-100); stroke-width: 5; }
.ring .ring__val { stroke: var(--violet); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene.is-on .ring__val { animation: ring 1.6s var(--ease) 1.2s forwards; }
@keyframes ring { to { stroke-dashoffset: .33; } }

.tailored { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; text-align: left; }
.tailored__mark { width: 40px; height: 40px; flex: none; }
.tailored p { font-family: var(--head); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.tailored strong { color: var(--violet); }

/* Domaines d'intervention : bande défilante */
.domains {
  position: relative; overflow: hidden; isolation: isolate; padding: 80px 0 86px; color: #fff;
  background: radial-gradient(circle at 15% 0%, rgba(158,27,74,.35), transparent 45%), radial-gradient(circle at 90% 100%, rgba(240,180,20,.16), transparent 45%), linear-gradient(135deg, #3E1347 0%, #22132A 100%);
}
.domains h2 { color: #fff; }
.domains .section__lead { color: #D9C8DE; }
.domains .section__head { margin-bottom: 36px; }
.marquee {
  display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee var(--dur, 45s) linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.pill {
  display: flex; align-items: center; padding: 9px 22px; border-radius: 100px; white-space: nowrap;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--head); font-weight: 500; font-size: 1rem; letter-spacing: .01em; color: #fff;
  transition: background .3s, border-color .3s;
}
.pill:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.pill--ghost { background: transparent; border-color: rgba(255,255,255,.12); color: #E7DAEA; }

/* Nos valeurs : photo qui change avec la valeur active */
.vals { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 76px; align-items: center; }
.vals__media { position: relative; isolation: isolate; }
/* facette du logo derrière la photo */
.vals__media::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 87px; right: -40px; top: -36px; background: var(--gold-grad); clip-path: polygon(0 61.1%, 61.1% 0, 100% 38.9%, 38.9% 100%); }
.vals__frame { position: relative; overflow: hidden; aspect-ratio: 6 / 5; border-radius: 16px; background: var(--violet-900); box-shadow: 0 30px 60px -40px rgba(38,28,44,.55); }
/* volet diagonal : la nouvelle photo glisse par-dessus l'ancienne */
.vals__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 120% 100%); scale: 1.08;
}
.vals__img.is-prev { z-index: 1; clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); scale: 1; }
.vals__img.is-active {
  z-index: 2; clip-path: polygon(-20% 0, 100% 0, 100% 100%, 0 100%); scale: 1;
  transition: clip-path 1.1s cubic-bezier(.75, 0, .2, 1), scale 2s var(--ease);
}
.vals__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(20,12,24,0) 60%, rgba(20,12,24,.55) 100%); }
/* légende sobre : numéro, filet, nom de la valeur */
.vals__caps { position: absolute; z-index: 4; left: 28px; bottom: 24px; display: grid; }
.vals__cap {
  grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; color: #fff;
  opacity: 0; translate: 0 8px; transition: opacity .3s, translate .3s var(--ease);
}
.vals__cap span { display: flex; align-items: center; gap: 14px; font-size: .78rem; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.vals__cap span::after { content: ""; width: 32px; height: 1px; background: rgba(255,255,255,.55); }
.vals__cap.is-active { opacity: 1; translate: 0 0; transition: opacity .5s .5s, translate .6s var(--ease) .5s; }

.vals__copy h2 { margin-bottom: 14px; }
.vals__lead { font-size: 1.05rem; max-width: 460px; }
.vals__list { margin-top: 34px; border-top: 1px solid var(--line); }
.val { --c1: #8A3399; --c2: #4A1754; --c: #62206E; --on: #fff; --soft: rgba(98,32,110,.14); position: relative; border-bottom: 1px solid var(--line); }
.val--rose { --c1: #CC3566; --c2: #8A1640; --c: #9E1B4A; --soft: rgba(158,27,74,.14); }
.val--jaune { --c1: #F9CF45; --c2: #E59A06; --c: #C98A00; --on: #261C2C; --soft: rgba(240,180,20,.25); }
.val__btn {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 22px 0;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.val__btn:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; border-radius: 8px; }
.val__n { font-family: var(--head); font-weight: 700; font-size: .92rem; letter-spacing: .12em; color: #B3AAB6; transition: color .4s; }
.val h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); color: #ADA4B0; transition: color .4s; }
.val__toggle { position: relative; width: 14px; height: 14px; margin-right: 4px; }
.val__toggle::before, .val__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: #A79FAB; transition: transform .4s var(--ease), background .4s; }
.val__toggle::after { transform: rotate(90deg); }
.val__btn:hover h3 { color: var(--text); }
.val.is-active .val__n { color: var(--c); }
.val.is-active h3 { color: var(--ink); }
.val.is-active .val__toggle::before { background: var(--c); }
.val.is-active .val__toggle::after { transform: rotate(0deg); background: var(--c); }
.val__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.val__body > div { overflow: hidden; }
.val__body p { padding: 0 60px 24px 62px; font-size: 1rem; opacity: 0; translate: 0 8px; transition: opacity .4s, translate .5s var(--ease); }
.val.is-active .val__body { grid-template-rows: 1fr; }
@media (min-width: 1081px) { .val__body p { min-height: 104px; } }
.val.is-active .val__body p { opacity: 1; translate: 0 0; transition-delay: .15s; }
/* barre de progression : à la fin, la valeur suivante prend le relais */
.val__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--c1), var(--c2)); transform: scaleX(0); transform-origin: left; }
.val.is-active .val__bar { animation: valBar 6s linear forwards; }
.vals.is-paused .val.is-active .val__bar { animation-play-state: paused; }
@keyframes valBar { to { transform: scaleX(1); } }

/* Contact */
.cta { padding: 0 0 120px; background: linear-gradient(180deg, var(--violet-50) 0 50%, #fff 50%); }
.cta__inner {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px;
  padding: 64px; border-radius: 22px; background: var(--violet-grad); color: #fff;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta__copy > p:not(.eyebrow) { color: #EADCEE; margin-bottom: 30px; max-width: 520px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.contact__icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #CDB9D2; margin-bottom: 2px; }
.contact-list a, .contact-list span { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: #fff; line-height: 1.35; }
.contact-list a:hover { color: var(--gold); }
.cta__motif { position: absolute; z-index: -1; width: 380px; height: 380px; right: -120px; bottom: -170px; color: #fff; opacity: .06; }

/* Footer */
.footer { background: var(--violet-900); color: #B9ABBE; padding: 80px 0 30px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin-top: 20px; max-width: 380px; }
.footer__title { font-family: var(--head); font-weight: 600; color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: .82rem; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .story { grid-template-columns: 1fr; gap: 60px; }
  .hero__shape--violet { width: 220px; left: -20px; }
  .hero__shape--rose { width: 84px; left: 30px; }
  .hero__shape--jaune { width: 300px; right: -40px; top: 470px; }
  .vals { grid-template-columns: 1fr; gap: 64px; }
  .vals__media { max-width: 680px; width: 100%; margin-inline: auto; }
  .story__media { position: relative; top: 0; max-width: 320px; width: 100%; margin-inline: auto; }
  .xp { grid-template-columns: 1fr; gap: 0; }
  .xp__stage { display: none; }
  .xp-step { min-height: 0; padding: 36px 0; }
  .xp.is-ready .xp-step:not(.is-active) { opacity: .55; }
  .xp-step::before { top: 76px; }
  .xp-step__media { display: block; margin-top: 28px; max-width: 340px; }
  .xp-step__media--wide { max-width: 100%; }
  .xp-step__media img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px rgba(38,28,44,.07), 0 30px 50px -26px rgba(38,28,44,.5); rotate: -1.5deg; transition: rotate .8s var(--ease), translate .8s var(--ease); }
  .xp-step.is-active .xp-step__media img { rotate: 0deg; translate: 0 -4px; }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(38,28,44,.3);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .cta__inner { padding: 48px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 90px 0; }
}
@media (max-width: 600px) {
  .hero { padding: 130px 0 70px; }
  .hero__shape { display: none; }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .08em; gap: 8px; }
  .stats { grid-template-columns: 1fr; gap: 28px; margin-top: 54px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .xp__steps { padding-left: 36px; }
  .xp__rail { left: 7px; }
  .xp-step::before { left: -36px; top: 66px; }
  .domains { padding: 64px 0 70px; }
  .pill { font-size: .92rem; padding: 8px 18px; }
  .chapter { grid-template-columns: 1fr; gap: 12px; }
  .chapters::before { display: none; }
  .story__card { left: 12px; }
  .story__media::before { right: -10px; top: -10px; width: 80px; height: 80px; }
  .tailored { flex-direction: column; text-align: center; }
  .vals__frame { aspect-ratio: 4 / 3.6; border-radius: 12px; }
  .vals__caps { left: 18px; bottom: 16px; }
  .vals__media::before { width: 100px; height: 58px; right: -10px; top: -22px; }
  .val__body p { padding: 0 0 22px 62px; }
  .cta__inner { padding: 40px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__img { height: 48px; }
}
