/* ==========================================================================
   Nivlak Studio — sections.css
   Composants de la page d'accueil. Dépend de core.css.
   ========================================================================== */

/* ================================================================== HEADER */
.hdr {
  position: fixed;
  top: var(--hdr-top, 16px);
  left: 50%;
  translate: -50% 0;
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  z-index: 100;
  transition:
    translate 420ms var(--ease-out-quint),
    top 320ms var(--ease-out-quint);
}

.hdr__pill {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  padding: 12px 12px 12px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    padding 320ms var(--ease-out-quint),
    box-shadow 320ms var(--ease-out-quint),
    background-color 320ms var(--ease-out-quint);
}

.hdr.is-stuck { --hdr-top: 10px; }
.hdr.is-stuck .hdr__pill {
  padding-block: 8px;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, .93);
}
.hdr.is-hidden { translate: -50% calc(-100% - 28px); }

.hdr__logo { display: flex; align-items: center; flex: 0 0 auto; }
.hdr__logo img { width: 132px; height: auto; }

.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.4vw, 1.5rem);
  margin-inline: auto;
}
.hdr__nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 500;
  padding: .4rem .2rem;
  position: relative;
  transition: color 200ms var(--ease-out-quint);
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: .2rem; right: .2rem; bottom: .1rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent-600);
  scale: 0 1;
  transform-origin: left;
  transition: scale 280ms var(--ease-out-quint);
}
.hdr__nav a:hover { color: var(--ink); }
.hdr__nav a:hover::after { scale: 1 1; }

.hdr__cta { flex: 0 0 auto; }

/* burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.burger span {
  display: block;
  width: 18px; height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    rotate 320ms var(--ease-out-quint),
    translate 320ms var(--ease-out-quint),
    opacity 200ms linear;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { translate: 0 6.6px; rotate: 45deg; }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { translate: 0 -6.6px; rotate: -45deg; }

/* menu plein écran */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: calc(var(--hdr-h) + 40px) var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 480ms var(--ease-inout-quart);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }

.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 400ms var(--ease-out-expo),
    translate 400ms var(--ease-out-quint);
}
.menu.is-open .menu__nav a { opacity: 1; translate: 0 0; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: 120ms; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 160ms; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: 200ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 240ms; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: 280ms; }

.menu__foot { margin-top: auto; display: grid; gap: .75rem; }
.menu__foot .btn { width: 100%; }
.menu__contact {
  display: flex; flex-direction: column; gap: .25rem;
  font-size: var(--step--1); color: var(--fg-muted);
}
.menu__contact a { color: inherit; }

body.menu-open { overflow: clip; }

