/* =========================================================
   Humeet — site vitrine
   Direction : principes de composition Waalaxy (cartes XXL
   arrondies, titres serrés, CTA dégradé, zigzag d'étapes,
   témoignages défilants) appliqués à la charte Humeet.
   ========================================================= */

/* ---------- Polices ----------
   Plus Jakarta Sans (licence OFL) : hébergée sur le site, variable 500-800, sous-ensemble latin.
   Caveat : hébergée sur le site (sous-ensemble latin, suffisant pour le français). */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/caveat-600-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Charte Humeet */
  --pulse: #F94D69;
  --atlas: #596DA7;
  --brise: #A0D3D9;
  --givre: #FAFAFA;
  --dark: #162728;

  /* Dérivés */
  --ink: #162728;                 /* titres */
  --text: #4F5F61;                /* paragraphes (contraste 6,4:1 sur blanc) */
  --text-soft: #5C6C6E;           /* légendes */
  --surface: #F6F8FB;             /* fonds de sections / items */
  --surface-2: #EEF2F7;
  --line: #E4E9EF;
  --pulse-tint: #FEEDF0;
  --atlas-tint: #EEF0F7;
  --brise-tint: #EAF6F7;
  --pulse-deep: #D6304D;          /* texte rose accessible */

  --grad: linear-gradient(74deg, #F94D69 -10%, #596DA7 110%);
  --grad-hover: linear-gradient(74deg, #EF3C5A -10%, #4C5E91 110%);

  /* Typo */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;
  --fs-h1: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);      /* 37.6 → 72 px */
  --fs-h2: clamp(2.1rem, 1.3rem + 3.1vw, 3.5rem);       /* 33.6 → 56 px */
  --fs-h3: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);       /* 25.6 → 41.6 px */
  --fs-lead: clamp(1rem, 0.9rem + 0.45vw, 1.3rem);      /* 16 → 20.8 px */
  --tracking-tight: -0.04em;

  /* Formes */
  --r-xl: 48px;
  --r-lg: 36px;
  --r-md: 24px;
  --r-sm: 16px;
  --r-xs: 12px;
  --shadow-card: 0 5px 24px rgba(22, 39, 40, 0.08);
  --shadow-soft: 0 4px 50px rgba(22, 39, 40, 0.04);
  --shadow-cta: 0 8px 20px rgba(89, 109, 167, 0.22);

  /* Mise en page */
  --container: 1140px;
  --gutter: 24px;
  --panel-inset: 48px;
  --section-y: clamp(64px, 8vw, 128px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --panel-inset: 12px; --r-xl: 28px; --r-lg: 24px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--givre);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* l'attribut hidden l'emporte toujours sur les display des composants */
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 900; letter-spacing: var(--tracking-tight); line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.02em; color: var(--text); }
.accent { color: var(--pulse); }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pulse-deep);
}

