/* ============================================================
   pages.css — feuille de style des pages d'offre (Lot C)
   ------------------------------------------------------------
   Utilisee par /vsl, /croissance et /scale uniquement.

   Pourquoi une feuille separee et non le <style> de index.html :
   la home embarque ~3 700 lignes de CSS inline dont l'immense
   majorite ne sert qu'a elle (hero video, chevalets, modales,
   parcours d'inscription). Les extraire casserait la home pour
   un gain nul ; les dupliquer quatre fois serait ingerable.
   Cette feuille reprend les MEMES jetons de design (couleurs,
   rayons, echelles typographiques) pour que les nouvelles pages
   soient indiscernables de la home, sans partager son sort.

   Si un jeton change dans index.html, il doit changer ici aussi.
   La liste tient dans le bloc :root ci-dessous.
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:root {
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f5f5f4;
  --bg-card: #fafaf9;
  --bg: #ffffff;
  --accent: #2563EB;
  --accent-secondary: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --text: #1c1917;
  --text-muted: #6B7280;
  --border: rgba(107, 114, 128, 0.25);
  --brown: #8B7355;

  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

body.dark-mode {
  --bg-gradient-start: #0c0a09;
  --bg-gradient-end: #1c1917;
  --bg-card: #1c1917;
  --bg: #0c0a09;
  --text: #e7e5e4;
  --text-muted: #a8a29e;
  --border: rgba(168, 162, 158, 0.2);
  --accent: #3b82f6;
  --accent-secondary: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.2);
  background-image:
    linear-gradient(135deg, rgba(28, 25, 23, 0) 0%, rgba(28, 25, 23, 0.6) 100%),
    linear-gradient(to right, rgba(168, 162, 158, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 162, 158, 0.05) 1px, transparent 1px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-gradient-start);
  background-image:
    linear-gradient(135deg, rgba(245, 245, 244, 0) 0%, rgba(245, 245, 244, 0.6) 100%),
    linear-gradient(to right, rgba(139, 115, 85, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 115, 85, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
  line-height: 1.5;
  padding-top: var(--safe-area-inset-top);
  padding-bottom: var(--safe-area-inset-bottom);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  font-size: clamp(26px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: clamp(16px, 4vw, 24px);
  color: var(--brown);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  padding-left: max(clamp(16px, 5vw, 40px), var(--safe-area-inset-left));
  padding-right: max(clamp(16px, 5vw, 40px), var(--safe-area-inset-right));
  position: relative;
  z-index: 1;
}

.container--etroit {
  max-width: 860px;
}

/* ========================================
   EN-TETE
   ======================================== */
