/* 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: 'Patrick Hand', 'Handlee', cursive;
}

/* Fond global doux */
body {
  margin: 0;
  padding: 0;
  background-color: var(--vintage-white);
  background-color: rgba(255, 248, 235, 0.92);
  color: var(--sepia-ink);
  font-family: 'Lora', serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img{
  overflow: clip;
  overflow-clip-margin: content-box;
}
/* ============================================================
   HEADER & NAVIGATION
============================================================ */

header.header-polaroid {
  width: 100%;
  background-color: var(--vintage-white);
  position: relative;
  z-index: 50;
  margin-bottom: 30px;
}

header.header-polaroid img {
  width: 100%;
  height: 680px !important;
  object-fit: cover;
}

.header-texte {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  background: rgba(255, 248, 235, 0.55);
  backdrop-filter: blur(1px);
  padding: 12px 0;
  border-radius: 6px;
  z-index: 60;
}

.header-texte .jour {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--accent-brown);
}

.header-texte .phrase {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--sepia-ink);
  font-style: italic;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: var(--vintage-white);
  padding: 15px 0 20px;
  margin: 20px 0;
  border-bottom: 8px solid rgba(212, 129, 102, 0.6);
}

nav.main-nav a {
  color: var(--sepia-ink);
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav.main-nav a:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}
/* ============================
   HERO PREMIUM — STRUCTURE
============================ */

.hero-magazine {
  display: grid;
  grid-template-columns: 1fr 0.9fr; /* photo bien à droite */
  gap: 40px; /* réduit */
  align-items: start;

  padding-top: 40px; /* au lieu de 90 */
  padding-bottom: 40px; /* au lieu de 80 */

  max-width: 1150px; /* plus compact */
  margin: 0 auto 60px;

  background: rgba(255, 250, 240, 0.82);
  border-radius: 22px;
  border: 3px double rgba(120, 90, 60, 0.35);
  box-shadow: 0 18px 36px rgba(0,0,0,0.10);
}


.bandeau-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.bandeau-editorial {
  background: rgba(255, 248, 235, 0.92); /* plus présent */
  background-image: url("img/texture-papier-vintage-globale.webp");
  background-size: cover;
  background-repeat: repeat;

  padding: 40px 0 38px; /* respiration retrouvée */
  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); /* poids narratif */
  margin-bottom:50px; /* séparation premium */
  position: relative;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ligne usée restaurée */
.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; /* plus visible */
}

/* titre restauré */
.bandeau-titre {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--accent-dark);
  letter-spacing: 1px;
  margin: 0;
  transform: rotate(-0.6deg);
}

/* sous-titre restauré */
.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 GAUCHE — TEXTE
============================ */

.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;

  /* suppression du blur excessif */
  backdrop-filter: none;

  /* suppression de la texture doublon */
  background-image: none;
}

.hero-mag-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  font-family: var(--font-title);
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--accent-dark);
  letter-spacing: 1.4px;
  text-shadow: 0 2px 0 rgba(255,255,255,0.9);
  transform: rotate(-0.6deg);
  margin-bottom: 20px;
}
.hero-mag-title,
.accroche-adele p {
  font-family: var(--font-title);
}

.hero-mag-signature {
  font-family: var(--font-body);
}

/* ============================
   ACCROCHE — VERSION PREMIUM
============================ */

.accroche-adele {
  position: relative;
  margin: 15px auto 18px; /* respiration premium */
  max-width: 480px;
}

.accroche-adele p {
  font-size: 1.85rem; /* + lisible */
  font-weight: 700; /* + impact */
  color: rgba(80, 55, 40, 0.95); /* + foncé */
  line-height: 1.55;

  border-left: 12px solid rgba(255, 192, 203, 0.85); /* + visible */
  padding-left: 26px;

  background: rgba(255, 248, 240, 0.55); /* beige doux lisible */
  border-radius: 8px;

  text-shadow: 0 1px 0 rgba(255,255,255,0.8); /* lisibilité */
}


/* suppression des étoiles (trop chargé) */
.accroche-adele::before,
.accroche-adele::after {
  display: none;
}

/* ============================
   SIGNATURE — PREMIUM
============================ */

.hero-mag-signature {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--sepia-ink);
  margin-top: 10px;
  margin-bottom: 24px;
  line-height: 1.45;
  opacity: 0.78;
  transform: rotate(0deg);
}

