/* ==========================================================================
   Telatel Telecom — Design System v2
   Palette: teal #72cdb8 dominant + marine #042081 dark sections
   ========================================================================== */

/* ---------- Fonts self-hosted ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/manrope-v15-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-v13-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-v13-latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-v13-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/jetbrains-mono-v13-latin-500.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --brand: #72cdb8;
  --brand-hover: #5ab8a2;
  --brand-deep: #3a9882;
  --brand-50: #e8f6f2;
  --brand-100: #cce9df;

  --marine: #042081;
  --marine-light: #1a3590;
  --blue-accent: #4a90e2;

  /* Neutrals */
  --text: #17191f;
  --text-muted: #4a4a4a;
  --text-light: #9b9b9b;
  --bg: #ffffff;
  --bg-alt: #f1f4f8;
  --border: #dfe5ee;

  /* States */
  --success: #3a9882;
  --warning: #f5a623;
  --danger: #d0021b;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-btn: 12px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-1: 0 1px 3px rgba(4,32,129,.06), 0 1px 2px rgba(4,32,129,.04);
  --sh-2: 0 14px 32px -14px rgba(4,32,129,.18), 0 6px 16px -6px rgba(4,32,129,.08);
  --sh-3: 0 40px 80px -30px rgba(4,32,129,.30), 0 24px 48px -24px rgba(114,205,184,.20);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 280ms cubic-bezier(.16, 1, .3, 1);
  --t-slow: 600ms cubic-bezier(.16, 1, .3, 1);

  /* Typography */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --container-px: 32px;
}

@media (max-width: 768px) {
  :root { --container-px: 20px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) { body { font-size: 16px; } }

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-deep); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--marine); }

/* ---------- Reduced motion ---------- */
@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;
  }
}

/* ---------- Focus visible ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link (entièrement hors écran tant qu'on ne le focus pas) ---------- */
.skip-link {
  position: fixed;
  top: 0; left: 0;
  background: var(--marine);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

/* Outline sur le logo : on l'enlève pour éviter le trait bleu rémanent au clic */
.site-header__logo:focus,
.site-header__logo:focus-visible { outline: none; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section { padding-top: 96px; padding-bottom: 96px; }
.section--lg { padding-top: 128px; padding-bottom: 128px; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-light) 50%, var(--blue-accent) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark .eyebrow { color: var(--brand); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.78); }

@media (max-width: 768px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--lg { padding-top: 80px; padding-bottom: 80px; }
}

.halo-teal {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, var(--brand-100) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--marine);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
h1 { font-size: 64px; line-height: 1.05; }
h2 { font-size: 44px; line-height: 1.1; }
h3 { font-size: 26px; line-height: 1.2; font-weight: 600; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
}

p { margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--text-muted); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand-deep) 0%, var(--marine) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  transition: all var(--t-base);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 52px;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: var(--marine); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--brand-hover); color: var(--marine); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: #fff; border-color: var(--brand-deep); color: var(--brand-deep); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-deep); }

.btn-ghost { background: transparent; color: var(--brand-deep); padding-left: 0; padding-right: 0; min-height: auto; position: relative; }
.btn-ghost:hover { color: var(--brand-hover); }
.btn-ghost::after { content: ''; position: absolute; display: block; width: 0; height: 1.5px; background: currentColor; transition: width var(--t-base); bottom: 4px; left: 0; }
.btn-ghost:hover::after { width: 100%; }

.section--dark .btn-primary { background: var(--brand); color: var(--marine); }
.section--dark .btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.section--dark .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }

.btn-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--marine); color: var(--marine);
  background: transparent; transition: all var(--t-base);
}
.btn-phone svg { width: 16px; height: 16px; color: var(--brand-deep); }
.btn-phone:hover { background: var(--brand-50); color: var(--marine); }

/* ==========================================================================
   Badges & pills
   ========================================================================== */
.badge-partner {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-pill);
  padding: 10px 18px 10px 14px;
  box-shadow: var(--sh-1);
  font-size: 14px; font-weight: 600;
  color: var(--marine);
}
.badge-partner__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: badge-partner-pulse 2s ease-in-out infinite;
}
@keyframes badge-partner-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(114,205,184,.4); }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 0 8px rgba(114,205,184,0); }
}
.badge-partner__logos { display: inline-flex; align-items: center; gap: 4px; }
.badge-partner__logos img { height: 18px; width: auto; }

