/* ---------- Reset minimal ---------- */
*,
*::before,
*::after {
  font-family: "Cormorant Garamond", serif;
  text-decoration: none;
  box-sizing: border-box;
}

* p {
  font-size: 1.6rem;
}

a {
  color: #dba85a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f5e7d5;
  background-color: #050308;
}

#home.bottom-gradient::after {
  background: linear-gradient(to bottom, transparent 30%, black 200%);
}

#home {
  display: grid;
}

.hero {
  padding-top: var(--nav-height); /* hauteur approximative de la nav pour ne pas la masquer */
  background-image: url("home-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax simple, full CSS */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* voile léger pour adoucir le paysage et mieux lire le titre */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 240, 200, 0.2),
      transparent 55%
    ),
    linear-gradient(to top, black 15%, transparent 80% 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: block;
}

/* Image de titre PNG centrée */
.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    #785207 10%,
    #b8892d 30%,
    #ffecb3 55%,
    #cfc09f 80%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  position: relative;
  text-align: center;
  z-index: 1;
  opacity: 0;
  transform: translateY(2rem);
  width: unset;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
  animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

/* Sous-titre avec police majestueuse */
.hero-subtitle {
  margin-top: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out 1.2s forwards;
  text-align: center;
}

.hero-subtitle p {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 450;
  font-variant: small-caps;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(243, 228, 185, 0.6);
  color: #f6e5b0;
  line-height: 1.1;
}

/* Animation d'apparition fluide */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle p {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-subtitle p {
    font-size: clamp(0.95rem, 4vw, 1rem);
  }
}

#personas-intro {
  padding-top: 10vh;
  background-image:
    linear-gradient(to bottom, rgba(12, 5, 0, 1), rgba(12, 5, 0, 0.25) 20%, transparent 25%),
    url("default-bg.webp");
}

#personas-intro .panel-frame {
  margin: auto;
  max-width: 80vw;
  border: unset;

  backdrop-filter: unset;
  -webkit-backdrop-filter: unset;
  box-shadow: unset;
}

#personas-intro .panel-frame h1 {
  text-align: center;
}

/* Cadre doré adaptatif (gauche) */
/* Cadre doré TRANSPARENT (remplace ton .panel-frame existant) */
.panel-frame {
  position: relative;
  z-index: 3;
  margin-left: 8vw;
  max-width: 28vw;
  padding: 2.5rem 2rem;

  background: rgb(20 21 23 / 33%);

  /* Bordure fine dorée */
  border: 2px solid rgba(212, 167, 88, 0.8);
  border-radius: 12px;

  /* Effet verre dépoli + lueur */
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px);

  /* Ombres subtiles */
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(246, 229, 176, 0.2) inset;
}

/* Texte contrasté pour lisibilité */
.frame-title {
  margin: 0 0 1.2rem 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f6e5b0;
  text-shadow:
    0 3px 8px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(246, 229, 176, 0.3);
}

.frame-text {
  margin: 0;
  font-size: 1.4rem;
  color: #f8e9c2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/**** SWIPER *****/
.swiper {
  width: 100vw;
  height: 100vh;
}

.swiper-scrollbar-drag {
  background: #ca9e50 !important;
}



/* Grid d'images */

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 70%;
  margin: 0 auto;
}

.detail-card {
  background: rgba(26, 10, 18, 0.8);
  border: 1px solid rgba(246, 229, 176, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  max-width: 20vw;
  margin: auto;
  height: 40vh;
}

.detail-card h3 a {
  color: #f6e5b0;
}

.detail-card:hover:not(.disabled) {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(246, 229, 176, 0.4);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(246, 229, 176, 0.2);
}

/* ← IMAGE GRISE → COULEUR */
.detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.detail-card h3 {
  color: #f6e5b0;
  margin: 0.5rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-variant-caps: small-caps;
}

.detail-card h2 {
  margin: 0.5rem;
  text-align: center;
  letter-spacing: 0.1em;
  font-variant-caps: small-caps;
}


.album-info {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.6));
  position: absolute;
  bottom: 20%;
  width: 100%;
}

