﻿/* =========================
   MMD - DESIGN TOKENS
   ========================= */
:root{
  --mmd-bg: #fff;
  --mmd-text: #1f1f1f;
  --mmd-muted: #777;

  --mmd-border: #ededed;
  --mmd-border-strong: #e6e6e6;

  --mmd-radius: 12px;
  --mmd-radius-sm: 10px;
  --mmd-radius-xs: 6px;

  --mmd-pad: 14px;
  --mmd-gap: 14px;

  --mmd-shadow: 0 4px 12px rgba(0,0,0,.08);
  --mmd-shadow-hover: 0 8px 18px rgba(0,0,0,.12);

  --mmd-link: #0a66c2;
}

/* =========================
   GLOBAL
   ========================= */
/* .mmd-endorsed-artists{ margin-top: 2rem; color: var(--mmd-text); } */
.mmd-muted{ color: var(--mmd-muted); }
.mmd-link{ color: var(--mmd-link); text-decoration: underline; }

/* =========================
   CARD BASE (UNIFIÃ‰E)
   -> Ã  appliquer aux â€œcardsâ€ pour avoir mÃªme bordure/radius/ombre
   ========================= */
.mmd-card-base{
  background: var(--mmd-bg);
  border: 1px solid var(--mmd-border);
  border-radius: var(--mmd-radius-xs);
  overflow: hidden;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.mmd-card-base:hover{
  transform: translateY(-2px);
  box-shadow: var(--mmd-shadow-hover);
  border-color: var(--mmd-border-strong);
}

/* =========================
   SECTIONS / TITRES
   ========================= */
.mmd-style-block {
    margin-bottom: 2em;
    margin-top: 10em;
}
.mmd-style-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: none;
    text-align: center;
}

/* =========================
   GRIDS (artistes / genres / galerie)
   ========================= */
.mmd-artists-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 1rem;
}
.mmd-artists-grid--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mmd-artists-grid--six{
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem 1rem;
}

.mmd-genre-nav{ margin-bottom: 2rem; }
.mmd-genre-nav-list{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

/* =========================
   ARTIST CARD
   ========================= */

.mmd-artists-layout {
  margin: 100px 50px 0 50px;
}

.mmd-empty{
  padding: 18px;
  border: 1px dashed #d9d9d9;
  border-radius: 10px;
  color: #555;
  text-align: center;
  background: #fafafa;
}

.mmd-artist-card{
  display:block;
  text-decoration:none;
  color:inherit;
  border-radius:var(--mmd-radius-xs);
  overflow:hidden;
  position:relative;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.mmd-artist-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px rgba(0,0,0,.15);
}
.mmd-artist-card__media{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
}
.mmd-artist-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.mmd-artist-card:hover .mmd-artist-photo{
  transform:scale(1.05);
}
.mmd-artist-photo--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:1.1rem;
  color:#fff;
  background:#1f1f1f;
}
.mmd-artist-card__overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 100%);
  color:#fff;
}
.mmd-artist-card__overlay .mmd-artist-name{
  margin:0;
  font-size:1.2rem;
  line-height:1.2;
}
.mmd-artist-card__overlay .mmd-artist-genre{
  margin:4px 0 0;
  font-size:.9rem;
  color:rgba(255,255,255,.8);
}

/* =========================
   GENRE CARDS
   ========================= */
.mmd-genre-nav-item{ flex: 0 0 auto; }

.mmd-genre-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  /* aspect-ratio: 16 / 9; */
  /* aspect-ratio: 16 / 6; */
  aspect-ratio: 16 / 7;
  border-radius: var(--mmd-radius-xs);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: none;
}

.mmd-genre-card-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform .3s ease;
  z-index: 0;
}
.mmd-genre-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.mmd-genre-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0);
  transition: background .3s ease;
  z-index:0;
}
.mmd-genre-card-title{
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2rem;
  line-height: normal;
  letter-spacing: .06em;
  padding: 0 .75rem;
}

.mmd-genre-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--mmd-shadow);
}
.mmd-genre-card:hover .mmd-genre-card-bg{ transform: scale(1.08); }
.mmd-genre-card:hover::after{ background: rgba(0,0,0,.55); }

.mmd-genre-nav-item.is-active .mmd-genre-card{
  outline: 2px solid #fff;
}

/* =========================
   ARTIST PAGE
   ========================= */
.mmd-artist-view{
  /* max-width: 1100px; */
  margin: 0 auto;
  padding-top: 0;
  --mmd-page-pad: 18px;
}
.mmd-artist-topbar{ margin-bottom: 14px; }
.mmd-artist-topbar--hero{
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 3;
  margin-bottom: 0;
}

