/* ═══════════════════════════════════════════════════════════════
   CarnetCare — style.css
   Stack : HTML5 · CSS3 Vanilla — Responsive Desktop/Tablet/Mobile
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ───────────────────────────────── */
:root {
  /* Colors */
  --color-primary:      #1a73e8;
  --color-primary-dark: #0d47a1;
  --color-secondary:    #7c3aed;
  --color-accent:       #06b6d4;
  --color-success:      #10b981;
  --color-warning:      #f59e0b;
  --color-danger:       #ef4444;

  /* Backgrounds */
  --bg-dark:    #050d1a;
  --bg-deep:    #0a1628;
  --bg-card:    rgba(255,255,255,0.05);
  --bg-light:   #f0f7ff;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-light:     #ffffff;
  --text-muted:     rgba(255,255,255,0.6);

  /* Gradients */
  --gradient-hero:    linear-gradient(135deg, #050d1a 0%, #0d47a1 50%, #1a0533 100%);
  --gradient-card:    linear-gradient(135deg, rgba(26,115,232,0.15), rgba(124,58,237,0.15));
  --gradient-premium: linear-gradient(135deg, #7c3aed, #1a73e8);
  --gradient-cta:     linear-gradient(135deg, #1a73e8, #06b6d4);

  /* Spacing */
  --section-pad: clamp(5rem, 8vw, 8rem);
  --container-max: 1200px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: hidden;
  cursor: none; /* replaced by custom cursor */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 3. Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(2.5rem, 6vw, 5rem);  font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem);  font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.4rem;                    font-weight: 600; line-height: 1.3; }
p  { font-size: 1rem; line-height: 1.8; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ── 4. Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-pad) 0; }
.section-dark  { background: var(--bg-deep); }
.section-light { background: var(--bg-light); color: var(--text-primary); }

.text-gradient {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
              background var(--transition-normal), opacity var(--transition-normal);
  will-change: transform, box-shadow;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,115,232,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(26,115,232,0.6); }

.btn-outline {
  background: transparent;
  color:  var(--text-light);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

.btn-premium {
  background: var(--gradient-premium);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-premium:hover { box-shadow: 0 8px 30px rgba(124,58,237,0.6); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.875rem; }

/* ── 6. Custom Cursor ───────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 10000;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease,
              background 0.2s ease, mix-blend-mode 0.2s ease;
  will-change: transform;
  mix-blend-mode: normal;
}
.custom-cursor.hover {
  width: 44px; height: 44px;
  mix-blend-mode: exclusion;
  background: #fff;
}

/* ── 7. Splashscreen ────────────────────────────────────────── */
#splashscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
#splashscreen.exit {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
#splashscreen.hidden {
  visibility: hidden;
  pointer-events: none;
}

#splash-particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: 2rem;
}

/* Logo image */
.splash-logo {
  width: 80px; height: 80px;
  animation: crossPulse 2s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 0 20px rgba(26,115,232,0.8));
}
.splash-logo img { width: 100%; height: 100%; object-fit: contain; }
.splash-logo svg { width: 100%; height: 100%; }

@keyframes crossPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.splash-logo-appear {
  animation: crossAppear 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards,
             crossPulse 2s ease-in-out 0.6s infinite;
  transform: scale(0);
}
@keyframes crossAppear {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Splash title — letter by letter */
.splash-title {
  display: flex;
  gap: 0.08em;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-light);
  overflow: hidden;
}
.splash-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-30px);
  animation: letterDrop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.splash-title .letter-space { width: 0.4em; }

@keyframes letterDrop {
  to { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.splash-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(10px);
  animation: taglineFade 0.6s ease 1.2s forwards;
}
@keyframes taglineFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.splash-loader {
  width: 240px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  animation: taglineFade 0.3s ease 1.4s forwards;
}
.loader-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: var(--gradient-cta);
  animation: loaderFill 2.5s linear 1.5s forwards;
  box-shadow: 0 0 8px var(--color-primary);
}
@keyframes loaderFill {
  to { width: 100%; }
}

