/* ============================================================
   PAGE2.CSS – Identité forte, layout poster style "Childhood"
   + coups de peinture abstraite à la Kutter
   ============================================================ */

/* ── Corps de la page ── */
.page2-body {
  background: linear-gradient(160deg, #ffeac6 0%, #ffeded 100%);
  background-attachment: fixed;
}

.p2-main {
  width: 100%;
  overflow-x: hidden;
}


/* ============================================================
   HERO POSTER – Section 1, plein écran
   ============================================================ */
.p2-poster-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  padding: 60px 8vw 80px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── Grille de lignes fines typographiques ── */
.p2-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gl {
  position: absolute;
  background: rgba(61,46,30,0.07);
}

.gl-v { width: 1px; top: 0; bottom: 0; }
.gl-h { height: 1px; left: 0; right: 0; }

.gl-v1 { left: 33%; }
.gl-v2 { left: 66%; }
.gl-h1 { top: 38%; }
.gl-h2 { top: 72%; }

/* ── Coups de peinture abstraite (SVG positionnés) ── */
.paint-stroke {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* PS-1 : grande tache pêche/beige, milieu gauche */
.ps-1 {
  left: -5%;
  top: 10%;
  width: 70%;
  height: auto;
}

/* PS-2 : rose pâle, coin haut-droit */
.ps-2 {
  right: -2%;
  top: -2%;
  width: 42%;
  height: auto;
}

/* PS-3 : bleu clair, bas gauche */
.ps-3 {
  left: 0;
  bottom: 8%;
  width: 35%;
  height: auto;
}

/* PS-4 : traits de stylo, diagonal en pleine largeur */
.ps-4 {
  left: 0;
  top: 55%;
  width: 100%;
  height: 40px;
}

/* PS-pen1 : trait stylo fin expressif */
.ps-pen1 {
  right: 8%;
  top: 30%;
  width: 180px;
  height: auto;
  z-index: 2;
}

/* ── Étiquette verticale droite, style "POSTER COLLECTION" ── */
.p2-label-vertical {
  position: absolute;
  right: 24px;
  top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(61,46,30,0.35);
  z-index: 10;
}

/* ── Grande typographie manuscrite ── */
.p2-hero-titles {
  grid-column: 1;
  grid-row: 1;
  z-index: 5;
  padding-top: 20px;
}

.p2-big-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  color: #3d2e1e;
  margin: 0 0 8px 0;
  /* Effet légèrement gribouillé : léger décalage de lettre */
  letter-spacing: -1px;
}

.p2-big-sub {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #3d2e1e;
  opacity: 0.75;
  margin: 0;
  line-height: 1.1;
}

.p2-sub-italic {
  font-style: italic;
  opacity: 0.5;
  font-size: clamp(1.6rem, 4vw, 3rem);
}

/* ── Photos collage style Childhood ── */
.p2-photo-collage {
  position: absolute;
  z-index: 4;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  overflow: hidden;
}

.p2-photo-inner {
  width: 100%;
  height: 100%;
  background: rgba(139,122,160,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p2-photo-emoji {
  font-size: 3.5rem;
  opacity: 0.7;
}

.p2-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo A – grande, légèrement inclinée, droite-milieu */
.p2-photo-a {
  right: 8%;
  top: 12%;
  width: clamp(200px, 28vw, 360px);
  height: clamp(220px, 32vw, 420px);
  transform: rotate(1.5deg);
  border: 10px solid white;
}

/* Photo B – plus petite, décalée en bas à droite */
.p2-photo-b {
  right: 22%;
  bottom: 14%;
  width: clamp(120px, 16vw, 210px);
  height: clamp(110px, 15vw, 200px);
  transform: rotate(-3deg);
  border: 8px solid white;
}

/* ── Bloc texte metadata style Childhood ── */
.p2-hero-meta {
  grid-column: 1;
  grid-row: 2;
  z-index: 5;
  padding-top: 20px;
  align-self: end;
}

.p2-meta-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #3d2e1e;
  line-height: 2.2;
  opacity: 0.7;
}

.p2-meta-dim {
  opacity: 0.35;
}

/* ── Signature bas de hero ── */
.p2-signature {
  position: absolute;
  bottom: 24px;
  right: 8vw;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #3d2e1e;
  opacity: 0.2;
  z-index: 5;
  transform: rotate(-4deg);
  letter-spacing: 2px;
}


/* ============================================================
   BLOCS COMMUNS (sections 2-6)
   ============================================================ */
.p2-block {
  position: relative;
  padding: 80px 8vw;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.p2-section-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  color: rgba(61,46,30,0.06);
  display: block;
  line-height: 1;
  margin-bottom: -20px;
  letter-spacing: -2px;
}

.p2-section-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #3d2e1e;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.p2-body-text {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #3d2e1e;
  margin: 0;
}

/* ── Mots-clés ── */
.p2-keywords {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.p2-keywords span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: #8b7aa0;
  border-bottom: 1px solid rgba(139,122,160,0.35);
  padding-bottom: 2px;
}


/* ============================================================
   SECTION 2 – Figuratif + Texte
   ============================================================ */
.p2-block-fig {
  display: flex;
  align-items: center;
  gap: 60px;
}

.p2-figuratif {
  flex-shrink: 0;
  width: clamp(180px, 22vw, 280px);
}

.p2-figuratif svg { width: 100%; height: auto; }

.p2-fig-text { flex: 1; max-width: 520px; }

/* Coup de peinture vert en fond section 2 */
.ps-green {
  left: 0;
  top: 30%;
  width: 100%;
  height: auto;
}


/* ============================================================
   SECTION 3 – Citation
   ============================================================ */
.p2-quote-block {
  text-align: center;
  padding: 100px 8vw;
}

/* Coup de peinture fond citation */
.ps-quote {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
}

.p2-quote {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: #3d2e1e;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.p2-quote-mark {
  font-size: 3rem;
  color: #8b7aa0;
  opacity: 0.4;
  line-height: 0;
  vertical-align: -0.4em;
  display: inline-block;
  margin: 0 6px;
}


/* ============================================================
   SECTION 4 – Grille masonry
   ============================================================ */
.p2-grid-block {
  padding-top: 60px;
}

.p2-grid-header {
  margin-bottom: 32px;
}

.p2-grid-note {
  font-size: 0.95rem;
  opacity: 0.5;
  display: block;
  margin-top: 6px;
}

.p2-masonry {
  columns: 3;
  column-gap: 14px;
}

.p2-cell {
  break-inside: avoid;
  margin-bottom: 14px;
  background: rgba(139,122,160,0.12);
  border: 1.5px dashed rgba(139,122,160,0.25);
  border-radius: 8px;
  /* position relative indispensable pour les slides absolus */
  position: relative;
  overflow: hidden;
  /* On n’a plus besoin de flex ici, les slides remplissent l’espace */
  display: block;
}

.p2-cell:nth-child(1)  { height: 180px; }
.p2-cell:nth-child(2)  { height: 240px; }
.p2-cell:nth-child(3)  { height: 160px; }
.p2-cell:nth-child(4)  { height: 200px; }
.p2-cell:nth-child(5)  { height: 280px; }
.p2-cell:nth-child(6)  { height: 175px; }
.p2-cell:nth-child(7)  { height: 220px; }
.p2-cell:nth-child(8)  { height: 160px; }
.p2-cell:nth-child(9)  { height: 200px; }

.p2-cell img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.emoji-placeholder { font-size: 2.5rem; opacity: 0.5; }


/* ============================================================
   SECTION 5 – Vidéo
   ============================================================ */
.p2-video-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p2-video-inner {
  position: relative;
  width: min(100%, 820px);
  z-index: 2;
}

.p2-video-label {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: #3d2e1e;
  opacity: 0.5;
  margin-bottom: 12px;
  display: block;
}

.p2-video-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(139,122,160,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.p2-video-player iframe { width: 100%; height: 100%; border: none; border-radius: 12px; }

.p2-play-btn {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #8b7aa0;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
}
.p2-play-btn:hover { transform: scale(1.12); background: white; }

.ps-vid-l {
  position: absolute;
  left: 6vw; top: 30%;
  width: 60px; height: auto;
  z-index: 0;
}
.ps-vid-r {
  position: absolute;
  right: 6vw; top: 30%;
  width: 60px; height: auto;
  z-index: 0;
}


/* ============================================================
   SECTION 6 – Communauté
   ============================================================ */
.p2-bottom-block {
  padding-bottom: 120px;
}

.p2-community {
  margin-top: 40px;
}

.p2-community-title {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: #3d2e1e;
  margin: 0 0 6px 0;
}

.p2-community-sub {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #3d2e1e;
  opacity: 0.55;
  margin: 0 0 24px 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .p2-poster-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 50px 6vw 60px;
  }

  .p2-photo-a {
    position: relative;
    right: auto; top: auto;
    width: 100%;
    max-width: 300px;
    height: 200px;
    margin: 24px auto 0;
    transform: rotate(1deg);
  }

  .p2-photo-b { display: none; }

  .p2-block-fig { flex-direction: column; }
  .p2-figuratif { width: 160px; }

  .p2-masonry { columns: 2; }

  .p2-big-title { font-size: clamp(4rem, 16vw, 6rem); }

  .p2-label-vertical { display: none; }
}

@media (max-width: 500px) {
  .p2-masonry { columns: 1; }
}