.mmd-btn{
  border: 1px solid rgb(255 255 255 / 26%);
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.mmd-btn:hover{
  background: #000;
  transform: translateY(-1px);
}
.mmd-btn:active{
  transform: translateY(0);
}

.mmd-artist-hero{ display: block; }
.mmd-artist-hero--banner{
  margin: 0 calc(-1 * var(--mmd-page-pad));
  margin-top: calc(-2 * var(--mmd-page-pad)); 
}
.mmd-artist-hero__media{
  position: relative;
  overflow: hidden;
}
.mmd-artist-hero__img{
  width: 100%;
  aspect-ratio: 16 / 6;
  display: block;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  border: 0;
  background: #fafafa;
}
.mmd-artist-hero__img--placeholder{
  height: 100vh;
  display: grid;
  place-items: center;
  color: #777;
  background: #f3f3f3;
}
.mmd-artist-hero__overlay{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: rgba(0,0,0,.55);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mmd-artist-title{
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}
.mmd-artist-genre{
  margin-top: 6px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
}

/* Meta box (garde le style mais avec tokens) */
.mmd-artist-meta{
  margin-top: 14px;
  border: 1px solid var(--mmd-border);
  border-radius: var(--mmd-radius-sm);
  overflow: hidden;
  background: var(--mmd-bg);
}
.mmd-card--info .mmd-artist-meta{ margin-top: 0; }
.mmd-artist-meta__row{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--mmd-border);
}
.mmd-artist-meta__row:first-child{ border-top: 0; }
.mmd-artist-meta__label{ font-weight: 700; color: #222; }
.mmd-artist-meta__value{ color: #222; }
.mmd-artist-brands{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mmd-artist-brand-link{
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--mmd-border);
  background: #f6f6f6;
  font-weight: 600;
  font-size: .85rem;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mmd-artist-brand-link:hover{
  background: #111;
  color: #fff;
  border-color: #111;
}
.mmd-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  margin-right:6px;
  border-radius:50%;
  background:#f0f0f0;
  color:#333;
  text-decoration:none;
  font-weight:700;
  transition:background .2s,color .2s;
  border:1px solid var(--mmd-border);
}
.mmd-social-link:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}
.mmd-social-link svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.mmd-sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

.mmd-artist-content{
  margin-top: 18px;
  display: grid;
  gap: var(--mmd-gap);
}

/* Genres badges */
.mmd-artist-genres{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.mmd-artist-genre-badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
}

/* Inline info (Groupes + Marques) */
.mmd-artist-inline-info{
  display: flex;
  justify-content: center;
}
.mmd-artist-inline-info__row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.mmd-artist-inline-info__item{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.mmd-artist-inline-info__label{
  font-weight: 700;
  color: #222;
}
.mmd-artist-inline-info__value{
  color: #222;
}

/* =========================
   â€œmmd-cardâ€ (bio / gallery)
   -> on le rend identique Ã  une card base
   ========================= */
.mmd-card{
  background: var(--mmd-bg);
  border: 1px solid var(--mmd-border);
  border-radius: var(--mmd-radius);
  overflow: hidden;
}
.mmd-card__head{
  padding: 12px 14px;
  border-bottom: 1px solid var(--mmd-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mmd-card__title{
  margin: 0;
  font-size: 18px;
}
.mmd-card__body{
  padding: var(--mmd-pad);
  color: var(--mmd-text);
  line-height: 1.55;
}

/* Tabs */
.mmd-bio-tabs{ display: inline-flex; gap: 6px; }
.mmd-tab{
  border: 1px solid #d6d6d6;
  background: #f7f7f7;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.mmd-tab.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}
.mmd-bio-panel{
  display: none;
  color: var(--mmd-text);
}
.mmd-bio-panel.is-active{ display:block; }

/* Socials + website row */
.mmd-artist-socialbar{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
}
.mmd-artist-socialbar__links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* Artist video */
.mmd-artist-video{
  position: relative;
  width: 70%;
  justify-self: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--mmd-radius-sm);
  overflow: hidden;
  background: #000;
}
.mmd-artist-video__placeholder{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.mmd-artist-video__thumb{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mmd-artist-video__play{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  border: 2px solid rgba(255,255,255,.85);
}
.mmd-artist-video__play::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.mmd-artist-video__frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery carousel */
.mmd-card--gallery{
  margin: 0 calc(-1 * var(--mmd-page-pad));
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  --mmd-carousel-gap: 12px;
  --mmd-carousel-visible: 5;
}
.mmd-card--gallery .mmd-card__head,
.mmd-card--gallery .mmd-card__body{
  padding-left: var(--mmd-page-pad);
  padding-right: var(--mmd-page-pad);
}
.mmd-card--gallery .mmd-card__head{
  position: relative;
  justify-content: center;
  border-bottom: 0;
  padding-top: 18px;
  padding-bottom: 6px;
}
.mmd-card--gallery .mmd-card__title{
  font-size: 22px;
  letter-spacing: .02em;
}
.mmd-gallery-nav{
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--mmd-page-pad);
  z-index: 1;
}
.mmd-gallery-btn{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgb(123 123 123 / 60%);
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.mmd-gallery-btn:hover{
  background: rgba(255,255,255,.12);
  border-color: #000000;
}
.mmd-gallery-carousel{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}
.mmd-gallery-carousel::-webkit-scrollbar{ display: none; }
.mmd-gallery-carousel{ scrollbar-width: none; }
.mmd-gallery-carousel__track{
  display: flex;
  gap: 12px;
}
.mmd-gallery__item{
  flex: 0 0 auto;
  width: 260px; /* ajuste */
}
.mmd-gallery__item img{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  background: #0f0f0f;
}

/* Instrument / Set Up : 2 colonnes */
.mmd-setup-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.mmd-setup-grid--single{
  grid-template-columns: 1fr;
}

.mmd-setup-col{
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.mmd-setup-subtitle{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}
.mmd-setup-col__media{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mmd-setup-col__img{
  width: 160px;
  height: auto;
  display: block;
  border-radius: var(--mmd-radius-sm);
  border: 1px solid var(--mmd-border-strong);
  margin: 0 0 10px;
}

/* Instrument accordion + product carousel */
.mmd-setup-accordion{
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}
.mmd-setup-accordion__toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f7f7;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}
.mmd-setup-accordion__title{ flex: 1; }
.mmd-setup-accordion__chevron{
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.mmd-setup-accordion__panel{
  display: none;
  padding: 12px 14px 14px;
}
.mmd-setup-accordion.is-open .mmd-setup-accordion__panel{ display: block; }
.mmd-setup-accordion.is-open .mmd-setup-accordion__chevron{
  transform: rotate(-135deg);
}
.mmd-setup-empty{
  color: var(--mmd-muted);
  font-style: italic;
}

.mmd-product-carousel{
  position: relative;
  --mmd-product-gap: 14px;
  --mmd-product-visible: 5;
}
.mmd-card--references{
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}
.mmd-card--bio{
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}
.mmd-card--references .mmd-card__head{ justify-content: center; }
.mmd-product-carousel__viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 6px 0 4px;
}
.mmd-product-carousel__viewport::-webkit-scrollbar{ display: none; }
.mmd-product-carousel__viewport{ scrollbar-width: none; }
.mmd-product-carousel__track{
  display: flex;
  gap: var(--mmd-product-gap);
  padding: 0 24px;
  box-sizing: border-box;
}
.mmd-product-card{
  flex: 0 0 calc(
    (100% - (var(--mmd-product-gap) * (var(--mmd-product-visible) - 1)))
    / var(--mmd-product-visible)
  );
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.mmd-product-card__media{
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.mmd-product-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mmd-product-card__placeholder{
  color: #777;
  font-size: 12px;
}
.mmd-product-card__body{
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}
.mmd-product-card__name{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}
.mmd-product-card__price{
  font-weight: 700;
  color: #111;
}
.mmd-product-carousel__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mmd-product-carousel__nav[data-mmd-product-prev]{ left: 6px; }
.mmd-product-carousel__nav[data-mmd-product-next]{ right: 6px; }


/* =========================
   RESPONSIVE
   ========================= */
   
@media (max-width: 1199px) {
  .mmd-artists-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mmd-artists-grid--six{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 992px){
  .mmd-artists-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mmd-artists-grid--three{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mmd-artists-grid--six{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mmd-genre-nav-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .mmd-setup-grid{ grid-template-columns: 1fr; }
  .mmd-setup-col__media{ flex-direction: column; }
  .mmd-setup-col__img{ width: 100%; }
  .mmd-artist-hero__img{ height: 70vh; }
  .mmd-artist-hero__img--placeholder{ height: 70vh; }
  .mmd-artist-meta__row{ grid-template-columns: 1fr; }
  .mmd-artist-inline-info__row{ justify-content: center; text-align: center; }
  .mmd-artist-inline-info{ justify-content: center; }
  .mmd-artist-socialbar{ align-items: center; }
  .mmd-artist-socialbar__website{ margin-left: 0; }
  .mmd-card--gallery{ --mmd-carousel-visible: 2; }
  .mmd-gallery__item{ flex-basis: auto; }
  .mmd-gallery__item img{ aspect-ratio: 1 / 1; }
  .mmd-product-carousel{ --mmd-product-visible: 2; }
  .mmd-artists-grid--six{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .mmd-card--gallery{ --mmd-carousel-visible: 1; }
  .mmd-product-carousel{ --mmd-product-visible: 1; }
  .mmd-artists-grid--six{ grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .mmd-artists-grid{ grid-template-columns: 1fr; }
  .mmd-artists-grid--three{ grid-template-columns: 1fr; }
  .mmd-genre-nav-list{ grid-template-columns: 1fr; }
}