/* ECG in splash */
.ecg-splash {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: visible;
}
.ecg-path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px #1a73e8);
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: ecgDraw 2.5s linear 0.5s forwards;
}
@keyframes ecgDraw {
  to { stroke-dashoffset: 0; }
}

/* ── 8. Navigation ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal),
              box-shadow var(--transition-normal);
}
.navbar.scrolled {
  background: rgba(5,13,26,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(26,115,232,0.4);
}
.logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-actions .btn-outline { padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.nav-actions .btn-primary { padding: 0.5rem 1.4rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}
.hamburger:hover { background: rgba(255,255,255,0.15); }

/* Mobile overlay & menu */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1001;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.mobile-overlay.open { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-deep);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); }
.mobile-menu .btn { margin-top: 1rem; width: 100%; justify-content: center; }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}
.mobile-close:hover { background: rgba(255,255,255,0.15); }

/* ── 9. Hero ────────────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  position: relative;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

#hero-particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.hero-text { max-width: 600px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}
.hero-title .highlight {
  background: linear-gradient(90deg, #1a73e8, #7c3aed, #06b6d4, #1a73e8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
  display: inline;
}
@keyframes gradientShift {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.badge:nth-child(1) { animation-delay: 0.8s; }
.badge:nth-child(2) { animation-delay: 1.0s; }
.badge:nth-child(3) { animation-delay: 1.2s; }
@keyframes badgePop {
  to { opacity: 1; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-item { display: flex; flex-direction: column; gap: 0.1rem; }
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Hero iPhone Mockup ───────────────────────────────────── */
.hero-mockup-wrap {
  position: relative;
  flex-shrink: 0;
}

.iphone-hero {
  width: 260px;
  height: 540px;
  background: linear-gradient(145deg, #1a1a1e, #2c2c2e);
  border-radius: 52px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 60px rgba(26,115,232,0.15);
  position: relative;
  overflow: hidden;
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotateY(-6deg) rotateX(2deg); }
  50%      { transform: translateY(-16px) rotateY(-6deg) rotateX(2deg); }
}

/* Notch */
.iphone-hero::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 5;
}

/* Screen area */
.iphone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 46px;
  overflow: hidden;
  background: #050d1a;
}

/* Carousel of app screens */
.screen-carousel {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.screen-slide {
  width: calc(100% / 3);
  height: 100%;
  flex-shrink: 0;
  padding: 40px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Hide scrollbar for webkit browsers */
.screen-slide::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for Firefox */
.screen-slide {
  scrollbar-width: none;
}

/* Shared phone UI elements */
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 0 4px;
  flex-shrink: 0;
}
.phone-greeting {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 0;
}
.phone-date {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

/* Mini cards inside phone */
.phone-mini-card {
  background: linear-gradient(135deg, rgba(26,115,232,0.3), rgba(6,182,212,0.3));
  border: 1px solid rgba(26,115,232,0.3);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-mini-card.purple {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(26,115,232,0.3));
  border-color: rgba(124,58,237,0.3);
}
.phone-card-emoji { font-size: 14px; }
.phone-card-title { font-size: 9px; color: rgba(255,255,255,0.6); }
.phone-card-value { font-size: 11px; font-weight: 700; color: #fff; }

/* Tabbar */
.phone-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.phone-tab { font-size: 14px; opacity: 0.5; }
.phone-tab.active { opacity: 1; }

/* Journal screen */
.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.journal-add-btn {
  font-size: 8px;
  padding: 3px 8px;
  background: var(--color-primary);
  border-radius: 10px;
  color: #fff;
}

.pain-scale-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 6px 0;
  overflow: hidden;
}
.pain-scale-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success), var(--color-warning), var(--color-danger));
  border-radius: 4px;
  width: 70%;
}