.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px; font-weight: 500;
  color: var(--marine);
}
.trust-pill svg { width: 16px; height: 16px; color: var(--brand-deep); }

.trust-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand-50);
  color: var(--brand-deep);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  margin: 4px;
}

/* ==========================================================================
   Browser frame (pour captures produit)
   ========================================================================== */
.browser-frame {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-3);
  overflow: hidden;
  transition: transform var(--t-slow);
}
.browser-frame--tilt { transform: rotate(1deg); }
.browser-frame--tilt:hover { transform: rotate(0) scale(1.02); }

.browser-frame__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--border);
}
.browser-frame__dots { display: inline-flex; gap: 6px; }
.browser-frame__dots span { width: 12px; height: 12px; border-radius: 50%; }
.browser-frame__dots span:nth-child(1) { background: #ff5f57; }
.browser-frame__dots span:nth-child(2) { background: #febc2e; }
.browser-frame__dots span:nth-child(3) { background: #28c840; }

.browser-frame__url {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}
.browser-frame__url svg { width: 12px; height: 12px; color: var(--success); }

.browser-frame__body {
  position: relative;
  background: #f8fafc;
  min-height: 320px;
}
.browser-frame__body img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  position: relative;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--bg-alt);
  padding: 32px;
  transition: all var(--t-base);
  box-shadow: var(--sh-1);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  border-radius: var(--r-md) var(--r-md) 0 0;
  opacity: 0;
  transition: opacity var(--t-base);
}
.card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--brand-50);
  border-radius: var(--r-sm);
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; color: var(--brand-deep); stroke-width: 1.75; }
.card h3 { margin-top: 0; }
.card p { color: var(--text-muted); margin-bottom: 16px; }
.card__link { font-weight: 600; color: var(--brand-deep); font-size: 15px; }

.card--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.card--horizontal .card__content { padding: 40px; }
.card--horizontal .card__visual { background: var(--bg-alt); position: relative; }
@media (max-width: 768px) {
  .card--horizontal { grid-template-columns: 1fr; }
  .card--horizontal .card__content { padding: 28px; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ accordéon
   ========================================================================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  color: var(--marine);
  text-align: left; cursor: pointer;
}
.faq__question::after {
  content: '+';
  font-size: 28px; font-weight: 400;
  color: var(--brand-deep);
  transition: transform var(--t-base);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }

.faq__answer { padding: 0 0 24px; color: var(--text-muted); line-height: 1.7; }

/* Remove default details marker */
summary.faq__question { list-style: none; }
summary.faq__question::-webkit-details-marker { display: none; }

/* ==========================================================================
   Pricing tabs
   ========================================================================== */
.pricing-tabs {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  padding: 6px;
  margin-bottom: 48px;
}
.pricing-tabs__btn {
  background: transparent; border: none;
  padding: 12px 24px;
  font-weight: 600; font-size: 15px;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: all var(--t-base);
}
.pricing-tabs__btn:hover:not([aria-selected="true"]) { color: var(--marine); }
.pricing-tabs__btn:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.pricing-tabs__btn[aria-selected="true"] {
  background: #fff;
  color: var(--marine);
  box-shadow: var(--sh-1);
}

/* Pricing card */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
}
.pricing-card--featured {
  border: 2px solid var(--brand);
  box-shadow: var(--sh-2);
  transform: translateY(-8px);
}
.pricing-card__badge {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--marine);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pricing-card__name {
  font-size: 18px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  color: var(--marine);
  line-height: 1; margin: 0 0 8px;
}
.pricing-card__price small {
  font-size: 17px; font-weight: 400;
  color: var(--text-muted);
}
.pricing-card__features {
  list-style: none; padding: 24px 0; margin: 24px 0;
  border-top: 1px solid var(--border);
}
.pricing-card__features li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text); font-size: 15px;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--brand-deep); font-weight: 700;
}

