/*----------------------------------
CSS : TN 2026
-----------------------------------*/
/*------------------------------------
Style du conteneur principal
--------------------------------------*/
.custom-carousel .carousel-img-container {
    height: 500px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

/* Forcer l'image à couvrir l'espace */
.custom-carousel img {
    object-fit: cover;
}

/* Style de l'encadré noir transparent */
.carousel-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px !important;
    border-radius: 12px;
    bottom: 40px; /* Remonte un peu la légende pour plus de style */
}

/* Style des liens et textes dans le carousel */
.carousel-overlay a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carousel-overlay a:hover {
    color: #ffc107; /* Un jaune Galatasaray pour le survol, par exemple */
}

.carousel-intro {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.carousel-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*-------------------------------
Article suivant
--------------------------------*/
/* La carte entière */
.mag-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Conteneur de l'image pour bloquer la hauteur */
.mag-header {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin-bottom: 15px;
}

/* L'image elle-même : elle s'adapte toute seule */
.mag-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Magique : l'image remplit sans déformer */
}

/* Titre et Meta */
.mag-title { font-size: 1.25rem; margin-top: 10px; line-height: 1.3; }
.mag-title a { color: #222; text-decoration: none; font-weight: 700; }
.mag-title a:hover { color: #dc3545; }

.mag-meta { font-size: 0.75rem; color: #888; text-transform: uppercase; margin-bottom: 5px; }
.mag-intro { font-size: 0.9rem; color: #555; margin-top: 10px; }
.sep { margin: 0 5px; color: #ccc; }

/*---------------------------------
Les rubriques sur la page sommaire
-----------------------------------*/
/* Blocage de l'image (comme dans votre carousel) */
.mag-img-fixed {
    height: 250px; /* Hauteur fixe pour l'équilibre des 2 blocs */
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre tout l'espace sans se déformer */
    transition: transform 0.4s ease;
}

/* Effet de zoom au survol */
.mag-featured-card:hover .img-cover {
    transform: scale(1.08);
}

/* Typographie et détails */
.extra-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
}

.hover-red:hover {
    color: #dc3545 !important;
}

/* Bordure de séparation à droite */
@media (min-width: 992px) {
    .border-start {
        border-width: 2px !important;
        border-color: #eee !important;
    }
}
/*------------------------------------
Style du mur de vidéos
--------------------------------------*/
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.video-card:hover {
    transform: translateY(-5px); /* La carte monte légèrement */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.video-card .ratio {
    border-bottom: 3px solid #dc3545; /* Une petite ligne rouge "Actualité" sous la vidéo */
}

.video-card h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #212529;
    transition: color 0.3s ease;
}

.video-card:hover h3 {
    color: #dc3545; /* Le titre devient rouge au survol */
}


/* Effet de profondeur sur les cartes au survol */
.hover-up {
    transition: all 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Style de la carte "À la Une" */
.featured-card {
    height: 500px;
}
.featured-card img {
    height: 100%;
    object-fit: cover;
}

/* Pour les petits écrans */
@media (max-width: 768px) {
    .featured-card { height: 350px; }
}

/*--------------------
Les rubriques
-----------------------*/
/* Style des onglets actifs */
#rubriquesTab .nav-link {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    background: none !important;
}

#rubriquesTab .nav-link.active {
    color: #c9464a !important; /* Ton rouge */
    border-bottom: 2px solid #c9464a;
}

#rubriquesTab .nav-link:hover {
    color: #c9464a !important;
}

/* Texte très petit pour les infos d'articles */
.extra-small {
    font-size: 0.75rem;
}

/* On réutilise l'effet de survol qu'on a créé tout à l'heure */
.hover-up:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}