/* ==========================================================================
   1. VARIABLES & CONFIGURATION GLOBALE
========================================================================== */

/* Ici, je définis toutes les variables (couleurs, polices). C'est le "panneau de configuration" du site. */

:root {
    /* --- PALETTE DE COULEURS --- */
    --fond-sombre: #0f172a; 
    --fond-carte: rgba(30, 41, 59, 0.6); /* L'effet de transparence "verre" */
  
    /* --- TYPOGRAPHIE --- */
    --texte-blanc: #f8fafc;
    --texte-gris: #94a3b8;
    --police-principale: 'Montserrat', sans-serif;
  
    /* --- ACCENT (La couleur violette principale) --- */
    --couleur-accent: #6366f1; 
    --lueur-accent: rgba(99, 102, 241, 0.5); /* Pour les ombres brillantes */
  
    /* --- BORDURES --- */
    --bordure-verre: 1px solid rgba(255, 255, 255, 0.1);
}

/* Je configure le scroll fluide pour toute la page */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Important : décale le scroll pour ne pas être caché par le menu */
    /* Scrollbar Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--couleur-accent) var(--fond-sombre);
}

/* Reset basique : j'enlève les marges par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--police-principale);
    color: var(--texte-blanc);
    line-height: 1.6;
    /* Je fixe le fond dégradé pour qu'il reste immobile quand on scrolle */
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a, #000000);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. SCROLLBAR PERSONNALISÉE (Chrome, Edge, Safari)
========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--fond-sombre);
}

::-webkit-scrollbar-thumb {
    background-color: var(--couleur-accent);
    border-radius: 10px;
    border: 2px solid var(--fond-sombre);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4f46e5;
}

/* ==========================================================================
   3. CLASSES UTILITAIRES & COMPONENTS GLOBAUX
========================================================================== */

/* Conteneur principal qui centre le contenu et gère les marges */
.conteneur {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;   
}

/* Style des gros titres de section (H2) */
.titre-section {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    /* J'applique un dégradé de couleur sur le texte lui-même */
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ma classe "Verre" standard utilisée sur presque toutes les boîtes */
.boite-contenu {
    background-color: var(--fond-carte);
    backdrop-filter: blur(5px);
    border: var(--bordure-verre);
    color: var(--texte-blanc);
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* Bouton violet plein (utilisé pour le CV) */
.bouton-plein {
    display: inline-block;
    background-color: var(--couleur-accent);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: bold;
    border: none;
    box-shadow: 0 0 20px var(--lueur-accent);
    transition: transform 0.2s;
}

.bouton-plein:hover { 
    transform: scale(1.05); 
}

/* Conteneur Vidéo Responsive (Youtube/PeerTube) */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 magique */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
========================================================================== */

header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: var(--bordure-verre);
    padding: 15px 0;
    position: sticky; /* Je colle le menu en haut de l'écran */
    top: 0;
    z-index: 1000;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--couleur-accent);
    letter-spacing: -1px;
    text-shadow: 0 0 15px var(--lueur-accent);
}

.liens-nav {
    display: flex;
    gap: 30px;
}

.liens-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--texte-gris);
    position: relative;
}

.liens-nav a:hover {
    color: #fff;
}

/* Animation du petit trait sous les liens */
.liens-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--couleur-accent);
    transition: width 0.3s;
}

.liens-nav a:hover::after {
    width: 100%;
}

/* ==========================================================================
   5. SECTION À PROPOS (HERO)
========================================================================== */

.profil-flex {
    padding: 50px 50px 0 50px;
    border-radius: 20px;
    display: flex;
    align-items: stretch; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden; 
    position: relative;
}

.texte-profil { 
    flex: 2; 
}

.texte-profil a { 
    margin-bottom: 50px; 
}

.texte-profil h3 { 
    font-size: 2.5rem; 
    margin-bottom: 5px; 
    color: #fff; 
    font-weight: 700; 
}

.texte-profil h4 { 
    font-size: 1.2rem; 
    margin-bottom: 25px; 
    font-weight: 600; 
    color: var(--couleur-accent); 
}

.texte-profil p { 
    color: var(--texte-gris); 
    margin-bottom: 15px; 
}