/* ==========================================================================
   Header sticky
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.site-header--scrolled { border-bottom-color: var(--border); box-shadow: var(--sh-1); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 24px;
}
.site-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__logo img { height: 36px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 15px;
  color: var(--text);
  transition: all var(--t-fast);
}
.site-nav a:hover { background: var(--bg-alt); color: var(--marine); }
.site-nav a.active { color: var(--brand-deep); }

.site-header__cta { display: inline-flex; align-items: center; gap: 12px; }

.site-header__burger { display: none; background: transparent; border: none; padding: 8px; }
.site-header__burger svg { width: 24px; height: 24px; color: var(--marine); }

@media (max-width: 1024px) {
  .site-nav, .site-header__cta { display: none; }
  .site-header__burger { display: inline-flex; }

  /* CRITIQUE : retire backdrop-filter qui crée un containing block sur iOS Safari
     et empêche les descendants .site-nav/.site-header__cta en position:fixed
     de se positionner par rapport au viewport. */
  .site-header {
    --header-h: 68px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Overlay nav : sous le header, jusqu'à la zone CTA en bas */
  .site-header[data-mobile-open="true"] .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 96px;
    background: #fff;
    padding: 24px var(--container-px) 16px;
    display: flex; flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 49;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .site-header[data-mobile-open="true"] .site-nav a {
    padding: 16px 18px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    color: var(--marine);
  }
  .site-header[data-mobile-open="true"] .site-nav a:hover,
  .site-header[data-mobile-open="true"] .site-nav a.active {
    background: var(--brand-50);
    color: var(--brand-deep);
  }

  /* CTA : barre fixe en bas du viewport, séparée de la nav */
  .site-header[data-mobile-open="true"] .site-header__cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 16px var(--container-px) max(16px, env(safe-area-inset-bottom));
    display: flex; flex-direction: row;
    gap: 12px;
    z-index: 49;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }
  .site-header[data-mobile-open="true"] .site-header__cta > * { flex: 1; }
  .site-header[data-mobile-open="true"] .site-header__cta .btn-phone {
    justify-content: center;
  }

  /* Pas de scroll du body quand le menu est ouvert */
  body:has(.site-header[data-mobile-open="true"]) { overflow: hidden; }
}

/* Sur smartphone strict, le header est plus compact */
@media (max-width: 640px) {
  .site-header { --header-h: 56px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(135deg, var(--marine) 0%, var(--marine-light) 50%, var(--blue-accent) 100%);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(114,205,184,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative; z-index: 1;
}
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.site-footer__brand p { color: rgba(255,255,255,0.78); font-size: 14px; }
.site-footer__col h4 {
  color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: 10px; }
.site-footer__col a {
  color: rgba(255,255,255,0.78); font-size: 14px;
  transition: color var(--t-fast);
}
.site-footer__col a:hover { color: var(--brand); }

.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.6);
  position: relative; z-index: 1;
}
.site-footer__legal-links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__legal-links a { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(.16,1,.3,1), transform 600ms cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Hero split (2 colonnes)
   ========================================================================== */
.hero-split {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding-top: 64px; padding-bottom: 96px;
}
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
}
.hero-split__content h1 { margin-bottom: 24px; }
.hero-split__content .lead { color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 540px; }
.hero-split__ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-split__badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   CTA final section
   ========================================================================== */
.cta-final { position: relative; padding: 96px 0; overflow: hidden; }
.cta-final__halo {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--brand-100) 0%, transparent 60%);
  opacity: 0.6; pointer-events: none; z-index: 0;
}
.cta-final__inner {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.cta-final h2 { font-size: 44px; line-height: 1.1; }
.cta-final .lead { color: var(--text-muted); margin-bottom: 36px; }

/* Carte formulaire centrée, layout vertical aéré */
.cta-final__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 48px rgba(4, 32, 129, 0.12);
  border: 1px solid rgba(0,0,0,0.04);
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}
.cta-final__form input {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--bg-alt);
  transition: all 0.15s;
}
.cta-final__form input:focus {
  background: #fff;
  border-color: var(--brand-deep);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-50);
}
.cta-final__form input::placeholder { color: var(--text-light); }
.cta-final__form .btn {
  min-height: 52px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .cta-final h2 { font-size: 30px; }
  .cta-final__form { padding: 24px; }
}

/* ==========================================================================
   Logos clients strip (marquee)
   ========================================================================== */
