/* My Dear Recordings - styles propres au label (en plus de style.css) */


/* ==========================================================
   Menu horizontal (ajout SDMN)
   ========================================================== */
.sdmn-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.sdmn-nav li {
    margin-left: 35px;
}

.sdmn-nav a {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1;
    color: #000;
    text-decoration: none;
    padding: 6px 0;
    transition: color 150ms linear;
}

/* petit trait qui apparait au survol */
.sdmn-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.sdmn-nav a:hover::after {
    transform: scaleX(1);
}

/* Ordinateur : menu horizontal, bouton "Menu" masque */
@media (min-width: 992px) {
    .sdmn-header-right .sdmn-menu-toggle {
        display: none;
    }
}

/* Tablette et mobile : menu horizontal masque, le bouton "Menu" reprend le relais */
@media (max-width: 991px) {
    .sdmn-nav {
        display: none;
    }
}


/* ==========================================================
   Bandeau blanc sticky : logo a gauche, menu a droite (ajout SDMN)
   Les !important empechent le script du modele de masquer
   l'en-tete quand on descend dans la page.
   ========================================================== */
.sdmn-header-holder,
.sdmn-header-holder.sdmn-header-fixed,
.sdmn-header-holder[data-header-fixed="1"] {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    margin-top: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #fff !important;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.08);
}

.sdmn-header-holder .sdmn-header-inner {
    transform: none !important;
}

/* ==========================================================
   Galerie photos du studio (ajout SDMN)
   ========================================================== */
.sdmn-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;          /* images carrees ; 4 / 3 pour du paysage */
    margin-bottom: 30px;
    background-color: #efefef;
}

.sdmn-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.sdmn-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* recadre sans deformer */
    transition: transform 400ms ease;
}

.sdmn-gallery-item:hover img {
    transform: scale(1.05);
}

/* ==========================================================
   Page References : grille de pochettes (ajout SDMN)
   ========================================================== */
.sdmn-refs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);   /* 6 pochettes par ligne */
    gap: 20px;
}

@media (max-width: 991px) {
    .sdmn-refs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .sdmn-refs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.sdmn-ref {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #efefef;
    color: #fff;
    text-decoration: none;
}

.sdmn-ref img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.sdmn-ref-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    background-color: rgba(0,0,0,0.75);
    opacity: 0;
    transition: opacity 300ms ease;
}

.sdmn-ref:hover .sdmn-ref-overlay { opacity: 1; }
.sdmn-ref:hover img { transform: scale(1.05); }

.sdmn-ref-artist {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
}

.sdmn-ref-album {
    font-size: 12px;
    font-style: italic;
    line-height: 1.3;
    margin-top: 2px;
}

