/* ==========================================================================
   DentalOS Local — site vitrine
   Direction : vert médical, minimalisme éditorial, défilement immersif.
   Propriétés logiques partout (LTR / RTL). Animations : transform + opacity.
   ========================================================================== */

:root {
  --g-975: #021C16;
  --g-950: #03261D;
  --g-900: #064E3B;
  --g-850: #05543F;
  --g-800: #065F46;
  --g-700: #047857;
  --g-600: #059669;
  --g-500: #10B981;
  --g-400: #34D399;
  --g-300: #6EE7B7;
  --g-200: #A7F3D0;
  --g-100: #D1FAE5;
  --g-50: #ECFDF5;
  --g-25: #F5FDF9;
  --brand: #00AB6B;            /* vert du logo officiel */
  --white: #FFFFFF;
  --ink: #102820;
  --ink-2: #33504A;
  --ink-3: #5B7570;
  --line: rgba(6, 78, 59, 0.12);
  --line-strong: rgba(6, 78, 59, 0.2);

  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(2, 44, 34, 0.06), 0 2px 8px rgba(2, 44, 34, 0.05);
  --shadow: 0 2px 6px rgba(2, 44, 34, 0.05), 0 12px 32px -8px rgba(2, 44, 34, 0.16);
  --shadow-lg: 0 4px 10px rgba(2, 44, 34, 0.05), 0 30px 80px -20px rgba(2, 44, 34, 0.35);
  --shadow-xl: 0 6px 18px rgba(2, 44, 34, 0.08), 0 50px 120px -30px rgba(2, 44, 34, 0.45);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

[dir="rtl"] {
  --font-display: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[dir="rtl"] body { font-size: 1.1rem; line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--g-200); color: var(--g-950); }
:focus-visible { outline: 3px solid var(--g-500); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 44px; height: 44px; }
[dir="rtl"] .btn-arrow { transform: none; }

.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--g-900); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie de section --------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-700);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--g-500), var(--g-300)); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 0.95rem; text-transform: none; }
[dir="rtl"] .kicker::before { background: linear-gradient(270deg, var(--g-500), var(--g-300)); }
.kicker-light { color: var(--g-300); }