header {
  padding: 12px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.dark-mode header {
  background: rgba(12, 10, 9, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Verrou de marque (Lot C, §6) : AvisPilot en principal,
   « par IA Conseil » en editeur. Meme balisage sur tout le site. */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-brand {
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-editor {
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav-link {
  font-size: clamp(13px, 1.05vw, 14px);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brown);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ========================================
   BANDEAU « INCLUT TOUT AVISPILOT »
   ======================================== */
.bandeau-inclus {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: clamp(8px, 2vw, 11px) 0;
  font-size: clamp(12px, 2.6vw, 14px);
  color: var(--text-muted);
}

.bandeau-inclus a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.bandeau-inclus a:hover,
.bandeau-inclus a:focus {
  text-decoration: underline;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn {
  padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 26px);
  border-radius: 50px;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.3);
}

.btn-secondary-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.btn-secondary-blue:hover,
.btn-secondary-blue:focus {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--accent);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.36);
}

.btn-large {
  font-size: clamp(15px, 3.5vw, 18px);
  padding: clamp(14px, 4vw, 20px) clamp(24px, 6vw, 40px);
}

.cta-group {
  display: flex;
  gap: clamp(10px, 3vw, 16px);
  flex-wrap: wrap;
  align-items: center;
}

.cta-group--centre {
  justify-content: center;
}

.cta-note {
  width: 100%;
  text-align: center;
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: clamp(40px, 10vw, 80px) 0;
}

.section--carte {
  background: var(--bg-card);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(30px, 8vw, 60px);
}

.section-title {
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 800;
  margin-bottom: clamp(10px, 3vw, 16px);
  color: var(--brown);
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(16px, 4vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   HERO DES PAGES D'OFFRE
   ======================================== */
.hero-offre {
  padding: clamp(36px, 8vw, 72px) 0 clamp(24px, 5vw, 40px);
}

.hero-offre .hero-eyebrow {
  display: inline-block;
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(10px, 2vw, 14px);
}

.hero-offre .hero-subtitle {
  font-size: clamp(16px, 3.6vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: clamp(20px, 4vw, 28px);
}

.hero-offre .hero-subtitle strong {
  color: var(--text);
}

/* ========================================
   BLOCS DE DETAIL (croissance / scale)
   ======================================== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 26px);
}

.detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(22px, 4vw, 32px) clamp(18px, 3vw, 26px);
}

.detail-card h3 {
  font-size: clamp(17px, 3.4vw, 21px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: clamp(8px, 2vw, 12px);
  line-height: 1.3;
}

.detail-card > p {
  font-size: clamp(13px, 2.6vw, 15px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: clamp(10px, 2vw, 14px);
}

.detail-list {
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: clamp(13px, 2.5vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--brown);
  font-weight: 700;
}

.detail-list li strong {
  color: var(--text);
}

/* ========================================
   ETAPES NUMEROTEES (deroule d'une mission)
   ======================================== */
.etapes {
  list-style: none;
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 26px);
}

.etape {
  counter-increment: etape;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: clamp(12px, 2.5vw, 16px);
  border-top: 2px solid var(--accent);
}

.etape::before {
  content: counter(etape);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.etape-titre {
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 700;
  color: var(--text);
}

.etape-texte {
  font-size: clamp(13px, 2.5vw, 14px);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========================================
   BLOC TARIF
   ======================================== */
.tarif-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: clamp(16px, 4vw, 24px);
  padding: clamp(24px, 5vw, 36px) clamp(18px, 4vw, 32px);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.tarif-prix {
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.05;
}

.tarif-prix .tarif-periode {
  font-size: clamp(14px, 3vw, 17px);
  font-weight: 500;
  color: var(--text-muted);
}

.tarif-mention {
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--text-muted);
  margin-top: 8px;
}

.tarif-ancrage {
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 10px 10px 0;
  padding: clamp(12px, 2.5vw, 16px) clamp(14px, 3vw, 18px);
  margin: clamp(16px, 3vw, 22px) 0;
  text-align: left;
}

.tarif-ancrage p {
  font-size: clamp(12px, 2.5vw, 14px);
  color: var(--text-muted);
  line-height: 1.65;
}

.tarif-ancrage p strong {
  color: var(--text);
}

.tarif-liste {
  list-style: none;
  text-align: left;
  margin-bottom: clamp(16px, 3vw, 22px);
}

.tarif-liste li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: clamp(13px, 2.5vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
}

.tarif-liste li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brown);
  font-weight: 700;
}

/* ========================================
   PREUVE CHIFFREE (composant Lot A-bis)
   ======================================== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 24px);
}

.proof-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: clamp(14px, 3vw, 20px);
  padding: clamp(22px, 4vw, 32px) clamp(18px, 3vw, 26px);
  /* Pas de transition sur border-color : combinee au raccourci
     `border: 1px solid var(--border)`, elle fige la bordure sur la
     valeur claire au basculement en mode sombre. */
}

.proof-name {
  font-size: clamp(14px, 2.8vw, 16px);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: clamp(12px, 2.5vw, 16px);
}

.proof-city {
  font-weight: 500;
}

.proof-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: clamp(10px, 2vw, 14px);
}

.proof-before {
  color: var(--text-muted);
  font-size: 0.78em;
}

.proof-arrow {
  font-size: 0.6em;
  color: var(--brown);
}

.proof-volume {
  font-size: clamp(14px, 2.8vw, 16px);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: clamp(10px, 2vw, 14px);
}

.proof-context {
  font-size: clamp(12px, 2.4vw, 14px);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: clamp(10px, 2vw, 14px);
  overflow: hidden;
  /* Voir .proof-card : pas de transition sur border-color. */
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 3vw, 20px) clamp(16px, 3.5vw, 24px);
  font-size: clamp(14px, 2.8vw, 17px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-q::marker,
.faq-q::-webkit-details-marker {
  content: '';
  display: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.3em;
  font-weight: 400;
  color: var(--brown);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-a {
  padding: 0 clamp(16px, 3.5vw, 24px) clamp(16px, 3vw, 22px);
  font-size: clamp(13px, 2.6vw, 15px);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
  text-align: center;
  padding: clamp(50px, 12vw, 100px) 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 254, 0.95));
  border: 2px solid var(--brown);
  border-radius: clamp(20px, 5vw, 30px);
  padding: clamp(30px, 8vw, 60px) clamp(20px, 5vw, 40px);
  max-width: 750px;
  margin: 0 auto;
}

body.dark-mode .cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
}

.cta-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  margin-bottom: clamp(8px, 2vw, 12px);
  color: var(--brown);
  line-height: 1.2;
}

.cta-description {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-muted);
  margin-bottom: clamp(16px, 4vw, 24px);
  line-height: 1.7;
}

/* ========================================
   PIED DE PAGE
   ======================================== */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(24px, 5vw, 32px) 0 clamp(30px, 6vw, 40px);
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(12px, 2.5vw, 14px);
  background: rgba(248, 250, 254, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding-bottom: max(clamp(30px, 6vw, 40px), var(--safe-area-inset-bottom));
}

body.dark-mode footer {
  background: rgba(15, 23, 42, 0.95);
}

.footer-top {
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--brown);
}

.footer-nav .footer-sep {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 12px;
}

.footer-nav .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.22);
}

.footer-nav .footer-cta:hover,
.footer-nav .footer-cta:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.3);
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 10px);
  font-size: clamp(11px, 2.5vw, 13px);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
  color: var(--accent);
}

.footer-links span {
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-bottom {
  margin-top: clamp(10px, 2vw, 12px);
  opacity: 0.7;
  font-size: clamp(10px, 2vw, 12px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .etapes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .cta-group {
    justify-content: center;
  }

  .cta-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 32px 0;
  }

  .cta-final {
    padding: 32px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links span {
    display: none;
  }

  .footer-nav {
    gap: 6px 10px;
    padding-top: 16px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-nav .footer-sep {
    display: none;
  }

  .footer-nav .footer-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
