/* =========================================================
   KIPTOO — Landing page
   Palette prolongée des tokens de l'application
   (angular20-kiptoo-business-app/src/styles/_tokens.scss)
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marque (identiques à l'application) */
  --petrol: #0F4C5C;
  --petrol-600: #12667A;
  --petrol-700: #0B3B48;
  --petrol-900: #082E37;
  --petrol-50: #E8F1F4;
  --cyan: #1BAFCB;
  --cyan-ink: #0E7C93;      /* cyan assombri pour texte sur fond clair (AA) */
  --sun: #F2C230;           /* jaune de la barre supérieure de l'application */
  --sun-soft: #FDF3D3;

  /* Fonds chaleureux */
  --paper: #FBFAF6;
  --sand: #F3EFE6;
  --white: #FFFFFF;
  --line: #E4E1D8;
  --line-cool: #E4E9EF;

  /* Texte */
  --ink: #0E1B26;
  --muted: #4E5B68;
  --soft: #6A7785;

  /* Statuts (repris de l'application) */
  --st-success: #128A5B; --st-success-bg: #E4F5EC;
  --st-info: #1E6FD9;    --st-info-bg: #E3EEFB;
  --st-warn: #8A5A12;    --st-warn-bg: #FBF1DC;
  --st-purple: #6B4FBB;  --st-purple-bg: #EDE7FA;
  --st-neutral: #55616E; --st-neutral-bg: #EEF1F4;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(15, 30, 50, .06);
  --shadow: 0 10px 30px rgba(15, 30, 50, .09);
  --shadow-lg: 0 30px 60px -20px rgba(11, 59, 72, .35);

  --gutter: 16px;
  --max: 1180px;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol-600); text-underline-offset: 3px; }
a:hover { color: var(--petrol); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.015em; font-variation-settings: "opsz" 96; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--petrol-700); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); border-radius: 2px; }
.eyebrow-light { color: #8FD9E8; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .94rem; }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-ghost:hover { background: var(--petrol-50); color: var(--petrol-700); }
.btn-accent { background: var(--sun); color: var(--petrol-900); }
.btn-accent:hover { background: #E5B31B; color: var(--petrol-900); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .9);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15, 30, 50, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol-700); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 750; letter-spacing: .06em; font-size: 1.05rem; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }

.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 500; font-size: .96rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--sand); color: var(--petrol-700); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--petrol-700); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 961px) {
  .site-nav { display: flex; align-items: center; gap: 18px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; margin-bottom: 12px; }
  .site-nav a:not(.btn) { padding: 12px 8px; border-radius: 8px; font-size: 1.05rem; }
  .site-nav .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); margin-bottom: 16px; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-head-light h2 { color: #fff; }
.section-head-light > p:not(.eyebrow) { color: #C6D7DD; }
.section-head-light .eyebrow { color: #8FD9E8; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 80%;
  background: radial-gradient(closest-side, rgba(27, 175, 203, .13), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; align-items: center; position: relative; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; } .hero { padding: 80px 0 112px; } }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4rem); margin-bottom: 22px; color: var(--petrol-900); }
.thread-word {
  white-space: nowrap; padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10 C 40 2, 70 15, 110 8 S 180 2, 220 9 S 280 13, 298 5' fill='none' stroke='%23F2C230' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% .32em no-repeat;
}
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .94rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--petrol-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F4C5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Visuel hero : fenêtre gestionnaire + téléphone occupant */
.hero-visual { position: relative; padding: 0 0 40px 0; }
@media (min-width: 600px) { .hero-visual { padding: 0 0 56px 168px; } }
.mock-window {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-cool); overflow: hidden; font-size: 13px; line-height: 1.45;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--petrol-700); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #BFD3DA; letter-spacing: .02em; }
.mock-body { padding: 18px 18px 20px; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tk-ref { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--soft); }
.tk-title { font-weight: 650; font-size: 15.5px; color: var(--ink); }
.tk-loc { color: var(--soft); font-size: 12.5px; }
.tk-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 16px; }
.tk-steps li { font-size: 10.5px; color: var(--soft); padding-top: 8px; border-top: 3px solid var(--line-cool); }
.tk-steps li.done { border-color: var(--cyan); color: var(--petrol); }
.tk-steps li.current { border-color: var(--sun); color: var(--ink); font-weight: 650; }
.tk-cols { display: grid; gap: 14px; }
@media (min-width: 480px) { .tk-cols { grid-template-columns: 1fr 1.15fr; } }
.tk-meta { margin: 0; display: grid; gap: 8px; }
.tk-meta div { display: grid; gap: 1px; }
.tk-meta dt { font-size: 11px; color: var(--soft); }
.tk-meta dd { margin: 0; font-weight: 550; }
.tk-timeline { list-style: none; border-left: 2px solid var(--line-cool); padding-left: 14px; display: grid; gap: 9px; }
.tk-timeline li { position: relative; color: var(--muted); }
.tk-timeline li::before {
  content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--cyan);
}
.tk-timeline li.now::before { background: var(--sun); border-color: var(--sun); }
.tk-timeline b { color: var(--ink); font-weight: 600; }
.tk-timeline time { display: block; font-size: 11px; color: var(--soft); }

