/* Variables CSS pour les couleurs et les polices */
:root {
    --background-color: #1a1a1a; /* Fond très sombre */
    --text-color-light: #ffffff; /* Texte clair */
    --text-color-dark: #cccccc; /* Texte légèrement plus foncé pour les détails */
    --accent-color-primary: #007bff; /* Bleu vif pour les accents */
    --accent-color-secondary: #0056b3; /* Bleu plus foncé pour les accents secondaires */
    --button-primary-bg: #007bff;
    --button-primary-hover: #0056b3;
    --button-secondary-bg: transparent;
    --button-secondary-border: #007bff;
    --nav-bar-bg: rgba(34, 34, 34, 0.95); /* Gris très foncé semi-transparent pour la nav bar */
    --card-bg: #2c2c2c; /* Fond pour les cartes de projet/timeline */
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.4);


    /* Boutons (réutilisation des accents) */
    --button-primary-bg: var(--accent-color-primary);
    --button-primary-hover: var(--accent-color-secondary);
    --button-secondary-bg: transparent;
    --button-secondary-border: var(--accent-color-primary);
    --hero-background: rgba(0, 0, 0, 0.5);

    /*Update*/
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #00d2ff;
    --perspective: 1000px;

    --canvas-dot-color: 0, 210, 255; /* Bleu néon (format RGB uniquement) */
    --canvas-bg: #050505;
}


body.light-theme {
    --background-color: #f4f4f9;        
    --text-color-light: #383838;        
    --text-color-dark: #2b2a2a;         
    --card-bg: #ffffff;                 
    
    --nav-bar-bg: rgba(255, 255, 255, 0.95); 
    --shadow-light: rgba(0, 0, 0, 0.1); 
    --shadow-dark: rgba(0, 0, 0, 0.041);  

    --form-input-bg: #e9e9e9;
    --form-input-border: #cccccc;
    --form-input-text: #333333;
    --form-input-placeholder: #999999;
    --hero-background: #ffffff;

    --canvas-dot-color: 100, 100, 100; /* Gris foncé ou une couleur plus douce */
    --canvas-bg: #f4f4f4;
}

/* Styles de base */
html {
    scroll-behavior: smooth; /* Défilement doux pour les ancres */
}

body {
    /*font-family: 'Roboto', 'Arial', sans-serif;*/
    font-family: "Geom", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: var(--background-color);
    color: var(--text-color-light);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden; /* Empêche le débordement horizontal */
}

/* En-tête principal (contient les liens sociaux en haut à droite) */
.main-header {
    width: 100%;
    padding: 20px 5%;
    box-sizing: border-box;
    position: absolute; /* Position absolue pour les liens en haut à droite */
    top: 0;
    left: 0;
    z-index: 100; /* Assurez-vous qu'il est au-dessus du reste */
}
/* --- NOUVELLE CLASSE POUR LE TOGGLE DE THÈME --- */
/* --- 1. CONTENEUR ET POSITIONNEMENT (Remplace .theme-toggle-btn) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #1a1a1a; /* La couleur de fond de votre site */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Toujours au-dessus */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader p {
  color: #ffffff;
  margin-top: 20px;
  font-family: sans-serif;
  letter-spacing: 2px;
  font-size: 14px;
}

/* L'animation du loader */
.loader {
  display: flex;
  gap: 8px;
}

.loader span {
  width: 12px;
  height: 12px;
  background-color: #3498db; /* Votre couleur principale */
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-15px); opacity: 0.3; }
}

/* Classe pour masquer le loader */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.theme-toggle-container {
    position: fixed; 
    bottom: 20px; 
    right: 5%; 
    z-index: 2000; 
    /* Ajouté pour centrer le toggle si nécessaire */
    display: flex; 
    align-items: center;
}

/* --- 2. MASQUER LA CHECKBOX NATIVE --- */

.toggle-checkbox {
    display: none;
}

/* --- 3. STYLISER LE LABEL (L'interrupteur visible) --- */

.theme-toggle-label {
    /* Dimensions de l'interrupteur */
    width: 60px; 
    height: 30px; 
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    
    /* Le fond du toggle est la couleur "opposée" du thème */
    background-color: var(--accent-color-secondary); /* Fond bleu foncé (pour Thème Sombre) */
    border-radius: 15px;
    box-shadow: 0 2px 5px var(--shadow-dark);
    transition: background-color 0.4s ease-in-out;
}

/* --- 4. STYLISER LE CURSEUR (Le 'Poussoir') --- */

