/* ============================================================
   ELIPS'PHARMA — Site vitrine
   Charte : Flat Emerald — UNE couleur dominante
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── TOKENS ─── */
:root {
  /* Couleur dominante — Emeraude */
  --em: #059669;
  --em-dark: #065F46;
  --em-darker: #064E3B;
  --em-light: #D1FAE5;
  --em-lighter: #ECFDF5;

  /* Neutres */
  --black: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --gray-900: #0F172A;
  --white: #FFFFFF;

  --font: 'Inter', system-ui, sans-serif;
  --container: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--em); text-decoration: none; }
a:hover { color: var(--em-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--em); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 { color: var(--black); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
.text-em { color: var(--em); }
.text-big { font-size: 1.25rem; color: var(--gray-600); }
.text-small { font-size: 0.875rem; color: var(--gray-500); }

/* ─── LAYOUT ─── */
.container { max-width: var(--container); width: 100%; margin: 0 auto; padding: 0 2rem; }

.section {
  padding: 6rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.section--auto { min-height: auto; }
.section--dark { background: var(--em-darker); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--dark strong { color: var(--white); }
.section--dark p, .section--dark li, .section--dark span { color: rgba(255,255,255,.75); }
.section--dark a { color: var(--em-light); }
.section--dark a:hover { color: var(--white); }
.section--gray { background: var(--gray-50); }
.section--light-em { background: var(--em-lighter); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── LABEL DE SECTION ─── */
.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--em);
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  border: 1.5px solid var(--em);
  border-radius: 100px;
}
.section--dark .label { color: var(--em-light); border-color: rgba(255,255,255,.25); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 100px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--em {
  background: var(--em);
  color: var(--white);
}
.btn--em:hover { background: var(--em-dark); color: var(--white); box-shadow: 0 4px 20px rgba(5,150,105,.35); }

.btn--white {
  background: var(--white);
  color: var(--black);
}
.btn--white:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); color: var(--black); }

.btn--outline {
  background: transparent;
  color: var(--em);
  border: 2px solid var(--em);
}
.btn--outline:hover { background: var(--em); color: var(--white); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn--outline-white:hover { background: var(--white); color: var(--em-darker); border-color: var(--white); }

.btn--lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--em); box-shadow: 0 8px 30px rgba(5,150,105,.08); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--em-lighter);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
}

.card h4 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--gray-500); margin: 0; }

/* ─── BADGE ─── */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--em-lighter);
  color: var(--em-dark);
}

/* ─── TABS ─── */
.tabs-wrap { overflow: hidden; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
}
.tab-btn {
  padding: 0.75rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--em); }
.tab-btn.active { color: var(--em); border-bottom-color: var(--em); }

.tab-panel {
  display: none;
  animation: fadeUp .35s ease;
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2.5rem;
  overflow: hidden;
}
.tab-panel.active { display: block; }

