/* ============================================================
   BUDGETIQ — style.css  (v1.0 — rewrite complet)
   Structure :
     1. Reset & variables
     2. Base typographie
     3. Composants partagés (boutons, badges, cards)
     4. Header
     5. Landing page
     6. App shell (sidebar, main)
     7. Responsive (tablette ≤1024px, mobile ≤768px)
   ============================================================ */


/* ============================================================
   1. RESET & VARIABLES
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  /* Couleurs primaires */
  --blue:      #2563EB;
  --blue-d:    #1D4ED8;
  --blue-l:    #EFF6FF;
  --blue-mid:  #3B82F6;

  /* Violet accent */
  --violet:    #7C3AED;
  --violet-d:  #6D28D9;
  --violet-l:  #F5F3FF;

  /* Sémantiques */
  --green:     #10B981;
  --green-l:   #ECFDF5;
  --yellow:    #F59E0B;
  --yellow-l:  #FFFBEB;
  --red:       #EF4444;
  --red-l:     #FEF2F2;

  /* Gris (échelle complète) */
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;

  /* Dark palette (app + hero) */
  --dark-900:  #060C1C;
  --dark-800:  #0B1528;
  --dark-700:  #0F1E3A;
  --dark-600:  #162444;

  /* Misc */
  --radius-sm:  8px;
  --radius:    14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);

  /* Header */
  --header-h: 64px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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


/* ============================================================
   2. TYPOGRAPHIE
   ============================================================ */

.t-hero {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.t-h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.t-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.t-body  { font-size: 1rem;    line-height: 1.7; }
.t-small { font-size: .875rem; line-height: 1.6; }
.t-xs    { font-size: .78rem;  line-height: 1.5; }

.text-white     { color: #fff; }
.text-white-70  { color: rgba(255,255,255,.7); }
.text-white-50  { color: rgba(255,255,255,.5); }
.text-blue      { color: var(--blue); }
.text-violet    { color: var(--violet); }
.text-gray      { color: var(--gray-500); }

.gradient-text {
  background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   3. COMPOSANTS PARTAGÉS
   ============================================================ */

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 22px;
  transition: all .2s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-ghost:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.btn-white-outline {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px;  font-size: .82rem; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-blue   { background: var(--blue-l);   color: var(--blue); }
.badge-violet { background: var(--violet-l); color: var(--violet); }
.badge-green  { background: var(--green-l);  color: var(--green); }
.badge-dark   { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.15); }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.6; transform:scale(1.3); }
}

/* ── Card ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-dark {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section base ── */
.section {
  padding: 80px 0;
}
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.75;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-sub { margin: 0 auto; }

/* ── Divider ── */
.divider {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Focus ring ── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }


/* ============================================================
   4. HEADER
   ============================================================ */

#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  align-items: center;

  /* Transparent sur hero */
  background: linear-gradient(to bottom, rgba(6,12,28,.8) 0%, transparent 100%);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}

#site-header.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  transition: color .3s;
  flex-shrink: 0;
  cursor: pointer;
}
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
#site-header.scrolled .logo { color: var(--blue); }

/* Nav links (desktop) */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: .86rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: all .18s;
  white-space: nowrap;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
#site-header.scrolled .nav-link {
  color: var(--gray-700);
}
#site-header.scrolled .nav-link:hover {
  color: var(--blue);
  background: var(--blue-l);
  border-color: transparent;
}

/* App-only nav links (desktop, in app.html) */
.nav-link-app {
  font-size: .86rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all .18s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link-app:hover { color: var(--blue); background: var(--blue-l); }
.nav-link-app.active { color: var(--blue); background: var(--blue-l); }

/* Header right zone */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Auth zone (app) */
#header-auth-zone {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile app nav (visible uniquement sur mobile dans l'app) */
.mobile-app-nav {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.mobile-back-btn {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .18s;
}
#site-header.scrolled .mobile-back-btn {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-800);
}
.tool-picker-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  transition: all .18s;
}
#site-header.scrolled .tool-picker-btn {
  background: var(--blue-l);
  border-color: transparent;
  color: var(--blue);
}

