/* =========================================================================
   ALYO — Direction artistique « Zest 2.0 »
   Encre chaude · Papier · Vert citron (oklch) · Indigo en option
   Display : Bricolage Grotesque · Texte : Hanken Grotesk
   ========================================================================= */

:root {
  /* Encre & papier — base chaude */
  --ink:        #0E0F0C;
  --ink-2:      #16170F;   /* panneaux sombres */
  --ink-3:      #1F2016;   /* surfaces sombres légères */
  --paper:      #F4F6F5;
  --paper-2:    #E9EDEB;
  --surface:    #FFFFFF;   /* cartes sur clair */

  /* Texte sur clair */
  --tx:         #161813;
  --tx-2:       #54584F;
  --tx-3:       #868B82;
  /* Texte sur sombre */
  --tx-d:       #F4F6F5;
  --tx-d-2:     rgba(244,246,245,0.60);
  --tx-d-3:     rgba(244,246,245,0.40);

  /* Vert menthe « Zest » — couleur de marque verrouillée */
  --zest:        #34E5A0;
  --zest-strong: #1FC98A;   /* hover */
  --zest-soft:   #D7F7EC;   /* remplissages doux */
  --zest-ink:    #0E7C56;   /* texte vert sur clair (contraste) */
  --zest-rgb:    52,229,160;

  /* Indigo (repris du logiciel) */
  --indigo:        #0F9E6E;
  --indigo-strong: #0B7C57;
  --indigo-soft:   #D6F3E7;
  --indigo-ink:    #0B7C57;
  --indigo-rgb:    15, 158, 110;

  /* Lignes & ombres chaudes */
  --line:    rgba(14,15,12,0.10);
  --line-2:  rgba(14,15,12,0.16);
  --line-d:  rgba(244,246,245,0.12);
  --line-d2: rgba(244,246,245,0.20);
  --shadow-sm: 0 1px 2px rgba(14,15,12,0.06), 0 4px 14px rgba(14,15,12,0.05);
  --shadow:    0 18px 44px rgba(14,15,12,0.10);
  --shadow-lg: 0 40px 90px rgba(14,15,12,0.20);

  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --max: 1180px;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Accent actif — bascule vert / indigo */
[data-accent="zest"] {
  --accent: var(--zest); --accent-strong: var(--zest-strong);
  --accent-soft: var(--zest-soft); --accent-ink: var(--zest-ink);
  --on-accent: var(--ink); --accent-rgb: var(--zest-rgb);
}
[data-accent="indigo"] {
  --accent: var(--indigo); --accent-strong: var(--indigo-strong);
  --accent-soft: var(--indigo-soft); --accent-ink: var(--indigo-ink);
  --on-accent: #ffffff; --accent-rgb: var(--indigo-rgb);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tx);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.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;
}

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.01em; line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 26px rgba(var(--accent-rgb),.30); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(var(--accent-rgb),.38); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.on-dark .btn-ghost, .btn-ghost.on-dark { color: var(--tx-d); border-color: var(--line-d2); }
.on-dark .btn-ghost:hover, .btn-ghost.on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; z-index: 100; top: 14px; left: 50%;
  transform: translateX(-50%) translateZ(0);
  will-change: transform;
  width: min(calc(100% - 28px), var(--max));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 9px 9px 18px;
  background: rgba(244,243,236,0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(244,243,236,0.9); box-shadow: var(--shadow); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav .nav-link { padding: 9px 13px; border-radius: 999px; color: var(--tx-2); font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: color .15s, background .15s; }
.site-nav .nav-link:hover { color: var(--ink); background: rgba(14,15,12,0.05); }
.site-nav .nav-login { padding: 9px 13px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav-cta { margin-left: 4px; padding: 11px 18px; }
.nav-toggle { display: none; }

/* Vitrine (data-accent="zest") : boutons en pleine pilule, fidèles à la DA
   « Zest 2.0 » du ZIP. Le CRM/logiciel (sans data-accent) garde ses boutons à
   coins arrondis 14px. */
[data-accent="zest"] .btn,
[data-accent="zest"] .btn-primary,
[data-accent="zest"] .btn-secondary { border-radius: 999px; }

/* Vitrine : la flèche des CTA primaires (« Demander une démo »…) ne se déploie
   qu'au survol — effet signature, sans toucher aux autres effets du bouton. */
[data-accent="zest"] .btn-primary > svg {
  opacity: 0; width: 0; margin-left: -10px; transform: translateX(-6px);
  transition: opacity .32s ease, width .32s cubic-bezier(.2,.7,.2,1),
              margin-left .32s cubic-bezier(.2,.7,.2,1), transform .32s cubic-bezier(.2,.7,.2,1);
}
[data-accent="zest"] .btn-primary:hover > svg { opacity: 1; width: 18px; margin-left: 0; transform: translateX(0); }

/* =========================================================================
   LOGO
   ========================================================================= */
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo .mark {
  position: relative; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  align-self: flex-start; margin-top: 4px; margin-left: -1px;
  flex: 0 0 auto;
}
.logo .mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.55); } 70%,100% { box-shadow: 0 0 0 11px rgba(var(--accent-rgb),0); } }
.logo .word { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.04em; color: var(--ink); }
.logo.on-dark .word { color: var(--tx-d); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding: 132px 0 64px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 84% 14%, rgba(var(--accent-rgb),0.16), transparent 70%),
    radial-gradient(46% 40% at 6% 4%, rgba(14,15,12,0.04), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--tx-2); padding: 6px 13px 6px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); margin: 22px 0 0; }