.type-pill {
  display: inline-block;
  font-size: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 4px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.type-pill.active {
  background: var(--color-primary);
  color: #fff;
}

/* FAB vert pour Ordonnances */
.ios-fab-green { background: linear-gradient(135deg, #10b981, #059669); }

/* Segmented control */
.ios-seg-ctrl {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 2px;
  margin-bottom: 7px;
  gap: 2px;
}
.ios-seg-btn {
  flex: 1;
  font-size: 7.5px;
  font-weight: 600;
  text-align: center;
  padding: 4px 2px;
  border-radius: 8px;
  color: rgba(255,255,255,0.4);
}
.ios-seg-btn.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Prescription card in list */
.ios-rx-card {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 7px 8px;
  margin-bottom: 5px;
}
.ios-rx-icon {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ios-rx-icon.green  { background: rgba(16,185,129,0.18); }
.ios-rx-icon.gray   { background: rgba(255,255,255,0.08); }
.ios-rx-body   { flex: 1; min-width: 0; }
.ios-rx-name   { font-size: 8.5px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ios-rx-dose   { font-size: 7.5px; color: rgba(255,255,255,0.55); margin-bottom: 1px; }
.ios-rx-meta   { font-size: 7px; color: rgba(255,255,255,0.35); }
.ios-rx-badge  {
  font-size: 6.5px; font-weight: 700;
  padding: 3px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Detail screen — right phone */
.ios-rx-detail-hdr {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
}
.ios-rx-detail-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(16,185,129,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ios-rx-detail-name   { font-size: 10px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ios-rx-detail-status { font-size: 7.5px; color: #10b981; font-weight: 600; }

.ios-rx-info-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}
.ios-rx-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ios-rx-info-row:last-child { border-bottom: none; }
.ios-rx-info-lbl { font-size: 8px; color: rgba(255,255,255,0.4); }
.ios-rx-info-val { font-size: 8px; font-weight: 600; color: #fff; }

/* Reminder rows */
.ios-reminder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ios-reminder-time { font-size: 8px; font-weight: 600; color: rgba(255,255,255,0.7); }
.ios-toggle {
  width: 22px; height: 13px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  position: relative;
}
.ios-toggle::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: left 0.2s;
}
.ios-toggle.on { background: #10b981; }
.ios-toggle.on::after { left: 11px; background: #fff; }

/* Action buttons */
.ios-rx-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.ios-rx-action-btn {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 10px;
  font-size: 8px;
  font-weight: 700;
}
.ios-rx-action-btn.done { background: rgba(16,185,129,0.18); color: #10b981; }
.ios-rx-action-btn.del  { background: rgba(239,68,68,0.15);  color: #ef4444; flex: 0 0 32px; }

/* ── iOS App Screen UI ─────────────────────────────────────── */

/* Accueil — profile row */
.ios-profile-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0 6px;
}
.ios-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ios-hello     { font-size: 10px; font-weight: 700; color: #fff; }
.ios-hello-sub { font-size: 7.5px; color: rgba(255,255,255,0.5); }

/* Accueil — ad banner */
.ios-banner {
  background: linear-gradient(135deg, rgba(26,115,232,0.25), rgba(124,58,237,0.2));
  border: 1px solid rgba(26,115,232,0.3);
  border-radius: 10px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.ios-banner-icon  { font-size: 15px; flex-shrink: 0; }
.ios-banner-title { font-size: 8.5px; font-weight: 600; color: #fff; }
.ios-banner-sub   { font-size: 7px; color: rgba(255,255,255,0.5); }
.ios-banner-dots  { margin-left: auto; font-size: 5.5px; color: rgba(255,255,255,0.35); letter-spacing: 2px; }

/* Accueil — add sensation button */
.ios-add-sensation {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(26,115,232,0.1);
  border: 1px solid rgba(26,115,232,0.3);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 600;
  color: #1a73e8;
}
.ios-add-icon {
  width: 17px; height: 17px;
  background: #1a73e8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

/* Accueil — section label */
.ios-section-lbl { font-size: 9px; font-weight: 700; color: #fff; margin-bottom: 5px; }

/* Accueil — sensation cards */
.ios-sc {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-left-width: 3px;
  border-radius: 9px;
  padding: 6px 8px;
  margin-bottom: 5px;
}
.ios-sc.red    { border-left-color: #ef4444; }
.ios-sc.orange { border-left-color: #f97316; }
.ios-sc-dot    { font-size: 11px; flex-shrink: 0; }
.ios-sc-info   { flex: 1; min-width: 0; }
.ios-sc-name   { font-size: 8.5px; font-weight: 600; color: #fff; }
.ios-sc-meta   { font-size: 7px; color: rgba(255,255,255,0.45); }
.ios-sc-badge  {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700;
  flex-shrink: 0;
}
.red-badge    { background: rgba(239,68,68,0.22); color: #ef4444; }
.orange-badge { background: rgba(249,115,22,0.22); color: #f97316; }
.ios-see-all  { text-align: center; font-size: 8px; color: #1a73e8; font-weight: 600; padding: 4px 0 3px; }

/* Shared — iOS tab bar items */
.ios-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  opacity: 0.4;
}
.ios-tab-item.active { opacity: 1; }
.ios-tab-lbl { font-size: 5.5px; font-weight: 600; color: rgba(255,255,255,0.8); }
.ios-tab-item.active .ios-tab-lbl { color: #1a73e8; }

/* Journal screen */
.ios-nav-title-bar {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 0 0 6px;
}
.ios-searchbar {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 5px 9px;
  margin-bottom: 6px;
  font-size: 7.5px;
  color: rgba(255,255,255,0.35);
}
.ios-filters { display: flex; gap: 4px; margin-bottom: 6px; }
.ios-filter {
  font-size: 7.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.ios-filter.active { background: #1a73e8; color: #fff; }

.ios-limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ios-limit-text  { font-size: 7px; color: rgba(255,255,255,0.4); }
.ios-upgrade-btn { font-size: 7px; font-weight: 700; color: #1a73e8; }

.ios-prog-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 7px;
}
.ios-prog-fill { height: 100%; background: #1a73e8; border-radius: 4px; }

.ios-entry-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  padding: 6px 8px;
  margin-bottom: 5px;
}
.ios-entry-color { width: 3px; height: 26px; border-radius: 3px; flex-shrink: 0; }
.ios-entry-body  { flex: 1; min-width: 0; }
.ios-entry-name  { font-size: 8.5px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.ios-entry-time  { font-size: 7px; color: rgba(255,255,255,0.4); }
.ios-entry-chev  { margin-left: auto; font-size: 14px; color: rgba(255,255,255,0.25); }

.ios-fab {
  position: absolute;
  bottom: 48px; right: 12px;
  width: 26px; height: 26px;
  background: #1a73e8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 300; color: #fff;
  box-shadow: 0 3px 10px rgba(26,115,232,0.55);
  line-height: 1;
}

/* Right phone — Nouvelle sensation form */
.ios-sheet-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ios-sheet-cancel { font-size: 7.5px; color: rgba(255,255,255,0.35); }
.ios-sheet-title  { font-size: 9px; font-weight: 700; color: #fff; }
.ios-sheet-save   { font-size: 7.5px; font-weight: 700; color: #1a73e8; }

.ios-form-lbl {
  font-size: 7.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.ios-body-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.ios-zone {
  font-size: 6.5px;
  font-weight: 600;
  padding: 5px 2px;
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.ios-zone.active {
  background: rgba(26,115,232,0.22);
  border-color: rgba(26,115,232,0.5);
  color: #fff;
}
.ios-type-row { display: flex; gap: 4px; margin-bottom: 8px; }
.ios-type {
  font-size: 7px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.ios-type.active {
  background: rgba(239,68,68,0.22);
  border-color: rgba(239,68,68,0.5);
  color: #fff;
}

.ios-slider-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin-bottom: 3px;
}
.ios-slider-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 4px;
}
.ios-slider-thumb {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.ios-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 6.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.ios-save-btn {
  background: linear-gradient(135deg, #1a73e8, #1558b0);
  border-radius: 10px;
  padding: 8px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-top: 2px;
}

/* ── 10. ECG Separator ──────────────────────────────────────── */
.ecg-separator {
  position: relative;
  height: 60px;
  overflow: hidden;
  background: var(--bg-deep);
}
.ecg-divider {
  width: 100%;
  height: 60px;
  overflow: visible;
}
.ecg-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke: url(#ecgGrad);
  filter: drop-shadow(0 0 6px rgba(26,115,232,0.5));
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
}
.ecg-line.animated { animation: ecgDraw 2s linear forwards; }

/* ── 11. Features Section ───────────────────────────────────── */
.section-features {
  background: var(--bg-deep);
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-header p { color: rgba(255,255,255,0.65); margin-top: 1rem; font-size: 1.05rem; }

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

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  transition: transform var(--transition-normal),
              box-shadow var(--transition-normal),
              border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
  will-change: transform;
  cursor: default;
}

/* Spotlight effect */
.feature-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(26,115,232,0.15), transparent 70%);
  border-radius: 50%;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26,115,232,0.4);
  box-shadow: 0 20px 60px rgba(26,115,232,0.2);
}

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient-card);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  transition: transform var(--transition-normal);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

.feature-card h3 {
  color: var(--text-light);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.feature-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── 12. App Showcase Section ───────────────────────────────── */
.section-showcase {
  background: var(--bg-dark);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Left side — tabs + description */
.showcase-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
  border-radius: 50px;
  width: fit-content;
}
.tab-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-normal);
}
.tab-btn.active {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26,115,232,0.4);
}
.tab-btn:hover:not(.active) { color: #fff; background: rgba(255,255,255,0.06); }

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: tabFadeIn 0.4s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-content h3 { color: #fff; margin-bottom: 0.75rem; font-size: 1.5rem; }
.tab-content p  { color: rgba(255,255,255,0.65); line-height: 1.8; }

/* Right side — single phone */
.showcase-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  position: relative;
}

/* Blob backgrounds */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blob-blue  { width: 300px; height: 300px; background: rgba(26,115,232,0.2);  top: -50px; left: -50px; }
.blob-purple{ width: 250px; height: 250px; background: rgba(124,58,237,0.2); bottom: -30px; right: -30px; }

/* Phone mockup shared */
.iphone-mockup {
  width: 200px;
  height: 420px;
  background: linear-gradient(145deg, #1c1c1e, #2c2c2e);
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow:
    0 50px 100px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 1;
  will-change: transform;
}
.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 22px;
  background: #0a0a0a;
  border-radius: 16px;
  z-index: 5;
}
.iphone-mockup-left {
  animation: floatSingle 6s ease-in-out infinite;
}
@keyframes floatSingle {
  0%,100% { transform: translateY(0) rotateY(-4deg); }
  50%      { transform: translateY(-14px) rotateY(-4deg); }
}

.mockup-screen {
  position: absolute;
  inset: 4px;
  border-radius: 40px;
  background: #050d1a;
  overflow: hidden;
  padding: 36px 10px 10px;
}

/* ── 13. Premium Section ────────────────────────────────────── */
.section-premium {
  background: var(--bg-deep);
  padding: var(--section-pad) 0;
}

/* Toggle */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pricing-toggle span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
.pricing-toggle span.active { color: #fff; }

.toggle-switch {
  position: relative;
  width: 52px; height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: background var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.15);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition-normal);
}
.toggle-switch input:checked + .toggle-track {
  background: var(--gradient-cta);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(24px);
}

.save-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-success);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-normal);
}
.save-badge.visible {
  opacity: 1;
  transform: scale(1);
  animation: pricePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pricePop {
  0%   { transform: scale(0.8); }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.premium {
  background: linear-gradient(135deg, #1a0533 0%, #0d2a6b 100%);
  border: 1px solid rgba(124,58,237,0.5);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(124,58,237,0.25);
}
.pricing-card.premium:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card.premium::before {
  content: '⭐ Le plus populaire';
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-premium);
  border-radius: 20px;
  padding: 5px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.pricing-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.pricing-card.premium .pricing-name { color: rgba(255,255,255,0.8); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  transition: all var(--transition-normal);
}
.price-period {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}
.price-alt {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.pricing-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1.5rem 0;
}

.pricing-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.pricing-feature .check { color: var(--color-success); font-size: 0.9rem; }
.pricing-feature .cross { color: rgba(255,255,255,0.3); font-size: 0.9rem; }
.pricing-feature.disabled { color: rgba(255,255,255,0.3); }

/* ── 14. Testimonials ───────────────────────────────────────── */
.section-testimonials {
  background: var(--bg-dark);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.testimonials-track-wrap {
  overflow-x: auto;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: none;
}
.testimonials-track-wrap::-webkit-scrollbar { display: none; }
.testimonials-track-wrap:active { cursor: grabbing; }

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  width: max-content;
  transition: transform 0.05s linear;
}

.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2.5rem;
  width: 360px;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition-normal);
}
.testimonial-card:hover { border-color: rgba(26,115,232,0.3); }

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: rgba(26,115,232,0.12);
  position: absolute;
  top: -10px; left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.stars { color: var(--color-warning); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.author-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.author-role { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* Slider nav dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.dot.active { width: 24px; border-radius: 4px; background: var(--color-primary); }

/* ── 15. CTA Section ────────────────────────────────────────── */
.section-cta {
  background: var(--gradient-hero);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,115,232,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 1rem; color: #fff; }
.cta-content p  { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }
.cta-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: #000;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
}
.appstore-btn:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.4);
}
.appstore-icon { font-size: 1.6rem; }
.appstore-sub  { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.6); }

/* ── 16. Footer ─────────────────────────────────────────────── */
.footer {
  background: #020912;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.footer-links a {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ── 17. Scroll Animations ──────────────────────────────────── */
[data-animate] {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"]    { transform: translateY(50px); }
[data-animate="fade-left"]  { transform: translateX(-50px); }
[data-animate="fade-right"] { transform: translateX(50px); }
[data-animate="scale-in"]   { transform: scale(0.85); }
[data-animate="fade-up"][data-animate-delay="1"]  { transition-delay: 0.1s; }
[data-animate="fade-up"][data-animate-delay="2"]  { transition-delay: 0.2s; }
[data-animate="fade-up"][data-animate-delay="3"]  { transition-delay: 0.3s; }
[data-animate="fade-up"][data-animate-delay="4"]  { transition-delay: 0.4s; }
[data-animate="fade-up"][data-animate-delay="5"]  { transition-delay: 0.5s; }
[data-animate="scale-in"][data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate="scale-in"][data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate="scale-in"][data-animate-delay="3"] { transition-delay: 0.3s; }

[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── 18. Accessibility ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .iphone-hero, .iphone-mockup-left { animation: none !important; }
  body { cursor: auto !important; }
  .custom-cursor { display: none !important; }
}

/* ── 19. Responsive ─────────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mockup-wrap { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-phones { margin-top: 2rem; }
  .custom-cursor { display: none; }
  body { cursor: auto; }
}

/* Tablet — ≤ 768px */
@media (max-width: 768px) {
  .navbar { height: 60px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-outline { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.premium { transform: scale(1); }
  .pricing-card.premium:hover { transform: translateY(-4px); }
  .showcase-phones { gap: 1rem; }
  .iphone-mockup { width: 160px; height: 340px; }
  .iphone-mockup::before { width: 56px; height: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile — ≤ 480px */
@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .features-grid { grid-template-columns: 1fr; }
  .showcase-phones { flex-direction: column; align-items: center; }

  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .testimonial-card { width: 290px; padding: 1.75rem; }
  .cta-badges { flex-direction: column; align-items: center; }
  .pricing-toggle { flex-wrap: wrap; justify-content: center; }
  .section-hero { padding-top: 60px; }
}

/* Large desktop — ≥ 1400px */
@media (min-width: 1400px) {
  :root { --container-max: 1320px; }
}

/* ── 20. FAQ ────────────────────────────────────────────────── */
.section-faq {
  background: var(--bg-deep);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-normal);
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 12px; }

.faq-question[aria-expanded="true"] .faq-icon {
  background: rgba(26, 115, 232, 0.2);
  border-color: rgba(26, 115, 232, 0.4);
  transform: rotate(45deg);
}
.faq-question[aria-expanded="true"] {
  color: var(--color-accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer.is-open {
  grid-template-rows: 1fr;
}
.faq-answer > p,
.faq-answer > div {
  overflow: hidden;
}
.faq-answer p {
  padding: 0 0.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.faq-answer p a {
  color: var(--color-accent);
  text-decoration: underline;
}
.faq-answer p strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Wrapper interne pour l'animation grid */
.faq-answer-inner {
  overflow: hidden;
}

/* Formulaire de contact FAQ */
.faq-contact {
  max-width: 760px;
  margin: 4rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-contact-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 0 0.4rem;
}
.faq-contact-sub {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.form-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.35);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group select option {
  background: #0a1628;
  color: var(--text-light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(26,115,232,0.6);
  background: rgba(26,115,232,0.06);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.form-submit-btn {
  flex-shrink: 0;
}
.form-privacy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
}

/* ── 21. Modales Légales ─────────────────────────────────────── */

/* Overlay */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 9, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.legal-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Boîte modale */
.legal-modal {
  background: linear-gradient(160deg, #0d1f3c 0%, #0a1628 60%, #12082a 100%);
  border: 1px solid rgba(26, 115, 232, 0.25);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.legal-modal-overlay.is-open .legal-modal {
  transform: translateY(0) scale(1);
}

/* En-tête */
.legal-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.legal-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid rgba(26, 115, 232, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.legal-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
  flex: 1;
}
.legal-modal-updated {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.legal-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Corps scrollable */
.legal-modal-body {
  overflow-y: auto;
  padding: 1.75rem 2rem 2rem;
  scroll-behavior: smooth;
}
.legal-modal-body::-webkit-scrollbar {
  width: 5px;
}
.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.legal-modal-body::-webkit-scrollbar-thumb {
  background: rgba(26, 115, 232, 0.35);
  border-radius: 4px;
}

/* Typography dans la modale */
.legal-modal-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(26, 115, 232, 0.15);
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
}
.legal-modal-body ul {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}
.legal-modal-body li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.25rem;
}
.legal-modal-body strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.legal-modal-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Bloc info */
.legal-info-block {
  background: rgba(26, 115, 232, 0.07);
  border: 1px solid rgba(26, 115, 232, 0.2);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.875rem 1rem;
  margin: 0.75rem 0;
}
.legal-info-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* Badge sécurité dans RGPD */
.legal-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

/* Table dans mentions légales */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0;
}
.legal-table th,
.legal-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}
.legal-table th {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

/* Footer de la modale */
.legal-modal-footer {
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Liens légaux dans le footer du site — survol avec underline */
.footer-links a[data-legal] {
  cursor: pointer;
}
.footer-links a[data-legal]:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Bouton-lien inline dans contenu modale */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

/* Responsive modale */
@media (max-width: 768px) {
  .legal-modal-overlay { padding: 0.75rem 0.5rem; align-items: flex-end; }
  .legal-modal {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .legal-modal-header { padding: 1.25rem 1.25rem 1rem; }
  .legal-modal-body { padding: 1.25rem; }
  .legal-modal-updated { display: none; }
}
@media (max-width: 480px) {
  .legal-modal-header h2 { font-size: 1.05rem; }
}