/* ─── ACCORDION ─── */
.accordion-item { border-bottom: 1px solid var(--gray-200); }
.accordion-header {
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .15s;
}
.accordion-header:hover { color: var(--em); }
.accordion-header i { font-size: 0.75rem; color: var(--gray-400); transition: transform .25s; }
.accordion-item.open .accordion-header i { transform: rotate(180deg); color: var(--em); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-body__inner { padding: 0 0 1.5rem; color: var(--gray-600); line-height: 1.8; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 0 var(--gray-200);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-right: 2rem;
}
.nav__logo img { height: 56px; width: auto; }
.nav__logo span {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav--dark .nav__logo span { color: var(--white); }
.nav.scrolled .nav__logo span { color: var(--black); }

.nav__menu { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--em); }
.nav--dark .nav__link { color: rgba(255,255,255,.7); }
.nav--dark .nav__link:hover { color: var(--white); }
.nav.scrolled .nav__link { color: var(--gray-600); }
.nav.scrolled .nav__link:hover, .nav.scrolled .nav__link.active { color: var(--em); }

.nav__cta { margin-left: 1rem; padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.nav__pres-btn {
  margin-left: 0.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--em);
  border: 1.5px solid var(--em);
  border-radius: 100px;
  transition: all .2s;
}
.nav__pres-btn:hover { background: var(--em); color: var(--white); }
.nav--dark .nav__pres-btn { color: var(--white); border-color: rgba(255,255,255,.4); }
.nav--dark .nav__pres-btn:hover { background: var(--white); color: var(--em-darker); border-color: var(--white); }

.nav__toggle {
  display: none;
  font-size: 1.25rem;
  color: var(--gray-600);
  padding: 0.5rem;
}

/* ─── 1. HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--em-darker);
  position: relative;
  overflow: hidden;
}
.hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero .label { color: var(--em-light); border-color: rgba(255,255,255,.2); }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .text-em { color: var(--em-light); }
.hero__sub { font-size: 1.25rem; color: rgba(255,255,255,.7); margin-bottom: 2.5rem; line-height: 1.7; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__slider {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__slide {
  display: none;
  animation: fadeSlide .8s ease;
  width: 100%;
}
.hero__slide.active { display: flex; align-items: center; justify-content: center; }
.hero__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero__slide--logo {
  background: transparent;
}
.hero__slide--logo img {
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  max-width: 80%;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}
/* Decorative shape */
.hero__deco {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: var(--em-dark);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
}

/* ─── 2. KEY FIGURES ─── */
.figures { border-bottom: 1px solid var(--gray-200); }
.figures__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 2rem;
}
.figure__val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--em);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.figure__label { font-size: 0.875rem; color: var(--gray-500); }

/* ─── ABOUT ─── */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__text h2 { margin-bottom: 1.25rem; }
.about__text p { font-size: 1.0625rem; }
.about__list { margin-top: 1.5rem; }
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--gray-700);
}
.about__list li i { color: var(--em); margin-top: 0.2rem; }

.about__card {
  background: var(--em);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.about__card h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.75rem; }
.about__card p { color: rgba(255,255,255,.8); }
.about__founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}
.about__founder {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.about__founder strong { display: block; color: var(--white); font-size: 1rem; }
.about__founder span { font-size: 0.75rem; color: rgba(255,255,255,.6); }

/* ─── CONTEXT ─── */
.riph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.riph {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
  text-align: center;
}
.riph__badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.riph--1 { border-color: #EF4444; }
.riph--1 .riph__badge { background: #EF4444; }
.riph--2 { border-color: #F59E0B; }
.riph--2 .riph__badge { background: #F59E0B; }
.riph--3 { border-color: var(--em); }
.riph--3 .riph__badge { background: var(--em); }

.actors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0; }
.actor {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color .2s;
}
.actor:hover { border-color: var(--em); }
.actor i { font-size: 1.5rem; color: var(--em); margin-bottom: 0.75rem; display: block; }
.actor h5 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.actor p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }

.circuit-steps {
  display: flex;
  gap: 0;
  margin-top: 3rem;
  counter-reset: step;
}
.circuit-step {
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}
.circuit-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--em);
  color: var(--white);
  font-weight: 800;
  font-size: 0.875rem;
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
}
.circuit-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: var(--gray-200);
}
.circuit-step:last-child::after { display: none; }
.circuit-step strong { display: block; font-size: 0.8125rem; color: var(--black); }
.circuit-step span { font-size: 0.6875rem; color: var(--gray-500); }

/* ─── AUDIENCES ─── */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.audience {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all .2s;
  background: var(--white);
}
.audience:hover { border-color: var(--em); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.audience__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--em-lighter);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin: 0 auto 1rem;
}
.audience h4 { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.audience p { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }

/* ─── WORKFLOW ─── */
.workflow-line {
  display: flex;
  gap: 0;
  margin-top: 2rem;
}
.wf-step {
  flex: 1;
  text-align: center;
  padding: 1.5rem 0.5rem;
  position: relative;
}
.wf-step::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-200);
}
.wf-step:first-child::before { left: 50%; }
.wf-step:last-child::before { right: 50%; }
.wf-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--em);
  background: var(--white);
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
}
.wf-step--active .wf-dot { background: var(--em); }
.wf-step--off .wf-dot { border-color: var(--gray-400); }
.wf-label { font-size: 0.75rem; font-weight: 700; color: var(--black); line-height: 1.3; }
.wf-sub { font-size: 0.625rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── FEATURES ─── */
.features__panel { margin-top: 0; overflow: hidden; }
.fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; min-width: 0; }
.fp-desc { min-width: 0; }
.fp-desc h3 { margin-bottom: 0.75rem; }
.fp-desc p { font-size: 0.9375rem; color: var(--gray-600); }
.fp-plus {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  background: var(--em-lighter);
  border-left: 4px solid var(--em);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.5rem;
}
.fp-plus h4 { color: var(--em); font-size: 0.875rem; white-space: nowrap; margin: 0; }
.fp-plus p { font-size: 0.875rem; margin: 0; color: var(--gray-700); }

