/* ---------------- RESET ---------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  opacity: 0;
  transition: opacity 1s ease; 
}

body.loaded {
  opacity: 1;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px 24px 48px; /* plus d'espace au-dessus et entre logo/nav */
  transition: transform 0.4s ease, opacity 0.4s ease; 
}
.site-header.hidden { transform:translateY(-100%); opacity:0; }

.logo {
  font-size: 28px;   /* plus gros */
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.logo span {
  margin-left: 6px;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px; /* plus d'espace entre les liens */
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 16px;
  padding-bottom: 8px;
}

.main-nav a.active {
  border-bottom: 2px solid #111;
}

/* ---------------- BOUTON INSTAGRAM ---------------- */
.insta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insta-btn:hover {
  background: #111;
}

.insta-btn svg {
  width: 22px;
  height: 22px;
  fill: #111;
  transition: fill 0.3s ease;
}

.insta-btn:hover svg {
  fill: #fff;
}

.site-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #555;
  background: #fff;
  border-top: 1px solid #eee;
}


/* ---------------- CAROUSEL ---------------- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 8vw; /* peek sur les côtés */
}

.carousel {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 8vw; /* même que le padding */
  height: 100%;
  z-index: 10;
  background: #fff;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.carousel-wrapper.loaded::before,
.carousel-wrapper.loaded::after {
  opacity: 0;
}

.slide {
  flex: 0 0 100%; /* plus large pour images plus grandes mais peek conservé */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slide img {
  width: 100%;
  height: 80vh; /* images plus grandes */
  object-fit: cover; /* aucune distorsion ni flou */
}

/* Gradient peek pour fade-in sur les bords */
.slide::before,
.slide::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease; /* smooth fade-in */
  z-index: 5;
}

.slide::before {
  left: -15%;
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.slide::after {
  right: -15%;
  background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Classes pour fade-in côté gauche / droite */
.slide.fade-left::before {
  opacity: 1;
}

.slide.fade-right::after {
  opacity: 1;
}

/* ---------------- NAVIGATION ---------------- */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 26px;
  padding: 14px 18px;
  color: #111;
  cursor: pointer;
  z-index: 10;
  opacity: 0.35;
  transition: 
    opacity 0.35s ease,
    background 0.35s ease,
    border 0.35s ease,
    transform 0.35s ease;
}

.nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.06);
}



.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* BURGER */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 600;
  position: relative;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.menu-open .mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 400;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay a {
  font-size: 20px;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
  color: #555;  
}

 
/* HERO */
.video-hero {
  padding: 120px 8vw 80px;
  text-align: center;
}

.video-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.video-hero p {
  color: #555;
}

/* GRID - UNE SEULE COLONNE */
.video-grid {
  padding: 0 8vw 200px;
  display: grid;
  grid-template-columns: 1fr; /* UNE COLONNE UNIQUE */
  gap: 158px;
}

.video-card {
  cursor: pointer;
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* centre tout horizontalement */
}

.video-card:hover {
  transform: translateY(-6px);
}

.video-thumb {
  width: 100%;
  height: 800px;       /* taille fixe du cadre */
  background: #eaeaea;
  border-radius: 18px;
  margin: 0 auto 16px; /* ← centre le cadre horizontalement et garde l’espace sous le titre */
  background-size: cover;
  background-position: center;
  max-width: 1600px;
}





.video-card h3 {
  font-size: 23px;
  margin-bottom: 6px;
  
}

.video-card span {
  font-size: 13px;
  color: #777;
}

/* OVERLAY */
.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

.video-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.video-overlay video {
  width: 80vw;
  max-height: 80vh;
  border-radius: 14px;
}

/* CLOSE BUTTON */
.close-video {
  position: absolute;
  top: 40px;
  right: 48px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-video:hover {
  transform: rotate(90deg);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #777;
}

.video-container {
  position: relative;
  width: 80vw;
  max-height: 80vh;
}

.video-container video,
.video-container img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

#play-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .main-nav { display: none; }
  .about-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 40px 6vw; }
  .about-image img { height: 50vh; }
  .about-text h1 { font-size: 26px; }
  .insta-btn { display: none; }
}


/* ---------------- VIDEO GRID RESPONSIVE ---------------- */
@media (max-width: 768px) {

  /* Cadres plus petits pour mobile */
  .video-thumb {
    height: 200px;       /* plus petit que 800px desktop */
    max-width: 90vw;     /* pour que ça tienne dans l'écran */
  }

  .video-card h3 {
    font-size: 18px;     /* texte plus petit */
  }

  .video-card span {
    font-size: 12px;     /* texte plus petit */
  }

  /* Réduire l'espacement entre les cartes */
  .video-grid {
    gap: 60px;           /* plus compact */
    padding: 0 4vw 80px; /* moins de padding sur les côtés */
  }
}

/* Optionnel : si tu veux vraiment que le cadre soit encore plus petit sur très petits écrans */
@media (max-width: 480px) {
  .video-thumb {
    height: 160px;
  }

  .video-card h3 {
    font-size: 16px;
  }

  .video-card span {
    font-size: 11px;
  }

  .video-grid {
    gap: 40px;
    padding: 0 3vw 60px;
  }
}
