:root {
  --bg: #ffffff;
  --panel: #f6f6f6;
  --text: #111111;
  --muted: #5e5e5e;
  --border: rgba(17, 17, 17, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --accent: #111111; /* sobre (noir) */
  --accent-2: #ffffff; /* pour inversions */
  --noise-opacity: 0.06;
  --hero-grad-1: rgba(0, 0, 0, 0.06);
  --hero-grad-2: rgba(0, 0, 0, 0);
  --ring: 0 0 0 3px rgba(17, 17, 17, 0.15);
}
html[data-theme="dark"] {
  --bg: #0b0b0c;
  --panel: #131315;
  --text: #f4f4f5;
  --muted: #b3b3b8;
  --border: rgba(244, 244, 245, 0.14);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --accent: #f4f4f5;
  --accent-2: #0b0b0c;
  --noise-opacity: 0.08;
  --hero-grad-1: rgba(255, 255, 255, 0.06);
  --hero-grad-2: rgba(255, 255, 255, 0);
  --ring: 0 0 0 3px rgba(244, 244, 245, 0.18);
}

/* ---------------------------
      BASE
    --------------------------- */
html,
body {
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  letter-spacing: 0.2px;
}
/* Compense la nav en position fixed (site public) pour ne pas cacher le début du contenu.
   Exclu de l'admin : sa navbar n'est pas en position fixed, ce padding y créerait un vide en haut de page. */
body:not(.admin-body) {
  padding-top: 138px;
}
a {
  color: inherit;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
}

a.navbar-item:hover {
  background-color: transparent;
}

.navbar,
.footer {
  background: transparent;
}
.navbar-item,
.navbar-link {
  color: var(--text) !important;
}

.navbar-start .navbar-item .mm-navtext {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}
.navbar-start .navbar-item .mm-navtext::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.navbar-start .navbar-item:hover .mm-navtext::after,
.navbar-start .navbar-item.is-active .mm-navtext::after {
  width: 100%;
}
.navbar-start .navbar-item:hover {
  color: var(--accent) !important;
}

.navbar-burger span {
  background: var(--text);
}
.title,
.subtitle {
  color: var(--text);
}
.content {
  color: var(--text);
}
.button.is-dark {
  background: var(--accent);
  color: var(--accent-2);
  border: 1px solid var(--border);
}
.button.is-light {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
/* Bulma fait grossir la bordure (1px -> 2px) au survol des boutons ".is-outlined", ce qui donne un
   petit "saut" disgracieux. On fige la bordure à 1px et on anime seulement les couleurs. */
.button.is-outlined {
  border-width: 1px !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button.is-dark.is-outlined {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.button.is-dark.is-outlined:hover,
.button.is-dark.is-outlined:focus {
  background: var(--accent);
  color: var(--accent-2);
  border-color: var(--accent);
}
.button:focus {
  box-shadow: var(--ring);
}

/* ---------------------------
      COOKIE BANNER
--------------------------- */
.mm-cookie-banner {
  display: none;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 320px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
}
.mm-cookie-banner.is-visible {
  display: block;
  animation: mm-cookie-in 0.25s ease;
}
.mm-cookie-banner p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.mm-cookie-banner .buttons {
  margin-bottom: 0;
}
@keyframes mm-cookie-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .mm-cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    max-width: none;
  }
}

/* ---------------------------
      CALENDRIER MUSICAL (fond notes)
    --------------------------- */
#concerts {
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(17,17,17,0.06)' font-family='serif' font-size='16'%3E%3Ctext x='50' y='80'%3E♪%3C/text%3E%3Ctext x='150' y='120'%3E♫%3C/text%3E%3Ctext x='250' y='60'%3E♪%3C/text%3E%3Ctext x='100' y='200'%3E♫%3C/text%3E%3Ctext x='300' y='180'%3E♪%3C/text%3E%3Ctext x='50' y='300'%3E♫%3C/text%3E%3Ctext x='200' y='320'%3E♪%3C/text%3E%3Ctext x='350' y='250'%3E♫%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 400px 400px;
  background-repeat: repeat;
  background-position: 0 0;
}
html[data-theme="dark"] #concerts {
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(244,244,245,0.08)' font-family='serif' font-size='16'%3E%3Ctext x='50' y='80'%3E♪%3C/text%3E%3Ctext x='150' y='120'%3E♫%3C/text%3E%3Ctext x='250' y='60'%3E♪%3C/text%3E%3Ctext x='100' y='200'%3E♫%3C/text%3E%3Ctext x='300' y='180'%3E♪%3C/text%3E%3Ctext x='50' y='300'%3E♫%3C/text%3E%3Ctext x='200' y='320'%3E♪%3C/text%3E%3Ctext x='350' y='250'%3E♫%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.mm-card {
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.mm-card .mm-card-inner {
  padding: 1.25rem;
}

/* Bulma étire l'image pour remplir le ratio sans recadrage : on force un recadrage centré. */
.mm-card .image img,
.card-image .image img {
  object-fit: cover;
  object-position: center;
}

/* Piège à robots (honeypot) : champ retiré visuellement mais présent dans le DOM. */
.mm-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mm-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------------------------
      HERO (effet "ondes sonores")
    --------------------------- */
.mm-hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(
      1000px 500px at 15% 15%,
      var(--hero-grad-1),
      var(--hero-grad-2)
    ),
    radial-gradient(
      800px 450px at 85% 25%,
      var(--hero-grad-1),
      var(--hero-grad-2)
    );
  overflow: hidden;
}

