/*
Theme Name: Astra LeadGen 2026
Theme URI: https://leprojecteur.ca
Description: Child theme Astra optimisé pour les sites rank & rent locaux. Design 2026, mobile-first, conversion-oriented. Palette et téléphone configurables via variables CSS dans functions.php.
Author: Le Projecteur
Author URI: https://leprojecteur.ca
Template: astra
Version: 1.0.0
Text Domain: astra-leadgen
*/

/* ============================================================
   0. VARIABLES — MODIFIER ICI PAR SITE
   ============================================================ */
:root {
  /* Palette */
  --lg-primary: #1B365D;
  --lg-primary-light: #244A7F;
  --lg-accent: #E8A838;
  --lg-accent-hover: #D4942E;
  --lg-bg: #F7F8FA;
  --lg-bg-card: #FFFFFF;
  --lg-text: #1A1A2E;
  --lg-text-muted: #5F6B7A;
  --lg-border: #E2E6EB;
  --lg-radius: 12px;
  --lg-shadow: 0 2px 12px rgba(27, 54, 93, 0.08);
  --lg-shadow-hover: 0 4px 24px rgba(27, 54, 93, 0.14);

  /* Typo */
  --lg-font-display: 'DM Sans', system-ui, sans-serif;
  --lg-font-body: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   1. BASE & TYPO
   ============================================================ */
body {
  font-family: var(--lg-font-body);
  color: var(--lg-text);
  background: var(--lg-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lg-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--lg-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: 2rem; }

p { margin-bottom: 1.2em; color: var(--lg-text); }

a { color: var(--lg-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--lg-accent); }

/* ============================================================
   2. LAYOUT
   ============================================================ */
.ast-container,
.site-content .ast-container {
  max-width: 820px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.entry-content {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

/* ============================================================
   3. HERO BANNER (injecté par functions.php)
   ============================================================ */
.lg-hero {
  background: linear-gradient(135deg, var(--lg-primary) 0%, var(--lg-primary-light) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lg-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lg-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
  position: relative;
}

.lg-hero .lg-hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-weight: 400;
  position: relative;
}

.lg-hero .lg-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lg-accent);
  color: #fff;
  font-family: var(--lg-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.35);
  position: relative;
}

.lg-hero .lg-cta-phone:hover {
  background: var(--lg-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 168, 56, 0.45);
  color: #fff;
}

.lg-hero .lg-cta-phone svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ============================================================
   4. BARRE DE CONFIANCE
   ============================================================ */
.lg-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--lg-bg-card);
  border-bottom: 1px solid var(--lg-border);
}

.lg-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--lg-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lg-primary);
}

.lg-trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--lg-accent);
  fill: currentColor;
}

/* ============================================================
   5. CONTENU — SECTIONS, FAQ, LISTES
   ============================================================ */
.entry-content section,
.entry-content .lg-section {
  background: var(--lg-bg-card);
  border-radius: var(--lg-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--lg-shadow);
  border: 1px solid var(--lg-border);
}

.entry-content ul {
  list-style: none;
  padding: 0;
}

.entry-content ul li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--lg-accent);
  border-radius: 50%;
}

/* FAQ */
.entry-content h3 + p,
.schema-faq-section h3 + p {
  padding-left: 1rem;
  border-left: 3px solid var(--lg-accent);
  color: var(--lg-text-muted);
}

/* ============================================================
   6. CTA INLINE (dans le contenu)
   ============================================================ */
.lg-cta-block {
  background: linear-gradient(135deg, var(--lg-primary) 0%, var(--lg-primary-light) 100%);
  border-radius: var(--lg-radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.lg-cta-block p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.lg-cta-block a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lg-accent);
  color: #fff;
  font-family: var(--lg-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.lg-cta-block a:hover {
  background: var(--lg-accent-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* ============================================================
   7. STICKY MOBILE CTA
   ============================================================ */
.lg-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .lg-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--lg-primary);
    padding: 0.7rem 1rem;
    justify-content: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  }

  .lg-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    background: var(--lg-accent);
    color: #fff;
    font-family: var(--lg-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem;
    border-radius: 60px;
    text-decoration: none;
  }

  /* Padding bas pour pas masquer le contenu */
  body { padding-bottom: 70px; }
}

/* ============================================================
   8. HEADER — simplifié, pas de menu complexe
   ============================================================ */
.site-header {
  background: var(--lg-bg-card) !important;
  border-bottom: 1px solid var(--lg-border);
  box-shadow: none !important;
}

.ast-site-identity {
  padding: 0.8rem 0;
}

.site-title {
  font-family: var(--lg-font-display) !important;
  font-weight: 700 !important;
  color: var(--lg-primary) !important;
  font-size: 1.3rem !important;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer {
  background: var(--lg-primary) !important;
  color: rgba(255,255,255,0.7) !important;
  padding: 2rem 0 !important;
  font-size: 0.9rem;
}

.site-footer a { color: var(--lg-accent); }
.site-footer .site-info { text-align: center; }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .lg-hero { padding: 2rem 1rem; }
  .lg-hero .lg-cta-phone { font-size: 1.1rem; padding: 0.8rem 1.5rem; }
  .entry-content section,
  .entry-content .lg-section { padding: 1.2rem; margin-bottom: 1rem; }
  .lg-trust { gap: 1rem 1.5rem; padding: 1rem; }
  .lg-trust-item { font-size: 0.8rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* ============================================================
   11. RÉDUCTION MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
