/* --- VARIABLES GLOBALES (Synchronisées avec style-main.css) --- */
:root {
    /* Polices */
    --font-pixel: 'VT323', monospace;

    /* Couleurs Thème */
    --bg-color: #0b0205;
    --card-bg: #0b0205; /* Fond noir pour l'effet RPG */
    --accent-color: #811e1e;
    --accent-hover: #ff5e5e;
    --text-color: #d13a3a;
    --header-color: #ffffff;
    --border-color: #811e1e;
    --nav-bg: rgba(11, 2, 5, 0.95);

    /* Couleurs Badges */
    --badge-osint: #ff0000;
    --badge-socmint: #1f6feb;
    --badge-geoint: #238636;
    --badge-imint: #8957e5;
    --badge-tech: #d29922;
    --badge-humint: #ffd988;
    --badge-finint: #238636;
    --badge-masint: #0095ff;
    --badge-sigint: #1eff00;
    --badge-techint: #ff00f2;
    --badge-chronos: #ffb300;
}

/* --- BASE & LAYOUT --- */
html {
    height: 100%;
}

body {
    font-family: var(--font-pixel);
    background: 
        linear-gradient(rgba(11, 2, 5, 0.4), rgba(11, 2, 5, 0.4)), 
        url('../images/background.gif') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
    /* REDUIT : de 80px à 60px pour remonter le bloc de contenu */
    padding-top: 60px; 
    image-rendering: pixelated;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Effet Scanlines CRT */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 10000;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/* Container prend tout l'espace restant pour pousser le footer */
.container {
    max-width: 1000px;
    /* MODIFIÉ : 0 au lieu de 40px en haut pour coller le titre à la navbar */
    margin: 0 auto 40px auto; 
    padding: 20px;
    flex: 1; 
    width: 100%;
    box-sizing: border-box;
}

/* --- 1. NAVBAR & ALIGNEMENT --- */
.navbar {
    background-color: var(--nav-bg);
    border-bottom: 4px solid var(--accent-color);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    /* AJOUTE OU VÉRIFIE CECI : */
    transition: top 0.8 s ease-in-out;
}

.nav-container {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    padding: 10px 40px;
    max-width: 100%;
}

.nav-logo {
    font-family: var(--font-pixel);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 2rem;
    justify-self: start;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-self: center;
}

/* --- 2. EFFETS DE GLITCH --- */
.diag-link {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 2rem;
    text-transform: uppercase;
    transition: all 0.2s;
}

.diag-link:hover {
    color: #fff;
    transform: scale(1.05);
}

.diag-link:hover::before {
    content: ">";
    position: absolute;
    left: -20px;
    color: var(--accent-hover);
}

.diag-link:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-color);
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
    z-index: -1;
}

@keyframes glitch-anim {
    0% { transform: translate(2px, -1px); text-shadow: -2px 0 red; clip-path: inset(10% 0 30% 0); }
    50% { transform: translate(-1px, 1px); text-shadow: 2px 0 blue; clip-path: inset(40% 0 10% 0); }
    100% { transform: translate(0); text-shadow: none; clip-path: inset(0); }
}

.nav-spacer { width: 200px; }

/* --- TITRES --- */
h2 {
    font-family: var(--font-pixel);
    color: var(--accent-hover);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

/* --- LOGIQUE RESPONSIVE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: 0.3s;
}

@media (max-width: 1100px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    .nav-spacer { display: none; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        padding: 20px 0;
        gap: 20px;
        border-bottom: 4px solid var(--accent-color);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .diag-link {
        display: inline-block;
        width: fit-content;
        margin: 0 auto;
        position: relative;
    }
}

/* --- SECTION CARD (Style RPG) --- */
.section-card {
    background: var(--card-bg);
    border: 4px solid var(--accent-color);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 8px var(--accent-color);
    animation: border-flicker 4s infinite;
}

@keyframes border-flicker {
    0%, 100% { border-color: var(--accent-color); }
    50% { border-color: #5a1414; }
}

/* --- TERMINAL DE CONTACT --- */
.terminal-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    /* SUPPRIMEZ OU COMMENTEZ LA LIGNE CI-DESSOUS */
    /* border: 1px solid rgba(129, 30, 30, 0.3); */
}

.terminal-line {
    margin: 10px 0;
    color: var(--header-color);
    font-size: 1.2rem;
}

.status-online {
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
    animation: blink 1.5s infinite;
}

.terminal-separator {
    height: 2px;
    background: var(--accent-color);
    margin: 20px 0;
    opacity: 0.5;
}

.terminal-hint {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- BOUTON D'ENVOI --- */
.submit-btn {
    display: block;
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.3rem;
    font-family: var(--font-pixel);
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent-hover);
    transform: translateY(-2px);
}

/* --- FOOTER (Fixé en bas) --- */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--accent-color);
    font-family: var(--font-pixel);
    width: 100%;
    margin-top: auto; 
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 5px var(--accent-hover);
}