/* Variant : colonne unique, image centrée 2/3 */
.fp-grid--stacked { grid-template-columns: 1fr; gap: 1.5rem; }
.fp-grid--stacked .fp-visual { max-width: 80%; margin: 0 auto; }
.fp-grid--stacked .fp-desc h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.fp-grid--stacked .fp-desc p { font-size: 0.875rem; }

/* Mockup visuel */
.fp-visual {
  align-self: center;
  min-width: 0;
}
.fp-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 2px 4px -1px rgba(0,0,0,.05),
    0 4px 12px -2px rgba(0,0,0,.06),
    0 0 0 1px rgba(0,0,0,.03);
  overflow: hidden;
}
.fp-mockup__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.fp-mockup__dots {
  display: flex;
  gap: 6px;
}
.fp-mockup__dots::before,
.fp-mockup__dots::after,
.fp-mockup__dots span {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.fp-mockup__dots::before { background: #ff5f57; }
.fp-mockup__dots::after { background: #28c840; }
.fp-mockup__dots span { background: #febc2e; order: -1; }
.fp-mockup__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}
.fp-mockup img {
  display: block;
  width: 100%;
  height: auto;
}
/* Placeholder quand pas encore de screenshot */
.fp-mockup--placeholder .fp-mockup__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 2rem;
  background:
    linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--gray-50) 100%);
  color: var(--gray-300);
}
.fp-mockup--placeholder .fp-mockup__body i { font-size: 2.5rem; }
.fp-mockup--placeholder .fp-mockup__body span { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.03em; }

/* Slider images features */
.fp-slider { position: relative; overflow: hidden; }
.fp-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.fp-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.fp-slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.fp-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: background .2s;
}
.fp-slider-dot.active { background: var(--em); }

.check-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; grid-column: 1 / -1; margin-top: 0.5rem; }
.check-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.625rem 0.875rem;
  background: transparent;
  border: none;
}
.check-item i { color: var(--em); flex-shrink: 0; font-size: 0.75rem; }
.fp-grid--stacked .check-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

/* ─── AI ─── */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-video {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.ai-video video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.ai-video__caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  font-style: italic;
}

.ai-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  color: rgba(255,255,255,.8);
  font-size: 0.9375rem;
}
.ai-features li i { color: var(--em-light); width: 16px; }

/* ─── ARCHITECTURE ─── */
.archi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.archi-stack { display: flex; flex-direction: column; gap: 1rem; }
.archi-layer {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.archi-layer:hover { border-color: var(--em); }
.archi-layer__title { font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--em); margin-bottom: 0.5rem; }
.archi-layer__items { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; }
.archi-layer__items span { padding: 0.2rem 0.625rem; background: var(--gray-50); border-radius: 100px; font-size: 0.75rem; color: var(--gray-600); }
.archi-arrow { text-align: center; color: var(--gray-300); font-size: 1.25rem; }
.archi-details { display: flex; flex-direction: column; gap: 1.25rem; }
.archi-detail { padding: 1.25rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.archi-detail h4 { font-size: 0.9375rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.archi-detail h4 i { color: var(--em); }
.archi-detail p, .archi-detail li { font-size: 0.875rem; color: var(--gray-600); }
.archi-detail ul { margin-top: 0.5rem; }
.archi-detail li { padding: 0.25rem 0 0.25rem 1rem; position: relative; }
.archi-detail li::before { content: ''; position: absolute; left: 0; top: 0.625rem; width: 5px; height: 5px; border-radius: 50%; background: var(--em); }

/* ─── COMPLIANCE TABLE ─── */
.compliance-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; }
.matrix { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.matrix th { background: var(--em-darker); color: var(--white); padding: 0.75rem 1rem; text-align: left; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; }
.matrix td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.matrix tr:nth-child(even) td { background: var(--gray-50); }
.matrix .check-icon { color: var(--em); font-weight: 700; text-align: center; }
.matrix .row-em td { background: var(--em-lighter) !important; font-weight: 600; }

.regs { display: flex; flex-direction: column; gap: 0.75rem; }
.reg {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.reg__icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--em-lighter); color: var(--em); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.875rem; }
.reg h5 { font-size: 0.8125rem; margin-bottom: 0; }
.reg p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }

