/* ============================================================
   Awilix v3 - composants
   Systeme visuel : compositions centrees, barre de navigation
   flottante, panneaux arrondis, cartes a ombre douce.
   ============================================================ */

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--fg-strong);
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--mid    { max-width: var(--container-mid); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--surface);
  color: var(--fg);
}
.section--tight { padding-block: clamp(3.25rem, 5vw, 5rem); }

/* Le contenu passe au-dessus des elements decoratifs. Cible .container
   uniquement : un selecteur universel ecraserait le positionnement des
   elements en absolu (halo du hero). */
.surface--dark.section > .container { position: relative; z-index: 1; }

/* ---------- Titres de section ---------- */

.section-head {
  display: grid;
  gap: 1.125rem;
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
  max-width: 46rem;
}

/* Composition par defaut du site : l'en-tete centre, comme sur les
   references (surtitre en pastille, titre, phrase de contexte). */
.section-head--center {
  max-width: 52rem;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.section-head--center .section-sub { margin-inline: auto; }

/* Variante en deux temps : titre a gauche, lien a droite (blog). */
.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: end;
}
.section-head__main { display: grid; gap: 1.125rem; }
.section-head__link {
  justify-self: end;
  align-self: end;
  padding-bottom: 0.5rem;
  white-space: nowrap;
}

/* Surtitre en pastille : un vrai objet graphique plutot qu'un simple
   libelle, il marque le debut de chaque section. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  padding: 0.4375rem 0.9375rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.section-head--center .eyebrow,
.hero__body .eyebrow { justify-self: center; }

.section-title { font-size: var(--fs-h2); }
.section-sub {
  font-size: var(--fs-lead);
  color: var(--fg-muted);
  max-width: 42rem;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  padding: 0.9375rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-yellow);
  color: var(--brand-ink);
  box-shadow: 0 10px 26px -14px rgba(23, 23, 28, 0.5);
}
.btn--primary:hover { background: #fffec9; box-shadow: 0 16px 34px -16px rgba(23, 23, 28, 0.55); }

.btn--accent {
  background: var(--brand-purple);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(136, 102, 204, 0.8);
}
.btn--accent:hover { background: #7a58c0; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--fg); background: var(--accent-soft); }

.btn--sm { padding: 0.6875rem 1.125rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.125rem 1.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--accent);
  text-decoration: none;
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Header : barre flottante detachee du bord, logo a gauche,
   navigation reellement centree, action a droite.
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 0.75rem;
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding: 0.5rem 0.5625rem 0.5rem 1.25rem;
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid rgba(23, 23, 28, 0.07);
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 38px -18px rgba(23, 23, 28, 0.28);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 18px 44px -18px rgba(23, 23, 28, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-ink);
  color: var(--brand-purple-lit);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

/* La navigation occupe l'espace central et s'y centre. */
.nav { display: flex; flex: 1; justify-content: center; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 0.125rem; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.5625rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link:hover { opacity: 1; background: rgba(23, 23, 28, 0.05); }
.nav__caret { transition: transform 0.25s var(--ease); }
.nav__item--has-menu[data-open="true"] .nav__caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 0.875rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 236px;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid rgba(23, 23, 28, 0.07);
  border-radius: var(--radius);
  box-shadow: 0 24px 56px -24px rgba(23, 23, 28, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  color: var(--brand-ink);
}
.nav__item--has-menu:hover .submenu,
.nav__item--has-menu[data-open="true"] .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* Pont invisible : le pointeur peut traverser l'ecart entre la barre
   flottante et le sous-menu sans le refermer. */
.submenu::before {
  content: "";
  position: absolute;
  inset: -0.875rem 0 auto 0;
  height: 0.875rem;
}
.submenu__list { display: grid; gap: 1px; }
.submenu__list a {
  display: block;
  padding: 0.5625rem 0.75rem;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--brand-ink);
  transition: background-color 0.18s var(--ease);
}
.submenu__list a:hover { background: #f4f0fb; color: var(--brand-purple); }

.header-cta { flex: none; }

.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  color: var(--brand-ink);
  padding: 1.5rem var(--gutter) 3rem;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { display: grid; gap: 0.25rem; }
.mobile-nav__list > li { border-bottom: 1px solid var(--brand-sand-2); }
.mobile-nav__list a,
.mobile-nav__toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9375rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.mobile-nav__sub { display: none; padding: 0 0 0.75rem 0.875rem; }
.mobile-nav__sub.is-open { display: grid; gap: 0.125rem; }
.mobile-nav__sub a {
  padding: 0.5rem 0.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.mobile-nav .btn { margin-top: 1.25rem; justify-self: start; }

/* ============================================================
   Hero : composition centree, visuel en socle
   ============================================================ */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.25rem, 7vw, 5.75rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(1200px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle,
    rgba(136, 102, 204, 0.34) 0%,
    rgba(136, 102, 204, 0.12) 38%,
    transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  margin-block: 1.375rem 1.5rem;
}
/* Le mot cle du titre est surligne au marqueur jaune, en echo aux
   boutons d'action. */
.hero__accent {
  display: inline-block;
  background: var(--brand-yellow);
  color: var(--brand-ink);
  border-radius: 0.16em;
  padding: 0 0.16em;
  white-space: nowrap;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.125rem;
}

/* Socle social du hero : avis Google a gauche, logos clients a droite. */
.hero .hero__social {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  width: min(1080px, 100%);
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
}
.hero__reviews { flex: 0 1 auto; min-width: 280px; }
.hero__trusted {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.hero__trusted-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.hero__trusted-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.875rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__trusted-list img {
  display: block;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease);
}
.hero__trusted-list li:hover img { opacity: 1; }

@media (max-width: 980px) {
  .hero .hero__social { justify-content: center; }
  .hero__trusted { flex-direction: column; gap: 1rem; }
  .hero__trusted-list { justify-content: center; }
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg-strong);
}
.stat__value em {
  font-style: normal;
  color: var(--brand-purple-lit);
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  margin-top: 0.4375rem;
  letter-spacing: 0.01em;
}

/* ============================================================
   Visuels
   ============================================================ */

.media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* ============================================================
   Bande de libelles (socle du hero, a la place d'un logo-bar)
   ============================================================ */

.strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 5.5vw, 4.5rem);
  display: grid;
  justify-items: center;
  gap: 1.125rem;
  text-align: center;
}
.strip__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.625rem clamp(1.5rem, 3.5vw, 3rem);
}
.strip__list li {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--fg-strong);
  opacity: 0.85;
}