.wave-lines {
  position: absolute;
  inset: -20% -10%;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(0.2px);
}
.wave-lines svg {
  width: 100%;
  height: 100%;
}

.mm-logo {
  width: auto;
  height: auto;
  display: block;
}

/* IMPORTANT : Bulma limite par défaut la hauteur des images dans la navbar.
       On augmente la spécificité pour que ton logo soit réellement plus grand. */
.navbar-brand .navbar-item img.mm-logo {
  max-height: 110px; /* >= 1.5x */
}
@media (max-width: 768px) {
  .navbar-brand .navbar-item img.mm-logo {
    max-height: 76px;
  }
}

/* évite que Bulma "coupe" le logo quand il est plus grand */
.navbar-brand .navbar-item {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.mm-hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
}

/* ---------------------------
      SECTION TITLES
    --------------------------- */
.mm-section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border);
}
.mm-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mm-section-title .tag {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

/* Étiquettes de catégories (slug) affichées sur les cartes d'événements. */
.mm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.mm-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ---------------------------
      GALLERY
    --------------------------- */

.mm-gallery {
  column-count: 3;
  column-gap: 1rem;
}

@media (max-width: 1023px) {
  .mm-gallery {
    column-count: 2;
  }
}
@media (max-width: 640px) {
  .mm-gallery {
    column-count: 1;
  }
}

.mm-shot {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
}

.mm-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.mm-shot:hover img {
  transform: scale(1.02);
  filter: grayscale(0%) contrast(1.05);
}

.mm-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.mm-shot-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--accent);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
}

/* ---------------------------
      NAVBAR FIXED
    --------------------------- */
.mm-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--border);
}

/* ---------------------------
      SMALL ICONS (inline svg)
    --------------------------- */
.mm-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
}

/* Scroll reveal (petit effet) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form inputs */
.input,
.textarea {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.input::placeholder,
.textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}
.input:focus,
.textarea:focus {
  box-shadow: var(--ring);
  border-color: var(--border);
}

.mm-hero-banner {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* image de fond */
.mm-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-banner-image, url('../img/IMG_8472.jpg'));
  background-size: cover;
  background-position: center;
  filter: contrast(1.05);
  transform: scale(1.03);
}

/* overlay pour lisibilité */
.mm-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15)
    ),
    radial-gradient(
      900px 500px at 20% 20%,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0)
    );
  pointer-events: none;
}

/* remettre le contenu au-dessus */
.mm-hero-banner .container {
  position: relative;
  z-index: 1;
}

/* adapte la couleur du texte dans le hero */
.mm-hero-banner .title,
.mm-hero-banner .subtitle,
.mm-hero-banner .mm-hero-kicker {
  color: #fff !important;
}

html[data-theme="dark"] .mm-hero-banner::after {
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.25)
    ),
    radial-gradient(
      900px 500px at 20% 20%,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0)
    );
}

/* Navbar container un peu plus large + padding */
.mm-nav-container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 1024px) {
  .mm-nav-container {
    max-width: 1440px;
    margin: 0 auto;
  }
}

/* Mobile / tablette : menu + contenu plus aérés */
@media (max-width: 1023px) {
  .navbar-menu {
    padding: 0.75rem;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-top: 1px solid var(--border);
  }
  .navbar-start .navbar-item,
  .navbar-end .navbar-item {
    border-radius: 14px;
  }
  .navbar-end .buttons {
    width: 100%;
    flex-wrap: wrap;
  }
  .navbar-end .buttons .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .mm-hero {
    padding: 2.75rem 0 2rem;
  }
  .mm-section {
    padding: 2.25rem 0;
  }
  body:not(.admin-body) {
    padding-top: 104px;
  }
}
