/* ===== 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;
}

/* ===== 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;
}

/* ===== CARDS RÉALISATIONS ===== */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.5rem;
  width: 100%;
}
.project-card {
  border: 1px solid #bf953f44;
  padding: 1.2rem 1.6rem;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  transition:
    border-color 0.3s,
    background 0.3s;
  text-align: left;
}
.project-card:hover {
  border-color: #bf953f;
}
.project-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #bf953f;
  font-family: "Cinzel Decorative", serif;
}
.project-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #a0a0a0;
  font-family: "Playfair Display", serif;
  line-height: 1.5;
}

/* ===== 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); /* Bordure dorée subtile */
  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; /* La bordure s'illumine */
}

/* L'effet de balayage (swipe) élégant au survol */
.button-89::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #bf953f; /* Couleur de remplissage */
  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;
}

/* Le texte / lien à l'intérieur */
.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;
}

/* Le texte devient noir sur le fond or pour un contraste maximal */
.button-89:hover .hero-btn,
.button-89:hover .about-btn,
.button-89:hover li {
  color: #000;
}
/* .button-89 {
  --b: 3px;
  --s: 0.45em;
  --color: #b38728;
  padding: calc(0.5em + var(--s)) calc(0.9em + var(--s));
  color: var(--color);
  --_p: var(--s);
  background: conic-gradient(
      from 90deg at var(--b) var(--b),
      #0000 90deg,
      var(--color) 0
    )
    var(--_p) var(--_p) / calc(100% - var(--b) - 2 * var(--_p))
    calc(100% - var(--b) - 2 * var(--_p));
  transition:
    0.3s linear,
    color 0s,
    background-color 0s;
  outline: var(--b) solid #0000;
  outline-offset: 0.6em;
  font-family: "Cinzel Decorative", serif;
  font-size: 19px;
  border: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
}
.button-89:hover,
.button-89:focus-visible {
  --_p: 0px;
  outline-color: var(--color);
  outline-offset: 0.05em;
}
.button-89:active {
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728);
  color: #fff;
} */
.hero-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  color: #bf953f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  background: transparent;
}
.about-btn:hover {
  color: #b38728;
}
.about-btn:active {
  color: #000;
}
.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;
}

/* ===== MOBILE ===== */
@media (max-width: 968px) {
  #home {
    flex-direction: column-reverse;
    padding: 10% 5%;
    text-align: center;
  }
  #home .hero-content,
  .hero-image-container {
    max-width: 100%;
    padding-left: 0;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-cards {
    flex-direction: column;
    align-items: center;
  }
  .hero-list {
    flex-direction: column;
    align-items: center;
  }
  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .arrow {
    display: none;
  }
  .fixed-logo img {
    height: 28px;
  }
  .section-full {
    padding: 0 5%;
  }
}
/* Card */
.card-title {
  color: #ffffff;
  font-size: 1.5em;
  line-height: normal;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.small-desc {
  font-size: 1em;
  font-weight: 700;
  color: #d4a55a;
  text-decoration: none;
}

.small-desc {
  font-size: 1em;
}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2em;
  height: 2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: #bf953f;
  border-radius: 0 4px 0 32px;
}

.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}

.card {
  display: block;
  position: relative;
  max-width: 400px;
  max-height: 430px;
  background-color: transparent;
  padding: 2em 1.2em;
  margin: 10px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}

.card:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: linear-gradient(to right, #bf953f, #f8f09b, #b38728);
  height: 200px;
  width: 1px;
  transform: scale(1);
  transition: transform 0.35s ease-out;
}

.card:hover:before {
  transform: scale(750);
}

.card:hover .small-desc {
  transition: all 0.5s ease-out;
  color: rgb(59, 59, 59);
}

.card:hover .card-title {
  transition: all 0.5s ease-out;
  color: #000000;
}
/* Animation d'introduction */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeOut 0.8s 2s forwards; /* Attend 2s, puis disparaît en 0.8s */
}

.intro-logo {
  width: 150px;
  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 fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