.photo-profil {
    flex: 2;
    display: flex;          
    align-items: flex-end;   
    justify-content: center;
    max-width: 90%;
}

.photo-profil img {
    width: auto; 
    max-width: 100%;
    object-fit: contain;
    display: block; 
    border-radius: 0; 
    border: none;
    box-shadow: none;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.5));
}

/* ==========================================================================
   6. FORMATIONS
========================================================================== */

/* Cartes horizontales cliquables */
.carte-formation {
    background-color: var(--fond-carte);
    backdrop-filter: blur(5px);
    border: var(--bordure-verre);
    color: var(--texte-blanc);
    border-radius: 50px;
    padding: 20px 35px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carte-formation:hover {
    transform: translateY(-5px);
    background: rgba(40, 50, 80, 0.9);
    border-color: var(--couleur-accent);
    box-shadow: 0 0 20px var(--lueur-accent);
}

.infos-gauche { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.logo-ecole-mini { 
    height: 45px; 
    width: auto; 
    object-fit: contain; 
}

.texte-ecole h3 { 
    font-size: 1.1rem; 
    margin-bottom: 2px; 
}

.texte-ecole span { 
    font-size: 0.9rem; 
    color: var(--texte-gris); 
}

/* Animation de la flèche */
.icone-fleche { 
    font-size: 1.2rem; 
    transition: transform 0.3s; 
}

.carte-formation:hover .icone-fleche { 
    transform: translateX(5px); 
    color: var(--couleur-accent); 
}

/* ==========================================================================
   7. SYSTÈME DE MODALES (Popups)
========================================================================== */

/* L'écran sombre en arrière-plan */
.ecran-modale {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none; /* Je désactive les clics quand c'est caché */
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Quand la modale est ciblée par l'URL (#id), elle apparaît */
.ecran-modale:target {
    opacity: 1;
    pointer-events: auto;
}

.fond-flou {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: default;
}

/* La boîte de contenu de la modale */
.boite-modale {
    position: relative;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--texte-blanc);
    width: 90%; 
    max-width: 900px; 
    max-height: 90vh;
    overflow-y: auto; /* Scroll si le contenu est trop long */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    text-align: left;
}

.bouton-fermer {
    position: absolute; 
    top: 20px; 
    right: 25px;
    font-size: 28px; 
    text-decoration: none; 
    color: var(--texte-gris);
    transition: 0.3s; 
    line-height: 1; 
    z-index: 10;
}

.bouton-fermer:hover { 
    color: var(--couleur-accent); 
    transform: rotate(90deg); 
}

/* En-tête et Logo dans la modale */
.entete-modale { 
    float: right; 
    margin-left: 30px; 
    margin-bottom: 20px; 
}

.logo-modale { 
    height: 80px; 
    width: auto; 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); 
}

.icone-modale-top { 
    font-size: 3rem; 
    color: var(--couleur-accent); 
    margin-bottom: 20px; 
    display: block; 
    text-align: center; 
}

/* Typographie interne Modale */
.corps-modale h3 { 
    font-size: 1.4rem; 
    color: var(--texte-blanc); 
    margin-bottom: 15px; 
    font-weight: 700; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding-bottom: 10px; 
}

.corps-modale p { 
    font-size: 0.95rem; 
    color: var(--texte-gris); 
    margin-bottom: 12px; 
    line-height: 1.7; 
}

.corps-modale strong { 
    color: var(--couleur-accent); 
}

.corps-modale::after { 
    content: ""; 
    display: table; 
    clear: both; 
} /* Fix pour le float */

.separateur { 
    border: 0; 
    height: 1px; 
    background: linear-gradient(90deg, transparent, var(--couleur-accent), transparent); 
    margin: 30px 0; 
    opacity: 0.5; 
}

.corps-modale h4 { 
    font-size: 1.2rem; 
    color: var(--texte-blanc); 
    margin-top: 25px; 
    margin-bottom: 15px; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.corps-modale h4::before { 
    content: ''; 
    display: block; 
    width: 5px; 
    height: 20px; 
    background-color: var(--couleur-accent); 
    border-radius: 2px; 
}

/* Boutons de téléchargement docs */
.zone-telechargement { 
    display: flex; 
    gap: 20px; 
    margin-top: 40px; 
    flex-wrap: wrap; 
}

.bouton-doc {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; 
    padding: 15px 20px; 
    width: 180px;
    text-decoration: none; 
    color: var(--texte-gris);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    transition: all 0.3s ease;
}

.bouton-doc:hover {
    background-color: rgba(99, 102, 241, 0.1); 
    border-color: var(--couleur-accent);
    color: var(--texte-blanc); 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.bouton-doc i { 
    font-size: 24px; 
    margin-bottom: 10px; 
    color: var(--couleur-accent); 
}

.bouton-doc span { 
    font-size: 0.85rem; 
    font-weight: 600; 
}

/* ==========================================================================
   8. COMPÉTENCES (Système d'onglets)
========================================================================== */

input[name="type-competence"] { 
    display: none; 
}

.boutons-toggle {
    display: flex; 
    justify-content: center;
    background: rgba(255,255,255,0.05); 
    border: var(--bordure-verre);
    width: fit-content; 
    margin: 0 auto 50px auto;
    border-radius: 30px; 
    padding: 5px;
}

.btn-label {
    padding: 10px 30px; 
    border-radius: 25px; 
    cursor: pointer;
    color: var(--texte-gris); 
    font-weight: 600; 
    transition: 0.3s; 
    user-select: none; 
}

.btn-label:hover { 
    color: #fff; 
}

/* Logique d'activation des onglets */
#tab-humaines:checked ~ .boutons-toggle label[for="tab-humaines"],
#tab-techniques:checked ~ .boutons-toggle label[for="tab-techniques"] {
    background-color: var(--couleur-accent); 
    color: white; 
    box-shadow: 0 0 15px var(--lueur-accent);
}

.grille-competences {
    display: none; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    animation: apparitionDouce 0.5s ease;
}

#tab-humaines:checked ~ .contenu-humaines { 
    display: grid; 
}

#tab-techniques:checked ~ .contenu-techniques { 
    display: grid; 
}