/* ============================
   HERO DROITE — POLAROID
============================ */

.hero-img-container {
  position: relative;
  background: #fff7de;
  padding: 18px 18px 28px; /* réduit */
  border-radius: 14px;

  box-shadow:
    0 12px 22px rgba(0,0,0,0.15),
    inset 0 0 8px rgba(0,0,0,0.12);

  transform: rotate(-1.2deg); /* plus doux */
  max-width: 330px; /* réduit */
  margin: 0 auto;
}

/* bordure usée — premium */
.hero-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/bordure-usee.webp");
  background-size: cover;
  opacity: 0.28; /* plus discret */
  mix-blend-mode: multiply;
  border-radius: 14px;
}

/* ruban — on garde, mais plus doux */
.hero-img-container::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 150px;
  height: 48px;
  background-image: url("img/ruban-beige-destructure.webp");
  background-size: cover;
  opacity: 0.70; /* premium */
}
/* wrapper interne — texture plus douce */
.hero-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("img/texture-papier-vintage-globale.webp"),
    url("img/grain-vintage.webp");
  background-size: cover, 18px;
  background-repeat: repeat, repeat;
  mix-blend-mode: multiply;
  opacity: 0.18; /* grain premium */
  pointer-events: none;
  border-radius: 12px;
}
/* image */
.hero-img {
  width: 100%;
  max-width: 310px; /* réduit */
  border-radius: 12px;
  filter: brightness(0.92) contrast(1.08) saturate(0.85); /* effet vieilli */
}

/* suppression de la texture doublon */
.hero-col-gauche {
  background-image: none;
  padding: 20px;
  padding-right:20px;
}
.hero-col-droite {
  padding-left: 10px; /* équilibre visuel */
}
.separateur-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
}

.separateur-hero img {
  width: 1200px; /* taille M */
  max-width: 90%;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(60,40,20,0.25));
}


/* ============================================================
   INTRO — PARCHEMIN VINTAGE DOUX
============================================================ */
.intro-wrapper {
  max-width: 1150px;
  margin: 0 auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 0;
  background: none;
  overflow: visible;
}

/* CONTENEUR PRINCIPAL — SANS OPACITÉ */
.intro-editoriale {
  position: relative;
  padding: 40px 35px;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  margin-bottom: 60px;
  background-color: rgba(255, 248, 235, 0.85); /* AJOUT CRUCIAL */
  background-image: url("img/texture-parchemin-vintage.webp"), url("img/grain-vintage.webp");
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  z-index: 1;
}


/* CALQUE 1 — FOND PARCHEMIN AVEC OPACITÉ */
.intro-editoriale::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("img/texture-parchemin-vintage.webp"), url("img/grain-vintage.webp");
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0.45; /* ton opacité */
  border-radius: 18px;
  z-index: 2;
}



/* TEXTE — AU-DESSUS DES CALQUES */
.intro-text-p {
  font-family: 'Patrick Hand', 'Handlee', cursive !important;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.9;
  color: #3b2718;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;

  letter-spacing: 0.6px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 0 3px rgba(255,255,255,0.4);
}


/* TITRE — Lettre ancienne */
.intro-titre {
  font-family: 'La Belle Aurore', 'Petit Formal Script', cursive !important;
  font-size: 2.7rem;
  color: #7a4a2f;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.6px;
  transform: rotate(-1.2deg);
}

/* TEXTE — Lettre ancienne premium */
.intro-text-p {
  font-family: 'La Belle Aurore', 'Petit Formal Script', cursive !important;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 2.25;
  color: #3b2718;

  max-width: 76%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;

  letter-spacing: 0.3px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.75),
    0 0 3px rgba(255,255,255,0.45);
}


.intro-text-p,
.intro-titre {
  position: relative;
  z-index: 50;
}
.intro-editoriale p,
.intro-editoriale .intro-text-p {
  font-family: 'La Belle Aurore', 'Petit Formal Script', cursive !important;
  font-size: 1.9rem;
  line-height: 2.25;
  color: #3b2718;
  text-align: center;
  max-width: 76%;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.3px;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.75),
    0 0 3px rgba(255,255,255,0.45);
}



/* TAMPON — AU-DESSUS DE TOUT */
.tampon-parchemin {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 140px;
  height: 140px;

  background-image: url("img/tampon-adele-chaussette.webp");
  background-size: contain;
  background-repeat: no-repeat;

  opacity: 0.92;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.25));
  z-index: 90; /* AU-DESSUS DE TOUT */
}



