/* ============================================================
   MADAME — Homepage sections (Phase 1B)
   Charte : Blanc · Noir · Vert profond foncé
   ============================================================ */

/* ============================================================
   ANNOUNCEMENT
   ============================================================ */
.madame-announcement {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px var(--gutter);
  text-align: center;
}
.madame-announcement-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.madame-announcement-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.madame-announcement-dot {
  width: 4px; height: 4px;
  background: var(--forest-soft);
  border-radius: 50%;
}
@media (max-width: 768px) {
  .madame-announcement-track { gap: 24px; font-size: 10px; }
  .madame-announcement-track span:nth-child(n+3) { display: none; }
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.madame-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 9999;
}
.madame-skip:focus { left: 12px; top: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.madame-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--tr-base), border-color var(--tr-base);
}
.madame-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}
.madame-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.madame-header-left { display: flex; gap: 4px; }
.madame-header-right { display: flex; gap: 4px; justify-content: flex-end; }

.madame-icon-btn {
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--tr-fast);
  position: relative;
  text-decoration: none;
}
.madame-icon-btn:hover { background: var(--bone); }

.madame-cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* Wordmark M/ADAME */
.madame-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.madame-wordmark-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.madame-wordmark-slash {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
  margin: 0 -2px;
}
.madame-wordmark-tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--stone);
  margin-top: 4px;
}

/* Nav — ultra-spécifique pour battre Shoptimizer parent */
body.madame-active .madame-nav,
.madame-header .madame-nav {
  border-top: 1px solid var(--line) !important;
  padding: 10px var(--gutter) !important;
  background: var(--white) !important;
  width: 100% !important;
}
body.madame-active .madame-nav .madame-nav-list,
.madame-header .madame-nav-list {
  display: flex !important;
  justify-content: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 36px !important;
  flex-wrap: wrap !important;
  background: transparent !important;
}
body.madame-active .madame-nav-list .madame-nav-item,
.madame-header .madame-nav-list li {
  list-style: none !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
body.madame-active .madame-nav-list .madame-nav-item a {
  text-transform: uppercase !important;
  letter-spacing: 0.16em !important;
  font-size: 12px !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  padding: 8px 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body.madame-active .madame-nav-list .madame-nav-edition a em {
  font-family: var(--serif-italic) !important;
  font-style: italic !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--forest) !important;
  font-size: 14px !important;
}
.madame-nav-list a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.madame-nav-list a:hover { color: var(--forest); }
.madame-nav-edition a em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--forest);
}
.madame-nav-pulse {
  width: 6px; height: 6px;
  background: var(--forest);
  border-radius: 50%;
  position: relative;
}
.madame-nav-pulse::after {
  content: '';
  position: absolute; inset: -2px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  animation: madamePulse 2s ease-out infinite;
}
@keyframes madamePulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (max-width: 768px) {
  .madame-nav { display: none; }
}

/* ============================================================
   HERO — module madame-premium-product (auto-managé)
   Classes : .hero, .hero-text, .hero-image, .hero-issue, .hero-title,
   .hero-lead, .hero-cta-row, .hero-meta, .hero-stamp, .hero-scroll,
   .hero-mark, .hero-visual, .btn-primary, .btn-ghost, .underline
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(560px, 80vh, 880px);
  background: var(--paper);
  position: relative;
}

.hero-text {
  padding: clamp(40px, 6vw, 100px) clamp(30px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

/* Issue label (numéro d'édition + saison) */
.hero-issue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--forest);
}
.hero-issue em {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--forest);
  letter-spacing: 0;
  font-size: 14px;
  text-transform: none;
}

/* Titre H1 — 3 lignes */
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
.hero-title em {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}
.hero-title .underline {
  position: relative;
  display: inline-block;
}
.hero-title .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.05em;
  height: 1px;
  background: var(--forest);
}

/* Lead italique */
.hero-lead {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 540px;
  margin: 0;
}

/* CTAs */
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--tr-base);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest); }
.btn-primary span { position: relative; z-index: 1; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 18px 0;
}
.btn-ghost:hover { color: var(--forest); border-color: var(--forest); }

/* Meta (stats catalogue + date d'édition) */
.hero-meta {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

/* Image / fallback visual */
.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.hero-image-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback visual si pas d'image (lettre M géante) */
.hero-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, var(--bone) 0%, var(--paper) 100%);
}
.hero-mark {
  font-family: var(--serif);
  font-size: clamp(12rem, 28vw, 24rem);
  font-weight: 500;
  color: var(--forest);
  opacity: 0.08;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Stamp (cachet édition sur l'image) */
.hero-stamp {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: var(--white);
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  max-width: 240px;
}
.hero-stamp strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--mist);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 12px;
  background: var(--forest);
  animation: heroScroll 1.8s var(--ease) infinite;
}
@keyframes heroScroll {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* Mobile hero */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    aspect-ratio: 4/5;
    order: -1;
  }
  .hero-text {
    padding: 40px var(--gutter) 56px;
  }
  .hero-stamp { bottom: 16px; right: 16px; padding: 12px 16px; max-width: 180px; }
  .hero-stamp strong { font-size: 13px; }
  .hero-scroll { display: none; }
}