/* Hamburger (landing mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}
#site-header.scrolled .nav-hamburger span { background: var(--gray-800); }

/* Mobile dropdown menu */
.nav-dropdown {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 199;
  background: rgba(8,15,30,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}
.nav-dropdown.open { display: flex; }
.nav-dropdown-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.8);
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s;
}
.nav-dropdown-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-dropdown-link.accent { color: #93C5FD; }

/* ── RÈGLES DE VISIBILITÉ HEADER (desktop vs mobile) ──

   Sur landing  (body sans .is-app) :
     - Desktop ≥769px : .header-nav visible, .nav-hamburger caché
     - Mobile  ≤768px : .header-nav caché, .nav-hamburger visible
   Sur app (body.is-app) :
     - Desktop ≥769px : .header-nav visible (nav-link-app), .mobile-app-nav caché
     - Mobile  ≤768px : .header-nav caché, .mobile-app-nav visible
*/

/* --- Desktop par défaut --- */
.nav-hamburger    { display: none; }
.nav-dropdown     { display: none; }
.mobile-app-nav   { display: none; }
.header-nav       { display: flex; }


/* ============================================================
   5. LANDING PAGE
   ============================================================ */

/* ── Hero ── */
.lp-hero {
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 50%, #1B4FD8 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(124,58,237,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.15) 0%, transparent 50%);
  pointer-events: none;
}
.lp-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.lp-hero-content { }
.lp-hero-badge { margin-bottom: 24px; }
.lp-hero-title { color: #fff; margin-bottom: 20px; }
.lp-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.lp-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.lp-hero-checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.lp-hero-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
}
.lp-hero-check::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Hero visual */
.lp-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lp-hero-mockup {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 400px;
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px; margin-bottom: 20px;
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-stat {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mockup-stat-label { font-size: .8rem; color: rgba(255,255,255,.55); }
.mockup-stat-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.mockup-stat-delta {
  font-size: .75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
}
.mockup-stat-delta.up   { color: var(--green); background: rgba(16,185,129,.15); }
.mockup-stat-delta.down { color: var(--red);   background: rgba(239,68,68,.15); }
.mockup-chart {
  height: 80px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 10px 0;
}
.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--blue), var(--violet));
  opacity: .7;
  transition: opacity .2s;
}
.chart-bar:hover { opacity: 1; }

/* ── Stats strip ── */
.lp-stats {
  background: var(--dark-800);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 32px 24px;
}
.lp-stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.lp-stat-item {
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.lp-stat-item:last-child { border-right: none; }
.lp-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.lp-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* ── Logos ── */
.lp-logos {
  background: var(--dark-900);
  padding: 28px 24px;
  text-align: center;
}
.lp-logos-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 18px;
}
.lp-logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.lp-logo-item {
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.lp-logo-item:hover { color: rgba(255,255,255,.6); }

/* ── Section : Fonctionnalités ── */
.lp-features { background: var(--gray-50); }
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.feature-icon-blue   { background: var(--blue-l);   }
.feature-icon-violet { background: var(--violet-l); }
.feature-icon-green  { background: var(--green-l);  }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc  { font-size: .88rem; color: var(--gray-500); line-height: 1.7; }

/* ── Section : Comment ça marche ── */
.lp-how {
  background: var(--dark-800);
}
.lp-how .section-label { color: var(--blue-mid); }
.lp-how .section-title { color: #fff; }
.lp-how .section-sub   { color: rgba(255,255,255,.55); }
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}
.lp-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 60px; right: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}
.lp-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.step-title { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc  { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* ── Section : Tarifs ── */
.lp-pricing { background: var(--gray-50); }
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.pricing-name  { font-size: .85rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.pricing-desc  { font-size: .85rem; color: var(--gray-500); margin-bottom: 24px; line-height: 1.6; }
.pricing-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-600);
}
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-feature.no::before { content: '✕'; color: var(--gray-300); }
.pricing-feature.no { color: var(--gray-400); }

/* ── Section : FAQ ── */
.lp-faq { background: #fff; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--gray-50);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: background .15s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.faq-question:hover { background: var(--gray-100); }
.faq-question.open  { background: var(--blue-l); color: var(--blue); }
.faq-chevron { transition: transform .25s; font-size: 1rem; flex-shrink: 0; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  background: var(--blue-l);
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.75;
  padding: 0 20px;
}
.faq-answer.open { max-height: 400px; padding: 16px 20px; }

/* ── Section : Contact/CTA final ── */
.lp-contact {
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 60%, #1B3BAA 100%);
  position: relative;
  overflow: hidden;
}
.lp-contact::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 65%);
  pointer-events: none;
}
.lp-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.lp-contact-title { color: #fff; margin-bottom: 16px; }
.lp-contact-sub { color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 28px; }
.lp-contact-perks { display: flex; flex-direction: column; gap: 10px; }
.lp-contact-perk {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.7);
}
.perk-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
}
.lp-contact-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: .9rem;
  color: #fff;
  font-family: inherit;
  transition: border-color .18s;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,.3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ── Footer ── */
.lp-footer {
  background: var(--dark-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 24px;
}
.lp-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: .82rem; color: rgba(255,255,255,.4); transition: color .18s; }
.footer-link:hover { color: rgba(255,255,255,.7); }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }


/* ============================================================
   6. APP SHELL
   ============================================================ */

/* Cacher landing sur l'app et vice-versa */
body.is-app   .lp-hero,
body.is-app   .lp-stats,
body.is-app   .lp-logos,
body.is-app   .lp-features,
body.is-app   .lp-how,
body.is-app   .lp-pricing,
body.is-app   .lp-faq,
body.is-app   .lp-contact,
body.is-app   .lp-footer { display: none !important; }

/* App header specifics */
body.is-app #site-header {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
body.is-app .logo { color: var(--blue); }
body.is-app .nav-hamburger span { background: var(--gray-800); }

/* App shell layout */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--header-h));
  align-items: flex-start;
}

/* Sidebar */
.app-sidebar {
  width: 220px;
  min-width: 220px;
  background: #fff;
  border-right: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width .25s, min-width .25s;
}

