/* ==========================
   PAGE ANNEXE MATHS (CPGE) - Effets néon
========================== */

/* ==========================
   VARIABLES CSS
========================== */
:root {
    --primary: #00ffff;       /* Couleur principale cyan */
    --secondary: #ff00ff;     /* Couleur secondaire magenta */
    --accent: #ffff00;        /* Couleur accent jaune */
    --bg-dark: #0a0a0a;       /* Fond sombre principal */
    --bg-card: #1a1a1a;       /* Fond des cartes */
    --text-primary: #ffffff;  /* Couleur texte principale */
    --text-secondary: #b0b0b0; /* Couleur texte secondaire/gris clair */
}

/* ==========================
   RESET CSS
========================== */
* {
    margin: 0;                /* Supprime marges par défaut */
    padding: 0;               /* Supprime padding par défaut */
    box-sizing: border-box;   /* Inclut padding et border dans les dimensions */
}

/* ==========================
   STRUCTURE DE BASE
   Pour footer collé en bas
========================== */
html, body {
    height: 100%; /* Permet de prendre toute la hauteur de la page */
}

body {
    display: flex;                 /* Utilise flex pour aligner le contenu */
    flex-direction: column;        /* Contenu en colonne (header + main + footer) */
    min-height: 100vh;             /* Minimum hauteur = hauteur de la fenêtre */
    font-family: 'Exo 2', sans-serif; /* Police principale */
    background-color: var(--bg-dark); /* Fond sombre */
    color: var(--text-primary);        /* Texte blanc */
    line-height: 1.6;                 /* Interligne */
    overflow-x: hidden;               /* Supprime le scroll horizontal */
    position: relative;               /* Pour pseudo-éléments ou overlays */
}

/* ==========================
   GRILLE NÉON SUBTILE DERRIÈRE
========================== */
body::before {
    content: ''; /* Nécessaire pour générer le pseudo-élément */
    position: fixed; /* Toujours visible à l'écran */
    top: 0; left: 0; right: 0; bottom: 0; /* Recouvre toute la page */
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    ); /* Grille cyan subtile */
    pointer-events: none; /* Ne bloque pas les interactions */
    z-index: 1; /* Derrière le contenu */
}


/* ==========================
   HEADER
========================== */

/* Titre de la page */
.page-title {
    text-align: center; /* Centre le texte horizontalement */
    font-family: 'Orbitron', sans-serif; /* Police du titre, même style que tes h2 */
    font-size: 3rem; /* Taille du texte */
    color: var(--primary); /* Couleur cyan */
    margin: 30px 0; /* Marge haut/bas de 30px */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 4px; /* Espacement entre les lettres */
    text-shadow: 0 0 10px rgba(0,255,255,0.5),
                 0 0 20px rgba(0,255,255,0.3),
                 0 0 30px rgba(0,255,255,0.2); /* Effet néon */
    animation: glowTitle 2s ease-in-out infinite alternate; /* Animation d’un glow pulsé */
}

