/* project2.css */
/* =========================================
   PROJECT 2
   ✅ Hero: banniere1.jpg chevauche + difference + tout à droite
   ✅ Vimeo centrée
   ✅ Carousel supprimé
   ✅ Drap.png + légende overlay (comme screenshot)
========================================= */

.project2-page{
    background: #101010;
    color: #f5f5f5;
  }
  
  /* =========================
     HERO
  ========================= */
  .p2-hero{
    position: relative;
    padding-top: 0;
    min-height: calc(100vh - 70px);
  }
  
  .p2-hero-inner{
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 90px;
    overflow: visible;
  }
  
  /* ✅ HERO IMAGE (tout à droite) */
  .p2-hero-media{
    position: absolute;
  
    top: 0;
    right: calc((100vw - 1400px) / -2); 
    /* 🔥 colle parfaitement au bord de l’écran */
  
    width: 80vw;
    height: auto;
  
    mix-blend-mode: difference;

    pointer-events: none;
    user-select: none;
    will-change: transform;
  }
  
  .p2-hero-index{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -0.06em;
    font-size: clamp(7rem, 16vw, 15rem);
    line-height: 0.75;
    position: relative;
    z-index: 4;
    text-transform: uppercase;
    mix-blend-mode: difference;
  }
  
  .p2-hero-meta{
    position: absolute;
    top: 25px;
    left: 420px;
    right: 60px;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 0.7fr;
    gap: 60px;
    z-index: 5;
    mix-blend-mode: difference;
    text-transform: uppercase;
  }
  
  .p2-meta-title{
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.12rem;
    font-weight: 400;
  }
  
  .p2-meta-sub{
    margin-top: 10px;
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.12rem;
    font-weight: 300;
    opacity: 0.85;
  }
  
  .p2-hero-text{
    margin-top: 120px;
    max-width: 520px;
    position: relative;
    z-index: 6;
    mix-blend-mode: difference;
    text-transform: uppercase;
  }
  
  .p2-hero-text p{
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.12rem;
    font-weight: 300;
    margin-bottom: 22px;
    opacity: 0.9;
  }
  
  .p2-hero-text strong{
    font-weight: 600;
    opacity: 1;
  }
  
  /* =========================
     IMAGE + VIDEO (plus d'espace)
  ========================= */
  .p2-full{
    width: 100%;
    overflow: hidden;
    padding: 90px 0 200px; /* ✅ plus d’air global */
  }
  
  .p2-full-inner{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
  
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ centre vidéo + image */

    gap: 140px; /* ✅ plus d’espace entre image et vidéo */
  }
  
  /* =========================
     Drap figure (caption overlay style screenshot)
  ========================= */
  .p2-after-figure{
    width: min(82vw, 1200px);
    max-width: 1200px;
    margin: 0;
    position: relative;
    background: #101010; /* 👈 EXACTEMENT comme ton body */
      
  }
  
  .p2-after-image{
    width: 100%;
    height: auto;
    display: block;
  
    mix-blend-mode: screen; /* ok */
  
    filter: brightness(1.6) contrast(1.3); /* 🔥 clé du fix */
  }

  /* overlay container */
  .p2-after-caption{
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: difference;
  }

  /* petit #1 à gauche (comme ton screenshot) */
  .p2-cap-mini{
    position: absolute;
    top: 22%;
    left: 36%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    opacity: 0.9;
    text-transform: uppercase;
  }

  /* bloc à droite */
  .p2-cap-right{
    position: absolute;
    top: 62%;
    right: -110px;
    transform: translateY(-50%);

    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: baseline;

    max-width: 340px;

    opacity: 0.55;
    text-transform: uppercase;
  }

  .p2-cap-right-num{
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    opacity: 1;
  }

  .p2-cap-right-text{
    font-size: 0.72rem;
    letter-spacing: 0.36em; /* ✅ espacement typographique comme sur l’exemple */
    line-height: 1.45;
    opacity: 1;
  }
  
  /* =========================
     VIMEO (centrée)
  ========================= */
  .p2-vimeo-wrap{
    width: min(82vw, 1200px);
    max-width: 1200px;
  
    margin: 0 auto;
  
    mix-blend-mode: exclusion;
    filter: grayscale(1) contrast(1.15);

    will-change: transform, opacity;
  }
  
  .p2-vimeo-ratio{
    position: relative;
    padding-top: 56.25%;
    height: 0;
  }
  
  .p2-vimeo-ratio iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
    border: 0;
  }
  
  /* =========================
     RESPONSIVE
  ========================= */
  @media (max-width: 1100px){
    .p2-hero-meta{
      position: relative;
      top: auto;
      left: auto;
      right: auto;
      margin-top: 24px;
      grid-template-columns: 1fr;
      gap: 18px;
    }
  
    .p2-hero-media{
      position: relative;
      top: auto;
      right: auto;
      width: 100%;
      height: auto;
      margin-top: 18px;
      z-index: 2;
    }
  
    .p2-hero-text{
      margin-top: 28px;
      max-width: 100%;
    }

    .p2-full{
      padding: 60px 0 140px;
    }
  
    .p2-full-inner{
      padding: 0 20px;
      gap: 90px;
    }
  
    .p2-vimeo-wrap,
    .p2-after-figure{
      width: min(92vw, 1200px);
    }

    /* sur mobile, on remet la légende sous l’image (lisible) */
    .p2-after-caption{
      position: relative;
      inset: auto;
      margin-top: 14px;
      mix-blend-mode: difference;
    }

    .p2-cap-mini{
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      display: inline-block;
      margin-right: 12px;
      opacity: 0.9;
    }

    .p2-cap-right{
      position: relative;
      top: auto;
      right: auto;
      transform: none;
      display: inline-grid;
      grid-template-columns: 52px 1fr;
      max-width: none;
      opacity: 0.75;
      margin-top: 8px;
    }
  }
  
  @media (prefers-reduced-motion: reduce){
    .p2-vimeo-wrap,
    .p2-after-image{
      mix-blend-mode: normal;
      filter: none;
    }
    .p2-after-caption{ mix-blend-mode: normal; }
    .p2-hero-media{ mix-blend-mode: normal; filter: none; }
  }
