: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;
}
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);
}
.button:focus {
  box-shadow: var(--ring);
}

.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;
}

.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);
}

/* ---------------------------
      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 STICKY
    --------------------------- */
.mm-sticky {
  position: sticky;
  top: 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: 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;
  }
}