.album-info h3 {
  font-size: 1.7rem;
  color: #f6e5b0;
  margin: 0 0 0.5rem 0;
}

/* ---------- Barre de navigation ---------- */
:root {
  --nav-height: 6vh; /* Hauteur variable de la nav */
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  background: linear-gradient(
    to bottom,
    rgba(10, 5, 0, 0.7),
    rgba(10, 5, 0, 0.45),
    rgba(10, 5, 0, 0)
  );
  height: 6vh;
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f6e5b0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: #f3e4b9;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 2px;
  transform-origin: center;
  transform: scaleX(0);
  background: linear-gradient(to right, #f3e4b9, #dba85a);
  transition: transform 0.25s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ---------- Dégradé ---------- */

.top-gradient::before {
  z-index: 5;
  pointer-events: none; /* Ne bloque pas les interactions */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #050308 0% 1%, transparent 15%);
}

.bottom-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 90%, rgba(0, 0, 0, 0.8) 100%);
  background-size: 100px;
  z-index: 0;
  pointer-events: none; /* Ne bloque pas les interactions */
}








/* =========================================
   RESPONSIVE - TABLETTE (768px - 1024px)
========================================== */
@media (max-width: 1024px) {
  /* Navigation */
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav {
    padding: 1rem 2vw;
  }
  
  /* Hero & Conteneurs */
  .hero,
  .diary-container,
  .contact-container {
    padding: 6rem 2vw 4rem;
    gap: 2rem;
  }
  
  /* Grilles */
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  /* Swiper */
  .main-gallery-swiper {
    height: 350px;
  }
  
  .thumbs-gallery-swiper .swiper-slide {
    width: 120px;
    height: 120px;
  }
  
  /* Cadres */
  .image-frame,
  .album-card {
    max-width: 400px;
  }
}

/* =========================================
   MOBILE GRAND (481px - 767px)
========================================== */
@media (max-width: 768px) {
  /* Navigation */
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  /* Hero */
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  /* Grilles → 1 colonne */
  .details-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Swiper */
  .main-gallery-swiper {
    height: 250px;
  }
  
  .thumbs-gallery-swiper .swiper-slide {
    width: 100px;
    height: 100px;
  }
  
  /* Menu Diary */
  .primary-menu {
    flex-direction: row !important;
    width: 100%;
    padding: 1rem;
  }
  
  .secondary-menu {
    flex-direction: row !important;
    overflow-x: auto;
  }
  
  .secondary-items {
    flex-direction: row;
    gap: 1rem;
  }
  
  /* Typo */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  /* Padding généraux */
  section,
  main {
    padding: 2rem 1rem;
  }
}

/* =========================================
   PETIT MOBILE (< 480px) & 1080p↓
========================================== */
@media (max-width: 480px) {
  /* Navigation ultra-compacte */
  .nav-logo {
    font-size: 1.2rem;
  }
  
  .nav-links {
    font-size: 0.8rem;
    gap: 0.75rem;
  }
  
  /* Hero compact */
  .hero {
    padding: 4rem 1rem 3rem;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Boutons & Liens */
  button,
  .btn-back,
  a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Swiper mobile */
  .albums-swiper {
    height: calc(100vh - 180px);
  }
  
  .thumbs-gallery-swiper .swiper-slide {
    width: 80px;
    height: 80px;
  }
  
  /* Texte panels */
  .contact-panel {
    padding: 1.25rem;
  }
  
  .contact-panel h2 {
    font-size: 1.3rem;
  }
  
  /* Marges globales */
  body {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Éviter zoom sur input (iOS) */
  input, select, textarea {
    font-size: 16px;
  }
}

/* =========================================
   PETITS ÉCRANS < 1080p (1200px↓)
========================================== */
@media (max-width: 1200px) {
  /* Grilles plus aérées */
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* Conteneurs */
  main,
  .diary-container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}

/* =========================================
   HAUTE DENSITÉ (Retina, etc.)
========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .image-frame,
  .album-card {
    border-width: 1.5px;
  }
}