/* ============================================================
   Constat : en-tete centre puis trois blocs arrondis
   ============================================================ */

.statement-title__accent { color: var(--accent); }

.statement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.statement-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.statement-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.625rem;
  padding: 2rem 1.875rem 2.125rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.statement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.statement-card__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 0.375rem;
}
.statement-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  line-height: var(--lh-heading);
  color: var(--fg-strong);
}
.statement-card p {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--fg-muted);
}
.statement-card--accent {
  background: var(--brand-ink);
}
.statement-card--accent .statement-card__num { opacity: 0.55; }
.statement-card__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--accent);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.statement-card__link:hover { color: var(--fg-strong); gap: 0.65rem; }

/* ============================================================
   Cartes (piliers)
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 1.25rem;
}
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease), background-color 0.28s var(--ease);
}
a.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lift);
}

/* Icone a gauche, numero d'ordre a droite : la ligne du haut est occupee
   sur toute sa largeur, la carte cesse de sonner creux. */
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.375rem;
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.card__title { font-size: var(--fs-h3); font-weight: 600; }
.card__text {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.6;
}
/* Le pied colle en bas de la carte : toutes les tuiles d'une rangee
   terminent sur la meme ligne, quelle que soit la longueur du texte. */
.card__foot {
  margin-top: auto;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__foot svg { transition: transform 0.25s var(--ease); }
a.card:hover .card__foot svg { transform: translateX(4px); }

/* ============================================================
   Tuiles secteurs : carte blanche posee sur le fond sable
   ============================================================ */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.tile {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-lift);
}
.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.tile__arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile:hover .tile__arrow { opacity: 1; transform: none; }
.tile__title { font-size: var(--fs-h4); font-weight: 600; }
.tile__text { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.6; }

