/*
Theme Name: SportPalmares Premium Media
Theme URI: https://sportpalmares.eu/
Author: Sport Palmarès
Description: Theme editorial premium pour un media sport, scores, horaires TV et palmares.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sportpalmares-premium
*/

:root {
    --spm-blue: #009fe3;
    --spm-blue-dark: #063c67;
    --spm-blue-soft: #e9f7fd;
    --spm-red: #ec3044;
    --spm-gold: #f0b429;
    --spm-ink: #111827;
    --spm-text: #243244;
    --spm-muted: #6b7280;
    --spm-line: #d9e0e7;
    --spm-soft: #f4f7fa;
    --spm-white: #ffffff;
    --spm-black: #07111d;
    --spm-max: 1188px;
    --spm-title: "Arial Narrow", "Roboto Condensed", Arial, Helvetica, sans-serif;
    --spm-body: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--spm-text);
    background: #fff;
    font-family: var(--spm-body);
    letter-spacing: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--spm-blue);
}

button,
input {
    font: inherit;
}

.spm-wrap {
    width: min(var(--spm-max), calc(100% - 32px));
    margin: 0 auto;
}

.spm-topline {
    color: rgba(255, 255, 255, .9);
    background: var(--spm-black);
    font-size: 13px;
}

.spm-topline-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.spm-topline strong {
    color: #fff;
    text-transform: uppercase;
}

.spm-topline-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 700;
}

.spm-masthead {
    border-bottom: 1px solid var(--spm-line);
    background:
        linear-gradient(90deg, rgba(0, 159, 227, .08), transparent 34%),
        #fff;
}

.spm-masthead-inner {
    min-height: 106px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.spm-brand {
    text-align: center;
}

.spm-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--spm-blue-dark);
    font-family: var(--spm-title);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    line-height: .88;
    letter-spacing: 0;
    text-transform: uppercase;
}

.spm-logo span {
    color: var(--spm-blue);
}

.spm-tagline {
    display: block;
    margin-top: 9px;
    color: var(--spm-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.spm-edition {
    display: inline-grid;
    gap: 3px;
    justify-self: start;
    padding: 10px 12px;
    border-left: 4px solid var(--spm-red);
    background: var(--spm-soft);
}

.spm-edition span,
.spm-kicker,
.spm-card-category,
.spm-section-link,
.spm-rank-number,
.spm-topic-kicker {
    color: var(--spm-blue);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.spm-edition strong {
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 18px;
    line-height: 1.05;
}

.spm-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 9px;
}

.spm-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid var(--spm-blue);
    background: var(--spm-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.spm-button:hover {
    color: #fff;
    background: var(--spm-blue-dark);
    border-color: var(--spm-blue-dark);
}

.spm-button-alt {
    background: #fff;
    color: var(--spm-blue-dark);
}

.spm-button-alt:hover {
    color: #fff;
}

.spm-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 3px solid var(--spm-blue);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.spm-nav-inner {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.spm-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.spm-nav-link {
    display: flex;
    min-height: 50px;
    align-items: center;
    padding: 0 13px;
    color: #142033;
    font-family: var(--spm-title);
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.spm-search {
    flex: 0 0 235px;
    display: flex;
    align-items: center;
}

.spm-search-field {
    width: 100%;
    min-height: 34px;
    border: 0;
    outline: 0;
    background: var(--spm-soft);
    padding: 0 10px;
    color: var(--spm-ink);
}

.spm-search-submit {
    min-height: 34px;
    border: 0;
    background: var(--spm-blue);
    color: #fff;
    padding: 0 10px;
    font-weight: 900;
    cursor: pointer;
}

.spm-ticker {
    border-bottom: 1px solid var(--spm-line);
    background: #f9fbfd;
}

.spm-ticker-inner {
    min-height: 44px;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
}

.spm-ticker-label {
    align-self: stretch;
    display: grid;
    place-items: center;
    background: var(--spm-red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.spm-ticker-window {
    overflow: hidden;
    padding-left: 18px;
}

.spm-ticker-track {
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: max-content;
    min-height: 44px;
    animation: spmTicker 40s linear infinite;
}

.spm-ticker-link {
    color: #263647;
    font-size: 14px;
    font-weight: 800;
}

@keyframes spmTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.spm-main {
    padding: 26px 0 56px;
}

.spm-home-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.spm-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .72fr);
    gap: 22px;
    align-items: start;
}

.spm-side-stack {
    display: grid;
    gap: 18px;
}

.spm-card {
    display: block;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--spm-line);
}

.spm-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--spm-blue), var(--spm-blue-dark));
}

.spm-card-image img,
.spm-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spm-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 22px;
    color: #fff;
    font-family: var(--spm-title);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.spm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--spm-muted);
    font-size: 12px;
    font-weight: 800;
}

