/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    --bg-dark: #111827;
    --blue-led: #3b82f6;
    --blue-hover: #60a5fa;
    /* --glass-bg: rgba(31, 41, 55, 0.6); */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --neon-cyan: #00f2ff;
    --neon-green: #00ffaa;
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* { cursor: none !important; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Effet de grain global */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 50;
}

/* ==========================================================================
   2. INTERFACE (CURSOR, SCROLLBAR)
   ========================================================================== */
/* On change aussi la lueur du curseur pour correspondre au thème */
#custom-cursor {
    width: 12px; height: 12px;
    /* background-color: var(--blue-led); */
    background-color: var(--neon-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* box-shadow: 0 0 15px var(--blue-led), 0 0 30px var(--blue-led); */
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px rgba(0, 255, 170, 0.5);
    transition: transform 0.1s ease-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-hover); }

/* ==========================================================================
   3. NAVIGATION (HEADER)
   ========================================================================== */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-bottom: 1px solid #1f2937;
    transition: padding 0.8s var(--transition-smooth), background-color 0.3s ease;
    padding: 1rem;
}

/* Agrandissement de la barre au survol du logo */
.navbar:has(.nav-logo:hover) {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.nav-container {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.nav-item-dropdown:hover .nav-link {
    color: var(--blue-led);
}

/* Effet de lueur sur le dropdown */
#projects-dropdown .bg-gray-900\/95 {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(59, 130, 246, 0.05);
}

.logo-img {
    height: 2rem; /* h-8 */
    transition: transform 0.8s var(--transition-smooth);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    transition: transform 0.8s var(--transition-smooth), color 0.4s ease;
    transform-origin: left center;
}

/* Hover Logo & Nom */
.nav-logo:hover .logo-img { transform: scale(1.25); }
.nav-logo:hover .logo-text {
    transform: scale(1.15);
    color: var(--blue-hover);
}

.nav-links-container {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    align-items: center;
}
@media (min-width: 768px) { .nav-links-container { display: flex; } }

.nav-link { transition: color 0.3s; }
.nav-link:hover { color: var(--blue-hover); }

/* ==========================================================================
   4. LAYOUT & SECTIONS
   ========================================================================== */
section {
    max-width: 80rem;
    margin: 0 auto;
    padding: 5rem 1.25rem;
}

section[id] { scroll-margin-top: 5rem; }

.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem); /* S'adapte entre 3rem et 6rem selon l'écran */
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #9ca3af;
    max-width: 42rem;
    line-height: 1.625;
    text-align: center;
}

