/* ==========================================================================
   Bosco : agence d'automatisation et d'IA, Marseille
   ========================================================================== */

:root {
  /* Palette : noir profond, ultraviolet en signature, lilas pour les reflets */
  --violet: #6E4CF5;
  --violet-vif: #8466FF;
  --lilas: #B9A6FF;
  --nuit: #0B0912;
  --nuit-2: #17131F;
  --noir: #07060B;
  --blanc: #FFFFFF;
  --brume: #F4F2FB;
  --encre: #0E0B18;
  --encre-2: #5B5670;

  /* l'action a la même couleur partout : boutons, coches, progression */
  --action: var(--violet);
  --action-rgb: 110 76 245;
  --action-vif: var(--violet-vif);
  --sur-action: var(--blanc);

  /* Typographie */
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;

  --fs-body: 1.0625rem;                          /* 17px */
  --fs-small: 0.9375rem;                         /* 15px */
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  --fs-h2: clamp(2.25rem, 1.3rem + 3.4vw, 4.75rem);
  --fs-hero: clamp(2.75rem, 0.4rem + 6.2vw, 7.5rem); /* slogan plus long : chaque phrase tient sur une ligne */

  /* Espacements (base 8) */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-6: 3rem; --s-8: 4rem; --s-12: 6rem;
  --section-y: clamp(4.5rem, 2.5rem + 5vw, 7.5rem); /* chaque section est un bloc de couleur : la couleur sépare, pas le vide */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-h: 4.5rem;

  /* Mouvement */
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.3, 1);
  --t-fast: 160ms;
  --t-base: 280ms;

  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* ---------- Thèmes de section : chaque bloc redéfinit ses couleurs, les composants suivent ---------- */
:root,
.theme-clair,
.site-header.is-scrolled {
  --fond: var(--blanc);
  --fond-rgb: 255 255 255;
  --surface: var(--brume);
  --texte: var(--encre);
  --texte-rgb: 14 11 24;
  --texte-2: var(--encre-2);
  --accent: var(--violet);
  --lien: var(--violet);
  --focus: var(--violet);
  --champ: var(--blanc);
  --danger: #C42B1C;
}
.theme-brume {
  --fond: var(--brume);
  --fond-rgb: 244 242 251;
  --surface: var(--blanc);
  --texte: var(--encre);
  --texte-rgb: 14 11 24;
  --texte-2: var(--encre-2);
  --accent: var(--violet);
  --lien: var(--violet);
  --focus: var(--violet);
  --champ: var(--blanc);
  --danger: #C42B1C;
}
.theme-nuit,
.theme-noir,
.site-header {
  --fond: var(--nuit);
  --fond-rgb: 11 9 18;
  --surface: var(--nuit-2);
  --texte: var(--blanc);
  --texte-rgb: 255 255 255;
  --texte-2: #ABA5C2;
  --accent: var(--lilas);
  --lien: var(--blanc);
  --focus: var(--blanc);
  --champ: var(--blanc);
  --danger: #FFB4A8;
}
.theme-noir { --fond: var(--noir); --fond-rgb: 7 6 11; }
/* les filets se recalculent dans chaque bloc, d'après la couleur de son texte */
:root, .theme-clair, .theme-brume, .theme-nuit, .theme-noir, .site-header {
  --filet: rgb(var(--texte-rgb) / 0.12);
  --filet-fort: rgb(var(--texte-rgb) / 0.24);
}
[class*="theme-"] { background-color: var(--fond); color: var(--texte); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }

a { color: var(--lien); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--texte); }

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

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -4rem;
  z-index: 100;
  padding: var(--s-1) var(--s-2);
  background: var(--action);
  color: var(--sur-action);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(0.97); }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-primary { background: var(--action); color: var(--sur-action); }
.btn-primary::after { background: var(--action-vif); }
.btn-primary:hover { color: var(--sur-action); }

.btn-ghost { border-color: var(--filet-fort); color: var(--texte); }
.btn-ghost::after { background: rgb(var(--texte-rgb) / 0.08); }
.btn-ghost:hover { border-color: rgb(var(--texte-rgb) / 0.5); color: var(--texte); }

/* liens de texte : le surlignage de l'agent */
.link-mark {
  color: var(--texte);
  text-decoration: underline;
  text-decoration-color: rgb(var(--action-rgb) / 0.55);
  text-underline-offset: 0.25em;
  border-radius: 2px;
  background: linear-gradient(rgb(var(--action-rgb) / 0.26), rgb(var(--action-rgb) / 0.26)) no-repeat left / 0% 100%;
  transition: background-size 0.35s var(--ease-out), text-decoration-color 0.2s;
}
.link-mark:hover,
.link-mark:focus-visible {
  color: var(--texte);
  background-size: 100% 100%;
  text-decoration-color: transparent;
}
.footer-line .link-mark { color: var(--accent); }

.link-button {
  padding: 0.5rem 0;
  min-height: 2.75rem;
  border: 0;
  background: none;
  color: var(--texte-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-button:hover { color: var(--texte); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(var(--fond-rgb) / 0.94);
  border-bottom-color: var(--filet);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-height: 2.75rem;
  align-self: center;
  padding-block: 0.4rem;
  color: var(--texte);
  text-decoration: none;
  font: 800 1.75rem/1 var(--f-display);
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--texte); }
.brand::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0 0.2rem -0.3rem;
  border-radius: 1px;
  background: var(--action);
}

.nav-links { display: flex; gap: var(--s-4); }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--texte-2);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--texte); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.45rem;
  height: 2px;
  background: var(--action);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }

.nav-panel { position: relative; display: flex; align-items: center; gap: var(--s-4); }
.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 2px;
  background: var(--action);
  transform-origin: left;
  transform: translate(var(--x, 0), var(--y, 0)) scaleX(var(--w, 0));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.25s;
}
.nav-indicator.is-visible { opacity: 1; }
@media (min-width: 961px) {
  .nav-links a::after { display: none; }
}
.nav-cta { min-height: 2.75rem; padding: 0.6rem 1.2rem; font-size: var(--fs-small); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.25rem 0.5rem 0.75rem;
    border: 0;
    background: none;
    color: var(--texte);
    font: 600 1rem var(--f-body);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    transition: transform var(--t-base) var(--ease-out);
  }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

  .nav-panel {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s-6);
    padding: calc(var(--header-h) + var(--s-4)) var(--gutter) var(--s-6);
    background: var(--fond);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  }
  .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--t-base) var(--ease-out), visibility 0s;
  }
  .nav-links { flex-direction: column; gap: var(--s-1); }
  .nav-links a {
    font: 800 clamp(2.5rem, 10vw, 3.5rem)/1.1 var(--f-display);
    color: var(--texte);
  }
  .nav-links a::after { bottom: 0.2rem; }
  .nav-cta { min-height: 3rem; font-size: 1rem; padding: 0.75rem 1.5rem; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter enfermerait le panneau fixe dans l'en-tête */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ==========================================================================
   Haut de page : la promesse à gauche, l'exemple de conversation à droite
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3.5rem));
  padding-bottom: clamp(3rem, 7vh, 5rem);
  /* une lumière ultraviolette tombe sur le téléphone */
  background:
    radial-gradient(38rem 32rem at 80% 55%, rgb(var(--action-rgb) / 0.3), transparent 70%),
    var(--fond);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-6) clamp(2rem, 0.5rem + 4.5vw, 6rem);
  align-items: center;
}
.hero-text { display: grid; gap: var(--s-3); justify-items: start; }
.hero .hero-title { font-size: clamp(2.375rem, 1.1rem + 4.3vw, 5.5rem); }
/* chaque phrase du titre se coupe en lignes égales (pas de « déjà. » seul sur téléphone) */
.hero .hero-title .line > span { text-wrap: balance; }

