/* =====================================================================
   Houriya — Styles partagés (nav + footer + tokens communs)
   Source unique : modifier ici se répercute sur toutes les pages.
   ===================================================================== */

:root {
  --sand:       #c9a96e;
  --sand-light: #e8d5b0;
  --sand-pale:  #f5ede0;
  --ocean:      #1a4a6b;
  --ocean-mid:  #2e6e96;
  --ocean-light:#5ba3c9;
  --ocean-pale: #d6eaf5;
  --ocean-deep: #0c1f3d;
  --indigo:     #2d2d7a;
  --cream:      #f5ede0;
  --white:      #fdfaf6;
  --text-dark:  #1a1a2e;
  --text-mid:   #3a3a5c;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 80px;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  transition: all 0.4s ease;
}
nav.scrolled { height: 64px; box-shadow: 0 4px 30px rgba(26, 74, 107, 0.1); }

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 56px; transition: height 0.4s; }
nav.scrolled .nav-logo img { height: 44px; }

.nav-logo .star-logo {
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: block;
  transition: width 0.4s, height 0.4s;
}
nav.scrolled .nav-logo .star-logo {
  width: 44px;
  height: 44px;
}

.star-core  { animation: starPulse 5s ease-in-out infinite; transform-origin: center; }
.star-ray   { animation: rayFade  5s ease-in-out infinite; transform-origin: center; }
.star-ray2  { animation: rayFade  5s ease-in-out infinite 0.8s; transform-origin: center; }
.star-halo  { animation: haloGlow 5s ease-in-out infinite; transform-origin: center; }
.star-halo2 { animation: haloGlow 5s ease-in-out infinite 0.6s; transform-origin: center; }

@keyframes starPulse {
  0%,100% { opacity:0.6; transform: scale(0.88); }
  40%     { opacity:1;   transform: scale(1.18); filter: drop-shadow(0 0 10px rgba(160,220,255,1)); }
  60%     { opacity:1;   transform: scale(1.15); }
}
@keyframes rayFade {
  0%,100% { opacity:0.4;  transform: scaleY(0.85); }
  40%     { opacity:1;    transform: scaleY(1.1); }
  60%     { opacity:0.95; transform: scaleY(1.08); }
}
@keyframes haloGlow {
  0%,100% { opacity:0.2; transform: scale(0.85); }
  40%     { opacity:1;   transform: scale(1.18); }
  60%     { opacity:0.9; transform: scale(1.14); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--sand), var(--ocean-mid));
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--ocean); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ocean); }

/* Bouton « Réserver » mis en valeur dans le menu */
.nav-links a.nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(26, 74, 107, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--sand) 140%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 74, 107, 0.3);
}
.nav-links a.nav-cta.active { color: var(--white); }

/* Hamburger mobile */
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: .5rem; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; justify-content: center; align-items: center;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ocean);
  transition: transform .35s, opacity .35s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.15em; }
}
@media (max-width: 900px) {
  nav { padding: 0 1.2rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 80px; left: 0; right: 0;
    background: rgba(253, 250, 246, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column; gap: 1.4rem;
    height: auto;
    padding: 2rem 1.5rem 3rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s ease, opacity .4s ease, visibility .4s ease;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  nav.scrolled .nav-links { top: 64px; max-height: calc(100vh - 64px); }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links li { height: auto; width: 100%; }
  .nav-links a { font-size: 0.85rem; text-align: center; padding: .6rem 0; }
}

/* ===== FOOTER (unifié) ===== */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-footer a { color: var(--sand-light); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer span { color: var(--sand-light); }
