/* ============================================
   RESET & BASICS
   ============================================ */

* {
  font: inherit;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: white;
  color: white;
  font-family: var(--font--brian), Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  overflow: hidden;
  position: relative;
}

/* ============================================
   VIDÉO DE FOND + FROSTED GLASS
   ============================================ */

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.frosted-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(80px) saturate(250%);
  -webkit-backdrop-filter: blur(80px) saturate(250%);
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
}

main {
  position: relative;
  z-index: 3;
}

/* ============================================
   LOGO
   ============================================ */

.chrome-logo-container {
  margin: 3rem 1rem 2rem 1rem;
}

.chrome-svg {
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.chrome-svg:hover {
  filter: brightness(0) invert(1) brightness(1.2);
  transform: scale(1.05);
}

.chrome-svg.logo {
  max-width: 200px;
  height: auto;
}

/* ============================================
   MENU
   ============================================ */

.chrome-menu-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin: 3rem 0;
  padding: 0 2rem;
  padding-left: 10%;
}

.chrome-menu-item {
  cursor: pointer;
}

.chrome-menu-item a {
  font-family: var(--font--brian);
  color: white;
  font-size: 5.5rem !important;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.3s ease;
  text-transform: lowercase;
}

.chrome-menu-item a:hover {
  opacity: 0.7;
}

.chrome-menu-item a::after {
  display: none;
}

.chrome-menu-item:nth-child(2) {
  margin-left: 3rem;
}

.chrome-menu-item:nth-child(3) {
  margin-left: 6rem;
}

.chrome-menu-item:nth-child(4) {
  margin-left: 4rem;
}

/* ============================================
   LAYOUT - TEXTE D'INFORMATIONS (ABOUT)
   ============================================ */

.text {
  position: absolute;
  bottom: 10%;
  right: 5%; /* CHANGÉ: de left à right pour apparaître à droite */
  width: 17%;
  text-align: left;
  transform: rotate(-3deg);
  filter: blur(0.5px);
  padding: 0;
  overflow: hidden;
  color: white;
  font-family: var(--font--brian);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10;
}

.text.active {
  opacity: 1;
  visibility: visible;
}

.text p {
  color: white;
}

.text a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.text a:hover {
  opacity: 0.7;
}

.text a::after {
  display: none;
}

/* ============================================
   CALENDRIER (UPCOMING)
   ============================================ */

.cal {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 30%;
  text-align: left;
  transform: rotate(6deg);
  filter: blur(0.5px);
  padding: 0;
  overflow: hidden;
  color: white;
  font-family: var(--font--brian);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10;
}

.cal.active {
  opacity: 1;
  visibility: visible;
}

.cal div {
  color: white;
  margin-bottom: 0.5rem;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

p:not(:last-child) {
  margin-bottom: 1.45rem;
}

/* ============================================
   SCROLL TEXT (NEWSLETTER)
   ============================================ */

.scroll-text {
  position: relative;
  width: 100%;
  bottom: 0;
  left: 0;
  width: 100vw;
  overflow: hidden;
  z-index: 1000;
}

.scroll-text a {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 120s linear infinite;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.3s;
  font-family: var(--font--brian);
}

.scroll-text a:hover {
  filter: blur(0px);
  pointer-events: auto;
}

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

/* ============================================
   MODAL (NEWSLETTER)
   ============================================ */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 30%;
  left: 30%;
  width: 25%;
  height: 100%;
  transform: rotate(3deg);
}

.modal-content {
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  font-family: var(--font--brian);
  color: white;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* ============================================
   FORMULAIRES
   ============================================ */

input[type="submit"] {
  background: none !important;
  border: none !important;
  text-transform: uppercase !important;
  color: white !important;
  font-family: var(--font--brian);
}

input[type="submit"]:hover {
  text-decoration: underline !important;
  font-style: italic !important;
}

input {
  border: none;
  color: rgba(255, 255, 255, 0.58);
  background: none;
  font-family: var(--font--brian);
}

input:focus {
  outline: none;
  border: dotted rgba(255, 255, 255, 0.58);
}

/* ============================================
   LIENS
   ============================================ */

a {
  text-decoration: none;
}

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

@media (min-width: 768px) {
  html {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .text {
    width: 60%;
    right: 5%; /* Maintenir à droite sur mobile aussi */
  }
  
  .cal {
    width: 50%;
    right: 5%;
  }
  
  .modal {
    width: 80%;
    left: 10%;
  }

  .chrome-svg.logo {
    max-width: 250px;
  }
  
  .chrome-menu-vertical {
    gap: 1.5rem;
    margin: 2rem 0;
    padding-left: 5%;
  }
  
  .chrome-menu-item a {
    font-size: 2rem;
  }

  .chrome-menu-item:nth-child(2),
  .chrome-menu-item:nth-child(3),
  .chrome-menu-item:nth-child(4) {
    margin-left: 0;
  }

  .frosted-overlay {
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
  }
}