/* Compat : ancien sélecteur .madame-hero (du fallback statique précédent) */
.madame-hero { display: none; }


/* ============================================================
   PRESS BAR
   ============================================================ */
.madame-press {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.madame-press-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}
.madame-press-label {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--stone);
  font-size: 14px;
}
.madame-press-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 40px;
  flex-wrap: wrap;
}
.madame-press-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--graphite);
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.madame-section-header {
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 720px;
}
.madame-section-header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.madame-section-header .madame-eyebrow {
  margin-bottom: 16px;
}
.madame-section-header--inv .madame-eyebrow,
.madame-eyebrow--inv { color: var(--forest-soft); }

/* ============================================================
   CATEGORIES — Grille robuste auto-responsive
   Approche : grille uniforme 4 colonnes desktop, 2 mobile
   Asymétrie discrète : la 1ère carte est plus haute (grid-row span 2)
   Fonctionne avec n'importe quel nombre de cartes (3 à 8)
   ============================================================ */
.madame-categories-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-rows: minmax(280px, auto) !important;
  gap: var(--grid-gap, 20px) !important;
  align-items: stretch !important;
}
.madame-cat-card {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background: var(--bone) !important;
  text-decoration: none !important;
  color: inherit !important;
  aspect-ratio: 3/4 !important;
  min-height: 280px !important;
  width: 100% !important;
  height: 100% !important;
}
/* Carte 1ère = plus grande (span 2 colonnes + 2 rangs) */
.madame-cat-card:nth-child(1) {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
  aspect-ratio: 3/4 !important;
}
/* Cartes 2 à 5 : 1 colonne 1 rang */
.madame-cat-card:nth-child(n+2):nth-child(-n+5) {
  aspect-ratio: 3/4 !important;
}
.madame-cat-img {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
}
.madame-cat-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 1.4s var(--ease-out);
}
.madame-cat-card:hover .madame-cat-img img { transform: scale(1.06); }

/* Stack rotation : empile N images en absolute, fade slow entre elles.
   La 1ère est visible immédiatement (is-active), les autres en opacity:0.
   JS toggle .is-active toutes les 6s avec offset par carte. */
.madame-cat-img--stack .madame-cat-img-item {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.65, 0, 0.35, 1), transform 1.4s var(--ease-out);
  z-index: 1;
}
.madame-cat-img--stack .madame-cat-img-item.is-active {
  opacity: 1;
  z-index: 2;
}
/* Hover scale ne s'applique qu'à l'image active pour cohérence visuelle */
.madame-cat-card:hover .madame-cat-img--stack .madame-cat-img-item.is-active {
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
  .madame-cat-img--stack .madame-cat-img-item {
    transition: none;
  }
}
.madame-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
}
.madame-cat-meta {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  z-index: 2;
  color: var(--white);
}
.madame-cat-count {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.85;
}
.madame-cat-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  margin: 0;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  .madame-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .madame-cat-card:nth-child(1) {
    grid-column: span 2 !important;
    grid-row: auto !important;
    aspect-ratio: 16/9 !important;
  }
}
@media (max-width: 600px) {
  .madame-categories-grid {
    grid-template-columns: 1fr !important;
  }
  .madame-cat-card,
  .madame-cat-card:nth-child(1) {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4/5 !important;
  }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.madame-manifesto-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  line-height: 1.3;
  color: var(--white);
  max-width: 900px;
  margin: 0 0 72px;
  letter-spacing: -0.005em;
}
.madame-manifesto-quote em {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--forest-soft);
}
.madame-manifesto-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line-dark);
  padding-top: 40px;
}
.madame-manifesto-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.madame-stat-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--forest-soft);
  line-height: 1;
}
.madame-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ============================================================
   EDITORIAL
   ============================================================ */
.madame-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.madame-editorial-image img {
  width: 100%; height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.madame-editorial-text { max-width: 560px; }
.madame-editorial-text .madame-h2 { margin-bottom: 32px; }
.madame-editorial-text p { margin-bottom: 24px; color: var(--graphite); font-size: 1rem; line-height: 1.75; }
.madame-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color var(--tr-fast), border-color var(--tr-fast);
  margin-top: 16px;
}
.madame-link-arrow:hover { color: var(--forest); border-color: var(--forest); }
@media (max-width: 1024px) {
  .madame-editorial-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTS FEATURED
   ============================================================ */
.madame-featured-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.madame-tab {
  background: transparent;
  border: 0;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--tr-fast), border-color var(--tr-fast);
}
.madame-tab:hover { color: var(--ink); }
.madame-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--forest);
}

.madame-featured-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 64px;
}
.madame-featured-grid.is-active { display: grid; }

.madame-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.madame-product-img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bone);
  overflow: hidden;
  margin-bottom: 16px;
}
.madame-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--tr-base);
}
.madame-product-img-2 {
  position: absolute; inset: 0;
  opacity: 0;
}
.madame-product-card:hover .madame-product-img-2 { opacity: 1; }
.madame-product-card:hover .madame-product-img-1 { opacity: 0; }

