/*
 Theme Name:   Peachies Child
 Theme URI:    https://peachies.fr
 Description:  Child theme for Peachies — mode, beauté, lifestyle & relations
 Author:       Peachies
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  peachies-child
*/

/* ═══════════════════════════════════════════════════
   PEACHIES — HEADER & NAVIGATION
═══════════════════════════════════════════════════ */

/* ── Barre supérieure ─ */
.top-bar {
  background: #2d1a24 !important;
  color: #e8a0b4 !important;
  font-family: -apple-system, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.top-bar a { color: #e8a0b4 !important; }

/* ── Header principal ─ */
.site-header {
  background: #fff !important;
  border-bottom: 2px solid #fce8ef !important;
  box-shadow: 0 2px 20px rgba(192,96,128,.07) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}
.inside-header {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
}

/* ── Logo / Titre du site ─ */
.site-branding, .site-logo {
  flex-shrink: 0;
}
.site-title {
  font-family: Georgia, serif !important;
  font-size: 1.7rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
}
.site-title a {
  color: #2d1a24 !important;
  text-decoration: none !important;
}
.site-title a:hover { color: #c06080 !important; }
.site-description {
  font-family: -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #c06080 !important;
  font-style: normal !important;
}

/* ── Navigation principale ─ */
.nav-primary,
.main-navigation {
  background: transparent !important;
}
.main-nav > ul {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.main-nav > ul > li > a {
  font-family: -apple-system, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #2d1a24 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  position: relative !important;
}
.main-nav > ul > li > a::after {
  content: '' !important;
  position: absolute !important;
  bottom: 4px !important; left: 14px !important; right: 14px !important;
  height: 2px !important;
  background: #e8a0b4 !important;
  transform: scaleX(0) !important;
  transition: transform 0.2s !important;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-ancestor > a {
  color: #c06080 !important;
  background: #fdf0f4 !important;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1) !important;
}

/* ── Dropdown ─ */
.main-nav ul ul {
  background: #fff !important;
  border: 1px solid #fce8ef !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(192,96,128,.15) !important;
  padding: 8px !important;
  min-width: 200px !important;
}
.main-nav ul ul li a {
  font-family: -apple-system, sans-serif !important;
  font-size: 0.82rem !important;
  color: #2d1a24 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: all 0.15s !important;
}
.main-nav ul ul li a:hover {
  background: #fce8ef !important;
  color: #c06080 !important;
}

/* ── Mobile menu toggle ─ */
.menu-toggle,
.mobile-menu-control-wrapper button {
  background: #fce8ef !important;
  color: #c06080 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-family: -apple-system, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* ── Mobile nav ─ */
@media (max-width: 768px) {
  .main-nav > ul {
    flex-direction: column !important;
    background: #fff !important;
    padding: 12px !important;
    gap: 2px !important;
  }
  .main-nav > ul > li { width: 100% !important; }
  .main-nav > ul > li > a {
    display: block !important;
    width: 100% !important;
  }
}


/* ═══════════════════════════════════════════════════
   PEACHIES — FOOTER
═══════════════════════════════════════════════════ */

.peachies-footer {
  background: #2d1a24;
  color: #e0c8cc;
  font-family: -apple-system, sans-serif;
  margin-top: 0;
}

/* ── Wrapper global ─ */
.pf-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section haute (3 colonnes) ─ */
.pf-top { padding: 64px 0 48px; }
.pf-top .pf-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 48px;
}

/* ── Col brand ─ */
.pf-logo { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.pf-logo-img { max-height: 48px; width: auto; filter: brightness(0) invert(1); }
.pf-logo-text {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fdf5f7;
  letter-spacing: 0.04em;
}
.pf-tagline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8a0b4;
  margin: 0 0 14px;
}
.pf-about {
  font-size: 0.88rem;
  color: #a07888;
  line-height: 1.7;
  margin: 0 0 22px;
}

/* ── Social icons ─ */
.pf-social { display: flex; gap: 10px; }
.pf-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(232,160,180,.12);
  border-radius: 50%;
  color: #e8a0b4;
  text-decoration: none;
  transition: all 0.2s;
}
.pf-social-link:hover {
  background: #c06080;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Titres colonnes ─ */
.pf-col-title {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #fdf5f7;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232,160,180,.2);
}

/* ── Liens nav ─ */
.pf-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pf-links a {
  color: #a07888;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.pf-links a:hover { color: #e8a0b4; }

/* ── Articles récents ─ */
.pf-recent {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.pf-recent-item {
  display: flex; gap: 12px; align-items: flex-start;
}
.pf-recent-item img {
  width: 52px; height: 52px;
  object-fit: cover; border-radius: 8px;
  flex-shrink: 0;
}
.pf-recent-item a {
  color: #a07888;
  font-size: 0.83rem;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}
.pf-recent-item a:hover { color: #e8a0b4; }

/* ── Barre basse ─ */
.pf-bottom {
  border-top: 1px solid rgba(232,160,180,.15);
  padding: 20px 0;
}
.pf-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pf-copy {
  font-size: 0.78rem;
  color: #7a5868;
}
.pf-copy strong { color: #e8a0b4; }
.pf-legal {
  display: flex; gap: 20px;
}
.pf-legal a {
  font-size: 0.75rem;
  color: #7a5868;
  text-decoration: none;
  transition: color 0.2s;
}
.pf-legal a:hover { color: #e8a0b4; }
.pf-heart {
  font-size: 0.75rem;
  color: #7a5868;
}

/* ── Footer responsive ─ */
@media (max-width: 900px) {
  .pf-top .pf-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .pf-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pf-top .pf-wrap { grid-template-columns: 1fr; }
  .pf-bottom-inner { flex-direction: column; text-align: center; }
  .pf-legal { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   PEACHIES — PAGES INTÉRIEURES (articles, blog…)
═══════════════════════════════════════════════════ */

/* ── Fond général ─ */
body { background: #fdf5f7 !important; }

/* ── Fil d'ariane / page title ─ */
.page-header { background: linear-gradient(135deg,#fce8ef,#f5d4e2) !important; }
.page-title { color: #2d1a24 !important; }

/* ── Liens dans le contenu ─ */
.entry-content a { color: #c06080 !important; }
.entry-content a:hover { color: #a04060 !important; }

/* ── Titres d'articles ─ */
.entry-title a { color: #2d1a24 !important; }
.entry-title a:hover { color: #c06080 !important; }

/* ═══════════════════════════════════════════════════
   PEACHIES — HOMEPAGE FULL-WIDTH FIX
═══════════════════════════════════════════════════ */

/* Libérer le container GP sur la homepage */
body.home .grid-container,
body.home .site-content > .grid-container,
body.home #content,
body.home .site-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
body.home .content-area,
body.home #primary {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}
body.home .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

/* Désactiver la mise en page "one-container" sur home */
body.home #page {
  padding: 0 !important;
}

/* Supprimer tout padding/margin du wrapper principal */
body.home .inside-page-header,
body.home .page-header {
  display: none !important;
}

/* ═══════════════════════════════════════════════════
   HEADER — Fix alignement logo + nav sur une ligne
═══════════════════════════════════════════════════ */

/* S'assurer que le header est en flex row avec espace entre logo et nav */
.inside-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 14px 24px !important;
  width: 100% !important;
}

/* Le header lui-même fait 100% de largeur */
.site-header {
  width: 100% !important;
}
.header-widget { display: none !important; }

/* Navigation à droite */
.nav-primary {
  margin-left: auto !important;
}
.main-nav > ul {
  flex-wrap: nowrap !important;
}

/* ═══════════════════════════════════════════════════
   FIX — NAV FOND BLANC + FULL WIDTH CORRECT
═══════════════════════════════════════════════════ */

/* 1. Nav : fond blanc obligatoire (jamais transparent) */
.nav-primary,
.nav-below-header,
.nav-float-right,
.main-navigation,
.generate-back-to-top,
.nav-primary .inside-navigation {
  background: #fff !important;
  border-bottom: 1px solid #fce8ef !important;
}
.nav-primary a,
.main-nav > ul > li > a {
  background: transparent !important;
}

/* 2. Header sticky avec fond blanc solide */
.site-header,
.sticky-navigation {
  background: #fff !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  box-shadow: 0 2px 16px rgba(192,96,128,.09) !important;
}

/* 3. Full width : forcer body et #page à 100vw sans overflow */
html, body { overflow-x: hidden !important; }

body.home #page,
body.home .site {
  max-width: 100% !important;
  width: 100% !important;
}

/* Supprimer le max-width sur les containers GP home */
body.home .grid-container,
body.home .site-content,
body.home #content,
body.home #primary,
body.home .content-area,
body.home .site-main,
body.home article,
body.home .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Hero prend toute la largeur viewport */
body.home .ph-hero {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}
body.home .ph-cats-banner {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}
body.home .ph-newsletter {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

/* ═══════════════════════════════════════════════════
   FIX — SIDEBAR CACHÉE + VRAI FULL WIDTH HOME
═══════════════════════════════════════════════════ */

/* Masquer sidebar sur la homepage */
body.home #secondary,
body.home .sidebar,
body.home .widget-area {
  display: none !important;
}

/* Passer le grid en block pour que #primary prenne 100% */
body.home .grid-container.grid-parent,
body.home .site-content > .grid-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

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

/* Le hero et les sections pleine largeur en vrai 100vw */
body.home .ph-hero,
body.home .ph-cats-banner,
body.home .ph-newsletter {
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  width: 100vw !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}
