/* AlloXYZ — Fond blanc · Bleu logo #1A3668 · Style Saverr */
:root {
  --brand: #1A3668;
  --brand-light: #234a85;
  --brand-dark: #122648;
  --bg: #ffffff;
  --bg-subtle: #f4f7fb;
  --bg-muted: #eef2f7;
  --bg-card: #ffffff;
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-subtle);
  --bg-dark: var(--brand);
  --accent: #1A3668;
  --accent-dark: #122648;
  --accent-light: #2d5aa0;
  --accent-glow: rgba(26, 54, 104, 0.18);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #059669;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --header-height: clamp(64px, 10vw, 76px);
  --header-height-scrolled: clamp(56px, 8vw, 64px);
  --container-max: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(3.5rem, 8vw, 6rem);
  --transition: 0.3s ease;

  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --motion-reveal: 600ms;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --lift-sm: -2px;
  --lift-md: -4px;
  --slide-up: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 12px 40px rgba(26, 54, 104, 0.14);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: var(--shadow-lg);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
  min-width: 280px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-space); }
#temoignages,
#conversation,
#metiers,
#fonctionnalites,
#faq { background: var(--bg-subtle); }
.section-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(26, 54, 104, 0.08);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-desc {
  color: var(--text-secondary);
  max-width: 640px;
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  transition:
    height var(--motion-base) var(--ease-smooth),
    background var(--motion-base) var(--ease-smooth),
    box-shadow var(--motion-base) var(--ease-smooth),
    backdrop-filter var(--motion-base) var(--ease-smooth);
}
.header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-width: 0;
}
.logo { flex-shrink: 0; }
.logo img {
  height: clamp(52px, 9vw, 68px);
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  transition: height var(--motion-base) var(--ease-smooth);
}
.header.is-scrolled .logo img {
  height: clamp(44px, 7vw, 56px);
}
.nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  align-items: center;
  min-width: 0;
}
.nav a {
  position: relative;
  color: var(--text-secondary);
  font-size: clamp(0.8rem, 1.5vw, 0.92rem);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--motion-base) var(--ease-out);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-base) var(--ease-out);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  align-items: center;
  flex-shrink: 0;
}
.header-actions .btn {
  padding: clamp(0.65rem, 1.5vw, 0.8125rem) clamp(0.875rem, 2vw, 1.5rem);
  font-size: clamp(0.8rem, 1.4vw, 0.92rem);
  white-space: nowrap;
}
.mobile-nav-actions { display: none; }
.menu-toggle {
  display: none;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--motion-base);
}
.menu-toggle:hover { background: var(--bg-subtle); }
.menu-toggle.is-open { background: rgba(26, 54, 104, 0.08); }

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }
.icon-star { width: 1rem; height: 1rem; color: #fbbf24; stroke: none; }

.stat-icon,
.sector-icon,
.preview-icon,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 54, 104, 0.08);
  margin-bottom: 10px;
}
.sector-icon,
.preview-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(26, 54, 104, 0.08);
  margin-bottom: 16px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(26, 54, 104, 0.08);
  margin-bottom: 14px;
}
.feature-icon-sm { margin-bottom: 12px; }

.section-grid { margin-top: 40px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.section-actions-center { justify-content: center; }
.highlight-text {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand);
}
.card-text { color: var(--text-secondary); }
.card-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.card-feature .feature-icon { margin-bottom: 16px; }
.card-feature .card-text { margin-top: 12px; }
.faq-list { margin-top: 40px; max-width: 800px; }
.pricing-grid { align-items: stretch; }
.pricing-card .btn { margin-top: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--motion-base) var(--ease-spring),
    background var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out),
    color var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(var(--lift-sm));
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: scale(0.97); }
.btn-outline {
  border-color: var(--border-strong);
  color: var(--brand);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(26, 54, 104, 0.04);
  transform: translateY(var(--lift-sm));
}
.btn-outline:active { transform: scale(0.97); }

/* Hero */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 55%);
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  will-change: transform;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(26, 54, 104, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 85%, rgba(26, 54, 104, 0.05) 0%, transparent 50%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(26, 54, 104, 0.04), transparent 50%);
  will-change: transform;
}
.hero-full .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--header-height) + clamp(2rem, 5vw, 3rem)) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-top { grid-template-columns: 1.05fr 1fr; }
}
.hero-copy { width: 100%; max-width: none; }
.hero-copy > * {
  opacity: 0;
  transform: translateY(40px);
  animation: hero-enter var(--motion-reveal) var(--ease-out) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0ms; }
