/* Pages SEO / landings marketing */
:root {
  --olyfit-seo-shell: min(1200px, 100%);
  --olyfit-seo-pad-x: clamp(16px, 4vw, 48px);
}

.olyfit-seo-page {
  background: #fff;
}

.olyfit-seo-hero {
  padding: calc(var(--site-header-height, 84px) + 36px) var(--olyfit-seo-pad-x) 56px;
}

.olyfit-seo-hero-inner {
  width: var(--olyfit-seo-shell);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
}

.olyfit-seo-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  max-width: 22ch;
}

.olyfit-seo-lead {
  margin: 14px 0 0;
  max-width: 54ch;
  line-height: 1.6;
  opacity: 0.95;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
}

.olyfit-seo-reading-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-family: Inter, sans-serif;
}

.olyfit-seo-cta {
  display: inline-flex;
  margin-top: 0;
}

/* Ghost sur hero bleu : texte blanc OK */
.olyfit-seo-cta-row--hero .header-btn--ghost,
.olyfit-seo-cta--ghost {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.olyfit-seo-cta-row--hero .header-btn--ghost:hover,
.olyfit-seo-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Ghost dans le bloc CTA clair : contraste lisible */
.olyfit-seo-cta-block .header-btn--ghost {
  color: #0043FF !important;
  background: #fff !important;
  border: 1px solid #93c5fd !important;
}

.olyfit-seo-cta-block .header-btn--ghost:hover {
  background: #eff6ff !important;
  border-color: #0043FF !important;
}

.olyfit-seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
}

.olyfit-seo-cta-row--hero {
  align-items: center;
}

.olyfit-seo-body {
  width: var(--olyfit-seo-shell);
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px var(--olyfit-seo-pad-x) 80px;
}

.olyfit-seo-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.olyfit-seo-section {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.olyfit-seo-section h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.olyfit-seo-section p {
  color: #334155;
  line-height: 1.65;
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.olyfit-seo-section p:last-child {
  margin-bottom: 0;
}

.olyfit-seo-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.6;
}

.olyfit-seo-list li {
  margin-bottom: 0.45rem;
}

.olyfit-seo-list li:last-child {
  margin-bottom: 0;
}

.olyfit-seo-cta-block {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
}

.olyfit-seo-cta-block .olyfit-seo-cta-row {
  margin-top: 1rem;
}

.olyfit-seo-related {
  margin-top: 1.75rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.olyfit-seo-related h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.olyfit-seo-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.olyfit-seo-related-list a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0043FF;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.olyfit-seo-related-list a:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}

.olyfit-seo-home-personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--olyfit-seo-pad-x) 48px;
}

.olyfit-seo-home-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  text-decoration: none;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.olyfit-seo-home-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(0, 67, 255, 0.08);
}

.olyfit-seo-home-card h3 {
  margin: 0 0 0.4rem;
  color: #0043FF;
  font-size: 1.05rem;
}

.olyfit-seo-home-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.olyfit-seo-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.olyfit-seo-faq details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0;
  background: #fff;
}

.olyfit-seo-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: #0f172a;
}

.olyfit-seo-faq details p {
  margin: 0.65rem 0 0;
  color: #475569;
}

/* Accueil : guides */
.olyfit-home-guides {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  padding: 56px var(--olyfit-seo-pad-x);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.olyfit-home-guides-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.olyfit-home-guides-intro {
  text-align: center;
  margin-bottom: 28px;
}

.olyfit-home-guides-kicker {
  margin: 0 0 8px;
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0043FF;
}

.olyfit-home-guides-intro h2 {
  margin: 0 0 10px;
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  color: #0f172a;
}

.olyfit-home-guides-intro p {
  margin: 0 auto;
  max-width: 48ch;
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: #64748b;
}

.olyfit-home-guides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.olyfit-home-guides-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.olyfit-home-guides-list a:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 67, 255, 0.08);
}

.olyfit-home-guides-label {
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #0043FF;
}

.olyfit-home-guides-meta {
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: 0.85rem;
  color: #94a3b8;
  white-space: nowrap;
}

.olyfit-home-guides-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 22px 0 0;
}

.olyfit-home-guides-more a {
  font-family: var(--font-tertiary, Inter, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #0043FF;
  text-decoration: none;
}

.olyfit-home-guides-more a:hover {
  text-decoration: underline;
}

/* Desktop large : utiliser l'espace */
@media (min-width: 900px) {
  .olyfit-seo-hero-inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
    gap: 2rem 3rem;
  }

  .olyfit-seo-cta-row--hero {
    justify-content: flex-end;
    flex-direction: column;
    align-items: stretch;
  }

  .olyfit-seo-cta-row--hero .header-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .olyfit-seo-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .olyfit-seo-section {
    padding: 1.5rem 1.6rem;
    min-height: 100%;
  }

  .olyfit-seo-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .olyfit-seo-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .olyfit-home-guides-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .olyfit-seo-home-personas {
    gap: 1.25rem;
  }

  .olyfit-home-guides-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile : lisible, boutons confortables */
@media (max-width: 899px) {
  .olyfit-seo-hero {
    padding: calc(var(--site-header-height, 68px) + 24px) var(--olyfit-seo-pad-x) 36px;
  }

  .olyfit-seo-title {
    max-width: none;
  }

  .olyfit-seo-lead {
    max-width: none;
  }

  .olyfit-seo-body {
    padding: 28px var(--olyfit-seo-pad-x) 56px;
  }

  .olyfit-seo-section {
    padding: 1.15rem 1.1rem;
  }

  .olyfit-seo-cta-row {
    flex-direction: column;
  }

  .olyfit-seo-cta-row .header-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .olyfit-seo-home-personas {
    grid-template-columns: 1fr;
  }

  .olyfit-home-guides-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .olyfit-home-guides-meta {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .olyfit-seo-section h2 {
    font-size: 1.1rem;
  }

  .olyfit-seo-section p,
  .olyfit-seo-list {
    font-size: 0.95rem;
  }
}
