/* Styles dédiés aux pages SEO générées par scripts/seo/generate-pages.ts.
   Charge en complément de style.css. Variables --red, --gold, --cream, etc.
   sont définies dans :root du style.css principal. */

.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 2px solid var(--gold);
}

.seo-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
}

.seo-header__brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.seo-header__cta .btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  transition: background .2s;
}

.seo-header__cta .btn:hover {
  background: var(--red-dark);
}

.seo-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  border-bottom: 1px dotted var(--muted);
}

.breadcrumb a:hover {
  color: var(--brown);
}

.seo-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.2;
}

.seo-page .intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 820px;
}

.ideas h2,
.related h2,
.cta h2 {
  font-size: 1.5rem;
  color: var(--brown);
  margin: 48px 0 24px;
}

.ideas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.idea {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.idea__style {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.idea__style--pratique { background: #E0F4F1; color: var(--teal); }
.idea__style--fun { background: #FCE4D6; color: var(--amber); }
.idea__style--emotionnel { background: #F9E0E8; color: var(--rose); }

.idea__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
}

.idea__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.idea__keywords {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  font-style: italic;
}

/* Hero CTA placée juste après l'intro, above the fold sur desktop. Pousse
   activement le téléchargement avant même la liste générique de cadeaux. */
.hero-cta {
  margin: 32px 0 48px;
  padding: 28px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold) 100%);
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  text-align: center;
}

.hero-cta__lead {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
  color: var(--brown);
}

.hero-cta .store-btns {
  justify-content: center;
}

/* CTA principale en bas de page, mirror du #telecharger marketing pour
   cohérence visuelle entre landing pages et site. */
.cta {
  margin-top: 72px;
  padding: 56px 32px;
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}

.cta__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
}

.cta h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 1.75rem;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--cream);
  opacity: 0.9;
}

.cta .store-btns {
  justify-content: center;
}

/* Bandeau sticky mobile : visible uniquement < 768px, accroche permanente
   pour la conversion sur smartphone (où la majorité du trafic SEO atterrit
   sur ces pages long-tail). */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--brown);
    color: var(--cream);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .sticky-cta__text {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .sticky-cta__btn {
    flex-shrink: 0;
    padding: 10px 16px;
    background: var(--red);
    color: var(--white);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Compense la sticky bar pour que rien ne soit caché en bas. */
  body {
    padding-bottom: 64px;
  }
}

.btn--large {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.05rem;
}

.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--brown);
  font-size: 0.9rem;
  border: 1px solid var(--gold);
  transition: background .2s;
}

.related a:hover {
  background: var(--gold);
}

.seo-footer {
  padding: 32px 24px;
  background: var(--brown);
  color: var(--cream);
  text-align: center;
}

.seo-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.seo-footer a {
  color: var(--cream);
  border-bottom: 1px dotted var(--gold);
}

.seo-footer p {
  font-size: 0.85rem;
  opacity: 0.7;
}
