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

body {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

/* ===== LOGO FIXE HAUT GAUCHE ===== */
.fixed-logo {
  position: fixed;
  top: 1.4rem;
  left: 1.8rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}
.fixed-logo.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fixed-logo img {
  height: 38px;
  width: auto;
}

/* ===== SLIDES ===== */
.hero-section {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  overflow: hidden;
  transition:
    transform 0.65s cubic-bezier(0.77, 0, 0.18, 1),
    opacity 0.65s cubic-bezier(0.77, 0, 0.18, 1);
  transform: translateX(0);
  opacity: 0;
  z-index: 2;
}
.hero-section.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* ===== SECTION 1 : layout portrait + texte ===== */
#home {
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
}

/* ===== SECTIONS 2-3-4 : plein écran centré ===== */
.section-full {
  align-items: center;
  justify-content: center;
  padding: 0 12%;
}

/* ===== IMAGE (section 1 uniquement) ===== */
.hero-image-container {
  position: relative;
  flex: 1;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  z-index: 2;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(212, 163, 89, 0.15) 0%,
    transparent 70%
  );
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}

/* ===== CONTENU SECTION 1 ===== */
#home .hero-content {
  flex: 1;
  max-width: 50%;
  padding-left: 5%;
  color: #fff;
  z-index: 3;
}

/* Limite la taille du logo intégré dans le sous-titre de la section 1 */
.hero-subtitle img {
  max-width: 100%;
  height: auto;
}

/* ===== CONTENU SECTIONS 2-3-4 ===== */
.section-full .hero-content {
  width: 100%;
  max-width: 860px;
  color: #fff;
  text-align: center;
}

/* ===== TYPO COMMUNE ===== */
.hero-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  color: #bf953f;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero-title span {
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== LISTE À PROPOS ===== */
.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-list li {
  font-size: 0.95rem;
  color: #d4a55a;
  letter-spacing: 1px;
  text-decoration: none;
}

/* ===== CONTACT ===== */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.contact-item {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  color: #a0a0a0;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
  padding-bottom: 2px;
  border-bottom: 1px solid #bf953f44;
}
.contact-item:hover {
  color: #bf953f;
  border-bottom-color: #bf953f;
}

/* ===== BOUTON 89 (Style Premium & Cinématique) ===== */
.button-89 {
  position: relative;
  display: inline-flex;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(191, 149, 63, 0.4);
  cursor: pointer;
  outline: none;
  overflow: hidden;
  font-family: "Cinzel Decorative", serif;
  transition: border-color 0.4s ease;
  text-decoration: none;
}

.button-89:hover {
  border-color: #bf953f;
}

.button-89::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #bf953f;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}

.button-89:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.button-89 .hero-btn,
.button-89 .about-btn,
.button-89 li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  color: #bf953f;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  z-index: 1;
  margin: 0;
  transition: color 0.4s ease;
}

.button-89:hover .hero-btn,
.button-89:hover .about-btn,
.button-89:hover li {
  color: #000;
}

.hero-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  color: #bf953f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  background: transparent;
}
.about-btn {
  display: inline-block;
  color: #bf953f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  background: transparent;
}
.about-btn:hover {
  color: #b38728;
}
.about-btn:active {
  color: #000;
}
/* ===== DOTS ===== */
.slide-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 200;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111111;
  border: 1px solid #bf953f44;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.dot.active {
  background: #bf953f;
  transform: scale(1.3);
  border-color: #bf953f;
}

/* ===== FLÈCHES ===== */
.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #bf953f;
  font-size: 1.4rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  z-index: 200;
  transition:
    border-color 0.3s,
    background 0.3s,
    opacity 0.3s;
}
.arrow:hover {
  filter: brightness(1.2);
}
.arrow-left {
  left: 1.5rem;
}
.arrow-right {
  right: 1.5rem;
}

/* ===== FONTS CLASSES ===== */
.playfair-display-regular {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}
.playfair-display-bold {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}
.playfair-display-black {
  font-family: "Playfair Display", serif;
  font-weight: 900;
}
.cinzel-decorative-regular {
  font-family: "Cinzel Decorative", serif;
  font-weight: 400;
}
.cinzel-decorative-bold {
  font-family: "Cinzel Decorative", serif;
  font-weight: 700;
}
.cinzel-decorative-black {
  font-family: "Cinzel Decorative", serif;
  font-weight: 900;
}
.gfs-didot-regular {
  font-family: "GFS Didot", serif;
  font-weight: 400;
}

/* ===== ANIMATION INTRO ===== */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUpOut 1.2s 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

.intro-logo {
  width: 150px; /* Ajustez la taille selon votre logo */
  opacity: 0;
  animation: logoScale 1.5s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes logoScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes slideUpOut {
  to {
    transform: translateY(-100%);
  }
}

/* =========================================================
   ADAPTATIONS MOBILES ET TABLETTES (RESPONSIVE)
========================================================= */

body,
.hero-section,
.inner-page {
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Tablettes (Max-width: 968px) --- */
@media (max-width: 968px) {
  #home {
    flex-direction: column-reverse;
    padding: 12% 5% 5%;
    text-align: center;
  }

  #home .hero-content,
  .hero-image-container {
    max-width: 100%;
    padding-left: 0;
  }

  .hero-portrait {
    max-height: 45vh;
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  /* Force le logo géant à réduire sa taille */
  .hero-subtitle img {
    max-width: 160px; /* Taille contrôlée */
    display: block;
    margin: 0 auto 1rem auto; /* Le centre proprement */
  }

  /* Centre parfaitement le bouton */
  .button-89 {
    margin: 0 auto; /* La ligne clé pour centrer le bouton */
    width: 100%;
    max-width: 300px;
    display: flex; /* Permet de centrer le texte à l'intérieur */
    justify-content: center;
  }

  .arrow {
    display: none;
  }

  .fixed-logo img {
    height: 32px;
  }

  .section-full {
    padding: 0 5%;
  }

  .inner-page {
    padding: 7rem 5% 4rem;
  }
}

/* --- Mobiles standards (Max-width: 768px) --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-portrait {
    max-height: 35vh;
  }

  .hero-subtitle img {
    max-width: 140px; /* Encore plus petit sur smartphone */
  }

  .hero-list {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-list a {
    width: 100%;
    max-width: 300px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
}

/* --- Petits mobiles (Max-width: 480px) --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .fixed-logo img {
    height: 26px;
  }

  .back-link {
    padding: 0.4rem 1rem;
    font-size: 0.6rem;
  }
}
