/* ============================================================
   HUMARIS AI — feuille de style
   Fond noir et gris, texte blanc ; accents tirés de la palette
   Humaris : bleu roi, sable, kaki, terracotta, bleu marine.
   ============================================================ */

:root {
  --bg: #0b0b0b;
  --bg-2: #141414;
  --bg-3: #1d1d1d;
  --fg: #f4f4f4;
  --muted: #a3a3a3;
  --muted-2: #707070;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);

  --blue: #4a6cff;
  --sand: #d8c39d;
  --khaki: #a7a86e;
  --terra: #d97a54;
  --navy: #13224a;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.display {
  font-family: var(--serif); font-weight: 700; line-height: 0.95;
  letter-spacing: 0.02em; font-size: clamp(44px, 9vw, 148px); margin: 0;
}
.h2 {
  font-family: var(--serif); font-weight: 600; line-height: 1.05;
  font-size: clamp(34px, 5.4vw, 84px); margin: 0; letter-spacing: -0.01em;
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); margin: 0; line-height: 1.15; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.italic { font-style: italic; font-weight: 400; }
/* Italique plus lisible : l'italique de Playfair Display a des traits très fins.
   Un léger contour les épaissit (sans le faux gras du navigateur) et les lettres respirent un peu plus. */
.italic, .manifesto .w.hl, .marquee__item em, .sm-examples li, .cookies__title .italic {
  -webkit-text-stroke: .018em currentColor; letter-spacing: .012em; font-synthesis: none;
}

/* Découpage des titres pour les révélations (ajouté par JS) */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-inner { display: block; will-change: transform; }
.char { display: inline-block; will-change: transform; }

/* ---------- Préchargeur (clair, il s'ouvre sur le site sombre) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; pointer-events: all;
}
.preloader__logo { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 9vw, 120px); letter-spacing: 0.12em; display: flex; align-items: flex-start; }
.preloader__logo .ai { font-size: 0.32em; color: var(--muted-2); margin-left: 0.25em; letter-spacing: 0.02em; }
.preloader__logo span { display: inline-block; overflow: hidden; }
.preloader__logo span i { display: inline-block; font-style: normal; transform: translateY(110%); }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--serif); font-size: clamp(56px, 12vw, 180px); line-height: 0.8; font-variant-numeric: tabular-nums;
}
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--bg); transform-origin: left; transform: scaleX(0); }
.preloader__tag { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Transition entre les pages ----------
   Navigateurs récents : fondu enchaîné natif, l'ancienne page reste affichée
   jusqu'à ce que la nouvelle soit prête (aucune image vide ni clignotement).
   L'en-tête reste en place pendant le fondu. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease-out) .05s both; }
::view-transition-group(site-header) { animation-duration: .55s; animation-timing-function: var(--ease); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* Autres navigateurs : main.js efface la page avant de partir */
html.is-leaving body { opacity: 0; transition: opacity .3s ease; }

/* Avant les animations d'entrée (classes posées par boot.js puis main.js) :
   le haut de page reste masqué au lieu de s'afficher puis disparaître.
   Sécurité : tout réapparaît de toute façon au bout de 5 s. */
