

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --couleur-primaire: #e63946;
    --couleur-secondaire: #1d3557;
    --couleur-accent: #f4a261;
    --couleur-succes: #2a9d8f;
    --couleur-fond: #0a0a0f;
    --couleur-fond-clair: #12121a;
    --couleur-carte: #1a1a24;
    --couleur-texte: #ffffff;
    --couleur-texte-secondaire: #8892a0;
    --police-principale: 'Segoe UI', system-ui, sans-serif;
    --police-titre: 'Arial Black', 'Segoe UI', sans-serif;
    --ombre-carte: 0 4px 20px rgba(0, 0, 0, 0.4);
    --rayon-bordure: 12px;
    --transition-base: all 0.3s ease;
}

body {
    font-family: var(--police-principale);
    background: var(--couleur-fond);
    color: var(--couleur-texte);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================
   2. NAVIGATION DU HAUT
   ========================================================== */
.navigation-projet {
    background: var(--couleur-secondaire);
    padding: 0.5rem 2rem;
}

.navigation-projet ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.navigation-projet a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-base);
}

.navigation-projet a:hover,
.navigation-projet a.actif {
    color: white;
    background: var(--couleur-primaire);
}

/* ==========================================================
   3. EN-TÊTE PRINCIPAL (LOGO & RECHERCHE)
   ========================================================== */
