/* Accueil — fusion vitrine 3/12 23:16 + acquis du 4/12 (Claude cloud). Isolé : ne cible que .fusion-*. */
html.lm-site body .welcome-home .fusion-id {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: center;
  margin: 0 0 1.4rem; width: 100%;
}
html.lm-site body .welcome-home .fusion-avatar {
  grid-row: 1; width: 84px; height: 84px; object-fit: cover; object-position: 50% 18%;
  border-radius: 50%; border: 2px solid #ffd600; box-shadow: 0 0 0 4px rgba(138,43,226,.55), 0 10px 28px rgba(0,0,0,.55);
}
html.lm-site body .welcome-home .fusion-id-text { min-width: 0; }
html.lm-site body .welcome-home .fusion-role {
  margin: 0 0 .55rem; color: #ffd600; font: 700 .78rem/1.2 var(--lm-sans, system-ui, sans-serif) !important;
  letter-spacing: .16em; text-transform: uppercase;
}
html.lm-site body .welcome-home .fusion-name {
  margin: 0; color: #f6f1e7; font-family: "LM Graffiti", "LM Charte Sans", sans-serif !important;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; letter-spacing: .01em;
  text-shadow: 0 3px 0 #8a2be2, 0 0 28px rgba(138,43,226,.35);
}
html.lm-site body .welcome-home .fusion-hook {
  margin: .45rem 0 0; color: rgba(246,241,231,.82); font: 500 1rem/1.4 var(--lm-sans, system-ui, sans-serif) !important; max-width: 38ch;
}
html.lm-site body .welcome-home .fusion-ctas {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem;
}
html.lm-site body .welcome-home .fusion-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.35rem;
  border: 2px solid rgba(246,241,231,.28); border-radius: 999px; background: rgba(11,11,14,.72);
  color: #f6f1e7; font: 700 1rem/1 var(--lm-sans, system-ui, sans-serif) !important; letter-spacing: .02em;
  text-decoration: none; transition: border-color .15s, background .15s, color .15s;
}
html.lm-site body .welcome-home .fusion-cta:hover, html.lm-site body .welcome-home .fusion-cta:focus-visible {
  border-color: #ffd600; color: #ffd600;
}
html.lm-site body .welcome-home .fusion-cta:focus-visible { outline: 2px solid #ffd600; outline-offset: 3px; }
html.lm-site body .welcome-home .fusion-cta--primary { background: #8a2be2; border-color: #8a2be2; color: #fff; }
html.lm-site body .welcome-home .fusion-cta--primary:hover { background: #9d4ef0; color: #fff; }
/* Scène radio : filet jaune/violet + chat au casque (WHO'S THE BOSS) */
html.lm-site body .welcome-home .fusion-live { position: relative; }
html.lm-site body .welcome-home .fusion-station {
  margin-inline: .6rem; color: #ffd600; font: 800 .8rem/1 var(--lm-sans, system-ui, sans-serif) !important; letter-spacing: .14em;
}
html.lm-site body .welcome-home .fusion-live::before {
  content: ""; display: block; width: 72px; height: 4px; margin: 0 0 .9rem;
  background: linear-gradient(90deg, #ffd600 0 55%, #8a2be2 55% 100%); border-radius: 2px;
}
@media (max-width: 740px) {
  html.lm-site body .welcome-home .fusion-id { margin-bottom: 1.1rem; gap: .25rem .85rem; }
  html.lm-site body .welcome-home .fusion-avatar { width: 68px; height: 68px; }
  html.lm-site body .welcome-home .fusion-name { font-size: clamp(2.3rem, 11vw, 3rem); }
  html.lm-site body .welcome-home .fusion-hook { display: none; }
  html.lm-site body .welcome-home .fusion-ctas { gap: .45rem; margin-top: .75rem; }
  html.lm-site body .welcome-home .fusion-cta { flex: 1 1 0; min-height: 46px; padding: 0 .6rem; font-size: .95rem !important; }
  /* le grand carré du créneau en cours passe sous l'identité, plus compact */
  html.lm-site body .welcome-home .welcome-media { display: none; }
  html.lm-site body .welcome-home.home-hero-slide { display: flex !important; flex-direction: column; gap: 0 !important; padding-top: 14px !important; }
  html.lm-site body .welcome-home .poster-copy { position: absolute; }
  html.lm-site body .welcome-home .fusion-avatar { margin-left: 4px; }
  html.lm-site body .welcome-home .fusion-live {
    padding: 1rem 1rem 1rem; border-radius: 18px; overflow: hidden;
    background: linear-gradient(90deg, rgba(11,11,14,.94) 52%, rgba(11,11,14,.35)),
      url("/assets/branding/vintage-cat-boombox.webp?v=65963bb5f5") right -30px center / 62% auto no-repeat, #141019;
    border: 1px solid rgba(138,43,226,.45);
  }
}
/* La Madone TV, téléphones (≤ 480 px) : Beat Sync et Next channel plus compacts, côte à côte sur une ligne. */
@media (max-width: 480px) {
  html.lm-site body #la-madone-tv .home-tv-screen :is(.home-tv-beat, .home-tv-next) {
    top: auto !important; bottom: 8px !important; height: 32px !important; min-height: 32px !important;
    padding: 0 10px !important; font-size: 10.5px !important; letter-spacing: .06em !important;
    white-space: nowrap; line-height: 1 !important; display: inline-flex; align-items: center; gap: .3em;
  }
  html.lm-site body #la-madone-tv .home-tv-screen .home-tv-beat { left: 8px !important; right: auto !important; max-width: calc(54% - 12px); }
  html.lm-site body #la-madone-tv .home-tv-screen .home-tv-next { right: 8px !important; left: auto !important; max-width: calc(46% - 12px); background: rgba(11,11,14,.72) !important; }
}

/* ===== Finition mobile du 4/12 (consigne 15:41). PC inchangé sauf l'allumage TV. ===== */
@media (max-width: 740px) {
  /* 1. Carte radio : boutons plus près du titre, moins de vide avant les flèches */
  html.lm-site body .welcome-home .welcome-actions { gap: 10px !important; }
  html.lm-site body .welcome-home .fusion-live { padding-bottom: 12px !important; }
  html.lm-site body .welcome-home .home-hero-buttons { margin-top: 0 !important; }
  html.lm-site body .welcome-home.home-hero-slide { padding-bottom: 52px !important; }
  html.lm-site body .home-hero .home-hero-next { padding-bottom: 52px !important; }
  html.lm-site body .home-hero .home-hero-next .home-hero-square { width: 132px !important; height: 132px !important; }
  html.lm-site body .home-hero .home-hero-controls { bottom: 16px !important; }
  /* le bandeau fixe ne masque pas les sections atteintes par ancre */
  html.lm-site body main :is(section[id], .section-anchor, [id="la-madone-tv"]) { scroll-margin-top: 76px; }

  /* 2. Programme : les 7 jours visibles d'un coup, jour actif évident */
  html.lm-site body .home-programme .home-schedule-tabs {
    display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; width: 100% !important; max-width: none !important; box-sizing: border-box;
    overflow: visible !important; padding: 5px !important; border-radius: 16px !important;
  }
  html.lm-site body .home-programme .home-schedule-tab {
    padding: 0 !important; min-width: 0 !important; height: 40px; font-size: .72rem !important;
    letter-spacing: .04em !important; border-radius: 10px !important; text-align: center; position: relative;
  }
  html.lm-site body .home-programme .home-schedule-tab[aria-selected="true"] {
    background: #ffd600 !important; color: #0b0b0e !important; box-shadow: 0 3px 0 #8a2be2 !important;
  }
  /* cartes : vignette + horaire en haut, nom et styles en pleine largeur, sur deux lignes si besoin */
  html.lm-site body .home-programme .home-schedule-card {
    grid-template-columns: 48px minmax(0, 1fr) !important; grid-template-areas: "cover time" "copy copy";
    gap: 10px 12px !important; align-items: center;
  }
  html.lm-site body .home-programme .home-schedule-cover { grid-area: cover; width: 48px !important; height: 48px !important; }
  html.lm-site body .home-programme .home-schedule-time { grid-area: time; display: flex !important; gap: .5rem; align-items: baseline; }
  html.lm-site body .home-programme .home-schedule-copy { grid-area: copy; min-width: 0; }
  html.lm-site body .home-programme .home-schedule-name {
    white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.15 !important;
  }
  html.lm-site body .home-programme .home-schedule-tags { flex-wrap: wrap !important; overflow: visible !important; gap: 6px !important; }
  html.lm-site body .home-programme .home-schedule-tag { white-space: nowrap !important; }
}

/* 4. Allumage télé vintage à l'ouverture de La Madone TV : l'image s'ouvre depuis une ligne centrale,
   puis un filet violet entoure le cadre. Pas de flash, pas de son, aucun déclenchement de lecture. */
html.lm-site body [data-home-tv][data-state="playing"] .home-tv-screen {
  animation: lm-tv-frame .7s ease-out both;
}
html.lm-site body [data-home-tv][data-state="playing"] .home-tv-screen :is(.home-tv-video.is-live, .home-tv-poster) {
  animation: lm-tv-on .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes lm-tv-on {
  0%   { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(.85) saturate(.6); }
  45%  { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(.85) saturate(.6); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes lm-tv-frame {
  0%, 55% { box-shadow: 0 0 0 0 rgba(138,43,226,0); }
  100% { box-shadow: 0 0 0 2px #8a2be2, 0 0 18px rgba(138,43,226,.35); }
}
html.lm-site body [data-home-tv][data-state="playing"] .home-tv-screen { box-shadow: 0 0 0 2px #8a2be2, 0 0 18px rgba(138,43,226,.35); }
@media (prefers-reduced-motion: reduce) {
  html.lm-site body [data-home-tv][data-state="playing"] .home-tv-screen,
  html.lm-site body [data-home-tv][data-state="playing"] .home-tv-screen :is(.home-tv-video.is-live, .home-tv-poster) { animation: none !important; }
}

/* Cibles tactiles (audit 4/12) : zone de toucher d'au moins 44 px sans changer le dessin */
@media (max-width: 740px) {
  html.lm-site body .home-hero .home-hero-dot { position: relative; }
  html.lm-site body .home-hero .home-hero-dot::after { content: ""; position: absolute; inset: -18px -6px; }
  html.lm-site body .home-hero .home-hero-more { display: inline-flex; align-items: center; min-height: 44px; padding-block: 12px; margin-block: -12px; }
  html.lm-site body .lm-topbar .lm-drawer-close { min-width: 44px !important; min-height: 44px !important; display: inline-flex; align-items: center; justify-content: center; }
}