/* titre en capitales condensées, la dernière ligne en couleur d'accent (accueil et page apporteurs) */
.hero-title {
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-wrap: initial;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: block; }
.hero-title .line:last-child { color: var(--accent); }

.hero-lead {
  max-width: 36rem;
  color: var(--texte-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* l'appel à l'action, puis ce qui rassure, en petit */
.hero-cta { display: grid; gap: 0.75rem; justify-items: start; margin-top: var(--s-1); }
.btn-lg { flex-wrap: wrap; column-gap: 0.35rem; row-gap: 0; min-height: 3.5rem; padding: 0.9rem 1.75rem; font-size: 1.0625rem; text-align: center; }
.btn-sub { font-weight: 500; opacity: 0.85; }
.hero-reassure { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; color: var(--texte-2); font-size: var(--fs-small); }
.hero-reassure li + li::before { content: "·"; margin-right: 0.6rem; }
.hero-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(var(--action-rgb) / 0.55);
  border-radius: 12px;
  background: rgb(var(--action-rgb) / 0.14);
  font-weight: 600;
  line-height: 1.45;
}
.hero-guarantee svg,
.pilot-guarantee svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.05rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-call { color: var(--texte-2); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
}
/* sur téléphone, un haut de page épuré : le titre, une intro courte, le bouton, l'appel, puis l'exemple.
   Les assurances et la garantie reviennent plus bas (comment ça marche, calendrier, offre). */
.lead-short { display: none; }
@media (max-width: 640px) {
  .lead-long,
  .hero-reassure,
  .hero-guarantee { display: none; }
  .lead-short { display: inline; }
  .hero-text { gap: var(--s-2); }
  .hero-cta { justify-items: stretch; width: 100%; margin-top: var(--s-1); }
  .btn-lg .btn-sub { flex-basis: 100%; }
  .btn-dot { display: none; }
  .hero-call { margin-top: 0.25rem; }
}

/* ---------- L'exemple de conversation, dans le haut de page ---------- */
/* la colonne du téléphone a sa largeur exacte, calculée sur la hauteur de l'écran */
.demo {
  --phone-w: clamp(16rem, calc((100svh - 10rem) * 0.46), 21rem);
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  width: var(--phone-w);
}
@supports not (height: 100svh) {
  .demo { --phone-w: clamp(16rem, calc((100vh - 10rem) * 0.46), 21rem); }
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.demo-tag {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--filet-fort);
  border-radius: 999px;
  color: var(--texte);
  font-size: var(--fs-small);
  font-weight: 600;
}
.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--texte-2);
  font: 600 var(--fs-small)/1 var(--f-body);
  cursor: pointer;
}
.demo-toggle:hover { color: var(--texte); }
.demo-toggle svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-toggle .i-play,
.demo-toggle .i-replay { display: none; }
.demo[data-state="paused"] .i-pause,
.demo[data-state="done"] .i-pause { display: none; }
.demo[data-state="paused"] .i-play,
.demo[data-state="done"] .i-replay { display: block; }
.demo.is-static .demo-toggle { visibility: hidden; }
.demo-phone { display: grid; justify-items: center; }
@media (max-width: 960px) {
  .demo { --phone-w: min(19.5rem, 82vw); justify-self: center; }
}