.mock-phone {
  position: absolute; left: 0; bottom: 0; width: 176px;
  background: var(--white); border-radius: 26px; padding: 12px 10px 12px;
  border: 6px solid var(--petrol-900); box-shadow: var(--shadow-lg); font-size: 11.5px; line-height: 1.4;
}
.phone-notch { width: 60px; height: 6px; border-radius: 6px; background: var(--petrol-900); margin: -4px auto 8px; opacity: .85; }
.ph-step { font-size: 10px; font-weight: 600; color: var(--cyan-ink); margin-bottom: 6px; }
.mock-phone img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ph-card { margin-top: -18px; position: relative; background: var(--white); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-cool); }
.ph-label { font-size: 10px; color: var(--soft); }
.ph-value { font-weight: 650; color: var(--ink); }
.ph-hint { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.ph-btn { display: block; text-align: center; background: var(--petrol); color: #fff; border-radius: 999px; padding: 6px; font-weight: 600; }
.ph-link { display: block; text-align: center; margin-top: 6px; font-size: 10px; color: var(--petrol-600); text-decoration: underline; }
.fictive-tag {
  position: absolute; right: 8px; bottom: 0; font-size: 12px; color: var(--soft);
  background: var(--white); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px;
}
@media (max-width: 599px) {
  .mock-phone { position: relative; left: auto; margin: -14px 12px 0 auto; width: 170px; }
  .hero-visual { padding-bottom: 36px; }
  .fictive-tag { left: 0; right: auto; }
}

/* Chips de statut */
.chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-planned { color: var(--st-purple); background: var(--st-purple-bg); }
.chip-progress { color: var(--st-info); background: var(--st-info-bg); }
.chip-assigned { color: var(--petrol-600); background: var(--petrol-50); }
.chip-closed { color: var(--st-success); background: var(--st-success-bg); }
.chip-todo { color: var(--st-warn); background: var(--st-warn-bg); }
.chip-ai { color: var(--petrol-700); background: var(--sun-soft); }

/* ---------- Problèmes ---------- */
.problems { background: var(--white); }
.compare { display: grid; gap: 0; border-top: 1px solid var(--line); }
.compare-row { display: grid; gap: 14px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .compare-row { grid-template-columns: 1fr 1fr; padding: 34px 0; } }
.compare-before h3 { font-family: var(--font-display); font-weight: 520; font-size: 1.4rem; margin-bottom: 8px; color: var(--petrol-900); }
.compare-before p { color: var(--muted); }
.compare-after { position: relative; padding-left: 22px; border-left: 3px solid var(--cyan); align-self: center; }
.after-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan-ink); margin-bottom: 4px; }