/* ============================================================
   Bloc split (visuel + texte)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: center;
}
.split__body { display: grid; gap: 1.25rem; align-content: start; justify-items: start; }
.split__body p {
  color: var(--fg-muted);
  max-width: 34rem;
}
.split__body p:first-of-type {
  font-size: var(--fs-lead);
  color: var(--fg);
}
.split__actions { margin-top: 0.75rem; }

/* ============================================================
   Duo : chapeau de section a gauche (colle au defilement),
   contenu long a droite. Sert au process.
   ============================================================ */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.duo__aside {
  display: grid;
  gap: 1.125rem;
  align-content: start;
  justify-items: start;
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

/* ============================================================
   Process : etapes en cartes arrondies numerotees
   ============================================================ */

.steps { display: grid; gap: 0.875rem; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  transition: background-color 0.25s var(--ease);
}
.step__num {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent);
  min-width: 2.25rem;
}
.step__body { display: grid; gap: 0.375rem; }
.step__title { font-size: var(--fs-h4); font-weight: 600; }
.step__text { font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.6; }

/* ============================================================
   Panneau : section encartee dans un grand bloc arrondi
   (la bande jaune), pose sur la surface de la page.
   ============================================================ */

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 5vw, 4.25rem);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 30px 70px -40px rgba(23, 23, 28, 0.35);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.band__title { font-size: var(--fs-h2); }
.band__title span { display: block; }
.band__title span:last-child { color: var(--accent); }
.band__body { display: grid; gap: 1.75rem; justify-items: start; }
.band__text {
  font-size: var(--fs-lead);
  color: var(--fg-muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.chip svg { color: var(--accent); flex: none; }

/* ============================================================
   Temoignages
   ============================================================ */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.quote {
  display: grid;
  /* citation extensible / attribution : les attributions s'alignent
     en bas quelle que soit la longueur des citations */
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  padding: 1.875rem 1.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.quote__text { font-size: var(--fs-body); line-height: 1.62; }
.quote__who {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}
.quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  flex: none;
}
.quote__id { display: grid; gap: 0.125rem; }
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--fg-muted); }

/* ============================================================
   FAQ : accordeon en cartes, colonne centree
   ============================================================ */

.faq { display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-inline: 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq__item[data-open="true"] { border-color: var(--accent-line); box-shadow: var(--shadow); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fg-strong);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__sign {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.28s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 1.375rem;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  line-height: 1.68;
}

/* ============================================================
   Blog
   ============================================================ */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.post-card {
  display: grid;
  gap: 0.875rem;
  align-content: start;
  text-decoration: none;
  color: inherit;
}
.post-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.post-card:hover .post-card__thumb img { transform: scale(1.045); }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}
.post-card__tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.post-card:hover .post-card__title { color: var(--accent); }

/* ============================================================
   CTA final + pied de page (bloc sombre continu)
   ============================================================ */

.final-cta { text-align: center; padding-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.final-cta__title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  letter-spacing: var(--tracking-display);
  line-height: 1.04;
}
.final-cta__text {
  font-size: var(--fs-lead);
  color: var(--fg-muted);
  margin: 1.25rem auto 2.25rem;
  max-width: 34rem;
}

