/*
 Theme Name:   Brunch Marketing
 Theme URI:    https://brunch-marketing.fr
 Description:  Child theme for Brunch Marketing - Navy & Orange editorial design
 Author:       Hermes
 Author URI:   https://seoptimizers.ch
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  brunch-marketing
*/

/* =========================================
   BRUNCH MARKETING - Design System
   Navy #0F172A + Orange #F97316
   Fraunces (titres) + Inter (body)
   ========================================= */

:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --orange: #F97316;
  --orange-soft: #FED7AA;
  --off-white: #FAFAF9;
  --gray-blue: #475569;
  --gray-soft: #E2E8F0;
  --white: #FFFFFF;
  --border: rgba(15,23,42,.08);
  --radius-card: 4px;
  --shadow-soft: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: var(--navy) !important;
  background: var(--off-white) !important;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange); }

/* =========================================
   NAVIGATION
   ========================================= */

.bm-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.bm-logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.bm-logo span { color: var(--orange); }

.bm-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.bm-nav-links a:hover { color: var(--orange); }

.bm-nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bm-nav-cta:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* =========================================
   HERO
   ========================================= */

.bm-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  border-bottom: 1px solid var(--border);
}

.bm-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 20px;
}

.bm-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 24px;
  font-weight: 900;
}

.bm-hero h1 em {
  color: var(--orange);
  font-style: italic;
}

.bm-hero-lead {
  font-size: 19px;
  color: var(--gray-blue);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.6;
}

.bm-hero-ctas {
  display: flex;
  gap: 14px;
}

/* =========================================
   BUTTONS
   ========================================= */

.bm-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.bm-btn-primary {
  background: var(--orange);
  color: var(--white) !important;
}

.bm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249,115,22,.3);
}

.bm-btn-ghost {
  background: transparent;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}

.bm-btn-ghost:hover {
  background: var(--navy);
  color: var(--white) !important;
}

/* =========================================
   SIDEBAR UNE (Hero right)
   ========================================= */

.bm-sidebar-une {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.bm-sidebar-une h3 {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-blue);
  margin-bottom: 20px;
}

.bm-une-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.bm-une-item:last-child { border-bottom: none; }

.bm-une-item .meta {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bm-une-item .title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}

/* =========================================
   MAIN LAYOUT - 3 colonnes
   ========================================= */

.bm-main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 48px;
}

/* =========================================
   SIDEBAR GAUCHE
   ========================================= */

.bm-aside-left h4 {
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-blue);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}

.bm-aside-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-aside-left li {
  padding: 8px 0;
  font-size: 14px;
}

.bm-aside-left li a:hover { color: var(--orange); }

/* =========================================
   CARDS EDITORIALES
   ========================================= */

.bm-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.bm-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.bm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.bm-card-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(135deg, #FED7AA 0%, #F97316 100%);
}

.bm-card:nth-child(2) .bm-card-thumb {
  background-image: linear-gradient(135deg, #475569 0%, #0F172A 100%);
}

.bm-card:nth-child(3) .bm-card-thumb {
  background-image: linear-gradient(135deg, #BFDBFE 0%, #1E40AF 100%);
}

.bm-card:nth-child(4) .bm-card-thumb {
  background-image: linear-gradient(135deg, #84CC16 0%, #365314 100%);
}

.bm-card-body { padding: 22px; }

.bm-card-kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--orange);
  margin-bottom: 8px;
}

.bm-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.bm-card-excerpt {
  font-size: 14px;
  color: var(--gray-blue);
  margin-bottom: 14px;
  line-height: 1.5;
}

.bm-card-meta {
  font-size: 12px;
  color: var(--gray-blue);
  display: flex;
  gap: 12px;
  align-items: center;
}

.bm-card-meta .author {
  font-weight: 600;
  color: var(--navy);
}

.bm-dot {
  width: 3px;
  height: 3px;
  background: var(--gray-blue);
  border-radius: 50%;
}

/* =========================================
   SIDEBAR DROITE
   ========================================= */

.bm-pullquote {
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  background: var(--white);
  margin-bottom: 32px;
}

.bm-pullquote p {
  font-family: 'Fraunces', serif !important;
  font-size: 19px;
  line-height: 1.4;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 8px;
}

.bm-pullquote cite {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gray-blue);
  font-style: normal;
  font-weight: 600;
}

.bm-newsletter-box {
  background: var(--navy);
  color: var(--white);
  padding: 28px;
  border-radius: var(--radius-card);
}

.bm-newsletter-box h4 {
  color: var(--white) !important;
  font-size: 20px;
  margin-bottom: 10px;
}

.bm-newsletter-box p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}

.bm-newsletter-box input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
}

.bm-newsletter-box button {
  width: 100%;
  padding: 12px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
}

.bm-newsletter-box button:hover {
  transform: translateY(-1px);
}

/* =========================================
   FOOTER
   ========================================= */

.bm-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 48px;
  text-align: center;
  font-size: 13px;
}

.bm-footer .brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

.bm-footer .brand span { color: var(--orange); }

.bm-footer a { color: rgba(255,255,255,.8); }
.bm-footer a:hover { color: var(--orange); }

/* =========================================
   SINGLE ARTICLE
   ========================================= */

.bm-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 48px;
}

.bm-single-header {
  margin-bottom: 48px;
  text-align: center;
}

.bm-single h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.bm-single-meta {
  font-size: 14px;
  color: var(--gray-blue);
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.bm-single-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--navy);
}

.bm-single-content h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 24px;
}

.bm-single-content h3 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 16px;
}

.bm-single-content p {
  margin-bottom: 24px;
}

.bm-single-content ul, .bm-single-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.bm-single-content li {
  margin-bottom: 8px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .bm-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  
  .bm-sidebar-une {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 32px;
  }
  
  .bm-main-wrap {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  
  .bm-aside-left, .bm-aside-right {
    display: none;
  }
  
  .bm-editorial {
    grid-template-columns: 1fr;
  }
  
  .bm-hero h1 {
    font-size: 36px;
  }
  
  .bm-nav {
    padding: 16px 24px;
  }
  
  .bm-nav-links {
    display: none;
  }
}

/* =========================================
   HIDE GP DEFAULT ELEMENTS
   ========================================= */

.site-header,
.site-footer,
.main-navigation,
#page > .site-content > .hfeed {
  display: none !important;
}

.site {
  margin: 0 !important;
  padding: 0 !important;
}

/* .site est enqueue en double (ver=1.0.0 hardcode, copie cache navigateur stale)
   qui charge en dernier et remet margin:0 -> on centre en gagnant par SPECIFICITE */
body .site.grid-container {
  margin-left: auto !important;
  margin-right: auto !important;
}

.site-content {
  padding: 0 !important;
  margin: 0 !important;
  flex-direction: column !important; /* GP met .site-content en flex row -> les sections bm-* se mettaient cote a cote. Force l'empilement vertical. */
}