.spm-card-title {
    margin: 8px 0 0;
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.08;
}

.spm-card-excerpt {
    margin: 9px 0 0;
    color: var(--spm-muted);
    font-size: 15px;
    line-height: 1.52;
}

.spm-hero {
    border-bottom: 0;
}

.spm-hero .spm-card-title {
    font-size: clamp(36px, 5vw, 58px);
    line-height: .98;
}

.spm-hero .spm-card-excerpt {
    color: #334155;
    font-size: 17px;
}

.spm-rail {
    display: grid;
    gap: 18px;
}

.spm-widget {
    border: 1px solid var(--spm-line);
    border-top: 5px solid var(--spm-blue);
    background: #fff;
    padding: 17px;
}

.spm-widget-dark {
    border-color: var(--spm-black);
    border-top-color: var(--spm-red);
    background: var(--spm-black);
    color: #fff;
}

.spm-widget-title {
    margin: 0 0 14px;
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.spm-widget-dark .spm-widget-title {
    color: #fff;
}

.spm-ranked-list,
.spm-mini-list,
.spm-footer-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.spm-ranked-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(217, 224, 231, .85);
}

.spm-ranked-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.spm-rank-number {
    color: var(--spm-red);
    font-family: var(--spm-title);
    font-size: 25px;
    line-height: 1;
}

.spm-ranked-title {
    display: block;
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.12;
}

.spm-widget-dark .spm-ranked-title,
.spm-widget-dark .spm-mini-title {
    color: #fff;
}

.spm-mini-date {
    display: block;
    margin-top: 4px;
    color: var(--spm-muted);
    font-size: 12px;
    font-weight: 700;
}

.spm-topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spm-widget-dark .spm-mini-date {
    color: rgba(255, 255, 255, .65);
}

.spm-score-card {
    display: grid;
    gap: 12px;
}

.spm-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.spm-score-row:first-child {
    border-top: 0;
}

.spm-score-row span {
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.spm-score-row strong {
    color: #fff;
    font-family: var(--spm-title);
    font-size: 20px;
    line-height: 1.05;
}

.spm-hotline {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    margin-top: 28px;
    border: 1px solid var(--spm-line);
    overflow: hidden;
}

.spm-hotline-label {
    align-self: stretch;
    display: grid;
    place-items: center;
    background: var(--spm-red);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.spm-hotline-list {
    display: flex;
    gap: 26px;
    overflow: hidden;
    padding: 13px 18px;
    white-space: nowrap;
}

.spm-hotline-list a {
    font-size: 14px;
    font-weight: 900;
}

.spm-hotline-list a:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--spm-blue);
    vertical-align: 1px;
}

.spm-section {
    margin-top: 38px;
}

.spm-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--spm-line);
}

.spm-section-title {
    display: inline-flex;
    margin: 0 0 -2px;
    padding-bottom: 10px;
    border-bottom: 5px solid var(--spm-blue);
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.spm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.spm-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
    gap: 28px;
    align-items: start;
}

.spm-feature-main .spm-card {
    border-bottom: 0;
    padding-bottom: 0;
}