.hero h1 .mark-tx { color: var(--accent-ink); }
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--tx-2); margin-top: 20px; max-width: 30ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--tx-2); font-size: 0.92rem; }
.hero-foot svg { width: 17px; height: 17px; color: var(--accent-ink); flex: 0 0 auto; }

/* =========================================================================
   HERO PANEL — « Appel en direct » (la pièce maîtresse)
   ========================================================================= */
.call {
  position: relative;
  background: linear-gradient(180deg, var(--ink-3), var(--ink));
  border: 1px solid var(--line-d2);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  color: var(--tx-d);
}
.call::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: radial-gradient(70% 60% at 80% 0%, rgba(var(--accent-rgb),0.35), transparent 60%);
  filter: blur(22px); opacity: .55;
}
.call-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 14px; border-bottom: 1px solid var(--line-d);
}
.call-live { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.call-live .pdot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.call-live .pdot::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); animation: live-pulse 2s infinite; }
.call-meta { display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem; color: var(--tx-d-2); }
.call-timer { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* transcript */
/* Hauteur figée : réserve la place du transcript complet (bulles + indicateur de saisie)
   pour que la carte ne grandisse/rétrécisse jamais pendant l'animation → section stable. */
.call-body { padding: 16px 8px 8px; display: flex; flex-direction: column; gap: 11px; height: 392px; }
.bubble {
  max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 0.95rem; line-height: 1.42;
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.bubble.show { opacity: 1; transform: none; }
.bubble small { display: block; margin-bottom: 4px; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.bubble.ai { align-self: flex-start; background: rgba(244,243,236,0.07); border: 1px solid var(--line-d); border-bottom-left-radius: 5px; }
.bubble.user { align-self: flex-end; background: var(--accent); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 500; }
.bubble.user small { opacity: .5; }

/* typing indicator */
.typing { align-self: flex-start; display: none; align-items: center; gap: 5px; padding: 13px 16px; background: rgba(244,243,236,0.07); border: 1px solid var(--line-d); border-radius: 16px; border-bottom-left-radius: 5px; }
.typing.show { display: inline-flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-d-2); animation: typing-b 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-b { 0%,60%,100% { transform: translateY(0); opacity:.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* actions panel */
.call-actions {
  margin-top: 12px; background: rgba(244,243,236,0.05);
  border: 1px solid var(--line-d); border-radius: 18px; padding: 13px 15px;
}
.call-actions .ttl { display:flex; align-items:center; gap:8px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.call-actions .ttl svg { width: 14px; height: 14px; flex: 0 0 auto; }
.act-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 0; font-size: 0.92rem; color: var(--tx-d);
  opacity: .35; filter: saturate(.6);
  transition: opacity .45s ease, filter .45s ease;
}
.act-row + .act-row { border-top: 1px solid var(--line-d); }
.act-row b { font-weight: 600; }
.act-row.done { opacity: 1; filter: none; }
.act-row .tick {
  flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244,243,236,0.08); color: var(--tx-d-2);
  transition: background .35s ease, color .35s ease, transform .35s cubic-bezier(.3,1.4,.5,1);
}
.act-row .tick svg { width: 12px; height: 12px; stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset .4s ease .1s; }
.act-row.done .tick { background: var(--accent); color: var(--ink); transform: scale(1.06); }
.act-row.done .tick svg { stroke-dashoffset: 0; }

/* controls */
.call-controls { display: flex; align-items: center; gap: 10px; padding: 13px 4px 4px; }
.call-controls .scrub { flex: 1; height: 4px; border-radius: 999px; background: rgba(244,243,236,0.12); overflow: hidden; }
.call-controls .scrub i { display: block; height: 100%; width: 0%; background: var(--accent); border-radius: inherit; transition: width .4s linear; }
.cbtn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(244,243,236,0.08); color: var(--tx-d);
  transition: background .15s, color .15s, transform .15s;
}
.cbtn:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.cbtn svg { width: 16px; height: 16px; }
.call-hint { font-size: 0.74rem; color: var(--tx-d-3); margin-left: auto; padding-right: 4px; }

/* =========================================================================
   SECTIONS génériques
   ========================================================================= */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .kick { display:inline-flex; align-items:center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px; }
.section-head .kick::before { content:""; width: 22px; height: 1.5px; background: var(--accent); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--tx-2); font-size: 1.1rem; margin-top: 14px; max-width: 52ch; }

/* trust strip */
.trust { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .lbl { font-size: 0.82rem; color: var(--tx-3); font-weight: 500; }
.trust .names { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: center; }
.trust .names span { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--tx-3); letter-spacing: -0.02em; opacity: .8; }

/* capacités */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cap {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 26px 28px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cap .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
[data-accent="zest"] .cap .ico { background: var(--accent-soft); }
.cap .ico svg { width: 23px; height: 23px; }
.cap .verb { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.cap h3 { font-size: 1.34rem; margin: 7px 0 9px; }
.cap p { color: var(--tx-2); font-size: 0.98rem; }
.cap .cap-no { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-size: 0.86rem; color: var(--tx-3); font-weight: 600; }

/* preuve / facts band (clair, chic) */
.facts { background:#fff; color: var(--tx); border: 1px solid rgba(14,15,12,0.08); border-radius: 28px; padding: 0; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(14,15,12,0.05), 0 18px 50px -22px rgba(14,15,12,0.18); }
.facts::before { content:""; position:absolute; top:0; right:0; width:46%; height:100%; background: radial-gradient(120% 90% at 100% 0%, rgba(16,185,129,0.10), transparent 62%); pointer-events:none; }
.facts-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.fact { padding: 40px 44px; }
.fact + .fact { border-left: 1px solid rgba(14,15,12,0.07); }
.fact-ic { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:12px; background:#E7F6EF; color:#047857; margin-bottom:22px; }
.fact .n { font-family:'Sora', var(--display, sans-serif); font-size: clamp(2.6rem, 4vw, 3.3rem); font-weight: 700; line-height:1; letter-spacing: -0.02em; color: #0E0F0C; font-variant-numeric: tabular-nums; display:flex; align-items:baseline; }
.fact .n .fact-sep { font-weight:500; color:#10B981; margin:0 0.12em; transform:translateY(-0.02em); }
.fact .n .fact-unit { font-family:'Hanken Grotesk', sans-serif; font-weight:600; font-size:1rem; color:#10B981; letter-spacing:0.01em; margin-left:0.5ch; white-space:nowrap; }
.fact .n .fact-pct { font-size:0.62em; font-weight:600; color:#10B981; margin-left:0.14em; align-self:center; }
.fact .l { color: #54584F; font-size: 1rem; line-height:1.5; margin-top: 18px; max-width: 24ch; }

/* secteurs */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sector { display: flex; align-items: center; gap: 13px; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.sector:hover { border-color: var(--accent); transform: translateY(-2px); }
.sector .si { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); color: var(--accent-ink); flex: 0 0 auto; }
.sector .si svg { width: 18px; height: 18px; }
.sector .st { font-weight: 600; font-size: 0.96rem; color: var(--ink); }

/* CTA band (clair, chic) */
.cta { background: linear-gradient(165deg, var(--surface) 0%, var(--zest-soft) 135%); color: var(--tx); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 64px 54px; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 50% -12%, rgba(var(--accent-rgb),0.12), transparent 60%); }
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); }
.cta p { color: var(--tx-2); font-size: 1.12rem; margin: 16px auto 30px; max-width: 44ch; }
.cta .btn-ghost { color: var(--ink); border-color: var(--line-2); }
.cta .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* brand / logo mini-board */
.brand-board { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.bb { border-radius: var(--radius-lg); border: 1px solid var(--line); display: grid; place-items: center; min-height: 168px; position: relative; }
.bb.light { background: var(--surface); }
.bb.dark { background: var(--ink); border-color: var(--ink); }
.bb.tint { background: var(--accent); border-color: var(--accent); }
.bb .tag { position: absolute; left: 16px; bottom: 13px; font-size: 0.72rem; font-family: var(--display); letter-spacing: 0.02em; }
.bb.light .tag { color: var(--tx-3); }
.bb.dark .tag { color: var(--tx-d-3); }
.bb.tint .tag { color: rgba(14,15,12,.5); }
.bb .logo .word { font-size: 1.7rem; }
.bb.tint .logo .mark { background: var(--ink); box-shadow: 0 0 0 4px rgba(14,15,12,.14); }
.bb.tint .logo .mark::after { background: var(--ink); }
.bb.tint .logo .word { color: var(--ink); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { padding: 30px 0 40px; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a { padding: 7px 11px; border-radius: 999px; color: var(--tx-2); font-size: 0.92rem; transition: color .15s, background .15s; }
.footer-links a:hover { color: var(--ink); background: rgba(14,15,12,0.05); }
.footer-copy { color: var(--tx-3); font-size: 0.86rem; }

/* reveal on scroll — animation forwards (se fige sur l'état final visible) */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { animation: revealIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes revealIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   MENU MOBILE
   ========================================================================= */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; background: var(--accent, var(--ink)); color: var(--ink); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .x { display: none; }
body.nav-open .nav-toggle .x { display: block; }
body.nav-open .nav-toggle .burger { display: none; }

/* =========================================================================
   PAGE HERO (pages internes)
   ========================================================================= */
.page-hero { padding: 150px 0 60px; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 92% 0%, rgba(var(--accent-rgb),0.13), transparent 70%);
}
.page-hero .inner { max-width: 760px; }
.kicker { display:inline-flex; align-items:center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.kicker::before { content:""; width: 22px; height: 1.5px; background: var(--accent); }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin: 18px 0 0; }
.page-hero .lede { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: var(--tx-2); margin-top: 18px; max-width: 56ch; line-height: 1.5; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-hero-tiles span { font-size: 0.86rem; font-weight: 500; color: var(--tx-2); padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.page-hero-stat { display: flex; align-items: baseline; gap: 14px; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.page-hero-stat .v { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); line-height: 1; }
.page-hero-stat .l { color: var(--tx-2); font-size: 0.98rem; max-width: 28ch; }

/* section variants */
.section.alt { background: var(--paper-2); }
.section.dark { background: #EAF6F1; color: var(--tx); }
.section.dark h2 { color: var(--ink); }
.section.dark .section-head p { color: var(--tx-2); }
.section.dark .kicker { color: var(--accent-ink); }

/* split (texte + visuel) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.text-first .visual { order: 2; }

/* feature grid + cards */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section.dark .feature { background: var(--surface); border-color: var(--line); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.section.dark .feature:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.feature .no { font-family: var(--display); font-size: 0.82rem; font-weight: 700; color: var(--accent-ink); }
.section.dark .feature .no { color: var(--accent-ink); }
.feature h3 { font-size: 1.22rem; margin: 12px 0 9px; }
.section.dark .feature h3 { color: var(--ink); }
.feature p { color: var(--tx-2); font-size: 0.96rem; }
.section.dark .feature p { color: var(--tx-2); }
.feature ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.feature li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--tx); }
.section.dark .feature li { color: var(--tx); }
.feature li::before { content:""; flex:0 0 auto; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230E7C56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

/* proof grid */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.proof { padding: 4px 0; }
.proof .n { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); line-height: 1; }
.section.dark .proof .n { color: var(--accent-ink); }
.proof .l { color: var(--tx-2); font-size: 0.94rem; margin-top: 10px; max-width: 24ch; }
.section.dark .proof .l { color: var(--tx-2); }

/* platform pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { font-size: 0.92rem; font-weight: 500; color: var(--tx); padding: 10px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, transform .2s; }
.pills span:hover { border-color: var(--accent); transform: translateY(-2px); }
.section.dark .pills span { background: var(--surface); border-color: var(--line); color: var(--tx); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section.dark .step { background: var(--surface); border-color: var(--line); }
.step .sn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.section.dark .step h3 { color: var(--ink); }
.step p { color: var(--tx-2); font-size: 0.94rem; }
.section.dark .step p { color: var(--tx-2); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 32px; }
.price.featured { background: var(--surface); color: var(--tx); border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price .tag { position: absolute; top: -12px; left: 28px; white-space: nowrap; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 5px 12px; border-radius: 999px; }
.price .name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.price.featured .name { color: var(--ink); }
.price .sub { color: var(--tx-2); font-size: 0.94rem; margin-top: 6px; }
.price.featured .sub { color: var(--tx-2); }
.price .amount { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 20px 0 4px; }
.price.featured .amount { color: var(--zest-ink); }
.price .amount .per { font-family: var(--font); font-size: 0.96rem; font-weight: 500; color: var(--tx-2); letter-spacing: 0; }
.price.featured .amount .per { color: var(--tx-2); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.93rem; color: var(--tx); }
.price.featured li { color: var(--tx); }
.price li::before { content:""; flex:0 0 auto; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%230E7C56' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.price.featured li::before { background: var(--accent-soft); }
.price .btn { width: 100%; justify-content: center; }

/* ROI calculator */
.roi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.roi-field { margin-bottom: 22px; }
.roi-field:last-child { margin-bottom: 0; }
.roi-field label { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.94rem; color: var(--tx-2); margin-bottom: 12px; }
.roi-field .val { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.roi input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--paper-2); outline: none; }
.roi input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
.roi input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }
.roi-out { background: var(--zest-soft); color: var(--tx); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.roi-out .ro-label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--zest-ink); }
.roi-out .ro-val { font-family: var(--display); font-size: clamp(2.2rem,4vw,3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--zest-ink); margin: 8px 0; }
.roi-out .ro-sub { font-size: 0.92rem; color: var(--tx-2); }
.roi-out .ro-sub span { color: var(--zest-ink); font-weight: 600; }

/* FAQ */
.faq { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content:"+"; font-family: var(--font); font-size: 1.4rem; color: var(--accent-ink); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--tx-2); font-size: 0.96rem; padding: 0 0 20px; max-width: 64ch; }

/* mock UI snippets (visuels de section) */
.mock { background: linear-gradient(180deg, var(--ink-3), var(--ink)); border: 1px solid var(--line-d2); border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-lg); color: var(--tx-d); position: relative; }
.mock::before { content:""; position:absolute; inset:-1px; border-radius: inherit; z-index:-1; background: radial-gradient(70% 60% at 80% 0%, rgba(var(--accent-rgb),0.32), transparent 60%); filter: blur(22px); opacity:.5; }
.mock-head { display:flex; align-items:center; justify-content:space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-d); margin-bottom: 16px; }
.mock-head .t { font-size: 0.82rem; font-weight: 600; color: var(--accent); display:inline-flex; align-items:center; gap:8px; }
.mock-head .m { font-size: 0.76rem; color: var(--tx-d-2); }
.mock-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.mock-kpi { background: rgba(244,243,236,0.05); border: 1px solid var(--line-d); border-radius: 14px; padding: 16px; }
.mock-kpi .n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--tx-d); letter-spacing: -0.02em; }
.mock-kpi .n .up { color: var(--accent); font-size: 0.9rem; }
.mock-kpi .l { font-size: 0.76rem; color: var(--tx-d-2); margin-top: 4px; }
.mock-row { display:flex; align-items:center; gap: 12px; padding: 11px 0; font-size: 0.9rem; }
.mock-row + .mock-row { border-top: 1px solid var(--line-d); }
.mock-row .av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display:grid; place-items:center; font-weight:700; font-size:0.8rem; flex:0 0 auto; }
.mock-row .nm { color: var(--tx-d); font-weight: 500; }
.mock-row .meta { color: var(--tx-d-2); font-size: 0.8rem; }
.mock-row .pill-sm { margin-left:auto; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; background: rgba(var(--accent-rgb),0.16); color: var(--accent); font-weight: 600; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.feature .fi svg { width: 23px; height: 23px; }
.section.dark .feature .fi { background: var(--accent-soft); color: var(--accent-ink); }

/* lifecycle timeline (fidélisation) */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.lc { position: relative; padding-top: 32px; }
.lc::before { content: ""; position: absolute; top: 6px; left: 7px; right: -24px; height: 2px; background: var(--line-2); }
.lc:last-child::before { display: none; }
.lc .node { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.16); }
.lc .when { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent-ink); font-weight: 700; }
.lc h4 { font-family: var(--display); font-size: 1.06rem; margin: 9px 0 6px; color: var(--ink); }
.lc p { font-size: 0.9rem; color: var(--tx-2); }

/* manifeste (bande claire centrée, sans visuel) */
.manifesto { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--ink); }
.manifesto h2 .hl { color: var(--accent-ink); }
.manifesto p { color: var(--tx-2); font-size: 1.12rem; margin: 18px auto 0; max-width: 50ch; }
.manifesto .section-actions { justify-content: center; }

/* mini bar-chart (pilotage) */
.barlist { display: flex; flex-direction: column; gap: 13px; }
.barrow { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; font-size: 0.92rem; }
.barrow .bl { color: var(--tx-d-2); }
.barrow .track { height: 9px; border-radius: 999px; background: rgba(244,243,236,0.08); overflow: hidden; }
.barrow .bar { height: 100%; border-radius: 999px; background: var(--accent); }
.barrow .bv { color: var(--tx-d); font-weight: 600; font-variant-numeric: tabular-nums; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero .lede { max-width: 46ch; }
  .call { order: -1; max-width: 460px; }
  /* Carte empilée en haut : sa taille n'impacte plus le texte → on laisse la
     hauteur s'adapter au contenu pour éviter tout débordement quand les bulles s'enroulent. */
  .call-body { height: auto; }
  .facts-grid { grid-template-columns: 1fr; gap: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid rgba(14,15,12,0.07); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .brand-board { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .visual, .split.text-first .visual { order: -1; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lifecycle { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .lc::before { display: none; }
  .barrow { grid-template-columns: 100px 1fr auto; gap: 10px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .roi { grid-template-columns: 1fr; }
  /* mobile nav */
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 14px; box-shadow: var(--shadow); display: none;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav .nav-link, .site-nav .nav-login { padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  .hero { padding: 110px 0 48px; }
  .page-hero { padding: 124px 0 44px; }
  .caps { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .grid.three, .grid.four { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .barrow { grid-template-columns: 92px 1fr auto; gap: 9px; font-size: 0.84rem; }
  .cta { padding: 40px 26px; }
  .fact { padding: 32px 28px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: none; }
  .logo .mark::after, .call-live .pdot::after { animation: none; }
}

/* ===== Badges de confiance (RGPD / AI Act) ===== */
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600;
  color: var(--tx-2, #4a4d44); padding: 7px 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s; }
.trust svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.trust:hover { border-color: var(--accent); color: var(--tx); transform: translateY(-1px); }
.footer-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--tx-3, #7c8074); }
.footer-trust svg { width: 12px; height: 12px; color: var(--accent); }
.footer-trust a { color: inherit; text-decoration: underline; }

/* ===== Bande manifeste (standard-ia) — carte contenue, pas de slab pleine largeur ===== */
.manifest-band { background: var(--paper); padding: 88px 0; }
.manifest-card {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: 32px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(var(--accent-rgb), .14), transparent 60%),
    linear-gradient(180deg, #EEF8F3, #E6F5EE);
  border: 1px solid rgba(var(--accent-rgb), .22);
  box-shadow: 0 30px 70px -40px rgba(14, 60, 42, .35);
}
.manifest-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-ink);
  padding: 7px 14px; margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 999px;
}
.manifest-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.manifest-card h2 { color: var(--ink); }
.manifest-card h2 .hl { color: var(--accent-ink); }
.manifest-card p { color: var(--tx-2); }
.manifest-card .manifest-sub { font-size: 1rem; color: var(--tx-3, #6b6f64); margin-top: 12px; }
@media (max-width: 720px) {
  .manifest-band { padding: 56px 0; }
  .manifest-card { padding: 48px 24px; border-radius: 24px; }
}