/* ---------- Fonctionnement : le fil ---------- */
.how { background: var(--paper); }
.journey { list-style: none; position: relative; display: grid; gap: 28px; }
.journey::before {
  /* le fil */
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--petrol));
  transform-origin: top; transform: scaleY(var(--thread, 1));
}
.j-step { display: grid; grid-template-columns: 46px 1fr; gap: 6px 20px; position: relative; }
.j-node {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 3px solid var(--cyan); color: var(--petrol-700);
  font-weight: 750; font-size: 1.05rem; position: relative; z-index: 1;
}
.j-step:last-child .j-node { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.j-text h3 { font-size: 1.3rem; margin: 6px 0 8px; color: var(--petrol-900); }
.j-text p { color: var(--muted); }
.j-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.role { font-size: .74rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; letter-spacing: .01em; }
.role-occ { background: #E9F6F9; color: #0B6175; }
.role-gest { background: var(--petrol); color: #fff; }
.role-prest { background: var(--sun-soft); color: #6A4A06; }
.role-tech { background: #ECEAF7; color: #4A3796; }
.role-ai { background: var(--white); color: var(--petrol-700); border: 1px dashed var(--cyan-ink); }
.j-control {
  margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--sun-soft); color: #4D3A08 !important; font-size: .95rem;
}
.j-visual { grid-column: 2; }
@media (min-width: 900px) {
  .journey { gap: 18px; }
  .j-step { grid-template-columns: 46px minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 40px; align-items: center; padding: 14px 0; }
  .j-node { grid-row: auto; align-self: start; margin-top: 8px; }
  .j-visual { grid-column: 3; }
}

.mini {
  background: var(--white); border: 1px solid var(--line-cool); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 14px 16px; font-size: 13.5px; line-height: 1.45; max-width: 340px;
}
.mini-label { font-size: 11.5px; color: var(--soft); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.mini-strong { font-weight: 650; color: var(--ink); font-size: 15px; }
.mini-muted { color: var(--muted); }
.mini-actions, .rv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini-btn { display: inline-block; background: var(--petrol); color: #fff; font-weight: 600; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; }
.mini-btn-ghost { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.mini-photo { padding: 8px; position: relative; max-width: 260px; }
.mini-photo img { border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.mini-badge { position: absolute; left: 18px; bottom: 18px; background: rgba(8, 46, 55, .85); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-cool); }
.mini-row span { color: var(--soft); }
.mini-slot { display: flex; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--st-purple-bg); margin-top: 6px; }
.mini-slot time { font-weight: 650; color: var(--st-purple); min-width: 38px; }
.mini-slot small { color: var(--muted); }
.mini-slot-muted { background: var(--paper); color: var(--soft); }
.mini-slot-muted time { color: var(--soft); }
.mini-close .chip { margin-bottom: 8px; }

.fallback {
  margin-top: 48px; display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
}
.fallback-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--petrol-50); color: var(--petrol); }
.fallback h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--petrol-900); }
.fallback p { color: var(--muted); }
@media (min-width: 900px) { .fallback { margin-left: 66px; } }

/* ---------- Fonctionnalités ---------- */
.features { background: var(--white); }
.features-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .features-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .features-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.features-intro h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); margin-bottom: 16px; }
.features-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; }
.features-list { display: grid; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--cyan-ink); line-height: 1.1; }
.feature h3 { font-size: 1.3rem; margin-bottom: 4px; color: var(--petrol-900); }
.feature-why { color: var(--petrol-600); font-weight: 500; margin-bottom: 14px; }
.feature ul { list-style: none; display: grid; gap: 10px; }
.feature li { color: var(--muted); padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--sun); border-radius: 2px; }
.feature li strong { color: var(--ink); font-weight: 600; }

/* ---------- Rôles (onglets) ---------- */
.roles { background: var(--sand); }
.tab-list {
  display: flex; gap: 6px; padding: 6px; background: var(--white); border-radius: 999px; border: 1px solid var(--line);
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] {
  flex: none; border: 0; background: transparent; cursor: pointer; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; font: 600 .96rem var(--font-sans); color: var(--muted);
  transition: background .18s, color .18s;
}
.tab-list [role="tab"]:hover { color: var(--petrol-700); background: var(--paper); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--petrol); color: #fff; }
.tab-panel {
  display: grid; gap: 32px; background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--line);
}
.tab-panel[hidden] { display: none; }
@media (min-width: 860px) { .tab-panel { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 44px; gap: 56px; } }
@media (max-width: 520px) {
  .tab-panel { padding: 22px; }
  .tab-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .tab-list [role="tab"] { padding: 10px 8px; border-radius: 12px; }
}
.tab-panel h3 { font-family: var(--font-display); font-weight: 540; font-size: 1.55rem; color: var(--petrol-900); margin-bottom: 18px; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--petrol-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F4C5C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.role-visual {
  background: var(--paper); border: 1px solid var(--line-cool); border-radius: var(--radius); padding: 18px; font-size: 13.5px;
}
.rv-title { font-weight: 650; color: var(--petrol-900); margin-bottom: 10px; }
.rv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: var(--white); border-radius: 10px; margin-top: 6px; border: 1px solid var(--line-cool); }
.rv-progress { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 11px; color: var(--soft); }
.rv-progress li { border-top: 3px solid var(--line-cool); padding-top: 6px; }
.rv-progress li.done { border-color: var(--cyan); color: var(--petrol); }
.rv-progress li.current { border-color: var(--sun); color: var(--ink); font-weight: 650; }
.rv-note { margin-top: 12px; color: var(--muted); }
.rv-field { font-size: 12px; color: var(--soft); }
.rv-input { margin-top: 4px; background: var(--white); border: 1px solid var(--line-cool); border-radius: 8px; padding: 10px 12px; color: var(--muted); min-height: 64px; }