/* ---------- L'iPhone : titane naturel, aux proportions d'un iPhone Pro ---------- */
/* l'intérieur est mesuré en points iOS : --pt vaut 1/426e de la largeur du téléphone */
.iphone {
  --pt: calc(var(--phone-w) / 426);
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 426 / 885;
  perspective: 1700px;
  color: #111B21;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.32;
  -webkit-tap-highlight-color: transparent;
}
.iphone-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -2.5%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(2 7 12 / 0.8), rgb(2 7 12 / 0));
  filter: blur(calc(9 * var(--pt)));
}
.iphone-body {
  position: absolute;
  inset: 0;
  border-radius: calc(72 * var(--pt));
  background: conic-gradient(from 210deg, #9C978E, #E8E5DF 6%, #ABA69D 15%, #F3F0EB 25%, #A39E95 36%, #D9D5CE 48%, #8F8A82 60%, #E6E3DD 71%, #A9A49B 83%, #CFCBC3 92%, #9C978E);
  box-shadow:
    inset 0 0 0 calc(0.6 * var(--pt)) rgb(255 255 255 / 0.6),
    inset 0 0 calc(2.5 * var(--pt)) calc(1 * var(--pt)) rgb(70 66 60 / 0.4),
    0 0 0 calc(0.6 * var(--pt)) rgb(25 23 20 / 0.5),
    0 calc(24 * var(--pt)) calc(48 * var(--pt)) calc(-8 * var(--pt)) rgb(2 7 12 / 0.55),
    0 calc(60 * var(--pt)) calc(110 * var(--pt)) calc(-24 * var(--pt)) rgb(2 7 12 / 0.5);
}
.iphone-btn {
  position: absolute;
  width: calc(4.2 * var(--pt));
  border-radius: calc(2 * var(--pt));
  background: linear-gradient(90deg, #7E7971, #DAD6CF 45%, #9A958C);
}
.iphone-btn-action, .iphone-btn-up, .iphone-btn-down { left: calc(-2.8 * var(--pt)); }
.iphone-btn-power, .iphone-btn-camera { right: calc(-2.8 * var(--pt)); }
.iphone-btn-action { top: 18.8%; height: 3.5%; }
.iphone-btn-up { top: 25.6%; height: 7%; }
.iphone-btn-down { top: 34.2%; height: 7%; }
.iphone-btn-power { top: 28%; height: 11%; }
.iphone-btn-camera { top: 61%; height: 6.6%; right: calc(-1.4 * var(--pt)); background: linear-gradient(90deg, #5F5B55, #9D9992); }
.iphone-bezel {
  position: absolute;
  inset: calc(5.5 * var(--pt));
  border-radius: calc(66.5 * var(--pt));
  background: #050505;
  box-shadow: inset 0 0 0 calc(0.9 * var(--pt)) #262626, inset 0 0 calc(2 * var(--pt)) calc(1.4 * var(--pt)) #000;
}
.iphone-screen {
  position: absolute;
  inset: calc(11 * var(--pt));
  overflow: hidden;
  border-radius: calc(55 * var(--pt));
  clip-path: inset(0 round calc(55 * var(--pt)));
  background: #EFEAE2;
  font-size: calc(16 * var(--pt));
  isolation: isolate;
}
/* reflet du verre : il glisse avec l'inclinaison */
.iphone-glare {
  position: absolute;
  inset: 0;
  z-index: 90;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0) 38%, rgb(255 255 255 / 0.2) 48%, rgb(255 255 255 / 0) 60%);
  background-size: 260% 100%;
  background-position: calc(50% + var(--gx, 0) * 90%) 0;
  mix-blend-mode: screen;
  opacity: 0.6;
}

/* barre d'état, Dynamic Island, indicateur d'accueil */
.ios-status {
  position: absolute;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: calc(59 * var(--pt));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(30 * var(--pt)) 0 calc(37 * var(--pt));
  color: #000;
  font-size: calc(17 * var(--pt));
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
  transition: color 0.4s;
}
.ios-time { width: calc(60 * var(--pt)); text-align: center; font-variant-numeric: tabular-nums; }
.ios-icons { display: flex; align-items: center; gap: calc(6 * var(--pt)); fill: currentColor; }
.ios-signal { width: calc(18 * var(--pt)); height: calc(12 * var(--pt)); }
.ios-wifi { width: calc(16 * var(--pt)); height: calc(12 * var(--pt)); }
.ios-battery { width: calc(27 * var(--pt)); height: calc(13 * var(--pt)); }
.ios-island {
  position: absolute;
  z-index: 70;
  top: calc(11.5 * var(--pt));
  left: 50%;
  width: calc(125 * var(--pt));
  height: calc(37 * var(--pt));
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}
.ios-island::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(11 * var(--pt));
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #3A4A66 0 14%, #121826 34%, #050608 62%);
}
.ios-home {
  position: absolute;
  z-index: 70;
  bottom: calc(8 * var(--pt));
  left: 50%;
  width: calc(134 * var(--pt));
  height: calc(5 * var(--pt));
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
  transition: background-color 0.4s;
}
.iphone.is-locked .ios-status { color: #fff; }
.iphone.is-locked .ios-time { visibility: hidden; }
.iphone.is-locked .ios-home { background: #fff; }

/* ---------- WhatsApp, version claire ---------- */
.wa {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: url("wa-doodles.svg") 0 0 / calc(210 * var(--pt)) auto, #EFEAE2;
}
.wa-head {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: calc(9 * var(--pt));
  height: calc(106 * var(--pt));
  padding: calc(56 * var(--pt)) calc(16 * var(--pt)) 0 calc(8 * var(--pt));
  background: rgb(246 245 243 / 0.97);
  border-bottom: calc(0.5 * var(--pt)) solid rgb(0 0 0 / 0.14);
}
.wa-back { display: flex; align-items: center; gap: calc(3 * var(--pt)); font-size: calc(17 * var(--pt)); }
.wa-back svg { width: calc(12 * var(--pt)); height: calc(21 * var(--pt)); }
.wa-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(37 * var(--pt));
  height: calc(37 * var(--pt));
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font: 800 calc(20 * var(--pt))/1 var(--f-display);
}
.wa-id { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.wa-name { font-size: calc(16.5 * var(--pt)); font-weight: 600; }
.wa-status { color: #667781; font-size: calc(12.5 * var(--pt)); transition: color 0.2s; }
.wa-head.is-typing .wa-status { color: #1DAA61; }
.wa-calls { display: flex; align-items: center; gap: calc(22 * var(--pt)); }
.wa-video { width: calc(26 * var(--pt)); height: calc(19 * var(--pt)); }
.wa-call { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); }

.wa-scroll {
  position: absolute;
  z-index: 1;
  top: calc(106 * var(--pt));
  bottom: calc(86 * var(--pt));
  left: 0;
  right: 0;
  overflow: hidden;
  scrollbar-width: none;
}
.wa-scroll::-webkit-scrollbar { display: none; }
/* à la souris, on peut remonter la conversation ; au doigt, la page défile normalement */
@media (hover: hover) and (pointer: fine) {
  .wa-scroll { overflow-y: auto; }
}
.demo.is-static .wa-scroll { overflow-y: auto; }

.wa-chat {
  display: flex;
  flex-direction: column;
  gap: calc(2.5 * var(--pt));
  padding: calc(10 * var(--pt)) calc(12 * var(--pt)) calc(14 * var(--pt));
}
.wa-chat[hidden] { display: none; }
.wa-day {
  align-self: center;
  margin-bottom: calc(8 * var(--pt));
  padding: calc(5 * var(--pt)) calc(11 * var(--pt));
  border-radius: calc(8 * var(--pt));
  background: rgb(255 255 255 / 0.92);
  color: #54656F;
  font-size: calc(12.5 * var(--pt));
  font-weight: 500;
  box-shadow: 0 calc(0.6 * var(--pt)) calc(0.5 * var(--pt)) rgb(11 20 26 / 0.12);
}

/* bulles */
.wa-msg { display: flex; flex-direction: column; max-width: 82%; }
.wa-in { align-self: flex-start; }
.wa-out { align-self: flex-end; }
.wa-in + .wa-out, .wa-out + .wa-in { margin-top: calc(7 * var(--pt)); }
.wa-bubble {
  position: relative;
  padding: calc(6 * var(--pt)) calc(8 * var(--pt)) calc(7 * var(--pt)) calc(9 * var(--pt));
  border-radius: calc(9 * var(--pt));
  background: #fff;
  box-shadow: 0 calc(0.7 * var(--pt)) calc(0.6 * var(--pt)) rgb(11 20 26 / 0.13);
}
.wa-out .wa-bubble { background: #D9FDD3; }
.wa-text { overflow-wrap: anywhere; }
/* l'heure se glisse au bout de la dernière ligne quand il reste de la place, sinon dessous */
.wa-text::after { content: ""; display: inline-block; width: calc(40 * var(--pt)); height: 1px; }
.wa-out .wa-text::after { width: calc(58 * var(--pt)); }
.wa-meta {
  position: absolute;
  right: calc(8 * var(--pt));
  bottom: calc(4.5 * var(--pt));
  display: inline-flex;
  align-items: center;
  gap: calc(3 * var(--pt));
  color: #667781;
  font-size: calc(11 * var(--pt));
  line-height: 1;
  white-space: nowrap;
}
.wa-ticks { width: calc(17 * var(--pt)); height: calc(11 * var(--pt)); color: #53BDEB; transition: color 0.35s; }

/* la queue d'iOS, sous la dernière bulle d'une série */
.wa-bubble::after {
  content: none;
  position: absolute;
  bottom: 0;
  width: calc(9 * var(--pt));
  height: calc(14 * var(--pt));
  background: center / 100% 100% no-repeat;
}
.wa-in.is-tail > .wa-bubble { border-bottom-left-radius: 0; }
.wa-out.is-tail > .wa-bubble { border-bottom-right-radius: 0; }
.wa-in.is-tail > .wa-bubble::after {
  content: "";
  left: calc(-6 * var(--pt));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M9 0H6v6.2C6 9.6 4 12.2.9 13.3c-.5.2-.4.7.1.7H9z' fill='%23fff'/%3E%3C/svg%3E");
}
.wa-out.is-tail > .wa-bubble::after {
  content: "";
  right: calc(-6 * var(--pt));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 14'%3E%3Cpath d='M0 0h3v6.2C3 9.6 5 12.2 8.1 13.3c.5.2.4.7-.1.7H0z' fill='%23D9FDD3'/%3E%3C/svg%3E");
}

/* réponse à un message : la citation au-dessus */
.wa-quote {
  display: block;
  margin: calc(-2 * var(--pt)) calc(-4 * var(--pt)) calc(5 * var(--pt)) calc(-5 * var(--pt));
  padding: calc(5 * var(--pt)) calc(9 * var(--pt)) calc(6 * var(--pt));
  border-left: calc(4 * var(--pt)) solid #7A63DD;
  border-radius: calc(6 * var(--pt));
  background: rgb(11 20 26 / 0.05);
  font-size: calc(13.5 * var(--pt));
  line-height: 1.3;
}
.wa-quote b { display: block; color: #7A63DD; font-weight: 600; }
.wa-quote span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #667781; }
/* message préparé par l'agent : la citation entière, au-dessus de sa question */
.wa-quote.is-draft { margin-bottom: calc(7 * var(--pt)); }
.wa-quote.is-draft span { display: block; -webkit-line-clamp: none; color: #111B21; }

/* barre de saisie : micro au repos, puis texte tapé */
.wa-compose {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: calc(11 * var(--pt));
  height: calc(86 * var(--pt));
  padding: calc(8 * var(--pt)) calc(12 * var(--pt)) calc(36 * var(--pt));
  background: rgb(246 245 243 / 0.97);
  border-top: calc(0.5 * var(--pt)) solid rgb(0 0 0 / 0.12);
}
.wa-plus { flex: none; width: calc(26 * var(--pt)); height: calc(26 * var(--pt)); }
.wa-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: calc(6 * var(--pt));
  height: calc(36 * var(--pt));
  padding: 0 calc(8 * var(--pt)) 0 calc(12 * var(--pt));
  border: calc(0.6 * var(--pt)) solid #D1D5D8;
  border-radius: 999px;
  background: #fff;
}
.wa-field-text { flex: 1; min-width: 0; overflow: hidden; white-space: pre; }
.wa-sticker { flex: none; width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); color: #54656F; }
.wa-cam { flex: none; width: calc(25 * var(--pt)); height: calc(25 * var(--pt)); }
.wa-mic {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(27 * var(--pt));
  height: calc(27 * var(--pt));
  border-radius: 50%;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s;
}
.wa-mic svg { width: calc(23 * var(--pt)); height: calc(23 * var(--pt)); }
.wa-send {
  flex: none;
  display: none;
  place-items: center;
  width: calc(33 * var(--pt));
  height: calc(33 * var(--pt));
  border-radius: 50%;
  background: #1DAA61;
  color: #fff;
  transition: transform 0.15s;
}
.wa-send svg { width: calc(17 * var(--pt)); height: calc(17 * var(--pt)); }
.wa-compose.has-text .wa-cam,
.wa-compose.has-text .wa-mic { display: none; }
.wa-compose.has-text .wa-send { display: grid; animation: wa-pop 0.25s var(--ease-out); }
.wa-compose.is-sending .wa-send { transform: scale(0.86); }
.wa-compose.is-typing .wa-field-text::after {
  content: "";
  display: inline-block;
  width: calc(2 * var(--pt));
  height: calc(19 * var(--pt));
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #1DAA61;
  animation: wa-blink 1s steps(2, start) infinite;
}
@keyframes wa-pop { from { transform: scale(0.4); } }

/* ---------- Écran verrouillé : la notification de l'agent ---------- */
.ios-lock {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  border-radius: inherit;
  /* fond d'écran graphite : anthracite qui descend vers le noir, un reflet doux en haut */
  background:
    radial-gradient(120% 60% at 50% 0%, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0) 70%),
    linear-gradient(180deg, #34353A 0%, #1E1F23 50%, #0C0D0F 100%);
  color: #fff;
  transition: transform 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}
.ios-lock[hidden] { display: none; }
.ios-lock.is-open { transform: translateY(-100%); }
.ios-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.38), rgb(0 0 0 / 0.05) 38%, rgb(0 0 0 / 0.05) 55%, rgb(0 0 0 / 0.5));
}
.ios-lock-date,
.ios-lock-time { position: absolute; z-index: 2; left: 0; right: 0; text-align: center; text-shadow: 0 1px 10px rgb(0 0 0 / 0.2); }
.ios-lock-date { top: calc(72 * var(--pt)); font-size: calc(20 * var(--pt)); font-weight: 600; }
.ios-lock-time { top: calc(92 * var(--pt)); font-size: calc(96 * var(--pt)); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ios-notif {
  position: absolute;
  z-index: 2;
  left: calc(10 * var(--pt));
  right: calc(10 * var(--pt));
  bottom: calc(128 * var(--pt));
  display: flex;
  gap: calc(10 * var(--pt));
  align-items: flex-start;
  padding: calc(12 * var(--pt)) calc(14 * var(--pt)) calc(13 * var(--pt));
  border-radius: calc(22 * var(--pt));
  background: rgb(244 244 246 / 0.9);
  color: #000;
  opacity: 0;
  transform: translateY(calc(40 * var(--pt))) scale(0.94);
  transition: opacity 0.35s ease-out, transform 0.6s cubic-bezier(0.34, 1.4, 0.4, 1);
}
.ios-lock.has-notif .ios-notif { opacity: 1; transform: none; }
.ios-lock.is-tapped .ios-notif { transform: scale(0.97); transition-duration: 0.15s; }
.ios-notif-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: calc(38 * var(--pt));
  height: calc(38 * var(--pt));
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font: 800 calc(20 * var(--pt))/1 var(--f-display);
}
.ios-notif-app {
  position: absolute;
  right: calc(-4 * var(--pt));
  bottom: calc(-4 * var(--pt));
  display: grid;
  place-items: center;
  width: calc(18 * var(--pt));
  height: calc(18 * var(--pt));
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 calc(1.5 * var(--pt)) rgb(246 246 246 / 0.95);
}
.ios-notif-app svg { width: calc(11 * var(--pt)); height: calc(11 * var(--pt)); }
.ios-notif-body { flex: 1; min-width: 0; display: grid; gap: calc(1 * var(--pt)); font-size: calc(15 * var(--pt)); line-height: 1.3; }
.ios-notif-top { display: flex; justify-content: space-between; gap: calc(8 * var(--pt)); }
.ios-notif-top b { font-weight: 600; }
.ios-notif-top span { color: rgb(60 60 67 / 0.6); font-size: calc(13 * var(--pt)); }
.ios-notif-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ios-lock-btn {
  position: absolute;
  z-index: 2;
  bottom: calc(46 * var(--pt));
  display: grid;
  place-items: center;
  width: calc(50 * var(--pt));
  height: calc(50 * var(--pt));
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
}
.ios-lock-btn svg { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); }
.ios-lock-torch { left: calc(44 * var(--pt)); }
.ios-lock-cam { right: calc(44 * var(--pt)); }

/* ---------- États pendant la lecture ---------- */
.demo.is-animated .wa-msg:not(.is-on) { display: none; }
.demo.is-animated .wa-msg.is-on { animation: wa-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.demo.is-animated .wa-in.is-on { transform-origin: left bottom; }
.demo.is-animated .wa-out.is-on { transform-origin: right bottom; }
@keyframes wa-in { from { opacity: 0; transform: translateY(calc(12 * var(--pt))) scale(0.96); } }
.demo.is-animated .wa-out:not(.is-read) .wa-ticks { color: #8696A0; }
.demo.is-paused .iphone * { animation-play-state: paused !important; }

/* Séquence d'arrivée */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span {
    transform: translateY(105%);
    animation: rise 0.9s var(--ease-out) forwards;
  }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
  .js .hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }

  .js .hero-text > :not(.hero-title) {
    opacity: 0;
    animation: fade-in 0.8s var(--ease-out) 0.4s forwards;
  }
  .js .demo { opacity: 0; animation: fade-in 0.9s var(--ease-out) 0.25s forwards; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }

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

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
/* sur téléphone, deux sections qui se suivent ne doivent pas laisser un grand vide */
@media (max-width: 760px) {
  :root { --section-y: 4.5rem; }
}

.section h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 16ch;
}

.lead {
  max-width: 38rem;
  color: var(--texte-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* comme dans le haut de page : la fin du titre prend la couleur d'accent du bloc */
.section h2 .accent { color: var(--accent); }

/* titre coupé volontairement en deux lignes */
.section h2.h2-two-lines { max-width: none; text-wrap: wrap; font-size: min(var(--fs-h2), 7.4vw); }
/* le titre prend toute la largeur, l'intro passe dessous */
.section-head:has(.h2-two-lines) { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
.section-head:has(.h2-two-lines) .lead { max-width: 44rem; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-3) var(--s-8);
  align-items: end;
  margin-bottom: var(--s-8);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); margin-bottom: var(--s-6); }
  .section h2 { max-width: 20ch; }
}

h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

/* ---------- Clients : un bandeau de logos qui défile en continu ---------- */
.clients-band { padding-block: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.clients-band-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
}
.clients-band-title { max-width: 9ch; font: 800 clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem)/1 var(--f-display); }
/* deux listes identiques glissent ensemble : quand la première est sortie, la seconde a pris sa place */
.marquee {
  display: flex;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  margin: 0;
  padding: 0 clamp(2.5rem, 2rem + 2vw, 4rem) 0 0;
  list-style: none;
  animation: defile 36s linear infinite;
}
@keyframes defile { to { transform: translateX(-100%); } }
.marquee li { flex: none; display: grid; place-items: center; height: 3.5rem; }
/* le logo sert de pochoir : tous en gris, pour un bandeau calme et homogène */
.client-logo {
  display: block;
  width: 8.5rem;
  height: calc(var(--h, 2.75rem) * 0.72);
  background: var(--texte-2);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
/* logo formé d'un aplat avec des lettres en creux (SNCF, AXA) : un pochoir en ferait un bloc,
   on affiche donc l'image elle-même, passée en gris */
.client-logo.is-solid {
  background: var(--logo) center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
  filter: grayscale(1) opacity(0.6);
}
@media (max-width: 760px) {
  .clients-band-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .clients-band-title { max-width: none; font-size: 1.25rem; }
  .marquee-track { animation-duration: 28s; }
  .client-logo { width: 7rem; }
}
/* sans animation : les logos restent posés, sur une ou deux lignes */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: var(--s-2); padding-right: 0; animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- Carte marine : seulement sous la méthode, là où la route se trace ---------- */
.section-method {
  background: url("isobathes.svg") center top / 2000px auto repeat-y, var(--fond);
}
@media (max-width: 760px) {
  .section-method { background-size: 1300px auto, auto; }
}

/* ---------- Liste à tirets ---------- */
.ticks { display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--texte);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.9rem;
  height: 2px;
  background: var(--action);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.ticks li:nth-child(2)::before { transition-delay: 60ms; }
.ticks li:nth-child(3)::before { transition-delay: 120ms; }
.ticks li:nth-child(4)::before { transition-delay: 180ms; }

/* ---------- Méthode ---------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
  align-items: start;
}
.method-head {
  display: grid;
  gap: var(--s-3);
  position: sticky;
  top: calc(var(--header-h) + var(--s-6));
}

.steps-wrap { position: relative; }

/* la route : pointillés sur toute la traversée, trait violet déjà parcouru */
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-dots { fill: none; stroke: var(--texte-2); stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--action); stroke-width: 2; stroke-linecap: round; }

.steps { position: relative; display: grid; gap: var(--s-8); }
.step {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--filet-fort);
  border-radius: 50%;
  background: var(--fond);
  color: var(--texte-2);
  font: 800 1.5rem/1 var(--f-display);
  transition: border-color var(--t-base), color var(--t-base), box-shadow 0.6s var(--ease-out);
}
/* chaque escale est marquée comme un point fixé sur la carte */
.step-num::after {
  content: "";
  position: absolute;
  inset: -0.6rem;
  background:
    linear-gradient(var(--filet-fort), var(--filet-fort)) 50% 0 / 1px 0.45rem no-repeat,
    linear-gradient(var(--filet-fort), var(--filet-fort)) 50% 100% / 1px 0.45rem no-repeat,
    linear-gradient(var(--filet-fort), var(--filet-fort)) 0 50% / 0.45rem 1px no-repeat,
    linear-gradient(var(--filet-fort), var(--filet-fort)) 100% 50% / 0.45rem 1px no-repeat;
  pointer-events: none;
}
.step.is-reached .step-num::after {
  background:
    linear-gradient(var(--action), var(--action)) 50% 0 / 1px 0.45rem no-repeat,
    linear-gradient(var(--action), var(--action)) 50% 100% / 1px 0.45rem no-repeat,
    linear-gradient(var(--action), var(--action)) 0 50% / 0.45rem 1px no-repeat,
    linear-gradient(var(--action), var(--action)) 100% 50% / 0.45rem 1px no-repeat;
}
.step h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; padding-top: 0.35rem; }
.step-time { color: var(--texte-2); font: 500 var(--fs-small)/1.4 var(--f-body); letter-spacing: 0; }
.step p { margin-top: var(--s-1); max-width: 34rem; color: var(--texte-2); transition: color 0.6s var(--ease-out); }