.hero-copy > *:nth-child(2) { animation-delay: 80ms; }
.hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.hero-copy > *:nth-child(4) { animation-delay: 240ms; }
@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}
.hero-media { width: 100%; }
.hero-full h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.75rem);
  max-width: none;
}
.hero-full .hero-copy p {
  max-width: none;
  font-size: clamp(1rem, 1.8vw + 0.4rem, 1.2rem);
}
.hero-full .hero-stats {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  width: 100%;
}
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(220px, 40vw, 420px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--bg-subtle), var(--bg));
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.video-placeholder-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform var(--motion-base) var(--ease-spring);
}
.video-placeholder-play:hover { transform: scale(1.05); }
.video-placeholder-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}
.video-placeholder-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 28ch;
}

/* Pages internes (demo, commander, panel) */
.page-hero {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 1.5rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.page-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 500;
}
.page-back:hover { text-decoration: underline; }
.page-section { padding-top: clamp(2rem, 5vw, 3rem); }
.page-form-layout { max-width: 640px; margin-inline: auto; }
.page-form { margin-top: 1rem; }
.page-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}
.page-alert-success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--success);
}
.page-alert-error {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #dc2626;
}
.order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  padding: 0;
}
.order-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.order-step.is-current {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(26, 54, 104, 0.04);
}
.order-step.is-done { color: var(--text-primary); }
.order-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  font-weight: 700;
  font-size: 0.8rem;
}
.order-step.is-current .order-step-num,
.order-step.is-done .order-step-num {
  background: var(--brand);
  color: #fff;
}
.order-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (min-width: 992px) {
  .order-layout { grid-template-columns: minmax(260px, 340px) 1fr; }
}
.order-plans-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.order-plan-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 12px;
  transition: border-color var(--motion-base), box-shadow var(--motion-base);
}
.order-plan-card:hover { border-color: rgba(26, 54, 104, 0.25); }
.order-plan-card.is-selected {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}
.order-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.order-form-wrap {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.order-summary { margin-bottom: 1.25rem; }
.order-summary h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.page-success-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.page-success-icon {
  color: var(--success);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.page-success-card h2 {
  font-family: var(--font-display);
  margin-bottom: 12px;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.panel-card .panel-stat {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand);
  margin: 8px 0;
}
.panel-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 54, 104, 0.08);
  border: 1px solid rgba(26, 54, 104, 0.14);
  color: var(--brand);
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  font-weight: 600;
  margin-bottom: 24px;
  max-width: 100%;
  flex-wrap: wrap;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw + 0.5rem, 3.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}
.hero p {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.12rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  max-width: min(620px, 100%);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 0.875rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.hero-video-note {
  font-size: clamp(0.8rem, 1.5vw, 0.88rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
}
.hero-stats .stat-card {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter var(--motion-reveal) var(--ease-out) forwards;
}
.hero-stats .stat-card:nth-child(1) { animation-delay: 480ms; }
.hero-stats .stat-card:nth-child(2) { animation-delay: 560ms; }
.hero-stats .stat-card:nth-child(3) { animation-delay: 640ms; }
.hero-stats .stat-card:nth-child(4) { animation-delay: 720ms; }
.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out);
}
.stat-card:hover {
  transform: translateY(var(--lift-sm));
  border-color: rgba(26, 54, 104, 0.2);
  box-shadow: var(--shadow-md);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand);
}
.stat-card span { font-size: 0.82rem; color: var(--text-muted); }

/* Cards grid — colonnes fluides selon la largeur disponible */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1rem, 2vw, 1.25rem);
}
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.hero-stats > *,
.footer-grid > *,
.app-preview > *,
.pricing-grid > * {
  min-width: 0;
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--motion-base) var(--ease-out),
    border-color var(--motion-base) var(--ease-out),
    box-shadow var(--motion-base) var(--ease-out);
}
.card:hover {
  transform: translateY(var(--lift-md));
  border-color: rgba(26, 54, 104, 0.18);
  box-shadow: var(--shadow-md);
}
.sector-icon { transition: transform var(--motion-base) var(--ease-spring); }
.card:hover .sector-icon { transform: scale(1.05) rotate(3deg); }

