/* La Madone — charte typographique unique (chargée en dernier sur toutes les pages publiques).
   Deux familles seulement : LM Graffiti (logo + titres majeurs) et LM Charte Sans (tout le reste).
   Polices servies localement sous licence SIL Open Font. */

/* Sedgwick Ave Display n’existe qu’en 400 : la synthèse de gras est coupée plus bas. */
@font-face {
  font-family: 'LM Graffiti';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/sedgwick-ave-display-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'LM Graffiti';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/sedgwick-ave-display-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

/* Space Grotesk variable déclaré deux fois, en 500 et en 700 : toute autre graisse demandée
   par une ancienne feuille se résout sur l’une des deux (axe wght bridé par la déclaration). */
@font-face {
  font-family: 'LM Charte Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/space-grotesk-latin-variable.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'LM Charte Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/space-grotesk-latin-ext-variable.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'LM Charte Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/space-grotesk-latin-variable.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'LM Charte Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/space-grotesk-latin-ext-variable.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lm-sans: 'LM Charte Sans', system-ui, sans-serif;
  --lm-graffiti: 'LM Graffiti', 'LM Charte Sans', sans-serif;
  --lm-white: #ffffff;
  --lm-violet: #8a2be2;
  --lm-carbon: #09090c;
}

/* Niveau 2 : Space Grotesk droit partout (texte, menus, boutons, horaires, formulaires). */
html:not(#lmc1):not(#lmc2):not(#lmc3) body,
html:not(#lmc1):not(#lmc2):not(#lmc3) body *:not(svg, svg *),
html:not(#lmc1):not(#lmc2):not(#lmc3) body :is(input, button, select, textarea) {
  font-family: var(--lm-sans) !important;
  font-style: normal !important;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body { font-weight: 500; }

/* Niveau 1 : graffiti éditorial pour le logo et les titres majeurs, blanc pur. */
html:not(#lmc1):not(#lmc2):not(#lmc3) body :is(h1, h1 *, .lm-graffiti, .lm-graffiti *, .lm-wordmark, .lm-wordmark *),
html:not(#lmc1):not(#lmc2):not(#lmc3) body.madone-home :is(.home-hero-show, .home-channels-title, .home-tv-title,
  .section-heading > h2, .actu-teaser-head > h2, .home-schedule-head > h2) {
  font-family: var(--lm-graffiti) !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: .01em !important;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body :is(h1, .lm-graffiti),
html:not(#lmc1):not(#lmc2):not(#lmc3) body.madone-home :is(.home-hero-show, .home-channels-title, .home-tv-title,
  .section-heading > h2, .actu-teaser-head > h2, .home-schedule-head > h2) {
  color: var(--lm-white) !important;
  -webkit-text-fill-color: currentColor;
  text-transform: uppercase;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body h1 *:not(.lm-wordmark-dot, .visually-hidden) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background-image: none !important;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body h1 .lm-wordmark-dot { color: var(--lm-violet) !important; -webkit-text-fill-color: currentColor !important; }
/* Logo LA MADONE. en texte vivant, à côté du monogramme LM Variante 01. */
html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-wordmark {
  display: inline-block;
  color: var(--lm-white) !important;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-wordmark .lm-wordmark-dot { color: var(--lm-violet) !important; }
@media (max-width: 420px) {
  html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-wordmark { font-size: 1.3rem; }
}
/* Menu tiroir : le même logo que l’en-tête (monogramme LM + .lm-wordmark graffiti, sans point), même écart. */
html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-topbar .lm-drawer-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--lm-white) !important;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  background: none !important;
}
@media (max-width: 440px) {
  html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-topbar .lm-drawer-logo img.lm-logo-mark { width: 30px; height: 30px; }
}

/* Un seul header : les anciennes barres de navigation restent dans le DOM pour leurs scripts, sans s’afficher. */
html:not(#lmc1):not(#lmc2):not(#lmc3) body.lm-page :is(
  .station-header, .exclus-header, .community-header, .backstage-page-header, .actu-header,
  .tv-header, .listening-header, header.layout:has(> .site-nav:only-child), .playlist-home
) { display: none !important; }

/* Madone Crush reste un bonus : encart discret, jamais au niveau du lecteur radio. */
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: var(--hd-width, min(calc(100% - 2.5rem), 80rem));
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-heads { display: flex; }
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-heads img {
  width: 64px; height: 64px; border-radius: 50%;
  box-shadow: 0 0 0 3px #09090c;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-heads img + img { margin-left: -18px; }
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-copy > * { margin: 0; }
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-kicker {
  color: #cfa6ff !important;
  font: 700 .72rem/1 var(--lm-f-text, 'LM Charte Sans', sans-serif) !important;
  letter-spacing: .16em; text-transform: uppercase;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush h2 {
  margin: .45rem 0 .3rem !important;
  color: var(--lm-white, #fff) !important;
  font: 700 clamp(1.15rem, 2.2vw, 1.45rem)/1.15 var(--lm-f-text, 'LM Charte Sans', sans-serif) !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-copy p:last-child { color: rgba(244, 242, 248, .66) !important; font-size: .92rem; }
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  color: var(--lm-white, #fff) !important; font-weight: 700; text-decoration: none; white-space: nowrap;
}
html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-cta:hover { border-color: var(--lm-violet, #8a2be2); }
@media (max-width: 640px) {
  html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush { grid-template-columns: minmax(0, 1fr); }
  html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-heads img { width: 52px; height: 52px; }
  html:not(#lmc1):not(#lmc2):not(#lmc3) body .home-crush-cta { justify-self: start; }
}
html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-drawer-bonus a { display: grid !important; gap: .15rem; }
html:not(#lmc1):not(#lmc2):not(#lmc3) .lm-drawer-bonus small {
  color: #cfa6ff; font: 700 .68rem/1 var(--lm-f-text, 'LM Charte Sans', sans-serif); letter-spacing: .14em; text-transform: uppercase;
}

@media print {
  html:not(#lmc1):not(#lmc2):not(#lmc3) :is(.lm-topbar, .lm-drawer, .lm-search, [data-lm-dock]) { display: none !important; }
}