.site-footer {
  background: var(--brand-ink);
  color: #f4f2f8;
  padding-bottom: 2.5rem;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-about { display: grid; gap: 1rem; align-content: start; max-width: 22rem; }
.footer-about p {
  font-size: var(--fs-sm);
  color: #a4a1b0;
  line-height: 1.6;
}
.footer-about .brand__mark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-purple-lit);
}
.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #787688;
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.625rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: #cfcdd8;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-purple-lit); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #cfcdd8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--brand-purple-lit);
  background: rgba(169, 140, 224, 0.16);
}
.footer-copy { font-size: var(--fs-xs); color: #787688; }

/* ============================================================
   Apparition au defilement
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-revealed { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }
.js .reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ============================================================
   Tableau comparatif (pages services)
   ============================================================ */

.compare {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.15fr;
  align-items: stretch;
}
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__aspect {
  display: flex;
  align-items: center;
  padding: 1.125rem 1.5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--fg-strong);
}
.compare__col-label {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-muted);
}
.compare__row--head { background: var(--surface-2); }
.compare__row--head .compare__aspect {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg-muted);
}
.compare__cell {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 1.5rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.compare__cell .icon { flex: none; }
.compare__cell--old { color: var(--fg-muted); }
.compare__cell--old .icon { opacity: 0.5; }
.compare__col-label--win,
.compare__cell--win { background: var(--accent-soft); }
.compare__col-label--win { color: var(--accent); }
.compare__cell--win { color: var(--fg-strong); font-weight: 600; }
.compare__cell--win .icon { color: var(--accent); }

/* ============================================================
   SERP showcase : sous le hero des pages services, la carte de
   resultats Google du client qui grimpe vers le #1, avec les
   methodes en vis-a-vis.
   ============================================================ */

.serp-show {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.serp-show > * { min-width: 0; }

.serp-steps { list-style: none; margin: 1.6rem 0 0; padding: 0; position: relative; }
.serp-steps::before {
  content: ""; position: absolute; left: 13px; top: 16px; bottom: 16px;
  border-left: 1px dashed var(--line-strong);
}
.serp-steps li { position: relative; display: flex; gap: 1rem; padding: 0.75rem 0; }
.serp-steps__num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: 0.74rem; font-weight: 700;
  position: relative; z-index: 1;
}
.serp-steps h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 0.15rem; color: var(--fg-strong); }
.serp-steps p { margin: 0; font-size: var(--fs-sm); color: var(--fg-muted); line-height: 1.55; }

/* Carte SERP : couleurs de marque en dur (rendu type capture d'ecran claire,
   identique quelle que soit la surface de la section porteuse). */
