@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Variables pour la palette de couleurs et les espacements */
:root {
    --primary-color: #107DD5;       /* 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 */
    --dark-color: #444444;    /* Fond général clair */
    --font-family: 'Inter', Arial, sans-serif;
    --heading-font: 'Roboto', sans-serif;  /* Nouvelle variable pour les titres */
    --heading-font: 'Inter', Arial, 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;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color);
}

/* 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(--dark-color);
    border-bottom: 1px solid #ddd;
    padding: var(--base-spacing) 0;
}

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: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 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;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}

/* Articles */
.articles {
    flex: 5;
}

.articles .keypoints {
    border: 2px solid var(--dark-color);
    padding: 30px;
    background-color: var(--dark-color);
    border-radius: 10px;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
}

.articles .keypoints h2 {
    font-size: 22px;
    color: white;
}

.articles .keypoints li {
    color: white;
    margin-bottom: 0.7rem;
}

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


.articles h2 {
    padding: 0;
    font-size: 1.5rem;
    margin-top: 0.7rem;
    margin-bottom: 1rem;
    margin-left: 50px;
    color: black;
    line-height: 1;
}

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

.articles article img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.articles article header {
    background-color: white;
}

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

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

.articles article p, ul {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    width: 90%;
    margin-left: 50px;
}

.articles article li {
    list-style: none;
    position: relative;
    padding-left: 1.5em;
    color: var(--secondary-color);
}


.articles article li::before {
    content: '›'; /* ou '>' mais avec un symbole plus élégant */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Neutraliser les puces dans les tags */
.article-tags li::before {
    content: none !important;
    display: none !important;
}

.articles .intro {
    font-weight: bold;
    margin: 30px;
}

.articles .intro p {
    font-size: 1.3rem;
}


.article-cover img {
    width: 100%;
    border-radius: 22px;
}

/* Sidebar / Aside */
aside {
    flex: 1;
}

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) {
    .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;
    }
}

.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 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    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: 40px;
    margin: 40px;
}

/* 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;
}

.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: 8px;
    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: 700;
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.3;
    color: #222!important;
    letter-spacing: -1px;
}

.post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 16px;
}

/* 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;
}

.social-share {
    padding: 30px;
    border: 1px solid black;
    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;
    border: 1px solid red;
}

.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;
}


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