/* ============================================================
   INDEX.CSS — VERSION NETTOYÉE
============================================================ */

/* Reset global doux */
body {
  margin: 0;
  padding: 0;
  font-family: 'Lora', serif;
  line-height: 1.6;
  color: #3b2f2f;
  overflow-x: hidden;
}

/* Neutralisation des halos UNIQUEMENT sur les sections standard */
section.accueil-articles::before,
section.accueil-articles::after,
section.hero-accueil::before,
section.hero-accueil::after {
  display: none;
}

/* Bandeau texte du header d’accueil */
.header-texte {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: rgba(255, 248, 235, 0.55);
  backdrop-filter: blur(1px);
  padding: 12px 0;
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

.header-texte .jour {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--accent-brown);
}

.header-texte .phrase {
  margin-top: 4px;
  color: var(--sepia-ink);
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-style: italic;
}

/* Variables globales */
:root {
  --sepia-ink: #4a3b2a;
  --sepia-paper: #fdf6e3;
  --vintage-white: #fffaf3;
  --accent-gold: #d4a373;
  --accent-brown: #6b4a3a;
  --accent-dark: #5a3b2a;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --editorial-bg: rgba(255, 248, 235, 0.85);
  --editorial-border: rgba(120, 90, 60, 0.45);
  --editorial-paper: url("img/texture-papier-vintage-globale.webp");
  --font-hand: 'La Belle Aurore', 'Handlee', cursive;
}

/* ============================================================
   HEADER POLAROID — VERSION ORIGINALE (ACCUEIL)
============================================================ */

header.header-polaroid {
  width: 100%;
  background-color: var(--vintage-white);
  position: relative;
  z-index: 100;
  margin-bottom: 30px;
  overflow: visible;
}

header.header-polaroid img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.96) contrast(1.05);
}

/* Ruban */
header.header-polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 120px;
  height: 38px;
  background-image: url("img/ruban-beige-destructure.webp");
  background-size: cover;
  opacity: 0.55;
}

/* ============================================================
   NAV — PREMIUM MAGAZINE
============================================================ */

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  background: rgba(255, 185, 210, 0.95);
  background-image: var(--editorial-paper);
  background-size: cover;
  border-top: 6px double rgba(190, 70, 110, 0.65);
  border-bottom: 6px double rgba(190, 70, 110, 0.65);
  box-shadow: 0 14px 28px rgba(0,0,0,0.15);
}

.main-nav a {
  font-family: var(--font-title);
  font-size: 1.36rem;
  letter-spacing: 1.12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #5a1f33;
  padding: 0 34px;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover {
  color: #b03055;
  transform: translateY(-2px);
}

.main-nav a::after {
  content: "♦";
  position: absolute;
  right: -26px;
  top: 44%;
  transform: translateY(-50%);
  font-size: 1.42rem;
  color: #7a4a4a;
  opacity: 0.85;
}

.main-nav a:last-child::after {
  content: "";
}

/* ============================================================
   BANDEAU EDITORIAL
============================================================ */

.bandeau-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.bandeau-editorial {
  background: rgba(255, 248, 235, 0.92);
  padding: 40px 0 38px;
  border-top: 6px double rgba(120, 90, 60, 0.45);
  border-bottom: 6px double rgba(120, 90, 60, 0.45);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  margin-bottom: 50px;
  text-align: center;
  overflow: visible !important;
}

.bandeau-editorial::after {
  content: "";
  display: block;
  width: 100%;
  height: 42px;
  margin: 40px auto 0;
  background-image: url("img/ligne-usure-vintage.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.92;
}

.bandeau-titre {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--accent-dark);
  letter-spacing: 1px;
  margin: 0;
  transform: rotate(-0.6deg);
}

.bandeau-sous-titre {
  font-size: 1.9rem;
  font-weight: 600;
  border-bottom: 6px solid rgba(255, 192, 203, 0.75);
  padding-bottom: 12px;
  display: inline-block;
  color: var(--accent-dark);
  letter-spacing: 0.6px;
}

/* ============================================================
   HERO ACCUEIL
============================================================ */

.hero-magazine-gauche {
  position: relative;
  padding: 20px 20px;
  border: 2px solid rgba(120, 90, 60, 0.25);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.08);
  background: rgba(255, 248, 235, 0.55);
  border-radius: 18px;
}

.hero-mag-title {
  text-align: center;
  margin: 0 auto 20px;
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--accent-dark);
  letter-spacing: 1.4px;
  text-shadow: 0 2px 0 rgba(255,255,255,0.9);
  transform: rotate(-0.6deg);
}

/* ============================================================
   GRILLE POLAROID
============================================================ */

.grille-polaroids {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 70px 55px;
  padding: 60px 40px;
  align-items: start;
}

.polaroid {
  position: relative;
  background: #fffdf7;
  border-radius: 12px;
  padding: 18px 18px 32px;
  box-shadow:
    0 12px 26px rgba(0,0,0,0.15),
    0 6px 14px rgba(0,0,0,0.12);
  border: 2px solid rgba(160, 115, 80, 0.25);
  overflow: visible;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid:hover {
  transform: scale(1.015) rotate(0deg);
  box-shadow:
    0 16px 32px rgba(0,0,0,0.18),
    0 6px 14px rgba(0,0,0,0.14);
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  background: #f7f3e9;
  border-top: 6px solid #e4b6c4;
  padding: 45px 0 55px;
  text-align: center;
  border-bottom: 6px double rgba(120, 90, 60, 0.45);
  box-shadow: 0 -12px 26px rgba(0,0,0,0.12);
  margin-top: 80px;
  background: linear-gradient(to top, #ffe7ef 0%, #f7f3e9 40%);
}

.site-footer::after {
  content: "";
  display: block;
  width: 100%;
  height: 32px;
  margin: 40px auto 0;
  background-image: url("img/ligne-usure-vintage.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.92;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {
  .hero-accueil {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 20px 16px;
  }

  .grille-polaroids {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px 20px;
  }

  .polaroid {
    transform: rotate(0deg);
  }
}