@media (max-width: 1023px) {
  .hdr__nav { display: none; }
  .burger { display: grid; margin-left: auto; }
  .hdr__cta { display: none; }
  .hdr__pill {
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (min-width: 1024px) {
  .menu { display: none; }
}

/* ==================================================================== HERO */
.hero {
  padding-block: calc(var(--hdr-h) + clamp(3rem, 6vw, 6rem))
                 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: clip;
}

/* halo décoratif — #8090F0 en pur décor, aucun texte dessus */
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  translate: -50% 0;
  width: min(900px, 120%);
  aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center,
              rgba(128, 144, 240, .22), rgba(128, 160, 240, .08) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
/* le contenu repasse au-dessus du halo */
.hero > .container { position: relative; z-index: 1; }

/* ---- mot pivotant, seul sur la 2e ligne du H1 ----
   inline-grid : tous les mots occupent la même cellule. La boîte prend donc
   la largeur du mot le plus long et chaque mot y est centré — le mot étant
   seul sur sa ligne, c'est visuellement identique à une boîte ajustée, mais
   sans aucun calcul de largeur en JS (source du décalage précédent). */
.rotator {
  display: inline-grid;
  justify-items: center;
}
.rotator__word {
  grid-area: 1 / 1;
  color: var(--accent-600);
  opacity: 0;
  visibility: hidden;
}
.rotator__word.is-on { opacity: 1; visibility: visible; }

/* Pas de fill-mode « both » : il fige l'état à 0 % (donc opacity:0) tant que
   l'animation n'a pas démarré — un mot invisible si elle ne se lance jamais.
   Sans lui, .is-on reste visible par sa propre règle. */
@media (prefers-reduced-motion: no-preference) {
  .rotator__word.is-on { animation: boing 620ms var(--ease-spring); }
}
/* L'animation ne touche QUE la transformation : la visibilité reste gérée
   par .is-on, donc un mot ne peut jamais rester invisible. */
@keyframes boing {
  0%   { transform: translateY(4px) scale(.94); }
  55%  { transform: translateY(0) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

/* pas de limite en ch sous 700px : elle étranglerait le titre sur mobile */
.hero__head { text-align: center; margin-inline: auto; }
@media (min-width: 700px) { .hero__head { max-width: 22ch; } }
/* accroche : une ligne forte, une ligne d'information tarifaire */
.hero__sub {
  display: grid;
  gap: .35rem;
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
  max-width: 52ch;
  text-align: center;
}
.hero__sub strong {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.012em;
}
.hero__sub span {
  font-size: var(--step-0);
  color: var(--fg-muted);
}

.hero .btn-row { justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.25rem); }

@media (max-width: 520px) {
  /* l'accroche remplissait la largeur au pixel près : on desserre */
  .hero__sub strong { font-size: var(--step-0); }
  /* CTA empilés et de largeur égale, plus nets que deux boutons décalés */
  .hero .btn-row { flex-direction: column; align-items: stretch; }
}

/* bloc 2 colonnes : visuel + liste de garanties */
.hero__grid {
  margin-top: clamp(3.5rem, 5vw, 4.5rem);
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
}

.hero__shot {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--paper-alt);
}
/* L'image vit dans un mockup de navigateur : elle doit garder son ratio.
   Un height:100% ici se résout différemment selon que le parent a une hauteur
   définie ou non — et déforme le visuel. */
.hero__shot img { width: 100%; height: auto; }
.hero__shot { align-self: start; }

.hero__list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(.5rem, 1.4vw, 1rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.hero__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1rem, 2vw, 1.35rem);
}
.hero__item + .hero__item { border-top: 1px solid var(--line); }
.hero__item h3 { font-size: var(--step-1); margin-bottom: .15rem; }
.hero__item p { font-size: var(--step-0); color: var(--fg-muted); line-height: 1.5; }

/* ================================================================= MARQUEE */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 48s linear infinite;
  animation-play-state: paused;
}
.marquee.is-running .marquee__track { animation-play-state: running; }
.marquee__track:hover { animation-play-state: paused; }

.marquee__item {
  width: clamp(240px, 26vw, 380px);
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  flex: 0 0 auto;
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; }

@keyframes marquee {
  from { translate: 0 0; }
  to { translate: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: 100%; overflow-x: auto; }
}

/* ================================================== PROMESSE (3 colonnes) */
.trio {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, 1fr); } }

.trio .card { display: flex; flex-direction: column; gap: .9rem; }
.trio h3 { margin-top: .3rem; }
.trio p { color: var(--fg-muted); }

/* =================================================================== TARIFS
   3 offres vitrine en ligne 1, 2 offres e-commerce en ligne 2.             */
.pricing__group + .pricing__group { margin-top: clamp(2rem, 4vw, 3rem); }

.pricing__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pricing__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.pricing__grid {
  display: grid;
  gap: clamp(.85rem, 1.6vw, 1.25rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .pricing__grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--accent-100);
  background: var(--accent-050);
  position: relative;
  transition:
    transform 320ms var(--ease-out-quint),
    box-shadow 320ms var(--ease-out-quint);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.plan--featured {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.plan--featured .plan__tag,
.plan--featured .plan__price small,
.plan--featured li { color: rgba(255, 255, 255, .88); }
.plan--featured .plan__sep { background: rgba(255, 255, 255, .25); }
.plan--featured li::before { background: rgba(255, 255, 255, .7); }

.plan__badge {
  position: absolute;
  top: -12px; right: 18px;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: var(--ink-deep);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.plan__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -.024em;
}
.plan__tag { font-size: var(--step--1); color: var(--accent-700); font-weight: 600; }

.plan__price {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.032em;
}
.plan__price small {
  display: block;
  margin-top: .4rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fg-muted);
}

.plan__sep { height: 1px; background: var(--accent-100); margin: 1.25rem 0; }

.plan__feats {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: var(--step-0);
  color: var(--fg-muted);
  /* évite que le badge de l'offre mise en avant fasse refluer la ligne */
  min-height: 11rem;
}
.plan__feats li { position: relative; padding-left: 1.15rem; line-height: 1.45; }
.plan__feats li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn { margin-top: auto; }
.plan__foot { margin-top: 1.25rem; }

.pricing__note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--step--1);
  color: var(--fg-faint);
}