html.anim:not(.no-anim):not(.hero-ready) :is(.hero, .page-hero) :is([data-split], [data-chars], [data-hero-fade], .waves) {
  visibility: hidden; animation: safety-show 0s linear 5s forwards;
}
@keyframes safety-show { to { visibility: visible; } }
html.anim:not(.no-anim) .manifesto:not(.is-split) { opacity: .14; animation: safety-opaque 0s linear 5s forwards; }
@keyframes safety-opaque { to { opacity: 1; } }
/* Premier chargement : écran clair, de la couleur du préchargeur, en attendant qu'il apparaisse */
html.anim.is-first::before { content: ""; position: fixed; inset: 0; z-index: 2000; background: var(--fg); animation: safety-hide 0s linear 6s forwards; }
@keyframes safety-hide { to { visibility: hidden; } }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); z-index: 600; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  transition: transform .6s var(--ease);
  mix-blend-mode: difference; color: #fff;
  view-transition-name: site-header;
}
.header.is-hidden { transform: translateY(-110%); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: 0.16em; display: inline-flex; align-items: flex-start; }
.logo sup { font-size: 0.42em; color: #9a9a9a; margin-left: 4px; letter-spacing: 0.04em; top: 0; }
.nav { display: flex; gap: 34px; font-size: 14px; }
/* 7 liens depuis l'ajout de « Notre méthode » : on resserre sur les écrans moyens pour ne pas toucher le logo */
@media (max-width: 1180px) { .nav { gap: 22px; } }
@media (max-width: 1000px) { .nav { gap: 16px; font-size: 13px; } }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

/* Menu plein écran (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 450; background: var(--bg-2); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu > a { font-family: var(--serif); font-size: clamp(40px, 11vw, 72px); line-height: 1.15; display: block; overflow: hidden; }
.menu > a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); }
.menu.is-open > a span { transform: none; }
.menu.is-open > a:nth-child(2) span { transition-delay: .06s; }
.menu.is-open > a:nth-child(3) span { transition-delay: .12s; }
.menu.is-open > a:nth-child(4) span { transition-delay: .18s; }
.menu.is-open > a:nth-child(5) span { transition-delay: .24s; }
.menu.is-open > a:nth-child(6) span { transition-delay: .3s; }
.menu__foot { position: absolute; bottom: var(--gutter); left: var(--gutter); right: var(--gutter); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.menu__foot a { font-family: var(--sans); font-size: 14px; line-height: 1.4; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px; border-radius: 999px; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); font-size: 15px; cursor: pointer; overflow: hidden;
  isolation: isolate; transition: color .5s var(--ease), border-color .5s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--blue); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.btn:hover { color: #fff; border-color: var(--blue); }
.btn:hover::before { transform: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn .arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px) rotate(-45deg); }
.magnetic { will-change: transform; }

/* ---------- Héros ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 140px 0 80px; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(54px, 13.5vw, 230px); letter-spacing: 0.1em; line-height: 0.9; margin: 0; display: flex; align-items: flex-start; flex-wrap: nowrap; }
.hero__title .ai { font-size: 0.24em; color: var(--muted-2); letter-spacing: 0.04em; margin: 0.12em 0 0 0.3em; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* Téléphone : « Défiler » passe sous les boutons (dans le flux) au lieu d'être posé en bas de l'écran,
   où il chevauchait « Solution sur mesure » sur les écrans peu hauts */
@media (max-width: 860px) {
  .hero__scroll { position: relative; left: auto; bottom: auto; transform: none; margin: 56px auto 0; }
}
.hero__scroll i { width: 1px; height: 46px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Héros des pages intérieures */
.page-hero { position: relative; padding: clamp(150px, 22vh, 220px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.page-hero .waves { opacity: .7; }
.page-hero .display { margin-top: 22px; }
.page-hero .lead { margin-top: 28px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 180px) 0; }
.grey { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(48px, 6vw, 90px); flex-wrap: wrap; }

/* Manifeste : mots qui s'allument au défilement */
.manifesto { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 72px); line-height: 1.15; margin: 0; max-width: 20ch; }
.manifesto .w { opacity: .14; }
.manifesto .w.hl { font-style: italic; }

/* Bandeau défilant */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 34px) 0; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__item { font-family: var(--serif); font-size: clamp(40px, 7vw, 110px); line-height: 1; padding-right: 0.5em; display: inline-flex; align-items: center; gap: 0.5em; }
.marquee__item em { font-style: italic; font-weight: 400; color: var(--muted); }
.marquee__item::after { content: "✦"; font-size: 0.35em; color: var(--muted-2); }

/* Services : rangée qui se parcourt à l'horizontale (la page, elle, défile normalement) */
.hscroll { overflow: hidden; background: var(--bg-2); }
.hscroll__track {
  display: flex; gap: clamp(16px, 2vw, 28px); padding: 4px var(--gutter) 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; cursor: grab; -webkit-user-select: none; user-select: none;
}
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__track::after { content: ""; flex: 0 0 1px; }
.hscroll__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.hscroll__track.is-dragging .panel { pointer-events: none; }
.hscroll__track .panel { flex: 0 0 auto; scroll-snap-align: start; transition: opacity .9s var(--ease-out) var(--d, 0s), border-color .5s; }
.hscroll__track.is-waiting .panel { opacity: 0; }
.hscroll__track .panel:nth-child(2) { --d: .08s; }
.hscroll__track .panel:nth-child(3) { --d: .16s; }
.hscroll__track .panel:nth-child(4) { --d: .24s; }
.hscroll__track .panel:nth-child(5) { --d: .32s; }
.hscroll__track img, .hscroll__track a { -webkit-user-drag: none; }
.panel {
  --c: var(--blue);
  width: min(78vw, 520px); min-height: 62vh; padding: clamp(28px, 3vw, 44px); border-radius: 28px;
  background: var(--bg-3); color: var(--fg); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  border: 1px solid var(--line); text-align: left; cursor: pointer; font: inherit;
  transition: border-color .5s, transform .6s var(--ease-out);
}
.panel::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .8s var(--ease); }
.panel:hover { border-color: var(--c); }
.panel:hover::before { transform: scaleX(1); }
.panel:focus-visible { outline: 2px solid var(--c); outline-offset: 4px; }
.panel__num { font-family: var(--serif); font-size: clamp(80px, 10vw, 150px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--c); }
.panel p { color: var(--muted); margin: 14px 0 0; }
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.panel__cta { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.panel:hover .panel__cta .arrow-circle { background: var(--c); color: var(--bg); border-color: var(--c); }
.panel:hover .arrow-circle { transform: rotate(-45deg); }
.panel__saas { display: inline-flex; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 14px; }
.panel--wide { width: min(80vw, 600px); min-height: min(64vh, 600px); }
.panel__title { margin-bottom: 4px; }
.panel__demo { font-size: 14px; color: var(--fg) !important; opacity: .75; }
.panel--cta { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.panel--cta .panel__num { -webkit-text-stroke: 1px var(--bg); }
.panel--cta p, .panel--cta .panel__saas { color: var(--muted-2) !important; }
.panel--cta .panel__cta { border-color: rgba(0,0,0,.12); }
.panel--cta:hover { border-color: var(--fg); }
.panel--cta:hover .panel__cta .arrow-circle { background: var(--bg); color: var(--fg); border-color: var(--bg); }

/* Page Services : la section occupe l'écran, on défile à l'horizontale */
.hscroll--full { display: flex; flex-direction: column; gap: 28px; padding: 60px 0 clamp(70px, 8vw, 110px); }
.hscroll__foot { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.hscroll__foot .hscroll__progress { flex: 1; }
.hscroll__nav { display: inline-flex; align-items: center; gap: 18px; }
.hscroll__arrows { display: inline-flex; gap: 8px; }
.hscroll__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 18px; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.hscroll__arrow:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hscroll__arrow:disabled { opacity: .3; pointer-events: none; }
.hscroll__arrow:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.hscroll__bar { display: flex; justify-content: space-between; align-items: center; }
.hscroll__count { font-family: var(--serif); font-size: 18px; color: var(--muted); }
.hscroll__count b { color: var(--fg); font-weight: 600; }
.hscroll__progress { height: 1px; background: var(--line-strong); overflow: hidden; }
.hscroll__progress i { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(.02); }

.only-touch { display: none; }

/* Téléphone et tablette : glissement horizontal au doigt */
@media (max-width: 860px) {
  .panel, .panel--wide { flex: 0 0 84vw; width: 84vw; min-height: 64vh; gap: 40px; }
  .hscroll--full { padding-top: 30px; }
  .hscroll__arrows { display: none; }
  .only-touch { display: inline; }
  .only-desktop { display: none; }
}

.arrow-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none; transition: background .4s, color .4s, transform .6s var(--ease); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 28px 40px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 28px; }
.stat__num { font-family: var(--serif); font-size: clamp(56px, 7vw, 110px); line-height: 1; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
}

/* Cartes empilées (valeurs) : numéro en haut, titre et texte en bas, de part et d'autre d'un filet */
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: 110px; min-height: clamp(340px, 46vh, 500px); border-radius: 28px; padding: clamp(28px, 4vw, 56px);
  background: var(--bg-3); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 5vh, 64px);
  transform-origin: center top; box-shadow: 0 -20px 60px -30px rgba(0,0,0,.8);
}
.stack-card:nth-child(2) { top: 130px; background: #262626; }
.stack-card:nth-child(3) { top: 150px; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.stack-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.stack-card__num { font-family: var(--serif); font-size: clamp(72px, 10vw, 160px); line-height: .8; }
.stack-card__k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 6px; white-space: nowrap; }
.stack-card__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  padding-top: clamp(22px, 2.6vw, 34px); border-top: 1px solid var(--line-strong);
}
.stack-card__title { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.4vw, 84px); line-height: 1; letter-spacing: -.01em; margin: 0; }
.stack-card__text { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: var(--muted); }
.stack-card:nth-child(3) .stack-card__k, .stack-card:nth-child(3) .stack-card__text { color: #555; }
.stack-card:nth-child(3) .stack-card__body { border-color: rgba(0, 0, 0, .14); }
@media (max-width: 720px) {
  .stack-card { top: 84px; min-height: 0; gap: 30px; border-radius: 22px; }
  .stack-card:nth-child(2) { top: 98px; }
  .stack-card:nth-child(3) { top: 112px; }
  .stack-card__body { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Catalogue SaaS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 10px 20px; cursor: pointer;
  font-size: 14px; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.chip:hover { border-color: var(--fg); }
.chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.search { border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 10px 0; min-width: 240px; outline: none; font-size: 15px; }
.search::placeholder { color: var(--muted-2); }
.search:focus { border-color: var(--fg); }

.saas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
/* Chaque carte peut avoir ses propres couleurs (voir « couleurs » dans saas.js) */
.saas-card {
  --c-bg: var(--bg-3); --c-fg: var(--fg); --c-muted: var(--muted); --c-accent: var(--blue); --c-line: var(--line); --c-visual: #050505; --c-tag: rgba(255,255,255,.06);
  position: relative; border-radius: 26px; padding: 30px; min-height: 440px; display: flex; flex-direction: column;
  background: var(--c-bg); color: var(--c-fg); border: 1px solid var(--c-line); overflow: hidden;
  transition: border-color .4s, box-shadow .6s var(--ease-out);
}
.saas-card:hover { border-color: var(--c-accent); }
.saas-card__visual { position: relative; height: 170px; margin: -30px -30px 26px; overflow: hidden; background: var(--c-visual); color: var(--c-fg); display: grid; place-items: center; }
.saas-card__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.saas-card__initial { position: relative; font-family: var(--serif); font-size: 72px; font-weight: 700; letter-spacing: .06em; transition: transform .8s var(--ease-out); }
.saas-card__brand { position: relative; display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 700; letter-spacing: -.01em; transition: transform .8s var(--ease-out); }
.saas-card__brand i { width: 46px; height: 46px; border-radius: 14px; background: var(--c-accent); color: var(--c-visual); display: grid; place-items: center; font-style: normal; font-size: 20px; }
.saas-card:hover .saas-card__initial, .saas-card:hover .saas-card__brand { transform: scale(1.1); }
.saas-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c-line); letter-spacing: .08em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status--on::before { background: #4ade80; animation: pulse 2s infinite; }
.status--soon::before { background: var(--c-accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.saas-card h3 { margin: 18px 0 6px; }
.saas-card p { margin: 10px 0 0; color: var(--c-muted); font-size: 15px; }
.saas-card .saas-card__hook { color: var(--c-accent); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 6px 12px; background: var(--c-tag); border-radius: 999px; }
.saas-card__link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 15px; }
.saas-card:hover .arrow-circle { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-visual); transform: rotate(-45deg); }
.saas-card--soon { background: transparent; border-style: dashed; border-color: var(--line-strong); justify-content: center; align-items: flex-start; }
.saas-card--soon .h3 { font-size: clamp(26px, 2.6vw, 38px); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); display: none; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 26px 0 12px; font-size: 18px; outline: none; border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease-out), font-size .4s var(--ease-out), color .4s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label { border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 20px; cursor: pointer; font-size: 14px; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.options label:hover { border-color: var(--fg); }
.options input:checked + label { background: var(--blue); color: #fff; border-color: var(--blue); }
.options input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 3px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success { display: none; padding: 28px; border-radius: 20px; background: var(--bg-3); color: var(--fg); border: 1px solid var(--line-strong); }
.form-success.is-visible { display: block; }
.form-error { padding: 20px 24px; border-radius: 16px; border: 1px solid #b4533a; background: rgba(217, 122, 84, .12); font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Étapes du processus */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { padding: 30px 26px 30px 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 15px; display: block; margin-bottom: 40px; color: var(--muted); }
.step__bar { position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-big { display: grid; gap: 0; border-top: 1px solid var(--line); }
/* Lignes d'information (pas de lien : on copie l'adresse et le numéro avec les boutons) */
.contact-line {
  display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; padding: clamp(26px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.contact-line__value { font-family: var(--serif); font-size: clamp(26px, 4.4vw, 68px); line-height: 1.05; overflow-wrap: anywhere; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
/* Boutons de copie sobres : pas de remplissage blanc au survol */
.contact-actions .btn--ghost::before { content: none; }
.contact-actions .btn--ghost { transition: border-color .4s, background-color .4s; }
.contact-actions .btn--ghost:hover { color: var(--fg); border-color: var(--fg); background: var(--bg-3); }
/* Bouton « Appeler » : seulement sur les écrans tactiles (téléphones) */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) { .contact-actions .touch-only { display: inline-flex; } }
@media (max-width: 720px) {
  .contact-line { grid-template-columns: 1fr; gap: 8px; }
  .contact-actions .btn { flex: 1 1 100%; justify-content: center; padding: 16px 22px; }
}
/* ---------- Bandeau cookies (même style que les cartes du site) ---------- */
.cookies {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 700; width: min(500px, calc(100% - 2 * var(--gutter)));
  padding: 26px 26px 24px; border-radius: 24px; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85);
  opacity: 0; transform: translateY(30px); visibility: hidden;
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s linear .8s;
}
.cookies.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.cookies.is-closing { opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s ease, transform .3s ease; }
.cookies__btn:active { background: var(--fg); color: var(--bg); border-color: var(--fg); transition: none; }
.cookies__title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 16px 0 10px; }
.cookies__desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.cookies__desc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cookies__actions { display: flex; gap: 10px; margin-top: 22px; }
.cookies__btn {
  flex: 1; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--fg); font-size: 15px; cursor: pointer; transition: border-color .4s, background-color .4s;
}
.cookies__btn:hover { border-color: var(--fg); background: var(--bg-3); }
.cookies__btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (max-width: 560px) {
  .cookies { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; padding: 22px 20px 20px; border-radius: 20px; }
  .cookies__title { font-size: 21px; }
}

.copy-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 160%); background: var(--fg); color: var(--bg); padding: 14px 24px; border-radius: 999px; z-index: 800; transition: transform .6s var(--ease); font-size: 14px; }
.copy-toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Pied de page ---------- */
.footer { background: var(--bg-2); color: var(--fg); padding: clamp(80px, 10vw, 140px) 0 30px; overflow: hidden; position: relative; border-top: 1px solid var(--line); }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--line); font-size: 15px; }
.footer--no-cta .footer__grid { margin-top: 0; padding-top: 0; border-top: 0; }
.footer__grid h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 500; }
.footer__grid a { display: block; padding: 4px 0; color: #d6d6d6; transition: color .3s, transform .4s var(--ease); }
.footer__grid a:hover { color: #fff; transform: translateX(6px); }
.footer__giant { font-family: var(--serif); font-weight: 700; font-size: 17.5vw; line-height: .78; letter-spacing: .06em; margin-top: 70px; white-space: nowrap; display: flex; justify-content: center; color: transparent; -webkit-text-stroke: 1px rgba(244,244,244,.3); user-select: none; pointer-events: none; }
/* pointer-events: none ci-dessus : le mot est décoratif. Ses lettres (animées par GSAP, donc peintes au-dessus)
   débordent de leur ligne et recouvraient les liens « Mentions légales » et « Politique de confidentialité ». */
.footer__giant span { display: inline-block; transition: color .5s, -webkit-text-stroke-color .5s; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { transition: color .3s; }
.footer__legal a:hover { color: var(--fg); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGES « SERVICES » : liste et page détaillée
   ============================================================ */
/* Page détaillée d'un service */
.svc-page { --c: var(--blue); }
.svc__head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.svc__num { font-family: var(--serif); font-size: clamp(100px, 16vw, 240px); line-height: .75; color: transparent; -webkit-text-stroke: 1.5px var(--c); }
.svc__title { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6.5vw, 104px); line-height: .98; margin: 14px 0 0; }
.svc__tag { color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.svc__intro { font-size: clamp(18px, 1.7vw, 24px); color: #d0d0d0; max-width: 62ch; margin: clamp(30px, 4vw, 56px) 0 0; line-height: 1.55; }
.back-link { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 30px; transition: color .3s; }
.back-link:hover { color: var(--fg); }

.svc-demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.svc-demo__text h2 { margin-top: 22px; }
.svc-demo__text p { color: var(--muted); max-width: 44ch; }
.svc-demo__try { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.svc-demo__try li::before { content: "→ "; color: var(--c); }
@media (max-width: 900px) { .svc-demo { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 5vw, 80px); padding: clamp(50px, 6vw, 90px) 0; border-top: 1px solid var(--line); }
.why:first-child { border-top: 0; padding-top: 0; }
.why__k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 18px; }
.why h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.08; margin: 0; }
.why__body > p { font-size: clamp(17px, 1.4vw, 20px); color: #d0d0d0; margin: 0 0 26px; line-height: 1.6; }
.why__points { list-style: none; margin: 0; padding: 0; }
.why__points li { padding: 18px 0 18px 36px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.why__points li::before { content: ""; position: absolute; left: 0; top: 28px; width: 16px; height: 1px; background: var(--c); }
.why__points strong { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

.calc { border-radius: 28px; border: 1px solid var(--line-strong); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.calc__lines { display: grid; gap: 12px; color: var(--muted); }
.calc__lines div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.calc__lines b { color: var(--fg); font-weight: 500; text-align: right; white-space: nowrap; }
.calc__result { font-family: var(--serif); font-size: clamp(48px, 6vw, 92px); line-height: 1; color: var(--c); }
.calc__note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.svc__steps { list-style: none; margin: 0; padding: 0; counter-reset: k; display: grid; grid-template-columns: repeat(4, 1fr); }
.svc__steps li { position: relative; padding: 26px 22px 26px 0; border-top: 1px solid var(--line-strong); counter-increment: k; }
.svc__steps li::before { content: "0" counter(k); display: block; font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.svc__steps strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.svc__steps span { color: var(--muted); }
@media (max-width: 860px) { .svc__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc__steps { grid-template-columns: 1fr; } }

.svc__where { display: flex; gap: 10px; flex-wrap: wrap; }
.svc__where a, .svc__where span { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.svc__where a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.svc__nav { display: flex; justify-content: space-between; gap: 20px; padding-top: 40px; border-top: 1px solid var(--line); }
.svc__nav a { color: var(--muted); font-size: 14px; }
.svc__nav a strong { display: block; font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); color: var(--fg); font-weight: 600; transition: transform .5s var(--ease); }
.svc__nav a:hover strong { transform: translateX(6px); }
.svc__nav a:last-child { text-align: right; }
.svc__nav a:last-child:hover strong { transform: translateX(-6px); }

/* ---------- Démos ---------- */
.demo { border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; }
.demo__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.demo__bar i { background: #3a3a3a; }
.demo__bar span { margin-left: 10px; }
.demo__body { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.demo__actions { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 72px; }
.demo-btn { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: 14px; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.demo-btn:hover { background: var(--c); border-color: var(--c); color: var(--bg); }
.demo-btn--main { background: var(--c); border-color: var(--c); color: var(--bg); }
.demo-btn:disabled { opacity: .35; pointer-events: none; }
.demo-hint { font-size: 13px; color: var(--muted-2); }

/* Démo 1 : conversation */
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble--bot { background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble--user { background: var(--c); color: var(--bg); border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble--typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; } .bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.lead-card { align-self: stretch; margin-top: 6px; padding: 16px; border-radius: 16px; border: 1px dashed var(--c); font-size: 14px; display: grid; gap: 4px; }
.lead-card b { color: var(--c); font-weight: 600; }
.chat-scroll { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 380px; }

/* Démo 2 : automatisation */
.flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; flex: 1; }
.flow__col { border-radius: 16px; background: var(--bg-3); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.flow__col h5 { margin: 0 0 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.flow__col h5 em { font-style: normal; color: var(--c); }
.task { padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.task small { display: block; color: var(--muted-2); font-size: 11px; margin-top: 2px; }
.task--done { border-color: var(--c); }
.task--done::before { content: "✓ "; color: var(--c); }
.flow-meter { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 0; }
.flow-meter b { font-family: var(--serif); font-size: 34px; color: var(--c); font-weight: 600; }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow__col { min-height: 0; } }

/* Démo 3 : qualification */
.leads { position: relative; display: flex; flex-direction: column; gap: 10px; }
.prospect { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.prospect__av { width: 38px; height: 38px; border-radius: 50%; background: #2a2a2a; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.prospect__name { font-size: 14px; }
.prospect__name small { display: block; color: var(--muted); font-size: 12px; }
.prospect__score { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.prospect__score i { display: block; height: 100%; width: 0; background: var(--c); border-radius: inherit; }
.prospect__badge { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); min-width: 70px; text-align: center; }
.prospect__badge.hot { background: var(--c); border-color: var(--c); color: var(--bg); }
.prospect__badge.warm { background: #3a3a3a; border-color: #3a3a3a; color: var(--fg); }
.prospect__badge.cold { background: transparent; border-color: var(--line-strong); color: var(--muted); }

/* Démo 4 : assistant personnel */
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan__item { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: border-color .3s, opacity .3s; }
.plan__item small { display: block; color: var(--muted); font-size: 12px; }
.plan__check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; transition: background .3s, border-color .3s; }
.plan__item.is-done { opacity: .55; }
.plan__item.is-done .plan__check { background: var(--c); border-color: var(--c); color: var(--bg); }
.plan__item.is-done .plan__label { text-decoration: line-through; }
.plan__date { font-size: 12px; color: var(--c); white-space: nowrap; }
.plan-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.plan-progress div { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.plan-progress i { display: block; height: 100%; width: 0; background: var(--c); transition: width .6s var(--ease); }

/* ---------- Page « Solution sur mesure » ---------- */
.sm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: sm; }
.sm-steps li { list-style: none; padding: 26px 24px 26px 0; border-top: 1px solid var(--line-strong); counter-increment: sm; }
.sm-steps li::before { content: "0" counter(sm); display: block; font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 26px; }
.sm-steps strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.sm-steps span { color: var(--muted); }
.sm-examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sm-examples li { padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: #e4e4e4; }
.complex { margin-top: 60px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--line-strong); background: var(--bg-2); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust__item { padding: 28px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .4s; }
.trust__item:hover { border-color: var(--line-strong); }
.trust__k { font-family: var(--serif); color: var(--muted); font-size: 15px; }
.trust__item h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 26px 0 8px; }
.trust__item p { margin: 0; color: var(--muted); font-size: 15px; }
.proof { margin-top: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1.6fr auto; gap: 30px; align-items: center; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 50px 24px 0; position: relative; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 24px; color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 70ch; }
.faq summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (max-width: 1000px) { .trust { grid-template-columns: 1fr 1fr; } .sm-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .sm-steps, .sm-examples, .complex, .trust, .proof { grid-template-columns: 1fr; } }

/* ---------- Page « Bientôt disponible » (SaaS en préparation) ----------
   Les couleurs du SaaS (saas.js) remplacent ces valeurs par défaut. */
.soon { --c-bg: var(--bg-3); --c-fg: var(--fg); --c-muted: var(--muted); --c-accent: var(--blue); --c-line: var(--line); --c-visual: #050505; --c-tag: rgba(255,255,255,.06); }
.soon-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.soon-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); animation: blink 1.6s ease-in-out infinite; }
.soon .display .italic { color: var(--c-accent); }
.soon-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.soon-visual { position: relative; height: clamp(280px, 40vw, 540px); border-radius: 28px; overflow: hidden; background: var(--c-visual); color: var(--c-fg); border: 1px solid var(--c-line); display: grid; place-items: center; }
.soon-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.soon-visual__inner { position: relative; display: grid; justify-items: center; gap: 26px; padding: 0 20px; text-align: center; }
.soon-brand { display: flex; align-items: center; gap: .4em; font-size: clamp(36px, 5.6vw, 84px); font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.soon-brand i { width: 1.25em; height: 1.25em; border-radius: .32em; background: var(--c-accent); color: var(--c-visual); display: grid; place-items: center; font-style: normal; font-size: .5em; }
/* Vidéo de présentation d'un SaaS (page « Bientôt disponible ») */
.soon-film-section { padding-top: 0; }
.soon-film { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--c-visual, #000); border: 1px solid var(--c-line, rgba(255,255,255,.12)); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.soon-film.is-vertical { aspect-ratio: 9 / 16; max-width: 440px; margin: 0 auto; }
.soon-film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.soon-film__play { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 26px 10px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(5, 13, 31, .72); color: #fff; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s ease, border-color .25s ease; }
.soon-film__play:hover, .soon-film__play:focus-visible { background: rgba(5, 13, 31, .88); border-color: var(--c-accent, #4a6cff); }
.soon-film__play[hidden] { display: none; }
.soon-film__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent, #4a6cff); color: var(--c-visual, #0b0b0b); }
.soon-film__icon svg { margin-left: 3px; }
.soon-film__texte { margin-top: 18px; color: var(--muted, #a3a3a3); font-size: 15px; }
.soon-film__texte summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.soon-film__texte p { max-width: 70ch; margin: 6px 0 0; line-height: 1.6; }
.soon-visual .status { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.25); }
.soon-points { list-style: none; margin: 0 0 clamp(60px, 8vw, 110px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: sp; }
.soon-points li { padding: 26px 24px 26px 0; border-top: 1px solid var(--line-strong); counter-increment: sp; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.soon-points li::before { content: "0" counter(sp); display: block; font-size: 15px; color: var(--c-accent); margin-bottom: 26px; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; color: #d0d0d0; font-size: 17px; line-height: 1.7; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); color: var(--fg); margin: 56px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.todo { background: rgba(217, 122, 84, .25); color: #ffd9c9; padding: 0 4px; border-radius: 4px; }

/* ============================================================
   TÉLÉPHONE : mises en page resserrées, zones tactiles d'au moins 44 px
   ============================================================ */
@media (max-width: 560px) {
  /* Préchargeur : le slogan passe sous le logo pour ne pas toucher le compteur */
  .preloader__tag { left: 0; right: 0; bottom: auto; top: calc(50% + 48px); text-align: center; padding: 0 var(--gutter); letter-spacing: .18em; }
  .preloader__count { font-size: 64px; }

  /* En-tête et menu */
  .menu-btn { min-height: 44px; padding: 0 0 0 16px; }
  .menu > a { font-size: 38px; padding: 2px 0; }
  .menu__foot a { padding: 10px 0; }

  /* Pied de page : liens plus faciles à toucher */
  .footer__grid { gap: 32px; margin-top: 60px; }
  .footer__grid a { padding: 10px 0; }
  .footer__legal { gap: 4px 20px; }
  .footer__legal a { display: inline-block; padding: 10px 0; }

  /* Liens de retour (« ← Tous les services ») */
  .back-link { padding: 12px 0; margin-bottom: 18px; }

  /* Bandeau cookies compact : il ne doit pas cacher la page */
  .cookies { padding: 18px 18px 16px; }
  .cookies .eyebrow { display: none; }
  .cookies__title { font-size: 19px; margin: 0 0 6px; }
  .cookies__desc { font-size: 13px; line-height: 1.5; }
  .cookies__actions { margin-top: 14px; }
  .cookies__btn { padding: 12px 16px; min-height: 44px; }

  /* Démos : petits textes lisibles */
  .flow__col h5, .task small, .prospect__badge { font-size: 12px; }
  .demo__body { padding: 16px; }
  .demo__actions { padding: 14px 16px; }
  .demo-btn { min-height: 44px; }
}

/* Page détaillée d'un service : le numéro passe au-dessus du titre */
@media (max-width: 720px) {
  .svc__head { grid-template-columns: 1fr; gap: 8px; }
  .svc__num { font-size: 96px; }
  .svc__title { font-size: clamp(32px, 9.4vw, 48px); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .svc__nav { flex-direction: column; gap: 24px; }
  .svc__nav a:last-child { text-align: left; }
}

/* ---------- Utilitaires d'animation ---------- */
[data-fade] { opacity: 0; transform: translateY(40px); }
.no-anim [data-fade] { opacity: 1; transform: none; }
.no-anim .manifesto .w { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Offre de lancement et « Être prévenu(e) » (page « Bientôt disponible », src/offre.js) ---------- */
.offre { border-top: 1px solid var(--line); }
.offre__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.offre__compteur { border: 1px solid var(--line-strong); border-radius: 24px; padding: 18px 28px; text-align: center; min-width: 180px; }
.offre__compteur b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 84px); line-height: 1; }
.offre__compteur span { font-size: 13px; color: var(--muted); }
.offre__intro { max-width: 62ch; margin-top: 34px; }
.offre__conditions { list-style: none; padding: 0; margin: 30px 0 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; color: var(--muted); font-size: 15px; }
.offre__conditions li { position: relative; padding-left: 26px; }
.offre__conditions li::before { content: ""; position: absolute; left: 0; top: .75em; width: 14px; height: 1px; background: var(--blue); }
.offre__resultat .offre__code { display: inline-block; font-family: "Courier New", monospace; font-size: clamp(22px, 3vw, 30px); letter-spacing: .12em; padding: 12px 20px; margin: 10px 0 16px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.offre__complet { padding: 28px; border-radius: 20px; border: 1px solid var(--line-strong); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { text-decoration: underline; }
.proof--form { grid-template-columns: 1fr 1fr; align-items: start; }
.prevenir { display: grid; gap: 22px; }
.prevenir.is-done > :not(.form-success) { display: none; }
@media (max-width: 720px) {
  .offre__conditions, .proof--form { grid-template-columns: 1fr; }
  .offre__compteur { width: 100%; }
}

/* ---------- Page « Comment nous concevons nos SaaS » (methode.html) ---------- */
.listen { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.listen .lead { margin: 0; max-width: 46ch; }
.listen__q { grid-template-columns: 1fr; margin-top: 18px; }
.listen__q li { font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 18px; line-height: 1.5; color: var(--fg); }

/* Parcours : une ligne bleue se remplit au fil du défilement, chaque étape s'allume en passant */
.making { position: relative; --dot: 52px; }
.making::before, .making__fill { content: ""; position: absolute; left: calc(var(--dot) / 2); top: 10px; bottom: 10px; width: 1px; }
.making::before { background: var(--line-strong); }
.making__fill { background: var(--blue); transform-origin: top; z-index: 1; }
.making__list { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.making__step { display: grid; grid-template-columns: var(--dot) 1fr; gap: clamp(22px, 4vw, 64px); padding-bottom: clamp(52px, 7vw, 96px); }
.making__step:last-child { padding-bottom: 0; }
.making__dot { width: var(--dot); height: var(--dot); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-strong); transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease); }
.making__step.is-on .making__dot, .no-anim .making__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.making__body { padding-top: 10px; max-width: 760px; }
.making__k { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.making__title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 16px; }
.making__text { margin: 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; max-width: 62ch; }
.making__ex { margin: 20px 0 0; padding: 16px 20px; border-left: 2px solid var(--blue); background: rgba(74, 108, 255, .07); border-radius: 0 14px 14px 0; color: #e4e4e4; font-size: 16px; line-height: 1.6; max-width: 62ch; }
.making__ex strong { font-weight: 600; }
.making__step--first .making__k { color: var(--blue); }
.making__step--first .making__title { font-size: clamp(34px, 4.6vw, 68px); }

/* Accueil : aperçu de la méthode, sous le catalogue des SaaS */
.method-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); align-items: center; padding: clamp(28px, 4.5vw, 64px); border-radius: 28px; border: 1px solid var(--line-strong); background: var(--bg-2); }
.method-teaser .lead { max-width: 46ch; }
.method-teaser__steps { list-style: none; margin: 0; padding: 0; }
.method-teaser__steps li { display: flex; gap: 18px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.3vw, 19px); }
.method-teaser__steps li:last-child { border-bottom: 1px solid var(--line); }
.method-teaser__steps span { font-family: var(--serif); font-size: 14px; color: var(--muted); min-width: 22px; }
.method-teaser__steps li:first-child { color: #fff; font-weight: 500; }
.method-teaser__steps li:first-child span { color: var(--blue); }

@media (max-width: 860px) {
  .method-teaser { grid-template-columns: 1fr; }
  .listen { grid-template-columns: 1fr; }
  .making { --dot: 40px; }
  .making__dot { font-size: 14px; }
  .making__body { padding-top: 4px; }
}
