/* ==========================================================================
   Nexia — site vitrine
   Charte « Sceau » (nexia/brand/README.md) : vermillon pour la marque et les
   aplats, sarcelle pour le produit, IBM Plex. Couleurs des barres du planning
   reprises des jetons de l'application (status-tokens.scss).
   ========================================================================== */

:root {
  --vermillion: #e5483f;          /* la marque, les aplats — jamais de texte courant */
  --cta: #cc3a31;                 /* fond des boutons : blanc à 5,0:1 */
  --cta-hover: #b8342d;           /* 5,9:1 */
  --vermillion-on-dark: #ff6b5e;  /* sur fond sombre : 5,7:1 */
  --vermillion-soft: #fdf0ee;

  --teal-950: #071918;
  --teal-900: #0c2625;
  --teal-800: #153e3c;
  --teal-700: #1a6560;
  --teal-600: #1c7d76;
  --teal-500: #279a90;
  --teal-300: #7bd4cb;
  --teal-100: #d8f3f0;
  --teal-50: #effaf8;

  --sand: #f3ece1;
  --sand-deep: #e8dcc8;
  --rose: #fbe9e6;
  --indigo-soft: #ecefff;

  --canvas: #f7f6f2;
  --canvas-alt: #efede6;
  --surface: #ffffff;
  --ink: #141413;
  --ink-700: #33393b;
  --ink-500: #5c686d;            /* texte discret : 5,3:1 sur la toile */
  --on-dark: #ffffff;
  --on-dark-muted: #b9cbc9;
  --hairline: rgba(20, 20, 19, 0.09);
  --hairline-strong: rgba(20, 20, 19, 0.16);

  --good: #15803d;
  --good-bg: #dcfce7;
  --amber: #8a5209;
  --amber-bg: #fdf0dc;

  /* Barres du planning, comme dans l'application */
  --resv-confirmed-bg: #e4e8fb;
  --resv-confirmed-fg: #33409b;
  --resv-confirmed-accent: #4c5bd4;
  --resv-in-bg: #1c7d76;
  --resv-in-fg: #ffffff;
  --resv-in-accent: #12564f;
  --resv-pending-bg: #fdf0dc;
  --resv-pending-fg: #8a5209;
  --resv-pending-accent: #d9880f;
  --resv-group-bg: #f4e6ef;
  --resv-group-fg: #6e2a55;
  --resv-group-accent: #a4508a;

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-arabic: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-card: 0 1px 2px rgba(7, 25, 24, 0.04), 0 10px 30px -14px rgba(7, 25, 24, 0.14);
  --shadow-float: 0 30px 70px -24px rgba(7, 25, 24, 0.34), 0 6px 18px rgba(7, 25, 24, 0.08);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --container: 1240px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 6px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow--on-dark { color: var(--teal-300); }

/* Le mot mis en valeur dans un titre : l'italique d'IBM Plex Serif, comme la marque */
h1 em, h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  letter-spacing: -0.01em; color: var(--teal-600);
}
.section--dark h2 em, .hero__title em, .pioneer h2 em, .demo h2 em { color: var(--teal-300); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px -10px rgba(204, 58, 49, 0.7); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--link { background: none; color: var(--teal-300); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Annonce & en-tête
   -------------------------------------------------------------------------- */
.announce { background: var(--teal-950); color: var(--on-dark); font-size: 14px; }
.announce__link {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 16px; text-decoration: none; text-align: center;
}
.announce__tag {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--vermillion-on-dark); border: 1px solid rgba(255, 107, 94, 0.45); border-radius: 999px; padding: 2px 10px; flex: none;
}
.announce__arrow { transition: transform .2s var(--ease); }
.announce__short { display: none; }
.announce__link:hover .announce__arrow { transform: translateX(4px); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); background: rgba(255, 255, 255, 0.9); }
.site-header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: 1400px; }
.site-header__brand img { height: 32px; width: auto; }
.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav__link {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-700);
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.site-nav__link:hover, .site-nav__link.is-current { background: rgba(20, 20, 19, 0.06); color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hairline-strong); background: var(--surface); padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Héros
   -------------------------------------------------------------------------- */
