/* MedOS — landing page
   Palette vérifiée directement sur la plateforme réelle (getComputedStyle) :
   navy #0A1628, bleu principal #3B82F6, bg clair #F0F4FB, vert hôpital #10B981, ambre distributeur #F59E0B. */

:root{
  --navy: #0A1628;
  --navy-2: #0F172A;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #EFF6FF;
  --emerald: #10B981;
  --amber: #F59E0B;
  --bg: #F0F4FB;
  --card: #FFFFFF;
  --ink: #0A1628;
  --ink-soft: #47536B;
  --muted: #6B7280;
  --line: rgba(10,22,40,0.10);
  --line-soft: rgba(10,22,40,0.06);
  --on-dark: #F1F5F9;
  --on-dark-dim: rgba(241,245,249,0.72);
  --on-dark-mute: rgba(241,245,249,0.48);
  --line-dark: rgba(241,245,249,0.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*{box-sizing:border-box; margin:0; padding:0;}
html{background:var(--bg); scroll-behavior:smooth;}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{ font-weight:800; letter-spacing:-0.02em; line-height:1.12; }
::selection{background:var(--blue); color:white;}
img{ max-width:100%; display:block; }

.progress-rail{ position:fixed; top:0; left:0; width:100%; height:2px; z-index:998; background:transparent; }
.progress-fill{ height:100%; width:0%; background:linear-gradient(90deg, var(--blue), var(--emerald)); }

/* ---------- REVEAL-ON-SCROLL ---------- */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform:translateY(20px); transition:opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in{ opacity:1; transform:none; }

/* ---------- TOPBAR ---------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:900;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px clamp(20px,4vw,56px);
  background:rgba(240,244,251,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  opacity:0; transform:translateY(-12px);
  pointer-events:none;
  transition:opacity 0.35s ease, transform 0.35s ease;
}
.topbar.visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.brand-mark{ border-radius:8px; flex:none; }
.brand-word{ font-weight:800; font-size:18px; letter-spacing:-0.02em; }
.topbar-nav{ display:flex; gap:28px; }
.topbar-nav a{ color:var(--ink-soft); text-decoration:none; font-size:14px; font-weight:600; transition:color .2s; }
.topbar-nav a:hover{ color:var(--blue); }
.topbar-cta{
  font-size:13.5px; font-weight:700;
  color:white; text-decoration:none;
  background:var(--blue); border-radius:8px;
  padding:10px 18px;
  transition:background 0.2s ease, transform 0.2s ease;
}
.topbar-cta:hover{ background:var(--blue-dark); transform:translateY(-1px); }

/* ---------- BUTTONS ---------- */
.btn{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px; text-decoration:none; padding:14px 26px; border-radius:10px; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-primary{ background:var(--blue); color:white; box-shadow:0 8px 24px -8px rgba(59,130,246,0.6); }
.btn-primary:hover{ background:var(--blue-dark); transform:translateY(-2px); }
.btn-ghost{ color:var(--on-dark); border:1.5px solid var(--line-dark); }
.btn-ghost:hover{ border-color:var(--on-dark-dim); }
.btn-lg{ font-size:16px; padding:17px 32px; }

/* ---------- SHARED ACT LAYOUT ---------- */
.act{ position:relative; padding:110px clamp(20px,6vw,80px); }
.module-kicker{ display:inline-block; font-size:12.5px; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; color:var(--blue); margin-bottom:16px; }
.module-kicker-dark{ color:#7CB3FF; }

/* ---------- HERO ---------- */
.act-hero{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  padding-top:100px; overflow:hidden; background:var(--navy); color:var(--on-dark);
}
.hero-inner{ position:relative; z-index:2; width:100%; max-width:1180px; display:grid; grid-template-columns:1.08fr 0.92fr; gap:clamp(28px,5vw,64px); align-items:center; }
.hero-copy{ max-width:600px; }
.hero-glow{ position:absolute; border-radius:50%; filter:blur(100px); pointer-events:none; }
.hero-glow-a{ width:560px; height:560px; opacity:0.35; background:radial-gradient(circle, var(--blue) 0%, transparent 70%); top:-160px; right:-80px; animation:drift1 26s ease-in-out infinite; }
.hero-glow-b{ width:480px; height:480px; opacity:0.28; background:radial-gradient(circle, var(--emerald) 0%, transparent 70%); bottom:-200px; right:260px; animation:drift2 30s ease-in-out infinite; }
@keyframes drift1{ 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-40px,30px) scale(1.06);} }
@keyframes drift2{ 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(30px,-30px) scale(0.94);} }
.hero-grid{
  position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(241,245,249,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(241,245,249,0.035) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 65% 55% at 68% 38%, black 0%, transparent 72%);
  mask-image:radial-gradient(ellipse 65% 55% at 68% 38%, black 0%, transparent 72%);
}
.hero-brand{ display:flex; align-items:center; gap:16px; margin-bottom:22px; position:relative; z-index:2; }
.hero-brand img{ width:clamp(40px,4.6vw,58px); height:clamp(40px,4.6vw,58px); display:block; }
.hero-brand-word{ font-size:clamp(54px,7.8vw,92px); font-weight:800; letter-spacing:-0.04em; line-height:1; color:var(--on-dark); }
.hero-title{ position:relative; z-index:2; font-size:clamp(24px,3vw,40px); font-weight:600; letter-spacing:-0.02em; color:var(--on-dark-dim); }
.hero-title .line{ display:block; }
.line-accent{ color:#7CB3FF; }
.hero-sub{ position:relative; z-index:2; margin-top:26px; max-width:600px; font-size:clamp(15px,1.3vw,17px); line-height:1.65; color:var(--on-dark-dim); font-weight:400; }
.hero-ctas{ position:relative; z-index:2; display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.hero-roles{ position:relative; z-index:2; display:flex; gap:10px; margin-top:44px; flex-wrap:wrap; }
.role-chip{ font-size:12.5px; font-weight:700; padding:7px 14px; border-radius:20px; border:1.5px solid; }
.role-pharmacie{ color:#93C0FF; border-color:rgba(59,130,246,0.4); background:rgba(59,130,246,0.08); }
.role-hopital{ color:#6EE7B7; border-color:rgba(16,185,129,0.4); background:rgba(16,185,129,0.08); }
.role-distributeur{ color:#FCD34D; border-color:rgba(245,158,11,0.4); background:rgba(245,158,11,0.08); }
.hero-anim{ opacity:0; transform:translateY(16px); animation:heroIn 0.8s var(--ease) forwards; }
@keyframes heroIn{ to{ opacity:1; transform:translateY(0); } }

.hero-visual{ position:relative; z-index:2; display:flex; align-items:center; justify-content:center; }
.hero-orbit{ width:100%; max-width:280px; aspect-ratio:1/1; overflow:visible; }
.orbit-node{ animation-duration:4.6s; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
.orbit-hopital{ fill:#10B981; transform:translate(0,-70px); animation-name:orbitHopital; }
.orbit-pharmacie{ fill:#3B82F6; transform:translate(-61px,35px); animation-name:orbitPharmacie; }
.orbit-distributeur{ fill:#F59E0B; transform:translate(61px,35px); animation-name:orbitDistributeur; }
@keyframes orbitHopital{ 0%,100%{ transform:translate(0,-70px); } 50%{ transform:translate(0,0); } }
@keyframes orbitPharmacie{ 0%,100%{ transform:translate(-61px,35px); } 50%{ transform:translate(0,0); } }
@keyframes orbitDistributeur{ 0%,100%{ transform:translate(61px,35px); } 50%{ transform:translate(0,0); } }

/* ---------- MODULE SECTIONS ---------- */
.module{ max-width:1180px; margin:0 auto; }
.module-head{ max-width:720px; margin-bottom:48px; }
.module-head h2{ font-size:clamp(26px,3.4vw,38px); margin-bottom:14px; }
.module-head p{ font-size:16px; color:var(--ink-soft); line-height:1.6; }
.dark-h{ color:var(--on-dark); }
.dark-p{ color:var(--on-dark-dim); }

.proof-row{ display:grid; grid-template-columns:1.5fr 1fr; gap:28px; align-items:center; margin-bottom:36px; }
.proof-row:has(.shot-wide){ grid-template-columns:1fr; }
.proof-row:has(.shot-wide) .shot-note{ max-width:720px; }

/* two-shots row without a note (side by side) */
.proof-row:not(:has(.shot-note)){ grid-template-columns:1fr 1fr; }

.shot-card{ background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:0 24px 60px -30px rgba(10,22,40,0.25); }
.shot-chrome{ display:flex; align-items:center; gap:6px; padding:11px 14px; background:#F4F6FA; border-bottom:1px solid var(--line); }
.shot-chrome span{ width:9px; height:9px; border-radius:50%; background:#D7DCE5; }
.shot-chrome i{ margin-left:10px; font-style:normal; font-size:11.5px; font-family:var(--font-mono); color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shot-card img{ width:100%; height:auto; display:block; }

.shot-note h3{ font-size:20px; margin-bottom:10px; }
.shot-note p{ font-size:14.5px; line-height:1.65; color:var(--ink-soft); }
.shot-note-dark p{ color:var(--on-dark-dim); }
.shot-note-dark h3{ color:var(--on-dark); }

.capability-list{ list-style:none; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px; }
.capability-list li{ font-size:14px; line-height:1.6; color:var(--ink-soft); padding:20px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.capability-list li strong{ display:block; color:var(--ink); font-size:15px; margin-bottom:6px; }
.capability-list code{ font-family:var(--font-mono); background:var(--blue-light); color:var(--blue-dark); padding:1px 5px; border-radius:4px; font-size:0.92em; }

/* ---------- BREADTH GALLERY ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:8px; }
.gallery-card{ background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 16px 40px -24px rgba(10,22,40,0.22); }
.gallery-card .shot-chrome{ padding:8px 10px; }
.gallery-card .shot-chrome i{ font-size:10.5px; }
.gallery-card img{ width:100%; height:150px; object-fit:cover; object-position:top; display:block; border-bottom:1px solid var(--line); }
.gallery-card figcaption{ padding:12px 14px; font-size:12.5px; line-height:1.5; color:var(--ink-soft); }
.gallery-card figcaption strong{ color:var(--ink); }

/* ---------- FIABILITE (dark section) ---------- */
.module-dark{ background:var(--navy); color:var(--on-dark); max-width:none; padding-left:clamp(20px,6vw,80px); padding-right:clamp(20px,6vw,80px); }
.module-dark .module-head, .module-dark .proof-row, .module-dark .fiabilite-grid, .module-dark .wide-caption{ max-width:1180px; margin-left:auto; margin-right:auto; }
.wide-caption{ font-size:14.5px; line-height:1.7; color:var(--on-dark-dim); margin:-14px 0 36px; }
.module-dark .shot-card{ background:var(--navy-2); border-color:var(--line-dark); }
.module-dark .shot-chrome{ background:rgba(255,255,255,0.03); border-bottom-color:var(--line-dark); }
.module-dark .shot-chrome span{ background:rgba(255,255,255,0.18); }
.module-dark .shot-chrome i{ color:var(--on-dark-mute); }

.fiabilite-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:8px; }
.fiabilite-item{ padding:24px; background:var(--navy-2); border:1px solid var(--line-dark); border-radius:12px; }
.fiabilite-item h3{ font-size:17px; margin-bottom:10px; color:var(--on-dark); }
.fiabilite-item p{ font-size:14px; line-height:1.65; color:var(--on-dark-dim); }
.fiabilite-item em{ display:block; margin-top:8px; color:var(--on-dark-mute); font-style:normal; font-size:12.5px; }

/* ---------- CTA ---------- */
.act-cta{ background:var(--navy); color:var(--on-dark); min-height:70vh; display:flex; align-items:center; justify-content:center; }
.cta-stage{ max-width:720px; text-align:center; display:flex; flex-direction:column; align-items:center; }
.cta-stage h2{ font-size:clamp(28px,4vw,46px); margin-bottom:18px; }
.cta-stage p{ font-size:16px; margin-bottom:32px; max-width:520px; }
.cta-mail{ margin-top:18px; font-size:13.5px; color:var(--on-dark-mute); }
.cta-mail a{ color:#7CB3FF; text-decoration:underline; }

/* ---------- FOOTER ---------- */
.site-footer{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  padding:32px clamp(20px,6vw,80px) 44px; font-size:12.5px; color:var(--muted);
  border-top:1px solid var(--line);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px){
  .proof-row, .proof-row:not(:has(.shot-note)), .proof-row:has(.shot-wide){ grid-template-columns:1fr !important; }
  .capability-list{ grid-template-columns:1fr; }
  .fiabilite-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr 1fr; }
  .topbar-nav{ display:none; }
  .hero-inner{ grid-template-columns:1fr; }
  .hero-visual{ margin-top:12px; }
  .hero-orbit{ max-width:220px; }
  .act-hero{ padding-top:130px; padding-bottom:60px; min-height:auto; }
}

@media (max-width:600px){
  .gallery-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce){
  .hero-glow{ animation:none; }
  .hero-anim{ animation:none; opacity:1; transform:none; }
  .js .reveal{ transition:none; opacity:1; transform:none; }
  .orbit-node{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- LIGHTBOX ---------- */
.shot-card img, .gallery-card img{ cursor:zoom-in; }
.lightbox-overlay{
  position:fixed; inset:0; z-index:3000; background:rgba(4,7,14,0.94);
  display:flex; align-items:center; justify-content:center; padding:56px 24px;
  opacity:0; pointer-events:none; transition:opacity 0.22s ease;
}
.lightbox-overlay.open{ opacity:1; pointer-events:auto; }
.lightbox-img{ max-width:min(92vw,1100px); max-height:88vh; width:auto; border-radius:10px; box-shadow:0 50px 140px rgba(0,0,0,0.6); }
.lightbox-close{
  position:fixed; top:22px; right:24px; width:44px; height:44px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.25); background:rgba(255,255,255,0.08); color:white;
  font-size:22px; line-height:1; cursor:pointer; transition:background 0.2s ease;
}
.lightbox-close:hover{ background:rgba(255,255,255,0.18); }
.lightbox-hint{ position:fixed; bottom:22px; left:50%; transform:translateX(-50%); font-family:var(--font-mono); font-size:11.5px; letter-spacing:0.06em; color:rgba(255,255,255,0.5); }

/* ---------- STATS (sourced figures) ---------- */
.stats-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
.stat-card{ padding:32px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
.stat-number{ font-size:clamp(38px,4.6vw,54px); font-weight:800; letter-spacing:-0.03em; color:var(--blue-dark); line-height:1; margin-bottom:14px; }
.stat-card p{ font-size:14.5px; line-height:1.6; color:var(--ink-soft); margin-bottom:12px; }
.stat-source{ font-size:12px; color:var(--muted); }
.stat-source a{ color:var(--blue-dark); text-decoration:underline; }

/* ---------- AI VISION ---------- */
.ai-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:8px; }
.ai-card{ padding:26px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
.ai-tag{ display:inline-block; font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--blue-dark); background:var(--blue-light); padding:4px 10px; border-radius:20px; margin-bottom:14px; }
.ai-card h3{ font-size:17px; margin-bottom:8px; }
.ai-card p{ font-size:14px; line-height:1.6; color:var(--ink-soft); }
.ai-closing{ margin-top:24px; font-size:15.5px; font-weight:700; color:var(--ink); }

/* ---------- MANIFESTO ---------- */
.manifesto{ background:var(--navy); color:var(--on-dark); text-align:center; padding:130px clamp(20px,6vw,80px); display:flex; flex-direction:column; align-items:center; }
.manifesto-quote{ font-size:clamp(24px,3.6vw,42px); font-weight:800; letter-spacing:-0.02em; line-height:1.3; max-width:880px; margin:0 auto 22px; }
.manifesto-brand{ font-family:var(--font-mono); font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--on-dark-mute); }

/* ---------- TEASER ---------- */
.teaser-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:8px; }
.teaser-card{ padding:30px; background:var(--card); border:1px solid var(--line); border-radius:14px; }
.teaser-badge{ display:inline-block; font-family:var(--font-mono); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--amber); background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.3); padding:4px 10px; border-radius:20px; margin-bottom:14px; }
.teaser-card h3{ font-size:19px; margin-bottom:10px; }
.teaser-card p{ font-size:14.5px; line-height:1.65; color:var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list{ display:flex; flex-direction:column; gap:10px; margin-top:8px; max-width:820px; }
.faq-item{ background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.faq-item summary{ padding:18px 22px; font-size:15.5px; font-weight:700; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:22px; font-weight:400; color:var(--muted); flex:none; transition:transform 0.2s ease; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ padding:0 22px 20px; font-size:14.5px; line-height:1.65; color:var(--ink-soft); }

@media (max-width:900px){
  .stats-grid, .ai-grid, .teaser-grid{ grid-template-columns:1fr; }
}