/* Testimonials */
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}
.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author strong { display: block; font-family: var(--font-display); }
.testimonial-author span { font-size: 0.88rem; color: var(--text-muted); }
.testimonial-metric {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Problem / Solution */
.problem-box, .solution-box {
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.problem-box h2, .solution-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-list-spaced { margin: 24px 0 32px; }
.check-list-spaced-sm { margin-top: 16px; }

/* Steps */
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* Sectors — styles handled by .sector-icon above */

/* Pricing */
.pricing-card {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card.featured {
  border-color: var(--brand);
  background: rgba(26, 54, 104, 0.04);
  box-shadow: var(--shadow-glow);
}
@media (min-width: 993px) {
  .pricing-card.featured { transform: scale(1.03); }
}
.pricing-card h3 { font-family: var(--font-display); font-size: 1.3rem; }
.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand);
}
.price small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-features li::before {
  content: '';
  width: 1rem;
  height: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A3668' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-note {
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* App preview placeholders */
.app-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.25rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.app-preview-card {
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(26, 54, 104, 0.2);
  background: var(--bg-card);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.app-preview-card .preview-icon { margin: 0 auto 16px; }
.app-preview-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.app-preview-card p { color: var(--text-muted); font-size: 0.9rem; }

.modal-static-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(26, 54, 104, 0.08);
  color: var(--brand);
  font-size: 0.85rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question span:first-child { flex: 1; }
.faq-toggle {
  color: var(--brand);
  display: inline-flex;
  transition: var(--transition);
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 54, 104, 0.06), rgba(26, 54, 104, 0.02));
  border: 1px solid rgba(26, 54, 104, 0.12);
  box-shadow: var(--shadow-sm);
}
.cta-section .section-desc { margin: 0 auto 28px; }

/* Footer */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 32px;
}
.footer-logo {
  height: clamp(44px, 8vw, 52px);
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 12px;
}
.footer p, .footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer a:hover { color: var(--brand); }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Modal popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
  animation: overlay-in var(--motion-base) var(--ease-out);
}
.modal-popup {
  width: min(520px, calc(100vw - 2 * var(--gutter)));
  max-height: min(90vh, 100dvh);
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-popup:not([hidden]) {
  animation: modal-in var(--motion-slow) var(--ease-spring);
}
@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(var(--slide-up)) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  margin-bottom: 24px;
  padding-right: 32px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  transition: color var(--motion-base), background var(--motion-base);
}
.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}
.modal-popup h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.modal-popup p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.92rem;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 54, 104, 0.1);
}
.form-message {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.form-message.success { color: var(--success); }
.form-message.error { color: #f87171; }

/* Reveal animation */
.section-intro .reveal:nth-child(1) { --reveal-delay: 0ms; }
.section-intro .reveal:nth-child(2) { --reveal-delay: 80ms; }
.section-intro .reveal:nth-child(3) { --reveal-delay: 160ms; }

.reveal {
  opacity: 0;
  transform: translateY(var(--slide-up));
  transition:
    opacity var(--motion-reveal) var(--ease-out),
    transform var(--motion-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-slide-left { transform: translateX(-32px); }
.reveal-slide-right { transform: translateX(32px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Section rhythm */
.section-divider {
  height: 1px;
  max-width: 120px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(0);
  transition: transform var(--motion-slow) var(--ease-out);
}
.section-divider.visible { transform: scaleX(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *,
  .hero-stats .stat-card,
  .reveal,
  .section-divider {
    animation: none !important;
    transition: none !important;
  }
  .hero-copy > *,
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .hero-bg { transform: none !important; }
  .btn:hover,
  .btn:active,
  .card:hover,
  .stat-card:hover {
    transform: none;
  }
}

/* ── Responsive : menu mobile + ajustements par taille ── */

/* Tablettes & petits écrans : menu hamburger */
@media (max-width: 992px) {
  .nav,
  .header-actions { display: none; }

  .menu-toggle { display: inline-flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .nav.open a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    white-space: normal;
  }

  .nav.open a::after { display: none; }

  .nav.open a:hover,
  .nav.open a:active {
    color: var(--brand);
    background: rgba(26, 54, 104, 0.06);
  }

  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    white-space: normal;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .header { z-index: 1001; }

  .pricing-card.featured { order: -1; }
}

/* Mobiles */
@media (max-width: 768px) {
  .hero { min-height: auto; }

  .hero-actions .btn {
    flex: 1 1 100%;
    min-height: 48px;
    justify-content: center;
  }

  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-popup {
    width: 100%;
    max-height: min(92vh, 100dvh);
    padding: 24px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-header { padding-right: 40px; }

  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .hero-badge { padding: 6px 12px; }
  .stat-card { padding: 14px; }
  .stat-card strong { font-size: 1.15rem; }
  .card { padding: clamp(1.1rem, 4vw, 1.375rem); }
  .faq-question { padding: 16px 18px; font-size: 0.95rem; }
  .faq-answer p { padding: 0 18px 16px; }
  .price { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* Mobile paysage */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero-content {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 2rem;
  }
  .nav.open { padding-bottom: 1rem; }
}

/* Grands écrans */
@media (min-width: 1400px) {
  :root { --container-max: 1280px; }
}

/* Écrans larges : footer colonne principale plus large */
@media (min-width: 993px) {
  .footer-grid {
    grid-template-columns: minmax(240px, 2fr) repeat(auto-fit, minmax(160px, 1fr));
  }
}
