/* ============================================================
   YAXOR — Hero
   ============================================================ */
:root {
  --blue: #2a63ff;
  --blue-deep: #0a2fe0;
  --yellow: #ffe95c;
  --ink: #0b1633;
  --white: #ffffff;
  --webflow: #4353ff;   /* bleu officiel Webflow */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius-pill: 999px;
  --nav-h: 52px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #f4f6fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------
   Hero shell + animated background
   ------------------------------------------------------------ */
.hero {
  position: relative;
  z-index: 10;               /* le menu plein écran (enfant du hero) passe au-dessus des sections suivantes */
  /* Ligne de flottaison : le hero remplit exactement le premier écran, sur toutes les tailles,
     et rien de la section suivante n'apparaît avant de défiler (svh = écran avec les barres du navigateur affichées) */
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.hero__bg,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Tant que WebGL n'a rien dessiné (onglet ouvert en arrière-plan, par ex.), on voit le dégradé CSS de secours */
.hero__bg { display: block; opacity: 0; transition: opacity .6s ease; }
.hero__bg.is-ready { opacity: 1; }

/* Fallback (WebGL indisponible / prefers-reduced-motion) */
.hero__fallback {
  z-index: -3;
  background:
    radial-gradient(120% 90% at 10% 0%, #d9ecff 0%, rgba(217,236,255,0) 55%),
    radial-gradient(90% 70% at 100% 20%, #8fc0ff 0%, rgba(143,192,255,0) 60%),
    linear-gradient(180deg, #4d8dff 0%, #1b4dff 55%, #0a2fe0 100%);
}
.hero__fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
/* Verre liquide de la navigation : la teinte, le bord, les reflets, l'ombre et la couleur du texte sont des
   propriétés déclarées, donc le navigateur les fait glisser en douceur quand la barre change de fond
   (data-fond="hero" sur le dégradé du hero, "clair" ou "sombre" ailleurs, posé par main.js). */
@property --verre-haut  { syntax: "<color>";  inherits: true; initial-value: rgba(255, 255, 255, .42); }
@property --verre-bas   { syntax: "<color>";  inherits: true; initial-value: rgba(255, 255, 255, .42); }
@property --verre-bord  { syntax: "<color>";  inherits: true; initial-value: rgba(255, 255, 255, .95); }
@property --verre-ombre { syntax: "<color>";  inherits: true; initial-value: rgba(0, 20, 90, 0); }
@property --verre-reflet { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, .45); }
@property --nav-texte   { syntax: "<color>";  inherits: true; initial-value: #0b1633; }
@property --logo-blanc  { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --puce        { syntax: "<number>"; inherits: true; initial-value: 0; }

.nav {
  --fluide: cubic-bezier(.22, 1, .36, 1);
  --verre-haut: rgba(255, 255, 255, .42);
  --verre-bas: rgba(255, 255, 255, .42);
  --verre-bord: rgba(255, 255, 255, .95);
  --verre-ombre: rgba(0, 20, 90, 0);
  --verre-reflet: rgba(255, 255, 255, .45);
  --nav-texte: #0b1633;
  --logo-blanc: 0;
  --puce: 0;
  transition:
    --verre-haut .7s var(--fluide), --verre-bas .7s var(--fluide), --verre-bord .7s var(--fluide),
    --verre-ombre .7s var(--fluide), --verre-reflet .7s var(--fluide), --nav-texte .7s var(--fluide),
    --logo-blanc .7s var(--fluide), --puce .5s var(--fluide),
    padding .5s var(--fluide), min-height .5s var(--fluide);
  /* Toujours fixée en haut de l'écran : elle ne change jamais de place, donc rien ne saute au premier
     défilement. La cale (.nav-cale, juste avant elle dans le hero) garde sa hauteur dans la mise en page. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;                /* entre ses pièces, les clics passent au contenu */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--gutter);
  min-height: calc(var(--nav-h) + 52px);
}

.nav__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 16px;
  margin-left: -16px;                  /* la pastille déborde à gauche : le logo reste calé sur la gouttière */
  border-radius: var(--radius-pill);
}
/* Pastille de verre derrière le logo : invisible dans le hero, elle apparaît en fondu quand la barre flotte */
.nav__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--verre-haut), var(--verre-bas));
  border: 1.5px dashed var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 10px 30px var(--verre-ombre);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
          backdrop-filter: blur(14px) saturate(1.6);
  opacity: var(--puce);
  pointer-events: none;
}
/* Logo de la charte, version encre : lockup complet sur ordinateur, trèfle seul sur mobile (≤ 640 px) */
.nav__logo img {
  display: block;
  width: auto;
  /* encre dans le hero et sur fond clair, blanc sur fond sombre, en fondu */
  filter: brightness(calc(1 - var(--logo-blanc))) invert(var(--logo-blanc));
}
.nav__logo-full { height: 30px; }
.nav__logo-mark { height: 32px; margin-left: -4px; }   /* le fichier du trèfle garde une marge interne : on le recale sur la gouttière */
.nav__logo .nav__logo-mark { display: none; }
/* Menu plein écran ouvert (fond bleu) : le logo passe en blanc pour rester lisible */
.menu-open .nav__logo img { filter: brightness(0) invert(1); }

/* La pilule est centrée sur la page, indépendamment de la largeur du logo et du bouton */
.nav__pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--verre-haut), var(--verre-bas));
  border: 1.5px dashed var(--verre-bord);
  box-shadow: inset 0 1px 0 var(--verre-reflet), inset 0 -1px 0 rgba(255,255,255,.06), 0 10px 30px var(--verre-ombre);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: calc(var(--nav-h) - 10px);
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  color: var(--nav-texte);
  white-space: nowrap;
  transition: background .25s ease, box-shadow .25s ease, color .35s ease;
}
.nav__link { position: relative; z-index: 1; }
.nav__link:hover { background: rgba(255,255,255,.55); }
.nav[data-fond="sombre"] .nav__link:hover { background: rgba(255,255,255,.12); }
.nav__link.is-active { font-weight: 600; color: var(--ink); }   /* sur la bulle blanche, toujours à l'encre */
.nav__link.is-active:hover { background: transparent; }