.logos-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-strip__inner {
  display: flex; gap: 72px; align-items: center;
  animation: marquee 45s linear infinite;
  width: max-content;
}
.logos-strip__label {
  color: var(--text-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.logos-strip img {
  height: 44px; width: auto; max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter var(--t-base);
}
.logos-strip img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-strip__inner { animation: none; }
}

/* ==========================================================================
   CRM grid 6x2
   ========================================================================== */
.crm-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 16px; margin-top: 48px;
}
.crm-grid__item {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 16px;
  min-height: 100px;
  transition: all var(--t-base);
}
.crm-grid__item:hover {
  border-color: var(--brand);
  box-shadow: var(--sh-1);
  transform: translateY(-2px);
}
.crm-grid__item img { max-height: 36px; max-width: 100%; }
@media (max-width: 1024px) { .crm-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .crm-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Testimonial card
   ========================================================================== */
.testimonial {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute; top: 8px; left: 24px;
  font-family: var(--font-display);
  font-size: 80px; line-height: 1;
  color: var(--brand-100); font-weight: 700;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 500;
  color: var(--marine); line-height: 1.4;
  margin: 24px 0; position: relative; z-index: 1;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--marine));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.testimonial__name { font-weight: 600; color: var(--marine); }
.testimonial__role { font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   Stats grid
   ========================================================================== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stats-grid__item { position: relative; z-index: 1; }
.stats-grid__number {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stats-grid__label {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid__number { font-size: 40px; }
}

/* ==========================================================================
   Utility: visually hidden (sr-only)
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Steps frieze (4 étapes numérotées)
   ========================================================================== */
.steps-frieze {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-frieze::before {
  content: '';
  position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--brand-100);
  z-index: 0;
}
.steps-frieze__item { position: relative; z-index: 1; text-align: center; }
.steps-frieze__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--brand);
  color: var(--marine);
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: var(--sh-1);
}
.steps-frieze h4 { margin-bottom: 8px; }
.steps-frieze p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 768px) {
  .steps-frieze { grid-template-columns: 1fr; gap: 32px; }
  .steps-frieze::before { display: none; }
}

/* Tag cloud variant */
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 720px; margin: 0 auto; }
.tag-cloud .tag { font-size: 15px; padding: 10px 18px; }

/* ==========================================================================
   Segment pill (badge "Conçu pour télésecrétariats" en haut des pages)
   ========================================================================== */
.segment-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--brand-50);
  color: var(--brand-deep);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--brand-100);
}
.segment-pill svg { width: 16px; height: 16px; }

/* ==========================================================================
   Feature item — alternative pour pages segment (icone + titre + desc)
   Plus aere que .card, idéal pour lister 6 features sur une page produit.
   ========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
}
.feature-row__item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.feature-row__item:first-child,
.feature-row__item:nth-child(2) { border-top: none; }
.feature-row__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border-radius: var(--r-sm);
}
.feature-row__icon svg { width: 24px; height: 24px; color: var(--brand-deep); stroke-width: 1.75; }
.feature-row__body h3 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--marine);
}
.feature-row__body p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Dashboard mockup — version HTML/CSS pour placeholders riches
   Utilisable dans .browser-frame__body en attendant les vraies captures.
   ========================================================================== */
.dash-mock {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  height: 100%;
  background: var(--bg-alt);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: left;
  color: var(--text);
}
.dash-mock__nav {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f4f8 100%);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.dash-mock__nav-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); font-weight: 700;
  padding: 8px 8px 4px;
}
.dash-mock__nav-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.dash-mock__nav-item--active {
  background: var(--brand-50);
  color: var(--brand-deep);
  font-weight: 600;
}
.dash-mock__nav-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.dash-mock__main { padding: 20px 24px; overflow: hidden; }
.dash-mock__title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--marine);
  margin: 0 0 16px;
}
.dash-mock__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.dash-mock__stat {
  background: #fff; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border);
}
.dash-mock__stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); font-weight: 600;
}
.dash-mock__stat-value {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--marine);
  margin-top: 2px;
}
.dash-mock__stat-value--success { color: var(--brand-deep); }

