/*
Theme Name:  TendreOrigine Child
Theme URI:   https://bebe-naissance.fr/
Description: GeneratePress child theme for blog.bebe-naissance.fr — blog-specific styles only; base styles loaded from static site CSS.
Author:      TendreOrigine
Template:    generatepress
Version:     1.0.1
Text Domain: tendreorigine
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── GP overrides ── */

body.blog,
body.single,
body.category,
body.archive,
body.home {
  margin: 0;
  padding: 0;
}

.inside-header,
.inside-navigation {
  display: none !important;
}

/* GP injects .one-container .container { background: var(--base-3) } which
   puts a white box over our dark footer and newsletter section */
.site-footer .container,
.newsletter-section .container {
  background: transparent !important;
}

#content {
  padding-top: 0 !important;
}

.site-content,
.content-area,
#primary {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
}

.inside-article {
  padding: 0 !important;
}

.entry-content {
  max-width: none !important;
}

.generate-columns-container,
.grid-container {
  max-width: none !important;
  padding: 0 !important;
}

/* ── Blog hero (home) ── */

.to-blog-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.to-blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.to-blog-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Archive hero ── */

.to-archive-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.to-archive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.to-archive-hero p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Category pills ── */

.to-cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}

.to-cat-pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: all .2s;
}

.to-cat-pill:hover,
.to-cat-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Posts grid ── */

.to-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 960px) {
  .to-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .to-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Post card ── */

.to-post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.to-post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.to-post-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.to-post-card__img-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: var(--primary-light);
}

.to-post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.to-post-card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  text-decoration: none;
}

.to-post-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}

.to-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.to-post-card__title a:hover {
  color: var(--primary);
}

.to-post-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.to-post-card__meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.to-post-card__readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.to-post-card__readmore:hover {
  color: var(--secondary);
}

/* ── Pagination ── */

.to-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.to-pagination a,
.to-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  transition: all .2s;
}

.to-pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.to-pagination a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* ── Single article ── */

.to-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin: 24px 0 8px;
}

.to-back-link:hover {
  color: var(--primary);
}

.to-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.to-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.to-article-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.to-article-hero {
  margin-bottom: 32px;
}

.to-article-cat-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 16px;
}

.to-article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 20px;
}

.to-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.to-featured-image {
  margin: 0 0 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.to-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Entry content ── */

.to-entry-content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}

.to-entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border);
}

.to-entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.to-entry-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.to-entry-content p {
  margin-bottom: 1.2em;
}

.to-entry-content ul,
.to-entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2em;
}

.to-entry-content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.to-entry-content strong {
  font-weight: 700;
  color: var(--text);
}

.to-entry-content a {
  color: var(--primary);
}

.to-entry-content a:hover {
  color: var(--secondary);
}

.to-entry-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 16px 24px;
  margin: 2rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

.to-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.to-entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.to-entry-content .wp-block-table td,
.to-entry-content .wp-block-table th {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.to-entry-content .wp-block-table th {
  background: var(--primary-light);
  font-weight: 700;
}

/* ── Medical disclaimer ── */

.to-medical-disclaimer {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 0.85rem;
  color: #795548;
  line-height: 1.6;
}

/* ── Tags ── */

.to-tags-section {
  margin: 32px 0;
}

.to-tags-section h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.to-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.to-tags-list a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
}

.to-tags-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* ── Related posts ── */

.to-related-posts {
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.to-related-posts h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.to-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .to-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Section label ── */

.to-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

/* ── GP body/wrapper resets ── */

.site-content,
#content {
  padding-top: 0 !important;
}

.inside-article {
  padding: 0 !important;
}

.entry-content {
  max-width: none !important;
}
