/* =============================================================================
   STELLA NAV
   Effets : transparente → basilic · shrink · mega-menu 4 univers
   ============================================================================= */

/* --- Barre principale --- */
#stella-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#stella-nav.is-filled {
  background: var(--stella-basilic);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* --- Inner --- */
.stella-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 2rem;
  transition: padding 0.4s ease;
}

#stella-nav.is-shrunk .stella-nav__inner {
  padding: 12px 2rem;
}

/* --- Logo : médaillon + texte --- */
.stella-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.stella-nav__logo:hover {
  opacity: 0.85;
}

.stella-nav__logo img {
  height: 100px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
  flex-shrink: 0;
}

#stella-nav.is-shrunk .stella-nav__logo img {
  height: 38px;
}

.stella-nav__logo-text {
  font-family: var(--stella-font-title);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stella-creme);
  line-height: 1;
  transition: font-size 0.4s ease, color 0.3s ease;
  white-space: nowrap;
}

.stella-nav__logo-tagline {
  font-family: var(--stella-font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 243, 222, 0.8);
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
  margin-top: 0.2rem;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  max-height: 20px;
  overflow: hidden;
}

.stella-nav__logo-name {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#stella-nav.is-shrunk .stella-nav__logo-tagline {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

#stella-nav.is-shrunk .stella-nav__logo-text {
  font-size: 0.95rem;
}

/* --- Actions --- */
.stella-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Boutons CTA nav --- */
.stella-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--stella-font-title);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid rgba(255, 243, 222, 0.5);
  color: var(--stella-creme);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.stella-nav__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--stella-creme);
  transform: skewX(-20deg) translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.stella-nav__cta:hover {
  color: var(--stella-basilic);
  border-color: var(--stella-creme);
}

.stella-nav__cta:hover::before {
  transform: skewX(-20deg) translateX(0);
}

.stella-nav__cta--reserver {
  background: transparent;
  border-color: var(--stella-spritz);
  color: var(--stella-creme);
}

.stella-nav__cta--reserver::before {
  background: var(--stella-spritz);
}

.stella-nav__cta--reserver:hover {
  color: var(--stella-creme);
  border-color: var(--stella-spritz);
}

.stella-nav__cta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
}

/* --- Burger --- */
.stella-nav__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0.25rem;
  position: relative;
}

.stella-nav__burger .blines {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 100%;
  position: absolute;
  transition: opacity 0.25s ease;
}

.stella-nav__burger .bline {
  width: 22px;
  height: 1.5px;
  background: var(--stella-creme);
}

.stella-nav__burger .burger-star {
  font-size: 1.4rem;
  color: var(--stella-spritz);
  line-height: 1;
  position: absolute;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stella-nav__burger.is-open .blines {
  opacity: 0;
}

.stella-nav__burger.is-open .burger-star {
  opacity: 1;
  transform: rotate(45deg);
}

.stella-nav__burger.was-open .burger-star {
  opacity: 0;
  transform: rotate(90deg);
}

/* --- Panneau mega-menu --- */
.stella-nav__panel {
  background: var(--stella-basilic-dk, #002A20);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 2px solid transparent;
}

.stella-nav__panel.is-open {
  max-height: 400px;
  border-top-color: var(--stella-spritz);
}

.stella-nav__panel-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.25rem;
}

/* --- Grille 4 univers --- */
.stella-nav__universes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 1rem;
}

/* --- Carte univers : texte gauche + logo droite --- */
.stella-nav__universe {
  padding: 1rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  border-right: 0.5px solid rgba(255, 243, 222, 0.08);
  transition: background 0.2s ease;
}

.stella-nav__universe:last-child {
  border-right: none;
}

.stella-nav__universe:hover {
  background: rgba(255, 243, 222, 0.04);
}

/* Bloc texte gauche */
.stella-nav__universe-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

/* Catégorie */
.stella-nav__universe-cat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--stella-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stella-spritz);
  margin-bottom: 0.35rem;
}

.stella-nav__universe-cat .star {
  font-size: 0.65rem;
  display: inline-block;
  transition: transform 0.6s ease;
}

.stella-nav__universe:hover .stella-nav__universe-cat .star {
  transform: rotate(360deg);
}

.stella-nav__universe-name {
  font-family: var(--stella-font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stella-creme);
  line-height: 1.15;
}

.stella-nav__universe-sub {
  font-family: var(--stella-font-body);
  font-size: 0.8rem;
  color: rgba(255, 243, 222, 0.5);
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* Logo univers droite */
.stella-nav__universe-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  align-self: center;
  margin: auto 0;
}

.stella-nav__universe:hover .stella-nav__universe-logo {
  opacity: 1;
}

/* --- Liens secondaires --- */
.stella-nav__secondary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid rgba(255, 243, 222, 0.08);
}

.stella-nav__secondary-link {
  font-family: var(--stella-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 222, 0.4);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.stella-nav__secondary-link:hover {
  color: var(--stella-creme);
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .stella-nav__inner { padding: 20px 1.5rem; }
  #stella-nav.is-shrunk .stella-nav__inner { padding: 10px 1.5rem; }
  .stella-nav__universes { grid-template-columns: repeat(2, 1fr); }
  .stella-nav__universe { border-right: none; border-bottom: 0.5px solid rgba(255, 243, 222, 0.08); }
  .stella-nav__panel.is-open { max-height: 600px; }
}

@media (max-width: 768px) {
  .stella-nav__cta-label { display: none; }
  .stella-nav__cta { padding: 0.5rem 0.65rem; }
  .stella-nav__logo-text { display: none; }
}

@media (max-width: 640px) {
  .stella-nav__inner { padding: 16px 1rem; }
  .stella-nav__universes { grid-template-columns: 1fr; }
  .stella-nav__universe {
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 243, 222, 0.08);
  }
  .stella-nav__universe-sub { display: none; }
  .stella-nav__universe-logo { width: 36px; height: 36px; }
  .stella-nav__secondary { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .stella-nav__panel.is-open { max-height: 800px; }
}