/* --- TITRES DE PAGES (Remplacement ASCII) --- */
.page-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* REDUIT : de 30px à 10px pour coller l'image en haut */
    padding: 10px 0; 
    width: 100%;
}

.page-title-img {
    width: 800px; 
    max-width: 95%; 
    height: auto;
    
    image-rendering: pixelated; 
    filter: drop-shadow(0 0 8px rgba(129, 30, 30, 0.6));
    
    /* MODIFIÉ : marge mise à 0 pour éviter tout décalage sous l'image */
    margin-bottom: 0;
}

/* --- OPTIMISATION DES IMAGES DANS LES WRITEUPS --- */

/* Conteneur global pour éviter les débordements */
.section-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Centre l'image avec un espace haut/bas */
    border: 3px solid var(--accent-color); /* Rappel de la bordure rouge */
    box-shadow: 4px 4px 0px #000; /* Ombre portée style pixel */
    image-rendering: pixelated; /* Pour garder l'aspect net sur les petits éléments */
}

/* Style spécifique pour les captures d'écran de l'interface */
.screenshot {
    border-radius: 0; /* On reste sur du carré rétro */
    transition: transform 0.2s ease;
}

/* Petit effet au survol sur les preuves GEOINT */
.screenshot:hover {
    transform: scale(1.02);
    border-color: #ffffff;
}

/* Ajustement des listes pour qu'elles ne collent pas aux images */
.section-card li {
    margin-bottom: 10px;
    list-style-type: "» "; /* Puce personnalisée rétro */
    color: var(--header-color);
}

/* Responsive : sur mobile, on réduit les bordures */
@media (max-width: 768px) {
    .section-card img {
        border-width: 2px;
    }
}

/* --- SECTION PLATEFORMES --- */
.platform-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 45px;
    background: rgba(129, 30, 30, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--header-color);
    text-decoration: none;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Style pour les icônes (Crâne pour Root-Me et Logo LinkedIn) */
.platform-btn i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--accent-hover); /* Rouge clair par défaut */
    transition: color 0.2s ease;
    display: inline-block;
}

/* --- EFFETS AU SURVOL (HOVER) --- */

.platform-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-hover);
    transform: translateY(-2px);
}

/* Au survol, l'icône et le texte deviennent blanc pur */
.platform-btn:hover i {
    color: #ffffff;
}

/* --- STYLE DU COMPTEUR DE VISITES --- */
.pixel-counter {
    display: inline-block;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #811e1e;
    padding: 10px 20px;
    color: #ff5e5e; 
    font-family: 'VT323', monospace;
    font-size: 1.5rem; /* <--- TAILLE DU COMPTEUR */
    image-rendering: pixelated;
}

/* --- CONTENU DE LA PAGE WHOAMI --- */