.js .step:not(.is-reached) h3 { opacity: 0.55; transition: opacity 0.6s var(--ease-out); }
.step.is-reached h3 { opacity: 1; transition: opacity 0.6s var(--ease-out); }
.step.is-reached .step-num {
  border-color: var(--action);
  background: var(--action);
  color: var(--sur-action);
  box-shadow: 0 0 1.5rem rgb(var(--action-rgb) / 0.3);
}
.step.is-reached p { color: var(--texte); }
@media (prefers-reduced-motion: no-preference) {
  .step.is-reached .step-num { animation: pop 0.5s var(--ease-out); }
}
@keyframes pop { 40% { transform: scale(1.12); } }

@media (max-width: 860px) {
  .method { grid-template-columns: 1fr; gap: var(--s-6); }
  .method-head { position: static; }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
}
.faq-list { border-bottom: 1px solid var(--filet); }
.faq details { border-top: 1px solid var(--filet); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: var(--s-3) 3rem var(--s-3) 0;
  font-size: 1.1875rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--action);
  transition: transform var(--t-base) var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq-answer { padding-bottom: var(--s-3); max-width: 38rem; color: var(--texte-2); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-answer { animation: fade-in 0.4s var(--ease-out); }
}

/* ouverture animée là où le navigateur le permet */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size var(--t-base) var(--ease-out), content-visibility var(--t-base) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content { transition: none; }
}

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: var(--s-4); }
}