.madame-product-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.madame-product-price {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--graphite);
}

.madame-featured-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .madame-featured-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .madame-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .madame-featured-tabs { gap: 0; }
  .madame-tab { padding: 12px 16px; font-size: 11px; }
}

/* ============================================================
   JOURNAL (fond noir)
   ============================================================ */
.madame-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-bottom: 56px;
}
.madame-journal-card {}
.madame-journal-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.madame-journal-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--line-dark);
}
.madame-journal-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.madame-journal-card:hover .madame-journal-img img { transform: scale(1.04); }
.madame-journal-meta { display: flex; flex-direction: column; gap: 12px; }
.madame-journal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  color: var(--white);
  margin: 0;
}
.madame-journal-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.madame-cta--ghost-inv {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}
.madame-cta--ghost-inv:hover {
  background: var(--white);
  color: var(--ink);
}
@media (max-width: 1024px) {
  .madame-journal-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ENGAGEMENT
   ============================================================ */
.madame-engagement { background: var(--paper); }
.madame-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 80px);
  list-style: none;
  margin: 0; padding: 0;
}
.madame-pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.madame-pillar-roman {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--forest);
  line-height: 1;
}
.madame-pillar-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin: 0;
  color: var(--ink);
}
.madame-pillar-text {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--graphite);
  max-width: 320px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .madame-pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTAGRAM
   ============================================================ */
.madame-instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.madame-ig-tile {
  position: relative;
  aspect-ratio: 1/1;
  display: block;
  overflow: hidden;
  background: var(--bone);
  text-decoration: none;
}
.madame-ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.madame-ig-tile:hover img { transform: scale(1.06); }
.madame-ig-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.4);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr-base);
}
.madame-ig-tile:hover .madame-ig-overlay { opacity: 1; }

@media (max-width: 1024px) { .madame-instagram-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .madame-instagram-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.madame-newsletter-inner {
  text-align: center;
  max-width: 720px;
}
.madame-newsletter-lead {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 24px 0 40px;
  line-height: 1.6;
}
.madame-newsletter-form {
  display: flex;
  gap: 8px;
  margin: 0 auto 16px;
  max-width: 520px;
  flex-wrap: wrap;
}
.madame-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color var(--tr-fast);
}
.madame-newsletter-form input[type="email"]::placeholder { color: var(--mist); }
.madame-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--forest-soft);
}
.madame-cta--inv {
  background: var(--white);
  color: var(--ink);
}
.madame-cta--inv:hover {
  background: var(--forest);
  color: var(--white);
}
.madame-newsletter-legal {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  margin-top: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.madame-footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(60px, 8vw, 120px) 0 0;
}
.madame-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-dark);
}
.madame-wordmark--footer { align-items: flex-start; margin-bottom: 24px; }

/* === Custom logo WP (vrai logo média) === */
.madame-header-inner .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  max-width: 200px !important;
  justify-content: center !important;
}
.madame-header-inner img.custom-logo,
.madame-header img.custom-logo {
  max-height: 44px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.madame-footer img.custom-logo,
.madame-footer-brand img.custom-logo {
  max-height: 56px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  filter: brightness(0) invert(1); /* logo blanc sur fond noir */
  margin-bottom: 24px;
}
.madame-drawer img.custom-logo,
.madame-drawer-head img.custom-logo {
  max-height: 36px !important;
  max-width: 160px !important;
  width: auto !important;
  height: auto !important;
}
.madame-wordmark--footer .madame-wordmark-name { color: var(--white); }
.madame-wordmark--footer .madame-wordmark-tagline { color: var(--mist); }
.madame-footer-desc {
  font-family: var(--serif-italic);
  font-style: italic;
  color: rgba(255,255,255, 0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 24px 0;
}
.madame-footer-social {
  display: flex;
  gap: 8px;
}
.madame-footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--white);
  transition: border-color var(--tr-fast), color var(--tr-fast);
}
.madame-footer-social a:hover {
  border-color: var(--forest-soft);
  color: var(--forest-soft);
}
.madame-footer-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 20px;
  font-weight: 500;
}
.madame-footer-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.madame-footer-list a,
.madame-footer-list li {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.madame-footer-list a:hover { color: var(--white); }
.madame-footer-list .mad-label-dot { background: var(--forest-soft); }

.madame-footer-baseline {
  background: var(--black);
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
  margin-top: 0;
}
.madame-footer-baseline .madame-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.madame-footer-payments { letter-spacing: 0.1em; }

@media (max-width: 1024px) {
  .madame-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .madame-footer-inner { grid-template-columns: 1fr; }
  .madame-footer-baseline .madame-container { flex-direction: column; gap: 12px; }
}

/* ============================================================
   FADE-IN AU SCROLL
   ============================================================ */
[data-fade-in] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-fade-in].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.madame-no-motion [data-fade-in] {
  opacity: 1;
  transform: none;
  transition: none;
}