.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  max-width: 18ch;
}
[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.section-title-light { color: #fff; }
.section-lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 60ch; line-height: 1.6; }
.section-lead-light { color: rgba(236, 253, 245, 0.78); }

/* ---------- Boutons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--g-700);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
[dir="rtl"] .btn { letter-spacing: 0; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1.02rem; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--g-600), var(--g-800)); box-shadow: 0 8px 24px -8px rgba(4, 120, 87, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--bx, 50%) var(--by, 50%), rgba(167, 243, 208, 0.45), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(4, 120, 87, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost { color: var(--g-900); background: rgba(255, 255, 255, 0.6); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--g-500); transform: translateY(-2px); }
.btn-light { color: var(--g-900); background: #fff; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.45); }
.btn-light:hover { transform: translateY(-2px) scale(1.01); background: var(--g-50); }
.btn .btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-4px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- En-tête ------------------------------------------------------- */
.scroll-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--g-400), var(--g-600)); transform-origin: left center; transform: scaleX(0); }
[dir="rtl"] .scroll-progress span { transform-origin: right center; background: linear-gradient(270deg, var(--g-400), var(--g-600)); }

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(2, 44, 34, 0.25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(0, 171, 107, 0.7); transition: transform 0.5s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: "Manrope", var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--g-950); }
.brand-name span { color: var(--g-600); font-weight: 600; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: var(--g-300); }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.94rem; color: var(--ink-2); white-space: nowrap;
  transition: color 0.25s, background-color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--g-500); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { color: var(--g-900); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.6); cursor: pointer;
  font-weight: 600; font-size: 0.88rem; color: var(--g-900); transition: border-color 0.2s, background-color 0.2s;
}
.lang-btn:hover { border-color: var(--g-500); background: #fff; }
.lang-btn[aria-expanded="true"] .icon-xs { transform: rotate(180deg); }
.lang-btn .icon-xs { transition: transform 0.3s var(--ease); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 196px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: pop 0.25s var(--ease);
}
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.lang-menu a:hover { background: var(--g-50); }
.lang-menu a[aria-current="true"] { color: var(--g-800); font-weight: 600; }
.lang-menu a .icon { margin-inline-start: auto; color: var(--g-600); }
.lang-code { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 6px; background: var(--g-50); color: var(--g-800); font-size: 0.75rem; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.label-short { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.7); cursor: pointer; place-items: center; }
.menu-icon { position: relative; width: 18px; height: 12px; display: block; }
.menu-icon i { position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: var(--g-950); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-icon i:first-child { top: 1px; }
.menu-icon i:last-child { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Cadre navigateur et captures ---------------------------------- */
.browser {
  position: relative; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid rgba(6, 78, 59, 0.1);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px; height: 38px; padding-inline: 14px;
  background: linear-gradient(180deg, #F8FBFA, #EEF4F2); border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3DFDB; }
.dots i:first-child { background: #F2B8B5; }
.dots i:nth-child(2) { background: #F3DCA2; }
.dots i:nth-child(3) { background: #A7E3C6; }
.browser-url {
  flex: 1; max-width: 340px; margin-inline: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 24px; padding-inline: 12px; border-radius: 8px; background: #fff; border: 1px solid rgba(6, 78, 59, 0.08);
  font-size: 0.72rem; color: var(--ink-3); font-weight: 500;
}
.browser-url .icon { color: var(--g-600); }
.browser-spacer { width: 51px; }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #F4F7F6; }
.browser-view img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
[dir="rtl"] .browser-bar { direction: ltr; }
.shot-missing { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #F1F7F4 0 14px, #ECF4F0 14px 28px); color: var(--ink-3); font-size: 0.9rem; font-weight: 600; }

/* ---------- 1. Hero ------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 96px));
  background: linear-gradient(180deg, #fff 0%, var(--g-25) 55%, var(--g-50) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; will-change: transform; }
.halo-a { width: 620px; height: 620px; inset-inline-start: -180px; top: -160px; background: radial-gradient(circle, rgba(167, 243, 208, 0.9), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.halo-b { width: 560px; height: 560px; inset-inline-end: -140px; top: 120px; background: radial-gradient(circle, rgba(52, 211, 153, 0.42), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.halo-c { width: 900px; height: 520px; left: 50%; bottom: -220px; margin-left: -450px; background: radial-gradient(ellipse, rgba(16, 185, 129, 0.28), transparent 65%); }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(6, 78, 59, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 78, 59, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--g-900); backdrop-filter: blur(8px);
}
[dir="rtl"] .eyebrow { padding: 6px 6px 6px 16px; }
.eyebrow-logo { width: 26px; height: 26px; border-radius: 8px; }
.hero-title {
  margin-top: 28px; font-size: clamp(2.6rem, 7.4vw, 6.4rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em;
  color: var(--g-950);
}
.hero-title .line { display: block; }
.hero-title .line-1 { color: var(--g-800); }
.hero-title .line-2 { background: linear-gradient(100deg, var(--g-600) 10%, var(--g-500) 45%, var(--g-400) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
[dir="rtl"] .hero-title .line-2 { background: linear-gradient(260deg, var(--g-600) 10%, var(--g-500) 45%, var(--g-400) 90%); -webkit-background-clip: text; background-clip: text; }
.hero-lead { margin-top: 28px; max-width: 46rem; font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.6; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; }
.hero-chips .icon { color: var(--g-600); }

.hero-stage { position: relative; margin-top: clamp(48px, 8vh, 80px); padding-inline: var(--gutter); }
.hero-visual { position: relative; max-width: 1160px; margin-inline: auto; perspective: 1800px; }
.browser-hero { transform-origin: 50% 0%; border-radius: 18px 18px 0 0; border-bottom: 0; }
.js.motion.is-desktop .browser-hero { transform: rotateX(16deg) scale(0.94); }
.float-card {
  position: absolute; z-index: 2; width: clamp(200px, 22vw, 300px); padding: 8px 8px 0; border-radius: 18px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.float-card figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 6px 12px; font-size: 0.82rem; font-weight: 700; color: var(--g-900); font-family: var(--font-display); }
.float-card figcaption .icon { color: var(--g-600); }
.float-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #F4F7F6; }
.float-img img { width: 100%; height: 100%; object-fit: cover; }
.float-img-waiting img { object-position: 0 100%; }
.float-img-odonto img { object-position: 50% 55%; }
.float-a { inset-inline-start: -7%; top: 26%; }
.float-b { inset-inline-end: -7%; top: 50%; }

/* ---------- 2. Découvrir (zoom) ------------------------------------------- */
.discover { position: relative; background: linear-gradient(180deg, var(--g-50) 0%, #fff 22%); padding-block: clamp(80px, 12vh, 140px) clamp(64px, 10vh, 120px); }
.discover-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.discover-head .section-title { max-width: 20ch; }
.discover-stage { margin-top: clamp(40px, 6vh, 64px); padding-inline: var(--gutter); perspective: 1600px; }
.discover-window { max-width: 1200px; margin-inline: auto; will-change: transform; transform-origin: 50% 40%; }
.discover-points { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.discover-point { padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.discover-point:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g-200); }
.point-num { display: inline-block; font-family: "Manrope", var(--font-display); font-weight: 800; font-size: 0.85rem; color: var(--g-600); background: var(--g-50); padding: 4px 10px; border-radius: 999px; }
.discover-point h3 { margin-top: 14px; font-size: 1.2rem; letter-spacing: -0.02em; }
.discover-point p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

/* ---------- 3. Fonctionnalités (défilement horizontal) -------------------- */
.features { position: relative; background: var(--g-50); padding-block: clamp(80px, 12vh, 140px) clamp(64px, 10vh, 110px); isolation: isolate; }
.features::before {
  content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; top: -90px; height: 180px;
  background: var(--g-50); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.features-head { margin-bottom: clamp(36px, 6vh, 64px); }
.hscroll { position: relative; }
.hscroll-track { display: flex; flex-direction: column; gap: 28px; padding-inline: var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; }
.feature-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(24px, 3vw, 48px); border-radius: var(--radius-xl); background: #fff; border: 1px solid rgba(6, 78, 59, 0.08); box-shadow: var(--shadow);
}
.feature-num { display: block; font-family: "Manrope", var(--font-display); font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--g-300); }
.feature-num small { font-size: 0.32em; letter-spacing: 0; -webkit-text-stroke: 0; color: var(--ink-3); margin-inline-start: 6px; }
.feature-tag { margin-top: 18px; display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--g-50); color: var(--g-800); font-weight: 600; font-size: 0.8rem; }
.feature-copy h3 { margin-top: 14px; font-size: clamp(1.6rem, 2.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.1; }
[dir="rtl"] .feature-copy h3 { letter-spacing: 0; line-height: 1.4; }
.feature-copy p { margin-top: 14px; color: var(--ink-2); }
.feature-visual { position: relative; }
.browser-feature { box-shadow: var(--shadow-lg); }
.loupe {
  position: absolute; inset-inline-end: -18px; bottom: -26px; width: clamp(150px, 15vw, 210px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 24px 50px -16px rgba(2, 44, 34, 0.55), 0 0 0 1px rgba(6, 78, 59, 0.12);
  background: #F4F7F6; display: none;
}
.js .loupe.is-ready { display: block; }
.loupe-inner { position: absolute; inset: 0; }
.loupe-img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; }
.loupe-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(6, 78, 59, 0.86); color: #fff; font-size: 0.68rem; font-weight: 600; white-space: nowrap; }
.hscroll-progress { display: none; }
.features-more { margin-top: 40px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
.features-more .icon { color: var(--g-600); }

/* Bureau : piste horizontale épinglée (pilotée par le défilement vertical). */
.js.motion.is-desktop .hscroll { height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.js.motion.is-desktop .hscroll-track { flex-direction: row; gap: 40px; max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); width: max-content; will-change: transform; }
.js.motion.is-desktop .feature-panel { width: min(1120px, 84vw); flex: none; min-height: min(620px, 74vh); }
.js.motion.is-desktop .hscroll-progress { display: block; position: absolute; bottom: 5vh; left: 50%; width: min(320px, 50vw); height: 4px; margin-left: min(-160px, -25vw); border-radius: 4px; background: rgba(6, 78, 59, 0.12); overflow: hidden; }
.hscroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--g-500), var(--g-700)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .hscroll-progress span { transform-origin: right; }

/* ---------- 4. Parcours patient ------------------------------------------ */
.journey { position: relative; background: #fff; padding-block: clamp(80px, 12vh, 140px); }
.journey-head { max-width: 52rem; }
.journey-rail { display: none; }
.journey-grid { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); }
.journey-steps { counter-reset: step; }
.journey-step { position: relative; padding-block: 28px; padding-inline-start: 34px; border-inline-start: 2px solid var(--g-100); transition: border-color 0.4s; }
.journey-step::before {
  content: ""; position: absolute; inset-inline-start: -9px; top: 36px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--g-200); transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.journey-step.is-active { border-color: var(--g-500); }
.journey-step.is-active::before { background: var(--g-500); border-color: var(--g-500); transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.18); }
.step-index { font-family: "Manrope", var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-600); }
[dir="rtl"] .step-index { letter-spacing: 0; }
.journey-step h3 { margin-top: 6px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.03em; transition: color 0.4s; }
[dir="rtl"] .journey-step h3 { letter-spacing: 0; }
.journey-step p { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }
.journey-inline { margin-top: 22px; }
.journey-sticky { display: none; }
.journey-meter { margin-top: 18px; height: 4px; border-radius: 4px; background: var(--g-100); overflow: hidden; }
.journey-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--g-500), var(--g-700)); transform-origin: left; transform: scaleX(0.25); transition: transform 0.6s var(--ease); }
[dir="rtl"] .journey-meter span { transform-origin: right; }

@media (min-width: 1024px) {
  .js .journey-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
  .js .journey-step:not(.is-active) h3 { color: rgba(16, 40, 32, 0.35); }
  .js .journey-step:not(.is-active) p { opacity: 0.45; }
  .js .journey-step p { transition: opacity 0.4s; }
  .js .journey-inline { display: none; }
  .js .journey-sticky { display: block; position: sticky; top: calc(50vh - min(26vw, 290px)); align-self: start; }
  .js .journey-rail { display: flex; position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; margin-top: 32px; width: max-content; max-width: 100%; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
  .journey-rail li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; color: var(--ink-3); transition: background-color 0.4s, color 0.4s; }
  .journey-rail li span { font-family: "Manrope", sans-serif; font-size: 0.75rem; opacity: 0.7; }
  .journey-rail li.is-active { background: var(--g-900); color: #fff; }
}
.journey-frame { box-shadow: var(--shadow-xl); }
.journey-stack { position: relative; }
.journey-layer { position: absolute; inset: 0; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-in-out); }
.journey-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.journey-layer.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.journey-layer.is-active img { transform: scale(1); }
.journey-layer.is-past { clip-path: inset(0 0 0 0); z-index: 1; }

/* ---------- 5. Pourquoi local (sections sombres) -------------------------- */
.tone-deep { position: relative; color: rgba(236, 253, 245, 0.86); background: var(--g-900); }
.why {
  padding-block: clamp(96px, 14vh, 160px) clamp(64px, 10vh, 110px);
  background: radial-gradient(1200px 600px at 85% 0%, rgba(16, 185, 129, 0.22), transparent 60%), linear-gradient(180deg, var(--g-900), var(--g-950));
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  isolation: isolate; overflow: hidden;
}
.js.motion.is-desktop .why { clip-path: inset(0 3% 0 3% round 56px 56px 0 0); }
.why-shape { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo-d { width: 700px; height: 700px; inset-inline-start: -260px; bottom: -300px; background: radial-gradient(circle, rgba(52, 211, 153, 0.22), transparent 65%); }
.why-head .section-title { max-width: 20ch; }
.why-grid { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(167, 243, 208, 0.14);
  transition: transform 0.45s var(--ease), border-color 0.4s, background-color 0.4s;
}
.why-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(52, 211, 153, 0.16), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(167, 243, 208, 0.35); }
.why-card:hover::before { opacity: 1; }
.why-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(16, 185, 129, 0.08)); color: var(--g-300); border: 1px solid rgba(167, 243, 208, 0.2); transition: transform 0.5s var(--ease); }
.why-card:hover .why-icon { transform: rotate(-8deg) scale(1.06); }
.why-num { position: absolute; inset-inline-end: 24px; top: 22px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 0.85rem; color: rgba(167, 243, 208, 0.4); }
.why-card h3 { margin-top: 22px; color: #fff; font-size: 1.28rem; letter-spacing: -0.02em; }
[dir="rtl"] .why-card h3 { letter-spacing: 0; }
.why-card p { margin-top: 10px; color: rgba(236, 253, 245, 0.72); font-size: 0.98rem; }
.why-note { margin-top: 36px; display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: rgba(236, 253, 245, 0.62); max-width: 70ch; }
.why-note .icon { color: var(--g-400); margin-top: 3px; }

/* ---------- 6. Mini-serveur ---------------------------------------------- */
.server { padding-block: clamp(48px, 8vh, 90px) clamp(96px, 14vh, 160px); background: linear-gradient(180deg, var(--g-950), var(--g-975)); }
.server-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.server-steps { margin-top: 36px; display: grid; gap: 14px; }
.server-steps li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(167, 243, 208, 0.1); }
.server-steps li > span { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--g-500); color: var(--g-975); font-weight: 800; font-family: "Manrope", sans-serif; font-size: 0.85rem; }
.server-steps h3 { color: #fff; font-size: 1.05rem; }
.server-steps p { margin-top: 4px; color: rgba(236, 253, 245, 0.7); font-size: 0.95rem; }
.server-diagram { position: relative; }
.server-diagram figcaption { margin-top: 14px; text-align: center; font-size: 0.82rem; color: rgba(236, 253, 245, 0.5); }
.diagram { width: 100%; height: auto; overflow: visible; font-family: var(--font-display); }
.diagram .lan { fill: rgba(255, 255, 255, 0.02); stroke: rgba(167, 243, 208, 0.28); stroke-width: 1.5; stroke-dasharray: 6 8; }
.diagram .lan-label { fill: var(--g-300); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
[dir="rtl"] .diagram .lan-label { letter-spacing: 0; font-size: 16px; }
.diagram .link { stroke: rgba(167, 243, 208, 0.18); stroke-width: 2; fill: none; }
.diagram .link-flow { stroke: var(--g-400); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 2 16; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -36; } }
.diagram .srv-edge { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.diagram .srv-slot { fill: rgba(2, 28, 22, 0.35); }
.diagram .led { fill: var(--g-200); animation: blink 2.4s ease-in-out infinite; }
.diagram .led-2 { animation-delay: 0.4s; }
.diagram .led-3 { animation-delay: 0.8s; }
@keyframes blink { 50% { opacity: 0.25; } }
.diagram .srv-label { fill: #fff; font-size: 15px; font-weight: 700; }
.diagram .srv-glow { animation: breathe 4s ease-in-out infinite; transform-origin: 320px 260px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.diagram .device-card { fill: rgba(6, 95, 70, 0.55); stroke: rgba(167, 243, 208, 0.3); stroke-width: 1; }
.diagram .device-icon { color: var(--g-300); }
.diagram .device-label { fill: #fff; font-size: 14px; font-weight: 600; }
.diagram .https-badge rect { fill: var(--g-975); stroke: rgba(52, 211, 153, 0.6); }
.diagram .https-badge svg { color: var(--g-400); }
.diagram .https-badge text { fill: var(--g-200); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }

/* ---------- 7. Galerie ---------------------------------------------------- */
.gallery { position: relative; padding-block: clamp(96px, 14vh, 150px) clamp(80px, 12vh, 130px); background: linear-gradient(180deg, #fff, var(--g-25)); }
.gallery::before { content: ""; position: absolute; left: -10%; right: -10%; top: -1px; height: 120px; background: var(--g-975); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.chip:hover { border-color: var(--g-500); color: var(--g-900); }
.chip.is-active { background: var(--g-900); border-color: var(--g-900); color: #fff; }
.gallery-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gallery-item { grid-column: span 2; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.gallery-item.gi-0, .gallery-item.gi-1 { grid-column: span 3; }
.gallery-item[hidden] { display: none; }
.gallery.is-collapsed .gallery-item.is-extra { display: none; }
.gallery-more { margin-top: 32px; display: flex; justify-content: center; }
.gallery-more .btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.gallery-btn { position: relative; display: block; width: 100%; padding: 0; border: 1px solid rgba(6, 78, 59, 0.1); border-radius: 18px; overflow: hidden; background: #F4F7F6; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); aspect-ratio: 16 / 10; }
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.8s var(--ease); }
.gallery-btn:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-btn:hover img { transform: scale(1.035); }
.gallery-caption { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 40px 16px 14px; text-align: start; background: linear-gradient(180deg, transparent, rgba(2, 28, 22, 0.82)); color: #fff; font-size: 0.88rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.gallery-btn:hover .gallery-caption, .gallery-btn:focus-visible .gallery-caption { opacity: 1; transform: none; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(2, 20, 16, 0.9); backdrop-filter: blur(6px); }
.lightbox-inner { position: absolute; inset: 64px clamp(12px, 6vw, 96px) 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox-inner img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7); background: #fff; }
.lightbox-caption { text-align: center; font-size: 0.95rem; color: rgba(236, 253, 245, 0.9); }
.lightbox-count { opacity: 0.6; margin-inline-start: 8px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 12px; inset-inline-end: 12px; }
.lb-prev { top: 50%; inset-inline-start: 12px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 12px; transform: translateY(-50%); }

/* ---------- 8. Démonstration --------------------------------------------- */
.demo { padding-block: clamp(110px, 16vh, 180px); text-align: center; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 50% 110%, rgba(16, 185, 129, 0.35), transparent 70%), linear-gradient(160deg, var(--g-800), var(--g-900) 45%, var(--g-950)); }
.demo-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.halo-e { width: 520px; height: 520px; inset-inline-start: -120px; top: -160px; background: radial-gradient(circle, rgba(110, 231, 183, 0.3), transparent 65%); animation: drift 20s ease-in-out infinite alternate; }
.halo-f { width: 460px; height: 460px; inset-inline-end: -120px; bottom: -140px; background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 65%); animation: drift 24s ease-in-out infinite alternate-reverse; }
.demo-rings { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 78px, rgba(167, 243, 208, 0.07) 78px 79px); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); animation: spin-slow 90s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg) scale(1.04); } }
.demo-inner { display: flex; flex-direction: column; align-items: center; }
.demo-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 24px 60px -18px rgba(0, 171, 107, 0.9), 0 0 0 8px rgba(255, 255, 255, 0.06); }
.demo-title { margin-top: 32px; color: #fff; font-size: clamp(2.4rem, 6vw, 5.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.045em; max-width: 16ch; }
[dir="rtl"] .demo-title { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.demo-text { margin-top: 24px; max-width: 46rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(236, 253, 245, 0.8); }
.demo .btn { margin-top: 40px; }
.demo-note { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: rgba(236, 253, 245, 0.6); font-size: 0.9rem; }

/* ---------- 9. Contact ---------------------------------------------------- */
.contact { position: relative; padding-block: clamp(90px, 13vh, 140px); background: linear-gradient(180deg, var(--g-50), #fff); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-points { margin-top: 28px; display: grid; gap: 12px; }
.contact-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.contact-points .icon { flex: none; margin-top: 3px; padding: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--g-100); color: var(--g-700); }
.contact-direct { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-direct p { font-weight: 600; color: var(--g-900); }
.contact-direct ul { margin-top: 12px; display: grid; gap: 8px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--g-800); font-weight: 600; }
.contact-direct a:hover { text-decoration: underline; }
.contact-card { padding: clamp(24px, 3vw, 44px); border-radius: var(--radius-xl); background: #fff; border: 1px solid rgba(6, 78, 59, 0.1); box-shadow: var(--shadow-lg); }
.contact-unavailable { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--g-950); }
.req { color: var(--g-600); }
.opt { font-weight: 400; color: var(--ink-3); font-size: 0.85rem; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--g-25); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--g-300); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--g-500); background: #fff; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field-hint { font-size: 0.82rem; color: var(--ink-3); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; color: #B42318; font-weight: 500; }
.has-error input, .has-error textarea { border-color: #E5484D; background: #FFF8F8; }
.consent { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--g-600); cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--g-800); font-weight: 600; }
.consent .field-error { grid-column: 2; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-note { font-size: 0.82rem; color: var(--ink-3); }
.form-alert { display: flex; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; background: #FFF4F2; border: 1px solid #FAC5BE; color: #7A271A; font-size: 0.94rem; }
.form-alert .icon { color: #D92D20; margin-top: 3px; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Pages complémentaires ---------------------------------------- */
.subpage { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--header-h) + clamp(48px, 9vh, 96px)); padding-bottom: clamp(80px, 12vh, 130px); }
.subpage-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #fff, var(--g-50)); }
.message-page { min-height: 78vh; display: flex; align-items: center; }
.message-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.message-inner .section-title { max-width: 22ch; }
.message-inner .btn { margin-top: 36px; }
.message-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 28px; background: var(--g-100); color: var(--g-700); margin-bottom: 28px; }
.nf-code { font-family: "Manrope", sans-serif; font-weight: 800; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--g-300); margin-bottom: 12px; }
.legal-page { background: linear-gradient(180deg, var(--g-50), #fff 320px); }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
[dir="rtl"] .prose h1 { letter-spacing: 0; }
.prose h2 { margin-top: 40px; font-size: 1.3rem; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; color: var(--ink-2); }
.prose a { color: var(--g-800); font-weight: 600; }
.prose-note { display: inline-block; margin-top: 18px !important; padding: 8px 14px; border-radius: 10px; background: #FFF8E6; border: 1px solid #F5D98B; color: #7A5A00 !important; font-size: 0.9rem; }
.todo { color: #9A6B00; background: #FFF4D6; padding: 1px 8px; border-radius: 6px; font-size: 0.9em; font-weight: 600; }
.legal-list { margin: 16px 0 0; display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.legal-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.legal-list > div:first-child { border-top: 0; }
.legal-list dt { font-weight: 600; color: var(--g-950); }
.legal-list dd { margin: 0; color: var(--ink-2); }

/* ---------- Pied de page -------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--g-975); color: rgba(236, 253, 245, 0.72); padding-top: clamp(64px, 9vh, 100px); }
.footer-glow { position: absolute; width: 900px; height: 400px; left: 50%; top: -260px; margin-left: -450px; border-radius: 50%; background: radial-gradient(ellipse, rgba(16, 185, 129, 0.25), transparent 65%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer-muted { display: flex; align-items: center; gap: 8px; color: rgba(236, 253, 245, 0.5); font-size: 0.86rem !important; }
.footer-col h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--g-300); }
[dir="rtl"] .footer-col h2 { letter-spacing: 0; font-size: 0.95rem; }
.footer-sub { margin-top: 28px; }
.footer-col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(236, 253, 245, 0.78); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-langs a[aria-current="true"] { color: var(--g-300); font-weight: 600; }
.footer-bottom { position: relative; margin-top: 56px; padding-block: 24px 28px; border-top: 1px solid rgba(167, 243, 208, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }

/* ---------- Révélations (progressives, sans bloquer le contenu) ----------- */
.js.motion [data-reveal], .js.motion .reveal-up { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js.motion [data-reveal].is-in, .js.motion .reveal-up.is-in { opacity: 1; transform: none; }
.js.motion [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js.motion [data-split] .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 0.1s); }
.js.motion [data-split].is-in .w > span { transform: none; }
.js.motion .hero-title .line-2 { background: none; }
.js.motion .hero-title .line-2 .w > span { background: linear-gradient(100deg, var(--g-600) 10%, var(--g-500) 45%, var(--g-400) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.js.motion .float-card { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.96); transition: opacity 1s var(--ease) 0.9s, transform 1s var(--ease) 0.9s; }
.js.motion .hero.is-in .float-card { opacity: 1; transform: none; }
.js.motion .hero-stage { opacity: 0; transform: translate3d(0, 60px, 0); transition: opacity 1.2s var(--ease) 0.5s, transform 1.4s var(--ease) 0.5s; }
.js.motion .hero.is-in .hero-stage { opacity: 1; transform: none; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 1440px) {
  .float-card { width: clamp(200px, 19vw, 260px); }
  .float-a { inset-inline-start: -2%; }
  .float-b { inset-inline-end: -2%; }
}
@media (max-width: 1360px) {
  .main-nav a { padding-inline: 9px; font-size: 0.9rem; }
  .label-long { display: none; }
  .label-short { display: inline; }
}
@media (max-width: 1180px) {
  .menu-btn { display: inline-grid; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--g-950); padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-mobile-only { display: block; }
  .nav-mobile-langs { display: flex; gap: 8px; flex-wrap: wrap; }
  .nav-mobile-langs a { font-size: 1rem; font-weight: 600; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; }
  .nav-mobile-langs a[aria-current="true"] { background: var(--g-900); color: #fff; border-color: var(--g-900); }
  .lang { display: none; }
  body.menu-open { overflow: hidden; }
  .site-header.menu-active { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }

}
@media (max-width: 1023px) {
  .discover-points { grid-template-columns: 1fr; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-num { font-size: 3rem; }
  .loupe { width: 130px; inset-inline-end: 8px; bottom: -18px; }
  .journey-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .server-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item, .gallery-item.gi-0, .gallery-item.gi-1 { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-a { inset-inline-start: 2%; top: auto; bottom: 8%; }
  .float-b { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-logo { width: 36px; height: 36px; }
  .header-inner { gap: 10px; }
  .header-cta { display: none; }
  .hero-title { font-size: clamp(2.35rem, 11.5vw, 3.4rem); }
  [dir="rtl"] .hero-title { font-size: clamp(2.1rem, 10vw, 3rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ctas .btn { width: 100%; white-space: normal; }
  .hero-chips { flex-direction: column; align-items: center; gap: 6px; }
  .browser-bar { height: 28px; padding-inline: 10px; }
  .browser-hero { border-radius: 14px; border-bottom: 1px solid rgba(6, 78, 59, 0.1); }
  .hero { padding-bottom: 40px; }
  .dots i { width: 7px; height: 7px; }
  .browser-url { height: 18px; font-size: 0.6rem; }
  .browser-spacer { width: 0; }
  .float-a { display: none; }
  .section-title { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .feature-panel { padding: 20px; border-radius: var(--radius-lg); }
  .loupe { display: none !important; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-caption { opacity: 1; transform: none; padding-top: 30px; font-size: 0.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-list > div { grid-template-columns: 1fr; gap: 2px; }
  .demo-title { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .diagram .device-label, .diagram .srv-label { font-size: 17px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}

/* ---------- Réduction des animations -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .diagram .link-flow { stroke-dasharray: none; opacity: 0.6; }
}