/* ---------- Contact ---------- */
.section-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--filet);
}
/* la page se referme sur le motif qui l'a ouverte */
.section-contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -12%;
  width: min(62rem, 90vw);
  aspect-ratio: 900 / 640;
  translate: 0 -50%;
  background: url("contact-network.svg") center / contain no-repeat;
  opacity: 0.24;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .section-contact::before { top: 0; right: -30%; width: 120vw; translate: 0 -10%; opacity: 0.22; }
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
}
.contact-intro { display: grid; gap: var(--s-3); align-content: start; }
.contact-direct { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; }
.contact-direct div { display: grid; gap: 0.1rem; }
.contact-direct dt { color: var(--texte-2); font-size: var(--fs-small); }
.contact-direct dd { margin: 0; font-size: 1.125rem; }
.dd-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.copy-btn {
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--filet-fort);
  border-radius: 999px;
  background: none;
  color: var(--texte-2);
  font: 500 0.8125rem/1.2 var(--f-body);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.copy-btn:hover { color: var(--texte); border-color: var(--texte-2); }
.copy-btn.is-done { color: var(--texte); border-color: var(--action); }

.form { display: grid; gap: var(--s-3); }
.form.theme-clair { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 16px; box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.55); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; transition: color var(--t-fast); }
.field:focus-within > label { color: var(--accent); }
.req { color: var(--accent); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--filet-fort);
  border-radius: 6px;
  background: var(--champ);
  color: var(--texte);
  font: inherit;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-2) 50%), linear-gradient(135deg, var(--texte-2) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--texte-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

.field-help { color: var(--texte-2); font-size: var(--fs-small); }
.field-error { color: var(--danger); font-size: var(--fs-small); font-weight: 500; }
.field-error:empty { display: none; }

.field-check { grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 0.75rem; align-items: start; }
.field-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check label { font-weight: 400; color: var(--texte-2); font-size: var(--fs-small); cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.form-note { color: var(--texte-2); font-size: var(--fs-small); }
/* piège anti-robots : hors écran, jamais vu par un humain */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-summary {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--danger);
  border-radius: 6px;
  background: rgb(196 43 28 / 0.06);
}
.form-summary p { font-weight: 600; }
.form-summary ul { margin-top: 0.4rem; display: grid; gap: 0.2rem; }
.form-summary a { color: var(--danger); }

.btn-submit { justify-self: start; min-width: 14rem; }
.btn-submit[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: var(--sur-action);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-submit[aria-busy="true"] .btn-spinner { display: inline-block; }
.btn-check {
  display: none;
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.btn-submit.is-sent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-submit.is-sent::after { display: none; }
.btn-submit.is-sent .btn-check { display: block; animation: draw 0.5s var(--ease-out) 0.1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { font-weight: 600; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: var(--danger); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { justify-self: stretch; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  position: relative;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem) var(--s-4);
  background: var(--fond);
  color: var(--texte-2);
  font-size: var(--fs-small);
}
.footer-top { padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.footer-line {
  max-width: 20ch;
  color: var(--texte);
  font: 800 clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem)/1 var(--f-display);
  text-wrap: balance;
}
.footer-line a { color: var(--accent); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--s-4) var(--s-8);
  padding-block: var(--s-6);
  border-top: 1px solid var(--filet);
}
.footer-col { display: grid; gap: 0.35rem; align-content: start; justify-items: start; }
.footer-col ul { display: grid; gap: 0.35rem; justify-items: start; }
.footer-col a { color: var(--texte); text-decoration: none; }
.footer-brand { margin-bottom: 0.35rem; font: 800 1.75rem/1 var(--f-display); color: var(--texte); }
.footer-brand::after { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; margin-left: 0.15rem; border-radius: 1px; background: var(--action); }
.footer-label { margin-bottom: 0.25rem; color: var(--texte); font-weight: 600; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--filet);
}
.footer-bottom .link-button { margin-left: auto; }
.footer-def { color: var(--texte); }
.footer-def em { font-family: Georgia, "Times New Roman", serif; font-size: 1.05em; }
.footer-coords { font-family: Georgia, "Times New Roman", serif; font-style: italic; letter-spacing: 0.02em; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .link-button { margin-left: 0; }
}

/* ==========================================================================
   Accueil : sections de la page « agences d'intérim »
   ========================================================================== */
/* ---------- La preuve : l'email reçu ---------- */
.proof { padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.proof-inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  align-items: center;
}
.proof-icon { width: 2.75rem; height: 2.75rem; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.proof-title { font: 800 clamp(1.75rem, 1.3rem + 1.5vw, 2.625rem)/1 var(--f-display); }
.proof-text { max-width: 40rem; color: var(--texte-2); font-size: var(--fs-lead); line-height: 1.5; }
@media (max-width: 860px) {
  .proof-inner { grid-template-columns: auto minmax(0, 1fr); }
  .proof-text { grid-column: 1 / -1; }
}

/* ---------- Le problème, le marché, la scène ---------- */
.problem { display: grid; gap: var(--s-2); }
.problem-kicker { color: var(--texte-2); font-size: var(--fs-lead); }
.section .problem h2 { max-width: 20ch; }
.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-4) var(--s-8);
  align-items: start;
  margin-top: var(--s-6);
}
.problem-market { display: grid; gap: var(--s-2); max-width: 36rem; }
.problem-market > p:first-child { font-size: var(--fs-lead); line-height: 1.55; }
.source { color: var(--texte-2); font-size: var(--fs-small); }
.problem-scene {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: 20px;
  background: var(--surface);
  font: 800 clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem)/1.1 var(--f-display);
  box-shadow: 0 1.5rem 3rem -2rem rgb(var(--texte-rgb) / 0.25);
}
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-4); }
}