/* ─── ADVANTAGES ─── */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.adv {
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.adv:hover { border-color: var(--em); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.adv__num { font-size: 0.6875rem; font-weight: 800; color: var(--em); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.adv h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.adv p { font-size: 0.8125rem; color: var(--gray-500); margin: 0; }

/* ─── TESTIMONIALS ─── */
.testi-slider { max-width: 720px; margin: 0 auto; }
.testi { display: none; animation: fadeUp .4s ease; }
.testi.active { display: block; }
.testi__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.testi__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--em);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}
.testi__text { font-size: 1.0625rem; font-style: italic; color: var(--gray-700); line-height: 1.8; margin-bottom: 1.5rem; }
.testi__author { font-weight: 700; color: var(--black); }
.testi__role { font-size: 0.875rem; color: var(--gray-500); }
.testi-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.testi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); cursor: pointer; transition: background .2s; }
.testi-dot.active { background: var(--em); }

/* ─── CLIENTS ─── */
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.clients-list h3 { margin-bottom: 1.25rem; }
.client-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color .15s;
}
.client-item:hover { border-color: var(--em); }
.client-item i { color: var(--em); }
.client-item .badge { margin-left: auto; }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.svc {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all .2s;
  background: var(--white);
}
.svc:hover { border-color: var(--em); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.svc__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--em-lighter); color: var(--em); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1.25rem; }
.svc h4 { margin-bottom: 0.5rem; }
.svc p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--em);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.125rem; max-width: 550px; margin: 0 auto 2rem; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.contact-detail__icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--em-lighter); color: var(--em); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail h5 { font-size: 0.875rem; margin-bottom: 0; }
.contact-detail p { font-size: 0.875rem; color: var(--gray-500); margin: 0; }

.contact-form { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--black); margin-bottom: 0.375rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--black);
  background: var(--gray-50);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--em);
  background: var(--white);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.captcha-error { display: none; color: #dc2626; font-size: 0.8125rem; margin-top: 0.375rem; }
.captcha-error.visible { display: block; }

/* ─── FOOTER ─── */
.footer { background: var(--gray-900); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand p { font-size: 0.8125rem; margin-top: 0.75rem; }
.footer__title { font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gray-400); margin-bottom: 1rem; }
.footer__links li { margin-bottom: 0.375rem; }
.footer__links a { color: rgba(255,255,255,.6); font-size: 0.8125rem; }
.footer__links a:hover { color: var(--em-light); }
.footer__social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.footer__social a:hover { background: var(--em); }
.footer__bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,.3); }

