/* =========================================================
   B2Breathe · v3 · thème clair
   Blanc, bleu du logo, photos arrondies, ombres douces.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-2: #F5F8FD;
  --tint: #EAF2FF;
  --card: #FFFFFF;
  --line: #E3E9F2;
  --ink: #0B1A33;
  --dim: #5B6880;
  --blue: #0866EE;
  --blue-d: #0552C4;
  --blue-l: #4D93FF;
  --glow: rgba(8,102,238,.35);
  --hot: #F2672A;
  --ok: #12A46B;
  --shadow: 0 1px 2px rgba(11,26,51,.05), 0 18px 40px -16px rgba(11,26,51,.18);
  --shadow-lg: 0 2px 4px rgba(11,26,51,.04), 0 40px 80px -30px rgba(11,26,51,.28);
  --r: 24px;
  --f-h: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-b: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-h); margin: 0; letter-spacing: -.035em; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }

.kicker { font: 600 12px/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.big { font-size: clamp(34px, 5vw, 64px); font-weight: 800; }
.huge { font-size: clamp(40px, 6.4vw, 88px); font-weight: 900; }
.dim { color: #8A97AD; }
.accent { color: var(--blue); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--dim); max-width: 48ch; }
.tiny { font-size: 12px; color: #9AA5B8; }
.src { font-size: 12px; color: #9AA5B8; margin-top: auto; }
.head { margin-bottom: 56px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blue); color: #fff; font: 600 16px/1 var(--f-b); text-decoration: none;
  box-shadow: 0 10px 24px -10px var(--glow);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-d); box-shadow: 0 0 0 6px rgba(8,102,238,.12), 0 16px 32px -12px var(--glow); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px #CBD6E6; }
.btn--full { width: 100%; }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; }

/* ---------- logo + respiration ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--f-h); letter-spacing: -.03em; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; fill: var(--blue); }
.breathe .b1, .breathe .b2, .breathe .b3 { transform-origin: 0 50%; transform-box: fill-box; animation: breathe 4.2s var(--ease) infinite; }
.breathe .b2 { animation-delay: .18s; } .breathe .b3 { animation-delay: .36s; }
@keyframes breathe { 0%, 100% { transform: scaleX(1); } 45% { transform: scaleX(.72); } }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; background: rgba(255,255,255,.7); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.is-scrolled { background: rgba(255,255,255,.9); border-color: var(--line); }
.nav__in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__links { display: none; gap: 34px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--dim); transition: color .2s; }
.nav__links a:hover { color: var(--blue); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 112px 0 72px; overflow: hidden;
  background: radial-gradient(900px 600px at 90% 0%, var(--tint), transparent 65%), radial-gradient(700px 500px at 0% 100%, #F2F7FF, transparent 70%); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 150px 0 110px; } .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18,164,107,.15); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero__title { font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -.045em; line-height: .98; margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero__sub { max-width: 50ch; font-size: clamp(17px, 1.5vw, 19px); color: var(--dim); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--dim); }
.hero__proof b { color: var(--ink); font: 800 18px/1 var(--f-h); margin-right: 4px; }

.hero__media { position: relative; padding: 18px 0 30px; }
.hero__frame { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); will-change: transform; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (max-width: 979px) { .hero__frame { aspect-ratio: 4 / 3.4; } }

.notif {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.8);
  opacity: 0; transform: translateY(20px) scale(.95);
  animation: pop .8s var(--ease) forwards, float 6s ease-in-out infinite;
}
.notif b { display: block; font-size: 14px; line-height: 1.25; } .notif small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.notif i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.n1 { top: 40px; left: -20px; animation-delay: 1s, 1.8s; }
.n2 { bottom: 70px; left: -28px; animation-delay: 2s, 2.8s; }
.n3 { top: 46%; right: -18px; animation-delay: 3s, 3.8s; }
@media (max-width: 979px) { .n1 { left: 10px; top: 4px; } .n2 { left: 10px; bottom: 8px; } .n3 { right: 10px; top: auto; bottom: 64px; } }
@media (max-width: 420px) { .n3 { display: none; } .notif { padding: 9px 12px 9px 9px; } .notif i { width: 30px; height: 30px; } .notif b { font-size: 13px; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes float { 50% { translate: 0 -8px; } }
.i-call { background: #FFF0E8; } .i-call::before { content: "☎"; color: var(--hot); }
.i-ok { background: #E4F7EE; } .i-ok::before { content: "✓"; color: var(--ok); }
.i-loop { background: var(--tint); } .i-loop::before { content: "↻"; color: var(--blue); }
.n1 i { animation: ring 1.2s 1.8s 3; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }

/* ---------- bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 24px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font: 800 clamp(26px, 3.6vw, 46px)/1 var(--f-h); letter-spacing: -.03em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px #A9B7CC; }
.marquee span:nth-of-type(2n) { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { flex: none; width: 14px; height: 14px; border-radius: 0 7px 7px 0; background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- histoire au défilement ---------- */
.story { position: relative; height: 520vh; background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); }
.story__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; padding-top: 60px; }
.story__grid { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .story__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.story__clock { font: 900 clamp(60px, 9vw, 132px)/.9 var(--f-h); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-bottom: 16px; transition: color .4s; }
.story[data-step="1"] .story__clock { color: var(--hot); }
.story[data-step="2"] .story__clock, .story[data-step="3"] .story__clock, .story[data-step="4"] .story__clock { color: var(--blue); }
.story__steps { list-style: none; margin: 0; padding: 0; position: relative; min-height: 116px; }
.story__steps li { position: absolute; inset: 0 0 auto; max-width: 34ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--dim); opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.story__steps b { display: block; font: 800 clamp(24px, 2.6vw, 36px)/1.08 var(--f-h); letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; }
.story[data-step="0"] [data-s="0"], .story[data-step="1"] [data-s="1"], .story[data-step="2"] [data-s="2"],
.story[data-step="3"] [data-s="3"], .story[data-step="4"] [data-s="4"] { opacity: 1; transform: none; }

.story__photo { position: relative; margin-top: 20px; width: min(460px, 100%); aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.sph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s, transform 4s ease-out; }
.story[data-step="0"] .sph--0, .story[data-step="1"] .sph--1,
.story[data-step="2"] .sph--2, .story[data-step="3"] .sph--2, .story[data-step="4"] .sph--2 { opacity: 1; transform: none; }

.story__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.story__bar span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

/* téléphone (reste sombre, comme un vrai) */
.phone {
  position: relative; overflow: hidden; justify-self: center; width: min(340px, 86vw); border-radius: 44px; padding: 14px 14px 18px;
  background: #0B1324; color: #F2F5FB; border: 8px solid #1A2235;
  box-shadow: var(--shadow-lg), 0 0 0 1px #2A3550;
  display: flex; flex-direction: column; height: min(620px, calc(100svh - 120px));
}
.phone__notch { position: relative; z-index: 4; width: 92px; height: 22px; border-radius: 0 0 14px 14px; background: #1A2235; margin: -14px auto 12px; }
.phone__head { display: flex; gap: 10px; align-items: center; padding: 0 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.phone__head b { display: block; font-size: 15px; } .phone__head small { font-size: 12px; color: #3DDC97; }
.phone__av { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--blue); fill: #fff; }
.phone__chat { list-style: none; margin: 0; padding: 14px 2px 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.m { font-size: 14px; line-height: 1.4; padding: 10px 13px; border-radius: 16px; max-width: 86%; flex: none; display: none; }
.m.is-on { display: block; animation: msgIn .5s var(--ease) both; }
.m--card.is-on { display: flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.m--in { background: #1F2B47; align-self: flex-start; border-bottom-left-radius: 5px; }
.m--out { background: var(--blue); align-self: flex-end; border-bottom-right-radius: 5px; }
.m--sys { align-self: center; font-size: 12px; color: #8CBBFF; background: rgba(8,102,238,.18); border-radius: 999px; padding: 6px 12px; }
.m--card { align-self: stretch; max-width: none; gap: 10px; align-items: center; background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.35); font-size: 13px; color: rgba(255,255,255,.75); }
.m--card b { display: block; color: #fff; font-size: 14px; }
.m--card span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #3DDC97; color: #05210F; font-weight: 800; }
.m--blue { background: rgba(8,102,238,.18); border-color: rgba(77,147,255,.45); }
.m--blue span { background: var(--blue); color: #fff; }

/* écran d'appel : sonne (0), manqué (1), puis laisse place à la conversation */
.call {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px 56px; text-align: center; background: radial-gradient(120% 70% at 50% 0%, #1D3266 0%, #0B1324 70%);
  transition: opacity .5s, transform .6s var(--ease);
}
.story[data-step="2"] .call, .story[data-step="3"] .call, .story[data-step="4"] .call { opacity: 0; transform: scale(1.06); pointer-events: none; }
.call__top { position: absolute; top: 34px; font-size: 12px; color: #8794AE; }
.call__av { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: #24365F; font: 800 28px/1 var(--f-h); margin-bottom: 8px; transition: background .4s, color .4s; }
.call__av::before, .call__av::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #3DDC97; opacity: 0; }
.story[data-step="0"] .call__av::before { animation: wave 1.6s ease-out infinite; }
.story[data-step="0"] .call__av::after { animation: wave 1.6s .8s ease-out infinite; }
@keyframes wave { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.call__name { font: 800 26px/1.1 var(--f-h); }
.call__st { font-size: 14px; }
.call__st--in { color: #3DDC97; }
.call__st--miss { display: none; color: #FF8A57; font-weight: 600; }
.story[data-step="1"] .call__st--in { display: none; }
.story[data-step="1"] .call__st--miss { display: block; }
.story[data-step="1"] .call__av { background: rgba(255,122,61,.2); color: #FF8A57; }
.call__btns { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: space-around; }
.call__btns span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; }
.call__btns .no { background: #E5484D; } .call__btns .yes { background: #22B573; }
.story[data-step="0"] .call__btns .yes { animation: bounce 1s ease-in-out infinite; }
.story[data-step="1"] .call__btns { opacity: .25; }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.story[data-step="0"] .phone { animation: buzz 1.6s infinite; }
@keyframes buzz { 0%, 40%, 100% { transform: none; } 5%, 15%, 25%, 35% { transform: translateX(-3px) rotate(-1deg); } 10%, 20%, 30% { transform: translateX(3px) rotate(1deg); } }

@media (max-width: 959px) {
  .story__pin { align-items: flex-start; padding-top: 84px; }
  .story__grid { gap: 14px; }
  .story .kicker, .story__photo { display: none; }
  .story__clock { font-size: 54px; margin-bottom: 6px; }
  .story__steps { min-height: 100px; }
  .story__steps li { font-size: 15px; }
  .story__steps b { font-size: 23px; margin-bottom: 4px; }
  .phone { width: min(300px, 82vw); border-radius: 36px; border-width: 6px; height: calc(100svh - 300px); min-height: 300px; max-height: 520px; }
  .call__top { top: 28px; }
  .call__av { width: 78px; height: 78px; font-size: 24px; }
  .call__btns { bottom: 26px; }
  .m { font-size: 13px; }
}

/* ---------- chiffres ---------- */
.numbers { padding: 130px 0 110px; }
.nums { display: grid; gap: 18px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(3, 1fr); } }
.num { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; }
.num p:not(.num__v):not(.src) { color: var(--dim); }
.num__v { font: 900 clamp(60px, 6.4vw, 88px)/1 var(--f-h); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--blue); }
.ring { width: 76px; height: 76px; transform: rotate(-90deg); margin-bottom: 14px; }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: var(--tint); }
.ring__fg { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.num.is-in .ring__fg { stroke-dashoffset: calc(327 * (1 - var(--p))); }
.num--hot { background: linear-gradient(160deg, #1A77FF 0%, #0550C0 100%); border-color: transparent; color: #fff; box-shadow: 0 30px 60px -24px var(--glow); }
.num--hot .num__v { color: #fff; }
.num--hot p:not(.num__v):not(.src) { color: rgba(255,255,255,.88); }
.num--hot .src { color: rgba(255,255,255,.65); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 76px; margin-bottom: 30px; }
.bars span { position: relative; width: 26px; height: var(--h); border-radius: 6px 6px 2px 2px; background: #fff; transform-origin: bottom; transform: scaleY(0); transition: transform 1.2s var(--ease) .3s; }
.bars span:first-child { background: rgba(255,255,255,.4); }
.num.is-in .bars span { transform: none; }
.bars em { position: absolute; top: 100%; left: 50%; translate: -50% 4px; font: 500 10px/1 var(--f-b); font-style: normal; white-space: nowrap; color: rgba(255,255,255,.75); }

/* ---------- métiers : panneaux extensibles ---------- */
.trades { padding: 40px 0 130px; }
.panels { display: flex; gap: 12px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.panels::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: 0 0 78vw; height: 64svh; max-height: 520px; border-radius: var(--r); overflow: hidden; scroll-snap-align: center; cursor: pointer; box-shadow: var(--shadow); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,45,.85) 0%, rgba(8,20,45,.05) 55%); }
.panel__txt { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; color: #fff; }
.panel h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; white-space: nowrap; }
.panel p { margin-top: 10px; color: rgba(255,255,255,.88); font-size: 15px; max-width: 34ch; }
@media (min-width: 900px) {
  .panels { max-width: 1240px; margin: 0 auto; padding: 0 40px; overflow: visible; height: 580px; }
  .panel { flex: 1 1 0; height: 100%; max-height: none; transition: flex-grow .8s var(--ease); }
  .panel.is-open { flex-grow: 3.4; }
  .panel:not(.is-open) h3 { writing-mode: vertical-rl; transform: rotate(180deg); }
  .panel:not(.is-open) p { opacity: 0; transform: translateY(10px); }
  .panel p { transition: opacity .5s .25s, transform .5s .25s var(--ease); }
  .panel.is-open img { transform: scale(1.04); }
}

/* ---------- agents ---------- */
.agents { padding: 120px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.agents__grid { display: grid; gap: 56px; }
.agents__head .lead { margin-top: 22px; }
.agents__img { position: relative; margin-top: 36px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.agents__img img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@media (min-width: 960px) {
  .agents__grid { grid-template-columns: .95fr 1.05fr; gap: 96px; align-items: start; }
  .agents__head { position: sticky; top: 110px; }
}
.chain { list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.chain::after { content: ""; position: absolute; left: 27px; top: 28px; width: 2px; height: calc((100% - 56px) * var(--fill, 0)); background: linear-gradient(var(--blue), var(--blue-l)); }
.chain li { position: relative; z-index: 1; display: flex; gap: 24px; margin-bottom: 14px; padding: 22px; border-radius: 20px; background: transparent; opacity: .45; transition: opacity .5s, background .5s, box-shadow .5s; }
.chain li.is-on { opacity: 1; background: #fff; box-shadow: var(--shadow); }
.chain__n { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font: 800 16px/1 var(--f-h); color: var(--dim); transition: all .4s; }
.chain li.is-on .chain__n { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(8,102,238,.12); }
.chain h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; margin: 4px 0 6px; }
.chain p { color: var(--dim); max-width: 42ch; }
.chain::before, .chain::after { left: 49px; }
@media (max-width: 600px) { .chain li { padding: 18px 16px; gap: 14px; } .chain__n { width: 46px; height: 46px; } .chain::before, .chain::after { left: 38px; } }

/* ---------- contrôle ---------- */
.control { padding: 130px 0; }
.control__grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 960px) { .control__grid { grid-template-columns: 1fr 1fr; gap: 96px; } }
.control__media { position: relative; padding-bottom: 170px; }
.control__media > img { width: 76%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 10%; border-radius: 28px; box-shadow: var(--shadow-lg); }
.ticks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.ticks li { position: relative; padding-left: 38px; color: var(--dim); }
.ticks b { color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--tint); color: var(--blue); }

.dash { position: absolute; right: 0; bottom: 0; width: min(330px, 78%); border-radius: 24px; padding: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (max-width: 959px) {
  .control__media { padding-bottom: 0; }
  .control__media > img { width: 100%; aspect-ratio: 4 / 3.8; object-position: 50% 10%; }
  .dash { position: relative; width: 90%; margin: -40px 0 0 auto; }
}
.dash__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.dash__kpis div { padding: 12px 10px; border-radius: 14px; background: var(--bg-2); }
.dash__kpis b { display: block; font: 900 26px/1 var(--f-h); letter-spacing: -.04em; color: var(--ink); }
.dash__kpis small { font-size: 11px; color: var(--dim); }
.dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 76px; border-bottom: 1px solid var(--line); }
.dash__chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--blue-l), var(--blue)); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.control__media.is-in .dash__chart span { transform: none; }
.dash__chart span:nth-child(2) { transition-delay: .07s; } .dash__chart span:nth-child(3) { transition-delay: .14s; } .dash__chart span:nth-child(4) { transition-delay: .21s; }
.dash__chart span:nth-child(5) { transition-delay: .28s; } .dash__chart span:nth-child(6) { transition-delay: .35s; } .dash__chart span:nth-child(7) { transition-delay: .42s; }
.dash__log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.dash__log li { display: flex; align-items: center; gap: 10px; }
.dash__log small { margin-left: auto; color: var(--dim); }
.dash__log i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dash__log .g { background: var(--ok); } .dash__log .o { background: var(--hot); }

/* ---------- FAQ ---------- */
.faq { padding: 120px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 96px; } }
.faq__list { display: grid; gap: 10px; }
details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
details[open] { box-shadow: var(--shadow); border-color: #CFDDF5; }
summary { list-style: none; cursor: pointer; position: relative; padding: 22px 60px 22px 24px; font: 600 clamp(16px, 1.4vw, 18px)/1.35 var(--f-h); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 20px; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--dim); max-width: 62ch; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- final ---------- */
.final { padding: 110px 0; }
.final__box { position: relative; overflow: hidden; border-radius: 36px; box-shadow: var(--shadow-lg); }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.final__box::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(5,40,110,.92) 0%, rgba(8,102,238,.72) 50%, rgba(8,102,238,.25) 100%); }
.final__grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; padding: 56px 24px; color: #fff; }
@media (min-width: 960px) { .final__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; padding: 88px 72px; } }
.final__mark { width: 60px; height: 60px; fill: #fff; margin-bottom: 26px; }
.final .lead { margin-top: 22px; color: rgba(255,255,255,.88); }

.form { display: grid; gap: 14px; padding: 28px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.form h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--dim); }
.form input, .form select { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 400 16px/1.2 var(--f-b); transition: border-color .2s, background .2s, box-shadow .2s; }
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(8,102,238,.12); }
.form [aria-invalid="true"] { border-color: var(--hot); }
.form .btn { margin-top: 8px; }
.form__msg { min-height: 1.2em; font-size: 14px; color: var(--blue); }

/* ---------- pied ---------- */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot__in { display: grid; gap: 14px; font-size: 14px; color: var(--dim); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--blue); }
@media (min-width: 960px) { .foot__in { grid-template-columns: auto 1fr auto auto; gap: 40px; align-items: center; } }

/* ---------- apparitions ---------- */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; }
.hero .reveal-up { transition-delay: .45s; }
.hero .hero__cta.reveal-up { transition-delay: .6s; }
.hero .hero__proof.reveal-up { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal-up { opacity: 1; transform: none; }
}
