/* ---------- Fonts (auto-hébergées, RGPD) ---------- */
@font-face
{
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face
{
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/LeagueSpartan-VariableFont_wght-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

@font-face
{
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face
{
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

@font-face
{
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face
{
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0300-0301, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0;
}

/* ---------- Tokens ---------- */
:root
{
  --obsidian: #08070c;
  --obsidian-2: #0d0b14;
  --light: #f7f5f2;
  --ink: #17141f;
  --star: #f4f1ff;
  --light-grey: #ceccd3;
  --lighter-grey: #b4b0c1;
  --violet: #8c52ff;
  --violet-btn: #8449fa;
  --violet-bright: #b28aff;
  --violet-deep: #6428e0;
  --coral: #fe5757;
  --grad: linear-gradient(100deg, #8c52ff 0%, #fe5757 100%);

  --font-display: 'League Spartan', 'Arial Black', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --fs-hero: clamp(3.5rem, 6.5vw, 12vw);
  --fs-h2: clamp(2.3rem, 6vw, 4.6rem);
  --fs-shift: clamp(2.7rem, 8vw, 7rem);

  --container: 1400px;
  --sect: clamp(7rem, 14vw, 12rem);

  --muted-dark: #9d97af;
  --muted-light: #605a6e;
  --line-dark: rgba(244, 241, 255, 0.2);
  --line-light: rgba(23, 20, 31, 0.12);
}

/* ---------- Base ---------- */
*,
*::before,
*::after
{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden]
{
  display: none !important;
}

html
{
  scroll-padding-top: 6rem;
}

/* Le temps de restaurer le scroll après un F5 (voir main.js), on masque
   le contenu pour ne jamais montrer le haut de la page avant de sauter à
   la bonne position. Sans JS, la page reste visible normalement. */
html.ws-restoring #smooth-wrapper
{
  opacity: 0;
}

#smooth-wrapper
{
  opacity: 1;
}

html.ws-ready #smooth-wrapper
{
  transition: opacity 0.25s ease;
}

body
{
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: #110620;
  color: var(--star);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3
{
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.018em;
}

p
{
  text-wrap: pretty;
}

b
{
  color: var(--light-grey);
}

a
{
  color: inherit;
  text-decoration: none;
  transition: all ease 0.4s;
}

.link
{
  text-decoration: 1px underline;
  text-underline-offset: 2px;
  
  &:hover
  {
    color: var(--light);
    text-decoration-color: transparent;
  }
}

.serif
{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

::selection
{
  background: var(--violet);
  color: var(--light);
}

:focus-visible
{
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

.container
{
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.4rem, 4.5vw, 3rem);
}

.container--narrow
{
  width: 900px;
  max-width: 100%;
}

.skip-link
{
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--violet);
  color: var(--light);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-300%);
}

.skip-link:focus
{
  transform: none;
}

.dot
{
  padding-left: 1px;
  color: var(--violet-bright);
}

/* ---------- Curseur ---------- */
.cursor
{
  display: none;
}

@media (pointer: fine)
{
  .cursor
  {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
  }

  .cursor__dot
  {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    margin: -3px;
    border-radius: 50%;
    background: var(--violet-bright);
  }

  .cursor__ring
  {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    margin: -19px;
    border-radius: 50%;
    border: 1px solid rgba(178, 138, 255, 0.55);
    /* surtout pas de transition sur transform : GSAP anime x/y via
       transform, la transition ajoutait un délai visible au suivi */
    transition: scale 0.2s ease, opacity 0.2s ease;
  }

  .cursor.is-hover .cursor__ring
  {
    scale: 1.9;
    opacity: 0.45;
  }

  .cursor.is-down .cursor__ring
  {
    scale: 0.7;
  }
}

/* ---------- Cosmos (canvas fixe) + nébuleuse CSS ---------- */
#cosmos
{
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100lvh;
  pointer-events: none;
  /* la 3D arrive en fondu une fois la première frame rendue
     (le bundle est chargé en différé pour les perfs) */
  opacity: 0;
  transition: opacity 1.4s ease;
}

#cosmos.is-on
{
  opacity: 1;
}

.nebula
{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 42% at 78% 18%, rgba(140, 82, 255, 0.17), transparent 70%),
    radial-gradient(30% 30% at 12% 78%, rgba(254, 87, 87, 0.07), transparent 70%),
    radial-gradient(55% 45% at 50% 110%, rgba(100, 40, 224, 0.12), transparent 70%),
    radial-gradient(38% 32% at 4% 98%, rgba(254, 87, 87, 0.16), transparent 70%);
}

/* ---------- Header ---------- */
.header
{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-inline: auto;
  padding: 1.15rem clamp(1.4rem, 4vw, 3rem);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--light);
  transition: inset 0.35s ease, width 0.35s ease, padding 0.35s ease,
    background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Au scroll : le header se replie dans une pilule bordée et floutée */
.header.is-stuck
{
  inset: 12px 0 auto 0;
  width: min(1300px, 94vw);
  padding: 0.7rem 0.9rem 0.7rem 1.4rem;
  background: rgba(13, 11, 20, 0.6);
  border-color: var(--line-dark);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.header__logo
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  text-decoration: none;
  margin-bottom: -5px;
}

.header__logo span
{
  color: var(--coral);
}

.header__nav
{
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  font-size: 0.95rem;
  font-weight: 600;
}

.header__nav a
{
  text-decoration: none;
  opacity: 0.72;
  transition: all ease 0.2s;
}

.header__nav a:hover,
.header__nav a:focus-visible
{
  opacity: 1;
}

/* Lien de la page courante (aria-current posé en JS) : même rendu que
   :hover, sauf le bouton Contact & RDV qui doit rester dans son état
   normal (pas de fond/couleur inversés juste parce qu'on est dessus). */
.header__nav a:not(.header__cta)[aria-current='page']
{
  color: var(--light);
  opacity: 1;
}

.header__cta
{
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  opacity: 1 !important;
  transition: background 0.25s, color 0.25s;
}

.header__cta:hover
{
  background: var(--light);
  color: #000;
}

/* ---------- Boutons / liens ---------- */
.page-speed_link
{
  font-weight: 700;
  color: var(--violet-bright);
  text-decoration: 1px underline var(--violet-bright);
  text-underline-offset: 2px;

  & svg
  {
    margin-bottom: -3px;
    margin-left: 4px;
  }

  &:hover
  {
    color: var(--coral);
    text-decoration-color: transparent;
  }
}

.btn
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn--primary
{
  background: var(--violet-btn);
  color: var(--light);
}

.btn--primary:hover,
.btn--primary:focus-visible
{
  background: var(--violet-deep);
  box-shadow: 0 10px 44px rgba(140, 82, 255, 0.45);
}

.btn--ghost
{
  border-color: var(--line-dark);
  color: inherit;
}

.section--light .btn--ghost
{
  border-color: var(--line-light);
}

.btn--ghost:hover,
.btn--ghost:focus-visible
{
  border-color: var(--violet);
}

.btn--block
{
  display: block;
  width: 100%;
}

.arrow-link
{
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--violet-bright);
  text-decoration: none;
  margin-top: auto;
  padding-bottom: 0.2rem;
  transition: color 0.25s;
}

/* soulignement dégradé qui balaie de gauche à droite */
.arrow-link::after
{
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-bright), var(--coral));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.arrow-link:hover::after,
.arrow-link:focus-visible::after
{
  transform: scaleX(1);
  transform-origin: 0% 50%;
}

.arrow-link span
{
  display: inline-block;
  transition: transform 0.25s;
}

.arrow-link:hover span,
.arrow-link:focus-visible span
{
  transform: translateX(5px);
}

/* ---------- Eyebrows ---------- */
.eyebrow
{
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
}

.eyebrow__num
{
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--violet-bright);
  letter-spacing: 0.05em;
}

.eyebrow .serif
{
  font-size: 1.25rem;
  color: var(--light-grey);
}

.section--light .eyebrow .serif
{
  color: var(--light-grey);
}

.eyebrow__dot
{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  align-self: center;
}

/* ---------- Sections ---------- */
.section
{
  position: relative;
  padding-block: var(--sect);
}

.section--dark
{
  color: var(--star);
}

.section--light,
.cta-banner,
.footer
{
  --muted-light: var(--muted-dark);
  --line-light: var(--line-dark);
  --violet-deep: var(--violet-bright);
  --ink: var(--star);
}

.section--light
{
  background: transparent;
  color: var(--star);
  z-index: 1;
}

.section__title
{
  font-size: var(--fs-h2);
  max-width: 15ch;
  margin-bottom: 1.8rem;
}

.section__lead
{
  max-width: 52ch;
  margin-bottom: 3.6rem;
  color: var(--lighter-grey);
}

.section--light .section__lead
{
  color: var(--lighter-grey);
}

/* ---------- Hero ---------- */
.hero
{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero__inner
{
  position: relative;
  padding-block: 7rem 6.5rem;
}

.hero__eyebrow
{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 3rem;
}

body:not(body.home) .hero__eyebrow
{
  flex-wrap: wrap;
}

.hero__title
{
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.82;
  margin-bottom: 2.4rem;
  text-wrap: balance;
}

.h-line
{
  display: block;
  overflow: clip;
  padding-block: 0.04em;
  margin-block: -0.04em;
}

.h-line__in
{
  display: inline-block;
  will-change: transform;
}

.hero__title .serif
{
  font-size: 1.1em;
  color: var(--violet-bright);
  margin-right: 0.04em;
}

.hero__title .serif .dot
{
  color: var(--violet-bright);
}

.hero__sub
{
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--light-grey);
  margin-bottom: 2.8rem;
}

.hero__sub strong
{
  color: var(--star);
  font-weight: 600;
}

.hero__actions
{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__proof
{
  position: absolute;
  bottom: 2rem;
  left: clamp(1.4rem, 4.5vw, 3rem);
  margin: 0;
  font-size: 0.88rem;
  color: var(--light-grey);
}

.hero__proof strong
{
  color: var(--star);
}

.hero__proof a
{
  color: var(--violet-bright);
}

.hero__scroll
{
  position: absolute;
  bottom: 2rem;
  right: clamp(1.4rem, 4.5vw, 3rem);
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.hero__scroll span
{
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--violet-bright);
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint
{

  0%,
  100%
  {
    transform: translateY(0);
    opacity: 1;
  }

  70%
  {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* ---------- Marquee ---------- */
.marquee
{
  position: relative;
  z-index: 1;
  overflow: clip;
  border-block: 1px solid var(--line-dark);
  padding-block: 1.2rem;
}

.marquee__track
{
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__track span
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--light-grey);
}

.marquee__track i
{
  font-style: normal;
  color: var(--violet);
  margin-inline: 1.6rem;
}

/* ---------- Cartes situation ---------- */
.split-cards
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 3.2rem;
  perspective: 1000px;
}

.card
{
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.6rem;
  background: linear-gradient(160deg, rgba(244, 241, 255, 0.05), rgba(244, 241, 255, 0.015));
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  will-change: transform;
}

/* halo qui suit la souris */
.card::after
{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 80% at var(--mx, 50%) var(--my, 0%), rgba(140, 82, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::after
{
  opacity: 1;
}

/* bordure violet clair au survol */
.card
{
  transition: border-color 0.4s;
}

.card:hover
{
  border-color: rgba(178, 138, 255, 0.65);
}

.card-title_wrapper
{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.card .card__glyph
{
  color: var(--violet-bright);
  font-size: 2.5rem;
  line-height: 1;
  margin-left: -4px;
}

/* glyphe en filigrane, coupé par le coin bas-droit (data-glyph posé en JS) */
.card__glyph::after
{
  content: attr(data-glyph);
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-size: 10rem;
  line-height: 1;
  color: var(--star);
  opacity: 0.04;
  pointer-events: none;
}

.card h3
{
  margin-top: 2px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.card p
{
  color: var(--light-grey);
  margin-bottom: 0.4rem;
}

/* ---------- Voyage horizontal ---------- */
.hscroll
{
  position: relative;
  z-index: 1;
}

.hscroll__pin
{
  overflow: clip;
}

.hscroll__track
{
  display: flex;
  align-items: center;
  gap: clamp(3rem, 3vw, 2.4rem);
  padding-inline: clamp(1.4rem, 4.5vw, 3rem);
  /* espace supplémentaire à droite : sans lui, le rail s'arrête dès que
     le bord droit de la dernière carte touche le bord de l'écran - elle
     n'atteint donc jamais le centre et son activation arrive trop tard.
     Cet espace laisse le temps au scroll de la centrer avant la fin. */
  padding-right: max(3rem, calc(50vw - 15rem));
  min-height: 100svh;
  width: max-content;
  will-change: transform;
}

.hpanel
{
  width: min(30rem, 78vw);
  flex-shrink: 0;
  padding: 2.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 370px;
}

/* habillage discret des panneaux (hors intro) : halo souris,
bordure dégradée sur la carte active */
.hpanel:not(.hpanel--intro)
{
  position: relative;
  overflow: clip;
  padding: 0;
  background: linear-gradient(160deg, rgba(244, 241, 255, 0.045), rgba(244, 241, 255, 0.012));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Overlay violet sur les images */
.hpanel:not(.hpanel--intro)::before
{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgb(140 82 255 / 15%);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

/* Carte active (la plus proche du centre, classe posée en JS) :
   lévitation + lueur, fond qui s'éclaire, icône qui s'allume */
.hpanel:not(.hpanel--intro)
{
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* voile clair fondu par-dessus le fond verre */
.hpanel:not(.hpanel--intro)::after
{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.hpanel.is-active
{
  transform: translateY(-8px) scale(1.1);
}

.hpanel.is-active::after
{
  opacity: 1;
}

.hpanel__ico
{
  width: clamp(1.6rem, 2.4vw, 1.8rem);
  height: clamp(1.6rem, 2.4vw, 1.8rem);
  color: var(--light);
  flex-shrink: 0;
  transition: filter 0.45s;
  margin-top: -0.4rem;
}

.hpanel.is-active .hpanel__ico
{
  filter: drop-shadow(0 0 10px rgba(140, 82, 255, 0.55));
}

.hpanel--intro
{
  border: none;
  background: none;
  min-height: 0;
  width: min(37rem, 50vw);
  justify-content: center;
  padding: 0;
}

.hpanel__hint
{
  margin-top: 2rem;
  color: var(--light-grey);
  font-size: 0.92rem;
}

.hpanel__hint span
{
  display: inline-block;
  animation: hintx 1.6s ease-in-out infinite;
}

@keyframes hintx
{
  50%
  {
    transform: translateX(6px);
  }
}

.hpanel__num
{
  font-size: 2rem;
  line-height: 1;
  color: var(--violet-bright);
  margin-bottom: auto;
}

.hpanel h3
{
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--light);

  & .dot
  {
    color: var(--coral);
  }
}

.hpanel p
{
  color: var(--light);
}

/* Image plein cadre derrière tout le contenu de la carte (hors intro) */
.hpanel__img
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: grayscale(1) brightness(0.75);
}

.hpanel__img.is-loaded
{
  opacity: 1;
}

/* tant qu'aucune image n'est fournie (404), on masque l'icône de lien
   cassé plutôt que de l'afficher dans la carte */
.hpanel__img.img-missing
{
  display: none;
}

/* Overlay dégradé posé sur l'image : icône + titre toujours visibles,
   ancré en bas. Il grandit vers le haut de la carte quand elle passe en
   ".is-active" (scroll-centrage desktop, tap mobile - voir main.js),
   ce qui fait de la place pour la description qui apparaît avec lui. */
.hpanel__overlay
{
  position: absolute;
  inset: auto 0 0 0;
  top: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.7rem;
  background: linear-gradient(to top, rgba(77, 43, 145, 1) 0%, rgba(77, 43, 145, 0.3) 50%, transparent 100%);
  transition: top 0.5s ease;
}

.hpanel.is-active .hpanel__overlay
{
  top: 10%;
}

.hpanel__head
{
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hpanel__desc
{
  margin: 0.9rem 0 0;
  color: var(--light);
  font-size: 0.92rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.35s ease;
}

.hpanel.is-active .hpanel__desc
{
  max-height: 14rem;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.15s;
}

/* le violet du lien PageSpeed passe inaperçu sur le dégradé violet de
   l'overlay : on l'éclaircit pour cette carte précise */
.hpanel__desc .page-speed_link
{
  color: var(--light);
  text-decoration-color: var(--light);
}

/* ---------- Stats ---------- */
.section--stats
{
  z-index: 1;
}

.stats
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 3.6rem;
}

.stat dd
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.stat__unit
{
  color: var(--violet);
  font-size: 0.5em;
  margin-left: 0.08em;
}

.stat dt
{
  color: var(--light-grey);
  font-size: 0.98rem;
  max-width: 30ch;
}

/* ---------- L'éclipse ---------- */
.shift
{
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 0%, rgb(8 7 12 / 100%) 50%, transparent 100%);
}

.shift__stage
{
  position: relative;
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 1.8rem;
  text-align: center;
  overflow: clip;
  padding-inline: 1.4rem;
}

.shift__disc
{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 165vmax;
  height: 165vmax;
  margin: -82.5vmax;
  border-radius: 50%;
  background: var(--light);
  transform: scale(0);
  will-change: transform;
}

.shift__line,
.shift__with
{
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-shift);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--light);
  mix-blend-mode: difference;
}

.shift__line .serif
{
  font-size: 0.97em;
}

.shift__with
{
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.shift__details
{
  position: relative;
  mix-blend-mode: difference;
  color: var(--light);
  display: grid;
  justify-items: center;
  gap: 1.3rem;
}

.shift__details p
{
  max-width: 50ch;
  opacity: 0.85;
}

.shift__chips
{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0;
  margin-bottom: 30px;
}

.shift__chips li
{
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

/* ---------- Méthode ---------- */
.steps
{
  list-style: none;
  margin-top: 1rem;
}

.step
{
  display: grid;
  grid-template-columns: clamp(4rem, 9vw, 7rem) 1fr;
  column-gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: 2.8rem;
  border-top: 1px solid var(--line-light);

  &:first-child
  {
    border-top: none;
  }
}

.step__num
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 3px;
  -webkit-text-stroke: 1px var(--light);
  color: transparent;
}

.step h3
{
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.step p
{
  color: var(--light-grey);
}

/* ---------- Prestations ---------- */
.prestations
{
  list-style: none;
  margin-top: 4rem;
}

@media (max-width: 580px)
{
  .prestations
  {
    margin-top: 2rem;
  }
}

.prestation
{
  display: grid;
  grid-template-columns: clamp(3rem, 7vw, 3rem) 1fr;
  column-gap: clamp(1rem, 3vw, 1rem);
  align-items: start;
  padding-block: 4rem;
  border-top: 1px solid var(--line-dark);
  transition: padding-left 0.4s ease;
  max-width: 65ch;

  &:first-child
  {
    border-top: none;
  }

  &:last-child
  {
    border-bottom: none;
  }
}

@media (max-width: 450px)
{
  .prestations .prestation
  {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
  }
}

.prestation__ico
{
  margin-top: -0.5rem;
  width: clamp(2.5rem, 5vw, 2.5rem);
  height: clamp(2.5rem, 5vw, 2.5rem);
  color: var(--violet-bright);
  flex-shrink: 0;
}

.prestation__body h3
{
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.prestation__body p
{
  color: var(--light-grey);
}

@media (max-width: 640px)
{
  .prestation
  {
    grid-template-columns: 3rem 1fr;
    row-gap: 0.6rem;
  }
}

/* ---------- Offres ---------- */
.pricing
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21.5rem, 100%), 1fr));
  gap: 1.6rem;
  align-items: start;
}

.price-card
{
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  padding: 2.6rem 1.8rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 100%;
}

@media (max-width: 480px)
{
  .price-card
  {
    padding: 2.5rem 1.5rem;

    & .price-card__badge
    {
      top: -1rem;
    }

    & .checklist
    {
      gap: 1.2rem;

      & li
      {
        padding-left: 0;
        background: none;
        line-height: 1.2;
      }
    }
  }
}

@property --spin
{
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.price-card--featured
{
  border: 2px solid transparent;
  background:
    linear-gradient(#240d43, #19092f) padding-box,
    conic-gradient(from var(--spin, 0deg), #8c52ff, #fe5757 55%, #8c52ff) border-box;
  box-shadow: 0 24px 80px rgba(140, 82, 255, 0.16);
  animation: spin 7s linear infinite;
}

@keyframes spin
{
  to
  {
    --spin: 360deg;
  }
}

.price-card__badge
{
  position: absolute;
  top: -0.85rem;
  right: 1.8rem;
  background: var(--grad);
  color: var(--light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
}

.price-card h3
{
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.price-card__tag
{
  color: var(--light-grey);
  margin-bottom: 30px;
}

.price-card__price
{
  line-height: 1;
}

.price-card__price strong
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  vertical-align: -webkit-baseline-middle;
}

.price-card__price span
{
  color: var(--light-grey);
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.price-card__monthly
{
  display: block;
  line-height: 1.4;
  margin: 1.5rem 0 2rem;
}

.price-card__monthly-price
{
  display: block;
  color: var(--light);
  font-size: 1rem;
  font-weight: 600;
}

.price-card__monthly-explanation
{
  display: block;
  color: var(--muted-light);
  font-size: 0.9rem;
  font-weight: 500;
      max-width: 40ch;
}

.checklist
{
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}

.checklist li
{
  padding-left: 1.75rem;
  background: no-repeat left center / 1.05rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c52ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Info-bulles (points des cartes de prix) ---------- */
.info-ico
{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.3em;
  color: var(--light-grey);
  cursor: help;
  vertical-align: -0.2em;
  flex: none;
}

.info-ico svg
{
  width: 100%;
  height: 100%;
}

.info-ico:hover,
.info-ico:focus-visible
{
  color: var(--violet);
  outline: none;
}

.info-ico .tooltip
{
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 250px;
  max-width: 75vw;
  background: var(--obsidian);
  border: 1px solid rgba(244, 241, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--star);
  text-align: left;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
  pointer-events: none;
}

/* flèche : carré pivoté pour hériter de la même bordure que la bulle */
.info-ico .tooltip::after
{
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--obsidian);
  border-right: 1px solid rgba(244, 241, 255, 0.14);
  border-bottom: 1px solid rgba(244, 241, 255, 0.14);
}

.info-ico:hover .tooltip,
.info-ico:focus-visible .tooltip
{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Sur mobile : la bulle au survol est remplacée par un "toast" en bas
   de l'écran (.tip-toast, généré en JS et porté par <body> : un
   position:fixed à l'intérieur de ScrollSmoother serait cassé par le
   transform du conteneur) */
@media (max-width: 760px)
{
  .info-ico .tooltip
  {
    display: none;
  }
}

.tip-toast
{
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 400;
  background: var(--ink);
  border: 1px solid rgba(244, 241, 255, 0.14);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--star);
  text-align: center;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.tip-toast.is-on
{
  opacity: 1;
  transform: translateY(0);
}

.price-card__note
{
  font-size: 0.88rem;
  color: var(--muted-light);
  margin-top: 1rem;
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-layout
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.faq-layout__head
{
  position: sticky;
  top: clamp(6.5rem, 12vh, 9rem);
}

.faq-layout__head .section__title
{
  max-width: 15ch;
  margin-bottom: 0;
}

.faq
{
  display: grid;
  gap: 0.9rem;
}

.faq details
{
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
}

.faq summary
{
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker
{
  display: none;
}

.faq summary::after
{
  content: '+';
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  color: var(--violet);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq details[open] summary::after,
.faq details.is-open summary::after
{
  transform: rotate(45deg);
}

.faq details>div
{
  overflow: hidden;
}

.faq details p
{
  color: var(--light-grey);
  padding-top: 0.85rem;
  max-width: 64ch;
}

/* ---------- Calendrier RDV (Cal.com) ---------- */
section#rdv
{
  padding: 3rem 0 0 0;
}

.cal-tabs
{
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.cal-tab
{
  font: inherit;
  font-weight: 600;
  color: var(--light-grey);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cal-tab.is-active
{
  color: var(--light);
  background: var(--violet-btn);
  border-color: transparent;
}

.cal-embed
{
  position: relative;
  margin-top: 1.6rem !important;
  margin-bottom: 10rem !important;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  overflow: hidden;
  min-height: 42rem;
}

.cal-embed__panel
{
  width: 100%;
  height: 42rem;
}

/* Écran de consentement : rien n'est chargé depuis Cal.com tant qu'on
   n'a pas cliqué ici (voir main.js) - pas de cookie déposé avant action
   explicite de l'utilisateur. */
.cal-gate
{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem;
  text-align: center;
  background: rgba(13, 11, 20, 0.9);
}

.cal-gate__text
{
  max-width: 40ch;
  color: var(--light-grey);
}

@media (max-width: 767px)
{
  /* En vue mensuelle, la grille (jusqu'à 6 semaines) + la liste des
     créneaux empilée en dessous dépassent largement 42rem sur mobile :
     les dernières semaines du mois étaient coupées, impossible de
     réserver en fin de mois. */
  .cal-embed,
  .cal-embed__panel
  {
    height: 74rem;
    min-height: 74rem;
  }
}

/* ---------- Contact ---------- */
.contact
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: start;
}

.contact__meta
{
  color: var(--light-grey);
  line-height: 2.05;
}

.contact__meta a
{
  color: var(--violet-deep);
  font-weight: 600;
}

.form
{
  display: grid;
  gap: 1.25rem;
}

.form__row
{
  display: grid;
  gap: 0.45rem;
}

.form__optional
{
  font-weight: 400;
  color: var(--light-grey);
}

.form label
{
  font-weight: 600;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea,
.msteps input:not([type='radio']),
.msteps select,
.msteps textarea
{
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.msteps input:not([type='radio']):focus,
.msteps textarea:focus
{
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.16);
}

.form textarea,
.msteps textarea
{
  resize: vertical;
  min-height: 7.5rem;
}

.form__status
{
  font-weight: 600;
  color: var(--violet-deep);
  min-height: 1.2em;
  margin-top: 1.2rem;
}

.form__rgpd
{
  font-size: 0.82rem;
  color: var(--light-grey);
}

/* ---------- Footer ---------- */
.footer
{
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--star);
  padding-block: 2rem 3rem;
  overflow: clip;
}

.footer__giant
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1;
  letter-spacing: -1px;
  color: #e5e5e5;
  white-space: nowrap;
  margin-bottom: 1.5rem;
  user-select: none;
}

.footer__giant span
{
  -webkit-text-stroke: 0;
  color: var(--coral);
}

.footer__cols
{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line-light);
  padding-top: 2.2rem;
}

.footer__tagline
{
  color: var(--light-grey);
}

.footer__nav
{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer__nav a
{
  text-decoration: none;
  color: var(--light-grey);
  transition: color 0.2s;
}

.footer__nav a:hover
{
  color: var(--star);
}

.footer__legal
{
  font-size: 0.85rem;
  color: var(--light-grey);
}

.footer__legal a
{
  color: inherit;
  transition: color 0.2s;
}

.footer__legal a:hover,
.footer__legal a:focus-visible
{
  color: var(--star);
}

/* ---------- Responsive ---------- */
/* ---------- Burger (mobile) : trois traits décalés → X en vrille ---------- */
.header__burger
{
  display: none;
  position: relative;
  z-index: 96;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.68, -0.45, 0.27, 1.35);
}

.header__burger::before,
.header__burger::after,
.header__burger span
{
  position: absolute;
  height: 2px;
  border-radius: 99px;
  background: var(--light);
}

.header__burger::before,
.header__burger::after
{
  content: '';
  transition: transform 0.5s cubic-bezier(0.68, -0.45, 0.27, 1.35),
    width 0.3s ease, background 0.3s ease;
}

.header__burger::before
{
  top: 14px;
  left: 10px;
  width: 15px;
}

.header__burger::after
{
  top: 28px;
  right: 10px;
  width: 15px;
}

.header__burger span
{
  top: 21px;
  left: 10px;
  width: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__burger:hover::before,
.header__burger:hover::after
{
  width: 24px;
}

/* ouvert : le bouton vrille, les traits extérieurs se rejoignent en X dégradé */
body.nav-open .header__burger
{
  transform: rotate(180deg);
}

body.nav-open .header__burger::before
{
  width: 24px;
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .header__burger::after
{
  width: 24px;
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open .header__burger span
{
  transform: scaleX(0);
  opacity: 0;
}

@media (max-width: 960px)
{
  .header__burger
  {
    display: flex;
  }

  /* La nav devient un panneau plein écran piloté par body.nav-open */
  .header__nav
  {
    position: fixed;
    inset: 0;
    z-index: 95;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.1rem;
    background:
      radial-gradient(60% 40% at 50% 0%, rgba(140, 82, 255, 0.18), transparent 70%),
      radial-gradient(50% 35% at 50% 100%, rgba(254, 87, 87, 0.8), transparent 70%),
      rgba(8, 7, 12, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
  }

  body.nav-open .header__nav
  {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .header__nav a
  {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  /* délais hors .nav-open : la cascade joue aussi à la fermeture */
  .header__nav a:nth-child(1) { transition-delay: 0.06s; }
  .header__nav a:nth-child(2) { transition-delay: 0.12s; }
  .header__nav a:nth-child(3) { transition-delay: 0.18s; }
  .header__nav a:nth-child(4) { transition-delay: 0.24s; }

  body.nav-open .header__nav a
  {
    opacity: 1;
    transform: translateY(0);
  }

  .header__cta
  {
    padding: 0.85rem 2rem;
  }

  /* backdrop-filter sur .header = bloc englobant qui piégerait la nav
     en position:fixed (leçon V1) : on le retire tant que le menu est
     ouvert, et on fige le scroll derrière. */
  body.nav-open .header
  {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }

  body.nav-open
  {
    overflow: hidden;
  }

  .hero__inner
  {
    padding-block: 6.5rem 2.5rem;
  }

  .hero__proof
  {
    position: static;
    margin-top: 2.4rem;
  }

  .hero__scroll
  {
    display: none;
  }

  .contact
  {
    grid-template-columns: 1fr;
  }

  .step
  {
    grid-template-columns: 1fr;
    row-gap: 0.6rem;
  }

}

/* Cartes avantages : bascule dédiée à 768px (pas 960px, trop tôt pour ce
   composant précis) - alignée sur les breakpoints JS (voir main.js). */
@media (max-width: 767px)
{
  /* le voyage horizontal devient vertical */
  .hscroll__track
  {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding-block: var(--sect);
    /* l'espace ajouté à droite pour le rail horizontal n'a pas lieu
       d'être en colonne : on revient au padding symétrique d'origine */
    padding-right: clamp(1.4rem, 4.5vw, 3rem);
  }

  .hpanel
  {
    width: 100%;
    min-height: 0;
  }

  /* L'image et l'overlay sont en position absolute (voir plus haut) :
     sans hauteur intrinsèque de contenu, la carte s'effondrerait à 0px.
     Un ratio fixe lui redonne une hauteur sur mobile. */
  .hpanel:not(.hpanel--intro)
  {
    aspect-ratio: 4 / 3;
  }

  .hpanel--intro
  {
    width: 100%;
  }

  .hpanel__hint
  {
    display: none;
  }

  .hpanel__num
  {
    margin-bottom: 0.5rem;
  }

  /* plus de "lévitation" (translateY + scale) sur la carte active :
     seul l'overlay qui grandit doit rester perceptible en dessous de 768px */
  .hpanel.is-active
  {
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce)
{

  .hero__scroll span,
  .hpanel__hint span
  {
    animation: none;
  }

  .price-card--featured::before
  {
    animation: none;
  }

  .marquee__track
  {
    transform: none !important;
  }

  *,
  *::before,
  *::after
  {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════ V2.1 : composants additionnels ═══════════ */

/* ---------- Bouton : flèche ↗ qui s'envole ---------- */
.btn__arr
{
  position: relative;
  width: 1.05em;
  height: 1.05em;
  overflow: clip;
  flex-shrink: 0;
}

.btn__arr svg
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.36s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.btn__arr svg+svg
{
  transform: translate(-115%, 115%);
}

.btn:hover .btn__arr svg:first-child,
.btn:focus-visible .btn__arr svg:first-child
{
  transform: translate(115%, -115%);
}

.btn:hover .btn__arr svg+svg,
.btn:focus-visible .btn__arr svg+svg
{
  transform: translate(0, 0);
}

/* ---------- Atelier : mockups devices.css (comme web-scale.fr) ---------- */
.atelier
{
  position: relative;
  z-index: 1;
}

.atelier__stage
{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.2rem, 3vh, 2.6rem);
  padding-block: 5.5rem 2rem;
  overflow: clip;
}

.atelier__head
{
  text-align: center;

  & .eyebrow
  {
    justify-content: center;
  }
}

.atelier__head .section__title
{
  margin-inline: auto;
  margin-bottom: 1rem;
}

.atelier__head .section__lead
{
  margin-inline: auto;
  margin-bottom: 0;
}

.atelier__hint
{
  color: var(--light-grey);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.showcase-stage
{
  --dzl: 0.82;
  --dzp: 0.55;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  perspective: 1800px;
}

.device-wrap-laptop,
.device-wrap-phone
{
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
}

/* zoom → transform:scale : composité par le GPU (zoom forçait un
   relayout + raster complet du mockup à chaque frame → sauts).
   La boîte de layout est compensée via les dimensions natives. */
.device-wrap-laptop
{
  --dz: var(--dzl);
  width: calc(740px * var(--dz));
  height: calc(434px * var(--dz));
}

.device-wrap-phone
{
  --dz: var(--dzp);
  width: calc(428px * var(--dz));
  height: calc(868px * var(--dz));
}

.device-wrap-laptop > .device,
.device-wrap-phone > .device
{
  transform: scale(var(--dz));
  transform-origin: top left;
}

@media (max-height: 860px)
{
  .showcase-stage
  {
    --dzl: 0.66;
    --dzp: 0.46;
  }
}

@media (max-height: 720px)
{
  .showcase-stage
  {
    --dzl: 0.55;
    --dzp: 0.4;
  }
}

/* surcouches devices.css : écran défilant */
.device .device-screen
{
  overflow: hidden;
  position: relative;
  background: #100d18;
}

.device .device-screen img
{
  width: 100%;
  height: auto;
  will-change: transform;
}

.device-glow
{
  position: absolute;
  inset: 10%;
  filter: blur(90px);
  opacity: 0.22;
  z-index: -1;
  border-radius: 50%;
}

/* Écrans intermédiaires : on réduit les deux mockups pour qu'ils
   tiennent côte à côte sans déborder */
@media (max-width: 960px) and (min-width: 761px)
{
  .showcase-stage
  {
    --dzl: 0.66;
    --dzp: 0.45;
  }
}

@media (max-width: 860px) and (min-width: 761px)
{
  .showcase-stage
  {
    --dzl: 0.58;
    --dzp: 0.4;
  }
}

/* Mobile : laptop quasi pleine largeur, téléphone en dessous */
@media (max-width: 760px)
{
  .showcase-stage
  {
    --dzl: 0.58;
    --dzp: 0.49;
    flex-direction: column;
    gap: 1.6rem;
  }
}

@media (max-width: 470px)
{
  .showcase-stage
  {
    --dzl: 0.5;
    --dzp: 0.42;
  }
}

@media (max-width: 380px)
{
  .showcase-stage
  {
    --dzl: 0.44;
    --dzp: 0.38;
  }
}

/* ---------- Actions des cartes réalisation ---------- */
.work__actions
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.9rem;
}

/* ---------- Bandeau CTA ---------- */
.cta-banner
{
  position: relative;
  z-index: 1;
  padding-block: var(--sect);
}

.cta-banner__card
{
  position: relative;
  overflow: hidden;
  text-align: center;
  background: rgba(20, 17, 28, 0.92);
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.6rem, 6vw, 4rem);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)))
{
  .cta-banner__card
  {
    background: linear-gradient(160deg, rgba(244, 241, 255, 0.07), rgba(244, 241, 255, 0.02));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.cta-banner__card::before
{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 90% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.cta-banner .eyebrow
{
  color: var(--light-grey);
}

.cta-banner .section__title
{
  margin-inline: auto;
  max-width: 20ch;
  color: var(--star);
}

.cta-banner__lead
{
  max-width: 46ch;
  margin: 0 auto 2.6rem;
  color: var(--light-grey);
}

/* ---------- Héros des pages intérieures ---------- */
.page-hero
{
  position: relative;
  z-index: 1;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding-top: 150px;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.page-hero__title
{
  font-size: clamp(2.5rem, 7.4vw, 6.2rem);
  line-height: 0.86;
  margin-bottom: 1.4rem;
}

.page-hero__lead
{
  width: 800px;
  max-width: 100%;
  color: var(--light-grey);
  font-size: 1.1rem;
}

/* ---------- Réalisations ---------- */
.works
{
  display: grid;
  gap: clamp(9rem, 10vw, 10rem);
}

.work
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
}

.work:nth-child(even) .work__media
{
  order: 2;
}

.work__media
{
  position: relative;
  border-radius: 20px;
  overflow: clip;
  border: 1px solid var(--line-light);
  background: #15121d;
  aspect-ratio: 16 / 9;
}

.work__media img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work:hover .work__media img
{
  transform: scale(1.035);
}

.work__badge
{
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgb(0 0 0 / 70%);
  color: var(--star);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem 0.26rem;
  border-radius: 999px;
}

.work__tags
{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.work__tags span
{
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet-deep);
  background: rgba(140, 82, 255, 0.09);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgb(206 181 253 / 35%);
}

.work h2
{
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.work__desc
{
  color: var(--light-grey);
  margin-bottom: 1.8rem;
  max-width: 46ch;
}

/* Jauges PageSpeed */
.gauges
{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.gauge
{
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.gauge__svg
{
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.gauge__track
{
  fill: none;
  stroke: var(--line-light);
  stroke-width: 5;
}

.gauge__fill
{
  fill: none;
  stroke: var(--violet);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
}

.gauge__wrap
{
  position: relative;
  width: 64px;
  height: 64px;
}

.gauge__num
{
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.visually-hidden-label
{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gauge__label
{
  font-size: 0.78rem;
  color: var(--light-grey);
  font-weight: 600;
}

.realisation_paragraph
{
  color: var(--light-grey);
  margin-bottom: 20px;
}

/* ---------- Pourquoi nous : arguments + comparatif ---------- */
.args
{
  margin-top: 4rem;
  list-style: none;
}

@media (max-width: 580px)
{
  .args
  {
    margin-top: 2rem;
  }
}

.arg
{
  display: grid;
  grid-template-columns: clamp(4rem, 9vw, 7rem) 1fr;
  column-gap: clamp(1.2rem, 4vw, 3.5rem);
  padding-block: 2.6rem;
  border-top: 1px solid var(--line-light);

  &:first-child
  {
    border-top: none;
  }
}

.arg__num
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 3px;
  -webkit-text-stroke: 1px var(--light);
  color: transparent;
}

.arg h2
{
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.arg p
{
  color: var(--light-grey);
  max-width: 65ch;
}

.versus
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 1.4rem;
}

.versus__col
{
  border-radius: 20px;
  padding: 2.4rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.03);
}

.versus__col--nous
{
  background: rgba(140, 82, 255, 0.09);
  color: var(--star);
  border-color: rgba(140, 82, 255, 0.55);
}

.versus__col h3
{
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}

.versus__col ul
{
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.versus__col li
{
  padding-left: 1.8rem;
  position: relative;
  color: var(--light-grey);
}

.versus__col--nous li
{
  color: var(--light-grey);
}

.versus__col li::before
{
  content: '✕';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--coral);
  font-weight: 700;
}

.versus__col--nous li::before
{
  content: '✓';
  color: var(--violet-bright);
}

/* ---------- Formulaire 3 étapes ---------- */
.msteps
{
  max-width: 620px;
}

.msteps__head
{
  margin-bottom: 1.8rem;
}

.msteps__label
{
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  display: block;
}

.msteps__bar
{
  height: 4px;
  border-radius: 999px;
  background: var(--line-light);
  overflow: clip;
}

.msteps__bar i
{
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0.333);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.mstep
{
  border: none;
}

.mstep[hidden]
{
  display: none;
}

.mstep legend
{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}

.choice-grid
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.9rem;
}

.choice
{
  position: relative;
  display: block;
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.3rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.choice input
{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span
{
  display: block;
}

.choice small
{
  display: block;
  font-weight: 400;
  color: var(--light-grey);
  margin-top: 0.2rem;
}

.choice:hover
{
  border-color: var(--violet);
}

.choice:has(input:checked)
{
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.16);
}

.choice:has(input:focus-visible)
{
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.msteps__nav
{
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 480px)
{
  .msteps__nav
  {
    margin-top: 1rem;
  }
}

.msteps__back
{
  white-space: nowrap;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--light-grey);
  cursor: pointer;
}

.msteps__back:hover
{
  color: var(--star);
}

.msteps__err
{
  color: var(--coral);
  font-weight: 600;
  font-size: 0.92rem;
  min-height: 1.3em;
  margin-top: 0.9rem;
}

/* ---------- Responsive additions ---------- */
@media (max-width: 900px)
{
  .atelier__grid
  {
    grid-template-columns: 1fr;
  }

  .atelier__devices
  {
    justify-content: flex-start;
  }

  .work
  {
    grid-template-columns: 1fr;
  }

  .work:nth-child(even) .work__media
  {
    order: 0;
  }
}

@media (max-width: 760px)
{
  .arg
  {
    grid-template-columns: 1fr;
    row-gap: 0.5rem;
  }

  .device--phone
  {
    display: none;
  }

  .page-hero
  {
    min-height: 52svh;
  }

  /* Le header fixe déborde sur le haut de .shift__stage : padding-top
     dédié pour que place-content:center centre réellement le contenu
     entre le bas de la navbar et le bas de l'écran, pas entre le haut
     (caché sous le header) et le bas. */
  .shift__stage
  {
    padding-top: 6.5rem;
  }

  .faq-layout
  {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .faq-layout__head
  {
    position: static;
  }
}

/* Pages de contenu (mentions légales, CGV, confidentialité) :
   le header est fixe, on dégage le haut de page. */
.container.page-content
{
  padding: clamp(150px, 22vw, 180px) 20px 75px;

  h1
  {
    font-size: clamp(3rem, 4vw, 3.5rem);
    color: var(--violet-bright);
  }

  h2
  {
    margin: 60px 0 15px 0;
  }

  ul
  {
    li
    {
      margin-left: 18px;
    }
  }
}
/* ---------- Où en êtes-vous ? : cartes empilées ---------- */
.flipstack
{
  display: grid;
  gap: 2.4rem;
  width: 700px;
  max-width: 100%;
  margin-top: 3.2rem;
  perspective: 1600px;

  & .card .btn
  {
    margin-top: 10px;
    width: fit-content;
    padding: 0.7rem 1.7rem;
  }
}

/* ---------- Mentions légales ---------- */
body.mentions-legales
{
  & h1
  {
    margin-bottom: 50px;
  }
}

/* ---------- Conseils : liste d'articles ---------- */
section:has(.posts)
{
  padding-top: 0;
}

.posts
{
  display: grid;
  gap: 2rem;
  max-width: 56rem;
}

.post
{
  padding: 2.4rem;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  transition: border-color 0.3s, transform 0.3s;
}

.post:hover
{
  border-color: rgba(140, 82, 255, 0.4);
  transform: translateY(-4px);
}

.post__meta
{
  font-size: 1rem;
  color: var(--light-grey);
  margin-bottom: 0.9rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.post__badge
{
  display: inline-block;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  border: 1px solid rgba(140, 82, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.post h2
{
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.8rem;
}

.post__excerpt
{
  color: var(--light-grey);
}

/* Responsive des cartes */
@media (max-width: 480px)
{
  .hpanel,
  .card,
  .flipstack .card,
  .versus__col,
  .posts article.post
  {
    padding: 2rem 1.5rem 0;
  }

  .card-title_wrapper
  {
    gap: 7px;
  }
}

/* Responsive des titres */
@media (max-width: 480px)
{
  .section__title
  {
    max-width: 100%;
  }
}

/* Responsive très petits écrans */
@media (max-width: 315px)
{
  .btn,
  body .flipstack .card .btn
  {
    padding: 0.5rem 1.2rem;
    gap: 0.3rem;

    & svg,
    & span,
    & .btn__arr
    {
      display: none;
    }
  }

  .card-title_wrapper
  {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq details
  {
    padding: 1rem;
  }
}
/* ---------- Quel artisan choisiriez-vous ? : comparaison de mockups ----------
   Section épinglée (comme l'atelier) : le scroll est bloqué pendant que
   les deux mockups grandissent pour remplir l'écran et que leurs
   captures défilent en interne. */
.compare
{
  position: relative;
  z-index: 1;
}

.compare__stage
{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 5rem);
  /* padding haut généreux : dégage largement la navbar fixe
     (position:fixed, ~80px de haut) avant même que le pin ne
     démarre l'agrandissement des mockups. Padding bas nul : le texte
     qui suit doit rester proche des mockups. */
  padding-block: clamp(7.5rem, 13vh, 9.5rem) 0;
  overflow: clip;
}

/* Centrage vertical : "safe center" centre le bloc titre+mockups tant
   qu'il tient à l'écran, mais bascule automatiquement en alignement haut
   s'il déborde (mobile empilé) — sans quoi le titre remonterait sous la
   navbar. Si le navigateur ne connaît pas "safe", il ignore la ligne et
   garde l'alignement haut : dégradation sûre. La règle desktop garantit
   le centrage même dans ce cas, le contenu y tenant toujours. */
.compare__stage
{
  justify-content: safe center;
}

@media (min-width: 1024px)
{
  .compare__stage
  {
    justify-content: center;
  }
}

/* même mécanique que l'atelier : le titre s'envole au scroll, les
   mockups prennent alors sa place */
.compare__head
{
  text-align: center;

  & .eyebrow
  {
    justify-content: center;
  }
}

.compare__head .section__title,
.compare__head .section__lead
{
  margin-inline: auto;
}

.compare__head .section__title
{
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.32rem, 5.1vw, 3.6rem);
  margin-bottom: 1rem;
}

.compare__head .section__lead
{
  margin-bottom: 0;
}

.compare__below
{
  /* remonte le texte : en fin de pin, la grille de mockups a été
     recentrée vers le haut (elle prend la place du titre envolé), ce
     qui laisse un vide sous elle. margin-top reste à 0 ici (jamais de
     chevauchement par défaut, y compris sans JS/motion réduite) : le
     décalage négatif exact est calculé et appliqué en JS
     (updateCompareBelowOffset dans main.js), à partir de la position
     réellement animée des mockups plutôt que d'une valeur devinée qui
     ne collait pas sur tous les écrans. */
  padding-top: 0;
  padding-bottom: clamp(4rem, 9vw, 7rem);
  margin-top: 0;
}

.compare__subtitle
{
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  margin-bottom: 1.6rem;
}

/* analogue de .showcase-stage (atelier) : au pin, se recentre (et se
   redimensionne sur tablette/mobile) pour prendre la place du titre
   envolé */
.compare__grid
{
  --dzc: 0.6;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
  perspective: 1800px;
}

.compare__unit
{
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1.5rem;
}

/* halo du mockup "moderne" (2ᵉ unité) : blanc et rond, pas le dégradé
   violet→corail utilisé ailleurs par .device-glow (ex. atelier) */
.compare__unit:nth-child(2) .device-glow
{
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 1) 45%, transparent 75%);
}

.compare__tag
{
  display: inline-block;
  background: var(--obsidian);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 1rem;
}

.compare__tag--old
{
  color: var(--light-grey);
  border: 1px solid var(--line-dark);
}

.compare__tag--new
{
  color: var(--light);
  background: var(--violet);
  border: 1px solid var(--violet);
}

.compare__device
{
  --dz: var(--dzc);
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  will-change: transform;
  width: calc(740px * var(--dz));
  height: calc(434px * var(--dz));
}

.compare__device > .device
{
  transform: scale(var(--dz));
  transform-origin: top left;
}

@media (max-width: 1200px) and (min-width: 991px)
{
  .compare__grid
  {
    --dzc: 0.5;
  }
}

@media (max-width: 990px)
{
  .compare__grid
  {
    --dzc: 0.62;
    flex-direction: column;
    /* en colonne, align-items pilote l'axe HORIZONTAL : sans ça les
       mockups restaient collés à gauche (flex-start hérité du mode
       ligne, où il servait à les aligner par le haut) */
    align-items: center;
  }
}

@media (max-width: 470px)
{
  .compare__grid
  {
    --dzc: 0.5;
  }
}

@media (max-width: 380px)
{
  .compare__grid
  {
    --dzc: 0.44;
  }
}

.compare__text
{
  max-width: 62ch;
}

.compare__text p
{
  color: var(--light);
}

.compare__text ol
{
  margin: 1.2rem 0 1.2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: compare-role;
}

.compare__text li
{
  counter-increment: compare-role;
  display: flex;
  gap: 0.9rem;
  padding-block: 0.6rem;
  color: var(--light);
}

.compare__text li::before
{
  content: counter(compare-role);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--violet-bright);
  border: 1px solid var(--violet-bright);
  padding-top: 3px;
}

.compare__tagline
{
  margin-top: 3rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;

  & .serif
  {
    color: var(--violet-bright);
  }
}