.toggle-thumb {
    /* Dimensions du curseur */
    width: 26px; 
    height: 26px; 
    background-color: #ffffff; /* Le curseur est blanc */
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px; /* Position de départ (à gauche pour le thème sombre) */
    box-shadow: 0 1px 3px var(--shadow-dark);
    
    /* Gestion des icônes à l'intérieur du curseur */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Transition pour le glissement */
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- 5. STYLES DES ICÔNES À L'INTÉRIEUR DU CURSEUR --- */

.toggle-icon {
    position: absolute;
    font-size: 16px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🌙 LUNE (pour thème sombre - par défaut) */
.moon-icon {
    color: var(--accent-color-secondary); /* Couleur de l'icône de lune */
    opacity: 1;
    transform: scale(1);
}

/* ☀️ SOLEIL (pour thème clair) */
.sun-icon {
    color: #f0c850; /* Jaune/doré */
    opacity: 0; /* Masqué au départ */
    transform: scale(0.5); /* Réduit au départ */
}

/* ========================================================= */
/* --- ÉTATS LORSQUE LA CHECKBOX EST COCHÉE (THÈME CLAIR) --- */
/* ========================================================= */

.toggle-checkbox:checked + .theme-toggle-label {
    /* Couleur de la piste pour le thème clair (Jaune/doré) */
    background-color: #f0c850; 
}

.toggle-checkbox:checked + .theme-toggle-label .toggle-thumb {
    /* Le curseur glisse vers la droite */
    transform: translateX(30px); /* 60px de width - 2px de left - 2px de right = 56px de glissement. 56 - 26 = 30px */
}

.toggle-checkbox:checked + .theme-toggle-label .sun-icon {
    /* Afficher le soleil */
    opacity: 1;
    transform: scale(1);
}

.toggle-checkbox:checked + .theme-toggle-label .moon-icon {
    /* Masquer la lune */
    opacity: 0;
    transform: scale(0.5);
}

/* Ajustement de la couleur du curseur pour le thème clair pour un meilleur contraste */
body.light-theme .toggle-checkbox:checked + .theme-toggle-label .toggle-thumb {
    /* Le curseur reste blanc mais l'icône change */
    background-color: #ffffff;
}


/* --- BOUTON DE RETOUR EN HAUT (SCROLL-TO-TOP) --- */

.scroll-to-top-btn {
    /* Positionnement fixe dans le coin inférieur droit */
    position: fixed;
    bottom: 60px;
    right: 70px;
    z-index: 1000; /* Doit être au-dessus du footer et du contenu */
    
    /* Styles visuels */
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    
    /* Couleurs (utilise l'accentuation) */
    background-color: var(--accent-color-secondary);
    color: var(--text-color-light);
    font-size: 20px;
    
    /* Visibilité et Transition */
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    
    /* Ombre pour le détacher */
    box-shadow: 0 4px 12px var(--shadow-dark);
    text-decoration: none; /* Enlève le soulignement du lien */
}

.scroll-to-top-btn:hover {
    background-color: var(--accent-color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-dark);
}

/* Classe affichée par JavaScript */
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}


/* --- Media Query pour la Responsivité --- */

@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
        bottom: 60px;
        right: 25px;
    }
}



/* Liens en haut à droite (LinkedIn, WhatsApp) */
.top-right-links {
    position: absolute;
    top: 20px;
    right: 5%;
    display: flex;
    gap: 15px;
    z-index: 1001; /* Doit être au-dessus de la nav bar sticky */
}

.icon-link {
    color: var(--text-color-light);
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-link:hover {
    color: var(--accent-color-primary);
    transform: translateY(-2px);
}

/* Section Accueil / Hero */
.home-section {
    position: relative; /* Pour que la nav bar absolue se positionne par rapport à elle */
    min-height: 100vh; /* Prend au moins toute la hauteur de l'écran */
    display: flex;
    flex-direction: column; /* Pour empiler hero et nav */
    justify-content: space-between; /* Pour pousser la nav vers le bas */
    padding-bottom: 120px; /* Espace pour la nav bar en bas */
    /* Optionnel: image de fond pour la section home */
    /* background: url('assets/hero-bg.jpg') no-repeat center center/cover; */
}

.btn-bas{
    margin: 0;
    padding: 0;    
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    flex-grow: 1; /* Permet à la section hero de prendre l'espace restant */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    padding: 20px;
   /* background: var(--hero-background);*/ /* Fond semi-transparent pour la lisibilité */
    border-radius: 10px;
    background: transparent;
    backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px var(--shadow-dark);
}

.greeting {
    color: var(--text-color-dark);
    font-size: 28px;
    margin-bottom: 5px;
    position: relative;
    padding-left: 60px;
}

.greeting::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent-color-primary);
    border-radius: 2px;
}

