/**
 * Accueil de l'appli mobile, version « appli moderne » (2026-11) :
 * onglets en pilules, cartes de couleur compactes (une couleur par discipline),
 * peu de texte. Tout est limité à body.pma-accueil pour ne rien changer aux autres pages.
 */

/* ── Titres de section : plus courts, plus « appli » ── */
:root body.pma-accueil .pm-section-header { padding: 22px 16px 10px; }
:root body.pma-accueil .pm-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;

}
:root body.pma-accueil .pm-section-more {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;

}

/* Libellés traduits en majuscules : « TOUT VOIR » → « Tout voir » */
:root body.pma-accueil .pm-section-title,
:root body.pma-accueil .pm-section-more,
:root body.pma-accueil .pm-tab { text-transform: lowercase; }
:root body.pma-accueil .pm-section-title::first-letter,
:root body.pma-accueil .pm-section-more::first-letter,
:root body.pma-accueil .pm-tab::first-letter { text-transform: uppercase; }

/* ── Onglets en pilules ── */
:root body.pma-accueil .pm-tab-bar {
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 0;
    background: color-mix(in srgb, var(--ink) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
:root body.pma-accueil .pm-tab {
    padding: 8px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--ink2);
    color: color-mix(in srgb, var(--white) 70%, transparent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;

    box-shadow: inset 0 0 0 1px var(--rule);
}
:root body.pma-accueil .pm-tab.active {
    background: var(--blue);
    color: var(--ink);
    box-shadow: none;
}
:root body.pma-accueil .pm-tab .pma-point-direct { background: var(--live); }
:root body.pma-accueil .pm-tab.active .pma-point-direct { background: var(--ink); }

/* ── Bloc « En direct » : rail de cartes de couleur ── */
.pma-direct-tete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 4px;
}
.pma-direct-titre {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.01em;
}
.pma-direct-compte {
    min-width: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--live);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.pma-rail {
    display: flex;
    gap: 10px;
    padding: 10px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pma-rail::-webkit-scrollbar { display: none; }

.pma-live {
    --disc: #334155;
    position: relative;
    flex: 0 0 78%;
    max-width: 320px;
    min-height: 148px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #fff 18%, transparent) 0%, transparent 55%),
        linear-gradient(140deg, var(--disc) 0%, color-mix(in srgb, var(--disc) 55%, #05070b) 100%);
    box-shadow: 0 10px 24px -14px var(--disc);
}
.pma-live:only-child { flex-basis: 100%; max-width: none; }
.pma-live:active { transform: scale(.98); }
.pma-live-deco {
    position: absolute;
    right: -14px;
    bottom: -18px;
    z-index: -1;
    font-size: 104px;
    color: rgba(255, 255, 255, .12);
    transform: rotate(-12deg);
    pointer-events: none;
}
.pma-live-haut { display: flex; align-items: center; gap: 8px; }
.pma-pastille-direct {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    color: #e11d2e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}
.pma-pastille-direct.pma-calme { background: rgba(0, 0, 0, .3); color: #fff; }
.pma-point-direct {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: pm-dot-pulse 1.4s infinite;
}
.pma-live-disc {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}
.pma-live-vignette {
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .35);
    flex-shrink: 0;
}
.pma-live-nom {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pma-live-bas {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
.pma-puce {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    white-space: nowrap;
}
.pma-puce .flag-icon { width: 15px; height: 11px; border-radius: 2px; }
.pma-puce-claire { background: rgba(255, 255, 255, .92); color: #0b0f1a; font-weight: 800; }

.pma-direct-video { padding: 8px 16px 4px; }
.pma-direct-video-cadre {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
.pma-direct-video-cadre > div { position: absolute; inset: 0; }
.pma-direct-video a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

/* ── Listes compactes (à venir, derniers résultats) ── */
.pma-liste { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 6px; }
.pma-ligne {
    --disc: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border-radius: 16px;
    background: var(--ink2);
    box-shadow: inset 0 0 0 1px var(--rule);
    text-decoration: none;
    color: var(--white);
}
.pma-ligne:active { background: var(--ink3); }
.pma-date {
    flex-shrink: 0;
    width: 48px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--disc);
    color: #fff;
    line-height: 1;
}
.pma-date b { font-family: 'Bebas Neue', sans-serif; font-size: 25px; font-weight: 400; }
.pma-date small { font-size: 10px; font-weight: 800; text-transform: uppercase; opacity: .85; margin-top: 1px; }
.pma-ligne-texte { flex: 1; min-width: 0; }
.pma-ligne-nom {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pma-ligne-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    color: color-mix(in srgb, var(--white) 55%, transparent);
    white-space: nowrap;
    overflow: hidden;
}
.pma-ligne-info .flag-icon { width: 15px; height: 11px; border-radius: 2px; flex-shrink: 0; }
.pma-ligne-disc { color: color-mix(in srgb, var(--disc) 60%, #fff); font-weight: 800; }
.pma-ligne-fin {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: var(--blue-dim);
    color: var(--blue);
}
.pma-ligne-fin.pma-neutre { background: color-mix(in srgb, var(--white) 8%, transparent); color: color-mix(in srgb, var(--white) 60%, transparent); }

/* ── Prochaine compétition : bandeau de couleur ── */
:root body.pma-accueil .pm-comp-strip.pma-prochaine {
    margin: 12px 16px 0;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--disc) 30%, var(--ink2)) 0%, var(--ink2) 70%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--disc) 40%, transparent);
}
:root body.pma-accueil .pm-comp-strip.pma-prochaine .pm-date-block {
    background: var(--disc);
    border: 0;
    border-radius: 13px;
}
:root body.pma-accueil .pm-comp-strip.pma-prochaine .pm-date-day,
:root body.pma-accueil .pm-comp-strip.pma-prochaine .pm-date-month { color: #fff; }

/* ── Cartes du calendrier : coins arrondis, fond teinté ── */
:root body.pma-accueil .pm-carte-comp {
    border-radius: 16px;
    border: 0;
    border-top: 0;
    background: linear-gradient(160deg, color-mix(in srgb, var(--disc, var(--blue)) 26%, var(--ink2)) 0%, var(--ink2) 65%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--disc, var(--blue)) 30%, transparent);
}
:root body.pma-accueil .pm-carte-comp-direct { border-radius: 999px; background: var(--live); }

/* Thème clair : textes lisibles sur les cartes teintées */
:root[data-theme="light"] .pma-ligne-disc { color: var(--disc); }

/* L'onglet « En direct » garde sa casse (le point rouge passe avant la lettre) */
:root body.pma-accueil .pm-tab[data-tab="live"] { text-transform: none; }

/* ── Grande une : carte arrondie, moins haute ── */
:root body.pma-accueil .pm-hero {
    margin: 14px 16px 0;
    border-radius: 22px;
}
:root body.pma-accueil .pm-hero-img { height: 250px; }
:root body.pma-accueil .pm-hero-titre { font-size: 26px; }

/* ── Cartes d'articles du rail : arrondies ── */
:root body.pma-accueil .pm-carte-article-img,
:root body.pma-accueil .pm-carte-article img { border-radius: 16px; }