/* mobile : carrousel à aimantation */
@media (max-width: 767px) {
  .pricing__grid {
    /* grid-template-columns:1fr de la règle de base créerait une PREMIÈRE
       colonne explicite dimensionnée différemment des colonnes implicites :
       la 1re carte serait plus étroite que les autres. On l'annule. */
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 340px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    /* overflow-x:auto force le rognage vertical : sans cette réserve en haut,
       le badge « Le plus choisi », qui dépasse de la carte, serait coupé. */
    padding: 18px var(--gutter) 4px;
    margin-inline: calc(var(--gutter) * -1);
    margin-block: -18px -4px;
    scrollbar-width: none;
  }
  .pricing__grid::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: center; }
  .plan__feats { min-height: 0; }
}

/* ============================================================ RÉALISATIONS */
.work { --w-collapsed: 96px; --gap: 12px; --n: 4; }

.work__track {
  display: flex;
  gap: var(--gap);
}

.work__card {
  position: relative;
  flex: 0 0 auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--line);
  contain: layout paint;
}

/* texte vertical du sliver — writing-mode, jamais transform:rotate */
.work__spine {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg-muted);
  transition: opacity 280ms var(--ease-out-quint);
  margin: 0;
}
.work__toggle {
  position: absolute;
  inset: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  writing-mode: inherit;
  display: grid;
  place-items: center;
}

.work__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 20, .72));
  pointer-events: none;
}

.work__tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: .3rem .8rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.work__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.1rem, 1vw + .7rem, 1.75rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.work__body h3 { margin-bottom: .1rem; }
.work__sector {
  font-size: var(--step--1);
  color: var(--fg-faint);
  font-weight: 600;
  margin-bottom: .6rem;
}
.work__body p { color: var(--fg-muted); font-size: var(--step-0); }
.work__body .link-arrow { margin-top: .9rem; }

/* -- desktop : accordéon horizontal ------------------------------------- */
@media (min-width: 1024px) {
  .work__track { height: clamp(440px, 46vw, 620px); }

  .work__card {
    width: var(--w-collapsed);
    transition: width 620ms var(--ease-inout-quart);
  }
  /* la piste totalise toujours exactement 100 % : aucun débordement */
  .work__card.is-open {
    width: calc(100% - (var(--n) - 1) * (var(--w-collapsed) + var(--gap)));
  }

  .work__card:not(.is-open) { background: var(--paper-alt); }
  .work__card:not(.is-open):hover { background: var(--accent-050); }

  .work__panel {
    opacity: 0;
    visibility: hidden;   /* et non display:none — la largeur doit transiter */
    transition: opacity 260ms var(--ease-out-quint);
  }
  .work__card.is-open .work__panel {
    opacity: 1;
    visibility: visible;
    transition-delay: 120ms;   /* n'apparaît pas pendant la transition de largeur */
  }
  .work__card.is-open .work__spine { opacity: 0; pointer-events: none; }

  .work__body { position: absolute; inset: auto 0 0 0; border-top: 0; }
  .work__media::after { height: 60%; }
}

/* -- mobile / tablette : scroll-snap natif ------------------------------ */
@media (max-width: 1023px) {
  .work__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(82%, 360px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }

  .work__card { width: auto; scroll-snap-align: center; background: var(--paper); }
  .work__spine { display: none; }
  .work__media { aspect-ratio: 16 / 9; flex: 0 0 auto; }
  .work__panel { opacity: 1; visibility: visible; }
}

.work__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.work__dots { display: flex; gap: .5rem; }
.work__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color 240ms var(--ease-out-quint), scale 240ms var(--ease-spring);
}
.work__dot.is-on { background: var(--accent-600); scale: 1.3; }

.work__hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--step--1);
  color: var(--fg-faint);
  transition: opacity 300ms var(--ease-out-quint);
}
.work__hint.is-gone { opacity: 0; }
.work__hint .arw { animation: nudge 2s var(--ease-inout-quart) infinite; }
@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px 0; }
}

/* points et indice de glissement : mobile uniquement.
   Déclaré APRÈS .work__hint{display:inline-flex} pour l'emporter. */