/* Sidebar collapsed (desktop toggle) */
.app-shell.sb-collapsed .app-sidebar { width: 60px; min-width: 60px; }
.app-shell.sb-collapsed .sb-label    { display: none; }
.app-shell.sb-collapsed .sb-expand-btn { display: flex; }
.app-shell.sb-collapsed .sb-collapse-btn { display: none; }

.sb-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 12px 8px;
  border-bottom: 1px solid var(--gray-100);
}
.sb-collapse-btn, .sb-expand-btn {
  background: none; border: none;
  color: var(--gray-400);
  font-size: 1.1rem; padding: 4px 6px;
  border-radius: 6px;
  transition: all .15s;
}
.sb-collapse-btn:hover, .sb-expand-btn:hover { color: var(--gray-700); background: var(--gray-100); }
.sb-expand-btn { display: none; }

.sb-nav { padding: 12px 8px; }
.sb-section-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray-400);
  padding: 8px 10px 4px; white-space: nowrap;
}
.app-shell.sb-collapsed .sb-section-title { display: none; }

.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.sb-item:hover { background: var(--gray-100); color: var(--gray-900); }
.sb-item.active { background: var(--blue-l); color: var(--blue); font-weight: 600; }
.sb-item-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 1rem; }

/* Main content */
.app-main {
  flex: 1;
  padding: 28px 32px;
  min-width: 0;
  overflow-x: hidden;
}

/* Tool picker dropdown */
.tool-picker-dropdown {
  position: absolute;
  top: calc(var(--header-h) + 4px);
  left: 50%; transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 300;
  min-width: 220px;
}
.tool-picker-dropdown.open { display: block; }
.tool-picker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: .9rem; font-weight: 500;
  transition: background .15s;
}
.tool-picker-item:hover { background: var(--gray-100); }
.tool-picker-item.active { background: var(--blue-l); color: var(--blue); font-weight: 600; }

/* Sidebar overlay (mobile) */
.sb-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 299;
  backdrop-filter: blur(2px);
}
.sb-overlay.open { display: block; }

/* FAB open sidebar (mobile) */
.sb-fab {
  display: none;
  position: fixed;
  bottom: 24px; left: 16px;
  z-index: 298;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  align-items: center; justify-content: center;
  transition: transform .18s;
}
.sb-fab:hover { transform: scale(1.08); }


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

/* ── Tablette (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --header-h: 60px; }
  #site-header { padding: 0 20px; }

  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-visual { display: none; }
  .lp-hero { min-height: auto; padding: 80px 24px 60px; }
  .lp-hero-content { text-align: center; }
  .lp-hero-sub { margin: 0 auto 36px; }
  .lp-hero-ctas { justify-content: center; }
  .lp-hero-checks { justify-content: center; }

  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .lp-steps::before { display: none; }
  .lp-pricing-grid { grid-template-columns: 1fr 1fr; }
  .lp-pricing-grid .pricing-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .lp-contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .lp-stat-item:nth-child(2) { border-right: none; }

  .app-sidebar { width: 180px; min-width: 180px; }

  .nav-link { padding: 6px 10px; font-size: .82rem; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  #site-header { padding: 0 16px; }

  /* Header : hamburger visible, nav caché */
  .header-nav    { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .header-right .btn { display: none; }

  /* App header mobile */
  body.is-app .nav-hamburger     { display: none !important; }
  body.is-app .mobile-app-nav    { display: flex !important; }
  body.is-app .header-right .btn { display: none; }
  body.is-app #header-auth-zone  { display: none; }

  /* Hero */
  .lp-hero { min-height: auto; padding: 72px 20px 48px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .lp-hero-visual { display: none; }
  .lp-hero-sub  { margin: 0 auto 28px; }
  .lp-hero-ctas { flex-direction: column; align-items: stretch; }
  .lp-hero-checks { justify-content: center; }
  .btn-lg { padding: 14px 20px; font-size: .95rem; }

  /* Stats */
  .lp-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .lp-stat-item:nth-child(2) { border-right: none; }
  .lp-stat-item { padding: 12px 16px; }
  .lp-stat-value { font-size: 1.6rem; }

  /* Sections */
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 36px; }

  /* Features */
  .lp-features-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Steps */
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-steps::before { display: none; }
  .lp-step { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .step-num { margin: 0; flex-shrink: 0; }

  /* Pricing */
  .lp-pricing-grid { grid-template-columns: 1fr; gap: 16px; }

  /* FAQ */
  .faq-question { font-size: .9rem; }

  /* Contact */
  .lp-contact-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Footer */
  .lp-footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 16px; }

  /* App sidebar → drawer */
  .app-sidebar {
    position: fixed;
    top: var(--header-h);
    left: -240px;
    width: 240px !important;
    min-width: 240px !important;
    height: calc(100vh - var(--header-h));
    z-index: 300;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
  }
  .app-sidebar.open { left: 0; }
  .app-main { padding: 16px; }
  .sb-fab { display: flex; }

  /* Logos */
  .lp-logos-row { gap: 20px; }

  /* Overflow tables */
  .overflow-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
