/* Variables pour la palette de couleurs et les espacements */
:root {
    --primary-color: #C6A865;       /* Couleur d'accent (rouge rugby) */
    --secondary-color: #333333;     /* Couleur principale du texte */
    --light-color: #ffffff;         /* Fond blanc */
    --background-color: #f9f9f9;    /* Fond général clair */
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Roboto', sans-serif;  /* Nouvelle variable pour les titres */
    --base-spacing: 1rem;

}


/* Réinitialisation des marges et paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles de base du document */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    padding: 10px;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--secondary-color);
    background-color: var(--background-color);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Conteneur central pour la mise en page */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--base-spacing);
}

/* Header */
header {
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    padding: var(--base-spacing) 0;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a img {
    max-height: 100px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--light-color);
    font-size: 1.2rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

header nav ul {
    gap: 3rem !important; /* Réduire encore l'espacement */
}

header nav li {
    background-color: rgba(100, 100, 100, 0.1);
    padding: 2px 22px 2px 22px;
    border-radius: 22px;
}

/* Section Hero */
.hero {
    text-align: center;
    padding: 4rem var(--base-spacing);
    background: url('hero-background.jpg') center/cover no-repeat;
    color: var(--light-color);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
}

/* Main layout en deux colonnes (articles et sidebar) */
main {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* Ciblage général des titres h1 dans la page */
h1 {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* Pour s'assurer que tous les titres utilisent la police Work Sans */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

.page {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 50px;
}

.page h2 {
    margin-top: 20px;
}

/* Articles */
.articles {
    flex: 1;
    max-width: 100%; /* Empêche le débordement */
    min-width: 500px;
    width: 100%;
}

/* Style pour le titre principal d'un article individuel */
.article-content h1,
main h1,
.article h1 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.articles h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.articles article {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.articles article header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.articles article header {
    background-color: var(--light-color);
    border: 0;
}

.articles article header time {
    font-size: 0.9rem;
    color: #777;
}

.articles article p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    font-size: 1rem;
}

.articles article h2 {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.article-cover img {
    width: 70%;
    border-radius: 22px;
    display: block;
    margin: 0 auto;
}

/* Sidebar / Aside */
aside {
    flex: 1; /* Permet à la sidebar de se réduire proportionnellement */
    min-width: 200px; /* Largeur minimale pour éviter qu'elle devienne trop petite */
    max-width: 400px; /* Largeur maximale */
}

aside section {
    background-color: var(--light-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

aside h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 0.5rem;
}

aside a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

aside a:hover {
    color: var(--primary-color);
}

/* Formulaire de Newsletter */
aside form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

aside input[type="email"] {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

aside button {
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

aside button:hover {
    background-color: #C6A865;
}

/* Footer */
footer {
    background-color: var(--light-color);
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    text-align: center;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

footer a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

footer p {
    font-size: 0.9rem;
    color: #777;
}

/* Styles pour le tableau de classement sportif */
.standings-table {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

/* En-tête du tableau */
.standings-table thead {
    background-color: var(--primary-color); /* Couleur bleu foncé - à adapter selon vos couleurs */
    color: white;
}

.standings-table thead th {
    padding: 12px 15px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 3px solid #000; /* Bordure bleue en dessous de l'en-tête */
}

/* Lignes et cellules du corps du tableau */
.standings-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.standings-table tbody tr:hover {
    background-color: #edf2f7;
}

.standings-table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

/* Style pour les 3 premières positions (par exemple pour qualification) */
.standings-table tbody tr.qualification {
    background-color: rgba(72, 187, 120, 0.1); /* Légère teinte verte */
}

/* Style pour les positions de relégation */
.standings-table tbody tr.relegation {
    background-color: rgba(245, 101, 101, 0.1); /* Légère teinte rouge */
}

.standings-table td {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
}

/* Style spécifique pour la colonne d'équipe (alignée à gauche) */
.standings-table td.team-name {
    text-align: left;
    font-weight: 500;
}

/* Style pour la colonne de position */
.standings-table td.position {
    font-weight: bold;
    width: 40px;
}

/* Style pour les points (mis en évidence) */
.standings-table td.points {
    font-weight: bold;
    font-size: 15px;
    color: #1a365d;
}

/* Style pour la différence de points/buts */
.standings-table td.diff-positive {
    color: #38a169; /* Vert pour différence positive */
}

.standings-table td.diff-negative {
    color: #e53e3e; /* Rouge pour différence négative */
}

/* Style pour les appareils mobiles */
@media (max-width: 768px) {
    /* Reset global */
    * {
        box-sizing: border-box;
        max-width: 100%;
    }

    html {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    body {
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
    }

    /* Container principal */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    /* Header responsive */
    header {
        max-width: 100% !important;
        margin: 10px !important;
        padding: 10px 0 !important;
        box-sizing: border-box;
    }

    header .container {
        width: 100% !important;
        padding: 5px 10px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* Navigation mobile */
    nav ul {
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    nav li {
        padding: 5px 10px !important;
        margin: 2px !important;
    }

    nav a {
        font-size: 0.9rem !important;
        white-space: nowrap;
    }

    /* Main layout mobile */
    main {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }

    /* Section articles */
    .articles {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        flex: none !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }

    .articles h2 {
        font-size: 1.5rem !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
    }

    /* Post list */
    .post-list {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Article links et items */
    .article-link {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-decoration: none !important;
        margin-bottom: 15px !important;
        box-sizing: border-box;
    }

    .post-item {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    /* Images des articles */
    .post-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        overflow: hidden !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .post-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: 100% !important;
    }

    /* Contenu des articles */
    .post-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    .post-meta {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .post-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin: 8px 0 !important;
        color: #333 !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    .post-excerpt {
        font-size: 0.9rem !important;
        margin: 8px 0 0 0 !important;
        color: #666 !important;
    }

    .post-date {
        font-size: 0.85rem !important;
        color: #888 !important;
    }

    /* Widget mercato mobile */
    .mobile-mercato-widget {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        display: block !important;
    }

    .mercato-widget {
        width: 100% !important;
        max-width: 100% !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .widget-header {
        width: 100% !important;
        padding: 15px !important;
        background: #f8f9fa !important;
        border-bottom: 1px solid #dee2e6 !important;
        box-sizing: border-box;
    }

    .widget-header h3 {
        font-size: 1.1rem !important;
        margin: 0 !important;
        color: #333 !important;
        overflow-wrap: break-word !important;
    }

    .widget-content {
        width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    .widget-transfer-item {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #eee !important;
        box-sizing: border-box;
        overflow-wrap: break-word !important;
    }

    .widget-transfer-info {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .widget-player-name {
        font-size: 0.95rem !important;
        font-weight: bold !important;
        margin-bottom: 4px !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    .widget-transfer-details {
        font-size: 0.8rem !important;
        color: #666 !important;
    }

    .widget-team-flow {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .widget-transfer-status {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .transfer-arrow {
        font-size: 0.8rem !important;
        color: #666 !important;
        flex-shrink: 0 !important;
    }

    .team-mini {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .team-logo-mini {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    .team-name-mini {
        font-size: 0.8rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        min-width: 0 !important;
    }

    .widget-link {
        display: block !important;
        width: 100% !important;
        padding: 10px !important;
        text-align: center !important;
        background: #f8f9fa !important;
        color: #007bff !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        border-top: 1px solid #dee2e6 !important;
        box-sizing: border-box;
    }

    /* Masquer la sidebar sur mobile */
    aside {
        display: none !important;
    }

    /* Footer responsive */
    footer {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important;
        margin-top: 20px !important;
        box-sizing: border-box;
    }

    footer nav ul {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    /* Fix pour les éléments qui dépassent */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Empêcher le débordement des textes longs */
    p, span, div, h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    .standings-table {
        font-size: 12px;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px;
    }

    /* Cacher certaines colonnes moins importantes sur mobile */
    .standings-table .hide-mobile {
        display: none;
    }
}

/* Styles spécifiques pour très petits écrans */
@media (max-width: 480px) {
    html {
        padding: 0 !important;
    }

    .container, .articles, .mobile-mercato-widget {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .post-content {
        padding: 12px !important;
    }

    .post-title {
        font-size: 1rem !important;
    }

    .widget-header h3 {
        font-size: 1rem !important;
    }

}

.standings-table .selected-team {
    background-color: #f0f0f0;
    font-weight: bold;
}

.standings-table .separator td {
    text-align: center;
    padding: 5px;
    border: none;
    color: #999;
}

.standings-table .team-info {
    display: flex;
    align-items: center;
    text-align: left;
}
.standings-table .team-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}
.standings-table .team-name-text {
    text-align: left;
}
.highlighted-team {
    background-color: rgba(0, 0, 0, 0.08)!important;
    font-weight: bold;
}
.separator td {
    text-align: center;
    padding: 5px 0;
}



/* Petits indicateurs de forme (optionnel) */
.form-indicator {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    margin: 0 2px;
    font-size: 11px;
    color: white;
}

.form-win {
    background-color: #38a169;
}

.form-draw {
    background-color: #718096;
}

.form-loss {
    background-color: #C6A865;
}

/* Styles pour la section des tags */
.article-tags {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.article-tags h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-tags li {
    margin: 0;
    padding: 0;
}

.article-tags a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: #f2f2f2;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Variante avec des badges */
.article-tags a {
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-weight: 600;
    background-color: #f2f2f2;
    border: 2px solid #e0e0e0;
}

/* Responsive pour les petits écrans */
@media (max-width: 576px) {
    .article-tags ul {
        gap: 0.35rem;
    }

    .article-tags a {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }
}


/* Style pour les articles avec image dans la liste d'actualités */
.news-item {
    display: flex;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image img:hover {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-content header {
    margin-bottom: 0.5rem;
}

.news-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.news-content time {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    flex: 1;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.read-more:hover {
    border-color: #0056b3;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        flex: 0 0 200px;
    }
}

/* Style pour les liens d'article - neutralisation des styles de lien */
.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-link:hover,
.article-link:visited,
.article-link:active,
.article-link:focus {
    text-decoration: none;
    color: inherit;
}

/* Conserver uniquement le bouton "Lire la suite" comme élément visuel de lien */
.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

.article-link:hover .read-more {
    text-decoration: underline;
}

/* Structure de l'article */
.news-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour le conteneur de l'image */
.news-image {
    border-radius: 8px;
    overflow: visible; /* Important pour que l'ombre soit visible en dehors du conteneur */
    margin-right: 1rem;
    position: relative;
    padding: 0;
}

/* Style pour les images avec bordures arrondies */
.news-image img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Ombre directement sur l'image */
}

/* Effet de survol sur l'image */
.article-link:hover .news-image img {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Ombre renforcée au survol */
}

/* Ajustement de l'ombre au survol */
.article-link:hover .news-image::after {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chaque ligne d'article */
.post-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 24px;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-item {
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Visuel */
.post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
    max-width: 300px;
}

.post-image img:hover {
    transform: scale(1.05);
}

/* Effet de survol sur l'image */
.article-link:hover .post-image img {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Ombre renforcée au survol */
}

/* Ajustement de l'ombre au survol */
.article-link:hover .post-image::after {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Contenu texte */
.post-meta {
    font-size: 12px!important;
    font-weight: 400;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px; /* Réduit de 8px à 4px */
    display: flex;
    align-items: center;
    gap: 6px;  
    font-family: 'Roboto', sans-serif;
}
.post-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.meta-separator {
    color: #ccc;
}

.post-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin: 0 0 6px; /* Réduit de 12px à 6px */
    line-height: 1.3;
    color: #222!important;
    letter-spacing: -1px;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 8px; /* Réduit de 16px à 8px */
}

/* Statistiques (icônes + chiffres) */
.post-stats {
    display: flex;
    gap: 24px;
}
.stat {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #999;
}
.stat svg {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

/* Séparateur entre chaque article (optionnel) */
.post-item + .post-item {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .post-item {
        grid-template-columns: 1fr;
    }
    .post-item + .post-item {
        border: none;
        padding-top: 0;
    }
}


/* Styles pour la page des transferts */

.transfers-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Filtres */
.transfers-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--secondary-color);
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white;
}

/* Container des transferts */
.transfers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Carte de transfert */
.transfer-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transfer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Header de la carte */
.transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.player-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.player-type {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-joueur {
    background: #e3f2fd;
    color: #1976d2;
}

.type-coach {
    background: #fff3e0;
    color: #f57c00;
}

/* Badges de statut */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-transfert {
    background: #e3f2fd;
    color: #1976d2;
}

.status-retraite {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-reprise {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-prolongation {
    background: #fff8e1;
    color: #f57c00;
}

/* Corps de la carte - Mouvement */
.transfer-movement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.transfer-movement.single-team {
    justify-content: center;
    gap: 1rem;
}

/* Informations équipe */
.team-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 150px;
}

.team-info.empty {
    color: #999;
    font-style: italic;
    justify-content: center;
}

.team-logo {
    width: 60px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 4px;
}


.team-name {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Flèche de transfert */
.transfer-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

/* Badges spéciaux */
.retirement-badge,
.comeback-badge,
.extension-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.retirement-badge {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.comeback-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.extension-badge {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #333;
}

/* Footer de la carte */
.transfer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.transfer-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.transfer-date i {
    color: var(--primary-color);
}

/* Loader */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message d'erreur */
.error-message {
    text-align: center;
    padding: 3rem;
    color: #dc3545;
    font-size: 1.1rem;
}

/* Aucun résultat */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.social-share {
    padding: 5px;
    margin: 20px;
    border-radius: 22px;
    text-align: center;
}

.social-share ul {
    list-style: none;
    list-style-type: none !important;
    list-style-image: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding: 0;
    margin: 0 0 1rem 0;
    display: inline-flex;
    justify-content: center;
    gap: 1rem;
}

.social-share ul li {
    list-style: none;
}

.social-share ul li::marker {
    content: none;
}

/* Remove inherited arrow pseudo-element from social-share list items */
.social-share ul li::before {
    content: none !important;
}

.social-share img {
    width: 36px;
}


/* Social-share icons as CSS masks to use --primary-color */
.social-share ul li a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    transition: background-color 0.3s ease;
}
.social-share ul li a[href*="facebook.com"] {
    mask-image: url('/assets/icons/facebook-brand.svg');
}
.social-share ul li a[href*="twitter.com"] {
    mask-image: url('/assets/icons/x-brand.svg');
}
.social-share ul li a[href*="linkedin.com"] {
    mask-image: url('/assets/icons/linkedin-brand.svg');
}
.social-share ul li a:hover {
    background-color: var(--primary-color);
}
/* Hide the original <img> */
.social-share ul li a img {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .transfers-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .transfers-container {
        grid-template-columns: 1fr;
    }

    .transfer-movement {
        flex-direction: column;
        gap: 1rem;
    }

    .transfer-arrow {
        transform: rotate(90deg);
    }

    .team-info {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .transfer-card {
        padding: 1rem;
    }

    .transfer-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* RESPONSIVE - Masquer la sidebar sur smartphone */
@media (max-width: 768px) {
    /* Masquer complètement la sidebar sur mobile */
    aside {
        display: none;
    }

    /* Ajuster le layout principal pour qu'il occupe toute la largeur */
    main {
        flex-direction: column;
        gap: 1rem;
    }

    /* Réajuster la section articles pour mobile */
    .articles {
        flex: 1;
        padding-left: 0;
        width: 100%;
        max-width: 100vw; /* Ne jamais dépasser la largeur de l'écran */
        box-sizing: border-box;
    }

    /* Ajuster le conteneur principal si nécessaire */
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0.5rem;
    }

    .post-item {
        /* Conserver la disposition en grille horizontale */
        grid-template-columns: 120px 1fr; /* Image plus petite (120px au lieu de 1fr) */
        grid-gap: 12px; /* Réduire l'espacement */
        align-items: flex-start;
    }

    /* Image plus petite sur mobile */
    .post-image img {
        max-width: 120px;
        aspect-ratio: 1; /* Format carré pour optimiser l'espace */
    }

    /* Titre plus petit sur mobile */
    .post-item .post-title,
    .articles .post-title {
        font-size: 1.4rem !important; /* Forcer la réduction */
        line-height: 1.2 !important;
        margin: 0 0 4px !important;
    }

    /* Ajuster les métadonnées */
    .post-meta {
        font-size: 11px!important;
        margin-bottom: 3px;
    }

    .post-category {
        font-size: 12px;
    }

    /* Ajuster l'extrait */
    .post-excerpt {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0 0 6px;
    }

    /* Supprimer la bordure et le padding-top pour une présentation plus compacte */
    .post-item + .post-item {
        border: none;
        padding-top: 0;
    }

    /* Header responsive */
    header .container {
        flex-direction: column !important; /* Disposition verticale */
        align-items: center !important; /* Centrer tous les éléments */
        justify-content: center !important;
        text-align: center;
        gap: 1rem; /* Espacement entre logo et navigation */
    }

    /* Logo centré */
    header a {
        order: 1; /* Logo en premier */
        margin-bottom: 0.5rem;
    }

    header a img {
        max-height: 80px !important; /* Logo plus petit sur mobile */
    }

    /* Navigation en dessous */
    header nav {
        order: 2; /* Navigation en second */
        width: 100%;
        text-align: center;
    }

    header nav ul {
        justify-content: center !important; /* Centrer les liens de navigation */
        flex-wrap: wrap; /* Permettre le retour à la ligne si nécessaire */
        gap: 1.8rem !important; /* Réduire l'espacement entre les liens */
    }

    header nav a {
        padding: 1.8rem 1.8rem !important; /* Augmentation du padding */
        font-size: 1rem;
    }

}

/* Pour les très petits écrans (smartphones en portrait) */
@media (max-width: 480px) {
    .post-item {
        grid-template-columns: 100px 1fr; /* Image encore plus petite */
        grid-gap: 10px;
    }

    .post-image img {
        max-width: 100px;
    }

    .post-title {
        font-size: 1rem; /* Titre encore plus petit */
    }

    .post-meta {
        font-size: 10px!important;
    }

    .post-category {
        font-size: 11px;
    }

    .post-excerpt {
        font-size: 0.85rem;
    }

    /* Header encore plus compact */
    header a img {
    max-height: 50px !important; /* Logo encore plus petit */
}

    header nav ul {
        gap: 2rem !important; /* Réduire encore l'espacement */
    }

    header nav a {
        font-size: 1rem;
    }

}

@media (max-width: 1124px) {
    .post-list .post-title,
    .post-item .post-title {
        font-size: 1.4rem;
    }
}


@media (max-width: 1024px) {
    .post-list .post-title,
    .post-item .post-title {
        font-size: 1.3rem;
    }
}



.mercato-widget {
    background: white;
    border-radius: 8px;
    border: 1px solid #1976d2;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(25,118,210,0.8);
    margin-bottom: 20px;
    width: 100%;
    color: #1976d2;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
    flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
    gap: 10px;
    color: #1976d2;
}

.widget-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header h3 i {
    color: #007bff;
}

.widget-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.widget-link:hover {
    text-decoration: underline;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-transfer-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
    min-width: 0;
}



/* Widget transferts : flèche en bleu */
.widget-transfer-item .transfer-arrow {
    background-color: rgba(25,118,210,0.2);
    color: #fff;
    width: 26px;
    height: 26px;
    font-size: 12px;
    flex-shrink: 0;
}

.widget-transfer-info {
    grid-area: info;
    text-align: center;
}

.widget-transfer-date {
    grid-area: date;
    text-align: right;
}


.widget-player-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.widget-transfer-details {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.widget-player-type {
    display: flex;
    align-items: center;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.widget-transfer-status {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.widget-transfer-teams {
    grid-area: teams;
    margin-top: 6px;
}


.widget-team-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
}

.team-single {
    display: flex;
    justify-content: center;
}

.team-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-shrink: 0;
}

.team-logo-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.team-name-mini {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    white-space: nowrap;
    max-width: 60px;
}

.transfer-date {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

.no-transfers {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .transfer-teams {
        margin: 0;
        width: 100%;
    }

    .team-flow {
        justify-content: flex-start;
    }

    .team-mini {
        max-width: none;
    }

    .team-name-mini {
        max-width: 80px;
    }
}

/* Widget mercato dans la liste d'articles - visible seulement sur mobile */
.mobile-mercato-widget {
    display: none;
    margin: 2rem 0;
    width: 100%;
}

/* Afficher le widget mercato mobile seulement sur les écrans de moins de 768px */
@media (max-width: 768px) {
    .mobile-mercato-widget {
        display: block;
    }

    /* Masquer le widget mercato de la sidebar sur mobile */
    aside .mercato-widget {
        display: none;
    }
}

/* Sur desktop, garder le widget dans la sidebar */
@media (min-width: 769px) {
    .mobile-mercato-widget {
        display: none !important;
    }
}