/* ---------- Aujourd'hui / avec Bosco : les lignes se répondent (sous-grille) ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-3);
}
.compare-col {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-radius: 20px;
}
.compare-col ul { display: contents; }
.compare-col h3 { padding-bottom: var(--s-2); }
.compare-col li {
  position: relative;
  padding: var(--s-2) 0 var(--s-2) 2rem;
  border-top: 1px solid var(--filet);
  line-height: 1.5;
}
.compare-col li::before { content: ""; position: absolute; left: 0.15rem; }
.compare-now { background: var(--surface); }
.compare-now h3,
.compare-now li { color: var(--texte-2); }
.compare-now li::before { top: calc(var(--s-2) + 0.75em); width: 0.9rem; height: 2px; background: currentColor; opacity: 0.55; }
.compare-bosco { box-shadow: 0 2rem 4rem -2rem rgb(var(--action-rgb) / 0.55); }
.compare-bosco h3 { color: var(--accent); }
.compare-bosco li::before {
  top: calc(var(--s-2) + 0.2em);
  left: 0.45rem;
  width: 0.4rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 860px) {
  .compare { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .compare-col { grid-row: auto; grid-template-rows: none; }
}

/* ---------- Comment ça marche : la phrase sur l'agent, puis les deux garanties ---------- */
.how-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-3) var(--s-8);
  align-items: start;
  margin-top: var(--s-8);
  padding-top: var(--s-4);
  border-top: 1px solid var(--filet);
}
.how-agent { max-width: 40rem; color: var(--texte-2); font-size: var(--fs-lead); line-height: 1.55; }
.how-promise { display: grid; gap: 0.6rem; font-size: 1.125rem; font-weight: 600; }
.how-promise li { position: relative; padding-left: 1.75rem; }
.how-promise li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.2em;
  width: 0.4rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 860px) {
  .how-foot { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-6); }
}

/* ---------- Le calendrier : la carte et la route de l'ancienne méthode ---------- */
.step .step-when,
.step.is-reached .step-when { margin: 0; padding-top: 0.2rem; color: var(--accent); font-size: var(--fs-small); font-weight: 600; }
.step .step-when + h3 { padding-top: 0.15rem; }

/* ---------- Le fondateur ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-8);
  align-items: center;
}
.founder-photo {
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(22rem 18rem at 70% 20%, rgb(var(--action-rgb) / 0.45), transparent 70%),
    var(--nuit);
}
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder-initials { color: var(--lilas); font: 800 clamp(4rem, 3rem + 4vw, 7rem)/1 var(--f-display); letter-spacing: 0.02em; }
.founder-text { display: grid; gap: var(--s-3); align-content: center; }
.founder-story { margin: 0; max-width: 38rem; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem); line-height: 1.55; }
.founder-call a { font-size: 1.25rem; font-weight: 600; }
@media (max-width: 860px) {
  .founder { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .founder-photo { width: min(15rem, 60vw); }
}

/* ---------- L'offre et sa garantie ---------- */
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s-6) var(--s-8);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border: 1px solid rgb(var(--action-rgb) / 0.5);
  border-radius: 24px;
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgb(var(--action-rgb) / 0.22), transparent 70%),
    var(--surface);
}
.pilot-main { display: grid; gap: var(--s-3); align-content: start; }
.section .pilot h2 { max-width: none; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); }
.pilot-subtitle { color: var(--texte-2); font: 600 var(--fs-small)/1.4 var(--f-body); letter-spacing: 0; }
.pilot-list { gap: 0.85rem; }
.pilot-side {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-left: var(--s-6);
  border-left: 1px solid var(--filet);
}
.pilot-price { display: grid; gap: 0.35rem; }
.pilot-amount { font: 800 clamp(3.5rem, 2.6rem + 3vw, 5rem)/0.9 var(--f-display); }
.pilot-then { font-size: var(--fs-lead); }
.pilot-then strong { font-weight: 600; }
.pilot-tax,
.pilot-margin { color: var(--texte-2); font-size: var(--fs-small); }
.pilot-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: var(--s-1);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgb(var(--action-rgb) / 0.18);
  font-weight: 600;
  line-height: 1.45;
}
.pilot-side .btn { justify-self: start; margin-top: var(--s-1); }
@media (max-width: 960px) {
  .pilot { grid-template-columns: minmax(0, 1fr); }
  .pilot-side { padding: var(--s-4) 0 0; border-left: 0; border-top: 1px solid var(--filet); }
}