.name {
    font-size: 72px;
    margin: 0;
    color: var(--accent-color-primary);
    line-height: 1.1;
}

.title {
    font-size: 32px;
    color: var(--text-color-light);
    margin-top: 10px;
    margin-bottom: 20px;
}



.tagline {
    font-size: 18px;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}



/* Boutons CTA */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 16px;
    box-shadow: 0 4px 10px var(--shadow-light);
}

.button.primary {
    background-color: var(--button-primary-bg);
    color: #ffffff;
    border: none;
}

.button.primary:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-dark);
}

.button.secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-border);
    border: 2px solid var(--button-secondary-border);
}

.button.secondary:hover {
    background-color: var(--button-secondary-border);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-dark);
}

.button-cv {
    background-color: var(--accent-color-secondary);
    color: var(--text-color-light);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 15px;
}
.button-cv:hover {
    background-color: darken(var(--accent-color-secondary), 10%);
}

.social-links-hero {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    justify-content: flex-start;
}
.social-links-hero .fab {
    font-size: 30px;
    color: var(--text-color-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links-hero .fab:hover {
    color: var(--accent-color-primary);
    transform: translateY(-3px);
}


.hero-image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--accent-color-secondary);
    box-shadow: 0 0 0 15px var(--accent-color-primary), 0 10px 30px var(--shadow-dark);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Assure que l'image reste ronde même si le conteneur change */
    display: block;
}

/* Navigation principale (en bas de la section home, devient sticky) */
.main-nav {
    width: 100%;
    background-color: var(--nav-bar-bg);
    height: 25px;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    position: absolute; /* Positionnement initial en bas de la section #home */
    bottom: 0; /* Colle au bas du parent #home */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    max-width: 90%;
    box-shadow: 0 4px 15px var(--shadow-light);
    z-index: 1000; /* Plus haut que la plupart des éléments */
    transition: all 0.3s ease-in-out, background-color 0.4s ease;
}

.main-nav.sticky {
    position: fixed; /* Devient fixe */
    top: 0; /* Colle en haut */
    left: 0;
    transform: translateX(0); /* Annule la transformation de centrage */
    width: 100%; /* Occupe toute la largeur */
    max-width: 100%; /* S'étend sur toute la largeur */
    border-radius: 0; /* Supprime les bords arrondis en mode sticky */
    box-shadow: 0 6px 20px var(--shadow-dark);
    padding: 10px 0; /* Un peu moins de padding en mode sticky */
    background-color: var(--nav-bar-bg); /* S'assurer de la couleur de fond fixe */
}

/* Pour compenser le "saut" quand la nav bar devient fixe */
body.sticky-nav-active {
    padding-top: 70px; /* Ajustez selon la hauteur de votre nav bar sticky */
}


.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}

.nav-item {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after { /* Soulignement animé */
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color-primary);
    transition: width 0.3s ease-in-out;
}

.nav-item:hover::after,
.nav-item.active::after { /* Activer le soulignement au survol ou si actif */
    width: 100%;
}

.nav-item.active { /* Couleur du texte si actif */
    color: var(--accent-color-primary);
}


/* Sections de contenu générales */
.main-content {
    padding: 80px 5%; /* Padding en haut pour ne pas être caché par la nav sticky */
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 20px 0;
}


.section-title {
    font-size: 48px;
    color: var(--accent-color-primary);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: var(--accent-color-secondary);
    border-radius: 3px;
}


/* Section À Propos */
.about-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Permet l'empilement sur mobile */
    justify-content: center;
}

.about-image-container {
    flex-shrink: 0;
    width: 350px;
    height: 450px;
    border-radius: 10%;
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-dark);
    background-color:transparent; /* Couleur de fond si l'image ne charge pas */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid;
    border-color: var(--neon-blue);
}
.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.about-text h3 {
    color: var(--accent-color-primary);
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color-dark);
    margin-bottom: 15px;
}

.about-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}
.about-details .detail-item {
    background-color: transparent;
    backdrop-filter: blur(8px);
    border: 1px solid var(--neon-blue);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-details .detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}
.about-details .detail-item h4 {
    color: var(--accent-color-primary);
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
}
.about-details .detail-item i {
    font-size: 35px;
    margin-bottom: 15px;
}
.about-details .detail-item p {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* --- NOUVEAUX STYLES DE TAGS --- */

.skill-category>h3{
display: flex;
width: 100%;
align-items: center;
justify-content: center;
}
/* Conteneur pour le flux des tags */
.skills-tag-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; /* Espacement entre les tags */
    margin-top: 20px;
    justify-content: center;
}

