/**
 * Accueil de l'appli mobile, façon appli sportive : rails horizontaux de cartes plates,
 * surtitres de couleur, grande une. Couleurs prises dans le thème (templates.css).
 */

/* Rail horizontal commun (compétitions, articles) */
.pm-rail {
    display: flex;
    gap: 10px;
    padding: 10px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pm-rail::-webkit-scrollbar { display: none; }

/* Surtitre : catégorie en couleur + date, sans pastille */
.pm-surtitre {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.2;
}
.pm-surtitre-cat {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-surtitre-date { color: color-mix(in srgb, var(--white) 55%, transparent); white-space: nowrap; }

/* ── Cartes compétitions (rail du calendrier) ── */
.pm-carte-comp {
    flex: 0 0 168px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 116px;
    padding: 12px 12px 12px;
    background: var(--ink2);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--disc, var(--blue));
    border-radius: 6px;
    text-decoration: none;
}
.pm-carte-comp:active { background: var(--ink3); }
.pm-carte-comp-haut {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}
.pm-carte-comp-date {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 19px;
    letter-spacing: .03em;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}
.pm-carte-comp-direct {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: #b91c1c;
    padding: 3px 6px;
    border-radius: 3px;
}
.pm-carte-comp-disc {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--disc, var(--muted));
    filter: brightness(1.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-carte-comp-nom {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-carte-comp-lieu {
    margin-top: auto;
    font-size: 11px;
    color: color-mix(in srgb, var(--white) 55%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Grande une ── */
.pm-hero-img { height: 300px; }
.pm-hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 75%);
}
.pm-hero-content { padding: 0 16px 18px; }
.pm-hero-content .pm-surtitre { margin-bottom: 8px; }
.pm-hero-content .pm-surtitre-date { color: rgba(255, 255, 255, .7); }
.pm-hero-titre {
    margin: 0;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: .02em;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Cartes articles (rail « À la une ») ── */
.pm-carte-article {
    flex: 0 0 236px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-decoration: none;
}
.pm-carte-article-img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink3);
}
.pm-carte-article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-carte-article-direct {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    background: #b91c1c;
    padding: 3px 6px;
    border-radius: 3px;
}
.pm-carte-article-titre {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Encart du jeu : plat, filet de couleur ── */
.pm-encart-jeu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 16px 6px;
    padding: 16px;
    background: var(--ink2);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--blue);
    border-radius: 6px;
    text-decoration: none;
}
.pm-encart-jeu-sur {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}
.pm-encart-jeu-titre {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 28px;
    line-height: 1;
    letter-spacing: .03em;
    color: var(--white);
}
.pm-encart-jeu-texte { font-size: 13px; line-height: 1.45; color: color-mix(in srgb, var(--white) 70%, transparent); }
.pm-encart-jeu-bouton {
    align-self: flex-start;
    margin-top: 6px;
    padding: 9px 16px;
    border-radius: 6px;
    background: var(--blue);
    color: var(--ink, #0d0f14);
    font-size: 13px;
    font-weight: 800;
}
