@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 100;
    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;
}

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

/* Variables pour la palette de couleurs et les espacements */
:root {
    --primary-color: #CBDB2A;       /* Couleur d'accent (jaune acidulé) */
    --secondary-color: #333333;     /* Couleur principale du texte */
    --white-color: #FFFFFF;
    --light-color: #222222;         /* Fond blanc */
    --dark-color: #111111;
    --background-color: #292929;    /* Fond général foncé */
    --text-color: #DDD;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --heading-font: 'Roboto', sans-serif;  /* Nouvelle variable pour les titres */
    --heading-font: 'Inter', Arial, sans-serif;
    --heading-font: 'Zuume', Arial, sans-serif;
    --intertitre-font: 'Inter', Arial, sans-serif;
    --heading-color: #FFFFFF;
    --base-spacing: 1rem;
    --primary-color-weak: color-mix(in srgb, var(--primary-color) 45%, transparent);
    --primary-color-mid: color-mix(in srgb, var(--primary-color) 75%, transparent);
    --quote-size: clamp(2.5rem, 6vw, 6rem);
    --quote-open-shift-x: -10px;
    --quote-shift-y: -4px;
    --quote-open-crop-x: 5%;
}

/* 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);
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
}

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

/* Header */
header {
    padding: var(--base-spacing) 0;
}

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

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

/* Reduce header logo size on smartphones */
@media (max-width: 768px) {
    header a img {
        max-height: 56px; /* was 100px on desktop */
        height: auto;
        width: auto;
    }
}

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

nav a {
    text-decoration: none;
    color: var(--white-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: 600;
    letter-spacing: 0.06em;
}

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

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

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

.articles h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
}

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

.articles article h2 {
    font-family: var(--intertitre-font);
}

.articles article .intro, .articles article .intro p {
    font-size: 1.6rem !important;
    font-style: italic;
    color: white;
}

.articles article blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 2rem 2rem 2.5rem; /* espace pour le trait vertical à gauche */
    font-family: Georgia, "Times New Roman", serif; /* font adaptée aux citations */
    font-size: 1.5rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-color); /* texte lisible, pas en couleur d'accent */
    background: transparent;
    text-align: center;
    background-position:
      center 0.6rem,
      center calc(100% - 0.6rem);
}

@media (min-width: 1024px) {
  .articles article blockquote {
    max-width: 900px;           /* largeur raisonnable sur desktop */
    margin-left: auto;          /* centre le bloc */
    margin-right: auto;         /* centre le bloc */
  }
}

/* Reset inner paragraph margins if present */
.articles article blockquote p { margin: 0; }

/* Gros guillemet ouvrant à gauche */
.articles article blockquote::before {
    content: "";
    position: absolute;
    left: 1rem;            /* position du trait */
    top: 1rem;             /* laisse du souffle en haut */
    bottom: 1rem;          /* étire le trait jusqu'en bas avec marge */
    width: 4px;            /* épaisseur du trait */
    background: var(--primary-color);
    border-radius: 2px;    /* bords doux */
}




.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 {
    font-family: 'Inter', Arial, sans-serif;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 2;
    font-weight: 100 !important;
}

.articles .author {
    background-color: #171717;
    padding: 10px;
    border-radius: 22px;
    width: 200px;
    text-align: center;
}

.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(--heading-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: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--light-color);
    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(--heading-color);
    transition: color 0.3s ease;
}

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

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

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

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

/* En-tête du tableau */
.standings-table thead {
    background-color: #000; /* 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 #111111;
    transition: background-color 0.2s ease;
}

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

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

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

/* 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: var(--primary-color);
    font-weight: bold;
}

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

.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;
    color: white;
}
.highlighted-team {
    background-color: var(--primary-color)!important;
    font-weight: bold;
    color: black!important;
}
.highlighted-team td {
    font-weight: bold;
    color: black!important;
}
/* Ensure any nested elements inside highlighted rows also render black text */
.highlighted-team .team-name-text {
    color: black !important;
}
.highlighted-team a {
    color: black !important;
}
.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: #e53e3e;
}

/* Styles pour la section des tags */
.article-tags {
    margin: 2rem 0;
    padding: 1rem 0;
}

.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;
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-color);
}

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

/* Variante avec des badges */
.article-tags a {
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-weight: 200;
    border: 1px solid var(--primary-color);
}

/* 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: var(--heading-color);
    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;
}

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

/* Hide aside on mobile */
@media (max-width: 1194px) {
    aside { display: none !important; }
}

/* Lists styling for article content: white text and square bullets in --primary-color */
.article-content .content ul {
    list-style-type: square;
    margin: 1rem 0 1rem 1.25rem;
    padding-left: 1rem;
}

/* Ensure list text matches article font and size */
.article-content .content ul,
.article-content .content ol,
.article-content .content li {
    font-family: 'Inter', Arial, sans-serif;
    font-size: inherit; /* match surrounding article text size */
    line-height: 2;     /* match paragraphs for readability */
    font-weight: 100;   /* match article paragraph weight */
    font-size: 1.2rem;
}

.article-content .content li {
    color: var(--text-color);
}

.article-content .content ul li::marker {
    color: var(--primary-color);
}