.hero-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background-color: white;
    color: black;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: 0.3s var(--transition-smooth);
}
.btn-primary:hover { transform: scale(1.05); background-color: #f3f4f6; }

.btn-outline {
    padding: 1rem 2rem;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    font-weight: bold;
    transition: 0.3s var(--transition-smooth);
}
.btn-outline:hover { background-color: #1f2937; transform: scale(1.05); }

/* ==========================================================================
   5. COMPOSANTS (CARDS, BADGES, BUTTONS)
   ========================================================================== */
.project-card {
    /*
    backdrop-filter: blur(10px);
    margin: 0;
    /* Better display */
    position: relative;
    height: 450px; /* On fixe une hauteur minimum pour la carte */
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.6s var(--transition-smooth), border-color 0.4s, box-shadow 0.6s;
    z-index: 1;
}

/* --- HOVER --- */
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-led);
    /* box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.2); */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* Cibler spécifiquement le placeholder quand on survole la carte */
.project-card:hover img[src*="icon-bg.png"] {
    /* object-image-fit: contain; /* L'image s'ajuste pour être vue entièrement */
    object-fit: contain;
    transform: scale(1);    /* Petit effet de dézoom pour qu'il respire dans le cadre */
    filter: brightness(1);
}

.project-card:hover .project-media {
    height: 200px;
}

.project-card:hover .project-viewer {
    transform: scale(1); /* Dé-zoom */
    filter: brightness(1); /* Plus clair */
}

.project-card:hover .project-body {
    /* margin-top: 200px; /* On laisse la place à l'image du haut *
    height: calc(100% - 200px); /* Prend EXACTEMENT la place restante
    transition: height 0.8s var(--transition-smooth);
    justify-content: flex-start; /**/
    top: 200px;
    background: transparent; /* On enlève le dégradé "poster" */
}

/* ÉTAT SURVOL : On restreint le texte à 3 lignes pour laisser place à l'image */
.project-card:hover .project-text {
    max-height: 4.5rem;
    flex-grow: 0;
}

/* Affichage des contrôles uniquement au survol */
.viewer-controls {
    position: absolute;
    top: 100px !important;                                                      /* Vertically center to image (height=200px) */
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    pointer-events: none;                                                       /* Can't click on it if hide */
}

.project-card:hover .viewer-controls,
.project-card:hover .img-counter {
    display: flex !important;
    opacity: 1;
    pointer-events: all;
}

/* Cache les éléments par défaut */
.viewer-controls, .img-counter {
    /* display: none !important; */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

/* Les affiche uniquement si la carte a la classe et est survolée */
.project-card.has-multiple-images:hover .viewer-controls,
.project-card.has-multiple-images:hover .img-counter {
    /* display: block !important; */
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 4rem;
    /* border-left: 8px solid #2563eb; */
    border-left: 8px solid var(--neon-cyan);
    padding-left: 1.5rem;
}

.section-subtitle {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    /* border-left: 4px solid #2563eb; */
    border-left: 4px solid var(--neon-cyan);
    padding-left: 1rem;
}

/* Grilles de projets */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-content: start;
}

.project-viewer {
    /* opacity: 1;
    transition: opacity 0.8s ease-in-out; /* Contrôle la vitesse du fondu */
    background-color: #050a0f; /* Même couleur que le fond pour éviter les flashs */
    /* Better display */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* Zoomé par défaut */
    transition: transform 0.8s var(--transition-smooth), filter 0.8s var(--transition-smooth);
    filter: brightness(0.8); /* Plus sombre pour lire le texte par-dessus */
}

.project-media {
    /* Better display */
    background-color: var(--glass-bg);
    position: absolute; /* L'image couvre toute la carte */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 100% de la carte au repos */
    z-index: 1;
    transition: height 0.8s var(--transition-smooth);
}

.project-media.loading {
    position: relative;
    background-color: #0a0a0a !important;
    overflow: hidden;
}

.project-media.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    100% { transform: translateX(100%); }
}

.project-body {
    position: absolute;
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    /* Better display *
    flex-grow: 1;
    justify-content: flex-start;
    margin-top: auto; /* Pousse le texte vers le bas par défaut */
    /* inset: 0; /**/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5; /* Toujours au-dessus de l'image */
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.4) 50%, transparent 100%);
    transition: top 0.8s var(--transition-smooth), background 0.6s;
}

.project-body a:last-child {                                                    /* Keep "See code" button visible */
    margin-top: auto;
    /* padding-top: 1rem; */
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    max-height: none !important;
    overflow-y: auto;    /* Active le scroll si le texte dépasse */
    flex-grow: 1;
    /* max-height: 15rem;      /* 3 lignes (basé sur un line-height de 1.5rem) */
    padding-right: 4px;  /* Espace pour la scrollbar */
    /* Animation douce lors du redimensionnement */
    transition: all 0.6s var(--transition-smooth);
    scrollbar-width: thin;                                                      /* Scrollbar for Firefox */
    scrollbar-color: var(--blue-led) transparent;
}

.project-text::-webkit-scrollbar {                                              /* Scrollbar for Chrome/Edge/Safari */
    width: 4px;                                                                 /* Thin */
}

/* Désactive les boutons haut/bas de la scrollbar et force leur taille à 0 */
.project-text::-webkit-scrollbar-button,
.project-text::-webkit-scrollbar-button:single-button {
    display: none !important;
    height: 0px !important;
    width: 0px !important;
}

.project-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.project-text::-webkit-scrollbar-thumb {
    background: var(--blue-led);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--blue-led); /* Petit effet néon */
}

.project-text::-webkit-scrollbar-thumb:hover {
    background: var(--blue-hover);
}

.project-text::-webkit-scrollbar-corner {
    background: transparent;                                                    /* Hide scrollbar corners */
}

.project-title, .project-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

