/* Design System */
:root {
  --color-emerald: #002E25;
  --color-gold: #C5A059;
  --color-cream: #F9F7F2;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-cream);
  background-color: var(--color-emerald);
  margin: 0;
  padding: 0;
}

/* --- Hero Section (Video "Boat Effect") --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* Pour mobile */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
  /* Sits above the fixed background initially */
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Filtre Émeraude et Or fondu, parfait pour sublimer une cheminée ! */
  background: linear-gradient(rgba(197, 160, 89, 0.15), rgba(0, 46, 37, 0.95));
  z-index: -1;
}

.hero-main-logo {
  height: 400px;
  width: auto;
  max-width: 80vw;
  filter: brightness(0) invert(1);
  animation: fadeUp 1.5s ease-out backwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-gold);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.arrow-down {
  width: 2px;
  height: 30px;
  background-color: var(--color-gold);
  margin-top: 15px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* --- Scrollytelling Background Layer --- */
.scroll-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: -10;
  overflow: hidden;
  background-color: var(--color-emerald);
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Long fade for cinematic cross-fade */
  transition: opacity 2s ease-in-out;
  /* Initial scale for the parallax to work on down-scroll */
  transform: scale(1);
}

/* Emerald tint overlay for better text readability */
.bg-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 46, 37, 0.4);
}

.bg-layer.active {
  opacity: 1;
}

/* --- Content Overlay --- */
.content-overlay {
  position: relative;
  z-index: 10;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0, 20, 15, 0.9), transparent);
  
  /* Masqué au démarrage */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  /* Transforme le logo noir transparent en logo blanc */
  filter: brightness(0) invert(1);
}

nav a {
  color: var(--color-cream);
  text-decoration: none;
  margin-left: 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--color-gold);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-emerald);
  padding: 0.8rem 1.8rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.4s, color 0.4s, transform 0.3s;
}

.btn-primary:hover {
  background-color: var(--color-cream);
  color: var(--color-emerald);
  transform: translateY(-2px);
}

/* --- Steps (Scrollytelling text blocks) --- */
.step {
  min-height: 130vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.blank-step {
  min-height: 100vh;
}

.presentation-box {
  background: rgba(0, 46, 37, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4.5rem;
  border: 1px solid rgba(197, 160, 89, 0.5);
  max-width: 650px;
  border-radius: 4px;
  transform: translateY(100px);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.3, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.presentation-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.presentation-box.aligned-right {
  margin-left: auto;
}

.presentation-box h1,
.presentation-box h2 {
  font-family: var(--font-serif);
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 400;
}

.presentation-box h1 {
  font-size: 3.8rem;
  line-height: 1.1;
}

.presentation-box h2 {
  font-size: 2.8rem;
}

.presentation-box p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.presentation-box ul {
  list-style: none;
  margin-top: 2rem;
}

.presentation-box ul li {
  margin-bottom: 1.2rem;
  padding-left: 25px;
  position: relative;
  font-size: 1.15rem;
}

.presentation-box ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
}

/* Équipe Section Layout */
.team-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1.5rem;
}

.team-member h3 {
  font-family: var(--font-serif);
  color: var(--color-cream);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--color-gold);
}

/* Footer */
footer {
  background-color: var(--color-emerald);
  padding: 8rem 5%;
  text-align: center;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.footer-content h2 {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
}

.footer-content p {
  color: rgba(249, 247, 242, 0.7);
  font-size: 1rem;
}

/* --- Contact Page Specifics --- */
body.contact-page {
  background-color: var(--color-emerald);
  background-image: linear-gradient(rgba(0, 46, 37, 0.7), rgba(0, 46, 37, 0.8)), url('assets/images/modern_airbnb_salon_1776590607589.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 5%;
}

.contact-box {
  transform: none;
  /* remove slide-up animation */
  opacity: 1;
  /* always visible */
  width: 100%;
  margin: 0 5%;
}

.premium-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 1rem;
  border-radius: 3px;
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(249, 247, 242, 0.3);
}

/* --- DESIGN RESPONSIVE (MOBILE & TABLETTE) --- */

/* Pour les tablettes et petits écrans */
@media (max-width: 1024px) {
  .presentation-box h1 { font-size: 3rem; }
  .presentation-box { padding: 3rem; }
}

/* Pour les téléphones (Smartphone) */
@media (max-width: 768px) {
  /* Héro Section */
  .hero-main-logo {
    width: 220px; /* Plus petit sur mobile */
    height: auto;
    max-width: 70vw;
  }

  .scroll-indicator {
    bottom: 20px;
    font-size: 0.7rem;
  }

  /* Barre de navigation */
  .navbar {
    padding: 1rem 5%;
  }

  .nav-logo {
    height: 40px;
  }

  nav a {
    margin-left: 0.8rem;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  /* Présentation / Blocs de texte */
  .step {
    min-height: 100vh;
    padding: 10vh 5%; /* Espace pour le scroll */
    flex-direction: column;
    justify-content: center;
  }

  .presentation-box {
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0; /* Plus moderne sur mobile */
    backdrop-filter: blur(8px);
    transform: translateY(20px); /* Animation plus courte */
  }

  .presentation-box h1 {
    font-size: 1.8rem; /* Titre lisible sans déborder */
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .presentation-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .presentation-box p, 
  .presentation-box ul li {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Footer */
  .footer-content h2 {
    font-size: 2rem;
  }

  footer {
    padding: 4rem 5%;
  }

  /* Page Contact spécifique */
  .contact-container {
    padding: 5rem 5% 2rem 5%;
  }
}

/* Très petits téléphones */
@media (max-width: 480px) {
  nav {
    display: none; /* On cache le menu pour ne pas polluer l'écran d'accueil */
  }

  /* Mais on garde le bouton retour sur la page contact */
  body.contact-page .navbar nav {
    display: block;
  }

  .hero-main-logo {
    width: 180px;
  }
}