/* La bulle blanche glisse d'un onglet à l'autre au lieu de sauter. Elle est posée par main.js
   (--bulle-g / --bulle-d = écart aux bords gauche et droit de la pilule). En allant vers la droite,
   le bord droit part en premier et la bulle s'étire, puis le bord gauche la rattrape ; l'inverse vers
   la gauche. Sans JS, l'onglet actif garde son fond blanc. */
.nav__bulle {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: var(--bulle-g, 5px);
  right: var(--bulle-d, 5px);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(20,50,140,.12);
  opacity: 0;
  pointer-events: none;
  transition: left .5s cubic-bezier(.3, .8, .25, 1) var(--retard-g, 0s), right .5s cubic-bezier(.3, .8, .25, 1) var(--retard-d, 0s), opacity .2s ease;
}
.nav__pill.a-bulle .nav__bulle { opacity: 1; }
html:not(.yx-js) .nav__link.is-active,
.nav__pill:not(.a-bulle) .nav__link.is-active { background: var(--white); box-shadow: 0 6px 18px rgba(20,50,140,.12); }
.nav__pill.sans-transition .nav__bulle { transition: none; }
@media (prefers-reduced-motion: reduce) { .nav__bulle { transition: none; } }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Burger (visible seulement quand la pilule n'a plus la place) */
.nav__burger {
  display: none;
  position: relative;
  width: var(--nav-h);
  height: var(--nav-h);
  padding: 0;
  border: 1.5px dashed var(--verre-bord);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--verre-haut), var(--verre-bas));
  box-shadow: inset 0 1px 0 var(--verre-reflet), 0 10px 30px var(--verre-ombre);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  cursor: pointer;
}
.nav__burger-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-texte);
  transform: translate(-50%, -50%) translateY(-4px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav__burger-line:last-child { transform: translate(-50%, -50%) translateY(4px); }
.menu-open .nav__burger-line:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-open .nav__burger-line:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Barre fixe ----------
   La cale a exactement la hauteur de la barre au repos (même calcul que son min-height, par format d'écran).
   Dès qu'on défile, main.js la resserre vers le haut en douceur ; en haut de page, elle se desserre. */
.nav > * { pointer-events: auto; }
.nav-cale { flex: 0 0 auto; height: calc(var(--nav-h) + 52px); }
.nav.nav--serree { padding-top: 14px; padding-bottom: 14px; min-height: calc(var(--nav-h) + 28px); }
@media (max-width: 760px) {
  .nav.nav--serree { padding-top: 10px; padding-bottom: 10px; min-height: calc(var(--nav-h) + 20px); }
}
.nav.sans-transition { transition: none; }
.nav[data-fond="clair"] {
  --verre-haut: rgba(255, 255, 255, .80);
  --verre-bas: rgba(244, 247, 255, .62);
  --verre-bord: rgba(255, 255, 255, .95);
  --verre-ombre: rgba(11, 22, 51, .13);
  --verre-reflet: rgba(255, 255, 255, .95);
  --nav-texte: #0b1633;
  --logo-blanc: 0;
  --puce: 1;
}
.nav[data-fond="sombre"] {
  --verre-haut: rgba(46, 66, 130, .52);
  --verre-bas: rgba(6, 14, 44, .58);
  --verre-bord: rgba(255, 255, 255, .30);
  --verre-ombre: rgba(0, 0, 0, .32);
  --verre-reflet: rgba(255, 255, 255, .38);
  --nav-texte: rgba(255, 255, 255, .92);
  --logo-blanc: 1;
  --puce: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* Menu plein écran */
.menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* le centrage vertical vient des margin auto ci-dessous ; center empêcherait le défilement quand ça déborde */
  gap: clamp(20px, 5vh, 40px);
  padding: clamp(88px, 18vh, 120px) var(--gutter) 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(10, 47, 224, .82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}
/* Centré quand ça tient, aligné en haut (donc défilable) quand ça déborde */
.menu__links { margin-top: auto; }
.menu__cta   { margin-bottom: auto; flex-shrink: 0; }
.menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.menu__link {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1.1;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  transition: color .2s ease;
}
.menu__link:hover,
.menu__link.is-active { color: var(--white); }
.menu__link.is-active { color: var(--yellow); }

/* ------------------------------------------------------------
   Buttons (pilule + pastille flèche)
   ------------------------------------------------------------ */
/* Bouton : au repos, la pilule et le rond fléché sont deux formes nettes séparées par un filet de 2 px, avec
   UNE seule ombre portée par l'ensemble ; au survol ou au focus clavier, ils s'écartent en douceur. */
.btn {
  --btn-ombre: rgba(0,30,120,.24);
  filter: drop-shadow(0 10px 18px var(--btn-ombre));
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.btn__label,
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* même courbe douce à l'aller et au retour : un survol rapide repart d'où il en est, sans saut */
  transition: transform .55s cubic-bezier(.22,1,.36,1), background .3s ease, box-shadow .3s ease;
}

.btn__label {
  padding: 0 26px;
  height: var(--nav-h);
  border-radius: var(--radius-pill);
}

/* Au repos, la pilule et le rond sont à 2 px ; au survol, la pilule recule de 3 px et le rond avance de 5 px :
   ils se retrouvent à 10 px l'un de l'autre. */
.btn__icon {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  transform: translateX(calc(2px - var(--btn-gap, 4px)));
}
/* léger reflet en haut de la pilule et du rond */
.btn__label,
.btn__icon { position: relative; }
.btn__label::after,
.btn__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 58%);
  pointer-events: none;
}
.btn__icon svg {
  width: 20px;
  height: 20px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

.btn--blue { --btn-ombre: rgba(18,60,220,.3); }
.btn--blue .btn__label,
.btn--blue .btn__icon {
  background: var(--blue);
  color: var(--white);
}
.btn--yellow { --btn-ombre: rgba(0,30,120,.28); }
.btn--yellow .btn__label,
.btn--yellow .btn__icon {
  background: var(--yellow);
  color: var(--ink);
}
/* une seule ombre, portée par la goutte entière (filtre du bouton) : plus d'ombre par morceau */
.btn .btn__label,
.btn .btn__icon { box-shadow: none !important; }

.btn:hover .btn__icon svg { transform: rotate(45deg); }
.btn:hover .btn__label,
.btn:focus-visible .btn__label { transform: translateX(-3px); }
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { transform: translateX(calc(7px - var(--btn-gap, 4px))); }   /* écart au survol : 10 px */

/* ------------------------------------------------------------
   Hero content
   ------------------------------------------------------------ */
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(64px, 10vh, 120px);
}

/* Preuve sociale */
.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}