@media (min-width: 1024px) {
  .work__foot { display: none; }
}

/* Sans JS l'accordéon ne s'ouvre pas : on repasse en défilement horizontal
   pour que les quatre projets restent consultables. */
.no-js .work__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 420px);
  gap: 16px;
  height: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
}
.no-js .work__card { width: auto; scroll-snap-align: center; background: var(--paper); }
.no-js .work__spine { display: none; }
.no-js .work__media { aspect-ratio: 16 / 9; flex: 0 0 auto; }
.no-js .work__panel { opacity: 1; visibility: visible; }
.no-js .work__body { position: static; border-top: 1px solid var(--line); }
.no-js .work__foot { display: flex; }

/* ==================================================== ACCOMPAGNEMENT (ink) */
.support__panel {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .support__panel { grid-template-columns: .85fr 1.15fr; }
}

.support__chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
  margin-top: 1.5rem;
}
.support__chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--step--1);
  font-weight: 600;
}
.support__chip svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }

.support__note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-size: var(--step-0);
  color: var(--fg-muted);
}

/* mockup navigateur */
.mock {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .5);
  color: var(--ink);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .85rem;
  background: #f2f3f7;
  border-bottom: 1px solid #e4e6ee;
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #d4d6e0; }
.mock__url {
  margin-left: .6rem;
  font-size: .72rem;
  color: #8c8c94;
  background: #fff;
  border-radius: var(--r-pill);
  padding: .18rem .7rem;
}
.mock__body { padding: clamp(.9rem, 2vw, 1.4rem); background: #fbfbfd; }

.mock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.mock__title { font-size: var(--step-1); font-weight: 700; letter-spacing: -.015em; }

.mock__bar-track {
  height: 8px;
  border-radius: 99px;
  background: #e9ebf4;
  overflow: hidden;
  margin-bottom: 1rem;
}
.mock__bar-fill {
  height: 100%;
  width: 72%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-600), var(--accent));
}

.mock__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}
@media (min-width: 560px) { .mock__steps { grid-template-columns: repeat(6, 1fr); } }

.mock__step {
  border-radius: var(--r-sm);
  padding: .6rem .35rem;
  text-align: center;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid #e4e6ee;
  background: #fff;
  color: #5e5e64;
}
.mock__step i {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin: 0 auto .35rem;
  border-radius: 6px;
  font-style: normal;
  font-size: .7rem;
  background: #e9ebf4;
  color: #8c8c94;
}
.mock__step--ok { background: #eefaf1; border-color: #cdeed8; color: #2f7d4f; }
.mock__step--ok i { background: #2f9e5d; color: #fff; }
.mock__step--now { background: var(--accent-050); border-color: var(--accent-100); color: var(--accent-700); }
.mock__step--now i { background: var(--accent-600); color: #fff; }

/* =============================================== SEO / VISIBILITÉ (2 cartes) */
.duo {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }

.duo .card { display: flex; flex-direction: column; gap: 1rem; }
.duo .card--tinted { background: var(--accent-050); border-color: var(--accent-100); }
.duo p { color: var(--fg-muted); }

/* en-tête de carte : pastille d'icône + intitulé sur la même ligne */
.card__head {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.card__head .eyebrow { color: var(--accent-600); }

/* grille de fonctionnalités */
.feats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-top: .25rem;
}
@media (max-width: 460px) { .feats { grid-template-columns: 1fr; } }

.feat {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.25;
  transition:
    border-color 200ms var(--ease-out-quint),
    background-color 200ms var(--ease-out-quint);
}
.feat:hover { border-color: var(--accent-100); background: var(--accent-050); }
.feat svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-600); }

.feat--more {
  grid-column: 1 / -1;
  justify-content: center;
  border-style: dashed;
  background: transparent;
  color: var(--fg-faint);
  font-weight: 500;
}
.feat--more:hover { background: transparent; border-color: var(--line); }

/* ligne de validations sous un mockup */
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  margin-top: .9rem;
}
.checks li {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-muted);
}
.checks svg {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: var(--accent-050);
  color: var(--accent-600);
}

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }

/* mini-mockup fiche Google */
.gmb {
  margin-top: .5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem;
}
.gmb__search {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .55rem .9rem;
  color: var(--fg-faint);
  font-size: var(--step--1);
  margin-bottom: .9rem;
}
.gmb__search svg { width: 15px; height: 15px; }
.gmb__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .55rem; }
.gmb__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-600);
  color: #fff;
  font-weight: 700;
}
.gmb__name { font-weight: 700; line-height: 1.2; }
.gmb__city { font-size: var(--step--1); color: var(--fg-faint); }
.gmb__stars { color: #f5a623; letter-spacing: .1em; font-size: .9rem; }
.gmb__stars span { color: var(--fg-faint); font-size: var(--step--1); letter-spacing: 0; margin-left: .4rem; }
.gmb__lines { display: grid; gap: .4rem; margin: .7rem 0; }
.gmb__lines i { display: block; height: 7px; border-radius: 99px; background: var(--line); }
.gmb__lines i:last-child { width: 62%; }
.gmb__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.gmb__actions .pill { background: var(--accent-050); border-color: var(--accent-100); color: var(--accent-700); }

@media (max-width: 560px) { .gmb__search { display: none; } }

/* ================================================================ TIMELINE */
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  row-gap: clamp(3rem, 6vw, 6rem);
  padding: 0;
  list-style: none;
}

/* --tl-tail : hauteur du bloc de fin sous le nœud « ✓ ». La trame s'arrête
   ainsi au niveau de la pastille, et non sous le texte de conclusion. */
.tl { --tl-tail: 96px; }

.tl::before,
.tl::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  top: 0;
  bottom: var(--tl-tail);
  width: 2px;
  border-radius: 2px;
}
.tl::before { background: var(--line); }
.tl::after {
  background: linear-gradient(180deg, var(--accent-600), var(--accent));
  transform-origin: top;
  scale: 1 var(--tl-p, 0);   /* propriété indépendante → GPU, zéro layout */
}

.tl__item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  position: relative;
  isolation: isolate;
}

.tl__card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
}
/* le contenu passe au-dessus du chiffre fantôme */
.tl__card > *:not(.tl__ghost) { position: relative; z-index: 1; }
.tl__card .eyebrow { color: var(--accent-600); margin-bottom: .3rem; }
.tl__card h3 { margin-bottom: .4rem; }
.tl__card p { color: var(--fg-muted); font-size: var(--step-0); }
.tl__card .pill { margin-top: .9rem; }

/* Placé DANS la carte : il coiffe toujours son propre bloc, quel que soit
   le côté de l'alternance. */
.tl__ghost {
  position: absolute;
  z-index: 0;
  font-weight: 600;
  top: -.16em;
  right: .05em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 8.5rem);
  line-height: .78;
  color: #e6e9f4;
  pointer-events: none;
  user-select: none;
}

.tl__node {
  grid-column: 2;
  justify-self: center;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--fg-faint);
  font-size: .8rem;
  font-weight: 700;
  transition:
    background-color 320ms var(--ease-out-quint),
    border-color 320ms var(--ease-out-quint),
    color 320ms var(--ease-out-quint),
    scale 320ms var(--ease-spring);
}
.tl__node.is-on {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
  scale: 1.08;
}
.tl__node svg { width: 18px; height: 18px; }

.tl__end { display: block; text-align: center; grid-column: 1 / -1; }
.tl__end .tl__node { margin: 0 auto 1rem; }
.tl__endtext p { color: var(--fg-muted); }
.tl__endtext p:first-child { color: var(--fg); }

/* alternance — desktop / tablette uniquement.
   Le fantôme est placé dans la MÊME colonne que sa carte : un élément en
   position absolue dans une grille prend son aire de grille comme bloc
   conteneur, il coiffe donc toujours le coin haut-droit de sa propre carte. */
@media (min-width: 768px) {
  .tl__item:nth-child(odd) .tl__card { grid-column: 1; }
  .tl__item:nth-child(even) .tl__card { grid-column: 3; }
}

/* mobile : rail unique à gauche, aucune alternance */
@media (max-width: 767px) {
  .tl { grid-template-columns: 44px 1fr; row-gap: 2.25rem; --tl-tail: 30px; }
  .tl::before, .tl::after { left: 22px; }
  .tl__item { display: contents; }
  .tl__card { grid-column: 2; }
  .tl__node { grid-column: 1; align-self: start; margin-top: .5rem; }
  .tl__ghost { font-size: 4.5rem; }

  /* display:contents fait remonter les enfants dans la grille : sans ce
     placement, le second paragraphe retombait dans la colonne de 44px
     et s'affichait un mot par ligne. */
  .tl__end .tl__node { grid-column: 1; margin: .35rem 0 0; }
  .tl__endtext { grid-column: 2; text-align: left; }
}