.sdmn-ref-credits {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ecrans tactiles (pas de survol) : les mentions restent visibles en bas */
@media (hover: none) {
    .sdmn-ref-overlay {
        opacity: 1;
        inset: auto 0 0 0;
        padding: 8px;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
    .sdmn-ref-artist, .sdmn-ref-album { display: none; }
    .sdmn-ref-credits { margin-top: 0; font-size: 10px; letter-spacing: 1px; }
}

/* Correctif : le texte du survol passe au-dessus de la pochette */
.sdmn-ref { isolation: isolate; }
.sdmn-ref img { position: relative; z-index: 1; }
.sdmn-ref .sdmn-ref-overlay { z-index: 2; }
.sdmn-ref .sdmn-ref-overlay span,
.sdmn-ref:hover .sdmn-ref-overlay span { color: #fff !important; position: relative; z-index: 3; }

/* ==========================================================
   My Dear Recordings
   ========================================================== */
:root {
    --mdr-yellow: #fed362;
}

/* En-tête de la page d'accueil : fond jaune et logo animé */
.mdr-hero {
    background-color: var(--mdr-yellow);
    min-height: 78vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

.mdr-hero-inner {
    text-align: center;
}

.mdr-hero-logo {
    display: block;
    width: auto;
    max-width: 70vw;
    max-height: 48vh;
    margin: 0 auto;
}

.mdr-hero-tagline {
    margin: 28px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
}

/* En-tête des autres pages : bandeau jaune plus court */
.mdr-hero-compact {
    background-color: var(--mdr-yellow);
    min-height: 0;
    padding-top: 170px;
    padding-bottom: 70px;
}

/* Titres de section */
.mdr-section-title {
    margin: 0 0 40px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.mdr-section + .mdr-section {
    margin-top: 90px;
}

/* Grille des artistes : 4 par ligne */
.mdr-artists {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 991px) {
    .mdr-artists { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .mdr-artists { grid-template-columns: repeat(2, 1fr); }
}

.mdr-artists .sdmn-ref-artist {
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (hover: none) {
    .mdr-artists .sdmn-ref-artist { display: block; font-size: 12px; }
}

/* Catalogue des sorties */
.mdr-releases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 30px;
}

@media (max-width: 991px) {
    .mdr-releases { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .mdr-releases { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
}

.mdr-release-cover {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #efefef;
}

.mdr-release-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.mdr-release-cover:hover img {
    transform: scale(1.04);
}

.mdr-release-cat {
    margin: 14px 0 4px;
    font-size: 11px;
    letter-spacing: 2px;
    color: #555;
}

.mdr-release-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #000;
}

.mdr-release-formats,
.mdr-release-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.mdr-release-note {
    font-style: italic;
    color: #555;
}

.mdr-release-formats a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Page artiste */
.mdr-bio p {
    font-size: 16px;
    line-height: 1.8;
}

.mdr-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.mdr-links a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
}

.mdr-news {
    margin: 40px 0 0;
    padding: 18px 24px;
    border-left: 4px solid var(--mdr-yellow);
    background-color: #fafafa;
    font-weight: 700;
    line-height: 1.7;
}

.mdr-photo {
    margin: 60px 0 0;
}

.mdr-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.mdr-embed {
    position: relative;
    margin-top: 40px;
    background-color: #000;
}

.mdr-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.mdr-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.mdr-embed-audio {
    margin-top: 40px;
}

.mdr-embed-audio iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.mdr-back {
    display: inline-block;
    margin-top: 60px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

/* Pied de page : réseaux sociaux */
.mdr-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 24px;
    margin: 20px 0 10px;
    padding: 0;
    list-style: none;
}

.mdr-social a {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

/* Formulaire newsletter */
.mdr-newsletter {
    max-width: 480px;
    margin: 50px auto 0;
}

/* Texte réservé aux lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Liens dans les textes : soulignés pour qu'on les repère */
.mdr-bio p a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Section "Available now" : mêmes colonnes que le catalogue (4 / 3 / 2),
   mais centrées quand il y a moins de disques */
.mdr-releases-few {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.mdr-releases-few > .mdr-release {
    width: calc((100% - 90px) / 4);
}

@media (max-width: 991px) {
    .mdr-releases-few > .mdr-release { width: calc((100% - 60px) / 3); }
}

@media (max-width: 767px) {
    .mdr-releases-few > .mdr-release { width: calc((100% - 16px) / 2); }
}

.mdr-section-intro {
    margin: -20px 0 40px;
}

.mdr-section-intro a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Ancre "Artists" : ne pas passer sous l'en-tête fixe */
#artists {
    scroll-margin-top: 110px;
}

/* Photo d'artiste en portrait : largeur limitée et centrée */
.mdr-photo-portrait {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   Liens vers les autres sites SDMN (agence, studio, label) :
   regroupés à droite, plus discrets que les rubriques du site
   ========================================================== */
.sdmn-nav li.sdmn-nav-ext a {
    font-size: 11px;
    color: #888;
}

.sdmn-nav li.sdmn-nav-ext a:hover {
    color: #000;
}

.sdmn-nav li.sdmn-nav-ext-first {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #ddd;
}

.sdmn-nav li.sdmn-nav-ext + li.sdmn-nav-ext {
    margin-left: 22px;
}

/* Menu plein écran (tablette, mobile) : petit groupe séparé sous les rubriques */
.sdmn-navigation-fullscreen li.sdmn-nav-ext a {
    font-size: 80%;
    opacity: 0.6;
}

.sdmn-navigation-fullscreen li.sdmn-nav-ext a:hover {
    opacity: 1;
}

.sdmn-navigation-fullscreen li.sdmn-nav-ext-first {
    position: relative;
    margin-top: 28px;
    padding-top: 28px;
}

.sdmn-navigation-fullscreen li.sdmn-nav-ext-first::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    margin-left: -20px;
    border-top: 1px solid currentColor;
    opacity: 0.3;
}