.entete-principal {
    background: linear-gradient(180deg, var(--couleur-fond-clair) 0%, var(--couleur-fond) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 3px solid var(--couleur-primaire);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icone {
    width: 50px;
    height: 50px;
    background: var(--couleur-primaire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-texte {
    font-family: var(--police-titre);
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-texte span {
    color: var(--couleur-primaire);
}

/* --- Barre de Recherche AJAX --- */
/* =========================================
   ZONE DE RECHERCHE (STYLE SPORTPULSE)
   ========================================= */

.barre-recherche {
    display: flex;
    align-items: center;
    background-color: #1a1a24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Forme de pilule */
    padding: 5px 15px;
    width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* EFFET AU SURVOL ET AU CLIC (FOCUS) */
.barre-recherche:focus-within {
    border-color: #e63946;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
    width: 320px;
    background-color: #20202b;
}

.champ-recherche {
    background: transparent;
    border: none;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    padding: 8px 0;
}

/* Couleur du texte "Placeholder" (Rechercher...) */
.champ-recherche::placeholder {
    color: #8892a0;
    font-style: italic;
}

.btn-recherche {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-recherche:hover {
    transform: scale(1.2) rotate(10deg);
}

.btn-recherche:hover .icone-loupe {
    filter: drop-shadow(0 0 2px #e63946);
}

/* Conteneur des résultats AJAX */
#resultats-recherche {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    color: black;
    border-radius: 0 0 10px 10px;
    margin-top: 5px;
    box-shadow: var(--ombre-carte);
    display: none;
    z-index: 100;
    overflow: hidden;
}

/* --- Boutons Sports --- */
.nav-sports {
    display: flex;
    gap: 0.5rem;
}

.nav-sport-item {
    padding: 0.5rem 1rem;
    background: var(--couleur-carte);
    border: none;
    color: var(--couleur-texte-secondaire);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.nav-sport-item:hover,
.nav-sport-item.actif {
    background: var(--couleur-primaire);
    color: white;
}

/* ==========================================================
   4. TICKER EN DIRECT
   ========================================================== */
.ticker-direct {
    background: var(--couleur-primaire);
    padding: 0.75rem 2rem;
    overflow: hidden;
    white-space: nowrap;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ==========================================================
   5. MATCH EN VEDETTE
   ========================================================== */
.section-vedette {
    padding: 2rem;
}

.carte-match-vedette {
    background: linear-gradient(135deg, var(--couleur-secondaire) 0%, var(--couleur-fond-clair) 100%);
    border-radius: var(--rayon-bordure);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.score-vedette {
    font-family: var(--police-titre);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    text-align: center;
}

/* ==========================================================
   6. ACTUALITÉS (GRILLE & CARTES)
   ========================================================== */
.section-actualites {
    padding: 2rem;
    background: var(--couleur-fond-clair);
}

.titre-section {
    font-family: var(--police-titre);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid var(--couleur-primaire);
    padding-left: 1rem;
}

.grille-actualites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.carte-actualite {
    background: var(--couleur-carte);
    border-radius: var(--rayon-bordure);
    overflow: hidden;
    transition: var(--transition-base);
}

.carte-actualite:hover {
    transform: translateY(-5px);
    box-shadow: var(--ombre-carte);
}

.actualite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.actualite-contenu {
    padding: 1.25rem;
}

/* --- ÉLÉMENTS INTERACTIFS AJAX (Like & Étoiles) --- */
.bouton-like {
    background: transparent;
    border: 1px solid var(--couleur-texte-secondaire);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-base);
}

.bouton-like:hover {
    border-color: var(--couleur-primaire);
    color: var(--couleur-primaire);
    background: rgba(230, 57, 70, 0.1);
}

.boite-notation span {
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.boite-notation span:hover {
    transform: scale(1.2);
}

/* =========================================
   SECTION CLASSEMENTS (MODE CARTES)
   ========================================= */
.section-classements {
    padding: 3rem 5%; /* Espace autour */
}

.grille-classements {
    display: grid;
    /* Crée des colonnes automatiques (minimum 300px de large) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.carte-classement {
    background-color: #1a1a24; /* Couleur de carte sombre */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-top: 4px solid #e63946; /* Petite touche rouge SportPulse en haut */
}

.classement-entete {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-family: 'Arial Black', sans-serif;
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.equipe-ligne {
    display: flex;
    justify-content: space-between; /* Écarte le nom et les points */
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.equipe-ligne:last-child { border-bottom: none; }
.equipe-ligne:hover { background-color: rgba(255,255,255,0.05); padding-left: 5px; border-radius: 5px;}

.equipe-rang {
    font-weight: bold;
    width: 30px;
    color: #8892a0;
}
.equipe-rang.top { color: #e63946; } /* Le 1er en rouge */

.equipe-info { flex-grow: 1; font-weight: 500; }
.equipe-stats { font-weight: bold; color: #f4a261; } /* Points en orange */


/* =========================================
   SECTION COMMENTAIRES (CENTRÉE)
   ========================================= */

.section-commentaires {
    background-color: #0f0f15;
    padding: 4rem 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.conteneur-commentaires {
    width: 100%;
    max-width: 800px;
}


.formulaire-commentaire {
    background-color: #1a1a24;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.formulaire-commentaire textarea {
    width: 100%;
    background-color: #0f0f15;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
}

.bouton-commenter {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s;
}

.bouton-commenter:hover {
    background-color: #e04050;
}

/* --- LISTE DES COMMENTAIRES --- */
.liste-commentaires {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carte-commentaire {
    background-color: #1a1a24;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ff4757;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.commentaire-entete {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}


.commentaire-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #333;
}

.commentaire-auteur {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1rem;
    display: block;
}

.commentaire-badge-fan {
    font-size: 0.8rem;
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.commentaire-date {
    margin-left: auto;
    color: #666;
    font-size: 0.9rem;
}

.commentaire-texte {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* ==========================================================
   8. PIED DE PAGE
   ========================================================== */
.pied-page {
    background: var(--couleur-secondaire);
    padding: 2rem;
    margin-top: 26rem;
    text-align: center;
    color: var(--couleur-texte-secondaire);
}

/* ========== LOGO CENTRAL ========== */
.splash-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icone {
    width: 80px;
    height: 80px;
    background: var(--couleur-primaire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.4);
    animation: pulse-logo 2s ease-in-out infinite;
}

.logo-texte {
    font-family: var(--police-titre);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-texte span { color: var(--couleur-primaire); }

.slogan {
    color: var(--couleur-texte-secondaire);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* ========== CARTES INTERACTIVES (ACCORDÉON) ========== */
.container-flash {
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carte-flash {
    background: var(--couleur-carte);
    border-radius: var(--rayon-bordure);
    padding: 1.5rem;
    border-left: 5px solid var(--couleur-primaire);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
}

.carte-flash:hover {
    transform: translateX(10px);
    background: #252530;
}

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

.flash-titre {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-icone { font-size: 1.2rem; }

.btn-plus {
    background: var(--couleur-secondaire);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-base);
}

/* Animation d'ouverture */
.flash-contenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s;
    color: var(--couleur-texte-secondaire);
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-enter {
    margin-top: 3rem;
    padding: 1rem 3rem;
    background: var(--couleur-primaire);
    color: white;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 1px;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.btn-enter:hover {
    background: white;
    color: var(--couleur-primaire);
    transform: scale(1.05);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse-logo {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(230, 57, 70, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(230, 57, 70, 0.6); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}





/* SECTION STARS À SUIVRE (LISTE-DÉTAIL) */

.conteneur-liste-detail {
    display: flex;
    gap: 20px;
    background-color: #1a1a24;
    padding: 20px;
    border-radius: 12px;
    min-height: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- COLONNE DE GAUCHE : LISTE --- */
.colonne-liste-joueurs {
    flex: 1;
    border-right: 1px solid #333;
    padding-right: 10px;
    overflow-y: auto;
}

.item-joueur {
    display: block;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid #2a2a35;
    color: #ffffff;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.item-joueur:hover {
    background-color: #252530;
    padding-left: 20px;
}

/* État actif (Le joueur sélectionné) */
.item-joueur.actif {
    background-color: #252530;
    border-left-color: #e63946;
}

.nom-joueur-liste {
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
}

.poste-joueur-liste {
    font-size: 0.9rem;
    color: #8892a0;
}

/* --- COLONNE DE DROITE : DÉTAIL --- */
.colonne-detail-joueur {
    flex: 2;
    padding: 20px;
    text-align: center;
    /* Animation douce à l'apparition */
    animation: apparitionDouce 0.5s ease-out;
}

.photo-joueur-detail {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e63946;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.3);
}

.nom-joueur-detail {
    color: #ffffff;
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.infos-club-poste {
    color: #e63946;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0;
}

.bloc-biographie {
    background-color: #0f0f13;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    text-align: left;
    border-left: 2px solid #333;
}

.titre-biographie {
    color: #8892a0;
    margin-top: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.texte-biographie {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1rem;
}

.message-vide {
    color: #8892a0;
    font-style: italic;
    margin-top: 50px;
}

@keyframes apparitionDouce {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================================================
   AFFICHAGE PLEINE LARGEUR (FULL WIDTH)
   ======================================================= */


/* CORRECTIF PARALLAXE */
html {
    margin: 0;
    padding: 0;
    width: 100%;

}

body {
    margin: 0;
    padding: 0;
    width: 100%;

    overflow-x: hidden;
}

.entete-principal,
.navigation-projet,
main,
.pied-page {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
}

.entete-principal,
.navigation-projet,
.section-vedette,
.section-actualites,
.section-stars,
.section-classements,
.section-commentaires,
.pied-page {
    padding-left: 40px;
    padding-right: 40px;
}


/* --- 1. GESTION DE LA LARGEUR (Plein écran) --- */
/* ATTENTION : J'ai rajouté le point "." manquant devant banniere-parallaxe */
.banniere-parallaxe,
.ticker-direct {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
/* --- BANNIÈRE & IMAGE DE FOND --- */
.banniere-parallaxe {
    /* Votre image d'athlètes */
    background-image: url('illustration/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    height: 600px;
    min-height: 50vh;
    width: 100%;


    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;


    color: white;


    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* --- STYLE DU TEXTE --- */
.contenu-banniere h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
}

.contenu-banniere p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Le mot "intensément" en rouge */
.texte-rouge {
    color: #e63946;
}

/* --- RESPONSIVE (Pour mobile) --- */
@media (max-width: 768px) {
    .contenu-banniere h1 {
        font-size: 2.5rem;
    }
    .contenu-banniere p {
        font-size: 1.1rem;
    }
}

.conteneur-liste-detail {
    width: 100%;
    max-width: none !important;
    margin: 0;
}

.grille-actualites {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* =======================================================
   SECTION STARS (LISTE & DÉTAIL)
   ======================================================= */

.conteneur-liste-detail {
    display: flex;
    gap: 20px;
    height: 550px;
    overflow: hidden;
    background-color: #1a1a24;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- COLONNE GAUCHE (LISTE) --- */
.colonne-liste-joueurs {
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid #333;
    background: #12121a;
}

/* Scrollbar personnalisée pour la liste */
.colonne-liste-joueurs::-webkit-scrollbar {
    width: 8px;
}
.colonne-liste-joueurs::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.item-joueur {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a35;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.item-joueur:hover {
    background-color: #252530;
    padding-left: 25px;
}

.item-joueur.actif {
    background-color: #252530;
    border-left-color: #e63946;
}

.info-liste-haut {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nom-joueur-liste {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.drapeau-liste {
    font-size: 1.2rem;
}

.poste-joueur-liste {
    color: #8892a0;
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

/* --- COLONNE DROITE (DÉTAIL) --- */
.colonne-detail-joueur {
    flex: 2;
    overflow-y: auto;
    padding: 30px;
    text-align: center;
}

.photo-joueur-detail {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e63946;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(230, 57, 70, 0.4);
}

.nom-joueur-detail {
    font-family: var(--police-titre);
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: white;
}

.infos-club-poste {
    color: #e63946;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Grille des statistiques (Poste, Age, Taille) */
.grille-stats-joueur {
    display: flex;
    justify-content: space-around;
    background-color: #111;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.avec-separation {
    border-left: 1px solid #444;
}

.label-stat {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.valeur-stat {
    color: white;
    font-size: 1.2rem;
    display: block;
}

/* Biographie */
.bloc-biographie {
    background-color: #0f0f13;
    padding: 25px;
    border-radius: 12px;
    text-align: left;
    border-left: 2px solid #333;
}

.titre-biographie {
    color: #8892a0;
    margin-top: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.texte-biographie {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1.05rem;
}

.etat-vide-detail {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.message-vide {
    font-size: 1.3rem;
    color: #8892a0;
    margin-bottom: 20px;
}

.icone-vide {
    font-size: 4rem;
    animation: bounceLeft 1s infinite;
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/*Parallax*/

.banniere-parallaxe {

    background-attachment: scroll !important;

    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;

    width: 100%;
    height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    margin: 0;
}

/* Le reste ne change pas */
.banniere-parallaxe::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Le texte passe au-dessus du voile */
.texte-parallaxe {
    position: relative;
    z-index: 2;
    color: white;
    font-family: var(--police-titre);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    border: 4px solid white;
    padding: 20px 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
}

/* === AMÉLIORATION GRILLE ACTUALITÉS (INDEX) === */
.grille-actualites {
    display: grid;
    /
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.carte-actualite {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.carte-actualite:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.actualite-contenu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* === NOUVEAU : STYLE PAGE DÉTAIL (ACTUALITE.PHP) === */
.conteneur-detail-page {
    display: flex;
    justify-content: center;
    padding: 4rem 20px;
    min-height: 80vh;
}

.carte-detail-article {
    background-color: #1a1a24;
    width: 100%;
    max-width: 800px; /* "Container Moyen" */
    border-radius: 16px;
    overflow: hidden; /* Pour que l'image ne dépasse pas */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeInUp 0.5s ease-out;
}

.detail-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.detail-contenu-texte {
    padding: 3rem;
}

.detail-titre {
    font-family: 'Arial Black', sans-serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-meta {
    color: #e63946; /* Rouge SportPulse */
    font-weight: bold;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-corps {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.btn-retour {
    display: inline-block;
    margin-top: 2rem;
    color: #8892a0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.btn-retour:hover {
    color: white;

}

/* --- STYLE DE LA LISTE AUTOCOMPLETE (Version Premium) --- */
.liste-resultats {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: white;
    border: none;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* Style de chaque ligne de résultat */
.resultat-item {
    padding: 12px 18px;
    color: #2b2d42;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resultat-item:last-child {
    border-bottom: none;
}

.resultat-item:hover {
    background-color: #fdfdfd;
    padding-left: 22px;
    color: #e63946;
}

/* --- BADGES --- */
.badge-categorie {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}


.badge-categorie {
    background-color: #8d99ae;
    color: white;
}


.resultat-item[href*="joueur.php"] .badge-categorie {
    background-color: #0077b6;
}

.resultat-item[href*="actualite.php"] .badge-categorie {
    background-color: #e63946;
}

/* =========================================
   PAGE PROFIL JOUEUR (joueur.php)
   ========================================= */

.page-joueur {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;

    /* Image de fond pour le profil */
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('illustration/stade-fond.jpg');
    background-size: cover;
    background-position: center;
}

.carte-profil {
    background: #1a1a24;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

/* --- Colonne Photo (Gauche) --- */
.profil-photo-container {
    width: 40%;
    position: relative;
    background-color: #000;
}

.profil-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Colonne Infos (Droite) --- */
.profil-infos {
    width: 60%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nom-joueur {
    font-size: 3rem;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    color: white;
}

.nom-joueur .prenom {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: #aaa;
}

.nom-joueur .nom {
    font-weight: 900;
    color: #e63946;
}

.badge-equipe {
    display: inline-block;
    background: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    align-self: flex-start;
}

/* --- Grille de Statistiques --- */
.stats-grid {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-valeur {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
}

/* --- Biographie et Bouton --- */
.biographie {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.biographie h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.btn-retour-joueur {
    display: inline-block;
    text-decoration: none;
    color: #e63946;
    font-weight: bold;
    border: 2px solid #e63946;
    padding: 10px 20px;
    border-radius: 50px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.btn-retour-joueur:hover {
    background: #e63946;
    color: white;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .carte-profil {
        flex-direction: column;
    }

    .profil-photo-container, .profil-infos {
        width: 100%;
    }

    .profil-photo-container {
        height: 300px;
    }

    .profil-infos {
        padding: 2rem;
    }
}
/* --- ACTUALITÉS : PIED DE CARTE --- */
.footer-carte {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

/* Style de la date */
.footer-carte .date {
    font-size: 0.85rem;
    color: #aaa;
}

/* La carte globale */
.carte-actualite {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
}

.carte-actualite a {
    text-decoration: none;
    color: inherit;
}

.actualite-titre {
    color: white;
    margin-bottom: 10px;
}


.actualite-titre:hover {
    color: #ff4757;
}

.actualite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.actualite-date {
    font-size: 0.8rem;
    color: #aaa;
}

/* --- LE BOUTON BOOKMARK  --- */
.bouton-bookmark {

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
    padding: 0;
    margin: 0;

    transition: transform 0.2s ease, color 0.3s ease;
}

.bouton-bookmark:hover {
    transform: scale(1.2);
    color: #000;
}


.bouton-bookmark.sauvegarde {
    background: transparent !important;
    border: none !important;
    color: #00b894;
}

.bouton-bookmark.sauvegarde:hover {
    transform: scale(1.2);
    color: #00b894;
}

/* --- BADGES CLUBS (Boules de couleur) --- */

.badge-club {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Couleurs spécifiques */
.badge-club.rouge {
    background-color: #ff4757;
    box-shadow: 0 0 5px #ff4757;
}

.badge-club.bleu {
    background-color: #3742fa;
    box-shadow: 0 0 5px #3742fa;
}

.badge-club.orange {
    background-color: #ffa502;
    box-shadow: 0 0 5px #ffa502;
}

.badge-club.blanc {
    background-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
}


.equipe-info {
    display: flex;
    align-items: center;
}

/* --- SYSTÈME DE NOTATION ÉTOILES --- */

.actualite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.zone-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.etoiles {
    display: flex;
    gap: 2px;
    cursor: pointer;
}

.etoile {
    font-size: 1.2rem;
    color: #444;
    transition: color 0.2s, transform 0.2s;
}

.etoile.active {
    color: #f1c40f;
}

.etoiles:hover .etoile {
    transform: scale(1.1);
}


.etoiles .etoile:hover,
.etoiles .etoile:hover ~ .etoile {
    color: #444; /
}

.etoiles:hover .etoile {
    color: #f1c40f;
}

.etoiles .etoile:hover ~ .etoile {
    color: #444 !important;
}

/* --- SYSTÈME DE LIKES --- */

.btn-like-action {
    background: none;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-like-action.liked {
    color: #ff4757;
    border-color: #ff4757;
}

.btn-like-action:active {
    transform: scale(0.9);
}

.ligne-like-unique {
    margin-top: 10px;
}

.btn-like-action {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-like-action.liked {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.btn-like-action.liked .icone-coeur {
    filter: none;
}

/*page-mes-favori*/


.header-favoris {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.grille-favoris {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Carte individuelle */
.carte-favori {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.carte-favori:hover {
    transform: translateY(-5px);
}

.carte-favori img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contenu-carte {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contenu-carte h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #2c3e50;
}

.contenu-carte p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Boutons */
.actions-carte {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-lire {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.btn-retirer {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-retirer:hover {
    background-color: #dc2626;
    color: white;
}

/* État vide */
.liste-vide {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #95a5a6;
    font-style: italic;
}