.proof__avatars { display: flex; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 3px 10px rgba(0,20,80,.25);
  margin-left: -9px;
}
.avatar:first-child { margin-left: 0; }
.avatar--1 { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c86a3a 70%); }
.avatar--2 { background: radial-gradient(circle at 35% 30%, #f7e4d3, #6a4632 70%); }
.avatar--3 { background: radial-gradient(circle at 35% 30%, #ffe4c7, #3f2a1e 70%); }
.avatar--4 { background: radial-gradient(circle at 35% 30%, #fff0d8, #b87a4c 70%); }

.proof__text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.stars { display: flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; fill: var(--yellow); }
.proof__label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}

/* Titre */
.title {
  position: relative;
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .96;
  letter-spacing: .002em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,30,140,.18);
}

.title__line {
  display: block;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both;
}
.title__line:nth-child(1) { animation-delay: .05s; }
.title__line:nth-child(2) { animation-delay: .15s; }
.title__line:nth-child(3) { animation-delay: .25s; }

/* Ligne 2 : mot · tuile · mot, ajustée à son contenu et centrée.
   Elle sert de repère aux deux badges, posés en chevauchement sur ses coins (comme la référence) */
.title__line--badges {
  position: relative;
  z-index: 2;            /* au-dessus de la ligne 3 : sinon elle recouvre le badge du bas (contextes d'empilement créés par l'animation rise) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2em;
  width: fit-content;
  margin-inline: auto;
  white-space: nowrap;
}
.title__word { display: inline-block; }
.title__accent { color: var(--yellow); }

/* Tuile photo dans le titre : une carte jaune derrière, la photo devant.
   Au survol, la photo revient se poser sur la carte jaune. */
.tile {
  position: relative;
  display: inline-block;
  width: .8em;
  height: .8em;
  flex: none;
  animation: tileFloat 7s ease-in-out infinite;
}
.tile__back,
.tile__front {
  position: absolute;
  inset: 0;
  border-radius: .17em;
  border: .032em solid var(--white);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.tile__back {
  background: var(--yellow);
  box-shadow: 0 .08em .3em rgba(0,20,90,.22);
  transform: translate(.06em, -.04em) rotate(6deg);
}
.tile__front {
  overflow: hidden;
  background: #101a44;
  box-shadow: 0 .12em .38em rgba(0,20,90,.38);
  transform: rotate(-8deg);
}
.tile__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__front { transform: translate(.06em, -.04em) rotate(6deg); }
  .tile:hover .tile__back  { transform: translate(.06em, -.04em) rotate(6deg) scale(1.03); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 9px 7px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0,20,90,.28);
}
.badge__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: var(--white);
}
.badge__logo svg { width: 1.05em; height: 1.05em; }

.badge--webflow {
  background: var(--webflow);
  color: var(--white);
  animation: floatA 5.5s ease-in-out infinite;
}
.badge--webflow .badge__logo { color: var(--webflow); }

.badge--google {
  padding: 7px 15px 7px 9px;
  background: var(--white);
  color: var(--ink);
  animation: floatB 6.5s ease-in-out infinite;
}
.badge--google .badge__logo { background: #f2f4f8; }
.badge--google .badge__logo svg { width: 1em; height: 1em; }

/* Dans le titre : les badges chevauchent les coins de la ligne 2, comme collés sur le texte.
   Webflow : coin haut-gauche, dans l'interligne entre les lignes 1 et 2.
   Google : coin bas-droit, dans l'interligne entre les lignes 2 et 3.
   Le décalage passe par la propriété translate, les keyframes de flottement gardent transform. */
.title .badge {
  position: absolute;
  z-index: 2;
  --ty: 0px;
}
.title .badge--webflow { left: 0;     top: 0;    translate: -50% -32%; }
.title .badge--google  { right: .32em; bottom: 0; translate: 0 46%; }

/* Sous-titre */
.lead {
  max-width: 44rem;
  margin: 0 0 42px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  text-wrap: balance;
  color: rgba(255,255,255,.92);
  animation: rise 1s .35s cubic-bezier(.2,.8,.2,1) both;
}

.hero__content > .btn { animation: rise 1s .45s cubic-bezier(.2,.8,.2,1) both; }

/* ------------------------------------------------------------
   Animations
   ------------------------------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(var(--ty, 0px)) rotate(-17deg); }
  50%      { transform: translateY(calc(var(--ty, 0px) - 5px)) rotate(-14deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(var(--ty, 0px)) rotate(12deg); }
  50%      { transform: translateY(calc(var(--ty, 0px) - 6px)) rotate(9deg); }
}
@keyframes tileFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero__bg { display: none; }
  .badge--webflow { transform: rotate(-17deg); }
  .badge--google  { transform: rotate(12deg); }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
.br-mobile { display: none; }

/* Écrans peu hauts (portable 13" en 650-720 px) : on resserre la hero pour qu'elle tienne */
@media (max-height: 740px) and (min-width: 761px) {
  .nav { padding-top: 16px; padding-bottom: 16px; min-height: calc(var(--nav-h) + 32px); }
  .nav-cale { height: calc(var(--nav-h) + 32px); }
  .hero__content { padding-top: 12px; padding-bottom: 40px; }
  .proof { margin-bottom: 14px; }
  .title { margin-bottom: 18px; }
  .lead { margin-bottom: 26px; }
}

/* Écrans moyens : la pilule se resserre pour laisser la place au bouton */
@media (max-width: 1280px) {
  .nav__link { padding: 0 18px; font-size: 14px; }
}


/* Plus de place pour la pilule : burger + menu plein écran */
@media (max-width: 1100px) {
  .nav__pill { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 760px) {
  .title { font-size: clamp(40px, 10.4vw, 64px); }
  .br-mobile { display: inline; }   /* ON CONSTRUIT / DES MARQUES : deux lignes voulues, pas un mot seul */
  .title__line--badges { gap: .16em; }
  /* Mobile : la ligne 2 occupe presque toute la largeur, les badges restent dans l'écran
     et mordent moins sur les lettres */
  .title .badge--webflow { translate: -36% -64%; }
  /* Google remonte dans l'espace libre à droite de « DES MARQUES » (ligne plus courte),
     en mordant le haut de « SITES » : rien d'important n'est masqué */
  .title .badge--google  { right: 0; top: 0; bottom: auto; translate: 10% -56%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 48px; }
  .nav { padding: 18px var(--gutter); }
  .nav__logo .nav__logo-full { display: none; }
  .nav__logo .nav__logo-mark { display: block; }
  .nav__logo { padding: 0 8px; margin-left: -8px; }   /* pastille ronde autour du trèfle quand la barre flotte */
  .nav__cta { display: none; }      /* le bouton reste dans le menu et dans le hero */
  .hero__content { padding-top: 24px; }
  .title { margin-bottom: 24px; }
  .badge { font-size: 11px; padding: 4px 6px 4px 10px; gap: 5px; }
  .badge--google { padding: 4px 10px 4px 6px; }
  .lead { margin-bottom: 34px; }
  .btn__label { padding: 0 22px; }
}

@media (max-width: 380px) {
  .title { font-size: clamp(34px, 10vw, 40px); }
}

/* Téléphone à l'horizontale (écran très bas) : le hero doit lui aussi tenir dans le premier écran.
   Nav et marges resserrées, titre sur 3 lignes dont la taille suit la hauteur de l'écran, badges à leur place d'ordinateur */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { padding-top: 10px; padding-bottom: 10px; min-height: calc(var(--nav-h) + 20px); }
  .nav-cale { height: calc(var(--nav-h) + 20px); }
  .nav.nav--serree { padding-top: 6px; padding-bottom: 6px; min-height: calc(var(--nav-h) + 12px); }
  .hero__content { padding-top: 0; padding-bottom: 14px; }
  .proof { margin-bottom: 8px; }
  .br-mobile { display: none; }
  .title { font-size: clamp(30px, 11vh, 56px); font-size: clamp(30px, 11svh, 56px); margin-bottom: 12px; }
  .title .badge--webflow { translate: -50% -32%; }
  .title .badge--google  { top: auto; right: .32em; bottom: 0; translate: 0 46%; }
  .lead { max-width: 36rem; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
}
/* Les plus bas (360 px et moins) : la ligne d'avis clients s'efface pour que le bouton reste visible */
@media (max-height: 365px) and (orientation: landscape) {
  .proof { display: none; }
  .hero__content { padding-bottom: 10px; }
}