.serp-shot {
  background: var(--brand-white);
  color: var(--brand-ink);
  border: 1px solid #e7e3ee;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-family: var(--font-body);
}
.serp-shot__chrome {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--brand-sand);
  border-bottom: 1px solid #e7e3ee;
}
.serp-shot__dots { display: flex; gap: 5px; }
.serp-shot__dots span { width: 9px; height: 9px; border-radius: 50%; background: #d8d2e4; }
.serp-shot__url {
  flex: 1; min-width: 0;
  background: var(--brand-white);
  border: 1px solid #e7e3ee;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem;
  color: #63636e;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.serp-shot__search {
  display: flex; align-items: center; gap: 0.65rem;
  margin: 1rem 1.15rem 0.35rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid #d8d2e4;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(23, 23, 28, 0.06);
  font-size: 0.92rem; font-weight: 500;
}
.serp-shot__search .icon { color: var(--brand-purple); flex: none; }
.serp-shot__body { padding: 0.8rem 1.15rem 1.25rem; display: grid; gap: 0.7rem; }

.serp-r { position: relative; border-radius: var(--radius); padding: 0.7rem 0.85rem; }
.serp-r__meta { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.3rem; }
.serp-r__fav {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-sand-2); color: #63636e;
  font-size: 0.72rem; font-weight: 700; flex: none;
}
.serp-r__site { font-size: 0.78rem; line-height: 1.25; color: #63636e; }
.serp-r__site strong { display: block; color: var(--brand-ink); font-weight: 500; }
.serp-r__title { font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: #2f3a8f; margin: 0 0 0.25rem; }
.serp-r__snippet { font-size: 0.82rem; line-height: 1.5; color: #63636e; margin: 0; }
.serp-r--dim { opacity: 0.62; }

.serp-r--you {
  background: #f6f1ff;
  border: 1px solid var(--brand-purple);
  box-shadow: 0 14px 34px -18px rgba(136, 102, 204, 0.55);
}
.serp-r--you .serp-r__fav { background: var(--brand-purple); color: var(--brand-white); }
.serp-r--you .serp-r__title { color: var(--brand-purple); }
.serp-r__tag {
  position: absolute; top: -11px; right: 12px;
  background: var(--brand-yellow); color: var(--brand-ink);
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.7rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -8px rgba(23, 23, 28, 0.4);
}
.serp-r__pos {
  position: absolute; top: 50%; left: -14px; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-ink); color: var(--brand-white);
  font-size: 0.72rem; font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(23, 23, 28, 0.5);
}
.serp-r--you .serp-r__pos { background: var(--brand-purple); }

.serp-r__rich { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.35rem; font-size: 0.78rem; color: #63636e; }
.serp-r__stars { display: inline-flex; gap: 1px; color: #f0a92e; }
.serp-r__stars svg { width: 13px; height: 13px; }

.serp-r--ghost {
  border: 1px dashed #c9c2d8;
  background: var(--brand-sand);
  opacity: 0.6;
}
.serp-r--ghost .serp-r__pos { background: #9b97a8; }
.serp-r__ghostlabel {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #9b97a8; margin: 0 0 0.2rem;
}

.serp-climb { position: relative; }
.serp-climb__rail {
  position: absolute; left: -34px; top: 185px; bottom: 46px;
  width: 20px; pointer-events: none;
}
.serp-climb__rail::before {
  content: ""; position: absolute; left: 9px; top: 12px; bottom: 0;
  border-left: 2px dashed var(--brand-purple-lit);
  opacity: 0.8;
}
.serp-climb__rail::after {
  content: ""; position: absolute; left: 3px; top: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid var(--brand-purple-lit);
}

@media (max-width: 980px) {
  .serp-show { grid-template-columns: 1fr; }
  .serp-show__mock { order: -1; }
  .serp-climb__rail { display: none; }
}
@media (max-width: 680px) {
  .serp-r__pos { left: -8px; width: 24px; height: 24px; font-size: 0.68rem; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: 2.75rem; }
  /* Une fois empile, le texte n'a plus de colonne voisine : la mesure de
     lecture peut s'elargir au lieu de laisser la moitie droite vide. */
  .split__body p { max-width: 46rem; }
  .duo { grid-template-columns: 1fr; gap: 2.5rem; }
  .duo__aside { position: static; }
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; max-width: 34rem; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .header-inner { padding-right: 0.75rem; }
  .card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .section-head--split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }
  .section-head__link { justify-self: start; padding-bottom: 0; }
  .statement-grid { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Le tableau comparatif passe en 2 colonnes : l'aspect devient un
     intitule au-dessus de la paire ancien / nouveau. */
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__aspect { grid-column: 1 / -1; padding-bottom: 0.375rem; }
  .compare__row--head .compare__aspect { display: none; }
  .compare__cell { padding-top: 0.25rem; }
}

@media (max-width: 680px) {
  :root { --header-h: 72px; }
  .quote-grid, .posts, .tile-grid { grid-template-columns: 1fr; }
  .hero__proof { gap: 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bar { justify-content: center; text-align: center; }
  .strip__list { gap: 0.5rem 1.25rem; }
  .panel { padding: 1.75rem 1.5rem; }
  .faq__item { padding-inline: 1.125rem; }
}

@media (max-width: 460px) {
  .hero__actions .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.375rem 1.5rem; }
  /* Plus de place pour deux colonnes : les icones x / check portent le sens. */
  .compare__row { grid-template-columns: 1fr; }
  .compare__row--head { display: none; }
  .compare__cell--old { padding-bottom: 0.375rem; }
}

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