/* =========================================================
   MB Expansion — Base : tokens, reset, typo, boutons, nav
   ========================================================= */
:root {
  --violet: #7d33f6;
  --violet-d: #6a22e0;
  --violet-dd: #5a1bc4;
  --lilac: #f4edff;
  --orchid: #e9d4fb;
  --peri: #9292ff;
  --amethyst: #9f7fe1;
  --onyx: #24282d;
  --graphite: #333333;
  --slate: #79797f;
  --mist: #bbbbc1;
  --frost: #eceef2;
  --stone: #f5f5f4;
  --white: #ffffff;
  --grad-dusk: linear-gradient(251deg, #f8f0ed -9.1%, #f2e4f0 36.43%, #aa93ea 105.93%);
  --grad-bloom: radial-gradient(circle at 0 100%, #f7ecee 0, #e7d7ef 60%, #c7a4e6 68%, #9f7fe1 100%);

  --font: 'Satoshi', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  --r-card: 24px;
  --r-pill: 100px;
  --r-sm: 10px;
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, .08);

  --max: 1200px;
  --gutter: 24px;
  --nav-h: 76px;
  --sec: clamp(88px, 11vw, 150px);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; color: var(--onyx); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.i { width: 1em; height: 1em; display: inline-block; flex: none; vertical-align: middle; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 300;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--violet); color: #fff; font-weight: 500;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Titres de section ---------- */
.section { padding-block: var(--sec); position: relative; }
.section__head { max-width: 780px; margin: 0 auto clamp(44px, 6vw, 76px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.section__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.hl { color: var(--violet); }
.section__lead { margin-top: 20px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--slate); }

/* Découpage des titres (JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .1em .26em; margin: 0 -.1em -.26em; }
.w__in { display: inline-block; will-change: transform; }

/* ---------- Effet "roll" des liens ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll__in { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll__in::after { content: attr(data-text); position: absolute; left: 0; top: 110%; color: var(--violet); }
.roll:hover .roll__in, .btn:hover .roll__in { transform: translateY(-110%); }
.btn .roll__in::after { color: inherit; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--x, 50%); top: var(--y, 50%);
  width: var(--d, 320px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn__label { position: relative; display: inline-block; overflow: hidden; line-height: 1.3; }
.btn__icon {
  display: grid; place-items: center; overflow: hidden;
  width: 30px; height: 30px; margin-right: -14px;
  border-radius: 50%; background: #fff; color: var(--violet);
}
.btn__icon .i { width: 16px; height: 16px; }
.btn:hover .btn__icon .i { animation: arrow-loop .7s var(--ease); }
@keyframes arrow-loop {
  0% { transform: none; }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: none; }
}
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary::before { background: var(--violet-dd); }
.btn--ghost { color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.btn--ghost::before { background: var(--violet); }
.btn--ghost:hover { color: #fff; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--sm .btn__icon { width: 26px; height: 26px; margin-right: -10px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Badge pilule ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500; color: var(--onyx);
}
.pill-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 51, 246, .55); }
  70% { box-shadow: 0 0 0 10px rgba(125, 51, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 51, 246, 0); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Curseur personnalisé ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.cursor-on, html.cursor-on body, html.cursor-on a, html.cursor-on button, html.cursor-on label, html.cursor-on [data-cursor] { cursor: none; }
}
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--violet); transition: opacity .3s; }
.cursor__ring {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(125, 51, 246, .45);
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, border-color .45s, opacity .3s;
}
.cursor__label { font-size: 13px; font-weight: 700; color: #fff; opacity: 0; transform: scale(.4); transition: .4s var(--ease); }
html.cursor-hover .cursor__ring { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(125, 51, 246, .1); border-color: transparent; }
html.cursor-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--violet); border-color: var(--violet); }
html.cursor-label .cursor__label { opacity: 1; transform: none; }
html.cursor-label .cursor__dot, html.cursor-text .cursor__dot { opacity: 0; }
html.cursor-text .cursor__ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; background: var(--violet); border-color: transparent; }
html.cursor-out .cursor { opacity: 0; }

/* ---------- Préchargeur ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--grad-dusk);
  animation: preloader-failsafe .6s 7s forwards;
}
html:not(.js) .preloader { display: none; }
.preloader.is-done { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader__inner { display: grid; justify-items: center; gap: 14px; }
.preloader__logo { width: min(440px, 84vw); height: auto; aspect-ratio: 784 / 160; overflow: visible; }
.pl-mark { transform-box: fill-box; transform-origin: center; animation: pl-pop .9s var(--ease-back) .1s both; }
.pl-word path, .pl-word circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pl-draw .8s var(--ease-io) forwards; animation-delay: calc(.4s + var(--i) * .07s); }
.pl-dot { transform-box: fill-box; transform-origin: center; animation: pl-pop .6s var(--ease-back) 1.35s both; }
.pl-tag { font-family: var(--font); opacity: 0; animation: pl-fade .8s ease 1.3s forwards; }
@keyframes pl-pop { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fade { to { opacity: 1; } }
.preloader__bar { width: 190px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(125, 51, 246, .15); }
.preloader__bar span { display: block; width: 100%; height: 100%; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.preloader__count { font-size: 13px; font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--peri), var(--violet)); transform: scaleX(0); transform-origin: left; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: var(--shadow-nav);
}
.nav.is-hidden { transform: translateY(-110%); }
html.menu-open .nav { transform: none; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--onyx); }
.logo__mark { flex: none; width: 44px; height: 44px; transition: transform .9s var(--ease-back); }
.logo:hover .logo__mark { transform: rotate(-90deg) scale(1.06); }
.logo__word { flex: none; width: 150px; height: 18.3px; }
.logo__stack { display: grid; gap: 9px; }
.logo__tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; line-height: 1; text-transform: uppercase; text-align: justify; text-align-last: justify; color: var(--violet); }
.logo--footer { gap: 16px; }
.logo--footer .logo__mark { width: 66px; height: 66px; }
.logo--footer .logo__word { width: 236px; height: 28.8px; }
.nav__links { display: flex; gap: 34px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--slate); transition: color .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--onyx); }
.nav__link.is-active::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--violet); }
.nav__link.is-active { padding-bottom: 6px; margin-bottom: -6px; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--violet); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
html.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center;
  background: var(--grad-dusk);
  clip-path: circle(0 at calc(100% - 47px) 38px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
html.menu-open .menu { clip-path: circle(150% at calc(100% - 47px) 38px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
html.menu-open { overflow: hidden; }
.menu__inner { display: grid; gap: 40px; padding-top: var(--nav-h); }
.menu__links { display: grid; gap: 2px; }
.menu__link { display: flex; align-items: baseline; gap: 14px; overflow: hidden; font-size: clamp(38px, 10vw, 64px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; color: var(--onyx); }
.menu__link small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--violet); }
.menu__link span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu__link:hover span { color: var(--violet); }
html.menu-open .menu__link span { transform: none; transition-delay: calc(.3s + var(--i, 0) * .06s); }
.menu__link:nth-child(2) { --i: 1; } .menu__link:nth-child(3) { --i: 2; } .menu__link:nth-child(4) { --i: 3; }
.menu__link:nth-child(5) { --i: 4; } .menu__link:nth-child(6) { --i: 5; }
.menu__foot { display: grid; gap: 6px; font-weight: 500; color: var(--graphite); }

/* ---------- Pied de page ---------- */
.footer { position: relative; overflow: hidden; padding-top: 96px; background: var(--white); }
.footer__top { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr) auto; gap: 40px; align-items: start; }
.footer__brand p { max-width: 300px; margin-top: 16px; font-size: 15px; color: var(--slate); }
.footer__col h4 { margin-bottom: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { font-size: 15px; color: var(--slate); }
.to-top { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--lilac); color: var(--violet); transition: background-color .4s, color .4s; }
.to-top .i { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top:hover { background: var(--violet); color: #fff; }
/* Nom géant dessiné avec le lettrage du logo : il s'adapte toujours à la largeur de l'écran */
.footer__giant { margin-top: 64px; padding: 0 var(--gutter) 28px; user-select: none; }
.footer__giant svg { display: block; width: 100%; max-width: 1240px; height: auto; margin: 0 auto; overflow: visible; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 1px solid var(--frost); font-size: 14px; color: var(--slate); }
.footer__bottom p { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.footer__bottom a { white-space: nowrap; }
.footer__bottom a:hover { color: var(--violet); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links, .nav__tel { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; padding-right: 72px; }
  .to-top { position: absolute; right: var(--gutter); top: 96px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; --nav-h: 68px; }
  .logo { gap: 10px; }
  .logo__mark { width: 38px; height: 38px; }
  .logo__word { width: 128px; height: 15.6px; }
  .logo--footer { gap: 12px; }
  .logo--footer .logo__mark { width: 50px; height: 50px; }
  .logo--footer .logo__word { width: 200px; height: 24.4px; }
  .logo--footer .logo__tag { font-size: 9px; letter-spacing: .06em; }
  .nav__actions .btn--primary { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