@keyframes apparitionDouce { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Cartes compétences simples */
.carte-simple {
    background-color: var(--fond-carte); 
    backdrop-filter: blur(5px); 
    border: var(--bordure-verre);
    color: var(--texte-blanc); 
    border-radius: 15px; 
    padding: 30px 20px;
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    min-height: 250px; 
    transition: all 0.3s ease; 
    overflow: hidden; 
    position: relative;
}

.carte-simple:hover {
    background: rgba(40, 50, 80, 0.9); 
    border-color: var(--couleur-accent);
    box-shadow: 0 0 20px var(--lueur-accent); 
    transform: translateY(-5px);
}

.carte-simple .icone-violette { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: var(--couleur-accent); 
    transition: transform 0.4s ease; 
}

.carte-simple h3 { 
    margin-bottom: 0; 
    font-size: 1.2rem; 
    transition: transform 0.4s ease; 
}

.carte-simple p {
    color: var(--texte-gris); 
    font-size: 0.9rem; 
    line-height: 1.5;
    max-height: 0; 
    opacity: 0; 
    margin-top: 0; 
    transform: translateY(20px); 
    transition: all 0.4s ease;
}

.carte-simple:hover .icone-violette,
.carte-simple:hover h3 { 
    transform: translateY(-10px); 
}

.carte-simple:hover p { 
    max-height: 150px; 
    opacity: 1; 
    margin-top: 15px; 
    transform: translateY(0); 
}

/* ==========================================================================
   9. EXPÉRIENCES & PROJETS
========================================================================== */

/* Expérience Unique Focus */
.experience-unique { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}

.carte-experience-large {
    background-color: var(--fond-carte); 
    backdrop-filter: blur(10px);
    border: var(--bordure-verre); 
    border-radius: 20px; 
    padding: 30px;
    width: 100%; 
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex; 
    flex-direction: column; 
    gap: 20px;
    position: relative; 
    overflow: hidden;
}

.carte-experience-large:hover {
    transform: translateY(-5px); 
    border-color: var(--couleur-accent);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.header-exp { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.logo-exp {
    background: rgba(255, 255, 255, 0.05); 
    width: 60px; 
    height: 60px;
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.8rem; 
    color: var(--couleur-accent); 
    flex-shrink: 0;
}

.titres-exp h3 { 
    margin: 0; 
    color: #fff; 
    font-size: 1.3rem; 
}

.entreprise { 
    display: block; 
    color: var(--couleur-accent); 
    font-weight: 600; 
    margin-top: 5px; 
}

.date-lieu { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--texte-gris); 
    margin-top: 5px; 
}

.corps-exp p { 
    color: var(--texte-gris); 
    line-height: 1.6; 
    margin: 0; 
}

.tags-skills { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    flex-wrap: wrap; 
}

.tag {
    background: rgba(99, 102, 241, 0.15); 
    color: #a5b4fc; 
    padding: 5px 12px;
    border-radius: 15px; 
    font-size: 0.8rem; 
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.footer-exp { 
    margin-top: auto; 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 15px; 
    text-align: right; 
}

.carte-experience-large .lien-lire-plus { 
    color: var(--couleur-accent); 
    font-weight: 600; 
    font-size: 0.9rem; 
}

/* Grille Projets */
.grille-projets { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    width: 100%; 
}

.carte-projet {
    background-color: var(--fond-carte); 
    border: var(--bordure-verre);
    border-radius: 20px; 
    overflow: hidden; 
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; 
    flex-direction: column; 
    height: 100%;
}

.carte-projet:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--couleur-accent);
}

.image-projet { 
    height: 200px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
    background-color: #1e293b; 
}

.overlay-projet {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(99, 102, 241, 0.8); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s;
}

.overlay-projet i { 
    font-size: 3rem; 
    color: white; 
    transform: scale(0.8); 
    transition: transform 0.3s; 
}

.carte-projet:hover .overlay-projet { 
    opacity: 1; 
}

.carte-projet:hover .overlay-projet i { 
    transform: scale(1.1); 
}

.content-projet { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.content-projet h3 { 
    color: #fff; 
    font-size: 1.4rem; 
    margin-top: 0; 
    margin-bottom: 10px; 
}

.desc-courte { 
    color: var(--texte-gris); 
    font-size: 0.95rem; 
    line-height: 1.5; 
    margin-bottom: 20px; 
    flex-grow: 1; 
}

.tags-projet { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.tags-projet span {
    background: rgba(255, 255, 255, 0.05); 
    color: var(--couleur-accent);
    font-size: 0.8rem; 
    font-weight: 600; 
    padding: 5px 10px;
    border-radius: 5px; 
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   10. DIVERS (Hobbies V2)
========================================================================== */

.grille-hobbies-v2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; 
    width: 100%; 
}

.carte-hobby-v2 {
    position: relative; 
    height: 400px; 
    border-radius: 25px; 
    border: none; 
    overflow: hidden; 
    background-size: cover; 
    background-position: center; 
    background-color: #1e293b;
    transition: transform 0.3s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Bordure magique par-dessus l'image */
.carte-hobby-v2::after {
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    border-radius: 25px; 
    border: var(--bordure-verre); 
    pointer-events: none; 
    z-index: 10; 
    transition: border-color 0.3s ease;
}

.carte-hobby-v2:hover { 
    transform: translateY(-5px); 
}

.carte-hobby-v2:hover::after { 
    border-color: var(--couleur-accent); 
}

/* Animation Rando */
@keyframes slideRando {
    0%, 30% { background-image: url('images/rando1.jpg'); }
    33%, 63% { background-image: url('images/rando2.jpg'); }
    66%, 96% { background-image: url('images/rando3.jpg'); }
    100% { background-image: url('images/rando1.jpg'); }
}

.carte-rando-anim { 
    animation: slideRando 18s infinite; 
    transition: background-image 1s ease-in-out; 
}

/* Filtres et Texte */
.overlay-hobby-v2 {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 20%, rgba(99, 102, 241, 0.3) 100%);
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    padding: 30px; 
    z-index: 1;
}

.overlay-piano { 
    background: linear-gradient(to top, rgba(30, 27, 75, 0.9), rgba(99, 102, 241, 0.4)); 
}

.entete-hobby { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.icone-hobby-v2 { 
    font-size: 2rem; 
    color: var(--couleur-accent); 
    background: rgba(255,255,255,0.1); 
    padding: 10px; 
    border-radius: 12px; 
    backdrop-filter: blur(5px); 
}

.carte-hobby-v2 h3 { 
    color: #fff; 
    font-size: 1.5rem; 
    margin: 0; 
}

.carte-hobby-v2 p { 
    color: rgba(255, 255, 255, 0.85); 
    line-height: 1.6; 
    margin-bottom: 20px; 
    font-size: 1rem; 
}

.tag-hobby {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: rgba(99, 102, 241, 0.2);
    color: var(--couleur-accent); 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    width: fit-content;
}

/* Effet au survol : tout disparaît pour voir l'image */
.carte-hobby-v2:hover .overlay-hobby-v2 { 
    opacity: 0; 
    transition: opacity 0.4s ease; 
}

.overlay-hobby-v2 { 
    opacity: 1; 
    transition: opacity 0.4s ease; 
}

/* ==========================================================================
   11. CV & CONTACT
========================================================================== */

.conteneur-cv { 
    text-align: center; 
    padding: 20px 0; 
}

.image-cv {
    max-width: 100%; 
    width: 800px; 
    height: auto;
    border: 1px solid #555; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    border-radius: 8px; 
    margin-bottom: 20px;
}

.boite-contact {
    border: 1px solid var(--couleur-accent); 
    background: rgba(99, 102, 241, 0.1);
    padding: 30px; 
    border-radius: 50px; 
    text-align: center; 
    margin-bottom: 40px; 
    color: #fff;
}

.liens-contact { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    padding: 0 20px; 
}

.liens-contact a { 
    font-weight: bold; 
}

.email-texte { 
    color: var(--couleur-accent); 
    font-weight: bold; 
}

.reseaux-sociaux { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    font-weight: bold; 
}

.icones-reseaux i { 
    font-size: 1.8rem; 
    margin-left: 20px; 
    color: var(--texte-blanc); 
    transition: 0.3s; 
}

.icones-reseaux i:hover { 
    color: var(--couleur-accent); 
    text-shadow: 0 0 10px var(--lueur-accent); 
}

/* ==========================================================================
   12. FOOTER & RESPONSIVE
========================================================================== */

footer {
    text-align: center; 
    padding: 60px 0; 
    margin-top: 60px;
    border-top: var(--bordure-verre); 
    background: rgba(0,0,0,0.2);
}

.logo-footer { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
    color: var(--texte-gris); 
    opacity: 0.5; 
}

/* --- VERSION MOBILE (Tablettes et Téléphones) --- */
@media (max-width: 768px) {
    .profil-flex { 
        flex-direction: column-reverse; 
        text-align: center; 
        padding: 30px; 
    }
  
    /* Je m'assure que tout passe en colonne */
    .grille-double, 
    .liens-nav, 
    .navigation, 
    .carte-projet { 
        flex-direction: column; 
    }

    .grille-double, 
    .liens-nav { 
        grid-template-columns: 1fr; 
    }
  
    .navigation { 
        gap: 20px; 
    }

    .carte-projet { 
        text-align: center; 
    }

    .carte-formation { 
        padding: 20px; 
    }
  
    .boite-modale { 
        width: 95%; 
        padding: 20px; 
    }
  
    /* Sur mobile, je centre le logo de la modale car il n'y a pas assez de place à droite */
    .entete-modale { 
        float: none; 
        text-align: center; 
        margin: 0 auto 20px auto; 
    }
  
    .header-exp { 
        flex-direction: column; 
        align-items: flex-start; 
    }

    .tags-skills { 
        flex-wrap: wrap; 
    }
}

/* TERMINAL VIRTUEL POUR LA MODALE */
.terminal-virtuel {
    background-color: #0f172a; /* Fond noir/bleu nuit */
    border-radius: 8px;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #33ff33; /* Vert Matrix */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    margin-top: 20px;
    overflow-x: auto;
}

.terminal-line {
    display: block;
    margin-bottom: 5px;
}

.cmd-input { color: #fff; }
.cmd-warn { color: #fbbf24; } /* Jaune */
.cmd-success { color: #33ff33; font-weight: bold; }