/* Agent card (utilisée dans supervision call-center mockup) */
.agent-mock {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.agent-mock__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--marine));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.agent-mock__status {
  margin-left: auto;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.agent-mock__status--online { background: #d1fae5; color: #065f46; }
.agent-mock__status--call { background: #dbeafe; color: #1e40af; }
.agent-mock__status--pause { background: #fef3c7; color: #92400e; }

/* ==========================================================================
   ============   MOBILE RESPONSIVE — overrides ciblés iPhone/Android   ======
   ========================================================================== */

/* Smartphones (≤ 768px) — ajustements génériques + correctifs */
@media (max-width: 768px) {

  /* Largeur de container plus respirante en bord d'écran */
  :root { --container-px: 18px; }

  /* Hero — empilement systématique même quand inline-styles forcent un 2-col */
  .hero-split[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding-top: 32px !important;
    padding-bottom: 48px !important;
  }
  .hero-split__content h1 { font-size: 32px; line-height: 1.1; }
  .hero-split__content .lead { font-size: 16px; }
  .hero-split__ctas { width: 100%; }
  .hero-split__ctas .btn { width: 100%; }

  /* Boutons toujours bien tappables (44px iOS guideline) */
  .btn { min-height: 48px; padding: 12px 22px; font-size: 15px; }
  .btn-phone { padding: 10px 14px; font-size: 14px; }

  /* En-tête : nav mobile plein écran déjà géré, on assure la lisibilité */
  .site-header__inner { padding-top: 8px; padding-bottom: 8px; }
  .site-header__logo img { height: 32px; width: auto; }

  /* Containers 2 colonnes inline → empilement (briques d'index, telya, etc.)
     Note : on couvre les variantes avec et sans espace après les deux-points,
     l'attribut [style] est sensible à l'écriture exacte du HTML. */
  .container > [style*="grid-template-columns:1fr 1.2fr"],
  .container > [style*="grid-template-columns:1.2fr 1fr"],
  .container > [style*="grid-template-columns:1.5fr 1fr"],
  .container > [style*="grid-template-columns:1.1fr 1fr"],
  .container > [style*="grid-template-columns:1fr 1.1fr"],
  .container > [style*="grid-template-columns:1fr 1fr"],
  .container > [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Card-grid avec inline style 2 colonnes — sécurité supplémentaire */
  .card-grid[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Tables comparatives (telephonie.html, call-center.html) → scroll horizontal */
  .container table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
  }
  .container table td,
  .container table th {
    padding: 12px 14px !important;
    font-size: 13px !important;
  }

  /* Browser frame — on neutralise la rotation qui peut déborder */
  .browser-frame--tilt { transform: none; }
  .browser-frame--tilt:hover { transform: scale(1.005); }
  .browser-frame__url { font-size: 11px; padding: 5px 10px; max-width: 220px; }
  .browser-frame__body { min-height: 240px; }

  /* Dashboard mockup — sidebar masquée sur mobile (gain de place) */
  .dash-mock { grid-template-columns: 1fr; font-size: 11px; }
  .dash-mock__nav { display: none; }
  .dash-mock__main { padding: 14px 16px; }
  .dash-mock__title { font-size: 15px; margin-bottom: 12px; }
  .dash-mock__stats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
  .dash-mock__stat { padding: 8px 10px; }
  .dash-mock__stat-value { font-size: 17px; }

  /* Pricing tabs — scroll horizontal si trop d'onglets pour la largeur */
  .pricing-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    padding: 4px;
    margin-bottom: 32px;
    scrollbar-width: none;
  }
  .pricing-tabs::-webkit-scrollbar { display: none; }
  .pricing-tabs__btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Pricing cards — un peu plus serré */
  .pricing-card { padding: 24px; }
  .pricing-card__price { font-size: 36px; }

  /* Logos strip — défilement un peu plus rapide, logos plus petits */
  .logos-strip { padding: 24px 0; }
  .logos-strip__inner { gap: 40px; animation-duration: 35s; }
  .logos-strip img { height: 32px; max-width: 110px; }
  .logos-strip__label {
    font-size: 11px;
    padding-right: 12px;
  }

  /* Stats grid (section foncée) */
  .stats-grid__number { font-size: 36px !important; }
  .stats-grid__label { font-size: 12px !important; }

  /* CTA finale — formulaire compact */
  .cta-final { padding: 64px 0; }
  .cta-final h2 { font-size: 28px; }
  .cta-final__form { padding: 12px; }
  .cta-final__form input { padding: 12px 14px; font-size: 15px; }

  /* Feature row — supprime la règle "no border on first 2 children" sur 1-col */
  .feature-row__item:nth-child(2) { border-top: 1px solid var(--border); }

  /* Cards — coins moins agressifs */
  .card { padding: 24px; }
  .card h3 { font-size: 19px; }

  /* Témoignages */
  .testimonial { padding: 24px; }
  .testimonial__quote { font-size: 15px; }

  /* Site-header CTA dans menu burger — bouton démo prend toute la largeur */
  .site-header[data-mobile-open="true"] .site-header__cta { padding-top: 8px; border-top: 1px solid var(--border); }
  .site-header[data-mobile-open="true"] .site-header__cta .btn { width: 100%; }
  .site-header[data-mobile-open="true"] .btn-phone { width: 100%; justify-content: center; }

  /* Footer — bottom bar plus naturel */
  .site-footer { padding: 56px 0 24px; }
  .site-footer__grid { margin-bottom: 40px; }
  .site-footer__bottom { font-size: 12px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer__legal-links { gap: 16px; }

  /* Mentions légales — typo plus douce */
  .legal-prose h2 { font-size: 20px !important; margin: 32px 0 12px !important; }
  .legal-prose { font-size: 15px !important; }

  /* Hero-split visual — empêche l'image d'être tronquée */
  .hero-split__visual { width: 100%; min-width: 0; }
  .hero-split__visual .browser-frame { width: 100%; }
  .hero-split__visual img { width: 100%; height: auto; }
}

/* Très petits écrans (iPhone SE / Galaxy A03) ≤ 380px */
@media (max-width: 380px) {
  :root { --container-px: 14px; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 24px !important; }
  .hero-split__content h1 { font-size: 28px; }
  .pricing-card__price { font-size: 32px; }
  .stats-grid__number { font-size: 30px !important; }
  .browser-frame__url { font-size: 10px; max-width: 180px; }
  .site-header__logo img { height: 28px; }
  .btn { font-size: 14px; padding: 11px 18px; }
  .pricing-tabs__btn { padding: 9px 12px; font-size: 13px; }
}

/* Touch device — désactive les hover transforms qui restent collés au tap */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--sh-1); }
  .browser-frame--tilt:hover { transform: none; }
  .btn-primary:hover { transform: none; }
}

/* ===========================================================================
   Widget "A lire sur notre blog" — carousel au-dessus du footer
   Scroll-snap natif (swipe mobile gratuit) + fleches prev/next desktop
   Cache par defaut (display:none), JS revele apres fetch reussi
   =========================================================================== */
.latest-articles {
  padding: 56px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.latest-articles__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.latest-articles__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.latest-articles__link {
  color: #6366f1;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.latest-articles__link:hover { text-decoration: underline; }

/* --- Carrousel --- */
.latest-articles__carousel {
  position: relative;
}
.latest-articles__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;             /* Firefox */
  -ms-overflow-style: none;          /* IE/Edge */
  padding-bottom: 6px;
}
.latest-articles__track::-webkit-scrollbar { display: none; }

.latest-article-card {
  flex: 0 0 calc((100% - 36px) / 3); /* 3 cartes visibles desktop, gap 18px x2 */
  min-width: 260px;
  max-width: 360px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.latest-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.latest-article-card__cover {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
}
.latest-article-card__body { padding: 16px; }
.latest-article-card__meta {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.latest-article-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.latest-article-card__footer {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}

/* --- Fleches prev/next --- */
.latest-articles__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #475569;
  z-index: 2;
  transition: opacity 0.2s, transform 0.15s;
}
.latest-articles__nav:hover {
  color: #6366f1;
  transform: translateY(-50%) scale(1.08);
}
.latest-articles__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.latest-articles__nav--prev { left: -18px; }
.latest-articles__nav--next { right: -18px; }

/* Mobile : pas de fleches, swipe natif */
@media (max-width: 768px) {
  .latest-articles__nav { display: none; }
  .latest-article-card {
    flex: 0 0 85%;        /* 1 carte + peek de la suivante */
    min-width: 250px;
  }
  .latest-articles { padding: 36px 0; }
  .latest-articles__title { font-size: 18px; }
}

/* Tablet : 2 cartes visibles */
@media (min-width: 769px) and (max-width: 1024px) {
  .latest-article-card {
    flex: 0 0 calc((100% - 18px) / 2);
  }
}
