/* KikuSekai — page d'accueil */

/* ── index.php ── */
  .hero {
    position: absolute;
    top: 0 !important; left: 0; right: 0;
    margin: 0 !important;
    padding: 0;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    overflow: hidden;
    background: var(--bg2);
    contain: paint;
  }
  .hero-spacer { height: 100vh; height: 100svh; min-height: 560px; }
  .hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
  .hero-fade {
    position: absolute; inset: 0; z-index: 1;
    background:
      linear-gradient(to bottom, rgba(13,13,13,0.8) 0, rgba(13,13,13,0.35) 66px, transparent 120px),
      radial-gradient(ellipse 60% 70% at 28% 50%, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.55) 45%, rgba(13,13,13,0.15) 70%, transparent 85%),
      linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.25) 18%, transparent 40%);
    pointer-events: none;
  }
  #heroMap { background: var(--bg2); opacity: 0; transition: opacity .6s ease-out; }
  #heroMap.is-ready { opacity: 1; }
  .dark-tiles { filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(0.9) saturate(0.6); }
  .leaflet-container { background: var(--bg2); font-family: Inter, sans-serif; }

  .hero-content {
    position: relative; z-index: 5;
    height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 var(--page-gutter) 0 var(--page-pad);
    max-width: calc(620px + var(--page-pad) - var(--page-gutter));
    pointer-events: none;
  }
  .hero-content > * { pointer-events: auto; }
  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: normal;
    font-size: clamp(56px, 10vw, 96px);
    line-height: 0.92;
    letter-spacing: 1px;
  }
  .hero-title span { color: var(--red); }
  .hero-tagline {
    margin-top: 22px;
    font-size: 19px;
    color: var(--text2);
    max-width: 46ch;
  }
  .hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
  .hero-btn {
    display: inline-block; padding: 12px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--border2); background: rgba(13,13,13,0.55);
    transition: border-color 0.15s, color 0.15s, filter 0.15s, transform 0.15s;
  }
  .hero-btn:hover { border-color: var(--red); color: var(--red); }
  .hero-btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
  .hero-btn--primary:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
  .hero-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
  .hero-stats {
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--text3);
    min-height: 16px;
  }
  .hero-stats strong { color: var(--text); font-weight: 500; }

  .scroll-hint {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    z-index: 5; color: var(--text3); font-size: 11px; letter-spacing: 1px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  .scroll-hint svg { animation: bob 1.8s ease-in-out infinite; }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  /* ---- Animation d'arrivée du hero (transform + opacity uniquement = animé par le GPU) ---- */
  @keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes heroRise   { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
  @keyframes heroPop    { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.96); } to { opacity: 1; transform: none; } }
  .hero-fade      { animation: heroFadeIn .6s ease-out backwards; }
  .hero-title     { animation: heroRise .7s cubic-bezier(0.22, 0.61, 0.36, 1) .05s backwards; will-change: transform, opacity; }
  .hero-tagline   { animation: heroRise .6s cubic-bezier(0.22, 0.61, 0.36, 1) .2s backwards; will-change: transform, opacity; }
  .hero-cta .hero-btn:nth-child(1) { animation: heroPop .5s cubic-bezier(0.22, 0.61, 0.36, 1) .35s backwards; }
  .hero-cta .hero-btn:nth-child(2) { animation: heroPop .5s cubic-bezier(0.22, 0.61, 0.36, 1) .45s backwards; }
  .hero-stats     { animation: heroRise .6s ease-out .5s backwards; }
  .scroll-hint    { animation: heroFadeIn .6s ease-out .8s backwards; }

  :root { --band-gap: 78px; --row-pad: 6px; }
  .band { padding: var(--band-gap) var(--page-gutter) calc(var(--band-gap) - var(--row-pad)); max-width: var(--page-max); margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 520px; }
  .band--flush { padding-top: 0; }
  .band-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    margin-bottom: 28px; flex-wrap: wrap;
  }
  .band-head h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px; letter-spacing: 0.5px; font-weight: normal;
  }
  .band-head h2 { order: 1; }
  .band-head .band-link { order: 2; }
  /* Ligne entière sous le titre : pas de max-width (il ferait tenir la description à côté d'un titre court
     sur grand écran) ; la largeur de lecture de 720 px est obtenue avec un padding-right. */
  .band-desc {
    order: 3; flex: 0 0 100%; margin: -10px 0 0;
    font-size: 14px; line-height: 1.5; color: var(--text2);
    padding-right: max(0px, calc(100% - 720px));
  }
  .band-link {
    font-size: 13px; color: var(--text2); border-bottom: 1px solid var(--border2);
    padding-bottom: 2px; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
  }
  .band-link:hover { color: var(--red); border-color: var(--red); }

  .station-row {
    display: flex; gap: 12px; overflow-x: auto; padding-bottom: var(--row-pad);
    scrollbar-width: thin;
  }
  .station-card {
    flex: 0 0 auto; width: 168px;
    background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; transition: border-color 0.15s;
  }
  .station-card:hover { border-color: var(--border2); }
  .station-logo {
    width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
    background: var(--bg4); overflow: hidden; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
  }
  .station-logo img { width: 100%; height: 100%; object-fit: cover; }
  .station-logo span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: 'Bebas Neue', sans-serif; font-size: 66px; line-height: 1; letter-spacing: 1px; color: #fff; }
  .station-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .station-sub { font-size: 11px; color: var(--text2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .skeleton { background: var(--bg4); border-radius: var(--radius-sm); animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }

  .explore-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
  .explore-chip {
    display: inline-block; border: 1px solid var(--border2); border-radius: 999px;
    padding: 7px 15px; font-size: 13px; color: var(--text);
    transition: border-color 0.15s, color 0.15s;
  }
  .explore-chip:hover { border-color: var(--red); color: var(--red); }
  #exploreBand { padding-top: 0; padding-bottom: calc(var(--band-gap) - 48px); border-top: 0; }
  @media (max-width: 640px) {
    #exploreBand { padding-bottom: calc(var(--band-gap) - 32px); }
    .site-footer { padding-top: 32px; }
  }

  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 4px; cursor: pointer; list-style: none; color: var(--text);
    transition: color 0.15s;
  }
  .faq-q::-webkit-details-marker { display: none; }
  .faq-q::marker { content: ''; }
  .faq-q h2 { font-family: 'Bebas Neue', sans-serif; font-weight: normal; font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.5px; margin: 0; }
  .faq-q:hover, .faq-item[open] > .faq-q { color: var(--red); }
  .faq-q:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
  .faq-chev { flex: 0 0 auto; transition: transform 0.2s; }
  .faq-item[open] > .faq-q .faq-chev { transform: rotate(180deg); }
  .faq-a { padding: 0 4px 26px; }
  .faq-all { display: inline-block; margin-bottom: 16px; }

  .sport-track {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: var(--row-pad);
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sport-track::-webkit-scrollbar { display: none; }
  .sport-card {
    position: relative; display: block; flex: 0 0 auto; width: clamp(180px, 22vw, 250px); aspect-ratio: 4 / 5;
    border-radius: var(--radius); overflow: hidden; background: var(--bg4);
    border: 1px solid var(--border); scroll-snap-align: start;
    transition: border-color 0.15s;
  }
  .sport-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
  .sport-card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.25) 45%, transparent 70%);
  }
  .sport-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
  .sport-card-name { font-family: 'Bebas Neue', sans-serif; font-size: 30px; line-height: 1; letter-spacing: 0.5px; color: #fff; }
  .sport-card-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.72); }
  .sport-card-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
  .sport-card:hover .sport-card-bg { transform: scale(1.06); }
  .sport-card:hover { border-color: var(--red); }
  .sport-card:hover img { transform: scale(1.06); }
  .sport-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

  .promo-band { padding-top: 0; padding-bottom: var(--band-gap); }
  .promo-viewport {
    overflow: hidden; background: var(--bg3);
    border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  }
  .promo-track { display: flex; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
  .promo-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 380px; }
  .promo-media { position: relative; min-height: 260px; background: var(--bg4); overflow: hidden; }
  .promo-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .promo-media--photo::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to right, transparent 55%, var(--bg3) 100%);
  }
  .promo-text {
    padding: clamp(24px, 3.2vw, 44px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .promo-title {
    font-family: 'Bebas Neue', sans-serif; font-weight: normal;
    font-size: clamp(34px, 4vw, 48px); line-height: 0.98; letter-spacing: 0.5px;
  }
  .promo-copy { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--text2); max-width: 46ch; }
  .promo-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
  .promo-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); }
  .promo-list svg { flex: 0 0 auto; margin-top: 2px; color: var(--red); }
  .promo-actions { margin-top: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  /* Même rendu que .ls-more des pages listes (genres, pays…) : fond orange uni comme listing.css (--red) + relief et ombres
     « verre 3D » de base.css (box-shadow, text-shadow, survol, clic). Le halo qui pulse est l'::after plus bas. */
  .promo-btn {
    display: inline-block; background: var(--red); color: #fff; font-weight: 600; font-size: 14px;
    padding: 12px 24px; border-radius: 999px;
  }
  .promo-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
  .promo-dots { display: flex; gap: 8px; }
  .promo-dot {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--border2); transition: width 0.25s, background 0.25s;
  }
  .promo-dot[aria-current="true"] { width: 28px; background: var(--red); }
  .promo-arrows { display: flex; gap: 8px; }
  .promo-arrow {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    background: var(--bg3); border: 1px solid var(--border); color: var(--text);
    display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, color 0.15s;
  }
  .promo-arrow:hover { border-color: var(--red); color: var(--red); }
  .promo-dot:focus-visible, .promo-arrow:focus-visible, .promo-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

  /* ================= Effets : « Écouter le sport en live » ================= */
  @keyframes sportIn   { from { opacity: 0; transform: translateY(40px) scale(0.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,106,0,0.7); } 70% { box-shadow: 0 0 0 7px rgba(255,106,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); } }


  #sportBand.reveal-ready:not(.in-view) .sport-card { opacity: 0; }
  #sportBand.in-view .sport-card {
    animation: sportIn 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .sport-track { padding-top: 10px; }
  .sport-card {
    transition: border-color 0.2s, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s;
  }
  .sport-card:hover, .sport-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,106,0,0.35), 0 8px 30px rgba(255,106,0,0.18);
  }
  .sport-card::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
    transform: translateX(-130%) skewX(-12deg);
  }
  .sport-card:hover::before { transform: translateX(260%) skewX(-12deg); transition: transform 0.9s ease; }
  .sport-card-body { transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .sport-card:hover .sport-card-body { transform: translateY(-6px); }
  .sport-card-name { transition: color 0.2s, letter-spacing 0.35s; }
  .sport-card:hover .sport-card-name { letter-spacing: 1.5px; }
  .sport-card-sub { display: flex; align-items: center; gap: 7px; transition: color 0.2s; }
  .sport-card-sub::before {
    content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
    animation: livePulse 1.8s ease-out infinite;
  }
  .sport-card-sub::after {
    content: '\2192'; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.3s; color: var(--red);
  }
  .sport-card:hover .sport-card-sub { color: #fff; }
  .sport-card:hover .sport-card-sub::after { opacity: 1; transform: translateX(0); }

  /* ================= Effets : slider image à gauche / texte à droite ================= */
  @keyframes dotFill { from { width: 0; } to { width: 100%; } }

  .promo-viewport { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.3s, box-shadow 0.4s; }
  .promo.reveal-ready:not(.in-view) .promo-viewport { opacity: 0; transform: translateY(46px) scale(0.98); }
  .promo-viewport:hover { border-color: rgba(255,106,0,0.45); box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 10px 50px rgba(255,106,0,0.12); }

  /* Texte : apparition échelonnée à chaque changement de diapositive */
  .promo.js-on .promo-text > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .promo.js-on .promo-slide.is-active .promo-text > * { opacity: 1; transform: none; }
  .promo.js-on .promo-slide.is-active .promo-text > :nth-child(1) { transition-delay: 0.25s; }
  .promo.js-on .promo-slide.is-active .promo-text > :nth-child(2) { transition-delay: 0.4s; }
  .promo.js-on .promo-slide.is-active .promo-text > :nth-child(3) { transition-delay: 0.55s; }
  .promo.js-on .promo-slide.is-active .promo-text > :nth-child(4) { transition-delay: 0.7s; }

  /* Liste à coches : les lignes arrivent l'une après l'autre */
  .promo.js-on .promo-list li { opacity: 0; transform: translateX(-16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .promo.js-on .promo-slide.is-active .promo-list li { opacity: 1; transform: none; }
  .promo.js-on .promo-slide.is-active .promo-list li:nth-child(1) { transition-delay: 0.7s; }
  .promo.js-on .promo-slide.is-active .promo-list li:nth-child(2) { transition-delay: 0.85s; }
  .promo-list li svg { transition: transform 0.3s; }
  .promo-list li:hover svg { transform: scale(1.3) rotate(-8deg); }

  /* Image : léger zoom (Ken Burns) + parallaxe au survol */
  .promo.js-on .promo-media > img { transform: scale(1.16); transition: transform 1.2s ease; }
  .promo.js-on .promo-slide.is-active .promo-media > img { transform: scale(1); transition: transform 9s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .promo.js-on .promo-slide.is-active:hover .promo-media > img { transform: scale(1.06); transition: transform 1.4s ease; }

  /* Bouton principal : halo lumineux qui pulse (conservé tel quel autour du bouton en verre 3D) */
  .promo-btn::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(255,106,0,0.55); animation: livePulse 2.4s ease-out infinite;
  }

  /* Flèches de navigation */
  .promo-arrow { transition: border-color 0.15s, color 0.15s, transform 0.2s, background 0.2s; }
  .promo-arrow:hover { transform: scale(1.1); background: var(--bg4); }
  .promo-arrow:active { transform: scale(0.94); }

  /* Flèches : même « verre sombre » en relief que les onglets non sélectionnés de la fenêtre d'ajout de flux (.as-tab / .af-tab:not(.on))
     — seuls le fond et les ombres changent ; taille, bordure, forme et icône restent identiques. */
  .promo-arrow, .promo-arrow:hover {
    background: linear-gradient(140deg, #2e2e2e 0%, #1b1b1b 45%, #000 100%); background-origin: border-box;
  }
  .promo-arrow {
    border-color: rgba(255,255,255,0.06);   /* même teinte de bordure que les onglets (largeur 1px inchangée) ; au survol elle redevient rouge */
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.10), inset -3px -4px 8px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.45);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: border-color 0.15s, color 0.15s, transform 0.2s, filter 0.2s;
  }
  .promo-arrow:hover { filter: brightness(1.2); }
  @media (prefers-reduced-motion: reduce) { .promo-arrow { transition: none; } }

  /* Points : la pastille active se remplit pendant le défilement automatique */
  .promo-dot { position: relative; overflow: hidden; }
  .promo-dot[aria-current="true"] { background: var(--border2); }
  .promo-dot[aria-current="true"]::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); border-radius: inherit;
    animation: dotFill 8s linear forwards;
  }
  .promo-dot.no-anim::after { animation: none !important; width: 0; }
  .promo.paused .promo-dot[aria-current="true"]::after { animation-play-state: paused; }

  @media (max-width: 900px) {
    .promo-slide { min-height: 340px; }
    .promo-text { padding: 24px 22px; }
    .promo-title { font-size: clamp(32px, 5vw, 42px); }
    .promo-copy { font-size: 15px; }
    .promo-list li { font-size: 13.5px; }
  }
  @media (max-width: 600px) {
    .promo-slide { grid-template-columns: 1fr; min-height: 0; }
    .promo-media { min-height: 220px; }
    .promo-media--photo::after { background: linear-gradient(to bottom, transparent 55%, var(--bg3) 100%); }
    .promo-text { padding: 24px 20px 28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .scroll-hint svg, .skeleton { animation: none; }
    .hero-fade, .hero-title, .hero-tagline, .hero-cta .hero-btn, .hero-stats, .scroll-hint { animation: none !important; }
    .promo-track { transition: none; }
    #heroMap { transition: none; }
    .sport-card, .sport-card img, .sport-card-body, .sport-card::before { transition: none; }
    #sportBand .sport-card, .sport-card-sub::before, .promo-btn::after { animation: none !important; }
    #sportBand.reveal-ready:not(.in-view) .sport-card { opacity: 1; }
    .promo.js-on .promo-text > *, .promo.js-on .promo-list li, .promo.js-on .promo-media > img, .promo-viewport { transition: none !important; }
    .promo.js-on .promo-text > *, .promo.js-on .promo-list li { opacity: 1; transform: none; }
    .promo.js-on .promo-media > img { transform: none; }
    .promo-dot[aria-current="true"]::after { animation: none; width: 100%; }
  }