/* STYLE DU RECTANGLE (TAG) */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: transparent;
    backdrop-filter: blur(8px);
    /* Utilise le fond de carte pour un style cohérent */
    color: var(--text-color-dark);
    border: 1px solid var(--neon-blue); /* Ajout d'une fine bordure */
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--shadow-light);
    cursor: pointer;
    
    /* Animation et transition */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transition douce pour le hover */
    animation: float 4s ease-in-out infinite; 
}

/* Espacement du nom */
.skill-tag .skill-name {
    color: var(--text-color-dark);
    /* Gère l'espace entre l'icône et le texte */
    margin-left: 10px; 
}

/* Style de l'icône Font Awesome */
.skill-tag .skill-icon {
    font-size: 24px;
    color: var(--accent-color-primary); 
    /* Si pas d'icône dans la catégorie transversale, ceci ne s'applique pas */
}

/* ANIMATION DE FLOTTAISON */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(0.5deg); } /* Léger mouvement vers le haut et rotation */
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Pour diversifier le mouvement */
.skills-tag-container .skill-tag:nth-child(3n) { animation-duration: 4.5s; animation-delay: 0.3s; }
.skills-tag-container .skill-tag:nth-child(5n) { animation-duration: 3.8s; animation-delay: 0.7s; }

/* RÉACTION AU SURVOL/TOUCHER (Le 'changement de direction' demandé) */
.skill-tag:hover, .skill-tag:active {
    background-color: var(--accent-color-primary);
    color: var(--text-color-light);
    transform: scale(1.08) translateY(-10px); /* Grosse échelle + mouvement vers le haut */
    box-shadow: 0 10px 25px var(--shadow-dark);
    animation: none; /* Arrête l'animation de flottaison au survol */
}
.skill-tag:hover .skill-name, .skill-tag:hover .skill-icon {
    color: var(--text-color-light); /* Rend le texte et l'icône blancs */
}

/* Style pour la catégorie Transversale (pas d'icône, souvent un style plus doux) */
/* Pour centrer le texte si seulement le nom est présent */
.skill-category:last-child .skill-tag {
    justify-content: center;
    padding: 10px 20px;
}


/* Section Expérience */
.experience-section {
    text-align: center;
}

.timeline-section {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}
/* La ligne verticale de la timeline */
.timeline-section::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--neon-blue);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 40px; /* Espace pour les points du côté gauche */
}
.timeline-item:last-child {
    margin-bottom: 0; /* Pas de marge pour le dernier élément */
}

.timeline-dot {
    position: absolute;
    left: 15px;
    top: 5px; /* Ajuster pour aligner avec le contenu */
    width: 25px;
    height: 25px;
    background-color: var(--accent-color-primary);
    border-radius: 50%;
    border: 4px solid var(--background-color); /* Bordure pour le contraste */
    z-index: 1;
    box-shadow: 0 0 0 3px var(--accent-color-secondary);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.timeline-content h3 {
    color: var(--accent-color-primary);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 5px;
}
.timeline-content .duration {
    display: block;
    font-size: 15px;
    color: var(--text-color-dark);
    margin-bottom: 15px;
    font-weight: bold;
}
.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.timeline-content ul li {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    line-height: 1.6;
}
.timeline-content ul li:last-child {
    margin-bottom: 0;
}
.timeline-content p {
    font-size: 16px;
    color: var(--text-color-dark);
    line-height: 1.6;
    margin: 0;
}


/* Section Projets */
.projects-section {
    text-align: center;
}

/* --- SLIDESHOW MODAL (Lightbox) --- */

.slideshow-modal {
    display: none; 
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px); 
    
    z-index: 5000; 
    overflow: auto;
    
    justify-content: center;
    align-items: center;
}

/* Contenu (Image et commandes) */
.slideshow-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

/* Bouton de fermeture (X) */
.close-btn {
    position: absolute;
    top: -40px;
    right: 0px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 5002; 
}

.close-btn:hover {
    opacity: 1;
}

/* Conteneur d'images */
.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex; 
    /* Animation de glissement des images */
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 100%; /* Chaque image prend 100% du conteneur */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    /* L'image elle-même */
    display: block;
    max-width: 100%;
    max-height: 80vh; /* Limite la hauteur par rapport à la vue */
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Boutons de navigation (Précédent/Suivant) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 10px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 5001; 
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.nav-btn.prev {
    left: -60px; /* Positionné à l'extérieur de l'image */
}

