/* Import d'une police Ã©lÃ©gante (remplacez-la par une police de votre choix) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* Déclaration de la police Neuropol Custom */
@font-face {
    font-family: 'Neuropol Custom';
    src: url('https://assets.team-réality.com/assets/fonts/neuropol/Neuropol X Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-grey: #f0f0f0;
}

*,
::before,
::after {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
    overflow-x: hidden;
    /* Styles ajoutés pour le footer en bas de page */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


h1,
h2,
h3 {
    font-weight: 400;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

@media screen and (min-width : 0px) {

    /* --- ACCUEIL (Hero Image) --- */
    .hero-image-section {
        /* Propriétés pour l'effet plein écran/hauteur viewport */
        width: 100%;
        height: 90vh;
        background-size: cover;
        /* Assure que l'image couvre toute la zone */
        background-position: center center;
        /* Centre l'image */
        background-repeat: no-repeat;

        /* Flexbox pour centrer le contenu de l'actualité */
        display: flex;
        justify-content: center;
        /* Centre horizontalement */
        align-items: flex-end;
        /* Centre verticalement */

        /* Overlay sombre pour que le texte blanc soit lisible */
        position: relative;
        /* Nécessaire pour positionner l'overlay pseudo-élément */
        z-index: 1;
    }

    /* Pseudo-élément pour l'overlay sombre (AJOUTÉ pour la lisibilité) */
    .hero-image-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.55);
        /* Noir semi-transparent */
        z-index: -1;
        /* Derrière le contenu (texte) mais devant l'image */
    }

    .hero-content {
        /* Enlève les dimensions fixes (width: 100%; height: 50%;) pour laisser le contenu se dimensionner naturellement */
        max-width: 800px;
        /* Limite la largeur du contenu sur les grands écrans */
        padding: 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        /* S'assure d'être au-dessus de l'overlay */
    }

    /* Style de l'Actualité mise en avant */
    .news-highlight {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        /* Ajout du style de fond pour le bloc d'actualité */
        background-color: rgba(30, 30, 30, 0.85);
        padding: 15px;
        border-radius: 10px;
        border-left: 5px solid var(--secondary-color);
    }

    .news-highlight h3 {
        font-size: 1.6em;
        margin-bottom: 10px;
        color: var(--secondary-color);
    }

    .news-highlight p {
        color: var(--secondary-color);
    }

    .news-date {
        font-size: 0.9em;
        color: #aaa;
        margin-bottom: 5px;
    }

    .btn-read-more {
        display: inline-block;
        background-color: var(--color-accent);
        color: var(--secondary-color);
        padding: 12px 25px;
        border-radius: 5px;
        margin-top: 20px;
        font-weight: bold;
        text-transform: uppercase;
        transition: background-color 0.3s ease;
    }

    .btn-read-more:hover {
        background-color: #ffffff;
        color: var(--primary-color);
    }

    /*---ÉQUIPES---*/
    .teams_wrapper {
        width: 100%;
        height: auto;
    }

    .teams_wrapper>h1 {
        font-size: 2rem;
        font-family: 'Neuropol Custom';
        color: var(--primary-color);
        text-align: center;
        padding: 10px 0px;
    }

    .teams_btn{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0px 20px;
    }

    .teams_container {
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 20px 0px;
    }

    .teams_items {
        width: 300px;
        height: 300px;
        border: var(--primary-color) 2px solid;
        margin: 10px 10px;
        flex-shrink: 0;
    }

    .teams_items>a>img {
        width: 100%;
        height: 100%;
    }


    /*--- MATCHS ---*/
    .matchs_wrapper {
        margin: 20px;
        text-align: center;
        background-color: var(--color-background-secondary);
        /* Fond légèrement différent si défini */
    }

    .matchs_wrapper h1 {
        font-size: 2rem;
        font-family: 'Neuropol Custom';
        color: var(--primary-color);
        text-align: center;
        padding: 10px 0px;
    }

    .matchs_container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        /* Espace entre les cartes */
    }

    /* Style de base de chaque carte de match */
    .match-card {
        background-color: var(--color-dark-surface);
        padding: 25px;
        border-radius: 12px;
        flex-basis: calc(33.333% - 25px);
        /* Trois cartes par ligne sur desktop */
        max-width: 350px;
        min-width: 250px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        border-left: 6px solid;
        /* La couleur de la bordure change avec le résultat */
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        color: var(--color-primary);
    }

    .match-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    }

    /* --- Couleurs de Résultat (via PHP) --- */

    .match-win {
        border-color: #4CAF50;
        /* Vert Victoire */
    }

    .match-loss {
        border-color: var(--color-accent);
        /* Rouge Défaite (utiliser la couleur accent pour le côté agressif) */
    }

    .match-draw {
        border-color: #FFEB3B;
        /* Jaune Nul */
    }

    /* --- Header de la carte (Jeu et Date) --- */

    .match-header {
        display: flex;
        justify-content: space-between;
        font-size: 0.95em;
        color: #AAA;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #333;
    }

    .match-game {
        font-weight: 600;
        color: var(--color-accent);
    }


    /* --- Noms des Équipes (VS) --- */

    .match-teams {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 15px 0;
        font-size: 1.3em;
        font-weight: 700;
    }

    .team-name {
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .team-reality {
        color: var(--color-primary);
        /* Team Reality en couleur primaire */
        text-align: right;
    }

    .team-opponent {
        text-align: left;
        color: #DDD;
    }

    .vs {
        font-size: 0.8em;
        color: #777;
        font-weight: normal;
        margin: 0 10px;
    }

    /* --- Scores --- */

    .match-score {
        font-size: 2.5em;
        /* Grand et visible */
        font-weight: 900;
        margin: 25px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .separator {
        margin: 0 15px;
        color: #555;
        font-weight: 300;
    }

    /* --- Label de Résultat --- */

    .match-result-label {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px dashed #333;
        font-size: 1em;
        color: #AAA;
    }

    /* Styles des Strong (couleur du résultat) */
    .match-result-label strong {
        font-size: 1.2em;
        padding: 5px 12px;
        border-radius: 6px;
        margin-left: 8px;
        font-weight: bold;
        text-transform: uppercase;
    }

    .match-result-label .victoire {
        color: white;
        background-color: #4CAF50;
        /* Vert foncé */
    }

    .match-result-label .défaite {
        color: white;
        background-color: var(--color-accent);
        /* Rouge/Orange Accent */
    }

    .match-result-label .nul {
        color: var(--primary-color);
        background-color: #FFEB3B;
        /* Jaune Vif */
    }

    .no-match-data {
        color: #AAA;
        font-size: 1.2em;
        padding: 30px;
        width: 100%;
    }

    /*--- WHITE SHARKS ---*/
    .whitesharks_wrapper {
        width: 100%;
        height: auto;
        background-color: var(--primary-color);
    }

    .whitesharks_container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .whitesharks_container>img {
        width: 100%;
    }

    /*CATÉGORIES*/
    .categories_wrapper {
        width: 100%;
        height: auto;
    }

    .categories_container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .categories_items {
        width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .categories_items>img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    /* Overlay avec backdrop-filter blur */
    .categories_overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        /* Léger assombrissement */
        backdrop-filter: blur(8px);
        /* Effet de flou sur l'image en arrière-plan */
        -webkit-backdrop-filter: blur(8px);
        /* Support Safari */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.4s ease;
        padding: 20px 0px;
        text-align: center;
    }

    .categories_overlay h3 {
        font-family: 'Neuropol Custom', sans-serif;
        font-size: 2rem;
        color: var(--secondary-color);
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 15px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        /* Ombre pour meilleure lisibilité */
        transform: translateY(20px);
        transition: transform 0.4s ease;
        text-align: center;
    }

    .categories_overlay p {
        font-size: 1rem;
        color: var(--secondary-color);
        line-height: 1.5;
        max-width: 80%;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        /* Ombre pour meilleure lisibilité */
        transform: translateY(20px);
        transition: transform 0.4s ease 0.1s;
        text-align: center;
    }

    /* Effet au survol */
    .categories_items:hover .categories_overlay {
        opacity: 1;
    }

    .categories_items:hover .categories_overlay h3,
    .categories_items:hover .categories_overlay p {
        transform: translateY(0);
    }

    .categories_items:hover>img {
        transform: scale(1.05);
    }

    /*ACTUALITÉS*/
    .actualites_wrapper {
        padding: 3rem 1rem;
        max-width: 1200px;
        margin: auto;
    }

    .actualites_wrapper h1 {
        text-align: center;
        margin-bottom: 2rem;
    }

    /* MOBILE – colonne */
    .articles-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .article-card {
        background: #fff;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
    }

    .card-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-date {
        font-size: 0.85rem;
        color: #888;
    }

    .card-title {
        margin: 0.5rem 0;
        font-size: 1.1rem;
    }

    .card-title a {
        color: #111;
        text-decoration: none;
    }

    .card-resume {
        font-size: 0.95rem;
        color: #555;
    }

    .read-more {
        display: inline-block;
        background-color: var(--primary-color);
        color: var(--secondary-color);
        border: 1px solid var(--primary-color);
        padding: 1.2rem 2.5rem;
        /* Augmentation du rembourrage */
        margin-top: 2rem;
        font-size: 1.1rem;
        /* Augmentation de la taille de la police */
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: all 0.3s ease;
    }

    .read-more:hover {
        background-color: var(--secondary-color);
        color: var(--primary-color);
    }

}

@media screen and (min-width : 768px) {
    .teams_wrapper {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .teams_container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding: 20px 0px;
    }

    /*CATÉGORIES*/
    .categories_container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
    }

    .categories_items {
        width: 33.333%;
        height: auto;
    }

    .categories_items>img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .categories_overlay h3 {
        font-size: 2.5rem;
        /* Plus grand sur desktop */
    }

    .categories_overlay p {
        font-size: 1.1rem;
    }

    /*ACTUALITÉS*/
    .articles-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
    }

    /* Article principal */
    .article-featured {
        grid-row: span 2;
    }

    .article-featured .card-image img {
        height: 100%;
        min-height: 420px;
    }

    .article-featured .card-title {
        font-size: 1.5rem;
    }

    /* Articles à droite */
    .article-small .card-image img {
        height: 180px;
    }

    /* Bouton */
    .actualites-footer {
        text-align: center;
        margin-top: 2.5rem;
    }
}

