/* =========================================================================
   T18 PAGE — Dedicated Styles
   ========================================================================= */

/* =============================================
   HERO
   ============================================= */
.t18-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: var(--nav-height) 8vw 0;
}

.t18-hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.t18-hero-deco::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 180px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  z-index: 1;
}

.t18-hero-deco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.t18-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.t18-hero-title {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: clamp(8rem, 18vw, 22rem);
  line-height: 0.9;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -4px;
}

.t18-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 40px;
  margin-top: 0;
}

.t18-hero-label {
  font-family: var(--font-body);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: bold;
}

/* =============================================
   SECTION CONTEXTE — barre verticale + texte 50%
   ============================================= */
.t18-context-section {
  position: relative;
  padding: 160px 8vw 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.t18-context-label {
  display: flex;
  align-items: center;
  border-left: 2px solid var(--color-primary);
  padding-left: 12px;
  flex-shrink: 0;
}

.t18-context-bar {
  display: none;
}

.t18-context-text {
  width: 48%;
  flex-shrink: 0;
}

.t18-intro-text {
  font-family: 'Filson Pro', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

/* Layout inversé — texte à gauche, label à droite */
.t18-context-section--reverse .t18-context-text {
  order: 1;
}

.t18-context-label--right {
  justify-content: flex-end;
  order: 2;
}


/* =============================================
   SECTIONS — structure commune
   ============================================= */
.t18-section {
  position: relative;
  padding: 160px 8vw 160px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t18-section--no-bottom {
  border-bottom: none;
  padding-bottom: 0;
}

.t18-section-header {
  margin-bottom: 50px;
}

.t18-section-title {
  font-family: var(--font-heading);
  font-size: 48px;
  color: #fff;
  margin: 0;
  text-transform: none;
  font-weight: normal;
  line-height: 1.05;
}

/* =============================================
   SUBSECTIONS — label gauche + texte droite
   ============================================= */
.t18-subsection {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.t18-subsection--spaced {
  margin-top: 140px;
}

.t18-label-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 5px;
}

.t18-line {
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.t18-subtitle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
}

.t18-sub-right {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

.t18-h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 12px 0;
  font-weight: bold;
}


/* =============================================
   GRID PORTRAITS — 3 colonnes
   ============================================= */
.t18-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.t18-portrait {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t18-portrait-img-wrap {
  overflow: hidden;
}

.t18-portrait-img-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-portrait:hover .t18-portrait-img-wrap img {
  transform: scale(1.04);
}

.t18-portrait-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-weight: bold;
}

/* =============================================
   CARROUSELS — infinite scroll
   ============================================= */
.t18-carousel-container {
  overflow: hidden;
  width: calc(100vw - 8vw);
  margin-left: 0;
  position: relative;
  cursor: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
}

/* Curseur custom T18 */
.t18-custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.t18-custom-cursor.is-visible {
  opacity: 1;
}

.t18-custom-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.t18-carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.t18-carousel--reverse .t18-carousel-track {
  animation-name: scroll-right;
  animation-duration: 45s;
}

.t18-carousel-container:hover .t18-carousel-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 6px)); }
}

@keyframes scroll-right {
  0%   { transform: translateX(calc(-50% - 6px)); }
  100% { transform: translateX(0); }
}

/* =============================================
   SLIDER MANUEL (Cards)
   ============================================= */
.t18-slider-container {
  width: calc(100vw - 8vw);
  margin-left: 0;
  margin-top: 30px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: none;
}

.t18-slider-container::-webkit-scrollbar {
  display: none;
}

.t18-slider-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 0 8vw 0 0;
}

/* Items infographie */
.t18-infographie {
  width: 28vw;
  flex-shrink: 0;
}

.t18-infographie img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-infographie:hover img { transform: scale(1.03); }

/* Items paysage */
.t18-paysage {
  width: 34vw;
  flex-shrink: 0;
}

.t18-paysage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-paysage:hover img { transform: scale(1.03); }

/* Items cards portrait */
.t18-card {
  width: 18vw;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.t18-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-card:hover img { transform: scale(1.03); }

/* =============================================
   POUR TOUT DIRE — Best of (vidéo dans les marges)
   ============================================= */
.t18-bestof {
  position: relative;
  width: 100%;
  padding: 0 8vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 25px 0 0;
  padding-bottom: 100px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.t18-bestof-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 14px;
}

.t18-bestof-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.t18-bestof-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(234, 54, 36, 0.95); /* Bright red overlay */
  left: 8vw;
  right: 8vw;
  pointer-events: none;
}



.t18-bestof-text-logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 6rem);
  color: #fff;
  text-align: left;
  line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}

/* =============================================
   PACKSHOT — vidéo + grille
   ============================================= */
.t18-video-fullwidth {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.t18-video-fullwidth video {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.t18-packshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.t18-packshot-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.t18-packshot-item {
  overflow: hidden;
}

.t18-packshot-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-packshot-item:hover img {
  transform: scale(1.04);
}

/* POP UP showcase */
.t18-popup-showcase {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.t18-popup-showcase img {
  width: min(700px, 80vw);
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.t18-popup-showcase img:hover {
  transform: scale(1.02);
}

/* =============================================
   CRÉATION DIVERS — showcase
   ============================================= */
.t18-divers-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 60px;
}

.t18-divers-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t18-divers-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 25px;
  z-index: 2;
  pointer-events: none;
}

.t18-divers-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .t18-subsection {
    grid-template-columns: 180px 1fr;
    gap: 40px;
  }

  .t18-hero-title {
    font-size: 18vw;
  }

  .t18-infographie { width: 40vw; }
  .t18-paysage     { width: 50vw; }
  .t18-card        { width: 30vw; }

  .t18-packshot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .t18-section {
    padding: 80px 6vw 100px;
  }

  .t18-section-title {
    font-size: 2.2rem;
  }

  .t18-subsection {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .t18-subsection--spaced {
    margin-top: 80px;
  }

  .t18-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .t18-bestof {
    height: 50vh;
  }

  .t18-infographie { width: 80vw; }
  .t18-paysage     { width: 85vw; }
  .t18-card        { width: 60vw; }

  .t18-packshot-grid {
    grid-template-columns: 1fr;
  }
}