/* Navigation dans le header */
header nav {
    /* Mise en page Flexbox */
    display: flex;
    justify-content: flex-start; /* Aligne tout à gauche */
    align-items: center;        /* Centre verticalement */
    gap: 20px;                  /* Espace entre les liens */
    
    /* Design */
    padding: 15px 50px;         /* Marges larges pour PC */
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

/* --- AJOUT CRUCIAL : Adaptation Mobile pour le Header --- */
@media (max-width: 768px) {
    header nav {
        padding: 15px 20px; /* On réduit les marges latérales de 50px à 20px sur mobile */
    }
}

/* Liens de navigation */
header nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

/* Ligne décorative sous les liens (effet hover) */
header nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

/* Au survol, la ligne s'étend sous le texte */
header nav a:hover::after {
    width: 100%;
}

/* Au survol, changement de couleur du texte */
header nav a:hover {
    color: var(--primary);
}

/* ==========================
   CONTENU PRINCIPAL
========================== */
main {
    flex: 1; /* occupe tout l'espace disponible entre header et footer */
    padding: 100px 20px 50px; /* espace interne haut, côtés et bas */
    max-width: 1200px; /* largeur maximale pour le contenu */
    margin: 0 auto; /* centre horizontalement */
    position: relative; /* pour positionner éventuellement des pseudo-éléments */
    z-index: 2; /* au-dessus de la grille néon de fond */
}

/* ==========================
   TITRE CPGE
========================== */
main h2 {
    text-align: center; /* centre le titre horizontalement */
    margin-bottom: 40px; /* espace sous le titre */
    font-size: 2.3rem; /* taille du texte */
    font-family: 'Orbitron', sans-serif; /* police du titre */
    color: var(--primary); /* couleur cyan */
    text-transform: uppercase; /* texte en majuscules */
    letter-spacing: 3px; /* espacement entre les lettres */
    text-shadow: 0 0 10px rgba(0,255,255,0.5),
                 0 0 20px rgba(0,255,255,0.3),
                 0 0 30px rgba(0,255,255,0.2); /* effet néon */
    animation: glowTitle 2s ease-in-out infinite alternate; /* animation glow pulsé */
}

/* Animation du glow du titre */
@keyframes glowTitle {
    0% { opacity: 0.8; text-shadow: 0 0 10px rgba(0,255,255,0.5); } /* état initial */
    100% { opacity: 1; text-shadow: 0 0 20px rgba(0,255,255,0.8), 0 0 40px rgba(0,255,255,0.6); } /* état final lumineux */
}

/* ==========================
   SECTION CPGE (images + texte)
========================== */
.cpge-section {
    display: flex; /* utilise flexbox */
    flex-direction: row; /* images à gauche, texte à droite */
    align-items: flex-start; /* aligne les items en haut */
    justify-content: center; /* centre horizontalement */
    gap: 60px; /* espace entre images et texte */
    padding: 40px 20px; /* padding interne */
    max-width: 1100px; /* largeur maximale */
    margin: auto; /* centre horizontalement */
}

/* Logos des écoles */
.cpge-images {
    flex: 1; /* prend l’espace disponible */
    display: flex; /* flexbox pour les logos */
    flex-wrap: wrap; /* passe à la ligne si nécessaire */
    gap: 25px; /* espace entre les logos */
    justify-content: center; /* centre les logos */
}

/* Styles des images */
.cpge-images img {
    width: 120px; /* largeur fixe */
    height: auto; /* hauteur proportionnelle */
    background: var(--bg-card); /* fond sombre derrière l’image */
    padding: 12px; /* espace autour de l’image */
    border-radius: 12px; /* coins arrondis */
    box-shadow: 0 0 10px rgba(0,255,255,0.2); /* ombre légère néon */
    transition: transform 0.3s, box-shadow 0.3s; /* transition douce sur hover */
    cursor: pointer; /* pointeur au survol */
}

/* Effet hover sur les logos */
.cpge-images img:hover {
    transform: scale(1.15); /* zoom léger */
    box-shadow: 0 0 25px var(--primary), 0 0 40px var(--secondary); /* glow cyan/magenta */
}

/* ==========================
   TEXTE CPGE
========================== */
.cpge-subtitle {
    text-align: center; /* centre le sous-titre */
    font-size: 1.3rem; /* taille du texte */
    color: var(--secondary); /* couleur magenta */
    font-family: 'Orbitron', sans-serif; /* police similaire aux titres */
    margin-bottom: 30px; /* espace sous le sous-titre */
    text-shadow: 0 0 5px rgba(255,0,255,0.5),
                 0 0 10px rgba(255,0,255,0.3); /* petit glow */
}

.cpge-text {
    flex: 1; /* prend l’espace restant */
    max-width: 550px; /* largeur maximale du texte */
    font-size: 1.1rem; /* taille de texte normale */
    line-height: 1.8; /* interligne */
    color: var(--text-secondary); /* gris clair */
}

/* ==========================
   TARIFS
========================== */
.tarifs {
    text-align: center;       /* centre le texte horizontalement */
    color: var(--primary);    /* couleur néon cyan */
    font-weight: bold;        /* texte en gras */
    margin: 20px 0;           /* espace au-dessus et en dessous */
}

/* ==========================
   SECTION UNIVERSITAIRES
========================== */
.uni-section {
    display: flex; /* utilise flexbox pour aligner texte et images */
    flex-direction: row; /* texte à gauche, images à droite */
    align-items: center; /* aligne verticalement au centre */
    justify-content: center; /* centre horizontalement */
    gap: 60px; /* espace entre texte et images */
    padding: 40px 20px; /* padding interne */
    max-width: 1100px; /* largeur maximale de la section */
    margin: auto; /* centre horizontalement */
}

/* Texte de la section */
.uni-text {
    flex: 1; /* prend l’espace disponible */
    max-width: 550px; /* largeur maximale du texte */
    font-size: 1.1rem; /* taille du texte */
    line-height: 1.8; /* interligne */
    color: var(--text-secondary); /* couleur gris clair */
}

/* Images de la section */
.uni-images {
    flex: 1; /* prend l’espace disponible */
    display: flex; /* flexbox pour les images */
    flex-wrap: wrap; /* passe à la ligne si nécessaire */
    gap: 25px; /* espace entre les images */
    justify-content: center; /* centre les images horizontalement */
}

/* Styles des images */
.uni-images img {
    width: 360px; /* largeur fixe */
    height: 165px; /* hauteur fixe */
    background: var(--bg-card); /* fond sombre derrière l’image */
    padding: 12px; /* espace interne autour de l’image */
    border-radius: 12px; /* coins arrondis */
    box-shadow: 0 0 10px rgba(0,255,255,0.2); /* ombre subtile néon */
    transition: transform 0.3s, box-shadow 0.3s; /* transition douce sur hover */
    cursor: pointer; /* pointeur au survol */
    object-fit: cover; /* l'image remplit le cadre sans se déformer */
}

/* Effet hover sur les images */
.uni-images img:hover {
    transform: scale(1.15); /* zoom léger */
    box-shadow: 0 0 25px var(--primary), 0 0 40px var(--secondary); /* glow cyan/magenta */
}

/* ==========================
   RESPONSIVE UNIVERSITAIRES
========================== */
@media (max-width: 900px) {
    .uni-section {
        flex-direction: column; /* texte au-dessus, images en dessous */
        text-align: center; /* centre le texte */
    }
    .uni-text {
        max-width: 100%; /* texte prend toute la largeur disponible */
    }
}

/* ==========================
   TARIFS SECTION
========================== */

#tarifs {
    margin-top: 4rem;
    text-align: center;
  }
  
  /* Texte d’intro */
  .tarifs {
    color: var(--text-secondary, #ccc);
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  /* Bloc contenant le tableau */
  .tarifs-table {
    margin: 0 auto;
    max-width: 600px;
    background: var(--bg-glass, rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    overflow-x: auto;
  }
  
  /* Tableau */
  .table-tarifs {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary, #fff);
    font-size: 16px;
  }
  
  /* Titres du tableau */
  .table-tarifs th {
    color: var(--primary, cyan);
    font-family: 'Audiowide', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
  }
  
  /* Cellules */
  .table-tarifs td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Ligne survolée */
  .table-tarifs tr:hover {
    background: rgba(0, 255, 255, 0.08);
    transition: background 0.3s ease;
  }
  
  /* Adaptation mobile */
  @media (max-width: 768px) {
    .table-tarifs th,
    .table-tarifs td {
      font-size: 14px;
      padding: 10px;
    }
  }
  


/* ==========================
   BOUTON CONTACT
========================== */

/* Conteneur pour centrer le bouton */
.btn-container {
    display: flex; /* utilise flexbox */
    justify-content: center; /* centre le bouton horizontalement */
    margin-top: 10px; /* espace au-dessus du bouton */
}

/* Style du bouton principal */
.btn-primary {
    background-color: var(--primary); /* couleur de fond cyan */
    color: #000; /* texte noir */
    border: none; /* pas de bordure */
    padding: 12px 25px; /* padding interne vertical/horizontal */
    border-radius: 8px; /* coins arrondis */
    cursor: pointer; /* pointeur au survol */
    transition: all 0.3s ease; /* transition douce pour hover */
    text-decoration: none; /* supprime le soulignement */
    font-weight: bold; /* texte en gras */
    display: inline-block; /* comportement inline mais permet padding/margin */
    margin-top: 20px; /* espace au-dessus */
}

/* Effet hover sur le bouton */
.btn-primary:hover {
    background-color: var(--secondary); /* change la couleur de fond en magenta */
    transform: scale(1.05); /* léger zoom */
    box-shadow: 0 0 15px var(--primary), 0 0 25px var(--secondary); /* glow néon */
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 900px) {
    .cpge-section {
        flex-direction: column; /* colonne pour mobiles/tablettes */
        text-align: center; /* centre le texte */
    }
    .cpge-text {
        max-width: 100%; /* texte prend toute la largeur */
    }
}


/* ==========================
   FOOTER
========================== */

/* Style principal du footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 50px 50px 30px; /* Padding large pour PC */
    margin-top: 100px;
    position: relative;
    z-index: 2;
}

/* --- AJOUT CRUCIAL : Adaptation Mobile pour le Footer --- */
@media (max-width: 768px) {
    footer {
        padding: 40px 20px 20px; /* On réduit fortement les marges sur les côtés */
    }
}

/* Conteneur du contenu du footer */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid; /* utilisation d’une grille pour 3 sections */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* colonnes adaptatives */
    gap: 40px;
    margin-bottom: 30px;
}

/* Titres de chaque section */
.footer-section h3 {
    font-family: 'Audiowide', sans-serif;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Texte dans la section "Restons en contact" aligné à droite */
.footer-section:last-child {
    text-align: right;
}

/* Liste des liens dans Navigation et Services */
.footer-section ul {
    list-style: none; /* supprime les puces */
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px; /* espacement vertical */
}

/* Liens de Navigation et Services */
.footer-section a {
    color: var(--text-secondary); /* gris clair */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary); /* cyan */
    transform: translateX(5px);
    display: inline-block;
}

/* ==========================
   SOCIAL LINKS
========================== */

/* Conteneur des liens sociaux */
.social-links {
    display: flex;
    justify-content: flex-end; /* alignement à droite */
    gap: 20px;
    margin-top: 20px;
}

/* Liens sociaux */
.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Icônes sociales */
.social-links a img {
    width: 40px;
    height: 40px;
    display: block;
    transition: all 0.3s ease;
}

/* Effet hover glow cyan sur les icônes */
.social-links a:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 0 5px #00ffff)
            drop-shadow(0 0 10px #00ffff)
            drop-shadow(0 0 20px #00ffff)
            drop-shadow(0 0 30px #00ffff);
}

/* ==========================
   FOOTER BOTTOM
========================== */
.footer-bottom {
    font-family: 'Exo 2', sans-serif;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-bottom a {
    color: white;
}


/* ==========================
   ANIMATIONS
========================== */
@keyframes fadeInUp {
    from {
        opacity: 0; /* invisible au départ */
        transform: translateY(30px); /* décalage vertical */
    }
    to {
        opacity: 1; /* devient visible */
        transform: translateY(0); /* revient à sa position */
    }
}

/* Classe générique pour fade-in */
.fade-in {
    opacity: 0; /* invisible au départ */
    transform: translateY(30px); /* position initiale */
    transition: all 0.6s ease; /* transition douce */
}

/* Quand l'élément devient visible */
.fade-in.visible {
    opacity: 1; /* devient visible */
    transform: translateY(0); /* revient à sa position normale */
}

/* ==========================
   PAGE SPORT - CSS ADDITIONNEL
========================== */

/* Intro Text */
.sport-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.intro-text strong {
    color: var(--primary); /* Met en valeur les mots clés en Cyan */
}

/* Stats Cards (Compteurs) */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(26, 26, 26, 0.6); /* Fond sombre semi-transparent */
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border-color: var(--primary);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: var(--secondary); /* Magenta pour les chiffres */
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Détail (Similaire à CPGE mais ajusté) */
.sport-detail-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 20px;
}

.sport-image-wrapper {
    flex: 1;
}

.sport-image-wrapper img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: transform 0.3s;
}

.sport-image-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.sport-content {
    flex: 1;
}

.sport-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.sport-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sport-achievements {
    list-style: none;
}

.sport-achievements li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 3px solid var(--secondary); /* Barre magenta à gauche */
    color: var(--text-primary);
}

/* Galerie Photo */
.gallery-section {
    text-align: center;
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.gallery-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--accent); /* Jaune au survol */
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
    z-index: 10;
}

