/* Page d'accueil SurLeFoot — Pack 1 */

:root {
    --slf-navy: #0e2238;
    --slf-green: #1fa64a;
    --slf-green-dark: #16823a;
    --slf-bg: #f5f7f9;
    --slf-card: #ffffff;
    --slf-text: #17202a;
    --slf-muted: #6b7280;
    --slf-border: #e5e9ee;
    --slf-radius: 12px;
    --slf-shadow: 0 10px 28px rgba(14, 34, 56, 0.08);
}

.slf-home {
    background: var(--slf-bg);
    padding: 32px 0 64px;
}

.slf-home__container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

.slf-home__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    margin-top: 32px;
}

.slf-hero {
    position: relative;
    overflow: hidden;

    width: 100%;
    min-height: 620px;

    margin: 0 0 48px;

    border-radius: 20px;

    background: var(--slf-navy);
    box-shadow: 0 24px 60px rgba(11, 31, 53, .18);
}}
.slf-hero__link {
    display: block;
    min-height: inherit;
    color: #fff;
    text-decoration: none;
}

.slf-hero__media,
.slf-hero__image,
.slf-hero__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slf-hero__image {
    object-fit: cover;
    transition: transform 0.45s ease;
}

.slf-hero:hover .slf-hero__image {
    transform: scale(1.035);
}

.slf-hero__placeholder {
    background: linear-gradient(135deg, var(--slf-navy), #24425f);
}

.slf-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 17, 30, 0.9) 0%, rgba(5, 17, 30, 0.5) 55%, rgba(5, 17, 30, 0.12) 100%);
}

.slf-hero__overlay {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    max-width: 760px;
    min-height: 520px;

    padding: 60px;

    background: linear-gradient(
        90deg,
        rgba(5,17,30,.82) 0%,
        rgba(5,17,30,.58) 45%,
        rgba(5,17,30,0) 100%
    );
}
.slf-badge {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--slf-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.slf-hero__title {
    margin: 18px 0;

    color: #fff;

    font-size: clamp(46px, 5vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;

    text-shadow:
        0 3px 18px rgba(0,0,0,.35);
}
.slf-hero__excerpt {
    margin: 0;

    max-width: 640px;

    color: rgba(255,255,255,.92);

    font-size: 20px;
    line-height: 1.75;
    font-weight: 400;

    text-shadow:
        0 2px 10px rgba(0,0,0,.25);
}
.slf-hero__meta {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.slf-section,
.slf-calendar {
    padding: 28px;
    border: 1px solid var(--slf-border);
    border-radius: var(--slf-radius);
    background: var(--slf-card);
    box-shadow: var(--slf-shadow);
}

.slf-section__heading,
.slf-calendar__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--slf-green);
}

.slf-section__heading h2,
.slf-calendar__heading h2 {
    margin: 0;
    color: var(--slf-navy);
    font-size: 25px;
}

.slf-section__heading a {
    color: var(--slf-green-dark);
    font-weight: 700;
    text-decoration: none;
}

.slf-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.slf-card {
    overflow: hidden;
    border: 1px solid rgba(11, 31, 53, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(11, 31, 53, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.slf-card:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 204, 113, 0.28);
    box-shadow: 0 18px 38px rgba(11, 31, 53, 0.16);
}
.slf-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dfe6ec;
}

.slf-card__image,
.slf-card__placeholder {
    width: 100%;
    height: 100%;
}

.slf-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
.slf-card:hover .slf-card__image {
    transform: scale(1.08);
}

.slf-card__placeholder {
    background: linear-gradient(135deg, #dce5ec, #bac9d4);
}

.slf-card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.slf-card__category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    color: var(--slf-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.slf-card__title {
    margin: 10px 0 0;
    color: var(--slf-navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.slf-card__title a {
    color: var(--slf-text);
    text-decoration: none;
}

.slf-card__title a:hover {
    color: var(--slf-green-dark);
}

.slf-card__excerpt {
    margin: 14px 0 0;
    color: #5f6d7a;
    font-size: 15px;
    line-height: 1.7;
}
.slf-card__meta {
    margin-top: 14px;
    color: var(--slf-muted);
    font-size: 12px;
}

.slf-home__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slf-calendar {
    padding: 22px;
}

.slf-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.slf-calendar caption {
    padding: 0 0 12px;
    color: var(--slf-navy);
    font-weight: 800;
}

.slf-calendar th,
.slf-calendar td {
    padding: 8px 4px;
    text-align: center;
}

.slf-calendar td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--slf-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.slf-sidebar-block > * {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .slf-home__layout {
        grid-template-columns: 1fr;
    }

    .slf-home__sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .slf-home {
        padding-top: 16px;
    }

    .slf-home__container {
        width: min(100% - 20px, 1320px);
    }

    .slf-hero,
    .slf-hero__overlay {
        min-height: 420px;
    }

    .slf-hero__overlay {
        padding: 28px 22px;
    }

    .slf-hero__media::after {
        background: linear-gradient(0deg, rgba(5, 17, 30, 0.94) 0%, rgba(5, 17, 30, 0.36) 75%, rgba(5, 17, 30, 0.12) 100%);
    }

    .slf-hero__title {
        font-size: 34px;
    }

    .slf-post-grid,
    .slf-home__sidebar {
        grid-template-columns: 1fr;
    }

    .slf-section {
        padding: 20px;
    }
}


/* =========================================================
   HOME V2 — À NE PAS MANQUER
   ========================================================= */

.slf-news-grid {
    margin-top: 32px;
    padding: 28px;
    border: 1px solid var(--slf-border);
    border-radius: var(--slf-radius);
    background: var(--slf-card);
    box-shadow: var(--slf-shadow);
}

.slf-section-heading {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--slf-green);
}

.slf-section-heading h2 {
    margin: 0;
    color: var(--slf-navy);
    font-size: 25px;
}

.slf-news-grid__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.slf-news-card {
    overflow: hidden;
    border: 1px solid var(--slf-border);
    border-radius: 12px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease;
}

.slf-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(14, 34, 56, .12);
}

.slf-news-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.slf-news-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dfe6ec;
}

.slf-news-card__image,
.slf-news-card__placeholder {
    width: 100%;
    height: 100%;
}

.slf-news-card__image {
    object-fit: cover;
    transition: transform .35s ease;
}

.slf-news-card:hover .slf-news-card__image {
    transform: scale(1.045);
}

.slf-news-card__placeholder {
    background: linear-gradient(135deg, #dce5ec, #bac9d4);
}

.slf-news-card__body {
    padding: 18px;
}

.slf-news-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--slf-green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.slf-news-card__title {
    margin: 0;
    color: var(--slf-text);
    font-size: 20px;
    line-height: 1.3;
}

.slf-news-card__date {
    display: block;
    margin-top: 12px;
    color: var(--slf-muted);
    font-size: 12px;
}

@media (max-width: 720px) {
    .slf-news-grid__items {
        grid-template-columns: 1fr;
    }

    .slf-news-grid {
        padding: 20px;
    }
}

/* =========================================================
   HOME V2 — SIDEBAR PREMIUM
   ========================================================= */

.slf-sidebar-premium {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slf-sidebar-box {
    padding: 24px;
    border: 1px solid var(--slf-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--slf-shadow);
}

.slf-sidebar-box h2 {
    margin: 0 0 18px;
    color: var(--slf-navy);
    font-size: 22px;
    font-weight: 800;
}

.slf-sidebar-search form {
    display: grid;
    gap: 12px;
}

.slf-sidebar-search input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--slf-border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--slf-text);
    font-size: 15px;
}

.slf-sidebar-search input:focus {
    border-color: var(--slf-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, .12);
}

.slf-sidebar-search button {
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--slf-green);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.slf-sidebar-search button:hover {
    transform: translateY(-2px);
    background: var(--slf-green-dark);
}

.slf-sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slf-sidebar-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 31, 53, 0.08);
}