/* ============================================================
   FOND RENAULT 5
============================================================ */

section.accueil-articles {
  position: relative;
  background-image:
    linear-gradient(rgba(252, 249, 242, 0.55), rgba(252, 249, 242, 0.55)),
    url("img/fond-calle-sanchez-r5.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 160vh;
  padding-top: 20px;
  padding-bottom: 80px;
  z-index: 1;
}

/* ============================================================
   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;
}

.grille-polaroids article:nth-child(1) {
  margin-top: -20px; /* ajuste entre -10 et -30 selon ton œil */
}
.grille-polaroids article:nth-child(1) {
  transform: translateY(-14px);
}


.grille-polaroids article:nth-child(4) {
  margin-top:40px;
  transform: translateY(20px);
}


.polaroid {
  position: relative;
  background: #fffdf7;
  border-radius: 12px;
  padding: 18px 18px 32px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.15);
  border: 2px solid rgba(160, 115, 80, 0.25);
  overflow: visible; /* pour les éléments décoratifs */
  z-index: 0;
}
.polaroid-punaise {
  position: absolute;
  top: -8px;
  left: 44%;
  transform: translateX(-50%) rotate(-6deg);
  width: 28px;
  height: 28px;
  background-image: url("img/punaise-rouge.webp");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 9999;
  pointer-events: none;
}

/* Texture */
.polaroid-texture {
  position: absolute;
  inset: 0;
  background-image: url("img/texture-papier-vintage-globale.webp");
  background-size: cover;
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* Bordure déchirée */
.polaroid-bordure {
  position: absolute;
  inset: 0;
  background-image: url("img/papier-dechire-carte.webp");
  background-size: 100% 100%;
  opacity: 0.35;
  mix-blend-mode: multiply;
  z-index: 2; /* baisse le z-index */
  pointer-events: none;
}


/* Timbre */
.polaroid-timbre {
  position: absolute;
  bottom: 4px; /* plus bas */
  right: 4px; /* plus à droite */
  width: 60px; /* plus petit */
  height: 60px;
  background-image: url("img/calle-carte.webp");
  background-size: contain;
  opacity: 0.65; /* plus discret */
  transform: rotate(-5deg);
  z-index: 8;
  pointer-events: none;
}


.polaroid:nth-child(1) { transform: rotate(-1.4deg); }
.polaroid:nth-child(2) { transform: rotate(0.9deg); }
.polaroid:nth-child(3) { transform: rotate(1.6deg); }
.polaroid:nth-child(4) { transform: rotate(-0.8deg); }


.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);
}


.polaroid:nth-child(1) { --rotation: -1.4deg; }
.polaroid:nth-child(2) { --rotation: 0.8deg; }
.polaroid:nth-child(3) { --rotation: 1.6deg; }
.polaroid:nth-child(4) { --rotation: -0.9deg; }


.card-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  transform: rotate(-1deg);
  filter: contrast(1.05) saturate(1.1);
}

.accueil-articles .polaroid.timbre-bas::after {
  opacity: 0.85;
  transform: rotate(-6deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

.card-body .quote-middle {
  font-size: 1.15rem;
  line-height: 1.65;
  background: rgba(255, 248, 235, 0.92);
  border-radius: 10px;
  padding: 14px 20px;
}

.quote-top,
.quote-middle,
.card-footer {
  color: #4a2f1f; /* brun lisible */
  text-shadow: 0 1px 0 rgba(255,255,255,0.8); /* lisibilité douce */
  letter-spacing: 0.3px;
}

/* ============================================================
   MOBILE — FINAL
============================================================ */

@media (max-width: 768px) {

  .hero-accueil {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 20px 16px;
  }

  .hero-img-container {
    max-width: 92%;
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .accroche-adele {
    max-width: 85%;
    margin: 0 auto;
    transform: rotate(0deg);
    padding: 18px 24px;
  }

  .accroche-adele p {
    font-size: 1.3rem;
  }

  .intro-editoriale {
    padding: 40px;
  }

  .intro-text-p {
    font-size: 1.25rem;
    line-height: 1.75;
  }

  .grille-polaroids {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px 20px;
  }

  .polaroid {
    transform: rotate(0deg);
  }
}