/* ===================================================================== FAQ */
.faq { display: flex; flex-direction: column; gap: .6rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 240ms var(--ease-out-quint), background-color 240ms var(--ease-out-quint);
}
.faq__item.is-open { border-color: var(--accent-100); background: var(--accent-050); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -.012em;
  cursor: pointer;
}

.faq__icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  background: var(--paper);
  transition: background-color 240ms var(--ease-out-quint), border-color 240ms;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--fg-muted);
  border-radius: 2px;
  transition: rotate 320ms var(--ease-out-quint), background-color 240ms;
}
.faq__icon::before { width: 11px; height: 1.6px; }
.faq__icon::after { width: 1.6px; height: 11px; }
.faq__item.is-open .faq__icon { background: var(--accent-600); border-color: var(--accent-600); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { rotate: 90deg; }

/* hauteur auto animée, sans mesure JS */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease-inout-quart);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 1.35rem 1.35rem;
  color: var(--fg-muted);
  max-width: 62ch;
}

.faq__more { margin-top: 1.5rem; text-align: center; }

/* =============================================================== CTA final */
.cta {
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-700), var(--accent-600) 45%, var(--accent) 100%);
  position: relative;
  overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p {
  margin: 1.1rem auto 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, .9);
  font-size: var(--step-1);
}
.cta .btn-row { justify-content: center; margin-top: 2rem; }
.cta__note {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .78);
}

/* ======================================================== PAGES D'ATTERRISSAGE */
.lp-hero {
  padding-block: calc(var(--hdr-h) + clamp(2.5rem, 5vw, 4.5rem)) clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}
.lp-hero h1 { max-width: 18ch; margin-inline: auto; }
.lp-hero .lead { margin: 1.5rem auto 0; }
.lp-hero .btn-row { justify-content: center; margin-top: 2rem; }

/* fil d'Ariane */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: var(--step--1);
  color: var(--fg-faint);
}
.crumbs a { color: var(--fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-700); text-decoration: underline; }
.crumbs li { display: flex; align-items: center; gap: .4rem; list-style: none; }
.crumbs li + li::before { content: "›"; color: var(--fg-faint); }
.crumbs ol { display: contents; }

/* corps éditorial */
.lp-body {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .lp-body { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.lp-body h2 { font-size: var(--step-3); margin-bottom: .6rem; }
.lp-body h3 { margin-top: 1.75rem; margin-bottom: .4rem; }
.lp-body p { color: var(--fg-muted); max-width: 62ch; }
.lp-body p + p { margin-top: .8rem; }
.lp-body ul { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.lp-body ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--fg-muted);
}
.lp-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* encadré latéral */
.lp-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--hdr-h) + 24px); }
@media (max-width: 899px) { .lp-aside { position: static; } }

/* liens vers les autres pages de service */
.lp-links { display: grid; gap: .5rem; }
.lp-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-bg);
  color: var(--fg);
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 500;
  transition: border-color 200ms var(--ease-out-quint),
              background-color 200ms var(--ease-out-quint);
}
.lp-links a:hover { border-color: var(--accent-100); background: var(--accent-050); }
.lp-links svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent-600); }

/* ================================================================== FOOTER */
.footer {
  background: var(--accent-050);
  padding-block: clamp(3rem, 5vw, 4.5rem) 0;
}
.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer__brand img { width: 160px; margin-bottom: 1rem; }
.footer__brand p { color: var(--fg-muted); max-width: 34ch; }
.footer__loc {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  color: var(--accent-700);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
}
.footer__loc svg { width: 15px; height: 15px; }

.footer h4 {
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .75rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--accent-100);
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  list-style: none;
  padding: 0;
}
.footer__col a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out-quint);
}
.footer__col a:hover { color: var(--accent-700); }

.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  /* marge basse supplémentaire : la pastille d'appel flotte au-dessus */
  padding-block: 1.25rem clamp(1.25rem, 1rem + 4vw, 1.75rem);
  border-top: 1px solid var(--accent-100);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--fg-faint);
}
