/* ================= FONT ================= */

@font-face {
  font-family: 'Cocoscaca';
  src: url('assets/font/Cocoscaca-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ================= RESET ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* empêche le scroll horizontal */
}

/* ================= PAGE VR ================= */

.vr-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 140px;
}

/* ================= HEADER ================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  gap: 20px;
  flex-wrap: wrap; /* évite le débordement sur mobile */
}

/* Groupe logo + icônes */
.logo-and-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-family: 'Cocoscaca', sans-serif;
  font-size: 2.4rem;
  cursor: default;
}

/* Icônes */
.header-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.header-icons img:hover {
  transform: scale(1.2);
}

/* Navigation */
nav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #111;
}

/* ================= TITRES ================= */

.title1 {
  text-align: center;
  font-family: 'Cocoscaca', sans-serif;
  font-size: 24px;
}

/* ================= VIDÉOS ================= */

.vr-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.vr-hero .video-wrapper.yt {
  width: 100%;
  max-width: 900px;
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  background: black;
  margin: 0 auto;
}

.vr-hero.small .video-wrapper.yt {
  max-height: 60vh;
}

.video-wrapper.yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================= TEXTE ================= */

.vr-description {
  max-width: 600px;
  margin: 0 auto 80px;
  text-align: center;
  line-height: 1.6;
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* ================= IMAGES ================= */

.vr-image {
  display: flex;
  justify-content: center;
  margin: 0;
}

.vr-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}

/* ================= GALLERY ================= */

.vr-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.vr-gallery img {
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

/* ================= SCROLL TOP ================= */

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: black;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 1.2rem;
  border-radius: 50%;
  z-index: 999;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.scroll-top:hover {
  transform: scale(1.15);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .vr-page {
    padding: 60px 30px 120px;
  }
}

@media (max-width: 700px) {

  header {
    padding: 18px 20px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .vr-page {
    padding: 60px 20px 100px;
  }

  .title1 {
    font-size: 20px;
  }

  .vr-description {
    padding: 0 10px;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {

  .logo {
    font-size: 1.6rem;
  }

  .header-icons img {
    width: 24px;
    height: 24px;
  }

  .title1 {
    font-size: 18px;
  }

  .vr-description {
    font-size: 0.9rem;
  }
}
