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

html,
body {
  height: 100%;
  overflow: hidden; /* pas de scroll : tout tient dans le viewport */
}

:root {
  --cream: #ffffff;
  --gold: #cf9d4a;
  --shadow: rgba(0, 0, 0, 0.45);
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--cream);
  background: #10100e; /* couleur de secours si même l'image de fallback tarde à charger */
  position: relative;
  width: 100%;
  height: 100dvh;
}

/* ---------- Fallback image statique (toujours présente derrière tout) ---------- */
#bg-fallback {
  position: fixed;
  inset: 0;
  background-image: url('assets/fond1.jpeg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ---------- Canvas Three.js (par-dessus le fallback, sous le contenu) ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

/* Léger voile pour garantir la lisibilité du texte blanc quel que soit l'endroit
   où la trouée de lumière se trouve à l'écran, sans écraser la photo. */
.content::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

/* ---------- Contenu ---------- */
.content {
  position: relative;
  z-index: 2;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 1.1rem;
}

.quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  max-width: 42ch;
  line-height: 1.5;
  text-shadow: 0 2px 12px var(--shadow);
}

.quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.divider {
  border: none;
  width: 48px;
  height: 1px;
  background: var(--cream);
  opacity: 0.35;
  margin: 0.3rem 0;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 2px 20px var(--shadow);
}

.brand-sub {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  letter-spacing: 0.55em;
  margin-top: 0.6rem;
  margin-left: 0.55em; /* compense visuellement le letter-spacing pour rester centré */
}

.opening {
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* Ombre marquée : le texte peut se fondre dans les trouées de lumière claires
     du fond selon l'image utilisée, ce contour sombre garde le texte lisible */
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(0, 0, 0, 0.6);
}

.address {
  font-weight: 400;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- Formulaire ---------- */
.notify-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  width: 100%;
  max-width: 420px;
}

.notify-form input[type='email'] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(244, 237, 225, 0.35);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.notify-form input[type='email']::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.notify-form input[type='email']:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.notify-form button {
  flex: 1 1 auto;
  padding: 0.75rem 1.4rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify-form button:hover {
  background: rgba(207, 157, 74, 0.18);
}

.notify-form button:active {
  transform: scale(0.98);
}

.notify-feedback {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.9;
}

/* ---------- Instagram ---------- */
.instagram-link {
  position: fixed;
  bottom: clamp(1rem, 3vh, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--cream);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.instagram-link:hover {
  opacity: 1;
}

/* ---------- Accessibilité ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Petits écrans ---------- */
@media (max-width: 380px) {
  .content {
    gap: 0.85rem;
    padding: 1rem;
  }

  .brand-sub {
    letter-spacing: 0.4em;
  }
}

/* Ménage un peu d'air pour ne pas coller l'Instagram au formulaire sur les petites hauteurs */
@media (max-height: 620px) {
  .content {
    gap: 0.6rem;
  }

  .instagram-link {
    position: static;
    transform: none;
    margin-top: 0.4rem;
  }
}