.nav-btn.next {
    right: -60px; /* Positionné à l'extérieur de l'image */
}

/* (Optionnel) Compteur de diapositives */
.slide-counter {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .slideshow-modal {
        padding: 0;
    }
    .nav-btn.prev {
        left: 5px;
        padding: 10px 5px;
    }
    .nav-btn.next {
        right: 5px;
        padding: 10px 5px;
    }
    .close-btn {
        top: 5px;
        right: 5px;
        color: #ddd;
    }
    .slide img {
        max-height: 90vh;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 colonnes, s'adapte */
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card:hover {
    /*transform: translateY(-8px); /* Animation plus prononcée au survol */
    box-shadow: 0 8px 25px var(--shadow-dark);
}

.project-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: transform 0.3s ease;
}
.project-card:hover img {
    transform: scale(1.02);
}

.project-card h3 {
    color: var(--accent-color-primary);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
}

.project-card .project-tech {
    font-size: 14px;
    color: var(--accent-color-secondary);
    margin-bottom: 15px;
    font-weight: bold;
}

.project-card p {
    color: var(--text-color-dark);
    line-height: 1.6;
    font-size: 16px;
    flex-grow: 1; /* Permet à la description de prendre l'espace */
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto; /* Pousse les liens vers le bas */
    width: 100%;
}

.project-link {
    display: inline-block;
    color: var(--accent-color-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-link:hover {
    color: var(--text-color-light);
    transform: translateY(-2px);
}
.project-link i {
    margin-left: 8px;
}

/* Section Contact */
.contacts-section {
    text-align: center;
}

.contacts-section p {
    font-size: 18px;
    color: var(--text-color-dark);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto 50px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    /* Anciennes valeurs: #333, #444, var(--text-color-light), #888 */
    padding: 18px;
    border: 1px solid var(--form-input-border, #444); /* Utilise la nouvelle variable ou revient au sombre par défaut */
    border-radius: 8px;
    background-color: var(--form-input-bg, #333);
    color: var(--form-input-text, var(--text-color-light));
    font-size: 17px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--form-input-placeholder, #888);
}


.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color-primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
}

.contact-form button {
    align-self: flex-end;
    font-size: 18px;
    padding: 15px 35px;
    border-radius: 8px;
}

.form-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    display: none; /* Masqué par défaut */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.form-message.success {
    background-color: #28a745; /* Vert pour succès */
    color: white;
}
.form-message.error {
    background-color: #dc3545; /* Rouge pour erreur */
    color: white;
}
.form-message.visible {
    display: block;
    opacity: 1;
}

.contact-info {
    margin-top: 30px;
    font-size: 18px;
    color: var(--text-color-dark);
}

.contact-info p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    color: var(--text-color-light);
}
.contact-info p a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info p a:hover {
    color: var(--accent-color-primary);
}

.contact-info i {
    color: var(--accent-color-primary);
    font-size: 22px;
}

.social-links-contact {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    justify-content: center;
}
.social-links-contact .fab {
    font-size: 35px;
    color: var(--text-color-dark);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links-contact .fab:hover {
    color: var(--accent-color-primary);
    transform: translateY(-4px);
}

.badge-certif {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Espace entre l'icône et le texte */
    
    /* Utilisation de tes variables CSS */
    background-color: var(--primary-light, rgba(0, 123, 255, 0.1)); 
    color: var(--accent-color-primary);
    border: 1px solid var(--primary-color);
    
    padding: 4px 12px;
    border-radius: 50px; /* Forme pilule */
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.badge-certif i {
    font-size: 0.85rem;
}

/* On s'assure que le titre ne colle pas au badge */
.timeline-content h3 {
    margin-top: 0;
}

.github-card {
    background: var(--background-color, #fff);
    border: 1px solid var(--border-color, #eee);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.calendar-container {
    width: 100%;
    overflow-x: auto; /* Active le scroll horizontal */
    white-space: nowrap; /* Empêche le retour à la ligne */
    padding: 10px 0;
    
    /* Optionnel : cache la barre de scroll moche sur certains navigateurs */
    -webkit-overflow-scrolling: touch; 
}

.calendar-container img {
    /* On force l'image à garder une taille minimum pour rester lisible */
    min-width: 600px; 
    height: auto;
    display: block;
    margin: 0 auto;
}

.github-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}
/* Footer */
.main-footer {
    text-align: center;
    padding: 40px;
    background-color: var(--nav-bar-bg);
    color: var(--text-color-dark);
    font-size: 15px;
    box-shadow: 0 -4px 15px var(--shadow-dark);
}
.main-footer .footer-links {
    margin-top: 15px;
}
.main-footer .footer-links a {
    color: var(--text-color-dark);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.main-footer .footer-links a:hover {
    color: var(--accent-color-primary);
}


/* --- Animations (Slide on Show) --- */
.hidden {
    opacity: 0;
    transform: translateY(20px); /* L'élément commence 20px plus bas */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden.fade-in {
    opacity: 0;
    transform: translateY(0); /* N'a pas de translation initiale */
    transition: opacity 0.8s ease-out;
}

.hidden.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden.active {
    opacity: 1;
    transform: translateY(0);
    transform: translateX(0);
}

/* Pour les barres de compétences qui apparaissent au défilement */
.skill-level.active {
    /* La largeur sera définie par le JS */
}
.mobile-header {
            display: none; /* S'assure que le bouton est toujours affiché */
        }

/* Media Queries pour la responsivité */
@media (max-width: 1024px) {
    .main-header{
        margin-top: 60px;
    }
        /* Styles pour la barre de navigation fixe en haut */
        .mobile-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            height: 30px;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            /* Effets de couleur et de flou */
            background: rgba(255, 255, 255, 0.7); /* Fond translucide */
            background: linear-gradient(to right, rgba(255, 255, 255, 0.116), rgba(240, 240, 240, 0));
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .user-name {
            font-weight: bold;
            font-size: 1.25rem;
            color: #a1a1a1;
        }

        /* Styles pour le bouton de navigation mobile */
        #mobile-nav-toggle {
            width: 50px;
            height: 50px;
            border-radius: 10%;
        }

        .top-right-links{
            display: none;
        }

        .mobile-nav-button {
            z-index: 1001;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            width: 25px; /* Taille réduite */
            height: 25px; /* Taille réduite */
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            background-color: #00000065;
        }
        
        .mobile-nav-button::before,
        .mobile-nav-button::after {
            content: '';
            display: block;
            width: 20px; /* Taille réduite */
            height: 2px; /* Taille réduite */
            background-color: #333;
            position: absolute;
            transition: transform 0.3s ease, background-color 0.3s ease;
        }

        .mobile-nav-button::before {
            transform: translateY(-6px); /* Espacement ajusté */
        }

        .mobile-nav-button::after {
            transform: translateY(6px); /* Espacement ajusté */
        }

        .mobile-nav-button .hamburger-line {
            width: 20px; /* Taille réduite */
            height: 2px; /* Taille réduite */
            background-color: #333;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }

        .mobile-nav-button.active::before {
            transform: translateY(0) rotate(45deg);
        }

        .mobile-nav-button.active::after {
            transform: translateY(0) rotate(-45deg);
        }

        .mobile-nav-button.active .hamburger-line {
            opacity: 0;
        }

        /* Styles pour la navigation mobile */
        .main-nav {
            display: none; /* Cache le menu par défaut sur mobile */
            flex-direction: column;
            width: 100%;
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            /* Effet de flou et de transparence */
            background: rgba(0, 0, 0, 0.8); /* Fond noir translucide */
            backdrop-filter: blur(10px);
            padding-top: 60px;
            z-index: 999;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            overflow-y: auto;
            transition: all 0.3s ease-in-out;
        }

        .main-nav.show {
            display: flex; /* Affiche le menu quand la classe 'show' est ajoutée */
        }

        .nav-list {
            flex-direction: column;
            gap: 20px;
            align-items: center;
        }
        .nav-item {
            color: var(--text-color-dark); /* Couleur des liens en blanc pour le contraste */
            font-size: 1.5rem;
            padding: 10px;
            transition: color 0.2s ease-in-out;
        }
        .nav-item:hover {
            color: #007bff;
        }
        
    .main-header {
        padding: 15px 3%;
    }
    .top-right-links {
        top: 15px;
        right: 3%;
        gap: 10px;
    }
    .icon-link {
        font-size: 20px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 60px;
        padding-bottom: 30px;
    }
    .hero-content {
        order: 2;
        padding: 25px;
        margin: 4%;
        min-width: unset;
        max-width: 90%;
    }
    .hero-image-container {
        order: 1;
        margin-bottom: 20px;
        width: 300px;
        height: 300px;
        box-shadow: 0 0 0 10px var(--accent-color-primary), 0 8px 25px var(--shadow-dark);
    }
    .name {
        font-size: 56px;
    }
    .title {
        font-size: 28px;
    }
    .greeting {
        font-size: 24px;
        padding-left: 0;
    }
    .greeting::before {
        display: none;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .button {
        
        max-width: 90%;
        text-align: center;
        justify-content: center;
    }
    .social-links-hero {
        justify-content: center;
        margin-top: 25px;
    }

    /* Navigation sur mobile: toujours sticky en haut */
    .home-section {
        padding-bottom: 0; /* Pas de padding pour la nav en bas ici */
        min-height: auto; /* La hauteur minimale n'est plus nécessaire ici */
    }

    .button-cv {
        padding: 8px 15px;
        font-size: 14px;
    }

    .main-content {
        padding: 60px 5%; /* Ajuster le padding global */
        gap: 80px;
    }
    .section-title {
        font-size: 40px;
        margin-bottom: 50px;
    }
    .section-title::after {
        width: 80px;
        height: 4px;
    }

    .about-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-image-container {
        width: 280px;
        height: 280px;
    }
    .about-grid-1{
        text-align: left;
    }
    .about-grid-2{
        text-align: right;
    }

    .gradient-separator {
        display: block;
        width: 100%;     
        height: 2px;      
        
        background: linear-gradient(to right, transparent, var(--accent-color-primary));
        
        margin: 30px 0;    
        border: none;
        opacity: 0.7;  
    }
    .about-text {
        text-align: center;
    }
    .about-text h3 {
        font-size: 28px;
    }
    .about-text p {
        font-size: 16px;
    }
    .about-details {
        gap: 20px;
    }
    .about-details .detail-item {
        padding: 20px;
        min-width: unset;
        max-width: 90%;
    }
    .about-details .detail-item h4 {
        font-size: 20px;
    }
    .about-details .detail-item i {
        font-size: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 25px;
    }
    .skill-category {
        padding: 25px;
    }
    .skill-category h3 {
        font-size: 24px;
    }
    .skill-category h3 i {
        font-size: 30px;
    }
    .skill-category li {
        font-size: 15px;
    }

    .timeline-section::before {
        left: 15px;
        width: 2px;
    }
    .timeline-item {
        padding-left: 30px;
        margin-bottom: 40px;
    }
    .timeline-dot {
        left: 5px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    .timeline-content {
        padding: 20px;
    }
    .timeline-content h3 {
        font-size: 20px;
    }
    .timeline-content .duration {
        font-size: 14px;
    }
    .timeline-content ul li, .timeline-content p {
        font-size: 15px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .project-card {
        padding: 20px;
    }
    .project-card h3 {
        font-size: 22px;
    }
    .project-card p {
        font-size: 15px;
    }
    .project-link {
        font-size: 15px;
    }

    .contacts-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .contact-form {
        padding: 30px;
        max-width: 95%;
    }
    .contact-form input, .contact-form textarea {
        padding: 15px;
        font-size: 16px;
    }
    .contact-form button {
        font-size: 16px;
        padding: 12px 25px;
    }
    .contact-info p {
        font-size: 15px;
    }
    .contact-info i {
        font-size: 20px;
    }
    .social-links-contact .fab {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 48px;
    }
    .title {
        font-size: 24px;
    }
    .tagline {
        font-size: 16px;
    }
    .button {
        padding: 12px 25px;
        font-size: 15px;
    }
    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    .section-title::after {
        width: 70px;
        height: 3px;
    }

    .about-grid {
        gap: 30px;
    }
    .about-image-container {
        width: 250px;
        height: 250px;
    }
    .about-text h3 {
        font-size: 24px;
    }
    .about-text p {
        font-size: 15px;
    }
    .about-details .detail-item {
        padding: 18px;
    }
    .about-details .detail-item h4 {
        font-size: 18px;
    }
    .about-details .detail-item i {
        font-size: 28px;
    }

    .skill-category h3 {
        font-size: 22px;
    }
    .skill-category h3 i {
        font-size: 28px;
    }
    .skill-category li {
        font-size: 14px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }
    .timeline-content ul li, .timeline-content p {
        font-size: 14px;
    }

    .project-card img {
        height: 180px;
    }
    .project-card h3 {
        font-size: 20px;
    }

    .contact-form {
        padding: 25px;
    }
    .contact-form input, .contact-form textarea {
        font-size: 14px;
        padding: 12px;
    }
    .contact-form button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .contact-info p {
        font-size: 14px;
    }
    .social-links-contact .fab {
        font-size: 28px;
    }

    .main-footer {
        padding: 30px;
        font-size: 13px;
    }
    .main-footer .footer-links a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    
    .top-right-links {
        top: 10px;
        right: 2%;
        gap: 8px;
    }
    .icon-link {
        font-size: 18px;
    }

    .hero-section {
        padding-top: 50px;
        gap: 30px;
    }
    .name {
        font-size: 38px;
    }
    .title {
        font-size: 20px;
    }
    .greeting {
        font-size: 20px;
    }
    .tagline {
        font-size: 14px;
    }
    .hero-image-container {
        width: 200px;
        height: 200px;
        box-shadow: 0 0 0 8px var(--accent-color-primary), 0 5px 15px var(--shadow-dark);
    }
    .social-links-hero .fab {
        font-size: 25px;
    }

    .main-nav, .main-nav.sticky {
        padding: 8px 0;
    }
    .nav-list {
        gap: 8px;
    }
    .nav-item {
        font-size: 13px;
        padding: 5px 0;
    }
    .button-cv {
        padding: 6px 12px;
        font-size: 12px;
    }
    body.sticky-nav-active {
        padding-top: 55px; /* Ajuster pour la nav bar plus petite */
    }


    .main-content {
        padding: 40px 4%;
        gap: 60px;
    }
    .section-title {
        font-size: 30px;
        margin-bottom: 30px;
    }
    .section-title::after {
        width: 60px;
        height: 2px;
    }

    .about-image-container {
        width: 200px;
        height: 200px;
    }
    .about-text h3 {
        font-size: 20px;
    }
    .about-text p {
        font-size: 14px;
    }
    .about-details .detail-item {
        padding: 15px;
    }
    .about-details .detail-item h4 {
        font-size: 16px;
    }
    .about-details .detail-item i {
        font-size: 25px;
    }

    .skill-category h3 {
        font-size: 20px;
    }
    .skill-category h3 i {
        font-size: 25px;
    }
    .skill-category li {
        flex-direction: column; /* Empile le nom et la barre */
        align-items: flex-start;
        gap: 5px;
    }
    .skill-name {
        min-width: unset;
        margin-bottom: 5px;
    }
    .skill-bar {
        width: 100%; /* Barre prend toute la largeur */
    }


    .timeline-section::before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 20px;
    }
    .timeline-dot {
        left: 0px;
        width: 16px;
        height: 16px;
    }
    .timeline-content {
        padding: 15px;
    }
    .timeline-content h3 {
        font-size: 16px;
    }
    .timeline-content .duration {
        font-size: 13px;
    }
    .timeline-content ul li, .timeline-content p {
        font-size: 13px;
    }

    .project-card {
        padding: 15px;
    }
    .project-card img {
        height: 150px;
    }
    .project-card h3 {
        font-size: 18px;
    }
    .project-card p {
        font-size: 14px;
    }
    .project-links {
        gap: 15px;
    }
    .project-link {
        font-size: 14px;
    }

    .contact-form {
        padding: 20px;
    }
    .contact-form input, .contact-form textarea {
        font-size: 13px;
        padding: 10px;
    }
    .contact-form button {
        font-size: 14px;
        padding: 8px 18px;
    }
    .contact-info p {
        font-size: 13px;
        gap: 8px;
    }
    .contact-info i {
        font-size: 18px;
    }
    .social-links-contact .fab {
        font-size: 25px;
    }

    .main-footer {
        padding: 20px;
        font-size: 12px;
    }
    .main-footer .footer-links a {
        margin: 0 5px;
    }
}

/*Update*/


@keyframes floating {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-20px) rotateX(-5deg) rotateY(5deg); }
}

/* Cartes de projet avec effet de profondeur */
.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s;
}

/*.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
    border-color: var(--neon-blue);
}*/

/* Effet "Layering" (3D par niveau) */
/*.project-card > * {
    transform: translateZ(20px); /* Fait ressortir le texte par rapport à la carte 
}*/

/* Timeline futuriste */
.timeline-dot {
    box-shadow: 0 0 15px var(--neon-blue);
    background: var(--neon-blue);
}

.about-details {
  cursor: default;
  transition: transform 0.3s ease;
}

.about-details:hover {
  /* Optionnel : léger zoom ou changement de fond pour valider l'interaction */
  transform: translateY(-5px);
}

.stat-number {
  font-weight: bold;
  transition: color 0.3s ease;
}

.about-details:hover .stat-number {
  color: #3498db; /* Change la couleur des chiffres au survol */
}

#bg-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--canvas-bg);
    transition: 0.3s ease; /* Transition fluide lors du toggle */
}

/* On s'assure que les sections où l'on veut voir la 3D sont transparentes */
.hero-section, .skills-grid {
    background: transparent !important;
}

/* Optionnel : ajout d'un masque sombre pour que le texte reste lisible */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-section, section, main {
    background: transparent !important;
}

#3d-container {
    width: 100%;
    height: 500px; /* Plus haut pour un personnage entier */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

#3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}