@font-face {
  font-family: "Frontage Outline";
  src: url("../fonts/Frontage-Outline.ffbd421a2e83.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Frontage";
  src: url("../fonts/Frontage-Regular.7bd8eb229d9a.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.hero .overlay img,
.soirees-thematiques h2 {
  font-family: "Frontage Outline", sans-serif;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  color: white;
  background-color: black;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

body.loaded {
  opacity: 1;
}

.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.hero h1 {
  font-size: 4rem;
  margin: 0;
}

.hero p {
  font-size: 1.5rem;
}

.logo-accueil {
  max-width: 90%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.soirees-thematiques {
  background-color: #0f3a50;
  padding: 4rem 2rem;
  color: white;
  text-align: left;
}

.underline {
  width: 300px;
  height: 2px;
  background-color: #d4af37;
  margin: 0 0 3rem 0;
  max-width: 100%;
}

.soirees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.soiree {
  background-size: cover;
  background-position: center;
  padding: 2rem 1rem;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  text-shadow: 1px 1px 5px black;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  align-content: center;
  align-items: center;
}

.soiree h3 {
  font-family: "Frontage", sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

.soiree p {
  font-family: "Open Sans", sans-serif;
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3em;
  letter-spacing: 0.4px;
  margin: 0;
}

.spectacle {
  background-color: #1a4964;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.spectacle img {
  max-width: 100%;
  border-radius: 8px;
}

.spectacle h2 {
  margin: 1rem 0 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #dba829;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.3);
}

.navbar a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s;
}

/* Jaune au survol */
.navbar a:hover,
.navbar a:focus,
.navbar a.active {
  color: #f8c846; /* jaune Minotaure */
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin-left: 1rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.navbar-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-right {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* À la place de .logo-img { height: 64px; } */
.logo-img {
  height: clamp(24px, 8vw, 64px);
  width: auto;
  display: block;
}

/* ----- Dropdown (desktop) ----- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease,
    visibility 0s linear 0.18s;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 0.5rem 0;
  min-width: 220px;
  white-space: normal;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  color: #f8c846;
}

/* Ouverture au survol OU via clavier (focus) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* ----- Adresse ----- */
.address-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.address-icon {
  height: 16px;
  width: auto;
  vertical-align: top;
  margin-right: 0.2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #dba829;
}

.reseaux a {
  margin: 0 0.5rem;
  color: white;
  text-decoration: none;
}

.swapimg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.swapimg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hover-img, none);
  background-size: inherit;
  background-position: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.spectacles-home {
  padding: 4rem 2rem;
  background-color: #0f3a50;
  color: white;
  text-align: left;
}

.spectacles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hidden-spectacle {
  display: none;
}

.minotaure-banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.minotaure-banner-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: left;
}

.minotaure-banner-content {
  text-align: left;
  color: white;
  align-items: flex-start;
  margin-left: 5vw;
  margin-right: auto;
  width: 100%;
}

.titre-accueil h2,
.minotaure-banner-content h2 {
  font-family: "Frontage Outline", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 6vw, 2rem);
  letter-spacing: clamp(1px, 0.6vw, 3px);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
  hyphens: none;
  font-weight: 600;
  line-height: 1.3em;
  width: 100%;
}

.minotaure-banner-content h2 {
  margin: 1rem 0;
}

.gold-line {
  height: 2px;
  background-color: #d4af37; /* or jaune */
  width: 40%;
  max-width: 800px;
  margin: 0;
}

/* ===== MENU HOME ===== */
.menu-home {
  background-color: #0f3a50;
  padding: 4rem 2rem 5rem;
  color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* ---- Cards ---- */
.menu-card {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 4px;
  min-width: 0;
}

.menu-card-inner {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.5rem 1.6rem;
  transition: transform 0.25s ease;
}

.menu-card h3 {
  font-family: "Frontage Outline", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0.4rem 0 0.6rem;
  letter-spacing: 2px;
}

.menu-card p {
  margin: 0;
  max-width: 90%;
}

.menu-card .gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: #d4af37;
  margin-bottom: 0.8rem;
}

/* ---- CTA ---- */
.menu-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  background: center / cover no-repeat var(--img);
  border-radius: 4px;
  text-decoration: none;
  overflow: hidden;
}

.menu-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: left;
  color: #fff;
  padding: 1.5rem;
}

.menu-cta h3 {
  font-family: "Frontage Outline", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.3;
  margin: 0;
}

.contact-section {
  background-color: #0f3a50;
  color: white;
  padding: 4rem 2rem;
}

.contact-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-left {
  flex: 1 1 300px;
  font-size: 1.1rem;
  line-height: 1.8em;
}

.contact-left a {
  color: #f8c846;
  text-decoration: none;
}

.contact-right {
  flex: 2 1 400px;
}

.contact-right iframe {
  width: 100%;
  aspect-ratio: 16/9; /* évite les reflows */
  height: auto; /* laisse l’aspect-ratio gérer la hauteur */
  border: 0;
}

.contact-reseaux {
  margin: 0 0.5rem;
  text-decoration: none;
}

.menu-page {
  background-color: #0f3a50;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.menu-title {
  font-family: "Frontage Outline", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 3rem 4rem;
  justify-content: center;
  margin: 3rem auto;
  max-width: 1100px;
}

.menu-block h4 {
  font-family: "Frontage Outline", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.menu-section {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.menu-section li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.menu-item-header .prix {
  color: #dba829;
  font-size: 1.2em;
}

.menu-item-header .prix sup {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 4px;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.2rem 0 1rem;
}

/* Burger: masqué par défaut (desktop) */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
/* (Optionnel) neutraliser d’éventuelles bordures/ombres UA */
.hamburger:focus {
  outline: none;
}

/* ===== Variables & helpers ===== */
:root {
  --container-max: 72rem; /* ~1152px */
  --gap: clamp(0.75rem, 1vw, 1.25rem);
}
.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}
h1 {
  font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
}
p {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
}

/* Respect des safe areas iOS */
body {
  padding-top: env(safe-area-inset-top);
}

@media (hover: hover) {
  .swapimg:hover::after {
    opacity: 1;
  }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Grilles fluides améliorées ===== */
.soirees-grid,
.spectacles-grid,
.menu-grid {
  gap: var(--gap);
}

@media (min-width: 600px) {
  .soirees-grid,
  .spectacles-grid,
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .soirees-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .spectacles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Menu (page) deux colonnes centrées ===== */
.menu-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
  justify-content: center;
  margin: 3rem auto;
  max-width: 1100px;
}
@media (min-width: 768px) {
  .menu-columns {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

/* ===== Navbar: burger sous 920px ===== */
@media (max-width: 920px) {
  .navbar-container {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: max(4rem, env(safe-area-inset-right));
  }

  .hamburger {
    display: inline-flex; /* s'assure qu'il est visible */
    margin-left: auto; /* pousse complètement à droite */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hamburger-icon {
    width: 28px;
    height: 28px;
    display: block;
  }
  .hamburger-icon path {
    fill: currentColor; /* garantit la couleur blanche */
  }
  .address-link {
    white-space: normal;
  }

  .navbar-links-container {
    display: none;
    width: 100%;
  }
  .navbar-links-container.active {
    display: block;
    background: #0f3a50;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* centré horizontalement */
    width: 80%; /* largeur du bloc menu */
    padding: 1rem;
    z-index: 1001;
  }
  .navbar-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Dropdown en mode “tap to open” */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    padding-left: 2rem;
    border-radius: 0;
  }

  #nav-evenements {
    pointer-events: none; /* lien non cliquable */
    cursor: default; /* curseur normal */
    color: #fff; /* garde la couleur */
  }

  /* Le tap sur .dropdown-toggle active l’ouverture */
  .dropdown-toggle.active + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.18s ease;
  }

  /* Cartes un peu moins hautes sur mobile */
  .menu-card {
    height: 360px;
    background-size: cover;
    background-position: center;
  }
  .menu-cta {
    height: 360px;
  }
  .menu-cta h3 {
    font-size: 1.8rem;
  }

  .contact-infos {
    flex-direction: column;
  }
}

/* ===== Ajustements desktop utiles ===== */
@media (min-width: 1280px) {
  .gold-line {
    width: 48%;
  }
}

/* Tout parent avec cette classe devient un conteneur “inline-size” */
.cards-scope {
  container-type: inline-size; /* active @container en fonction de sa largeur */
  container-name: cards; /* (facultatif) si tu veux nommer le conteneur */
  width: 100%;
}

/* Carte spectacle : layout par défaut (étroit) */
.card--event {
  display: grid;
  gap: 0.75rem;
}

/* Quand le conteneur atteint 420px, on bascule en 2 colonnes */
@container cards (min-width: 420px) {
  .card--event {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
  .card--event img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 1/1; /* joli carré à gauche */
  }
  .card--event h2 {
    margin: 0.25rem 0 0.4rem;
    font-size: clamp(1rem, 2cqw, 1.4rem);
  }
  .spectacle.card--event {
    grid-template-columns: unset !important;
  }
}

.spectacle.card--event {
  display: flex;
  flex-direction: column;
  text-align: center; /* centrer le texte */
  min-width: 0;
}

.spectacle.card--event img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Le bloc texte occupe l’espace restant */
.spectacle.card--event h2 {
  margin: 0.5rem 0;
}

.spectacle.card--event p {
  margin: 0.5rem 0;
  text-transform: uppercase;
  margin-inline: auto;
}

.spectacle.card--event .btn {
  align-self: center;
  margin: 0;
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  width: 80%;
}

.spectacle.card--event .complet {
  background: #0f3a50;
}

/* Plus large encore : on aère un peu */
@container cards (min-width: 640px) {
  .card--event {
    grid-template-columns: 200px 1fr;
  }
}

/* Encapsule les container queries (optionnel) */
@supports (container-type: inline-size) {
  /* Tu peux déplacer ici TOUTES tes règles @container */
}

/* Fallback pour navigateurs sans container queries */
@supports not (container-type: inline-size) {
  /* Approximons : quand le viewport est large, on passe la carte en 2 colonnes */
  @media (min-width: 700px) {
    .spectacles-grid .card--event {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 0.75rem;
    }
    .spectacles-grid .card--event img {
      width: 100%;
      height: auto;
      border-radius: 6px;
      object-fit: cover;
      aspect-ratio: 1/1;
    }
  }
}

/* Safety: toujours cacher ce qui est marqué hidden-spectacle */
.spectacles-grid .hidden-spectacle {
  display: none;
}