.slf-sidebar-list li:first-child {
    padding-top: 0;
}

.slf-sidebar-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.slf-sidebar-list a {
    display: block;
    color: var(--slf-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease;
}

.slf-sidebar-list a:hover {
    color: var(--slf-green-dark);
}

.slf-sidebar-list time {
    display: block;
    margin-top: 5px;
    color: var(--slf-muted);
    font-size: 12px;
}

/* =========================================================
   HOME V2 — WIDGET ACTUALITÉ
   ========================================================= */

.slf-sidebar-featured .SP_News_Widget,
.slf-sidebar-featured .widget-container,
.slf-sidebar-featured .recent-news-items {
    margin: 0;
    padding: 0;
}

.slf-sidebar-featured .widget-top {
    display: none;
}

.slf-sidebar-featured .recent-news-items ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slf-sidebar-featured .recent-news-items .news_li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 31, 53, 0.08);
}

.slf-sidebar-featured .recent-news-items .news_li:first-child {
    padding-top: 0;
}

.slf-sidebar-featured .recent-news-items .news_li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.slf-sidebar-featured .recent-news-items .news_li a {
    display: block;
    color: var(--slf-navy);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease;
}

.slf-sidebar-featured .recent-news-items .news_li a:hover {
    color: var(--slf-green-dark);
}

.slf-sidebar-featured .recent-news-items .news_date {
    display: block;
    margin-top: 5px;
    color: var(--slf-muted);
    font-size: 12px;
}

/* =========================================================
   HOME V2 — WIDGET ACTUALITÉS PREMIUM
   ========================================================= */

.slf-widget-news,
.slf-widget-news__list {
    display: flex;
    flex-direction: column;
}

.slf-widget-news__featured,
.slf-widget-news__item {
    display: block;
}

.slf-widget-news__featured {
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(11, 31, 53, 0.08);
}

.slf-widget-news__featured a,
.slf-widget-news__item a {
    display: block;
    color: var(--slf-navy);
    text-decoration: none;
}

.slf-widget-news__featured h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.slf-widget-news__item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(11, 31, 53, 0.08);
}

.slf-widget-news__item:last-child {
    border-bottom: 0;
}

.slf-widget-news__item a {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.slf-widget-news time {
    display: block;
    margin-top: 5px;
    color: var(--slf-muted);
    font-size: 12px;
}

.slf-widget-news__image {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 10px;
}
