/* ============================================
   LE CHÂTEAU DE SAVOIE — Page d'accueil (Splash)
   Blason central · 2 images · entrée par clic
   Direction : sobre, luxueux, classe
============================================ */

body.splash-locked { overflow: hidden; height: 100vh; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #0b0906;
  display: flex;
  align-items: stretch;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Images latérales ── */
.splash-img {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.58) saturate(1.02);
  transition:
    filter 0.7s ease,
    transform 1.1s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.9s ease;
  will-change: transform, filter;
}
.splash-img-left  { left: 0;  background-image: url('../images/landing-left.jpg');  }
.splash-img-right { right: 0; background-image: url('../images/landing-right.jpg'); }

/* Fondu des images vers un centre totalement noir (jonction invisible) */
.splash-img-left::after,
.splash-img-right::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 82%;
}
.splash-img-left::after  { right: 0; background: linear-gradient(to right, transparent 0%, rgba(6,5,3,0.5) 52%, rgba(6,5,3,1) 100%); }
.splash-img-right::after { left: 0;  background: linear-gradient(to left,  transparent 0%, rgba(6,5,3,0.5) 52%, rgba(6,5,3,1) 100%); }

/* Survol du blason → images floutées & assombries */
.splash.logo-hover .splash-img { filter: brightness(0.38) saturate(0.95) blur(6px); }

/* Voile radial central pour la lisibilité (aucun rectangle visible) */
.splash-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 64% at 50% 50%,
    rgba(6,5,3,0.7) 0%,
    rgba(6,5,3,0.35) 45%,
    transparent 76%);
}

/* ── Colonne centrale (pleine largeur, flux naturel) ── */
.splash-center {
  position: relative;
  z-index: 4;
  margin: auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ── Séparateurs fins & ornés ── */
.splash-sep {
  position: relative;
  width: min(78%, 680px);
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(201,168,76,0.0) 8%,
    rgba(201,168,76,0.55) 34%,
    rgba(201,168,76,0.7) 50%,
    rgba(201,168,76,0.55) 66%,
    rgba(201,168,76,0.0) 92%,
    transparent 100%);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.76,0,0.24,1), opacity 0.6s ease;
}
.splash-sep-top    { margin-bottom: 30px; }
.splash-sep-bottom { margin-top: 30px; }

/* petit losange doré au centre du séparateur */
.splash-diamond {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--gold, #c9a84c);
  transform: translate(-50%,-50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(201,168,76,0.6);
}
.splash-diamond::before,
.splash-diamond::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42px; height: 1px;
  background: linear-gradient(to right, rgba(201,168,76,0.7), transparent);
  transform: translateY(-50%) rotate(-45deg);
}
.splash-diamond::before { right: 100%; }
.splash-diamond::after  { left: 100%; background: linear-gradient(to left, rgba(201,168,76,0.7), transparent); }

/* ── Sur-titre : BAR · RESTAURANT ── */
.splash-eyebrow {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(11px, 1.5vw, 15px);
  font-weight: 500;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  padding-left: 8px;
  text-align: center;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

/* ── Blason (bouton) ── */
.splash-logo-btn {
  background: none; border: none; padding: 0;
  cursor: pointer; display: block; line-height: 0;
  position: relative;
  margin: 30px 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.5, 1);
  will-change: transform;
}
.splash-logo {
  width: clamp(240px, 30vw, 400px);
  height: auto; display: block;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,0.55));
  transition: filter 0.5s ease;
}
/* halo doré diffus derrière le blason */
.splash-logo-btn::before {
  content: '';
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.22) 0%, rgba(201,168,76,0.05) 45%, transparent 70%);
  opacity: 0.35;
  transition: opacity 0.5s ease, transform 0.6s ease;
  z-index: -1;
}
.splash-logo-btn:hover            { transform: scale(1.12); }
.splash-logo-btn:hover::before    { opacity: 1; transform: scale(1.1); }
.splash-logo-btn:hover .splash-logo { filter: drop-shadow(0 18px 55px rgba(201,168,76,0.4)); }
.splash-logo-btn:focus-visible    { outline: 1px solid rgba(201,168,76,0.8); outline-offset: 20px; }

/* ── Nom ── */
.splash-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 300;
  color: var(--cream, #f5f0e8);
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.1;
  transition: opacity 0.6s ease, transform 0.8s ease;
}
.splash-name em { font-style: italic; color: var(--gold-light, #e8c97a); }

/* ── Indice ── */
.splash-hint {
  position: absolute;
  bottom: 46px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream, #f5f0e8);
  text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 5px rgba(0,0,0,0.8);
  white-space: nowrap;
  text-align: center;
  animation: splashHintPulse 2.8s ease-in-out infinite;
  z-index: 6;
}
@media (max-width: 720px) {
  .splash-hint { font-size: 13px; letter-spacing: 2px; bottom: 40px; }
}
.splash-hint::before {
  content: '';
  display: block;
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  margin: 0 auto 14px;
}
@keyframes splashHintPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ── Apparition initiale ── */
@keyframes splashRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-sep-top  { animation: splashRise 1.1s 0.35s both; }
.splash-eyebrow  { animation: splashRise 0.9s 0.15s both; }
.splash-logo     { animation: splashRise 1s 0.05s both; }
.splash-name     { animation: splashRise 0.9s 0.28s both; }
.splash-sep-bottom { animation: splashRise 1.1s 0.4s both; }

/* ══════════ TRANSITION DE SORTIE (clic) ══════════ */
.splash.exiting { pointer-events: none; }
.splash.exiting .splash-logo-btn {
  transform: scale(2.7);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.95s 0.15s ease;
}
.splash.exiting .splash-eyebrow,
.splash.exiting .splash-name { opacity: 0; transform: translateY(-8px); }
.splash.exiting .splash-hint { opacity: 0; transform: translateX(-50%) translateY(-8px); }
.splash.exiting .splash-img-left  { transform: translateX(-102%); }
.splash.exiting .splash-img-right { transform: translateX(102%); }
.splash.exiting .splash-sep { transform: scaleX(1.5); opacity: 0; }
.splash.exiting .splash-veil { opacity: 0; transition: opacity 0.7s ease; }
.splash.done { opacity: 0; }

/* ── Responsive : images empilées ── */
@media (max-width: 720px) {
  .splash-img { width: 100%; height: 50%; }
  .splash-img-left  { top: 0;    bottom: auto; }
  .splash-img-right { top: auto; bottom: 0; }
  .splash-img-left::after {
    right: auto; top: auto; bottom: 0; width: 100%; height: 82%;
    background: linear-gradient(to bottom, transparent 0%, rgba(6,5,3,0.5) 52%, rgba(6,5,3,1) 100%);
  }
  .splash-img-right::after {
    left: auto; top: 0; bottom: auto; width: 100%; height: 82%;
    background: linear-gradient(to top, transparent 0%, rgba(6,5,3,0.5) 52%, rgba(6,5,3,1) 100%);
  }
  .splash-veil { background: radial-gradient(ellipse 70% 42% at 50% 50%, rgba(6,5,3,0.75) 0%, transparent 76%); }
  .splash-sep { width: min(86%, 420px); }
  .splash.exiting .splash-img-left  { transform: translateY(-102%); }
  .splash.exiting .splash-img-right { transform: translateY(102%); }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .splash *, .splash-img, .splash-sep, .splash-logo-btn {
    transition-duration: 0.2s !important;
    animation: none !important;
  }
}