/* ---------- Boutons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 12px 24px;
  border: 0; border-radius: var(--r-sm);
  font-size: 1.05rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
}
.btn--lg { --h: 56px; padding: 14px 28px; font-size: 1.2rem; }
.btn--sm { --h: 40px; padding: 8px 16px; font-size: 0.95rem; }

.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--grad-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(89, 109, 167, 0.3); }

.btn--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 14px rgba(22, 39, 40, 0.05); }
.btn--secondary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--atlas), 0 8px 20px rgba(22, 39, 40, 0.08); }

.btn--ghost { background: transparent; color: var(--ink); padding-inline: 16px; }
.btn--ghost:hover { background: var(--surface); }

.btn:active { transform: translateY(0); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: box-shadow .3s;
}
/* Verre dépoli sur un calque à part : un backdrop-filter posé sur .nav
   enfermerait le menu mobile (position: fixed) dans la hauteur de la barre. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(22, 39, 40, 0.05); }
.nav__inner {
  width: min(100% - 2 * var(--gutter), 1140px); margin-inline: auto;
  height: 80px; display: flex; align-items: center; gap: 32px;
}
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: 12px; }
.nav__links a { font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 2px; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__panel nav a[aria-current="page"] { color: var(--pulse-deep); }
.nav__ctas { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.nav__toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; place-items: center;
}
.nav__toggle svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__panel {
  position: fixed; inset: 72px 0 0 0; background: #fff; padding: 16px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.nav__panel[hidden] { display: none; }
.nav__panel nav { display: flex; flex-direction: column; }
.nav__panel nav a {
  font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.nav__panel-ctas { display: grid; gap: 12px; margin-top: auto; }

@media (max-width: 1080px) {
  .nav__links, .nav__ctas { display: none; }
  .nav__toggle { display: grid; }
  .nav__inner { height: 72px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; overflow-x: clip; padding: 16px var(--panel-inset) 0; }
.hero__stage { position: relative; max-width: 1344px; margin-inline: auto; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1344px; margin-inline: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.7) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255,255,255,.8);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) clamp(120px, 12vw, 168px);
}
.hero__content { max-width: 1000px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { font-size: var(--fs-h1); line-height: 1.16; }
.hero .lead { max-width: 730px; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Badge : pastille en verre, contour dégradé qui circule, reflet qui passe */
.badge {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 22px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px rgba(89, 109, 167, .16), 0 2px 6px rgba(249, 77, 105, .08), inset 0 1px 0 #fff;
}
.badge:has(.badge__tag) { padding: 5px 18px 5px 5px; }
.badge::before { /* contour dégradé animé */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(90deg, #F94D69, #A0D3D9, #596DA7, #F94D69) 0 0 / 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: badge-border 6s linear infinite;
}
.badge::after { /* reflet */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
  transform: translateX(-120%); animation: badge-shine 5s var(--ease) 1.2s infinite;
}
.badge__tag {
  display: inline-grid; place-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 900; letter-spacing: .01em; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #D6304D, #46578A); box-shadow: 0 6px 16px rgba(214, 48, 77, .28), inset 0 1px 0 rgba(255,255,255,.3);
}
@keyframes badge-border { to { background-position: 300% 0; } }
@keyframes badge-shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* Aurora : bandes floues en bas de carte (équivalent CSS du visuel dégradé) */
.hero__aurora { position: absolute; inset: auto 0 0 0; height: 58%; z-index: -1; pointer-events: none; }
/* fondu progressif vers le haut, sans démarcation */
.hero__aurora { -webkit-mask-image: linear-gradient(0deg, #000 25%, transparent 100%); mask-image: linear-gradient(0deg, #000 25%, transparent 100%); }
/* Avec JavaScript, un canvas « lave » remplace les halos CSS ; il gère lui-même son fondu */
.hero__aurora.has-lava { -webkit-mask-image: none; mask-image: none; }
.hero__aurora.has-lava .aurora { display: none; }
.aurora-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aurora { position: absolute; border-radius: 999px; opacity: .9; } /* dégradés radiaux : même douceur qu'un flou, sans son coût */
.aurora--1 { left: -8%; bottom: -30%; width: 55%; height: 80%; background: radial-gradient(closest-side, var(--pulse) 30%, rgba(249,77,105,0) 100%); opacity: .5; animation: drift 7s ease-in-out infinite alternate; }
.aurora--2 { left: 30%; bottom: -40%; width: 50%; height: 85%; background: radial-gradient(closest-side, var(--atlas) 30%, rgba(89,109,167,0) 100%); opacity: .6; animation: drift 9s ease-in-out infinite alternate-reverse; }
.aurora--3 { right: -10%; bottom: -30%; width: 45%; height: 80%; background: radial-gradient(closest-side, var(--brise) 30%, rgba(160,211,217,0) 100%); opacity: .9; animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-8%, 4%, 0) scale(.95); } to { transform: translate3d(10%, -12%, 0) scale(1.15); } }

/* Annotation manuscrite */
.annotation {
  position: absolute; display: flex; align-items: flex-end; gap: 6px;
  font-family: var(--font-hand); font-weight: 600; font-size: 1.45rem; line-height: 1.05; color: var(--ink);
}
.annotation > span { transform: rotate(-8deg); display: inline-block; }
.annotation__arrow { width: 54px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero__ctas { position: relative; }
/* sous le bouton « Je suis un talent », flèche pointée vers lui */
.annotation--hero { top: calc(100% + 6px); left: 40px; flex-direction: column; align-items: flex-start; pointer-events: none; }
.annotation--hero .annotation__arrow { width: 44px; height: 52px; transform: scaleX(-1) rotate(-20deg); margin-left: 40px; }
/* la note manuscrite, plus longue, doit rester entièrement dans la carte du hero */
@media (min-width: 901px) { .hero__ctas:has(.annotation--hero) { margin-bottom: 56px; } }
@media (max-width: 900px) { .annotation--hero { display: none; } }

/* Bandeau confiance */
.trust { max-width: var(--container); margin: 96px auto 0; padding-inline: var(--gutter); text-align: center; }
.trust__label { font-size: 1rem; font-weight: 500; color: var(--text-soft); }
/* Logos : défilement continu de gauche à droite (la liste est dupliquée en JS) */
.trust__marquee { margin-top: 24px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.trust__logos { display: flex; align-items: center; width: max-content; }
.trust__logos li { flex: none; padding-inline: clamp(24px, 3.5vw, 48px); }
.trust__marquee.is-running .trust__logos { animation: logos-lr var(--logos-speed, 40s) linear infinite; }
.trust__marquee:hover .trust__logos { animation-play-state: paused; }
@keyframes logos-lr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* En gris par défaut (contraste renforcé pour que les logos clairs, jaunes par ex., restent lisibles) ; la couleur se révèle au survol */
.trust__logos img { height: 52px; width: auto; max-width: none; filter: grayscale(1) contrast(1.3) brightness(.78); opacity: .8; transition: filter .4s var(--ease), opacity .4s, transform .4s var(--ease); }
.trust__logos img:hover { filter: none; opacity: 1; transform: scale(1.06); }
.trust__logos img[src*="novances"], .trust__logos img[src*="legiwork"], .trust__logos img[src*="vezo"], .trust__logos img[src*="talentflow"], .trust__logos img[src*="bourgogne"] { height: 64px; }
.trust__logos img[src*="bpifrance"], .trust__logos img[src*="auvergne"] { height: 40px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y) 0; }
.section--tight { padding-top: clamp(48px, 6vw, 80px); }

.section-head { max-width: 860px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { margin-top: 20px; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; }

.panel {
  max-width: 1344px; margin-inline: var(--panel-inset);
  border-radius: var(--r-xl);
  padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 48px);
}
@media (min-width: 1440px) { .panel { margin-inline: auto; } }
.panel--tint { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 40px rgba(22,39,40,.04); }

/* Vidéo */
.video-frame {
  max-width: 1000px; margin-inline: auto; padding: 10px;
  border-radius: 28px; background: #fff; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
}
.video-frame video { width: 100%; height: auto; border-radius: 20px; background: #2C3248; }
/* Lecteur de l'accueil (mêmes commandes que la vidéo Entreprises) */
.player { position: relative; border-radius: 20px; overflow: hidden; background: #2C3248; line-height: 0; }
.player video { display: block; width: 100%; height: auto; border-radius: 0; cursor: pointer; }
.player__ui {
  position: absolute; left: 0; bottom: 0; width: calc(100% / var(--ui, 1)); transform: scale(var(--ui, 1)); transform-origin: 0 100%;
  display: flex; align-items: center; gap: 16px; padding: 44px max(20px, 2.4vw) 18px; line-height: normal; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.62), transparent); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.player.is-ui .player__ui { opacity: 1; pointer-events: auto; }
.player__btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; }
.player__btn:hover { background: rgba(255,255,255,.28); }
.player__btn svg { width: 24px; height: 24px; fill: #fff; }
.player__btn:focus-visible, .player__bar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.player__bar { position: relative; flex: 1; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.player__track, .player__fill { position: absolute; left: 0; height: 8px; border-radius: 4px; }
.player__track { right: 0; background: rgba(255,255,255,.28); }
.player__fill { width: 0; background: linear-gradient(90deg, var(--pulse), var(--atlas)); }
.player__thumb { position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; transform: translateX(-11px); }
.player__time { flex: none; min-width: 100px; text-align: right; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.player:fullscreen { background: #000; border-radius: 0; display: grid; place-items: center; }
.player:fullscreen video { height: 100%; object-fit: contain; }
.player:fullscreen .player__ui { --ui: 1; }
.video-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #162728; }

/* Vidéo de l'accueil : au chargement, elle occupe l'emplacement à droite du hero ;
   au défilement, elle descend et grandit jusqu'au centre de l'écran, puis y reste
   un moment. JS fournit --p (0 → 1) et l'écart entre l'emplacement et sa place
   finale (--dx, --dy, --s). */
.showcase { --p: 1; --dx: 0; --dy: 0; --s: 1; position: relative; z-index: 3; } /* au-dessus du hero */
.showcase__sticky { display: grid; place-items: center; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
.has-showcase .showcase { height: 150vh; }
.has-showcase .showcase__sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 72px var(--gutter) 0; }
.showcase__anchor { width: min(1180px, 100%, calc((100dvh - 150px) * 1.72)); }
.showcase__frame {
  max-width: none; transform-origin: 0 0;
  transform: translate(calc(var(--dx) * (1 - var(--p)) * 1px), calc(var(--dy) * (1 - var(--p)) * 1px)) scale(calc(var(--s) + (1 - var(--s)) * var(--p))) rotate(calc((1 - var(--p)) * var(--tilt, 1.5deg)));
  box-shadow: 0 calc(12px + 38px * var(--p)) calc(40px + 80px * var(--p)) rgba(22, 39, 40, calc(.12 + .12 * var(--p))), inset 0 0 0 1px var(--line);
  will-change: transform;
}
/* Mobile : la vidéo occupe presque toute la largeur de l'écran */
@media (max-width: 899px) {
  .showcase__sticky { padding: 28px 6px 0; }
  .showcase__frame { padding: 4px; border-radius: 18px; }
  .showcase__frame video, .showcase__frame iframe { border-radius: 14px; }
}
/* Lecteur natif en plein écran sur mobile : la vidéo occupe toute la largeur, sans rotation */
html.video-open { overflow: hidden; }
.video-fs { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: center; }
.video-fs[hidden] { display: none; }
.video-fs video { width: 100%; max-height: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-fs-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 400; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(22, 39, 40, .7); display: grid; place-items: center; cursor: pointer; }
.video-fs-close[hidden] { display: none; }
.video-fs-close svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.hero__slot { width: 100%; aspect-ratio: 1110 / 634; } /* même proportions que le cadre de la vidéo */
/* Page Entreprises : vidéo à gauche, texte à droite (l'inverse de l'accueil) */
.hero__grid--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero__grid--reverse .hero__media--slot { order: -1; }
.showcase--reverse { --tilt: -1.5deg; }
html:not(.has-showcase) .hero__media--slot { display: none; }
html:not(.has-showcase) .hero__grid--showcase { grid-template-columns: 1fr; }

/* ---------- Constat (comparatif) ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; gap: 32px; }
.compare__card {
  background: #fff; border-radius: var(--r-md); box-shadow: 0 5px 24px rgba(22, 39, 40, 0.08);
  padding: 36px 24px 24px;
  transition: transform .5s var(--ease);
}
.compare__card--left { transform: rotate(-2deg); }
.compare__card--right { transform: rotate(2deg); }
.compare__card:hover { transform: rotate(0) translateY(-4px); }
.compare__title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 28px; }
.compare__emoji { font-size: 1.6rem; }
.pain-list { display: grid; gap: 12px; }
.pain-list li {
  position: relative; padding: 14px 16px 14px 52px;
  background: var(--pulse-tint); border-radius: var(--r-xs);
  color: var(--ink); font-size: 1.05rem; line-height: 1.4;
}
.pain-list li::before {
  content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--pulse) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.compare__card--right .pain-list li { background: var(--atlas-tint); }
.compare__card--right .pain-list li::before { background-color: var(--atlas); }

/* ---------- Étapes (zigzag) ---------- */
.steps { display: grid; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.step--reverse .step__text { order: 2; }
.step__text { max-width: 530px; }
.step__head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.step__head h3 { font-size: var(--fs-h3); line-height: 1.2; }
.step__text p { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.02em; }
.step__num {
  flex: none; width: 76px; height: 76px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 2.5rem; font-weight: 900; color: #fff; letter-spacing: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.step__num--pulse { background: var(--pulse); }
.step__num--atlas { background: var(--atlas); }

.step-link { height: clamp(90px, 12vw, 150px); margin-block: 8px; }
.step-link svg { width: min(420px, 60%); height: 100%; margin-left: 22%; overflow: visible; }
.step-link path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 9 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.step-link--flip svg { transform: scaleX(-1); margin-left: auto; margin-right: 22%; }

/* Maquettes illustratives */
.step__visual { display: flex; justify-content: center; }
.mock {
  width: min(100%, 440px); background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 18px 50px rgba(22, 39, 40, 0.10), inset 0 0 0 1px var(--line);
  position: relative;
}
.mock::before { /* halo */
  content: ""; position: absolute; inset: -30px -40px; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 30% 40%, rgba(249,77,105,.10), transparent 70%), radial-gradient(60% 60% at 75% 70%, rgba(160,211,217,.28), transparent 70%);
}
.mock__top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock__id { flex: 1; display: grid; gap: 8px; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; }
.mock__rows { display: grid; gap: 10px; }
.mock__rows--center { justify-items: center; margin-top: 12px; }

.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.avatar svg { width: 55%; height: 55%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar--anon { background: linear-gradient(160deg, #B7C0D6, #8E9BBE); }
.avatar--company { background: var(--atlas); }
.avatar--sm { width: 40px; height: 40px; }
.avatar--lg { width: 88px; height: 88px; }

.blurbar { height: 12px; width: 60%; border-radius: 6px; background: var(--surface-2); filter: blur(1.5px); }
.blurbar--lg { width: 80%; height: 16px; background: #DCE2EC; }
.skel { display: block; height: 10px; width: 100%; border-radius: 6px; background: var(--surface-2); }
.skel--80 { width: 80%; } .skel--70 { width: 70%; } .skel--60 { width: 60%; } .skel--50 { width: 50%; } .skel--40 { width: 40%; } .skel--30 { width: 30%; }

.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; line-height: 1.2; }
.chip--sm { padding: 4px 10px; font-size: .75rem; }
.chip--pulse { background: var(--pulse-tint); color: var(--pulse-deep); }
.chip--atlas { background: var(--atlas-tint); color: #46578A; }
.chip--brise { background: var(--brise-tint); color: #2F6D74; }
.chip--dark { background: var(--dark); color: #fff; font-size: .75rem; }

.mock__search {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  border-radius: 12px; background: var(--surface); color: var(--text-soft); font-size: .9rem;
}
.mock__search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.result { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.result + .result { margin-top: 6px; }
.result__bars { flex: 1; display: grid; gap: 8px; }
.result--active { background: #fff; box-shadow: inset 0 0 0 2px var(--pulse), 0 10px 24px rgba(249, 77, 105, 0.14); }

.mock--match { text-align: center; padding-block: 36px 28px; }
.match { display: flex; align-items: center; justify-content: center; gap: 18px; }
.match__link {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 8px 24px rgba(249, 77, 105, 0.22), inset 0 0 0 1px var(--line);
}
.match__link img { width: 36px; height: auto; }
.match__label {
  margin-top: 20px; display: inline-block; padding: 8px 22px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.1rem; letter-spacing: .02em;
}

/* ---------- Personas ---------- */
.personas { display: grid; gap: 16px; }
.persona {
  display: flex; align-items: center; gap: 24px;
  padding: 24px 24px 24px 16px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); text-decoration: none;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.persona:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.persona__icon { flex: none; width: 84px; height: 84px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 2.4rem; }
.persona__icon--pulse { background: rgba(249, 77, 105, 0.16); }
.persona__icon--atlas { background: rgba(89, 109, 167, 0.18); }
.persona__body { flex: 1; display: grid; gap: 6px; }
.persona__title { font-size: 1.5rem; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.persona__desc { font-size: 1.1rem; line-height: 1.5; color: var(--text); max-width: 820px; }
.persona__cta { display: none; }
.persona__arrow {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(22, 39, 40, 0.06); transition: background .3s, transform .3s var(--ease);
}
.persona__arrow svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.persona:hover .persona__arrow { background: var(--grad); transform: translateX(4px); }
.persona:hover .persona__arrow svg { stroke: #fff; }
.personas__demo { margin-top: 28px; text-align: center; }

/* ---------- Conviction ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1233px; margin-inline: auto; }
.feature {
  background: #fff; border-radius: var(--r-md); padding: 32px 28px;
  box-shadow: 0 5px 4px rgba(211, 211, 211, 0.1);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; }
.feature__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature__icon--pulse { background: var(--pulse-tint); color: var(--pulse-deep); }
.feature__icon--atlas { background: var(--atlas-tint); color: var(--atlas); }
.feature__icon--brise { background: var(--brise-tint); color: #2F6D74; }
.feature h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.feature p { font-size: 1.1rem; line-height: 1.55; }

/* ---------- Chiffres ---------- */
.stats { display: flex; justify-content: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.stat { min-width: 220px; padding: 24px 32px; border-radius: var(--r-md); background: rgba(255,255,255,.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); text-align: center; }
.stat__value { font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 4px; font-size: 1.1rem; color: var(--text); }

/* ---------- Témoignages (défilement continu) ---------- */
.marquee { --speed: 46s; display: grid; gap: 24px; }
.marquee__row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 24px; width: max-content; padding-block: 12px; animation: marquee var(--speed) linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.marquee__controls { display: flex; justify-content: center; }

.quote {
  flex: none; width: 440px; min-height: 240px; display: flex; flex-direction: column; gap: 20px;
  padding: 32px; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
}
.quote__author { display: flex; align-items: center; gap: 14px; }
.quote__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .95rem; color: #fff; background: var(--grad); }
.quote__name { display: block; font-size: 1.15rem; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }
.quote__role { display: block; font-size: .85rem; line-height: 1.35; color: var(--text-soft); }
.quote__text { font-size: 1.1rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--text); }
.quote__text--clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quote__more { align-self: flex-start; margin-top: auto; border: 0; background: none; padding: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.quote--pulse, .quote--atlas, .quote--dark { box-shadow: var(--shadow-soft); }
.quote--pulse { background: #D42A4A; } /* rose foncé : texte blanc lisible (contraste 5:1) */
.quote--atlas { background: var(--atlas); }
.quote--dark { background: var(--dark); }
.quote--pulse *, .quote--atlas *, .quote--dark * { color: #fff; }
.quote--pulse .quote__role, .quote--atlas .quote__role, .quote--dark .quote__role { color: #fff; }
.quote--pulse .quote__avatar, .quote--atlas .quote__avatar, .quote--dark .quote__avatar { background: rgba(255,255,255,.2); }

.quote-dialog { border: 0; padding: 0; border-radius: var(--r-md); width: min(640px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(22, 39, 40, .25); }
.quote-dialog::backdrop { background: rgba(22, 39, 40, .45); backdrop-filter: blur(4px); }
.quote-dialog__inner { position: relative; padding: 40px 32px 32px; }
.quote-dialog .quote { width: auto; min-height: 0; padding: 0; box-shadow: none; background: none; }
.quote-dialog .quote * { color: inherit; }
.quote-dialog .quote__text { color: var(--text); -webkit-line-clamp: unset; display: block; }
.quote-dialog .quote__name { color: var(--ink); }
.quote-dialog .quote__role { color: var(--text-soft); }
.quote-dialog .quote__avatar { background: var(--grad); color: #fff; }
.quote-dialog .quote__more { display: none; }
.quote-dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.quote-dialog__close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

/* ---------- FAQ ---------- */
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255,255,255,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.tabs__btn { border: 0; background: transparent; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 1rem; color: var(--text); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(22, 39, 40, .08); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.faq[hidden] { display: none; }
.faq__item { background: rgba(255,255,255,.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); border-radius: var(--r-sm); transition: background .3s; }
.faq__item.is-open { background: #fff; box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.faq__item h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 700; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px; border: 0; background: none; text-align: left; cursor: pointer; line-height: 1.3; color: var(--ink); font-weight: 700;
}
.faq__chev { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #fff; position: relative; transition: transform .35s var(--ease), background .3s; }
.faq__chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); background: var(--surface); }
.faq__a { padding: 0 24px 24px; }
.faq__a p { font-size: 1.05rem; line-height: 1.6; }
.faq__contact { margin-top: 32px; text-align: center; color: var(--text); }
.faq__contact a { color: var(--ink); font-weight: 700; }

/* ---------- CTA final ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  border-radius: var(--r-xl); box-shadow: 0 4px 25px rgba(22, 39, 40, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.88) 40%);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(120px, 14vw, 180px);
}
.hero__aurora--cta { height: 70%; }
.cta__content { max-width: 800px; margin-inline: auto; display: grid; justify-items: center; gap: 20px; }
.cta h2 { font-size: var(--fs-h2); }
.cta__note { font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink); transform: rotate(-3deg); margin-top: 4px; }

/* CTA avec formulaire de contact (page Entreprises) */
.cta--form { text-align: left; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 88px); }
.cta__split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; max-width: 1080px; margin-inline: auto; }
.cta__intro { display: grid; gap: 18px; }
.cta__intro h2 { font-size: var(--fs-h2); }
.cta__hint { color: var(--text); }
.cta__hint a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.contact-form {
  display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-md);
  background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 50px rgba(22, 39, 40, .1), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.9);
}
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.field__opt { font-weight: 500; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23162728' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--atlas), 0 0 0 4px rgba(89,109,167,.12); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px var(--pulse-deep); }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pulse-deep); }
.check a { color: var(--ink); font-weight: 700; }
.check.is-invalid span { color: var(--pulse-deep); }
.contact-form__submit { justify-self: start; }
.contact-form__submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.contact-form__status { font-size: .95rem; font-weight: 700; min-height: 1.4em; }
.contact-form__status.is-error { color: var(--pulse-deep); }
.contact-form__status.is-ok { color: #16875E; }
.contact-form.is-sent .field, .contact-form.is-sent .contact-form__row, .contact-form.is-sent .check, .contact-form.is-sent .contact-form__submit { display: none; }
.contact-form.is-sent .contact-form__status { font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) { .cta__split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } .contact-form__submit { justify-self: stretch; } }

/* ---------- Footer ---------- */
.footer { padding-block: 72px 32px; margin-top: var(--section-y); background: rgba(255,255,255,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 -1px 0 rgba(255,255,255,.8); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 320px; }
.footer__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 12px; }
.footer a { text-decoration: none; color: var(--text); transition: color .2s; }
.footer ul a:hover, .footer__legal a:hover { color: var(--ink); text-decoration: underline; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.8); display: grid; place-items: center; color: var(--ink); }
.footer__social a:hover { background: var(--ink); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Lampe à lave (fond global) ---------- */
.lava {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
  /* pas de filtre CSS : le fondu est calculé dans le canvas (bien plus léger) */
}
.no-lava .lava { display: none; }

/* ---------- Pages intérieures ---------- */
.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; }
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.hero--compact .hero__card { padding-bottom: clamp(96px, 10vw, 136px); }
.hero--compact .hero__content { max-width: 860px; }
.hero__note { font-size: .95rem; color: var(--text-soft); }
.hero__hand { font-family: var(--font-hand); font-size: 1.7rem; font-weight: 600; color: var(--ink); transform: rotate(-3deg); }

.hero--split .hero__card { padding-bottom: clamp(88px, 9vw, 128px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; max-width: 1180px; margin-inline: auto; }
.hero__content--left { text-align: left; align-items: flex-start; }
.hero__content--left .hero__ctas { justify-content: flex-start; }
.hero--split h1 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4rem); }
.hero__media .video-frame { max-width: none; transform: rotate(1.5deg); }

.cards { display: grid; gap: 24px; max-width: 1233px; margin-inline: auto; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--narrow { max-width: 880px; }
.cards .feature h3 { font-size: 1.35rem; }
.cards--4 .feature { padding: 28px 24px; }
.feature__action { margin-top: 20px; }
.feature { display: flex; flex-direction: column; }
.feature p { flex: 0 0 auto; }

/* Étapes en ligne : cartes qui flottent (sauf au survol), étape active mise en avant
   tour à tour, flèches animées qui guident le regard vers l'étape suivante */
.steps-row { display: grid; grid-template-columns: 1fr 96px 1fr 96px 1fr; align-items: stretch; max-width: 1180px; margin-inline: auto; padding-block: 12px; }
.steps-row__item {
  position: relative; overflow: hidden; background: #fff; border-radius: var(--r-md); padding: 28px 28px 36px; height: 100%;
  box-shadow: 0 5px 24px rgba(22, 39, 40, 0.06), inset 0 0 0 1px var(--line);
  animation: step-float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -2s);
  transition: box-shadow .45s var(--ease);
}
@keyframes step-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: -.5deg; } }
.steps-row__item:hover { animation-play-state: paused; box-shadow: 0 26px 60px rgba(89, 109, 167, .2), inset 0 0 0 2px var(--atlas); }
.steps-row__item.is-active { box-shadow: 0 24px 56px rgba(249, 77, 105, .18), inset 0 0 0 2px rgba(249, 77, 105, .6); }
.steps-row__item::after { /* barre de progression de l'étape active */
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 18px; height: 3px; border-radius: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; opacity: .9;
}
.steps-row__item.is-active::after { transform: scaleX(1); transition: transform var(--step-dur, 2800ms) linear; }
.steps-row__item .step__num { width: 56px; height: 56px; font-size: 1.8rem; border-radius: 14px; margin-bottom: 20px; transition: transform .5s var(--ease), box-shadow .5s; }
.steps-row__item.is-active .step__num { transform: scale(1.1) rotate(-6deg); box-shadow: 0 10px 24px rgba(249, 77, 105, .3); }
.steps-row__item h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.steps-row__item p { font-size: 1.05rem; line-height: 1.55; }
.steps-row__link { align-self: center; padding-inline: 4px; }
.steps-row__link svg { width: 100%; height: 48px; overflow: visible; }
.steps-row__flow { fill: none; stroke: rgba(22, 39, 40, .3); stroke-width: 2.4; stroke-dasharray: 6 8; stroke-linecap: round; animation: dash-flow 1.2s linear infinite; transition: stroke .4s; }
.steps-row__head { fill: none; stroke: rgba(22, 39, 40, .4); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: head-nudge 1.2s ease-in-out infinite; transition: stroke .4s; }
.steps-row__dot { fill: var(--pulse); opacity: 0; transition: opacity .3s; }
.steps-row__link.is-flowing .steps-row__flow { stroke: var(--pulse); animation-duration: .6s; }
.steps-row__link.is-flowing .steps-row__head { stroke: var(--pulse); }
.steps-row__link.is-flowing .steps-row__dot { opacity: 1; }
@keyframes dash-flow { to { stroke-dashoffset: -28; } }
@keyframes head-nudge { 50% { transform: translate(4px, 1px); } }

.pain-list--good li { background: #E7F7F0; }
.pain-list--good li::before { background: #1FBF86 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.compare__card--right .pain-list--good li { background: #E7F7F0; }
.compare__card--right .pain-list--good li::before { background-color: #1FBF86; }
.compare__cta { margin-top: 48px; display: grid; justify-items: center; gap: 12px; text-align: center; }

/* Tarifs */
.tabs--center { display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; }
.tabs--center .tabs__btn { padding: 12px 28px; font-size: 1.05rem; }
.pricing[hidden] { display: none; }
.pricing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; align-items: start; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: var(--r-md); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255,255,255,.9); }
.price-card--featured { background: #fff; box-shadow: 0 20px 50px rgba(89, 109, 167, .18), inset 0 0 0 2px var(--pulse); }
.pricing__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.price-card--pro { background: rgba(255,255,255,.92); box-shadow: var(--shadow-card), inset 0 0 0 2px var(--atlas); }
.price-card__badge--pro { background: var(--atlas); }
.price-card__badge { position: absolute; top: -14px; left: 32px; padding: 6px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .04em; }
.price-card h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.price-card__tagline { font-size: 1rem; color: var(--text); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.price__amount { font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 900; color: var(--ink); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__period { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.price__note { flex-basis: 100%; font-size: .92rem; color: var(--text-soft); }
.price__save { color: var(--pulse-deep); }
.price-card .btn { width: 100%; }
.feat { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.feat svg { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--pulse-tint); fill: none; stroke: var(--pulse-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.feat__title { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.feat__desc { display: block; font-size: .95rem; line-height: 1.5; margin-top: 2px; }
.billing { display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.billing__btn { border: 0; background: transparent; padding: 8px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.billing__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing__save { padding: 2px 8px; border-radius: 999px; background: var(--pulse); color: #fff; font-size: .75rem; }

/* Notre histoire */
.story {
  position: relative; max-width: 880px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-lg); text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  box-shadow: var(--shadow-card), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.9);
}
.story__mark { width: 44px; height: auto; margin: 0 auto 20px; fill: var(--pulse); opacity: .85; }
.story__text { margin: 0; }
.story__text p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.65; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.story__sign { margin-top: 28px; display: grid; justify-items: center; gap: 2px; }
.story__names { font-family: var(--font-hand); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--ink); transform: rotate(-3deg); }
.story__role { font-size: .95rem; font-weight: 700; color: var(--pulse-deep); }
@media (max-width: 767px) {
  .story { text-align: left; }
  .story__mark { margin-left: 0; width: 36px; }
  .story__sign { justify-items: start; }
}
.personas--narrow { max-width: 980px; margin-inline: auto; }

/* Ressources */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,.9); transition: transform .35s var(--ease), box-shadow .35s; }
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.article__thumb { aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; }
.article__thumb img { width: 34%; opacity: .95; filter: brightness(0) invert(1); }
.article__thumb--pulse { background: radial-gradient(80% 90% at 20% 20%, #FF8FA2, transparent 60%), linear-gradient(135deg, #F94D69, #B8557F); }
.article__thumb--atlas { background: radial-gradient(80% 90% at 80% 20%, #A0D3D9, transparent 60%), linear-gradient(135deg, #596DA7, #3F4F80); }
.article__thumb--brise { background: radial-gradient(80% 90% at 20% 80%, #F94D69, transparent 55%), linear-gradient(135deg, #A0D3D9, #6FA9B8); }
.article__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.article__meta { display: flex; align-items: center; gap: 12px; font-size: .88rem; color: var(--text-soft); }
.article h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; }
.article__link { text-decoration: none; }
.article__link::after { content: ""; position: absolute; inset: 0; }
.article .text-link { margin-top: auto; }
.article--featured { flex-direction: row; max-width: 1140px; margin-inline: auto; }
.article--featured .article__thumb { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
.article--featured .article__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.article--featured h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.article--featured p { font-size: 1.1rem; }

/* Maquettes : léger flottement */
.step__visual.is-visible .mock { animation: float 6s ease-in-out infinite; }
.step:nth-of-type(2) .step__visual.is-visible .mock { animation-delay: -2s; }
.step:nth-of-type(3) .step__visual.is-visible .mock { animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-.6deg); } }
.result--active { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--pulse), 0 14px 32px rgba(249, 77, 105, 0.28); } }
.match__link { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

/* Ressources : sujets à venir */
/* ---------- Article de blog ---------- */
.hero--article h1 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.4rem); max-width: 22ch; margin-inline: auto; }
.crumbs { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.crumbs a { color: var(--pulse-deep); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration: underline; }
.read__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: .95rem; color: var(--text-soft); }
.read__body { max-width: 780px; margin-inline: auto; padding: clamp(24px, 4vw, 52px); border-radius: var(--r-md); background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,.9); }
.read__intro p { font-size: 1.12rem; line-height: 1.75; color: var(--text); }
.read__intro p:first-child { font-size: 1.3rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.read__intro p + p, .read__section p + p, .read__section ul + p, .read__section p + ul { margin-top: 16px; }
.read__toc { margin: 32px 0 8px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(135deg, var(--pulse-tint), var(--atlas-tint)); }
.read__toc-title { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.read__toc ol { display: grid; gap: 6px; padding-left: 22px; list-style: decimal; }
.read__toc a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.read__toc a:hover { color: var(--pulse-deep); text-decoration: underline; }
.read__section { margin-top: 44px; scroll-margin-top: 96px; }
.read__section h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.02em; margin-bottom: 18px; padding-bottom: 12px; background: linear-gradient(90deg, var(--pulse), var(--atlas)) left bottom / 56px 4px no-repeat; }
.read__section h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin: 28px 0 10px; color: var(--ink); }
.read__section p { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.read__section strong { color: var(--ink); }
.read__section ul { display: grid; gap: 12px; margin-top: 16px; padding-left: 0; list-style: none; }
.read__section ul li { position: relative; padding-left: 28px; font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.read__section ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--pulse), var(--atlas)); }
.read__key { margin-top: 24px !important; padding: 20px 24px; border-radius: 20px; background: var(--dark); color: #fff !important; font-size: 1.1rem !important; font-weight: 500; }
.read__key strong { color: #fff; }

/* Carte d'article (page Ressources) */
.post { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; max-width: 1040px; margin-inline: auto; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post + .post { margin-top: 16px; }
.post:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(22,39,40,.1), inset 0 0 0 1px var(--line); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; color: var(--text-soft); margin-bottom: 12px; }
.post__title { font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2; }
.post__title a { color: var(--ink); text-decoration: none; }
.post__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toute la carte est cliquable */
.post__title a:hover, .post__title a:focus-visible { color: var(--pulse-deep); }
.post__excerpt { margin-top: 10px; color: var(--text); line-height: 1.6; }
.post__more { font-weight: 700; color: var(--pulse-deep); white-space: nowrap; }
.post { position: relative; }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } }
/* Sujets à venir, par public */
.topics-group { max-width: 1040px; margin-inline: auto; }
.topics-group + .topics-group { margin-top: 40px; }
.topics-group__title { margin-bottom: 16px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin-inline: auto; }
.topic { display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); }
.topic__title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } }

/* ---------- Matchy : assistant (verre liquide) ---------- */
.matchy { --m-glass: rgba(255, 255, 255, .62); --m-edge: rgba(255, 255, 255, .85); position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--font); }
body:has(.nav__panel:not([hidden])) .matchy { display: none; }

/* Pastille d'ouverture */
.matchy__launcher {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; color: var(--ink);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.52));
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 14px 40px rgba(22, 39, 40, .16), 0 2px 6px rgba(22, 39, 40, .06), inset 0 1px 0 #fff, inset 0 0 0 1px var(--m-edge);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.matchy__launcher::after { /* reflet */
  content: ""; position: absolute; inset: 1px 12% auto; height: 45%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
}
.matchy__launcher:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(89, 109, 167, .24), inset 0 1px 0 #fff, inset 0 0 0 1px var(--m-edge); }
.matchy__launcher-text { display: grid; text-align: left; line-height: 1.15; }
.matchy__launcher-text strong { font-size: 1.05rem; font-weight: 900; letter-spacing: -0.02em; }
.matchy__launcher-text small { font-size: .82rem; font-weight: 500; color: var(--text); }
.matchy.is-open .matchy__launcher { transform: scale(.94); }

/* Orbe : anneau dégradé tournant autour du logo */
.matchy__orb { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); isolation: isolate; }
.matchy__orb::before { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, #F94D69, #A0D3D9, #596DA7, #F94D69); filter: blur(4px); opacity: .75; animation: matchy-spin 6s linear infinite; }
.matchy__orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(60% 50% at 35% 25%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.matchy__orb img { width: 62%; height: auto; filter: brightness(0) invert(1); }
.matchy__orb--sm { width: 40px; height: 40px; }
.matchy__orb--xs { width: 28px; height: 28px; }
.matchy__orb--xs::before { inset: -2px; filter: blur(2px); animation: none; opacity: .5; }
@keyframes matchy-spin { to { transform: rotate(1turn); } }

/* Panneau */
.matchy__panel {
  position: relative; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 140px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 30px; color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.7) 55%, rgba(246,248,251,.78) 100%);
  backdrop-filter: blur(40px) saturate(190%); -webkit-backdrop-filter: blur(40px) saturate(190%);
  box-shadow: 0 34px 90px rgba(22, 39, 40, .22), 0 8px 24px rgba(89, 109, 167, .12), inset 0 1px 0 #fff, inset 0 0 0 1px var(--m-edge);
  transform-origin: bottom right; opacity: 0; transform: translateY(16px) scale(.94); filter: blur(6px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s var(--ease);
}
.matchy.is-open .matchy__panel { opacity: 1; transform: none; filter: none; }
.matchy__panel[hidden] { display: none; }
.matchy__panel::before { /* reflet spéculaire */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.7), rgba(255,255,255,0) 45%), radial-gradient(80% 50% at 100% 100%, rgba(160,211,217,.28), rgba(160,211,217,0) 60%);
}
.matchy__panel::after { /* liseré dégradé */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(249,77,105,.45), rgba(255,255,255,.1) 40%, rgba(89,109,167,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.matchy__panel > * { position: relative; z-index: 1; }

.matchy__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.7)); border-bottom: 1px solid rgba(255,255,255,.7); box-shadow: 0 1px 0 rgba(22,39,40,.05); }
.matchy__id { flex: 1; min-width: 0; }
.matchy__name { font-size: 1.15rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.matchy__status { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text); }
.matchy__dot { width: 8px; height: 8px; border-radius: 50%; background: #1FBF86; box-shadow: 0 0 0 3px rgba(31,191,134,.18); }
.matchy__icon-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); transition: background .2s; }
.matchy__icon-btn:hover { background: #fff; }
.matchy__icon-btn svg, .matchy__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Conversation */
.matchy__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.matchy__log:focus-visible { outline-offset: -3px; }
.matchy__msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; animation: matchy-in .4s var(--ease) both; }
.matchy__msg--user { justify-content: flex-end; }
@keyframes matchy-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.matchy__bubble { max-width: 84%; padding: 11px 15px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.matchy__bubble p + p, .matchy__bubble p + ul, .matchy__bubble p + ol, .matchy__bubble ul + p, .matchy__bubble ol + p { margin-top: 8px; }
.matchy__bubble ul, .matchy__bubble ol { display: grid; gap: 4px; padding-left: 18px; }
.matchy__bubble ul { list-style: disc; } .matchy__bubble ol { list-style: decimal; }
.matchy__bubble strong { font-weight: 700; color: var(--ink); }
.matchy__bubble a { color: var(--pulse-deep); font-weight: 700; text-underline-offset: 2px; }
.matchy__msg--bot .matchy__bubble { color: var(--text); border-radius: 20px 20px 20px 6px; background: rgba(255,255,255,.8); box-shadow: 0 4px 16px rgba(22,39,40,.06), inset 0 0 0 1px rgba(255,255,255,.9); }
.matchy__msg--user .matchy__bubble { color: #fff; border-radius: 20px 20px 6px 20px; background: linear-gradient(135deg, #D6304D, #46578A); box-shadow: 0 8px 20px rgba(89,109,167,.25), inset 0 1px 0 rgba(255,255,255,.25); }
.matchy__typing { display: flex; gap: 5px; padding: 15px 16px; }
.matchy__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--atlas); opacity: .5; animation: matchy-dot 1.2s ease-in-out infinite; }
.matchy__typing i:nth-child(2) { animation-delay: .15s; } .matchy__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes matchy-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }

.matchy__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.matchy__suggest[hidden] { display: none; }
.matchy__chip { border: 0; cursor: pointer; padding: 8px 13px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 8px rgba(22,39,40,.05); transition: background .2s, transform .25s var(--ease), box-shadow .2s; }
.matchy__chip:hover { background: #fff; transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--pulse), 0 6px 14px rgba(249,77,105,.14); }

/* Saisie */
.matchy__form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 16px; border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 6px 20px rgba(22,39,40,.07); transition: box-shadow .2s; }
.matchy__form:focus-within { box-shadow: inset 0 0 0 1.5px var(--atlas), 0 8px 24px rgba(89,109,167,.16); }
.matchy__form textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: none; padding: 9px 0; max-height: 120px; font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.matchy__form textarea::placeholder { color: var(--text-soft); }
.matchy__send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 16px; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--grad); box-shadow: var(--shadow-cta); transition: transform .25s var(--ease), opacity .2s; }
.matchy__send:hover { transform: translateX(2px); }
.matchy__send:disabled { opacity: .5; cursor: progress; transform: none; }
.matchy__legal { padding: 8px 18px 12px; font-size: .72rem; line-height: 1.35; color: var(--text-soft); text-align: center; }

@media (max-width: 560px) {
  .matchy { right: 12px; bottom: 12px; left: 12px; }
  .matchy__launcher { padding: 6px; }
  .matchy__launcher-text { display: none; }
  .matchy__panel { width: 100%; height: min(640px, calc(100dvh - 96px)); border-radius: 26px; }
  .matchy__bubble { max-width: 88%; }
}

/* Écriture manuscrite : chaque lettre apparaît à son tour, comme tracée à la main */
.hand__word { display: inline-block; white-space: nowrap; }
.hand__ch {
  display: inline-block; opacity: 0; transform: translateY(.14em) scale(.55) rotate(-10deg); filter: blur(2px);
  transition: opacity .4s ease, transform .7s var(--ease), filter .5s ease;
  transition-delay: calc(var(--hand-start, 250ms) + var(--d, 0ms));
}
.hand.is-written .hand__ch { opacity: 1; transform: none; filter: none; }
.annotation.hand-ready .annotation__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1); }
.annotation.hand-ready .annotation__arrow path + path { transition-delay: .85s; transition-duration: .4s; }
.annotation.is-written .annotation__arrow path { stroke-dashoffset: 0; }

/* ---------- Bandeau cookies (verre liquide) ---------- */
.cookies {
  position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  display: grid; gap: 14px; padding: 22px; border-radius: 26px; color: var(--ink);
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.74));
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 30px 80px rgba(22, 39, 40, .22), 0 6px 20px rgba(89, 109, 167, .12), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.9);
  opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.cookies.is-open { opacity: 1; transform: none; }
.cookies::after { /* liseré dégradé */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(249,77,105,.5), rgba(255,255,255,.1) 45%, rgba(89,109,167,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cookies__head { display: flex; align-items: center; gap: 12px; }
.cookies__icon { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); box-shadow: var(--shadow-cta); }
.cookies__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookies__icon circle { fill: #fff; stroke: none; }
.cookies__title { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.cookies__text { font-size: .92rem; line-height: 1.5; color: var(--text); }
.cookies__text a { color: var(--ink); font-weight: 700; text-underline-offset: 2px; }
.cookies__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies__actions .btn { --h: 46px; padding: 10px 14px; font-size: 1rem; }
.cookies__more { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookies__link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookies__prefs { display: grid; gap: 10px; }
.cookies__cat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.cookies__cat-title { display: block; font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer; }
.cookies__cat-text p { font-size: .82rem; line-height: 1.4; color: var(--text); margin-top: 2px; }
.cookies__always { flex: none; font-size: .78rem; font-weight: 700; color: #16875E; }
.cookies__switch { flex: none; appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #CBD3DD; position: relative; cursor: pointer; transition: background .25s; }
.cookies__switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(22,39,40,.2); transition: transform .3s var(--ease); }
.cookies__switch:checked { background: var(--grad); }
.cookies__switch:checked::before { transform: translateX(18px); }
.footer__cookies { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.footer__cookies:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; border-radius: 22px; }
  html.cookies-open .matchy { display: none; }
}

/* ---------- Page Talents : un CV classique se déchire pour laisser place au profil anonyme ---------- */
.tear { position: relative; display: grid; place-items: center; min-height: 460px; }
.tear > * { grid-area: 1 / 1; }
.tear__reveal { width: min(100%, 440px); display: grid; justify-items: center; gap: 18px; opacity: 0; transform: scale(.92) translateY(14px); transition: opacity .7s var(--ease) 1s, transform .9s var(--ease) 1s; }
.tear__note { font-family: var(--font-hand); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--ink); transform: rotate(-3deg); text-align: center; }
.tear__half { width: min(100%, 400px); rotate: -2deg; filter: drop-shadow(0 18px 30px rgba(22, 39, 40, .16)); }
.tear__half--left .cv { clip-path: polygon(0 0, 51% 0.0%, 48.5% 5.0%, 52% 10.0%, 49% 15.0%, 53% 20.0%, 47.5% 25.0%, 51.5% 30.0%, 49% 35.0%, 52.5% 40.0%, 48% 45.0%, 50.5% 50.0%, 53% 55.0%, 48.5% 60.0%, 51% 65.0%, 47.5% 70.0%, 52% 75.0%, 49.5% 80.0%, 51.5% 85.0%, 48% 90.0%, 52.5% 95.0%, 50% 100.0%, 0 100%); }
.tear__half--right .cv { clip-path: polygon(100% 0, 51% 0.0%, 48.5% 5.0%, 52% 10.0%, 49% 15.0%, 53% 20.0%, 47.5% 25.0%, 51.5% 30.0%, 49% 35.0%, 52.5% 40.0%, 48% 45.0%, 50.5% 50.0%, 53% 55.0%, 48.5% 60.0%, 51% 65.0%, 47.5% 70.0%, 52% 75.0%, 49.5% 80.0%, 51.5% 85.0%, 48% 90.0%, 52.5% 95.0%, 50% 100.0%, 100% 100%); }
.tear.is-torn .tear__reveal { opacity: 1; transform: none; }
/* 1. le papier tire  2. les moitiés s'écartent  3. elles tombent et disparaissent */
.tear.is-torn .tear__half--left { animation: rip-left 1.7s cubic-bezier(.45, 0, .6, 1) forwards; }
.tear.is-torn .tear__half--right { animation: rip-right 1.7s cubic-bezier(.45, 0, .6, 1) forwards; }
@keyframes rip-left {
  0% { transform: none; }
  10% { transform: translate(3px, 0) rotate(.6deg); }
  18% { transform: translate(-2px, 0); }
  50% { transform: translate(-26%, 2%) rotate(-9deg); opacity: 1; }
  100% { transform: translate(-40%, 85%) rotate(-24deg); opacity: 0; }
}
@keyframes rip-right {
  0% { transform: none; }
  10% { transform: translate(-3px, 0) rotate(-.6deg); }
  18% { transform: translate(2px, 0); }
  50% { transform: translate(26%, 4%) rotate(8deg); opacity: 1; }
  100% { transform: translate(40%, 95%) rotate(22deg); opacity: 0; }
}
.tear.is-torn .tear__half { pointer-events: none; }

/* Le CV fictif : une feuille classique, tout ce qui compte pour les préjugés */
.cv { background: #fff; border-radius: 6px; padding: 26px 26px 30px; font-family: Georgia, 'Times New Roman', serif; font-size: .82rem; line-height: 1.45; color: #3F4A4C; box-shadow: inset 0 0 0 1px #E6E2DA; background-image: linear-gradient(180deg, #FFFEFB, #FBF9F4); }
.cv__head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 2px solid #2F3A3C; }
.cv__photo { flex: none; width: 64px; height: 78px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(160deg, #C9CCD3, #A5ABB6); }
.cv__photo svg { width: 60%; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.cv__name { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: #1E2729; }
.cv__title { font-style: italic; }
.cv__facts { display: grid; gap: 2px; margin-bottom: 6px; }
.cv__section { margin-top: 12px; margin-bottom: 4px; font-family: var(--font); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #1E2729; }
.cv__line strong { color: #1E2729; }
@media (max-width: 900px) { .tear { min-height: 420px; margin-top: 8px; } }

/* ---------- Mentions légales ---------- */
.legal { max-width: 860px; margin-inline: auto; display: grid; gap: 20px; }
.legal__block { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: rgba(255,255,255,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,.9); }
.legal__block h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal__block p + p, .legal__block ul + p, .legal__block p + ul { margin-top: 12px; }
.legal__block ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.legal__block strong { color: var(--ink); }
.legal__block a, .legal__cookies { color: var(--pulse-deep); font-weight: 700; text-underline-offset: 3px; }
.legal__cookies { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.legal__update { text-align: center; font-size: .9rem; color: var(--text-soft); }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.compare__card--left.reveal.is-visible { transform: rotate(-2deg); }
.compare__card--right.reveal.is-visible { transform: rotate(2deg); }
.compare__card.reveal.is-visible:hover { transform: rotate(0) translateY(-4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: 1fr; gap: 0; max-width: 620px; }
  .steps-row__link { height: 72px; justify-self: center; width: 88px; }
  .steps-row__link svg { transform: rotate(90deg); width: 72px; }
}
@media (max-width: 900px) {
  .compare { grid-template-columns: minmax(0, 560px); }
  .compare__card--left, .compare__card--right, .compare__card--left.reveal.is-visible, .compare__card--right.reveal.is-visible { transform: rotate(-1deg); }
  .compare__card--right.reveal.is-visible { transform: rotate(1deg); }
  .step, .step--reverse { grid-template-columns: 1fr; }
  .step--reverse .step__text { order: 0; }
  .step__text { max-width: none; }
  .step-link svg { width: 70%; margin-left: 12%; }
  .step-link--flip svg { margin-right: 12%; }
  .features { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media .video-frame { transform: none; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 560px; }
  .pricing__grid--3 { grid-template-columns: 1fr; }
  .article--featured { flex-direction: column; }
  .article--featured .article__thumb { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .hero { padding-top: 8px; }
  .trust { margin-top: 48px; }
  .hero__content { gap: 20px; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn { width: 100%; }
  .btn { white-space: normal; text-wrap: balance; text-align: center; }
  .hero__ctas, .cta__content > * { max-width: 100%; }
  .section-head { text-align: left; }
  .section-head--split { align-items: flex-start; }
  .step__head { gap: 16px; }
  .step__num { width: 56px; height: 56px; font-size: 1.9rem; border-radius: 14px; }
  .persona { flex-wrap: wrap; align-items: flex-start; padding: 20px; gap: 16px; }
  .persona__icon { width: 64px; height: 64px; font-size: 1.9rem; border-radius: 18px; }
  .persona__arrow { display: none; }
  .persona__body { flex-basis: 100%; }
  .persona__title { font-size: 1.3rem; }
  .persona__desc { font-size: 1rem; }
  .persona__cta { display: inline-flex; margin-top: 10px; font-weight: 700; color: var(--ink); }
  .persona__cta::after { content: " →"; white-space: pre; }
  .quote { width: 300px; padding: 24px; min-height: 0; }
  .quote__text { font-size: 1rem; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { min-width: 0; padding: 20px 12px; }
  .stat__value { font-size: 2.1rem; }
  .trust__logos li { padding-inline: 20px; }
  .trust__logos img { height: 36px; }
  .trust__logos img[src*="novances"], .trust__logos img[src*="legiwork"], .trust__logos img[src*="vezo"], .trust__logos img[src*="talentflow"], .trust__logos img[src*="bourgogne"] { height: 44px; }
  .trust__logos img[src*="bpifrance"], .trust__logos img[src*="auvergne"] { height: 28px; }
  .mock { padding: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cards--4, .articles { grid-template-columns: 1fr; }
  .hero__content--left { text-align: left; }
  .price-card { padding: 32px 22px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .tear .tear__half { display: none; }
  .tear .tear__reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee__row { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .marquee__track [data-clone] { display: none; }
  .marquee__controls { display: none; }
  .trust__marquee { -webkit-mask-image: none; mask-image: none; }
  .trust__logos { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }
  .trust__logos [data-clone] { display: none; }
}