/* ---------- Formulaire : les métiers en pastilles à cocher ---------- */
.field-opt { color: var(--texte-2); font-weight: 400; }
.field-chips { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-chips legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--filet-fort);
  border-radius: 999px;
  background: var(--champ);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.chip span:hover { border-color: var(--texte-2); }
.chip input:checked + span { border-color: var(--action); background: rgb(var(--action-rgb) / 0.1); }
.chip input:checked + span::before {
  content: "";
  width: 0.3rem;
  height: 0.6rem;
  margin: -0.15rem 0.1rem 0 0;
  border: solid var(--action);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.field-chips[data-invalid] .chip span { border-color: var(--danger); }

/* ---------- Pied de page de l'accueil : email, téléphone, mentions ---------- */
.site-footer-min { padding-block: var(--s-6); }
.footer-min { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }
.footer-min .footer-brand { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem var(--s-4); }
.footer-copy { margin-left: auto; }
@media (max-width: 760px) {
  .footer-min,
  .footer-links { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
}

/* ==========================================================================
   Accueil « équipe d'agents IA » : l'équipage et les formules
   ========================================================================== */
/* ---------- L'équipage : Bosco en tête, puis une carte par agent ---------- */
.crew-lead {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-4) var(--s-6);
  align-items: center;
  margin-bottom: var(--s-3);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: 24px;
  box-shadow: 0 2rem 4rem -2rem rgb(var(--action-rgb) / 0.55);
}
.crew-lead-text { display: grid; gap: var(--s-2); justify-items: start; }
.crew-lead-text p { max-width: 34rem; color: var(--texte-2); font-size: var(--fs-lead); line-height: 1.5; }
.crew-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--action);
  color: var(--sur-action);
  font: 800 1.5rem/1 var(--f-display);
}
.crew-lead h3,
.crew-card h3 { display: grid; gap: 0.15rem; }
.crew-role { color: var(--texte-2); font: 500 var(--fs-small)/1.3 var(--f-body); letter-spacing: 0; }

.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}
.crew-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--filet);
  border-radius: 20px;
  background: var(--surface);
}
.crew-card > p { color: var(--texte-2); font-size: var(--fs-small); line-height: 1.5; }
.crew-card-cta {
  justify-content: center;
  border: 0;
  background:
    radial-gradient(18rem 14rem at 100% 0%, rgb(var(--action-rgb) / 0.45), transparent 70%),
    var(--fond);
}
.crew-card-cta .btn { align-self: flex-start; }
.crew-note { margin-top: var(--s-2); color: var(--texte-2); font-size: var(--fs-small); }

/* la mini-conversation : la demande en vert, le résultat en blanc, comme sur WhatsApp */
.mini-chat {
  --wa-fond: #EFEAE2;
  --wa-sortant: #D9FDD3;
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.75rem;
  border-radius: 14px;
  background: url("wa-doodles.svg") 0 0 / 9rem auto, var(--wa-fond);
}
.mini {
  max-width: 88%;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  color: #111B21;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
}
.mini-out { justify-self: end; border-top-right-radius: 3px; background: var(--wa-sortant); }
.mini-in { justify-self: start; border-top-left-radius: 3px; background: #fff; }

@media (max-width: 1100px) {
  .crew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .crew-lead { grid-template-columns: minmax(0, 1fr); }
}
/* sur mobile, les sept agents défilent de côté : la carte suivante dépasse */
@media (max-width: 640px) {
  /* l'initiale à côté du nom plutôt qu'au-dessus : les cartes sont moins hautes */
  .crew-lead-text,
  .crew-card:not(.crew-card-cta) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem 0.75rem;
  }
  .crew-lead-text > p,
  .crew-card > p,
  .crew-card > .mini-chat { grid-column: 1 / -1; }
  .crew-lead { row-gap: var(--s-3); }
  .crew-lead-text p { font-size: var(--fs-body); }
  .crew-card:not(.crew-card-cta) { grid-template-rows: auto auto 1fr; }

  .crew-grid {
    display: flex;
    gap: 0.75rem;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .crew-grid::-webkit-scrollbar { display: none; }
  .crew-card { flex: 0 0 86%; padding: 1.25rem; scroll-snap-align: start; }
}

/* ---------- Les formules : l'Équipage au centre, mis en avant ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--filet-fort);
  border-radius: 24px;
  background: var(--surface);
}
.plan-featured {
  border-color: rgb(var(--action-rgb) / 0.8);
  background:
    radial-gradient(28rem 18rem at 50% 0%, rgb(var(--action-rgb) / 0.3), transparent 70%),
    var(--surface);
  box-shadow: 0 2rem 4rem -2rem rgb(var(--action-rgb) / 0.7);
}
/* le badge chevauche le bord de la carte : les prix des trois formules restent alignés */
.plan-badge {
  position: absolute;
  top: 0;
  left: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  transform: translateY(-50%);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--sur-action);
  font-size: 0.8125rem;
  font-weight: 600;
}
.plan-name { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; }
.plan-amount { font: 800 clamp(3.25rem, 2.6rem + 2vw, 4.25rem)/0.9 var(--f-display); }
.plan-per { color: var(--texte-2); font-size: 1.0625rem; }
.plan-setup { color: var(--texte-2); font-size: var(--fs-small); }
.plan-list { flex: 1; align-content: start; gap: 0.75rem; margin-top: var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--filet); }
.plan .btn { align-self: stretch; margin-top: var(--s-2); }

.salary {
  display: grid;
  gap: 0.4rem;
  margin-top: var(--s-6);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--filet-fort);
  border-radius: 16px;
}
.salary-text { font-size: var(--fs-lead); line-height: 1.5; color: var(--texte-2); }
.salary-text strong { color: var(--texte); font-weight: 600; }
.plans-note { margin-top: var(--s-2); color: var(--texte-2); font-size: var(--fs-small); }

@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  /* sur téléphone et tablette, la formule recommandée passe en premier */
  .plan-featured { order: -1; }
}

