/* ==========================================================================
   STYLES DÉDIÉS AUX PAGES PILIERS SEO · CHLOÉ PICART (chloepicart.com)
   Hérite des variables et composants de style.css · Zéro débordement mobile
   ========================================================================== */

.seo-hero {
  position: relative;
  padding: 132px 0 76px;
  background: radial-gradient(circle at 82% 16%, rgba(2, 132, 199, 0.08) 0%, transparent 46%),
              radial-gradient(circle at 14% 86%, rgba(217, 72, 51, 0.07) 0%, transparent 45%),
              #fdfcfa;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.seo-hero--dark {
  background: radial-gradient(circle at 80% 18%, rgba(2, 132, 199, 0.20) 0%, transparent 48%),
              radial-gradient(circle at 15% 84%, rgba(217, 72, 51, 0.16) 0%, transparent 46%),
              #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 24px;
}

.seo-hero--dark .seo-breadcrumb {
  color: #94a3b8;
}

.seo-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-breadcrumb a:hover {
  color: var(--corps-rouge);
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: center;
}

.seo-h1 {
  font-family: var(--sans);
  font-size: clamp(1.95rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--nuit);
  text-align: left !important;
  margin-top: 16px;
  margin-bottom: 20px;
}

.seo-hero--dark .seo-h1 {
  color: #ffffff;
}

.seo-h1 .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--air-bleu);
}

.seo-hero--dark .seo-h1 .serif-accent {
  color: #38bdf8;
}

.seo-lead {
  font-size: 1.12rem;
  line-height: 1.68;
  color: #334155;
  text-align: left !important;
  margin-bottom: 26px;
}

.seo-hero--dark .seo-lead {
  color: #cbd5e1;
}

.seo-proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.seo-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--nuit);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.seo-hero--dark .seo-proof-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.14);
}

.seo-proof-pill .dot {
  color: var(--corps-rouge);
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.seo-visual-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.09);
  text-align: left !important;
}

.seo-hero--dark .seo-visual-card {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.seo-visual-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  margin-bottom: 16px;
  display: block;
}

.seo-visual-img--landscape {
  aspect-ratio: 4 / 3;
  object-position: center 40%;
}

.seo-visual-caption {
  font-size: 0.90rem;
  line-height: 1.5;
  color: #475569;
}

.seo-hero--dark .seo-visual-caption {
  color: #cbd5e1;
}

.seo-visual-caption strong {
  display: block;
  color: var(--nuit);
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.seo-hero--dark .seo-visual-caption strong {
  color: #ffffff;
}

/* Corps éditorial structuré SEO */
.seo-section {
  padding: 76px 0;
}

.seo-section--alt {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.seo-section--warm {
  background: linear-gradient(180deg, #fffaf7 0%, #fdfcfa 100%);
  border-top: 1px solid rgba(217, 72, 51, 0.12);
  border-bottom: 1px solid rgba(217, 72, 51, 0.12);
}

.seo-section--sage {
  background: linear-gradient(180deg, #f2fbf7 0%, #fdfcfa 100%);
  border-top: 1px solid rgba(45, 106, 79, 0.14);
  border-bottom: 1px solid rgba(45, 106, 79, 0.14);
}

.seo-prose {
  max-width: 840px;
  margin: 0 auto;
  text-align: left !important;
}

.seo-h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--nuit);
  margin-top: 52px;
  margin-bottom: 22px;
  text-align: left !important;
}

.seo-h2:first-child,
.pill + .seo-h2 {
  margin-top: 12px;
}

.seo-h2 .serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--air-bleu);
}

.seo-prose p,
.seo-p {
  font-size: 1.07rem;
  line-height: 1.78;
  color: #334155;
  margin-bottom: 22px;
  text-align: left !important;
}

.seo-prose h3 {
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--nuit);
}

.seo-list {
  margin: 18px 0 28px 20px;
  padding-left: 8px;
}

.seo-list li {
  font-size: 1.06rem;
  line-height: 1.72;
  color: #334155;
  margin-bottom: 12px;
}

.seo-faq-item {
  margin-bottom: 28px;
}

.seo-faq-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.seo-prose strong {
  color: var(--nuit);
  font-weight: 700;
}

.seo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.seo-cards-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.seo-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  text-align: left !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-card--terra {
  border-top: 4px solid var(--corps-rouge);
}

.seo-card--air {
  border-top: 4px solid var(--air-bleu);
}

.seo-card--terre {
  border-top: 4px solid var(--terre-sauge);
}

.seo-card-num {
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--air-bleu);
}

.seo-card--terra .seo-card-num { color: var(--corps-rouge); }
.seo-card--terre .seo-card-num { color: var(--terre-sauge); }

.seo-card h3 {
  font-size: 1.20rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--nuit);
  text-align: left !important;
}

.seo-card p, .seo-card li {
  font-size: 0.96rem;
  line-height: 1.62;
  color: #475569;
  text-align: left !important;
}

.seo-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* Encadré Aimant Diagnostic / Devis au cœur de la page */
.seo-lead-magnet {
  max-width: 880px;
  margin: 36px auto 0;
  background: #0f172a;
  color: #ffffff;
  border-radius: 24px;
  padding: 36px 40px;
  border-left: 6px solid var(--corps-rouge);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left !important;
}

.seo-lead-magnet h3 {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  text-align: left !important;
}

.seo-lead-magnet p {
  font-size: 0.98rem;
  line-height: 1.58;
  color: #cbd5e1;
  margin: 0;
  text-align: left !important;
}

.seo-lead-magnet .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Maillage interne silo en bas de page */
.seo-related-box {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 56px 0;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.seo-related-link {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--nuit);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left !important;
}

.seo-related-link:hover {
  transform: translateY(-2px);
  border-color: var(--air-bleu);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.09);
}

.seo-related-link span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--corps-rouge);
  margin-bottom: 6px;
}

.seo-related-link strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.38;
  color: var(--nuit);
}

/* Ligne discrète de silos SEO dans le footer principal */
.footer-seo-silo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.footer-seo-silo a {
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-seo-silo a:hover {
  color: #ffffff;
}

.card-seo-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
}

.card-seo-more:hover {
  text-decoration: underline;
}

@media screen and (max-width: 960px) {
  .seo-hero {
    padding: 96px 0 56px;
  }
  .seo-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .seo-cards-grid,
  .seo-cards-grid--2 {
    grid-template-columns: 1fr;
  }
  .seo-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-lead-magnet {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .seo-lead-magnet .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .seo-related-grid {
    grid-template-columns: 1fr;
  }
  .seo-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}