/* ---------- Aperçu produit ---------- */
.product { background: var(--petrol-700); color: #fff; position: relative; overflow: hidden; }
.product::after {
  content: ""; position: absolute; right: -200px; top: -200px; width: 520px; height: 520px; border-radius: 50%;
  border: 2px solid rgba(27, 175, 203, .25); pointer-events: none;
}
.dash { margin: 0; position: relative; z-index: 1; }
.dash-frame {
  display: grid; grid-template-columns: 170px 1fr; background: #F7F9FB; color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  font-size: 13px; line-height: 1.4;
}
.dash-side { background: var(--petrol-900); padding: 18px 12px; color: #D5E1E6; }
.dash-logo { display: flex; align-items: center; gap: 8px; font-weight: 750; letter-spacing: .05em; color: #fff; margin-bottom: 18px; }
.dash-logo span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: linear-gradient(135deg, var(--cyan), var(--petrol)); }
.dash-nav { padding: 8px 10px; border-radius: 8px; color: #A9C0C8; margin-bottom: 2px; }
.dash-nav.active { background: rgba(27, 175, 203, .18); color: #fff; box-shadow: inset 3px 0 0 var(--cyan); }
.dash-main { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line-cool); border-radius: 12px; padding: 12px 14px; }
.kpi p { color: var(--soft); font-size: 12px; }
.kpi b { font-size: 24px; font-weight: 700; color: var(--petrol-900); }
.dash-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; min-width: 0; }
.dash-table, .dash-chart { background: #fff; border: 1px solid var(--line-cool); border-radius: 12px; padding: 14px; min-width: 0; }
.dash-h { font-weight: 650; margin-bottom: 8px; color: var(--petrol-900); }
.dt-row { display: grid; grid-template-columns: 70px 1.3fr 1fr 92px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-cool); }
.dt-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-row span:first-child { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--soft); }
.dt-head { color: var(--soft); font-size: 11.5px; border-top: 0; }
.bars { display: grid; gap: 10px; margin-top: 6px; }
.bars p { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.bars i { display: block; height: 8px; border-radius: 6px; background: var(--petrol-50); position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, var(--petrol), var(--cyan)); border-radius: 6px; }
[data-callout] { position: relative; }
[data-callout]::before {
  content: attr(data-callout); position: absolute; top: -10px; right: -10px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--petrol-900); font-weight: 750; font-size: 12px; box-shadow: 0 0 0 3px var(--petrol-700);
}
.callouts { list-style: none; counter-reset: c; display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 860px) { .callouts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.callouts li { counter-increment: c; position: relative; padding-left: 38px; color: #C6D7DD; }
.callouts li::before {
  content: counter(c); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--petrol-900); font-weight: 750; font-size: 13px;
}
.callouts b { color: #fff; }
.fictive-note { margin-top: 24px; font-size: .88rem; color: #9DB7C0; }

@media (max-width: 899px) {
  .dash-frame { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .dash-main { padding: 12px; }
  .dt-row { grid-template-columns: 1.2fr 92px; }
  .dt-row span:nth-child(1), .dt-row span:nth-child(3) { display: none; }
  [data-callout]::before { right: 6px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .75fr 1.25fr; gap: 72px; } }
.faq-grid h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); margin-bottom: 14px; }
.faq-grid > div > p:not(.eyebrow) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 620; font-size: 1.1rem; color: var(--petrol-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--petrol-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%230F4C5C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--petrol-600); }
.faq-list details p { color: var(--muted); padding: 0 0 18px; max-width: 680px; }
.faq-list details p + p { margin-top: -6px; }

/* ---------- Conversion ---------- */
.cta { background: var(--petrol); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 24px; height: 120px; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C 200 10, 380 120, 600 60 S 1000 10, 1200 70' fill='none' stroke='%231BAFCB' stroke-width='2'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cta-grid { display: grid; gap: 40px; position: relative; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem); margin-bottom: 18px; color: #fff; }
.cta-copy > p:not(.eyebrow) { color: #CFE0E5; font-size: 1.08rem; }
.cta-list { list-style: none; display: grid; gap: 12px; margin: 26px 0; }
.cta-list li { position: relative; padding-left: 30px; color: #E6F0F2; }
.cta-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 18px; height: 2px; background: var(--sun); border-radius: 2px; }
.cta-contact { color: #CFE0E5; }
.cta-contact a { color: #fff; }

.demo-form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
@media (min-width: 600px) { .demo-form { padding: 36px; } }
.form-title { font-size: 1.3rem; color: var(--petrol-900); margin-bottom: 4px; }
.form-required { font-size: .9rem; color: var(--soft); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  background: var(--paper); border: 1.5px solid #CBD3DC; border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--petrol-600); background: #fff; box-shadow: 0 0 0 4px rgba(27, 175, 203, .22); }
.field [aria-invalid="true"] { border-color: #C43E1C; background: #FFF8F6; }
.field-hint { font-size: .86rem; color: var(--soft); margin-top: 6px; }
.field-error { font-size: .88rem; color: #B2361A; margin-top: 6px; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: .86rem; color: var(--soft); margin: 4px 0 18px; }
.form-status:not(:empty) { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.is-warning { background: var(--st-warn-bg); color: #5E3E0A; border: 1px solid #EBD39E; }
.form-status.is-error { background: #FBE5DE; color: #8E2B13; border: 1px solid #F0C2B3; }
.form-status.is-success { background: var(--st-success-bg); color: #0C5E3E; border: 1px solid #B8E2CC; }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-900); color: #A9C0C8; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-tag { margin-top: 14px; max-width: 320px; }
.footer-h { color: #fff; font-weight: 650; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:not(.brand) { color: #CFE0E5; text-decoration: none; }
.site-footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #86A2AC; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .journey::before { transform: none; }
}

/* ---------- Ajustements du 17/11/2026 ---------- */
/* En-tête réduit au bouton de démonstration */
.header-cta .cta-short { display: none; }
@media (max-width: 480px) {
  .header-cta .cta-long { display: none; }
  .header-cta .cta-short { display: inline; }
}
/* Onglets réduits à leur titre */
.tab-panel.tab-panel-title { display: block; }
.tab-panel.tab-panel-title[hidden] { display: none; }
.tab-panel-title h3 { margin-bottom: 0; }

/* ---------- Pages légales (23/11/2026) ---------- */
.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem); color: var(--petrol-900); margin-bottom: 10px; }
.legal-updated { color: var(--soft); font-size: .95rem; margin-bottom: 36px; }
.legal-intro { font-size: 1.1rem; color: var(--ink); }
.legal section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.legal h2 { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 650; letter-spacing: -.005em; color: var(--petrol-900); margin-bottom: 14px; }
.legal p, .legal li, .legal td { color: var(--muted); }
.legal p + p, .legal p + .legal-list, .legal .legal-list + p, .legal .legal-table-wrap + p, .legal p + .legal-table-wrap, .legal p + .legal-facts { margin-top: 12px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-list { list-style: none; display: grid; gap: 8px; }
.legal-list li { position: relative; padding-left: 20px; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; background: var(--sun); border-radius: 2px; }
.legal-facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.legal-facts div { display: grid; gap: 2px 20px; padding: 12px 18px; border-top: 1px solid var(--line); }
.legal-facts div:first-child { border-top: 0; }
.legal-facts dt { font-size: .9rem; color: var(--soft); }
.legal-facts dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) { .legal-facts div { grid-template-columns: 220px 1fr; } }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.legal-table th { text-align: left; font-size: .85rem; font-weight: 650; color: var(--petrol-700); background: var(--sand); padding: 12px 16px; }
.legal-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.legal-toc { margin: 30px 0 0; padding: 20px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-toc-title { font-weight: 650; color: var(--petrol-900) !important; margin-bottom: 8px; }
.legal-toc ol { padding-left: 1.3em; display: grid; gap: 4px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
@media (min-width: 860px) { .footer-grid-legal { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer a[aria-current="page"] { color: #fff; }
@media (max-width: 639px) {
  .legal-table-wrap { overflow: visible; border: 0; background: none; }
  .legal-table { min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; }
  .legal-table tr + tr { margin-top: 10px; }
  .legal-table td { border: 0; padding: 6px 16px; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 650; color: var(--petrol-700); }
}
