/* =========================================================================
   FLOWTASK — Landing page
   Design system conforme à la Charte Graphique Développeur v1.0 (juin 2026)
   Navy #023063 · Deep navy #031A33 · Cyan #03C8CA
   ========================================================================= */

/* ------------------------------- Variables ------------------------------- */
:root {
  --navy:        #023063;
  --deep-navy:   #031A33;
  --cyan:        #03C8CA;
  --cyan-dark:   #04B5C0;
  --blue-gray:   #315A84;
  --light-bg:    #F4F8FA;
  --border:      #D8EDF0;
  --text:        #0B1220;
  --muted:       #64748B;
  --white:       #FFFFFF;

  --radius-card: 24px;
  --radius-btn:  14px;
  --radius-sm:   12px;
  --shadow-card: 0 20px 50px rgba(2, 48, 99, 0.12);
  --shadow-soft: 0 10px 30px rgba(2, 48, 99, 0.08);
  --shadow-lg:   0 40px 90px rgba(1, 17, 40, 0.35);

  --grad-main: linear-gradient(135deg, #023063 0%, #03C8CA 100%);
  --grad-cyan: linear-gradient(135deg, #03C8CA 0%, #04B5C0 100%);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', Arial, sans-serif;
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 148px) 0; }

.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }
.section-dark  {
  background:
    radial-gradient(circle at 82% 12%, rgba(3,200,202,.20), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(3,200,202,.10), transparent 40%),
    var(--deep-navy);
  color: #E9F3F7;
}
.section-dark h2, .section-dark h3 { color: #FFFFFF; }

/* ------------------------- Section headers ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--cyan-dark);
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--cyan); }
.eyebrow::before { content: none; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { margin-top: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { padding-left: 0; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
p, li, a, span { overflow-wrap: break-word; }
/* Empêche le débordement horizontal des colonnes de grille sur mobile (grid blowout) */
.hero-grid > *, .demo-grid > *, .benefits-grid > *, .offer > *, .contact-grid > *,
.config-grid > *, .compare > *, .grid > *, .flow > *, .steps > *, .journey > * { min-width: 0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { letter-spacing: -0.02em; }

h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--blue-gray); line-height: 1.6; }
.section-dark .lead { color: #B9D3E0; }

.text-cyan { color: var(--cyan-dark); }
.section-dark .text-cyan { color: var(--cyan); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: var(--radius-btn);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 12px 26px rgba(3,200,202,.35); }
.btn-primary:hover { background: #05d6d8; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(3,200,202,.45); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #033a78; transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-dark); background: rgba(3,200,202,.05); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section-dark .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(3,200,202,.08); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* ---------------- Accès application (lien à activer) -------------------- */
a.app-link { position: relative; }
.soon-badge {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase; color: var(--navy);
  background: var(--cyan); padding: 2px 7px; border-radius: 999px; margin-left: 8px; line-height: 1.4;
}
.nav-cta .btn.app-link { padding: 11px 16px; }
.only-mobile { display: none; }

.app-access-card {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 15px 18px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.app-access-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.app-access-card .aac-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(3,200,202,.12); color: var(--cyan-dark); display: grid; place-items: center; flex: none; }
.app-access-card .aac-ic svg { width: 22px; height: 22px; }
.app-access-card .aac-txt { flex: 1; }
.app-access-card .aac-txt strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: 15px; }
.app-access-card .aac-txt span { font-size: 13px; color: var(--muted); }
.app-access-card .aac-arrow { color: var(--cyan-dark); flex: none; }
.app-access-card .aac-arrow svg { width: 20px; height: 20px; }

.ft-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 14px;
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: 90vw; text-align: center;
}
.ft-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------- Nav ---------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(2,48,99,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 30px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toplink { font-size: 15px; font-weight: 600; color: var(--blue-gray); transition: color .16s ease; }
.nav-toplink:hover { color: var(--navy); }
.nav-right .btn { padding: 11px 18px; font-size: 15px; }

/* Bouton menu (3 barres) — toujours visible */
.nav-toggle { display: flex; width: 46px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; border: 1.5px solid var(--border); background: #fff; transition: border-color .2s, background .2s; flex: none; }
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* Panneau déroulant des sections (« autres parties ») */
.nav-panel {
  position: absolute; top: 64px; right: var(--gutter); width: 268px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-card); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav.open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-panel-inner { display: flex; flex-direction: column; gap: 2px; }
.nav-panel a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--blue-gray); transition: background .16s, color .16s; }
.nav-panel a:hover { background: var(--light-bg); color: var(--navy); }
.nav-panel a.only-mobile { color: var(--cyan-dark); }
.nav-panel a.only-mobile + a:not(.only-mobile) { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 14px; }
.only-mobile { display: none; }

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue-gray); padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .2s, color .2s; }
.lang-btn:hover { border-color: var(--cyan); color: var(--navy); }
.lang-btn > svg { width: 16px; height: 16px; }
.lang-btn .lang-caret { width: 13px; height: 13px; transition: transform .2s; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 152px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-card); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 120; }
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--blue-gray); transition: background .15s, color .15s; }
.lang-menu button:hover { background: var(--light-bg); color: var(--navy); }
.lang-menu button.active { color: var(--cyan-dark); background: rgba(3,200,202,.08); }
@media (max-width: 400px) { .lang-btn #langCurrent { display: none; } .lang-btn { padding: 9px 10px; } }

/* --------------------------------- Hero --------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 104px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); color: #fff; line-height: 1.08; margin-bottom: 22px; overflow-wrap: normal; hyphens: none; }
.hero h1 .text-cyan { color: var(--cyan); }
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: #B9D3E0; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #A9C6D6; font-weight: 500; }
.hero-trust li svg { width: 17px; height: 17px; color: var(--cyan); flex: none; }

.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow::before { content:""; position:absolute; width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(3,200,202,.28), transparent 62%); filter: blur(10px); }

/* Hero CRM mockup */
.hero-mockup { position: relative; }
.crm-card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero-mockup:hover .crm-card { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.crm-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.crm-head .dot-title { display:flex; align-items:center; gap:9px; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 15px; }
.crm-head .dot-title > span:first-child { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(3,200,202,.16); flex: none; }
.crm-badge { font-size: 11px; font-weight: 700; letter-spacing:.04em; text-transform: uppercase; color: #0a8f7a; background: #e2fbf3; padding: 5px 10px; border-radius: 999px; }
.lead-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.lead-row + .lead-row { margin-top: 4px; }
.lead-row.active { background: var(--light-bg); }
.lead-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-family: var(--font-head); font-size: 15px; flex: none; }
.lead-av.a { background: linear-gradient(135deg,#03C8CA,#04B5C0); }
.lead-av.b { background: linear-gradient(135deg,#023063,#315A84); }
.lead-av.c { background: linear-gradient(135deg,#315A84,#03C8CA); }
.lead-meta { flex: 1; min-width: 0; }
.lead-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.lead-desc { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-tag { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; flex: none; }
.tag-new { color: var(--cyan-dark); background: rgba(3,200,202,.12); }
.tag-book { color: #7a4bd0; background: rgba(122,75,208,.12); }
.tag-quote { color: #b8791b; background: rgba(184,121,27,.12); }
.crm-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.crm-foot b { color: var(--navy); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #17c07a; box-shadow: 0 0 0 0 rgba(23,192,122,.5); animation: pulse 2s infinite; flex:none;}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(23,192,122,.5);} 70%{box-shadow:0 0 0 8px rgba(23,192,122,0);} 100%{box-shadow:0 0 0 0 rgba(23,192,122,0);} }

.hero-float { position: absolute; z-index: 5; background: #fff; border-radius: 14px; box-shadow: var(--shadow-card); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.hero-float svg { width: 20px; height: 20px; color: var(--cyan-dark); }
.hero-float.f1 { top: -22px; left: -26px; }
.hero-float.f2 { bottom: -20px; right: -18px; }
@media (max-width: 560px){ .hero-float{ display:none; } }

/* ------------------------------ Stats band ------------------------------ */
.stats-band { position: relative; z-index: 2; margin-top: -46px; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.stat { background: #fff; padding: 30px 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 4vw, 42px); color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.stat-num .text-cyan { color: var(--cyan-dark); }
.stat-label { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* -------------------------------- Cards --------------------------------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px; box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #bfe4e9; }
.card-num { font-family: var(--font-head); font-size: 13px; font-weight: 800; color: var(--cyan-dark); letter-spacing: .06em; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

.icon-box { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(3,200,202,.10); color: var(--cyan-dark); }
.icon-box svg { width: 26px; height: 26px; }
.card:hover .icon-box { background: var(--cyan); color: #fff; }

/* Dark cards */
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.10); box-shadow: none; }
.section-dark .card:hover { background: rgba(255,255,255,.07); border-color: rgba(3,200,202,.4); }
.section-dark .card p { color: #9FBACB; }
.section-dark .icon-box { background: rgba(3,200,202,.14); color: var(--cyan); }

/* ------------------------- Situation timeline --------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; }
.tl-step { position: relative; padding: 0 20px; }
.tl-time { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--cyan); background: rgba(3,200,202,.10); border: 1px solid rgba(3,200,202,.25); padding: 6px 12px; border-radius: 999px; position: relative; z-index: 2; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.tl-step h4 { color: #fff; font-size: 17px; margin: 18px 0 8px; }
.tl-step p { color: #9FBACB; font-size: 14.5px; }
.situation-punch { margin-top: clamp(44px,6vw,64px); text-align: center; }
.situation-punch p { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3.2vw, 34px); color: #fff; line-height: 1.25; letter-spacing:-0.02em; }
.situation-punch .text-cyan { color: var(--cyan); }

/* ------------------------------ Demo phone ------------------------------ */
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,6vw,72px); align-items: center; }
.phone {
  width: 320px; max-width: 100%; margin: 0 auto; background: #0a1526; border-radius: 40px;
  padding: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative;
}
.phone::before { content:""; position:absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0a1526; border-radius: 0 0 16px 16px; z-index: 5; }
.phone-screen { background: #EEF3F7; border-radius: 28px; height: 580px; overflow: hidden; display: flex; flex-direction: column; }
.phone-topbar { background: #fff; padding: 40px 18px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eef1f4; }
.phone-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-cyan); display: grid; place-items: center; flex: none; }
.phone-avatar img { width: 22px; height: 22px; }
.phone-contact b { display: block; font-size: 14.5px; color: var(--navy); font-family: var(--font-head); }
.phone-contact span { font-size: 11.5px; color: #12b886; display: flex; align-items: center; gap: 5px; }
.phone-contact span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: #12b886; }
.phone-body { flex: 1; padding: 16px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.phone-body::-webkit-scrollbar { width: 0; }
.msg { max-width: 82%; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; border-radius: 16px; opacity: 0; transform: translateY(8px); animation: msgIn .35s forwards; }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
.msg.in { align-self: flex-start; background: #fff; color: #1c2b3a; border-bottom-left-radius: 5px; box-shadow: 0 2px 6px rgba(2,48,99,.06); }
.msg.out { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg.out.cyan { background: var(--grad-cyan); color: #04263b; font-weight: 600; }
.msg .msg-time { display: block; font-size: 10px; opacity: .6; margin-top: 4px; }
.msg-photo { width: 100%; height: 92px; border-radius: 12px; background: linear-gradient(135deg,#cfe4ea,#a7cfd8); display:flex; align-items:center; justify-content:center; color:#3d6b78; margin-bottom: 4px; }
.msg-photo svg { width: 30px; height: 30px; }
.typing { align-self: flex-start; background: #fff; padding: 12px 16px; border-radius: 16px; border-bottom-left-radius: 5px; display: flex; gap: 4px; box-shadow: 0 2px 6px rgba(2,48,99,.06); }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b3c1cc; animation: typing 1.2s infinite; }
.typing span:nth-child(2){ animation-delay: .2s; } .typing span:nth-child(3){ animation-delay: .4s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.5;} 30%{ transform: translateY(-5px); opacity:1;} }
.phone-tag { align-self: center; font-size: 11px; color: var(--muted); background: rgba(2,48,99,.06); padding: 3px 12px; border-radius: 999px; margin: 2px 0; }

/* Demo steps */
.demo-steps { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; }
.demo-step { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: #fff; transition: .3s; opacity: .55; }
.demo-step.active { opacity: 1; border-color: var(--cyan); box-shadow: 0 12px 30px rgba(3,200,202,.14); transform: translateX(4px); }
.demo-step .ds-num { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--light-bg); color: var(--muted); transition: .3s; }
.demo-step.active .ds-num { background: var(--cyan); color: var(--navy); }
.demo-step h4 { color: var(--navy); font-size: 16.5px; margin-bottom: 3px; }
.demo-step p { font-size: 14px; color: var(--muted); }
.demo-controls { display: flex; align-items: center; gap: 14px; }

/* --------------------------- Flow / solution ---------------------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: flow; }
.flow-card { position: relative; background:#fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow-soft); }
.flow-card .fc-icon { width: 50px; height: 50px; border-radius: 14px; display:grid; place-items:center; background: var(--grad-main); color:#fff; margin-bottom: 18px; }
.flow-card .fc-icon svg { width: 24px; height: 24px; }
.flow-card .fc-step { position: absolute; top: 22px; right: 22px; font-family: var(--font-head); font-weight: 800; color: var(--border); font-size: 30px; line-height: 1; }
.flow-card h3 { font-size: 19px; margin-bottom: 8px; }
.flow-card p { color: var(--muted); font-size: 14.5px; }
.flow-card .fc-arrow { position: absolute; top: 50%; right: -13px; transform: translateY(-50%); z-index: 3; color: var(--cyan); background: var(--light-bg); border-radius:50%; }
.flow-card .fc-arrow svg { width: 22px; height: 22px; }

/* ------------------------- Config sur mesure ---------------------------- */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.config-col { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-card); padding: 32px; }
.config-col .cc-head { display:flex; align-items:center; gap: 12px; margin-bottom: 22px; }
.config-col .cc-ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(3,200,202,.14); color: var(--cyan); display:grid; place-items:center; flex:none; }
.config-col .cc-ic svg { width: 24px; height: 24px; }
.config-col h3 { font-size: 20px; color:#fff; }
.config-col .cc-sub { font-size: 13.5px; color: #9FBACB; }
.config-list li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; color: #DCEAF2; }
.config-list li:first-child { border-top: none; }
.config-list li .n { font-family: var(--font-head); font-weight: 700; color: var(--cyan); font-size: 13px; flex:none; padding-top: 2px; }
.config-note { margin-top: 30px; display:flex; align-items:center; gap: 14px; justify-content:center; text-align:center; background: rgba(3,200,202,.08); border: 1px solid rgba(3,200,202,.2); border-radius: 16px; padding: 18px 24px; font-size: 15px; color: #DCEAF2; }
.config-note svg { width: 24px; height: 24px; color: var(--cyan); flex:none; }

/* ----------------------------- Journey ---------------------------------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; margin-top: 20px; }
.jr { text-align: center; padding: 0 8px; position: relative; }
.jr-dot { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 16px; background:#fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); display:grid; place-items:center; color: var(--navy); position: relative; z-index:2; }
.jr-dot svg { width: 26px; height: 26px; }
.jr:hover .jr-dot { background: var(--navy); color:#fff; border-color: var(--navy); }
.jr .jr-step { font-size: 11px; font-weight: 800; letter-spacing:.08em; text-transform: uppercase; color: var(--cyan-dark); }
.jr h4 { font-size: 16px; margin: 4px 0 6px; color: var(--navy); }
.jr p { font-size: 13px; color: var(--muted); }

/* ----------------------------- Benefits --------------------------------- */
.benefits-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px,5vw,56px); align-items: center; }
.ba-card { background:#fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px; box-shadow: var(--shadow-card); }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ba-col { border-radius: 16px; padding: 18px; }
.ba-before { background: #fdf1f1; border: 1px solid #f6d9d9; }
.ba-after { background: #e9fbf4; border: 1px solid #c9f0e2; }
.ba-col .ba-tag { font-size: 11px; font-weight: 800; letter-spacing:.06em; text-transform: uppercase; margin-bottom: 10px; display:flex; align-items:center; gap:6px; }
.ba-before .ba-tag { color: #d0505a; }
.ba-after .ba-tag { color: #0a9d74; }
.ba-item { font-size: 14px; padding: 7px 0; display:flex; align-items:flex-start; gap: 8px; color: #334155; }
.ba-item svg { width: 16px; height: 16px; flex:none; margin-top: 3px; }
.ba-before .ba-item svg { color:#d0505a; } .ba-after .ba-item svg { color:#0a9d74; }
.ba-metric { display:flex; justify-content:space-between; align-items:center; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.ba-metric b { font-family: var(--font-head); color: var(--navy); font-size: 15px; }

.benefit-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.benefit-list li:first-child { border-top: none; }
.benefit-list .bl-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(3,200,202,.10); color: var(--cyan-dark); display:grid; place-items:center; flex:none; }
.benefit-list .bl-ic svg { width: 21px; height: 21px; }
.benefit-list h4 { font-size: 16.5px; color: var(--navy); margin-bottom: 2px; }
.benefit-list p { font-size: 14.5px; color: var(--muted); }

/* ---------------------------- Comparison -------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.compare-col { border-radius: var(--radius-card); padding: 32px; }
.compare-generic { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.10); }
.compare-flow { background: linear-gradient(160deg, rgba(3,200,202,.14), rgba(3,200,202,.04)); border: 1px solid rgba(3,200,202,.35); box-shadow: 0 20px 50px rgba(3,200,202,.12); }
.compare-col .ch { display:flex; align-items:center; gap:12px; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.compare-col .ch .clogo { height: 26px; }
.compare-col .ch h3 { font-size: 19px; }
.compare-generic .ch h3 { color: #A9C6D6; }
.compare-col .ch .ctag { font-size: 11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; padding: 4px 10px; border-radius: 999px; }
.compare-generic .ctag { background: rgba(255,255,255,.08); color:#9FBACB; }
.compare-flow .ctag { background: var(--cyan); color: var(--navy); }
.compare-list li { display: flex; gap: 12px; padding: 13px 0; font-size: 15px; }
.compare-generic .compare-list li { color: #9FBACB; }
.compare-flow .compare-list li { color: #EAF6FA; font-weight: 500; }
.compare-list li svg { width: 20px; height: 20px; flex:none; margin-top: 1px; }
.compare-generic .compare-list svg { color: #6b8299; }
.compare-flow .compare-list svg { color: var(--cyan); }

/* --------------------------- Steps (setup) ------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { position: relative; background:#fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 34px 30px; box-shadow: var(--shadow-soft); }
.step-card .sc-num { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* ------------------------------- Offer ---------------------------------- */
.offer { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px,5vw,60px); align-items: center; }
.offer-card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--shadow-card); padding: 36px; }
.offer-badge { display:inline-flex; align-items:center; gap:8px; font-family: var(--font-head); font-weight:700; font-size: 12.5px; text-transform: uppercase; letter-spacing:.1em; color: var(--cyan-dark); background: rgba(3,200,202,.10); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.offer-card h3 { font-size: clamp(24px,3vw,30px); margin-bottom: 8px; }
.offer-price { font-family: var(--font-head); font-weight: 800; color: var(--cyan-dark); font-size: 18px; margin-bottom: 22px; }
.offer-features li { display:flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15.5px; color: #334155; }
.offer-features li:first-child { border-top:none; }
.offer-features svg { width: 20px; height: 20px; color: var(--cyan-dark); flex:none; margin-top:1px; }
.offer-side .os-item { display:flex; gap:14px; margin-bottom: 24px; }
.offer-side .os-n { font-family: var(--font-head); font-weight:800; font-size: 15px; color: var(--cyan); width:38px; height:38px; border-radius:11px; background: rgba(3,200,202,.12); display:grid; place-items:center; flex:none; }
.offer-side h4 { color:#fff; font-size:17px; margin-bottom:3px; }
.offer-side p { color:#9FBACB; font-size:14.5px; }

/* -------------------------------- FAQ ----------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width:100%; display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 24px 4px; text-align:left; font-family: var(--font-head); font-weight:700; font-size: clamp(16px,2vw,18.5px); color: var(--navy); }
.faq-q .faq-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--light-bg); display:grid; place-items:center; flex:none; transition:.3s; color: var(--cyan-dark); }
.faq-item.open .faq-ic { background: var(--cyan); color: var(--navy); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--muted); font-size: 15.5px; max-width: 92%; }

/* ------------------------------ CTA banner ------------------------------ */
.cta-banner { text-align: center; }
.cta-banner h2 { font-size: clamp(30px,4.6vw,50px); color:#fff; max-width: 760px; margin: 0 auto 18px; }
.cta-banner p { font-size: clamp(16px,2vw,19px); color:#B9D3E0; max-width: 620px; margin: 0 auto 32px; }
.cta-actions { display:flex; gap: 14px; justify-content:center; flex-wrap: wrap; }

/* ------------------------------ Contact --------------------------------- */
.contact-grid { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px,5vw,64px); align-items: start; }
.contact-info .ci-item { display:flex; gap: 16px; margin-bottom: 26px; }
.contact-info .ci-ic { width: 48px; height:48px; border-radius: 14px; background: var(--grad-main); color:#fff; display:grid; place-items:center; flex:none; }
.contact-info .ci-ic svg { width: 22px; height:22px; }
.contact-info h4 { font-size: 16px; color: var(--navy); margin-bottom: 3px; }
.contact-info p, .contact-info a { color: var(--muted); font-size: 15px; }
.contact-info a:hover { color: var(--cyan-dark); }
.contact-trust { margin-top: 30px; padding: 18px 20px; background:#fff; border:1px solid var(--border); border-radius: 16px; display:flex; align-items:center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.contact-trust svg { width: 22px; height:22px; color: #17c07a; flex:none; }

.form { background:#fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: clamp(26px,3.5vw,38px); box-shadow: var(--shadow-card); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--text); background: #fbfdfe; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(3,200,202,.12); background:#fff; }
.form-consent { display:flex; gap: 10px; align-items:flex-start; font-size: 12.5px; color: var(--muted); margin: 6px 0 18px; }
.form-consent input { width: 17px; height: 17px; margin-top: 2px; flex:none; accent-color: var(--cyan-dark); }
.form-note { font-size: 12px; color: var(--muted); text-align:center; margin-top: 14px; }
.form-success { display:none; text-align:center; padding: 20px; }
.form-success.show { display:block; }
.form-success svg { width: 54px; height: 54px; color: #17c07a; margin: 0 auto 14px; }
.form-success h3 { margin-bottom: 8px; }

/* Bloc Contact = infos + bouton vers la page démo */
.contact-cta-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(30px,4vw,46px); display:flex; flex-direction:column; align-items:center; text-align:center; justify-content:center; }
.contact-cta-card .cta-ic { width:64px; height:64px; border-radius:18px; background: var(--grad-main); color:#fff; display:grid; place-items:center; margin-bottom:22px; }
.contact-cta-card .cta-ic svg { width:32px; height:32px; }
.contact-cta-card h3 { font-size: clamp(22px,3vw,28px); margin-bottom:12px; }
.contact-cta-card p { color: var(--muted); font-size:16px; margin-bottom:26px; max-width: 380px; }
.contact-cta-card .btn { width:100%; max-width:340px; }
.contact-cta-card .form-note { margin-top:16px; }

/* Contact simplifié : email + réseaux sociaux */
.contact-simple { display:flex; flex-direction:column; align-items:center; gap:26px; }
.contact-mail { display:inline-flex; align-items:center; gap:12px; font-family:var(--font-head); font-weight:700; font-size:clamp(18px,2.4vw,22px); color:var(--navy); padding:16px 28px; border:1.5px solid var(--border); border-radius:16px; transition:border-color .2s, box-shadow .2s, color .2s; }
.contact-mail:hover { border-color:var(--cyan); box-shadow:var(--shadow-soft); color:var(--cyan-dark); }
.contact-mail svg { width:24px; height:24px; color:var(--cyan-dark); flex:none; }
.contact-socials { display:flex; gap:14px; }
.contact-socials a { width:52px; height:52px; border-radius:14px; background:var(--light-bg); border:1px solid var(--border); display:grid; place-items:center; color:var(--navy); transition:background .2s, color .2s, transform .2s, border-color .2s; }
.contact-socials a:hover { background:var(--navy); color:#fff; border-color:var(--navy); transform:translateY(-2px); }
.contact-socials svg { width:22px; height:22px; }

/* ------------------------------- Footer --------------------------------- */
.footer { background: var(--deep-navy); color: #A9C6D6; padding: clamp(56px,7vw,80px) 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .fb-logo { display:flex; align-items:center; gap: 11px; margin-bottom: 18px; }
.footer-brand .fb-logo img { height: 34px; }
.footer-word { font-family: var(--font-head); font-weight: 800; font-size: 21px; color:#fff; letter-spacing: -0.02em; }
.footer-word .t { color: var(--cyan); }
.footer-brand p { font-size: 14.5px; max-width: 300px; line-height: 1.6; }
.footer-social { display:flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height:40px; border-radius: 11px; background: rgba(255,255,255,.06); display:grid; place-items:center; color:#B9D3E0; transition:.2s; }
.footer-social a:hover { background: var(--cyan); color: var(--navy); }
.footer-social svg { width: 19px; height:19px; }
.footer-col h5 { font-family: var(--font-head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing:.08em; color:#fff; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14.5px; transition: color .16s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap: 16px; padding-top: 26px; flex-wrap: wrap; font-size: 13px; }
.footer-bottom .fb-links { display:flex; gap: 22px; flex-wrap:wrap; }

/* ---------------------------- Reveal anim ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .msg { animation: none; opacity:1; transform:none; } }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup { max-width: 460px; margin: 0 auto; }
  .crm-card { transform: none; }
  .demo-grid, .benefits-grid, .offer, .contact-grid { grid-template-columns: 1fr; }
  .config-grid, .compare { grid-template-columns: 1fr; }
  .flow, .journey, .steps { grid-template-columns: repeat(2, 1fr); }
  .flow-card .fc-arrow { display: none; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(2,1fr); gap: 34px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Nav responsive : sous 640px, Contact/Formulaire passent dans le menu ☰ */
@media (max-width: 640px) {
  .desktop-only { display: none; }
  .nav-panel .only-mobile { display: block; }
  .nav-right { gap: 10px; }
  .app-cta.btn { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .nav-panel { left: var(--gutter); right: var(--gutter); width: auto; }
  /* Boutons d'action en pleine largeur : évite tout débordement quelle que soit la langue */
  .hero-actions, .cta-actions, .demo-controls { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn, .demo-controls .btn { width: 100%; white-space: normal; }
  /* La carte « leads » du hero doit tenir dans l'écran (sinon coupée à droite) */
  .hero-mockup, .crm-card { max-width: 100%; }
  .lead-desc { white-space: normal; }
}
@media (max-width: 360px) {
  .app-cta .soon-badge { display: none; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow, .journey, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .ba-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .journey::before { display:none; }
}
@media (max-width: 400px){ .stats-inner { grid-template-columns: 1fr; } }

/* ===================================================================
   AJOUTS — étude de cas · partenaires · CTA flottant · fil d'Ariane
   =================================================================== */

/* ---- Étude de cas ---- */
.case { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: stretch; margin-top: 8px; }
.case-story { display: flex; flex-direction: column; gap: 22px; }
.case-block { }
.case-k { display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.case-story p { color: rgba(255,255,255,.82); line-height: 1.7; }
.case-quote { margin: 6px 0 0; padding: 22px 24px; border-left: 3px solid var(--cyan); background: rgba(255,255,255,.05); border-radius: 0 16px 16px 0; }
.case-quote p { color: #fff; font-size: 18px; line-height: 1.6; font-weight: 500; }
.case-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: rgba(255,255,255,.6); }
.case-metrics { display: flex; flex-direction: column; gap: 16px; }
.case-metric { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-card); padding: 26px 24px; text-align: left; }
.case-metric .cm-num { font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.case-metric .cm-lbl { margin-top: 10px; color: rgba(255,255,255,.72); font-size: 14.5px; line-height: 1.5; }

/* ---- Partenaires / espace pub ---- */
.partners-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 8px; }
.partner-slot { display: grid; place-items: center; min-height: 92px; padding: 16px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--muted); font-size: 13.5px; font-weight: 500; text-align: center; transition: .25s; }
.partner-slot:hover { border-color: var(--cyan); color: var(--cyan-dark); }
.partners-foot { text-align: center; margin-top: 30px; }

/* ---- CTA flottant (mobile) ---- */
.sticky-cta { display: none; }
@media (max-width: 768px) {
  .sticky-cta {
    position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 1500; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 22px; border-radius: 999px; background: var(--cyan); color: var(--navy);
    font-family: var(--font-head); font-weight: 700; font-size: 16px; text-decoration: none;
    box-shadow: 0 12px 30px rgba(2,48,99,.35); max-width: 460px; margin: 0 auto;
  }
  .sticky-cta svg { width: 20px; height: 20px; flex: none; }
  .sticky-cta:active { transform: translateY(1px); }
  /* Laisse la place au CTA flottant au-dessus du pied de page */
  .footer { padding-bottom: 104px; }
}

/* ---- Fil d'Ariane (pages internes) ---- */
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-dark); }
.breadcrumb li[aria-current="page"] { color: var(--navy); font-weight: 600; }
.breadcrumb .bc-sep { color: var(--border); }

@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; }
  .partners-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) { .partners-row { grid-template-columns: 1fr; } }

/* ===================================================================
   Pages internes : 404 · remerciement · confidentialité
   =================================================================== */
.ipage-nav { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 50; }
.ipage-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ipage-nav .nav-logo img { height: 30px; width: auto; display: block; }
.ipage-back { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ipage-back:hover { color: var(--cyan-dark); }
.ipage-back svg { width: 16px; height: 16px; }

/* Pages d'état (404 / merci) */
.status-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); background: var(--deep-navy); position: relative; overflow: hidden; }
.status-wrap::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(3,200,202,.16), transparent 70%); top: -220px; right: -160px; }
.status-inner { max-width: 640px; position: relative; }
.status-tag { display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); background: rgba(3,200,202,.12); border: 1px solid rgba(3,200,202,.3); padding: 6px 14px; border-radius: 999px; }
.status-code { font-family: var(--font-head); font-size: clamp(80px, 18vw, 150px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.04em; margin: 18px 0 6px; }
.status-badge { width: 78px; height: 78px; border-radius: 50%; background: rgba(3,200,202,.14); border: 1px solid rgba(3,200,202,.35); display: grid; place-items: center; margin: 0 auto 22px; }
.status-badge svg { width: 40px; height: 40px; stroke: var(--cyan); }
.status-inner h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 8px 0 14px; }
.status-inner p { color: rgba(255,255,255,.74); font-size: 17px; line-height: 1.65; margin: 0 auto; max-width: 520px; }
.status-inner p + p { margin-top: 10px; }
.status-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Page légale / confidentialité */
.legal { max-width: 820px; margin: 0 auto; padding: 46px var(--gutter) 96px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 12px 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal h2 { font-size: 21px; margin: 40px 0 10px; color: var(--navy); scroll-margin-top: 84px; }
.legal p, .legal li { color: var(--text); line-height: 1.75; font-size: 16px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--cyan-dark); }
.legal .lead { font-size: 18px; color: var(--muted); }

/* ===================================================================
   Bannière de consentement aux cookies
   =================================================================== */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2200;
  max-width: 470px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(1,17,40,.28);
  padding: 20px 22px; transform: translateY(150%); opacity: 0;
  transition: transform .34s cubic-bezier(.16,.84,.44,1), opacity .34s ease;
}
.cookie-consent.show { transform: none; opacity: 1; }
.cc-text { font-size: 13.5px; color: var(--text); line-height: 1.6; margin: 0 0 16px; }
.cc-text a { color: var(--cyan-dark); font-weight: 600; text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; }
.cc-actions button { flex: 1; padding: 12px 14px; border-radius: 11px; font-family: var(--font-head); font-weight: 700; font-size: 14px; cursor: pointer; border: 1.5px solid var(--border); transition: .18s; }
.cc-refuse { background: #fff; color: var(--navy); }
.cc-refuse:hover { border-color: var(--navy); }
.cc-accept { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.cc-accept:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); }
/* Tant que le choix n'est pas fait, on masque le CTA flottant pour éviter la superposition */
body.consent-pending .sticky-cta { display: none !important; }
@media (max-width: 520px) { .cookie-consent { max-width: none; left: 12px; right: 12px; bottom: 12px; } }

/* =========================================================================
   Assistant de conversation (chatbot.js)
   ========================================================================= */

/* ---- Bulle flottante ---- */
.ftc-bubble {
  position: fixed; right: 22px; bottom: 22px; z-index: 1600;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  box-shadow: 0 14px 34px rgba(2, 48, 99, .34);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ftc-bubble.ready { display: flex; }
.ftc-bubble:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(2, 48, 99, .42); }
.ftc-bubble:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.ftc-bubble svg { width: 25px; height: 25px; }
.ftc-bubble .ftc-ico-close { display: none; }
.ftc-bubble.open { background: var(--deep-navy); }
.ftc-bubble.open .ftc-ico-chat { display: none; }
.ftc-bubble.open .ftc-ico-close { display: block; }

/* ---- Panneau ---- */
.ftc-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 1601;
  width: min(384px, calc(100vw - 40px)); max-height: min(600px, calc(100vh - 132px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: 0 30px 70px rgba(1, 17, 40, .26);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}
.ftc-panel.show { opacity: 1; transform: none; }
/* Sans cette ligne, le `display: flex` ci-dessus l'emporte sur l'attribut hidden
   (feuille auteur > feuille du navigateur) : le panneau resterait dans le flux,
   invisible mais captant les clics destines a la page. */
.ftc-panel[hidden] { display: none; }

.ftc-head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 15px 14px 15px 17px; background: var(--navy); color: var(--white);
}
.ftc-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-cyan); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
}
.ftc-head-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ftc-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.3; }
.ftc-sub { font-size: 12px; opacity: .78; line-height: 1.4; }
.ftc-close {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); opacity: .78; transition: opacity .15s ease, background .15s ease;
}
.ftc-close:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.ftc-close svg { width: 17px; height: 17px; }

/* ---- Fil de messages ---- */
.ftc-body {
  flex: 1; min-height: 150px; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 16px; background: var(--light-bg);
  display: flex; flex-direction: column; gap: 10px;
}
.ftc-msg { display: flex; }
.ftc-msg.ftc-user { justify-content: flex-end; }
.ftc-bulle {
  max-width: 84%; padding: 11px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.ftc-assistant .ftc-bulle {
  background: var(--white); color: var(--text);
  border: 1px solid var(--border); border-bottom-left-radius: 6px;
}
.ftc-user .ftc-bulle {
  background: var(--navy); color: var(--white); border-bottom-right-radius: 6px;
}
.ftc-err .ftc-bulle { border-color: #F3C9C9; background: #FFF6F6; }
.ftc-err-cta {
  display: inline-block; margin-top: 9px; font-weight: 600; font-size: 13.5px;
  color: var(--navy); border-bottom: 1.5px solid var(--cyan);
}

/* ---- Points d'attente ---- */
.ftc-wait .ftc-bulle { display: flex; gap: 5px; padding: 15px 14px; }
.ftc-wait span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-gray);
  animation: ftcDot 1.15s infinite ease-in-out;
}
.ftc-wait span:nth-child(2) { animation-delay: .16s; }
.ftc-wait span:nth-child(3) { animation-delay: .32s; }
@keyframes ftcDot {
  0%, 70%, 100% { opacity: .3; transform: translateY(0); }
  35%           { opacity: 1;  transform: translateY(-4px); }
}

/* ---- Suggestions de départ ---- */
.ftc-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px; flex: none; }
.ftc-chips:not(:empty) { padding-top: 12px; }
.ftc-chip {
  padding: 7px 12px; border-radius: 999px; font-size: 13px; line-height: 1.3;
  color: var(--navy); background: var(--white); border: 1px solid var(--border);
  transition: background .15s ease, border-color .15s ease;
}
.ftc-chip:hover { background: var(--light-bg); border-color: var(--cyan); }

/* ---- Saisie ---- */
.ftc-form {
  display: flex; align-items: flex-end; gap: 9px; flex: none;
  padding: 13px 14px 9px; background: var(--white);
}
.ftc-input {
  flex: 1; resize: none; max-height: 128px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--text);
  background: var(--light-bg); border: 1px solid var(--border); border-radius: 13px;
  transition: border-color .15s ease;
}
.ftc-input:focus { outline: none; border-color: var(--cyan); }
.ftc-send {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan); color: var(--navy); transition: background .15s ease;
}
.ftc-send:hover:not(:disabled) { background: var(--cyan-dark); }
.ftc-send:disabled { opacity: .45; cursor: default; }
.ftc-send svg { width: 19px; height: 19px; }

.ftc-note {
  flex: none; padding: 0 16px 13px; margin: 0;
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.ftc-note a { color: var(--blue-gray); border-bottom: 1px solid var(--border); }
.ftc-note a:hover { color: var(--cyan-dark); }

/* ---- Mobile : le CTA collant occupe déjà le bas de l'écran ---- */
@media (max-width: 768px) {
  .ftc-bubble { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  .ftc-panel {
    right: 12px; left: 12px; width: auto;
    bottom: calc(148px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 200px);
  }
}

/* Rien ne s'empile au-dessus de la bannière de consentement. */
body.consent-pending .ftc-bubble,
body.consent-pending .ftc-panel { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .ftc-panel, .ftc-bubble { transition: none; }
  .ftc-wait span { animation: none; opacity: .55; }
}