/* ---------- Nos engagements : la réassurance, posée sur un même filet ---------- */
.pledges {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-6) var(--s-4);
}
.pledge {
  position: relative;
  display: grid;
  grid-column: span 2;
  gap: 0.6rem;
  align-content: start;
  padding-top: var(--s-3);
  border-top: 1px solid var(--filet-fort);
}
/* trois par ligne ; quand la dernière ligne n'en compte que deux, ils la partagent */
.pledge:nth-child(3n + 1):nth-last-child(2),
.pledge:nth-child(3n + 2):last-child { grid-column: span 3; }
.pledge::before { content: ""; position: absolute; left: 0; top: -1px; width: 1.5rem; height: 1px; background: var(--action); }
.pledge svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pledge h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem); }
.pledge p { max-width: 30ch; color: var(--texte-2); }
/* une note sous les exemples (page « prospects ») */
.pledges + .plans-note { margin-top: var(--s-6); }
@media (max-width: 960px) {
  .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pledge,
  .pledge:nth-child(3n + 1):nth-last-child(2),
  .pledge:nth-child(3n + 2):last-child { grid-column: auto; }
  /* deux par ligne ; le dernier, s'il est seul, prend toute la ligne */
  .pledge:nth-child(odd):last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pledges { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}

/* ==========================================================================
   Page « prospects » : la liste du matin, ligne par ligne
   ========================================================================== */
.morning {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-6) var(--s-8);
  align-items: center;
}
/* l'exemple posé sur le fond de discussion WhatsApp (couleurs de WhatsApp, comme l'iPhone) */
.morning-chat {
  display: grid;
  gap: var(--s-2);
  justify-items: start;
  margin: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: 24px;
  background: url("wa-doodles.svg") 0 0 / 11rem auto, #EFEAE2;
}
.morning-bubble {
  position: relative;
  display: grid;
  gap: 0.2rem;
  width: min(100%, 22rem);
  padding: 0.85rem 1rem 1.7rem;
  border-radius: 4px 16px 16px 16px;
  background: #fff;
  color: #111B21;
  font-size: 1.0625rem;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13), 0 1.5rem 3rem -1.5rem rgb(11 20 26 / 0.35);
}
.morning-company { font-weight: 600; }
.morning-time { position: absolute; right: 0.8rem; bottom: 0.5rem; color: #667781; font-size: 0.75rem; }

/* ce que contient chaque ligne, dans le même ordre que l'exemple */
.morning-list { display: grid; gap: var(--s-3); }
.morning-list > div { position: relative; padding-top: var(--s-2); border-top: 1px solid var(--filet-fort); }
.morning-list > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 1.5rem; height: 1px; background: var(--action); }
.morning-list dt { font: 800 clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem)/1.1 var(--f-display); }
.morning-list dd { max-width: 36ch; margin: 0.35rem 0 0; color: var(--texte-2); }
@media (max-width: 860px) {
  .morning { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fenêtre des mentions légales ---------- */
.dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100dvh - 4rem);
  padding: 0;
  border: 1px solid var(--filet-fort);
  border-radius: 8px;
  background: var(--fond);
  color: var(--texte);
}
.dialog::backdrop { background: rgb(11 9 18 / 0.6); }
.dialog-inner { position: relative; display: grid; gap: var(--s-2); padding: var(--s-6) var(--s-4) var(--s-4); }
.dialog h2 { font: 800 2.25rem/1 var(--f-display); }
.dialog h3 { font-size: 1.5rem; margin-top: var(--s-2); }
.dialog p { color: var(--texte-2); font-size: var(--fs-small); }
.dialog strong { color: var(--texte); }
.dialog-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--texte);
  cursor: pointer;
}
.dialog-close:hover { background: rgb(var(--texte-rgb) / 0.08); }
.dialog-close svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: dialog-in 0.28s var(--ease-out); }
  .dialog[open]::backdrop { animation: fade-in 0.28s ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(1rem) scale(0.98); } }

/* ==========================================================================
   Page apporteurs d'affaires (apporteur-affaires.html)
   ========================================================================== */
/* le haut de page : le titre sur toute la largeur, puis l'intro et le simulateur */
.partner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2rem, 7vh, 5rem));
  padding-bottom: var(--section-y);
  background:
    radial-gradient(52rem 34rem at 80% 78%, rgb(var(--action-rgb) / 0.3), transparent 70%),
    var(--fond);
}
/* le motif réseau : un carnet d'adresses, des mises en relation */
.partner-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -22%;
  width: min(66rem, 110vw);
  aspect-ratio: 900 / 640;
  background: url("contact-network.svg") center / contain no-repeat;
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  pointer-events: none;
}
.partner-hero-inner { display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
/* sur téléphone, chaque phrase du titre se coupe en lignes égales (pas de « PME. » seul) */
.partner-hero .hero-title .line > span { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.partner-hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-6) var(--s-8);
  align-items: start;
  padding-top: var(--s-4);
  border-top: 1px solid var(--filet);
}
.partner-hero-text { display: grid; gap: var(--s-4); align-content: start; }
/* les termes de l'offre, avant le bouton */
.partner-terms { gap: 0.5rem; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .js .partner-hero-foot { opacity: 0; animation: fade-in 0.8s var(--ease-out) 0.45s forwards; }
}
@media (max-width: 960px) {
  .partner-hero-foot { grid-template-columns: minmax(0, 1fr); }
}

/* le simulateur : combien rapporte une recommandation */
.sim {
  display: grid;
  gap: var(--s-2);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  border: 1px solid var(--filet-fort);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.8);
}
.sim-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.sim-label { max-width: 17rem; font-weight: 600; line-height: 1.35; }
.sim-count {
  flex: none;
  min-width: 3.5rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: rgb(var(--action-rgb) / 0.25);
  color: var(--texte);
  font: 800 1.875rem/1.2 var(--f-display);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
/* la glissière : la part parcourue est violette, le curseur blanc */
.sim-range {
  --r: 0.1;
  --thumb: 1.5rem;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.sim-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    var(--action) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--r)),
    rgb(var(--texte-rgb) / 0.16) 0);
}
.sim-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgb(var(--texte-rgb) / 0.16); }
.sim-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--action); }
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((6px - var(--thumb)) / 2);
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 0 0 0.4rem rgb(var(--action-rgb) / 0.4);
  transition: box-shadow var(--t-fast);
}
.sim-range::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border: 0;
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: 0 0 0 0.4rem rgb(var(--action-rgb) / 0.4);
  transition: box-shadow var(--t-fast);
}
.sim-range:hover::-webkit-slider-thumb, .sim-range:active::-webkit-slider-thumb { box-shadow: 0 0 0 0.6rem rgb(var(--action-rgb) / 0.45); }
.sim-range:hover::-moz-range-thumb, .sim-range:active::-moz-range-thumb { box-shadow: 0 0 0 0.6rem rgb(var(--action-rgb) / 0.45); }
.sim-range:focus-visible { outline: none; }
.sim-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus); }
.sim-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus); }
.sim-scale {
  display: flex;
  justify-content: space-between;
  margin-top: -0.6rem;
  color: var(--texte-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.sim-result { display: grid; gap: 0.35rem; margin-top: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--filet); }
.sim-result-label { color: var(--texte-2); font-size: var(--fs-small); }
.sim-total {
  color: var(--texte);
  font: 800 clamp(3.5rem, 2.6rem + 3vw, 5.5rem)/0.9 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.sim-detail { color: var(--texte-2); line-height: 1.5; }
.sim-detail strong { color: var(--texte); font-weight: 600; }
.sim-note { color: var(--texte-2); font-size: 0.8125rem; line-height: 1.45; }

/* titre coupé à la main en deux lignes : chaque ligne garde toute la largeur de sa colonne */
.section h2.h2-wide { max-width: none; }

/* comment ça marche : trois temps, posés sur un même filet */
.relay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--s-4);
}
.relay-step {
  position: relative;
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding-top: var(--s-3);
  border-top: 1px solid var(--filet-fort);
}
.relay-step::before { content: ""; position: absolute; left: 0; top: -1px; width: 1.5rem; height: 1px; background: var(--action); }
.relay-num { color: var(--accent); font: 800 clamp(3.5rem, 2.8rem + 2vw, 5rem)/0.85 var(--f-display); }
.relay-step p { max-width: 30ch; color: var(--texte-2); }
@media (max-width: 860px) {
  .relay { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .relay-step { grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s-2); row-gap: var(--s-1); }
  .relay-num { grid-row: span 2; font-size: 3rem; }
  .relay-step h3 { max-width: none; }
}

/* pour qui : une liste, chaque profil marqué du carré de la marque */
.partner-who {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-8);
}
.partner-who-head { display: grid; gap: var(--s-3); align-content: start; }
.who-list { border-bottom: 1px solid var(--filet); }
.who-list li {
  display: grid;
  grid-template-columns: 0.45rem minmax(0, 1fr);
  gap: 0.15rem var(--s-2);
  padding-block: var(--s-3);
  border-top: 1px solid var(--filet);
}
.who-list li::before {
  content: "";
  grid-row: span 2;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.6rem;
  border-radius: 1px;
  background: var(--action);
}
.who-list strong { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; }
.who-list span { color: var(--texte-2); }
@media (max-width: 860px) {
  .partner-who { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}

/* ---------- Mouvement réduit : filet de sécurité ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