.spm-feature-main .spm-card-title {
    font-size: clamp(28px, 3.4vw, 40px);
}

.spm-river-list {
    display: grid;
    border-top: 1px solid var(--spm-line);
}

.spm-river-item {
    display: grid;
    gap: 7px;
    padding: 16px 0;
    border-bottom: 1px solid var(--spm-line);
}

.spm-river-item strong {
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.spm-topic-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 40px;
    border: 1px solid var(--spm-line);
    background: var(--spm-line);
}

.spm-topic-card {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-height: 150px;
    padding: 18px;
    background: #fff;
}

.spm-topic-card:hover {
    background: var(--spm-blue-soft);
}

.spm-topic-card strong {
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
}

.spm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.spm-archive-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--spm-line);
}

.spm-archive-title,
.spm-article-title,
.spm-page-title {
    margin: 8px 0 10px;
    color: var(--spm-ink);
    font-family: var(--spm-title);
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 900;
    line-height: .98;
}

.spm-feed {
    display: grid;
    gap: 22px;
}

.spm-feed-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--spm-line);
}

.spm-article {
    max-width: 790px;
}

.spm-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--spm-muted);
    font-size: 14px;
    font-weight: 800;
}

.spm-article-image {
    margin: 22px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--spm-blue), var(--spm-blue-dark));
}

.spm-article-intro {
    margin: 22px 0 18px;
    color: #172033;
    font-size: 20px;
    line-height: 1.65;
}

.spm-article-content {
    color: #1f2937;
    font-size: 18px;
    line-height: 1.72;
}

.spm-article-content p {
    margin: 0 0 22px;
}

.spm-article-content h2,
.spm-article-content h3 {
    margin: 32px 0 14px;
    color: var(--spm-ink);
    font-family: var(--spm-title);
    line-height: 1.08;
}

.spm-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.spm-share a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--spm-line);
    color: var(--spm-blue-dark);
    font-size: 13px;
    font-weight: 900;
}

.spm-empty {
    padding: 28px;
    border: 1px dashed var(--spm-line);
    background: var(--spm-soft);
    color: var(--spm-muted);
}

.spm-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    font-weight: 900;
}

.spm-footer {
    margin-top: 40px;
    background: #07111d;
    color: #fff;
}

.spm-footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 38px 0;
}

.spm-footer-title {
    margin: 0 0 12px;
    font-family: var(--spm-title);
    font-size: 21px;
    font-weight: 900;
    text-transform: uppercase;
}

.spm-footer-text,
.spm-footer a {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.55;
}

.spm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 14px 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

@media (max-width: 1040px) {
    .spm-masthead-inner,
    .spm-home-top,
    .spm-lead-grid,
    .spm-layout,
    .spm-feature-row {
        grid-template-columns: 1fr;
    }

    .spm-edition,
    .spm-actions {
        justify-self: center;
    }

    .spm-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spm-topic-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spm-search {
        display: none;
    }

    .spm-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .spm-wrap {
        width: min(100% - 24px, var(--spm-max));
    }

    .spm-topline-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 9px 0;
    }

    .spm-masthead-inner {
        min-height: auto;
        padding: 20px 0;
    }

    .spm-logo {
        font-size: 40px;
    }

    .spm-nav-link {
        padding: 0 10px;
        font-size: 13px;
    }

    .spm-ticker-inner,
    .spm-hotline {
        grid-template-columns: 1fr;
    }

    .spm-ticker-label,
    .spm-hotline-label {
        min-height: 34px;
        place-items: start;
        padding-left: 14px;
    }

    .spm-hotline-list {
        overflow-x: auto;
    }

    .spm-news-grid,
    .spm-feed-card,
    .spm-topic-strip,
    .spm-footer-inner {
        grid-template-columns: 1fr;
    }

    .spm-hero .spm-card-title,
    .spm-article-title,
    .spm-archive-title {
        font-size: 38px;
    }
}