.hero { padding: 20px 0 56px; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr); gap: 20px;
  max-width: 1400px;
}
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  min-height: 640px; padding: 56px 52px;
  border-radius: var(--radius-xl); color: var(--on-dark);
  background:
    radial-gradient(120% 70% at 0% 100%, rgba(39, 154, 144, 0.35), transparent 60%),
    radial-gradient(80% 60% at 100% 0%, rgba(229, 72, 63, 0.18), transparent 60%),
    var(--teal-900);
}
/* Un zellige discret : l'étoile à huit branches, en filigrane */
.hero__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(140deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(140deg, transparent 35%, #000 100%);
}
.hero__title { font-size: clamp(2.6rem, 4.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--on-dark-muted); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(123, 212, 203, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237bd4cb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero__stage { display: flex; flex-direction: column; min-width: 0; }
.stage {
  position: relative; flex: 1; min-height: 560px; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 44px 0 86px 44px;
  display: flex; align-items: center;
}
.stage__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(229, 72, 63, 0.16), transparent 70%),
    radial-gradient(70% 70% at 10% 90%, rgba(39, 154, 144, 0.28), transparent 70%),
    linear-gradient(160deg, var(--sand) 0%, #f1e7d6 40%, var(--teal-100) 100%);
}
.stage__backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(12, 38, 37, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}

.app-window {
  position: relative; width: 100%; margin-right: -2px;
  background: var(--surface); border-radius: 16px 0 0 16px;
  box-shadow: var(--shadow-float); overflow: hidden;
  border: 1px solid rgba(12, 38, 37, 0.1); border-right: 0;
}
.app-window__chrome {
  display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 16px;
  background: #f4f5f4; border-bottom: 1px solid var(--hairline);
  font-size: 12px; color: var(--ink-500);
}
.app-window__dots { display: flex; gap: 6px; }
.app-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d9d8; }
.app-window__dots i:first-child { background: var(--vermillion); }
.app-window__url { font-family: var(--font-mono); font-size: 11.5px; background: #fff; border: 1px solid var(--hairline); padding: 2px 10px; border-radius: 999px; }
.app-window__hotel { margin-left: auto; font-weight: 600; color: var(--ink-700); white-space: nowrap; }
.app-window__viewport { position: relative; width: 100%; aspect-ratio: 760 / 476; overflow: hidden; }
.app-window__screen {
  position: absolute; top: 0; left: 0; width: 760px; height: 476px;
  transform-origin: 0 0; transform: scale(var(--scale, 1));
  font-size: 11px; line-height: 1.35; color: var(--ink);
}

.stage__chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.94); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow-float); font-size: 14px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.stage__chip small { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.stage__chip--left { left: 16px; bottom: 104px; }
.stage__chip-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(21, 128, 61, .5); animation: ping 2s infinite; flex: none; }

.scene-tabs {
  display: flex; align-items: center; gap: 6px;
  margin: -66px auto 0; position: relative; z-index: 4; max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.92); padding: 6px; border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(7, 25, 24, .35); scrollbar-width: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.scene-tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.scene-tabs__list::-webkit-scrollbar { display: none; }
.scene-tab {
  position: relative; overflow: hidden; flex: none;
  border: 0; background: transparent; border-radius: 999px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--ink-700); transition: background-color .25s, color .25s;
}
.scene-tab span { position: relative; z-index: 1; }
.scene-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--teal-300); }
.scene-tab:hover { background: rgba(20, 20, 19, 0.06); }
.scene-tab.is-active { background: var(--teal-900); color: #fff; }
.scene-tab.is-active i { animation: tab-progress var(--scene-duration, 9s) linear forwards; }
.scene-tabs.is-paused .scene-tab.is-active i { animation-play-state: paused; }
.scene-pause {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline-strong);
  background: #fff; display: grid; place-items: center; margin-left: 4px;
}
.scene-pause svg { width: 16px; height: 16px; fill: var(--ink); }
.scene-pause__play, .scene-pause[aria-pressed="true"] .scene-pause__pause { display: none; }
.scene-pause[aria-pressed="true"] .scene-pause__play { display: block; }
.stage__caption { text-align: center; font-size: 12.5px; color: var(--ink-500); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Scènes : l'application redessinée (unités à l'échelle de 760 × 476)
   -------------------------------------------------------------------------- */
.scene {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
  background: #fbfbfa;
}
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }

.mock-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.mock-top__right { display: flex; align-items: center; gap: 10px; }
.mock-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.mock-sub { font-size: 10.5px; color: var(--ink-500); margin-top: 2px; }
.mock-button { background: var(--teal-600); color: #fff; font-weight: 600; font-size: 10.5px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.mock-button--ghost { background: #fff; color: var(--teal-700); border: 1px solid var(--hairline-strong); }
.kpi-pill { display: flex; align-items: baseline; gap: 8px; background: var(--teal-50); border: 1px solid var(--teal-100); padding: 6px 12px; border-radius: 999px; font-size: 10px; color: var(--teal-700); }
.kpi-pill strong { font-size: 15px; color: var(--teal-900); font-variant-numeric: tabular-nums; }
.kpi-pill--light { background: #fff; border-color: var(--hairline); }

/* Planning */
.tape { margin: 0 18px; background: #fff; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.tape__head, .tape__row { position: relative; padding-left: 78px; }
.tape__head { display: grid; grid-template-columns: repeat(10, 1fr); height: 34px; border-bottom: 1px solid var(--hairline); background: #fafafa; }
.tape__head span { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 8.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); border-left: 1px solid rgba(20,20,19,.05); }
.tape__head span b { font-size: 11.5px; color: var(--ink); letter-spacing: 0; }
.tape__head span.is-weekend { background: rgba(39, 154, 144, 0.07); }
.tape__corner { position: absolute; left: 0; top: 0; bottom: 0; width: 78px; display: flex !important; align-items: flex-start !important; padding-left: 12px; font-weight: 700; text-transform: none !important; font-size: 10.5px !important; color: var(--ink) !important; border-left: 0 !important; }
.tape__row {
  height: 30px; border-bottom: 1px solid rgba(20, 20, 19, 0.05);
  background-image: linear-gradient(90deg,
    transparent calc(78px + (100% - 78px) * 0.4),
    rgba(39, 154, 144, 0.05) calc(78px + (100% - 78px) * 0.4) calc(78px + (100% - 78px) * 0.6),
    transparent calc(78px + (100% - 78px) * 0.6));
}
.tape__row:last-child { border-bottom: 0; }
.room { position: absolute; left: 0; top: 0; bottom: 0; width: 78px; display: flex; align-items: center; gap: 4px; padding-left: 12px; font-weight: 700; font-size: 11px; }
.room small { font-size: 8px; font-weight: 600; color: var(--ink-500); background: #f1f2f1; border-radius: 4px; padding: 1px 4px; }
.hk { width: 7px; height: 7px; border-radius: 50%; margin-left: 2px; transition: background-color .4s, box-shadow .4s; }
.hk--clean { background: #2bb673; }
.hk--dirty { background: #e2a33b; }
.hk--dirty.is-swapped { background: #2bb673; box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.25); }

.bar {
  position: absolute; top: 4.5px; height: 21px;
  left: calc(78px + (100% - 78px) * (var(--s) - 1) / 10 + 2px);
  width: calc((100% - 78px) * var(--n) / 10 - 4px);
  display: flex; align-items: center; gap: 4px; padding: 0 7px;
  border-radius: 6px; border-left: 3px solid; font-size: 9.6px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: 0 50%;
  transition: background-color .5s, color .5s, border-color .5s, width .9s var(--ease);
}
.bar--confirmed { background: var(--resv-confirmed-bg); color: var(--resv-confirmed-fg); border-color: var(--resv-confirmed-accent); }
.bar--in { background: var(--resv-in-bg); color: var(--resv-in-fg); border-color: var(--resv-in-accent); }
.bar--pending { background: var(--resv-pending-bg); color: var(--resv-pending-fg); border-color: var(--resv-pending-accent); }
.bar--group { background: var(--resv-group-bg); color: var(--resv-group-fg); border-color: var(--resv-group-accent); }
.bar__key { display: none; font-size: 9px; }
.bar--confirmed.is-swapped { background: var(--resv-in-bg); color: var(--resv-in-fg); border-color: var(--resv-in-accent); }
.bar--confirmed.is-swapped .bar__key { display: inline; }
.bar--grow.is-grown { width: calc((100% - 78px) * var(--n2) / 10 - 4px); }

/* Une réservation qui arrive : la barre se déroule depuis le jour d'arrivée */
.bar--new { opacity: 0; transform: scaleX(0.04); }
.bar--new.is-in { opacity: 1; transform: scaleX(1); transition: transform .8s var(--spring), opacity .25s, background-color .5s; animation: bar-flash 1.6s .35s ease-out 1; }

.toasts { position: absolute; right: 18px; bottom: 12px; width: 300px; height: 64px; pointer-events: none; }
.toast {
  position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--hairline);
  box-shadow: 0 16px 34px -14px rgba(7, 25, 24, .35);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.toast.is-shown { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 10.5px; }
.toast span { display: block; font-size: 9.5px; color: var(--ink-500); }
.toast__icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; flex: none; }
.toast__icon--blue { background: var(--resv-confirmed-bg); color: var(--resv-confirmed-fg); }
.toast__icon--violet { background: var(--resv-group-bg); color: var(--resv-group-fg); }
.toast__icon--teal { background: var(--teal-100); color: var(--teal-700); }
.toast__icon--green { background: var(--good-bg); color: var(--good); }

/* Aujourd'hui */
.today-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 18px; }
.tile { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.tile span { font-size: 10.5px; color: var(--ink-500); font-weight: 600; }
.tile strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.tile--good { background: var(--teal-50); border-color: var(--teal-100); }
.tile--good strong { color: var(--teal-700); }
.today-body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; padding: 12px 18px 0; }
.today-list { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.today-list__head, .today-row { display: grid; grid-template-columns: 40px 1.4fr .8fr 1.1fr; align-items: center; padding: 0 12px; }
.today-list__head { height: 30px; font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); background: #fafafa; border-bottom: 1px solid var(--hairline); }
.today-row { height: 52px; border-bottom: 1px solid rgba(20,20,19,.05); font-size: 11px; }
.today-row:last-child { border-bottom: 0; }
.today-row b { font-size: 12.5px; }
.status { position: relative; display: inline-grid; justify-self: start; }
.status em { grid-area: 1 / 1; }
.status em, .status--ok { font-style: normal; font-size: 9.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; transition: opacity .35s, transform .45s var(--spring); white-space: nowrap; }
.status em:first-child { background: var(--teal-50); color: var(--teal-700); }
.status em:last-child { background: var(--good-bg); color: var(--good); opacity: 0; transform: scale(.7); }
.status.is-swapped em:first-child { opacity: 0; }
.status.is-swapped em:last-child { opacity: 1; transform: none; }
.status--ok { justify-self: start; background: var(--teal-50); color: var(--teal-700); }
.glance { background: var(--teal-900); color: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.glance__title { font-weight: 700; font-size: 12px; }
.ring { position: relative; width: 112px; height: 112px; align-self: center; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__track { stroke: rgba(255,255,255,.12); }
.ring__value { stroke: var(--teal-300); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 * (1 - var(--p, 0) / 100)); transition: stroke-dashoffset 1s var(--ease); }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.ring__label strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ring__label span { font-size: 9px; font-weight: 500; color: var(--on-dark-muted); }
.glance__line { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--on-dark-muted); }
.glance__line b { margin-left: auto; color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--green { background: #2bb673; }
.dot--amber { background: #e2a33b; }
.banner-ok {
  background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 10px; border-radius: 10px; padding: 8px 10px;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .6s var(--spring);
}
.banner-ok.is-in { opacity: 1; transform: none; }

/* Rapports */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 18px; }
.kpi { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; }
.kpi > span { font-size: 10px; color: var(--ink-500); font-weight: 600; }
.kpi strong { font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi strong b { font-weight: 700; }
.up { font-style: normal; align-self: flex-start; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 9.5px; border-radius: 999px; padding: 2px 8px; }
.charts { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; padding: 10px 18px 0; }
.chart { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-bottom: 6px; }
.chart__head span { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ink-500); }
.leg { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.leg--now { background: var(--teal-600); }
.leg--before { background: repeating-linear-gradient(90deg, #a3adb0 0 4px, transparent 4px 7px); }
.chart__svg { width: 100%; height: 200px; overflow: visible; }
.chart__svg .grid { stroke: rgba(20,20,19,.07); stroke-width: 1; }
.line-before { fill: none; stroke: #a3adb0; stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.line-now { fill: none; stroke: var(--teal-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.area-now { fill: rgba(39, 154, 144, 0.14); opacity: 0; transition: opacity .8s .6s; }
.scene.is-active .line-now { animation: draw 2.2s var(--ease) .2s forwards; }
.scene.is-active .area-now { opacity: 1; }
.chart--side { display: flex; flex-direction: column; gap: 8px; }
.gain { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f8faf9; border: 1px solid rgba(20,20,19,.05); opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .6s var(--spring); }
.gain.is-in { opacity: 1; transform: none; }
.gain span { font-size: 9.5px; color: var(--ink-500); font-weight: 600; }
.gain b { font-size: 14px; grid-row: 2; }
.gain .up { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* Caisse */
.cash-list { display: flex; flex-direction: column; gap: 8px; padding: 0 18px; }
.cash-row {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 14px; font-size: 11.5px;
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .6s var(--spring);
}
.cash-row.is-in { opacity: 1; transform: none; }
.cash-row small { display: block; color: var(--ink-500); font-size: 9.5px; margin-top: 2px; }
.cash-row b { font-size: 13px; font-variant-numeric: tabular-nums; }
.method { font-style: normal; font-weight: 700; font-size: 9.5px; text-align: center; border-radius: 999px; padding: 4px 6px; background: var(--good-bg); color: var(--good); }
.method--card { background: var(--resv-confirmed-bg); color: var(--resv-confirmed-fg); }
.method--transfer { background: var(--teal-100); color: var(--teal-700); }
.method--fnb { background: var(--amber-bg); color: var(--amber); }
.cash-close {
  margin: 12px 18px 0; display: flex; align-items: center; gap: 12px;
  background: var(--teal-900); color: #fff; border-radius: 14px; padding: 13px 16px;
  opacity: 0; transform: scale(.96); transition: opacity .4s, transform .6s var(--spring);
}
.cash-close.is-in { opacity: 1; transform: none; }
.cash-close strong { display: block; font-size: 13px; }
.cash-close span { font-size: 10px; color: var(--on-dark-muted); }
.cash-close__ok { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2bb673; font-weight: 700; flex: none; }

/* Ménage */
.hk-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 22px 30px; height: 100%; align-items: center; }
.phone { position: relative; height: 420px; border-radius: 30px; background: #fff; border: 6px solid #1d2423; padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 40px -20px rgba(7,25,24,.45); }
.phone__notch { position: absolute; top: 8px; left: 50%; width: 64px; height: 14px; margin-left: -32px; border-radius: 999px; background: #1d2423; }
.phone__title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.phone__row { display: flex; justify-content: space-between; align-items: center; background: #f6f7f6; border-radius: 12px; padding: 11px 12px; font-size: 13px; }
.chip { display: inline-grid; }
.chip em, .chip--done { grid-area: 1 / 1; font-style: normal; font-weight: 700; font-size: 10px; border-radius: 999px; padding: 4px 10px; transition: opacity .35s, transform .5s var(--spring); }
.chip em:first-child { background: var(--amber-bg); color: var(--amber); }
.chip em:last-child, .chip--done { background: var(--good-bg); color: var(--good); }
.chip em:last-child { opacity: 0; transform: scale(.6); }
.chip.is-swapped em:first-child { opacity: 0; }
.chip.is-swapped em:last-child { opacity: 1; transform: none; }
.hk-board { display: flex; flex-direction: column; gap: 14px; }
.hk-big { display: flex; align-items: baseline; gap: 8px; }
.hk-big strong { font-size: 72px; line-height: 1; letter-spacing: -0.04em; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.hk-big span { font-size: 15px; color: var(--ink-500); }
.hk-progress { height: 12px; border-radius: 999px; background: #e9eceb; overflow: hidden; }
.hk-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: linear-gradient(90deg, var(--teal-500), #2bb673); border-radius: inherit; transition: width .8s var(--ease); }
.hk-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-700); }
.hk-note .dot { margin-top: 5px; }
.hk-board .banner-ok { font-size: 13px; padding: 12px 14px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 112px 0; }
.section--alt { background: var(--canvas-alt); }
.section--dark { background: var(--teal-950); color: var(--on-dark); }
.section-head { max-width: 820px; margin-bottom: 52px; display: flex; flex-direction: column; gap: 16px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head__lead { font-size: 18px; color: var(--ink-500); max-width: 40em; }
.section-head--on-dark .section-head__lead { color: var(--on-dark-muted); }
.section-head--row { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head--row .section-head__lead { max-width: 28em; }
.section-head--tight { margin: 88px 0 36px; }

/* Apparition au défilement */
/* Seulement quand le script tourne : sans lui, tout reste visible */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Repères chiffrés : lisibles d'un coup d'œil, sans rien qui défile */
.proof { background: var(--surface); border-bottom: 1px solid var(--hairline); }
.proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__item { display: flex; flex-direction: column; gap: 6px; padding: 34px 28px; border-left: 1px solid var(--hairline); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item b { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--teal-700); }
.proof__item span { font-size: 15px; color: var(--ink-700); line-height: 1.45; max-width: 16em; }

/* Plateforme : grille de cartes */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 30px; border-radius: var(--radius-lg); min-height: 300px;
  border: 1px solid var(--hairline); transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--ink-700); font-size: 15.5px; line-height: 1.5; }
.card__kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-700) !important; }
.card__kicker--on-dark { color: var(--teal-300) !important; }
.card__badge { align-self: flex-start; margin-top: auto; background: #fff; border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.card--wide { grid-column: span 2; flex-direction: row; gap: 32px; align-items: stretch; }
.card--wide .card__text { flex: 1 1 46%; display: flex; flex-direction: column; gap: 12px; }
.card--teal { background: var(--teal-50); }
.card--sand { background: var(--sand); }
.card--rose { background: var(--rose); }
.card--indigo { background: var(--indigo-soft); }
.card--white { background: var(--surface); }
.card--dark { background: var(--teal-900); color: #fff; border-color: transparent; }
.card--dark p { color: var(--on-dark-muted); }
.stat-line { margin-top: auto; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.7); border: 1px solid var(--hairline); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.stat-line .up { font-size: 13px; }
.card .up { font-size: 12.5px; padding: 3px 10px; }
.pills { margin-top: auto; display: flex; gap: 8px; }
.pills span { font-family: var(--font-mono); font-size: 13px; font-weight: 600; background: #fff; border-radius: 999px; padding: 5px 12px; border: 1px solid var(--hairline); }

.mini-tape {
  flex: 1 1 54%; position: relative; align-self: center; min-height: 190px;
  display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(5, 30px); gap: 8px 0;
  background: #fff; border-radius: 16px; border: 1px solid var(--hairline); padding: 16px 10px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(20,20,19,.05) calc(10% - 1px) 10%);
  background-origin: content-box; background-clip: content-box;
}
.mt { grid-row: var(--r); grid-column: var(--s) / span var(--n); margin: 0 3px; border-radius: 7px; background: var(--resv-confirmed-bg); border-left: 3px solid var(--resv-confirmed-accent); transform-origin: 0 50%; }
.mt--in { background: var(--resv-in-bg); border-left-color: var(--resv-in-accent); }
.mt--new { animation: mt-loop 7s var(--ease) infinite; }
.mt--d2 { animation-delay: 1.2s; }
.mt--d3 { animation-delay: 2.4s; }

.invoice { margin-top: auto; background: #fff; border-radius: 14px; border: 1px solid var(--hairline); padding: 14px 16px; font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 24px -18px rgba(7,25,24,.3); }
.invoice__head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12.5px; }
.invoice__line { display: flex; justify-content: space-between; border-top: 1px dashed var(--hairline-strong); padding-top: 7px; color: var(--ink-700); }
.invoice__line span:last-child { font-weight: 600; color: var(--teal-700); }
.invoice__foot { font-size: 11.5px; color: var(--ink-500); }

.mini-report { flex: 1 1 54%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 12px; }
.mini-report__kpi { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.mini-report__kpi span { font-size: 13px; color: var(--on-dark-muted); }
.mini-report__kpi b { font-size: 24px; letter-spacing: -0.02em; }
.mini-report__kpi em { font-weight: 700; font-size: 13px; color: #6ee7a8; }
.mini-report__bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 8px; height: 130px; padding: 12px 14px 0; border-radius: 14px; background: rgba(255,255,255,.04); }
.mini-report__bars i { flex: 1; height: 4%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--teal-300), var(--teal-600)); transition: height 1s var(--ease); }
.mini-report__bars i:last-child { background: linear-gradient(180deg, #ff9b8f, var(--vermillion)); }
.is-visible .mini-report__bars i { height: calc(var(--h) * 1%); }
.is-visible .mini-report__bars i:nth-child(2) { transition-delay: .05s; } .is-visible .mini-report__bars i:nth-child(3) { transition-delay: .1s; }
.is-visible .mini-report__bars i:nth-child(4) { transition-delay: .15s; } .is-visible .mini-report__bars i:nth-child(5) { transition-delay: .2s; }
.is-visible .mini-report__bars i:nth-child(6) { transition-delay: .25s; } .is-visible .mini-report__bars i:nth-child(7) { transition-delay: .3s; }
.is-visible .mini-report__bars i:nth-child(8) { transition-delay: .35s; } .is-visible .mini-report__bars i:nth-child(9) { transition-delay: .4s; }
.is-visible .mini-report__bars i:nth-child(10) { transition-delay: .45s; }

.mini-list { margin-top: auto; display: flex; flex-direction: column; gap: 6px; background: rgba(255,255,255,.75); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px; }
.mini-list li { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; padding: 4px 4px; }
.mini-list li b { font-variant-numeric: tabular-nums; }
.mini-list .method { font-size: 11px; }
.mini-list__total { grid-template-columns: 1fr auto !important; border-top: 1px dashed var(--hairline-strong); padding-top: 9px !important; margin-top: 2px; font-weight: 600; }
.police { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.police__doc { display: flex; align-items: center; gap: 12px; background: var(--canvas); border-radius: 14px; padding: 12px 14px; }
.police__doc b { display: block; font-size: 14px; }
.police__doc span { font-size: 13px; color: var(--ink-500); }
.police__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-100); color: var(--teal-700) !important; font-size: 18px !important; flex: none; }
.police__state { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.mini-phone { margin-top: auto; align-self: center; width: min(230px, 100%); display: flex; flex-direction: column; gap: 6px; background: #fff; border: 5px solid #1d2423; border-radius: 22px; padding: 14px 10px 10px; box-shadow: 0 16px 30px -18px rgba(7,25,24,.5); }
.mini-phone span { display: flex; justify-content: space-between; align-items: center; background: #f5f6f8; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.mini-phone em { font-style: normal; font-weight: 700; font-size: 11.5px; color: var(--resv-confirmed-fg); }
.mini-phone em.ok { color: var(--good); }
.booking-widget { margin-top: auto; display: flex; flex-direction: column; gap: 8px; background: var(--teal-900); border-radius: 16px; padding: 12px; color: #fff; }
.booking-widget__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.booking-widget__fields span { background: rgba(255,255,255,.08); border-radius: 10px; padding: 7px 10px; font-size: 13.5px; font-weight: 600; }
.booking-widget__fields small { display: block; font-size: 11px; font-weight: 500; color: var(--on-dark-muted); }
.booking-widget__cta { text-align: center; background: var(--cta); border-radius: 10px; padding: 9px; font-weight: 700; font-size: 14px; }
.booking-widget__note { text-align: center; font-size: 12.5px; color: #6ee7a8; font-weight: 600; }
.card--full { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 40px; min-height: 0; }
.card--full .card__text { flex: 1 1 40%; display: flex; flex-direction: column; gap: 12px; }
.card--offline { background: linear-gradient(110deg, var(--sand) 0%, var(--surface) 70%); }
.offline-flow { flex: 1 1 60%; display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 4px; }
.offline-flow__step { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 16px; box-shadow: 0 10px 24px -18px rgba(7,25,24,.35); }
.offline-flow__step i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; margin-bottom: 6px; }
.offline-flow__step b { font-size: 15px; }
.offline-flow__step span { font-size: 13px; color: var(--ink-500); line-height: 1.4; }
.offline-flow__step--cut i { background: var(--amber-bg); color: var(--amber); }
.offline-flow__step--queue i { background: var(--resv-confirmed-bg); color: var(--resv-confirmed-fg); }
.offline-flow__step--sync i { background: var(--good-bg); color: var(--good); }
.offline-flow__arrow { height: 2px; background: repeating-linear-gradient(90deg, var(--teal-500) 0 5px, transparent 5px 9px); position: relative; }
.offline-flow__arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--teal-500); }
.is-visible .offline-flow__step { animation: step-in .6s var(--ease) both; }
.is-visible .offline-flow__step:nth-child(3) { animation-delay: .35s; }
.is-visible .offline-flow__step:nth-child(5) { animation-delay: .7s; }
.offline-demo { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--hairline); padding: 12px 14px; font-weight: 600; font-size: 14px; }
.offline-demo__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); animation: ping 2s infinite; }

/* Conformité */
.comply { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.comply__card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.comply__card h3 { font-size: 21px; }
.comply__card p { color: var(--on-dark-muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--teal-300); border: 1px solid rgba(123,212,203,.35); border-radius: 999px; padding: 4px 10px; }
.lang-demo { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.lang-demo__tabs { display: inline-flex; align-self: flex-start; gap: 4px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; }
.lang-demo__tabs button { border: 0; background: transparent; color: var(--on-dark-muted); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.lang-demo__tabs button.is-active { background: #fff; color: var(--teal-900); }
.lang-demo__tabs button[data-lang="ar"] { font-family: var(--font-arabic); }
.lang-demo__card { background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; transition: opacity .2s; }
.lang-demo__card strong { font-size: 15px; }
.lang-demo__card span { color: var(--good); font-weight: 600; font-size: 14px; }
.lang-demo__card[dir="rtl"] { font-family: var(--font-arabic); }
.lang-demo__card.is-switching { opacity: 0; }
.roadmap { margin-top: 32px; padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.25); color: var(--on-dark-muted); font-size: 15px; }
.roadmap strong { color: #fff; }

/* Pour qui */
.roles__tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px; margin-bottom: 32px; }
.roles__tab { border: 0; background: transparent; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; color: var(--ink-700); }
.roles__tab.is-active { background: var(--teal-900); color: #fff; }
.roles__pane { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: stretch; animation: fade-up .5s var(--ease); }
.roles__pane[hidden] { display: none; }
.roles__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.roles__pane blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.3; color: var(--teal-800); }
.roles__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.roles__stats div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.roles__stats b { font-size: 24px; letter-spacing: -0.02em; color: var(--teal-700); white-space: nowrap; }
.roles__stats span { font-size: 14px; color: var(--ink-500); line-height: 1.4; }
.compare { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.compare__head, .compare li { display: grid; grid-template-columns: 1fr 1fr; }
.compare__head span { padding: 14px 22px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); background: #fafaf8; border-bottom: 1px solid var(--hairline); }
.compare__head span:last-child { color: var(--teal-700); background: var(--teal-50); }
.compare li + li { border-top: 1px solid var(--hairline); }
.compare s, .compare li span { padding: 18px 22px; font-size: 15px; line-height: 1.45; }
.compare s { color: var(--ink-500); text-decoration: none; display: flex; gap: 10px; }
.compare s::before { content: "✕"; color: #b4a8a3; font-weight: 700; flex: none; }
.compare li span { font-weight: 600; display: flex; gap: 10px; background: rgba(239, 250, 248, 0.55); }
.compare li span::before { content: "✓"; color: var(--good); font-weight: 700; flex: none; }
/* Tarifs */
.simulator { display: grid; gap: 22px; }
.simulator__controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 28px; }
.control { display: flex; flex-direction: column; gap: 12px; }
.control label, .control__label { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.control small { font-weight: 500; color: var(--ink-500); }
.control output { font-family: var(--font-mono); color: var(--teal-700); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600) var(--slider-pct, 15%), #e3e6e5 var(--slider-pct, 15%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); box-shadow: 0 4px 10px rgba(7,25,24,.2); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--teal-600); cursor: grab; }
.segmented { display: inline-flex; background: var(--canvas); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid var(--hairline); }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: 14px; color: var(--ink-700); white-space: nowrap; }
.segmented button small { color: var(--good); font-weight: 700; }
.segmented button.is-active { background: var(--teal-900); color: #fff; }
.segmented button.is-active small { color: #6ee7a8; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--canvas); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px; align-self: flex-start; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; font-weight: 600; box-shadow: 0 1px 3px rgba(7,25,24,.12); }
.stepper output { min-width: 34px; text-align: center; font-family: var(--font-mono); font-weight: 600; }
.simulator__tip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px solid var(--hairline); color: var(--ink-700); font-size: 15px; }
.simulator__badge { background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 30px 28px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.plan h3 { font-size: 24px; }
.plan__for { color: var(--ink-500); font-size: 14.5px; }
.plan__unit { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal-700); }
.plan__price { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.plan__price span { font-size: 15px; font-weight: 500; color: var(--ink-500); letter-spacing: 0; }
.plan__ttc { font-size: 13.5px; color: var(--ink-500); min-height: 2.8em; }
.plan ul { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: "✓"; color: var(--teal-600); font-weight: 700; }
.plan__meta { font-size: 13px; color: var(--ink-500); margin-top: auto; }
.plan .btn { margin-top: 8px; }
.plan__flag { position: absolute; top: -12px; left: 28px; background: var(--teal-900); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.plan.is-recommended { border-color: var(--teal-600); box-shadow: 0 0 0 1px var(--teal-600), var(--shadow-card); }
.plan.is-recommended .plan__flag { opacity: 1; transform: none; }

/* Pionniers & étapes */
.pioneer { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: var(--radius-xl); color: #fff; background: radial-gradient(90% 120% at 100% 0%, rgba(229,72,63,.35), transparent 60%), var(--teal-900); }
.pioneer > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.pioneer h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.03em; }
.pioneer p { color: var(--on-dark-muted); font-size: 17px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--teal-100)); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.steps span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--teal-700); box-shadow: 0 0 0 6px var(--canvas); margin-bottom: 8px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--ink-500); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__contact { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; }
.faq__contact p { color: var(--ink-700); font-size: 15px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 0 22px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231a6560' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-700); }

/* Démo */
.demo { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 56px; align-items: start; }
/* Un enfant de grille prend sinon la largeur de sa plus longue option de liste */
.demo > *, .faq > *, .hero__grid > *, .roles__pane > * { min-width: 0; }
.demo__intro { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.demo__intro h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; }
.demo__intro > p { color: var(--on-dark-muted); font-size: 17px; }
.demo__ticks { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-muted); }
.demo__ticks li::before { content: "✓  "; color: var(--teal-300); font-weight: 700; }
.demo__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 0; }
.demo__contact div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 14px; }
.demo__contact dt { font-size: 12.5px; color: var(--on-dark-muted); }
.demo__contact dd { margin: 2px 0 0; font-weight: 600; }
.demo__card { background: var(--surface); color: var(--ink); border-radius: var(--radius-xl); padding: 32px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.demo-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.demo-form__progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-500); }
.demo-form__progress i { flex: 1; height: 6px; background: #eceeed; border-radius: 999px; overflow: hidden; }
.demo-form__progress b { display: block; height: 100%; width: 8%; background: var(--teal-600); border-radius: inherit; transition: width .4s var(--ease); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--hairline-strong); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 4px rgba(39,154,144,.15); }
.field .is-invalid { border-color: var(--cta); }
.field .is-valid { border-color: rgba(21,128,61,.5); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 4px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal-600); }
.demo-form__error { grid-column: 1 / -1; color: var(--cta-hover); font-weight: 600; font-size: 14px; min-height: 0; }
.demo-form__error:empty { display: none; }
.demo-form .btn { grid-column: 1 / -1; }
.demo-form__privacy { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-500); text-align: center; }
.demo-form[hidden] { display: none; }
.demo-success { display: none; flex-direction: column; gap: 14px; align-items: flex-start; }
.demo-success.is-visible { display: flex; }
.demo-success__check { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 22px; }
.demo-success h3 { font-size: 24px; }
.demo-success__summary { width: 100%; background: var(--canvas); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; display: flex; flex-direction: column; gap: 4px; }
.demo-success__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-success .btn--on-dark { color: var(--ink); border-color: var(--hairline-strong); }
.demo-success .btn--link { color: var(--teal-700); }

/* Pied de page */
.footer { background: var(--teal-950); color: var(--on-dark-muted); padding: 64px 0 28px; border-top: 1px solid rgba(255,255,255,.06); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer__brand img { height: 32px; width: auto; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: 0; }
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(21,128,61,0); } }
@keyframes tab-progress { from { width: 0; } to { width: 100%; } }
@keyframes bar-flash { 0% { box-shadow: 0 0 0 0 rgba(76, 91, 212, .55); } 100% { box-shadow: 0 0 0 9px rgba(76, 91, 212, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes step-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mt-loop {
  0% { transform: scaleX(0); opacity: 0; }
  12%, 82% { transform: scaleX(1); opacity: 1; }
  92%, 100% { transform: scaleX(1); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Écrans moyens et petits
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { min-height: 0; padding: 48px 40px; }
  .stage { min-height: 0; padding: 40px 0 84px 32px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simulator__controls { grid-template-columns: 1fr 1fr; }
  .simulator__controls .control:first-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--hairline); padding: 10px 16px 18px;
    box-shadow: 0 20px 30px -20px rgba(7,25,24,.3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .site-nav__link { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .site-header__secondary { display: none; }
  .comply { grid-template-columns: 1fr 1fr; }
  .roles__pane { grid-template-columns: 1fr; gap: 28px; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .card--full { flex-direction: column; align-items: stretch; }
  .offline-flow { grid-template-columns: 1fr; }
  .offline-flow__arrow { width: 2px; height: 18px; margin-left: 30px; background: repeating-linear-gradient(180deg, var(--teal-500) 0 5px, transparent 5px 9px); }
  .offline-flow__arrow::after { right: auto; left: -4px; top: auto; bottom: -3px; border-left-color: transparent; border-top-color: var(--teal-500); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; }
  .faq, .demo { grid-template-columns: 1fr; gap: 32px; }
  .faq .section-head, .demo__intro { position: static; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .announce { font-size: 13px; }
  .announce__link { gap: 8px; }
  .announce__long, .announce__arrow { display: none; }
  .announce__short { display: inline; }
  .scene-tabs__list { -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .hero { padding-top: 12px; }
  .hero__panel { padding: 36px 24px; border-radius: 22px; gap: 20px; }
  .hero__title { font-size: 2.45rem; }
  .hero__lead { font-size: 16.5px; }
  .hero__ctas .btn { width: 100%; }
  .stage { padding: 26px 0 80px 16px; border-radius: 22px; }
  .stage__chip { display: none; }
  .app-window__hotel { display: none; }
  .scene-tab { padding: 8px 12px; font-size: 13.5px; }
  .bento, .comply, .steps { grid-template-columns: 1fr; }
  .proof__item { padding: 22px 14px; }
  .proof__item:nth-child(odd) { padding-left: 0; }
  .proof__item span { font-size: 14px; }
  .compare__head { display: none; }
  .compare li { grid-template-columns: 1fr; }
  .compare s { padding-bottom: 4px; }
  .compare li span { background: none; padding-top: 4px; }
  .card--wide { grid-column: auto; flex-direction: column; }
  .card--wide .mini-tape, .card--wide .mini-report { flex: none; width: 100%; align-self: stretch; }
  .roles__stats div { flex-direction: row; align-items: baseline; gap: 14px; padding: 14px 16px; }
  .roles__stats b { min-width: 6.2em; font-size: 21px; }
  .card { padding: 24px; min-height: 0; }
  .roles__stats { grid-template-columns: 1fr; }
  .roles__tabs { border-radius: 18px; }
  .simulator__controls { grid-template-columns: 1fr; padding: 22px; }
  .segmented { flex-wrap: wrap; border-radius: 18px; }
  .pioneer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .pioneer .btn { width: 100%; }
  .demo__card { padding: 22px; border-radius: 22px; }
  .demo-form, .checks { grid-template-columns: minmax(0, 1fr); }
  .demo__contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Mouvement réduit : tout est montré à son état final, rien ne défile seul */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scene .line-now { stroke-dashoffset: 0; }
}