/* Tags de projets */
.tag {
    display: inline-block;
    width: fit-content;
    font-size: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.tag-python { background-color: #450a0a; color: #fca5a5; }
.tag-unreal { background-color: #172554; color: #93c5fd; }
.tag-unity { background-color: #052e16; color: #86efac; }
.tag-general { background-color: #422006; color: #fde047; }

/* Boutons */
.btn-contact {
    background-color: #2563eb;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: 0.3s;
    font-weight: bold;
}
.btn-contact:hover { background-color: #1d4ed8; transform: translateY(-2px); }

/* ==========================================================================
   6. ANIMATIONS & EFFETS
   ========================================================================== */
.gradient-text {
    /* background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6); */
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.3));
}

/* Positionnement des bulles d'icônes */
.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    display: flex;
    font-size: 2rem;                                                            /* icon size */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    z-index: 30; /* Au-dessus de tout */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-icon:hover {
    color: #60a5fa; /* blue-400 */
    border-color: rgba(96, 165, 250, 0.5);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Social network icon around logo */
.icon-1 { top: -10px; left: -10px; animation: floatIcon 4s ease-in-out infinite; }
.icon-2 { top: 40%; right: -25px; animation: floatIcon 5s ease-in-out infinite 1s; }
.icon-3 { bottom: 20px; left: -30px; animation: floatIcon 6s ease-in-out infinite 0.5s; }

.about-card-container:hover .icon-1 { top: -30px;  left: -30px; }
.about-card-container:hover .icon-2 { right: -45px; }
.about-card-container:hover .icon-3 { bottom: 0px;  left: -40px; }

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

/* --- Icônes Sociales Page Principale --- */

.social-icon {
    font-size: 2.5rem;          /* Taille imposante (environ 40px) */
    color: white;               /* Base blanche */
    opacity: 0.4;               /* Semi-transparent au repos */
    transition: all 0.5s var(--transition-smooth); /* Animation fluide et lente */
    display: inline-block;
}

.social-icon:hover {
    opacity: 1;                 /* Devient totalement opaque */
    transform: translateY(-8px); /* Petit bond vers le haut */

    /* Optionnel : ajout d'un petit halo blanc pour l'effet "néon blanc" */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Espacement si nécessaire (si gap-4 dans le HTML est trop serré) */
.social-container {
    gap: 1.5rem; /* Ajuste l'espace entre les icônes si besoin */
}

/* ==========================================================================
   7. FOOTER REVEAL - STRUCTURE EXACTE
   ========================================================================= */
.footer-reveal {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.95);
    border-top: 1px solid #1f2937;
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    /* Animation symétrique à 0.8s */
    transition: transform 0.8s var(--transition-smooth),
                height 0.8s var(--transition-smooth);
    z-index: 40;
    height: 3rem;
    overflow: hidden;
}

.footer-reveal:hover {
    height: 14rem;
}

/* Ton conteneur principal */
.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Permet à la dernière colonne de s'étirer pour le "justify-between" */
    height: 10rem; /* Hauteur interne fixe pour le contenu */
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.footer-reveal:hover .footer-content {
    opacity: 1;
}

/* Bloc 1 : Logo & Description */
.footer-content > div:nth-child(1) {
    flex: 1;
}

/* Bloc 2 : Ton "grid grid-cols-2" (Navigation & Réseaux) */
.footer-content > div:nth-child(2) {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem; /* Augmente l'espace entre Navigation et Réseaux */
    justify-items: center; /* Centre les deux listes dans leur zone */
}

/* Bloc 3 : Ton "flex flex-col items-end" (Status & Copyright) */
.footer-content > div:nth-child(3) {
    flex: 1;
    /* justify-between dans ton HTML poussera le copyright en bas
       car le parent (.footer-content) a items-stretch */
}

.footer-handle {
    height: 3rem;
    display: flex; align-items: center; justify-content: center;
}

.footer-handle-text {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    color: #6b7280;
    transition: color 0.3s;
    text-transform: uppercase;
}

.footer-reveal:hover .footer-handle-text { color: var(--blue-hover); }

#footer-placeholder a:not(.footer-icon-link) {
    display: block;      /* Pour que la marge s'applique bien */
    padding-top: 0.1rem; /* Équivalent à ~8px */
}

/* Tablette & Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        height: auto;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .footer-content > div:nth-child(3) {
        align-items: center;
    }
}

.footer-icon-link {
display: inline-block;
    color: #6b7280; /* text-gray-500 */
    font-size: 1.875rem; /* text-3xl */
    /* Transition lente : 0.5s au lieu de 0.3s pour plus de douceur */
    transition: transform 0.5s var(--transition-smooth), color 0.5s ease, filter 0.5s ease;
}

.footer-icon-link:hover {
    transform: scale(1.2) translateY(-8px); /* S'agrandit et monte un peu */
}

/* Effets de couleur individuels au survol */
.footer-icon-link[data-link="github"]:hover { color: #ffffff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }
.footer-icon-link[data-link="linkedin"]:hover { color: #0077b5; filter: drop-shadow(0 0 8px rgba(0,119,181,0.5)); }
.footer-icon-link[data-link="itchio"]:hover { color: #fa5c5c; filter: drop-shadow(0 0 8px rgba(250,92,92,0.5)); }
.footer-icon-link[data-link="email"]:hover { color: var(--blue-led); filter: drop-shadow(0 0 8px var(--blue-led)); }

/* ==========================================================================
   8. ABOUT PAGE - TRANSFORMING CARD
   ========================================================================= */

/* Définit la transition smooth pour tous les éléments de la carte */
.about-card-container,
.about-card-mask,
.about-card-image,
.about-card-halo {
    transition: all 0.8s var(--transition-smooth);
}

.about-card-container {
    position: relative;
    width: 20rem; /* w-72 (environ 288px) */
    height: 20rem; /* Carré par défaut (1:1) */
    /* transition: height 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth); */
    display: flex; /* Indispensable pour l'expansion symétrique */
    align-items: center;
    justify-content: center;
    transition: all 0.8s var(--transition-smooth);
    background-color: transparent !important; /* Force bg transparency */
    border: none !important; /* Delete parent's borders */
}

/* Le masque qui contient l'image */
.about-card-mask {
    position: absolute; /* Positionné par rapport au conteneur de la carte */
    width: 100%;
    height: 100%;
    inset: 0; /* Prend toute la place au repos */
    background-color: #000; /* Le fond noir du masque */
    border-radius: 10rem;
    overflow: hidden;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    /* Indispensable pour l'animation symétrique */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.8s var(--transition-smooth);
    z-index: 10;
}

.about-card-image {
    min-width: 20rem;
    min-height: 20rem;
    /* object-fit: cover; /* L'image remplit l'espace sans se déformer */
    object-fit: contain; /* Garde le logo intact au centre */
    transition: transform 0.8s var(--transition-smooth);
    /* On empêche l'image de répondre aux changements de taille du parent */
    flex-shrink: 0;
}

/* Le Halo Lumineux */
.about-card-halo {
    position: absolute;
    inset: 0;
    border-radius: 10rem;
    /* Ombre de base douce */
    box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.3);
    z-index: -1; /* Derrière la carte */
    transition: all 0.8s var(--transition-smooth);
}

/* Hover functions */
.about-card-container:hover {
    width: 22rem;               /* Enlarge card when hover */
    height: 33rem;
    transform: translateY(-10px); /* Légère lévitation supplémentaire */
}

.about-card-container:hover .about-card-mask {
    /* On passe du rayon 10rem (cercle) à 1.5rem (coins de carte à jouer) */
    border-radius: 1.5rem;
    /* box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); */
    background-color: rgba(0, 0, 0, 0.4);
}

.about-card-container:hover .about-card-image {
    border-radius: 50%;
    transform: translateY(0px) scale(0.95);
    filter: brightness(1.1) ;/*drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)); */
    opacity: 0.9;
}

.about-card-container:hover .about-card-halo {
    border-radius: 1.5rem;
    /* Le halo devient plus brillant et suit la forme */
    box-shadow: 0 30px 70px -5px rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   9. READ ME - CLEANING CONTENT
   ========================================================================= */

/* Style du contenu du README dans la modale */
#modal-readme {
    white-space: normal; /* Permet au texte de s'adapter à la largeur */
    line-height: 1.6;    /* Espace entre les lignes pour la lisibilité */
    color: #d1d5db;      /* Gris doux (text-gray-300) */
}

/* On force les espaces entre les paragraphes que GitHub omet parfois */
#modal-readme p {
    margin-bottom: 1.25rem;
}

/* On stylise les titres pour qu'ils soient sobres */
#modal-readme h1, #modal-readme h2, #modal-readme h3 {
    color: white;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border: none; /* On enlève les lignes de séparation par défaut de GitHub */
}

/* On cache les éventuelles icônes SVG qui auraient survécu */
#modal-readme svg {
    display: none !important;
}

/* On stylise les listes pour qu'elles soient propres */
#modal-readme ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#modal-readme-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
    /* Custom Scrollbar plus discrète */
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 transparent;
}