/* Texte d'introduction principal */
.intro-text {
    line-height: 1.6;
    font-size: 1.8rem; /* <--- TAILLE DU TEXTE D'INTRO */
    color: var(--header-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    margin: 20px 0;
}

/* Libellés des catégories (Cursus, Plateformes) */
.bio-item .label {
    display: block;
    font-size: 2.2rem; /* <--- TAILLE DES TITRES "> Cursus :" */
    color: var(--accent-hover);
    margin-bottom: 10px;
}

/* Liste du cursus */
.bio-list {
    list-style: none;
    padding-left: 0;
}

.bio-list li {
    margin-bottom: 15px;
    font-size: 1.8rem; /* <--- TAILLE DES LIGNES DE FORMATION */
    color: var(--header-color);
}

/* Dates entre crochets [2025-2028] */
.date {
    color: var(--accent-hover);
    font-weight: bold;
    font-size: 1.8rem; /* <--- TAILLE DES DATES */
    margin-right: 10px;
}

/* Sous-détails (Alternance, description lycée) */
.sub-detail {
    font-size: 1.5rem; /* <--- TAILLE DES DESCRIPTIONS SOUS LES TITRES */
    color: #888;
    margin-left: 20px;
    margin-top: 5px;
    line-height: 1.4;
}

/* --- STYLE DE LA LIGNE SÉPARATRICE --- */
.simple-line {
    border: none;               /* Supprime la bordure par défaut du navigateur */
    height: 3px;               /* Définit l'épaisseur de la ligne */
    background-color: #d13a3a; /* Applique ton rouge de bordure */
    opacity: 0.8;              /* Optionnel : pour un look plus "terminal" */
    margin: 20px 0;            /* Espace au-dessus et en-dessous */
    width: 100%;               /* S'assure qu'elle prend toute la largeur du container */
    animation: border-flicker 4s infinite; /* Utilise ton animation existante */
}

.ascii-subtitle, .subtitle{
    font-size: 1.8em;
}

/* --- PAGE MUSIQUE : GRILLE ET CARTES --- */

/* 1. Titres de sections (ME SUIVRE, DISCOGRAPHIE) */
.category-title, h2.category-title {
    font-family: var(--font-pixel);
    color: var(--accent-hover);
    font-size: 2.2rem; /* Aligné sur WhoAmI */
    text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 2. Texte d'introduction principal (sous le titre de la page) */
.music-intro p, .subtitle, .ascii-subtitle {
    font-size: 1.8rem;
    color: var(--header-color);
    line-height: 1.4;
    text-align: center;
}

/* 3. Grille de la discographie (2 colonnes sur PC, 1 sur Mobile) */
.release-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 800px) {
    .release-grid {
        grid-template-columns: 1fr; 
    }
}

/* 4. Style des cartes de musique */
.music-card {
    background: var(--card-bg);
    border: 4px solid var(--accent-color);
    padding: 15px;
    box-shadow: 0 0 0 4px var(--bg-color), 4px 4px 0px var(--accent-color);
    display: flex;
    flex-direction: column;
    /* On aligne tout vers le haut au lieu de space-between */
    justify-content: flex-start; 
    animation: border-flicker 4s infinite;
}



.release-date {
    font-size: 1.6rem;
    color: var(--accent-hover);
    font-family: var(--font-pixel);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

/* Supprime l'espace sous l'image pour que la date soit juste en dessous */
.album-art img {
    width: 100%;
    height: auto;
    border: 2px solid var(--accent-color);
    image-rendering: pixelated;
    margin-bottom: 5px; /* Réduit de 10px à 5px */
}

/* Force les titres à avoir la même marge pour l'alignement visuel */
.music-info h3 {
    font-family: var(--font-pixel);
    color: var(--accent-hover);
    font-size: 2rem;
    margin: 0 0 10px 0; /* Marge constante en bas uniquement */
    text-transform: uppercase;
    line-height: 1; /* Évite les décalages si le titre fait deux lignes */
}

/* Alignement du texte de description */
.music-info p {
    font-size: 1.5rem; 
    color: #ccc;
    line-height: 1.2;
    margin: 0 0 15px 0; /* Espace constant avant le lecteur audio */
    min-height: 3.6em; /* Optionnel : force une hauteur minimum pour aligner les lecteurs SoundCloud */
}

/* 8. Liens Sociaux (Boutons) */
.platforms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(129, 30, 30, 0.1);
    border: 2px solid var(--accent-color);
    text-decoration: none;
    transition: all 0.2s;
}

.platform-link span {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--header-color);
}

.platform-link img {
    width: 24px;
    height: 24px;
    filter: grayscale(1) brightness(1.5);
    transition: all 0.3s ease;
}

/* Le filtre s'enlève quand on survol le LIEN (le parent) */
.platform-link:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.1);
}

/* 9. Badges */
.badge.tech {
    background-color: var(--badge-tech);
    color: #000;
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    padding: 2px 8px;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
}

/* Ajustement précis pour la vidéo YouTube */
.video-container {
    border: 2px solid var(--accent-color);
    background: #000;
    margin-top: 10px;
    position: relative;
    width: 100%;
    /* Ratio 16:9 pour éviter les bandes noires */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- SECTION SON DU MOMENT (FEATURED) --- */

/* Augmente la taille du titre (H3) */
.featured-info h3 {
    font-size: 2.2rem; /* Plus imposant que les titres de la grille */
    color: var(--accent-hover);
    margin: 15px 0 10px 0;
    text-transform: uppercase;
    font-family: var(--font-pixel);
}

/* Augmente la taille de la description (P) */
.featured-info p {
    font-size: 1.8rem; /* Aligné sur la taille de ton introduction */
    color: var(--header-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Ajustement du badge pour qu'il ne paraisse pas trop petit à côté */
.featured-info .badge.tech {
    font-size: 1.3rem;
    padding: 4px 12px;
}