/* ─── PRESENTATION MODE ─── */
body.pres-mode { overflow: hidden; }
body.pres-mode .nav, body.pres-mode .cookie-banner, body.pres-mode .scroll-top { display: none !important; }
body.pres-mode .section, body.pres-mode .hero { scroll-snap-align: start; min-height: 100vh; overflow-y: auto; }
body.pres-mode .section { padding: 3rem 0; }
body.pres-mode .section--auto { padding: 2rem 0; min-height: 100vh; }
body.pres-mode .matrix td { padding: 0.25rem 0.75rem; font-size: 0.7rem; }
body.pres-mode .matrix th { padding: 0.35rem 0.75rem; font-size: 0.625rem; }
body.pres-mode #compliance .reveal:first-child { margin-bottom: 1rem !important; }
body.pres-mode #compliance .text-big { font-size: 0.875rem; margin-bottom: 0; }
body.pres-mode .compliance-grid { gap: 1.5rem; grid-template-columns: 3fr 2fr; align-items: start; }
body.pres-mode .regs { flex-direction: column; flex-wrap: nowrap; gap: 0.4rem; }
body.pres-mode .regs h3 { margin-bottom: 0.5rem !important; font-size: 1rem; }
body.pres-mode .reg { padding: 0.4rem 0.5rem; gap: 0.5rem; }
body.pres-mode .reg__icon { width: 28px; height: 28px; font-size: 0.75rem; }
body.pres-mode .reg h5 { font-size: 0.75rem; }
body.pres-mode .reg p { font-size: 0.675rem; }
body.pres-mode h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
body.pres-mode h3 { font-size: 1.25rem; }
body.pres-mode .adv-grid { grid-template-columns: repeat(4, 1fr); }
body.pres-mode .adv { padding: 1.25rem; }
body.pres-mode .adv p { font-size: 0.75rem; }
body.pres-mode .label { margin-bottom: 0.5rem; }
body.pres-mode .text-big { font-size: 1rem; }
body.pres-mode .riph-grid { gap: 1rem; margin: 2rem 0; }
body.pres-mode .riph { padding: 1.25rem; }
body.pres-mode .riph p { font-size: 0.8125rem; margin: 0; }
body.pres-mode .riph h4 { font-size: 1rem; margin-bottom: 0.375rem; }
body.pres-mode .riph__badge { margin-bottom: 0.5rem; padding: 0.2rem 0.75rem; }
body.pres-mode .actors { gap: 0.75rem; margin: 1.5rem 0; }
body.pres-mode .actor { padding: 1rem 0.75rem; }
body.pres-mode .actor i { font-size: 1.25rem; margin-bottom: 0.5rem; }
body.pres-mode .actor h5 { font-size: 0.8125rem; margin-bottom: 0.2rem; }
body.pres-mode .actor p { font-size: 0.6875rem; }
body.pres-mode .circuit-steps { margin-top: 1.5rem; }
body.pres-mode .circuit-step::before { width: 32px; height: 32px; font-size: 0.75rem; }
body.pres-mode .circuit-step strong { font-size: 0.75rem; }
body.pres-mode .circuit-step span { font-size: 0.625rem; }
/* Features en pres-mode */
body.pres-mode #features { padding: 2.25rem 0; }
body.pres-mode #features .reveal:first-child { margin-bottom: 1.25rem !important; }
body.pres-mode #features .text-big { font-size: 0.9rem; margin-bottom: 0; }
body.pres-mode .features__panel { margin-top: 0; }
body.pres-mode .tab-panel { padding: 1.5rem 1.75rem; min-height: calc(100vh - 12rem); }
body.pres-mode .tabs { gap: 0; }
body.pres-mode .tab-btn { padding: 0.5rem 0.875rem; font-size: 0.75rem; }
body.pres-mode .fp-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
body.pres-mode .fp-grid--stacked { grid-template-columns: 1fr; gap: 1rem; }
body.pres-mode .fp-grid--stacked .fp-visual { max-width: 75%; margin: 0 auto; }
body.pres-mode .fp-desc h3 { font-size: 1rem; margin-bottom: 0.375rem; }
body.pres-mode .fp-desc p { font-size: 0.8rem; line-height: 1.55; }
body.pres-mode .fp-plus {
  padding: 0.5rem 1rem;
  margin-top: 0.625rem;
}
body.pres-mode .fp-plus h4 { font-size: 0.75rem; }
body.pres-mode .fp-plus p { font-size: 0.725rem; }
body.pres-mode .check-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
body.pres-mode .check-item { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
/* Prescriptions tab: un peu plus compact */
body.pres-mode #tab-prescriptions .fp-grid--stacked { gap: 0.625rem; }
body.pres-mode #tab-prescriptions .fp-visual { max-width: 65%; }
body.pres-mode #tab-prescriptions .fp-plus { margin-top: 0.375rem; padding: 0.375rem 0.875rem; }
body.pres-mode #tab-prescriptions .check-list { margin-top: 0.25rem; gap: 0.375rem; }
body.pres-mode #tab-prescriptions .check-item { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
.pres-controls { display: none; position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: rgba(17,24,39,.92); padding: 0.5rem 1rem; border-radius: 100px; z-index: 9999; gap: 0.75rem; align-items: center; }
body.pres-mode .pres-controls { display: flex; }
.pres-controls button { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.pres-controls button:hover { background: var(--em); }
.pres-progress { color: rgba(255,255,255,.5); font-size: 0.75rem; font-weight: 700; min-width: 50px; text-align: center; }
.pres-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--em); z-index: 10000; transition: width .3s; display: none; }
body.pres-mode .pres-bar { display: block; }