/* Responsive Sport */
@media (max-width: 900px) {
    .sport-detail-section {
        flex-direction: column;
        text-align: center;
    }
    
    .sport-achievements li {
        border-left: none;
        border-bottom: 2px solid var(--secondary);
        padding-left: 0;
        padding-bottom: 5px;
        display: inline-block;
        margin: 10px;
    }
}

/* ==========================
   SECTION ARCHIVES / MÉDIAS
========================== */

.media-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.media-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-secondary); /* Un peu plus discret que les titres principaux */
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.media-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.8;
}

.media-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Carte Lien style "Fichier système" */
.media-link-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet hover : liseré néon sur le côté gauche */
.media-link-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary); /* Cyan */
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.media-link-card:hover::before {
    transform: scaleY(1);
}

.media-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px); /* Léger décalage vers la droite */
    border-color: rgba(0, 255, 255, 0.3);
}

.media-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    filter: grayscale(100%); /* Gris par défaut */
    transition: filter 0.3s;
}

.media-link-card:hover .media-icon {
    filter: grayscale(0%); /* Couleur au survol */
}

.media-info {
    text-align: left;
    flex: 1; /* Prend toute la place dispo */
}

.media-source {
    display: block;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.media-desc {
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.media-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

.media-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.media-link-card:hover .media-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
    .media-link-card {
        flex-direction: row; /* On garde la ligne même sur mobile si possible */
        padding: 15px;
    }
    .media-desc {
        font-size: 1rem;
    }
    .media-icon {
        font-size: 1.5rem;
        margin-right: 15px;
    }
}

/* Style spécifique pour la note de contexte */
.media-note {
    font-size: 0.75rem;       /* Plus petit que le reste */
    color: var(--text-secondary);
    margin-top: 8px;          /* Un peu d'espace avec le titre */
    font-style: italic;       /* Italique pour le côté "Note" */
    opacity: 0.7;             /* Un peu transparent pour ne pas attirer l'oeil tout de suite */
    line-height: 1.4;
    border-left: 2px solid var(--accent); /* Petit rappel jaune sur le côté */
    padding-left: 8px;
}

/* Au survol de la carte, on rend la note plus lisible */
.media-link-card:hover .media-note {
    opacity: 1;
    color: #fff;
}

/* Style spécifique pour la carte Gouvernementale */
.media-link-card.gouv-card {
    border-left: 3px solid #fff; /* Liseré blanc sobre (ou bleu/blanc/rouge si tu oses) */
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.media-link-card.gouv-card .media-source {
    color: #fff; /* Blanc pur pour faire "Administration" */
    font-weight: bold;
}

/* Changement de couleur de l'icône au survol */
.media-link-card.gouv-card:hover .media-icon {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}