/* ======================================
   ByMia — Mode & Style · Global Styles
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:    #f8f5f0;
  --beige:    #ede6db;
  --sand:     #d4c8b8;
  --charcoal: #1c1c1a;
  --soft:     #2e2e2a;
  --muted:    #8c8880;
  --accent:   #b89a78;
  --accent2:  #7a6552;
  --white:    #ffffff;
  --red:      #e60023;
  --nav-h: 60px;
  --section-pad: 7rem 5rem;
  --radius: 2px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 300; }

.eyebrow {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 1rem;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(248,245,240,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,200,184,0.4);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(28,28,26,0.07); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 300; letter-spacing: 0.1em;
  color: var(--charcoal); z-index: 1;
}
.nav-logo span { font-style: italic; color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2.8rem;
}
.nav-links a {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.22s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--charcoal); }

.nav-pinterest {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); transition: color 0.22s;
}
.nav-pinterest:hover { color: var(--red); }
.nav-pinterest svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Burger — hidden on desktop */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px; background: none; border: none;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px; transition: all 0.25s;
}

/* Mobile menu — hidden by default */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(248,245,240,0.98);
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  z-index: 199;
  border-bottom: 1px solid var(--beige);
  flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; padding: 1rem 0;
  border-bottom: 1px solid var(--beige); display: block;
}
.mobile-menu a:last-child { border-bottom: none; color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 1rem 2rem;
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.25s; border: none;
}
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,28,26,0.18); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); }
.btn-pinterest { background: var(--red); color: #fff; }
.btn-pinterest:hover { background: #c0001c; transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent2); transform: translateY(-2px); }

.text-link {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--sand); padding-bottom: 2px;
  transition: color 0.22s, border-color 0.22s;
}
.text-link:hover { color: var(--charcoal); border-color: var(--charcoal); }

/* ── SECTION HEADER ── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--beige);
  padding-bottom: 1.5rem; margin-bottom: 4rem;
}
.section-head h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.section-head h2 em { font-style: italic; color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(248,245,240,0.55);
  padding: 5rem 5rem 3rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
}
.footer-logo-block .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: var(--cream);
  letter-spacing: 0.08em; display: block; margin-bottom: 1rem;
}
.footer-logo-block .logo span { font-style: italic; color: var(--accent); }
.footer-logo-block p { font-size: 0.84rem; font-weight: 300; line-height: 1.8; max-width: 260px; }
.footer-col h4 {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cream); margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { font-size: 0.82rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; font-weight: 300; letter-spacing: 0.06em;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 1.2rem; align-items: center; }
.footer-social a { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }

.p-icon path { fill: currentColor; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.anim-up.d1 { animation-delay: 0.1s; }
.anim-up.d2 { animation-delay: 0.2s; }
.anim-up.d3 { animation-delay: 0.3s; }
.anim-up.d4 { animation-delay: 0.4s; }
.anim-up.d5 { animation-delay: 0.5s; }

/* ── PLACEHOLDERS ── */
.placeholder-blush    { background: #f0e4e0; }
.placeholder-warm     { background: #ede5d8; }
.placeholder-sage     { background: #dde5dd; }
.placeholder-stone    { background: #e0dbd5; }
.placeholder-lavender { background: #e8e4ef; }
.placeholder-sky      { background: #dce8f0; }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--beige); padding: 5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 4rem;
}
.newsletter-text h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); line-height: 1.2; margin-bottom: 0.8rem; }
.newsletter-text h2 em { font-style: italic; color: var(--accent); }
.newsletter-text p { font-size: 0.88rem; font-weight: 300; color: var(--muted); line-height: 1.8; }
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form input {
  padding: 1rem 1.6rem; font-family: 'Jost', sans-serif;
  font-size: 0.82rem; font-weight: 300; background: var(--white);
  border: 1px solid var(--sand); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  width: 280px; outline: none; color: var(--charcoal);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 1rem 1.8rem; background: var(--charcoal); color: var(--cream);
  border: none; cursor: pointer; font-family: 'Jost', sans-serif;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0 var(--radius) var(--radius) 0; transition: background 0.22s;
}
.newsletter-form button:hover { background: var(--accent); }

/* ── PINTEREST BAND ── */
.pinterest-band {
  background: var(--charcoal); padding: 5rem;
  display: flex; align-items: center; gap: 4rem; justify-content: space-between;
}
.pinterest-band h2 { font-size: clamp(2rem, 3vw, 3.2rem); color: var(--cream); line-height: 1.1; }
.pinterest-band h2 em { font-style: italic; color: #ff6b80; }
.pinterest-band p { color: rgba(248,245,240,0.55); font-size: 0.88rem; font-weight: 300; line-height: 1.8; margin-top: 0.8rem; max-width: 400px; }

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

@media (max-width: 768px) {

  :root { --nav-h: 60px; }

  /* ── NAV ── */
  nav { padding: 0 1.2rem; }
  .nav-links { display: none !important; }
  .nav-pinterest { display: none !important; }
  .nav-logo { font-size: 1.3rem; }
  .burger { display: flex !important; }

  /* ── HERO ACCUEIL ── */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    padding-top: var(--nav-h) !important;
  }
  .hero-right {
    order: 1;
    width: 100%;
    height: 70vw !important;
    min-height: 260px;
  }
  .hero-left {
    order: 2;
    padding: 2.5rem 1.2rem 3rem !important;
  }
  .hero-title { font-size: 2.6rem !important; line-height: 1.1; }
  .hero-sub { font-size: 0.85rem !important; max-width: 100% !important; }
  .hero-badge { display: none; }
  .hero-scroll-hint { display: none; }
  .hero-tag { font-size: 0.5rem; top: 0.8rem; right: 0.8rem; padding: 0.5rem 0.8rem; }
  .hero-actions { flex-direction: column; gap: 1rem; align-items: flex-start; }

  /* ── TICKER ── */
  .ticker-wrap { padding: 0.6rem 0; }

  /* ── FEATURED ARTICLES ── */
  .featured { padding: 2.5rem 1.2rem !important; }
  .featured-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .article-card.big .card-img,
  .article-card.big .card-img-bg { height: 240px !important; }
  .article-card.small .card-img,
  .article-card.small .card-img-bg { height: 200px !important; }
  .right-col { gap: 1rem; }
  .card-title { font-size: 1.2rem !important; }

  /* ── SECTION HEAD ── */
  .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    margin-bottom: 2rem !important;
  }
  .section-head h2 { font-size: 1.8rem !important; }

  /* ── COUPS DE COEUR (accueil) ── */
  .faves-preview { padding: 2.5rem 1.2rem !important; }
  .faves-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .fave-name { font-size: 0.9rem !important; }

  /* ── STYLE BAND ── */
  .style-band {
    display: flex !important;
    flex-direction: column !important;
    padding: 2.5rem 1.2rem !important;
    gap: 2rem !important;
  }
  .style-band-grid { display: none !important; }

  /* ── ABOUT STRIP (accueil) ── */
  .about-strip {
    display: flex !important;
    flex-direction: column !important;
    padding: 2.5rem 1.2rem !important;
    gap: 2rem !important;
  }
  .divider-line { display: none !important; }

  /* ── NEWSLETTER ── */
  .newsletter {
    flex-direction: column !important;
    padding: 2.5rem 1.2rem !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }
  .newsletter-text h2 { font-size: 1.7rem !important; }
  .newsletter-form {
    flex-direction: column !important;
    width: 100% !important;
  }
  .newsletter-form input {
    width: 100% !important;
    border-right: 1px solid var(--sand) !important;
    border-bottom: none !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
  }
  .newsletter-form button {
    width: 100% !important;
    border-radius: 0 0 var(--radius) var(--radius) !important;
    padding: 1rem !important;
  }

  /* ── PINTEREST BAND ── */
  .pinterest-band {
    flex-direction: column !important;
    padding: 2.5rem 1.2rem !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }
  .pinterest-band h2 { font-size: 1.8rem !important; }
  .btn-pinterest { width: 100% !important; justify-content: center !important; }

  /* ── FOOTER ── */
  footer { padding: 2.5rem 1.2rem 2rem !important; }
  .footer-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    padding-bottom: 2rem !important;
    margin-bottom: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.8rem !important;
    text-align: center !important;
  }

  /* ── PAGE HERO (blog, coups) ── */
  .page-hero {
    display: flex !important;
    flex-direction: column !important;
    padding: calc(var(--nav-h) + 2rem) 1.2rem 2rem !important;
    gap: 1.5rem !important;
    min-height: auto !important;
  }
  .page-hero h1 { font-size: 2.5rem !important; }
  .page-hero p { max-width: 100% !important; }

  /* ── FILTERS ── */
  .filters {
    padding: 1rem 1.2rem !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }
  .filter-label { display: none; }
  .filter-btn { font-size: 0.58rem !important; padding: 0.4rem 0.8rem !important; }

  /* ── PRODUCTS GRID ── */
  .products-section { padding: 2rem 1.2rem 3rem !important; }
  .products-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  .product-name { font-size: 0.9rem !important; }
  .product-price { font-size: 0.8rem !important; }
  .product-cta { display: none !important; }

  /* ── EDITORIAL PICKS ── */
  .editorial-picks {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 1.2rem 2.5rem !important;
    gap: 1rem !important;
  }
  .editorial-card { min-height: 220px !important; }
  .editorial-content h3 { font-size: 1.2rem !important; }

  /* ── BLOG GRID ── */
  .blog-section { padding: 2rem 1.2rem 3rem !important; }
  .blog-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }
  .blog-card.featured-card { grid-column: unset !important; }
  .blog-card.featured-card .blog-card-img { aspect-ratio: 16/9 !important; }
  .blog-card h3 { font-size: 1.2rem !important; }

  /* ── ABOUT HERO ── */
  .about-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .about-hero-left {
    padding: calc(var(--nav-h) + 2rem) 1.2rem 2.5rem !important;
    order: 1;
  }
  .about-hero-left h1 { font-size: 3rem !important; }
  .about-hero-right {
    order: 2;
    padding: 2rem 1.2rem !important;
    min-height: 300px;
  }
  .portrait-placeholder { width: 100% !important; height: 300px !important; }
  .portrait-tag { display: none; }

  /* ── STORY ── */
  .story {
    display: flex !important;
    flex-direction: column !important;
    padding: 2.5rem 1.2rem !important;
    gap: 2rem !important;
  }

  /* ── VALUES ── */
  .values { padding: 0 1.2rem 2.5rem !important; }
  .values-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }
  .value-card { padding: 1.5rem !important; }

  /* ── STATS ── */
  .stats-band {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding: 2rem 1.2rem !important;
    gap: 1.5rem !important;
  }
  .stat-num { font-size: 2.5rem !important; }

  /* ── COLLAB ── */
  .collab { padding: 2.5rem 1.2rem !important; }
  .collab h2 { font-size: 2rem !important; }
  .collab-btns {
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: stretch !important;
  }
  .collab-btns .btn { justify-content: center !important; }

  /* ── CONTACT ── */
  .contact-wrap {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .contact-left {
    padding: calc(var(--nav-h) + 2rem) 1.2rem 2.5rem !important;
  }
  .contact-left h1 { font-size: 3rem !important; }
  .contact-right { padding: 2.5rem 1.2rem !important; }
  .form-row { display: flex !important; flex-direction: column !important; gap: 1rem !important; }
  .form-submit { flex-direction: column !important; align-items: stretch !important; }
  .form-submit .btn { justify-content: center !important; }
  .social-row { flex-wrap: wrap !important; }

  .faq { padding: 2.5rem 1.2rem !important; }
  .faq-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* ── ARTICLE PAGES ── */
  .article-hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .article-hero-left {
    order: 2;
    padding: 2rem 1.2rem 2.5rem !important;
  }
  .article-hero-right {
    order: 1;
    width: 100% !important;
    height: 60vw !important;
    min-height: 240px !important;
  }
  .article-title { font-size: 2rem !important; }
  .article-body { padding: 2rem 1.2rem !important; }
  .article-lead { font-size: 1.1rem !important; }
  .article-h2 { font-size: 1.6rem !important; margin: 2rem 0 1rem !important; }

  .product-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 1.2rem !important;
  }
  .product-inline-img {
    width: 100% !important;
    aspect-ratio: 4/3 !important;
    height: auto !important;
  }

  .summary-table { font-size: 0.72rem !important; display: block; overflow-x: auto; }

  .related { padding: 2rem 1.2rem !important; }
  .related-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .conclusion { padding: 2.5rem 1.2rem !important; }
  .conclusion h2 { font-size: 1.7rem !important; }

  .share-bar { flex-wrap: wrap !important; gap: 0.8rem !important; }

  /* ── PINTEREST BAND DANS ARTICLES ── */
  .pinterest-band .btn-pinterest {
    width: auto !important;
    flex-shrink: 0;
  }

  /* Boutons en général sur mobile */
  .btn { font-size: 0.65rem !important; padding: 0.9rem 1.5rem !important; }
}