/* ─── SCROLL TOP ─── */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: 50%; background: var(--em); color: var(--white); display: flex; align-items: center; justify-content: center; z-index: 900; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: scale(1.1); }

/* ─── COOKIE ─── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; box-shadow: 0 -4px 20px rgba(0,0,0,.08); z-index: 9998; display: none; border-top: 1px solid var(--gray-200); }
.cookie-banner.visible { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cookie-banner p { font-size: 0.8125rem; color: var(--gray-600); margin: 0; }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: all .6s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: .1s; }
.reveal--d2 { transition-delay: .2s; }
.reveal--d3 { transition-delay: .3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4, .audience-grid, .services-grid, .figures__grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .adv-grid, .riph-grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .ai-grid, .archi-grid, .compliance-grid, .clients-grid, .contact-grid,
  .hero__container, .fp-grid { grid-template-columns: 1fr; }
  .fp-visual { order: -1; }
  .fp-grid--stacked .fp-visual { order: unset; max-width: 100%; }
  .check-list { grid-template-columns: repeat(2, 1fr); }
  .actors { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { min-height: auto; padding: 4rem 0; }
  .hero { min-height: 100vh; }
  .nav__menu { position: fixed; inset: 0; background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999; }
  .nav__menu.open { opacity: 1; pointer-events: all; }
  .nav__menu .nav__link { font-size: 1.25rem; color: var(--gray-700) !important; }
  .nav__cta { margin-left: 0; margin-top: 1rem; }
  .nav__pres-btn { margin-left: 0; margin-top: 0.5rem; }
  .nav__toggle { display: block; position: relative; z-index: 1001; }
  .hero__container { padding-top: 5rem; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .grid-2, .audience-grid { grid-template-columns: 1fr; }
  .adv-grid, .services-grid { grid-template-columns: 1fr; }
  .riph-grid { grid-template-columns: 1fr; }
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
  .about__founders { grid-template-columns: 1fr 1fr; }
  .workflow-line, .circuit-steps { flex-wrap: wrap; }
  .wf-step, .circuit-step { flex: 0 0 25%; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.25rem; }
  .g-recaptcha { transform: scale(0.85); transform-origin: 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero__btns { flex-direction: column; align-items: flex-start; }
  .tabs { flex-wrap: wrap; }
  .tab-btn { font-size: 0.75rem; padding: 0.5rem 0.625rem; }
  .tab-panel { padding: 1.5rem 1rem; }
  .fp-plus { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .fp-plus h4 { white-space: normal; }
}
@media (max-width: 480px) {
  .figures__grid { grid-template-columns: 1fr 1fr; }
  .wf-step, .circuit-step { flex: 0 0 50%; }
  .hero__stats { grid-template-columns: 1fr; }
  .actors { grid-template-columns: 1fr; }
  .tab-btn { font-size: 0.625rem; padding: 0.375rem 0.5rem; }
  .tab-panel { padding: 1rem 0.75rem; }
  .contact-form { padding: 1rem; }
  .g-recaptcha { transform: scale(0.77); transform-origin: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }
@media print { .nav, .cookie-banner, .scroll-top, .pres-controls, .pres-bar { display: none !important; } .section { min-height: auto; padding: 2rem 0; } .hero { min-height: auto; } }
