/* Cache busting - Updated: 2025-08-17 21:35 */
/* Variables globales */
:root {
    --header-height: 70px;
    --transition-duration: 0.3s;
}

/* ===== PRELOADER MINIMALISTE ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary, #0a0a0a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.6s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 255, 204, 0.1);
    border-top: 2px solid #00ffcc;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

.loading-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00ffcc;
    font-weight: 400;
    opacity: 0.8;
}

.progress-line {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00ffcc;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1px;
}

/* Animations */
@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Thème clair */
.light-theme .preloader {
    background: var(--bg-primary, #f5f5f5);
}

/* Thème pastel professionnel - Loader élégant */
.pastel-theme .preloader {
    background: linear-gradient(135deg, #D8CFC4, #C7CCD4, #A3B9C9);
    background-size: 400% 400%;
    animation: pastelGradient 3s ease infinite;
}

.pastel-theme .spinner {
    border-color: rgba(163, 185, 201, 0.2);
    border-top-color: #A3B9C9;
    border-width: 3px;
    box-shadow: 0 0 20px rgba(163, 185, 201, 0.3);
}

.pastel-theme .loading-text {
    color: #2b2b2b;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.pastel-theme .progress-line {
    background: rgba(163, 185, 201, 0.2);
    box-shadow: inset 0 0 10px rgba(163, 185, 201, 0.1);
}

.pastel-theme .progress-fill {
    background: linear-gradient(90deg, #A3B9C9, #B8C1A3, #A3B9C9);
    background-size: 200% 100%;
    animation: pastelProgress 2s ease infinite;
    box-shadow: 0 0 15px rgba(163, 185, 201, 0.4);
}

.pastel-theme .preloader-logo {
    border: 3px solid rgba(163, 185, 201, 0.6);
    box-shadow: 0 0 20px rgba(163, 185, 201, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
}

/* Animations pastel */
@keyframes pastelGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pastelProgress {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.light-theme .spinner {
    border-color: rgba(37, 36, 34, 0.1);
    border-top-color: #252422;
}

.light-theme .loading-text {
    color: #252422;
}

.light-theme .progress-fill {
    background: #252422;
}

/* Responsive */
/* =============================================== */
/* 📱 RESPONSIVE DESIGN AMÉLIORÉ */
/* =============================================== */

/* 📱 MOBILE PETIT (320px-480px) */
@media (max-width: 480px) {
    .preloader-logo {
        width: 40px;
        height: 40px;
    }
    
    .spinner {
        width: 56px;
        height: 56px;
    }
    
    .loading-text {
        font-size: 0.7rem;
    }
    
    .progress-line {
        width: 140px;
    }
    
    .preloader-container {
        gap: 1.5rem;
        padding: 0 20px;
    }
}

/* 📱 MOBILE STANDARD (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .preloader-logo {
        width: 48px;
        height: 48px;
    }
    
    .spinner {
        width: 64px;
        height: 64px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
    
    .progress-line {
        width: 160px;
    }
    
    .preloader-container {
        gap: 1.8rem;
        padding: 0 25px;
    }
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    padding-top: var(--header-height);
}

/* Navbar fixe */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-duration) ease;
}

/* Styles spécifiques aux thèmes pour la navbar */
.light-theme .navbar {
    background: #6a1b9a !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(106, 27, 154, 0.3);
    border-bottom: 2px solid #9c27b0;
}

.dark-theme .navbar {
    background: rgba(37, 36, 34, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Navbar pour thème pastel professionnel */
.pastel-theme .navbar {
    background: rgba(199, 204, 212, 0.85) !important; /* Gris ardoise clair */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(163, 185, 201, 0.25); /* Bleu acier pâle */
    border-bottom: 1px solid rgba(163, 185, 201, 0.35);
}

/* Logo SVG */
.navbar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 5px;
}

.navbar-logo-link:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.navbar-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-logo-img:hover {
    filter: brightness(1.1) saturate(1.2);
}

/* Ancien logo texte (pour fallback) */
.navbar-logo {
    color: unset;
    text-shadow: unset;
}

body.light-theme .navbar-logo {
    color: #252422;
    text-shadow: 0 0 10px #CCC5B9;
}

/* Menu de navigation */
.navbar-menu {
    display: flex;
    gap: 0.1rem;
    margin-left: 0.2rem;
}

.navbar-item {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-duration) ease;
    font-weight: 500;
}

.navbar-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

/* Pastel: états plus sobres et cohérents */
.pastel-theme .navbar-item {
    color: #2b2b2b;
}
.pastel-theme .navbar-item:hover {
    background: rgba(163, 185, 201, 0.18);
    color: #2b2b2b;
    border-color: rgba(163, 185, 201, 0.35);
}

/* Ajouter de l'espace avant Contact */
.navbar-item[href="#contact"] {
    margin-left: -0.3rem;
}

/* Menu secondaire avec icônes */
.navbar-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.navbar-icon-item {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    position: relative;
}

.navbar-icon-item:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.pastel-theme .navbar-icon-item {
    background: rgba(199, 204, 212, 0.35);
}
.pastel-theme .navbar-icon-item:hover {
    background: rgba(163, 185, 201, 0.5);
    color: #2b2b2b;
    border-color: rgba(163, 185, 201, 0.6);
}

.navbar-icon-item i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar-icon-item:hover i {
    transform: scale(1.2);
}

/* Contrôles de la navbar */
.navbar-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    overflow: visible;
}

/* Contrôles de thème */
.theme-controls {
    display: flex;
    gap: 0.2rem;
}

.theme-button {
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    position: relative;
}

.theme-button:hover, .theme-button:focus {
    background: #00ffcc22;
    border-color: #00ffcc;
    box-shadow: 0 0 8px #00ffcc55;
}

.pastel-theme .theme-button:hover, .pastel-theme .theme-button:focus {
    background: rgba(163, 185, 201, 0.18);
    border-color: rgba(163, 185, 201, 0.6);
    box-shadow: 0 0 8px rgba(163, 185, 201, 0.4);
}

#lang-switch span {
    display: none;
}

#lang-switch[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    top: 110%;
    transform: translateX(-50%);
    background: #252422;
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    pointer-events: none;
}

/* Animation pour le changement d'icône */
@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.theme-button i.rotating {
    animation: iconRotate 0.5s ease;
}

/* RESPONSIVE DESIGN - NOUVELLE APPROCHE */

/* 📱 MOBILE (<768px) - Menu hamburger complet */
/* 📱 MOBILE PETIT (320px-480px) - Navigation compacte */
@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
        min-height: 60px;
    }

    .navbar-menu,
    .navbar-secondary {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
        order: 3;
        width: 32px;
        height: 32px;
    }

    .theme-controls {
        gap: 0.3rem;
        margin-right: 0.3rem;
    }
    
    .theme-button {
        width: 32px;
        height: 32px;
    }
    
    .theme-button i {
        font-size: 0.9rem;
    }
    
    .navbar-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .navbar-logo-link {
        padding: 2px;
    }
    
    /* Menu mobile optimisé */
    .mobile-menu {
        padding: 15px;
        max-height: calc(100vh - 60px);
    }
    
    .mobile-menu-item {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 📱 MOBILE STANDARD (481px-768px) - Navigation équilibrée */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 1rem;
        min-height: 70px;
    }

    .navbar-menu,
    .navbar-secondary {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
        order: 3;
        width: 36px;
        height: 36px;
    }

    .theme-controls {
        gap: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .theme-button {
        width: 36px;
        height: 36px;
    }
    
    .theme-button i {
        font-size: 1rem;
    }
    
    .navbar-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .navbar-logo-link {
        padding: 3px;
    }
    
    /* Menu mobile confortable */
    .mobile-menu {
        padding: 20px;
        max-height: calc(100vh - 70px);
    }
    
    .mobile-menu-item {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* 📱 TABLET (768px-1024px) - Menus compacts */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .navbar-item span {
        display: none; /* Icônes seulement */
    }
    
    .navbar-item {
        padding: 0.5rem;
        min-width: 40px;
        justify-content: center;
    }
    
    .navbar-secondary {
        gap: 0.3rem;
        margin-right: 0.5rem;
    }
    
    .navbar-icon-item {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-btn {
        display: none;
    }
    
    .theme-controls {
        gap: 0.5rem;
    }
    
    .theme-button {
        width: 36px;
        height: 36px;
    }
}

/* 🖥️ DESKTOP (>1024px) - Affichage complet */
@media (min-width: 1025px) {
    .navbar {
        padding: 1rem 3rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
    }
    
    .navbar-item span {
        display: block;
    }
    
    .navbar-secondary {
        gap: 0.6rem;
        margin-right: 1.5rem;
    }
    
    .hamburger-btn {
        display: none;
    }
    
    .theme-controls {
        gap: 1rem;
    }
}

/* Styles spécifiques aux thèmes */
.light-theme {
    --shadow-color: rgba(0, 0, 0, 0.2);
}

.dark-theme {
    --shadow-color: rgba(37, 36, 34, 0.8);
}

.pastel-theme {
    --shadow-color: rgba(163, 185, 201, 0.25);
}

/* Ombres adaptatives */
.navbar {
    box-shadow: 0 2px 10px var(--shadow-color);
}

.theme-button {
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Style général de la page */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #4b0082, #8a2be2);
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-duration) ease,
              color var(--transition-duration) ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Fond spécifique pour le thème pastel professionnel */
.pastel-theme {
  background: linear-gradient(135deg, #D8CFC4, #C7CCD4);
}

/* Section d'accueil */
#hero {
  text-align: center;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

#hero h1 {
  color: #ffffff !important;
  text-shadow: 0 0 15px rgba(138, 43, 226, 0.6) !important;
  font-size: 3.5em !important;
  margin: 20px 0 !important;
  font-weight: bold !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Version pastel: titre plus professionnel (moins néon) */
.pastel-theme #hero h1 {
  color: #2b2b2b !important;
  text-shadow: none !important;
}

#hero p {
  font-size: 1.2em;
  opacity: 0.8;
}

/* Texte rotatif sous le titre */
.pastel-theme #rotating-text {
  color: #5e5e5e;
}

#rotating-text {
  font-size: 1.3em;
  font-style: italic;
  margin-top: 10px;
  animation: fade 3s infinite alternate;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ========== HERO AVATAR FUTURISTE ========== */

/* Conteneur principal du hero */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Conteneur de l'avatar avec couronne */
.profile-avatar-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

/* Animation de flottement */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* === COURONNE MODERNE AMÉLIORÉE === */
.crown-container {
  position: relative;
  margin-bottom: -10px;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.crown {
  position: relative;
  width: 90px;
  height: 45px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
}

.crown-point {
  width: 8px;
  background: linear-gradient(to top, 
    #b8860b 0%, 
    #daa520 20%, 
    #ffd700 50%, 
    #ffed4e 80%, 
    #ffffcc 100%
  );
  border-radius: 4px 4px 0 0;
  position: relative;
  box-shadow: 
    0 0 15px rgba(255, 215, 0, 0.8),
    inset 1px 0 0 rgba(255, 255, 255, 0.3),
    inset -1px 0 0 rgba(0, 0, 0, 0.2);
  animation: crownGlow 4s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.crown-point::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffffcc, #ffd700);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
  animation: jewel-sparkle 2s ease-in-out infinite;
}

.crown-point:nth-child(1) { height: 22px; animation-delay: 0s; }
.crown-point:nth-child(2) { height: 30px; animation-delay: 0.5s; }
.crown-point.crown-center { 
  height: 38px; 
  width: 12px; 
  animation-delay: 1s;
  background: linear-gradient(to top, 
    #b8860b 0%, 
    #daa520 15%, 
    #ffd700 40%, 
    #ffed4e 70%, 
    #ffffcc 100%
  );
}
.crown-point:nth-child(4) { height: 30px; animation-delay: 1.5s; }
.crown-point:nth-child(5) { height: 22px; animation-delay: 2s; }

.crown-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, 
    #b8860b 0%, 
    #daa520 15%, 
    #ffd700 50%, 
    #daa520 85%, 
    #b8860b 100%
  );
  border-radius: 4px;
  box-shadow: 
    0 3px 12px rgba(255, 215, 0, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.crown-base::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 4px;
  background: radial-gradient(ellipse, #ffffcc, #ffd700);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

/* Thème light pour couronne */
.light-theme .crown-point {
  background: linear-gradient(to top, 
    #8B4513 0%, 
    #CD853F 20%, 
    #EB5E28 50%, 
    #FF6B35 80%, 
    #FFA07A 100%
  );
  box-shadow: 
    0 0 15px rgba(235, 94, 40, 0.8),
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

/* Thème pastel professionnel pour couronne (discret) */
.pastel-theme .crown-point {
  background: linear-gradient(to top,
    #C7CCD4 0%,  /* Gris ardoise clair */
    #A3B9C9 50%, /* Bleu acier pâle */
    #D8CFC4 100% /* Beige taupe */
  );
  box-shadow:
    0 0 10px rgba(163, 185, 201, 0.45),
    inset 1px 0 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 0 rgba(0, 0, 0, 0.06);
}

.pastel-theme .crown-point::before {
  background: radial-gradient(circle, #ffffff, #A3B9C9);
  box-shadow: 0 0 6px rgba(163, 185, 201, 0.55);
}

.pastel-theme .crown-point.crown-center {
  background: linear-gradient(to top,
    #C7CCD4 0%,
    #B8C1A3 50%, /* Vert sauge doux */
    #D8CFC4 100%
  );
}

.pastel-theme .crown-base {
  background: linear-gradient(90deg,
    #C7CCD4 0%,
    #A3B9C9 50%,
    #D8CFC4 100%
  );
  box-shadow:
    0 3px 10px rgba(163, 185, 201, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.light-theme .crown-point::before {
  background: radial-gradient(circle, #FFA07A, #FF6B35);
  box-shadow: 0 0 8px rgba(235, 94, 40, 0.9);
}

.light-theme .crown-point.crown-center {
  background: linear-gradient(to top, 
    #8B4513 0%, 
    #CD853F 15%, 
    #EB5E28 40%, 
    #FF6B35 70%, 
    #FFA07A 100%
  );
}

.light-theme .crown-base {
  background: linear-gradient(90deg, 
    #8B4513 0%, 
    #CD853F 15%, 
    #EB5E28 50%, 
    #CD853F 85%, 
    #8B4513 100%
  );
  box-shadow: 
    0 3px 12px rgba(235, 94, 40, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.light-theme .crown-base::before {
  background: radial-gradient(ellipse, #FFA07A, #FF6B35);
  box-shadow: 0 0 6px rgba(235, 94, 40, 0.8);
}

/* Effet de survol de la couronne */
.profile-avatar-container:hover .crown-point {
  animation-duration: 1.5s;
  transform: scale(1.05);
  filter: brightness(1.4) saturate(1.3);
}

.profile-avatar-container:hover .crown-point::before {
  animation-duration: 1s;
  transform: translateX(-50%) scale(1.5);
  opacity: 1;
}

.profile-avatar-container:hover .crown-base {
  transform: scale(1.03);
  filter: brightness(1.2);
  box-shadow: 
    0 4px 16px rgba(255, 215, 0, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.light-theme .profile-avatar-container:hover .crown-base {
  box-shadow: 
    0 4px 16px rgba(235, 94, 40, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

@keyframes crownGlow {
  0% { 
    box-shadow: 
      0 0 15px rgba(255, 215, 0, 0.8),
      inset 1px 0 0 rgba(255, 255, 255, 0.3),
      inset -1px 0 0 rgba(0, 0, 0, 0.2);
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  100% { 
    box-shadow: 
      0 0 25px rgba(255, 215, 0, 1),
      0 0 35px rgba(255, 215, 0, 0.6),
      inset 1px 0 0 rgba(255, 255, 255, 0.5),
      inset -1px 0 0 rgba(0, 0, 0, 0.3);
    filter: brightness(1.3) saturate(1.2);
    transform: scale(1.02);
  }
}

@keyframes jewel-sparkle {
  0%, 100% { 
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% { 
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

@keyframes particle-float {
  0% {
    transform: scale(1.1) rotate(0deg);
  }
  100% {
    transform: scale(1.15) rotate(5deg);
  }
}

/* === AVATAR CERCLE MODERNE === */
.profile-avatar {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anneau extérieur statique */
.avatar-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid rgba(0, 255, 204, 0.3);
  box-shadow: 
    0 0 20px rgba(0, 255, 204, 0.4),
    inset 0 0 20px rgba(0, 255, 204, 0.2);
  animation: ring-pulse 4s ease-in-out infinite;
}

/* Anneau moderne au survol adapté au thème */
.avatar-ring-rgb {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    rgba(0, 255, 204, 0.8),
    rgba(138, 43, 226, 0.6),
    rgba(255, 20, 147, 0.8),
    rgba(0, 255, 204, 0.4),
    rgba(138, 43, 226, 0.8),
    rgba(255, 20, 147, 0.6),
    rgba(0, 255, 204, 0.8)
  );
  animation: thematic-rotate 4s ease-in-out infinite;
  transition: all 0.6s ease;
  z-index: -1;
  filter: blur(2px);
}

.profile-avatar:hover .avatar-ring-rgb {
  opacity: 0.7;
  transform: scale(1.05);
  filter: blur(1px);
}

/* Version light theme pour l'anneau */
.light-theme .avatar-ring-rgb {
  background: conic-gradient(
    from 0deg,
    rgba(0, 204, 170, 0.8),
    rgba(235, 94, 40, 0.6),
    rgba(255, 107, 53, 0.8),
    rgba(0, 204, 170, 0.4),
    rgba(235, 94, 40, 0.8),
    rgba(255, 107, 53, 0.6),
    rgba(0, 204, 170, 0.8)
  );
}

/* Version pastel theme pour l'anneau (plus doux) */
.pastel-theme .avatar-ring-rgb {
  background: conic-gradient(
    from 0deg,
    rgba(163, 185, 201, 0.7), /* Bleu acier pâle */
    rgba(199, 204, 212, 0.6), /* Gris ardoise clair */
    rgba(184, 193, 163, 0.6), /* Vert sauge doux */
    rgba(216, 207, 196, 0.5), /* Beige taupe */
    rgba(163, 185, 201, 0.7)
  );
}

/* Conteneur intérieur de l'image */
.avatar-inner {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 5;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(138, 43, 226, 0.1));
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Image de profil */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.1) contrast(1.05);
}

.profile-avatar:hover .avatar-img {
  transform: scale(1.08);
  filter: brightness(1.3) contrast(1.15) saturate(1.2);
}

/* Effets de particules au survol */
.profile-avatar::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 255, 204, 0.4) 0%,
    transparent 30%
  ),
  radial-gradient(
    circle at 70% 70%,
    rgba(138, 43, 226, 0.3) 0%,
    transparent 25%
  ),
  radial-gradient(
    circle at 50% 20%,
    rgba(255, 20, 147, 0.3) 0%,
    transparent 20%
  );
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  z-index: 3;
  pointer-events: none;
}

.profile-avatar:hover::before {
  opacity: 1;
  transform: scale(1.1);
  animation: particle-float 2s ease-in-out infinite alternate;
}

/* Version light theme pour les particules */
.light-theme .profile-avatar::before {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 204, 170, 0.4) 0%,
    transparent 30%
  ),
  radial-gradient(
    circle at 70% 70%,
    rgba(235, 94, 40, 0.3) 0%,
    transparent 25%
  ),
  radial-gradient(
    circle at 50% 20%,
    rgba(255, 107, 53, 0.3) 0%,
    transparent 20%
  );
}

/* Version pastel theme pour les particules */
.pastel-theme .profile-avatar::before {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(163, 185, 201, 0.35) 0%, /* Bleu acier pâle */
    transparent 30%
  ),
  radial-gradient(
    circle at 70% 70%,
    rgba(199, 204, 212, 0.35) 0%, /* Gris ardoise clair */
    transparent 25%
  ),
  radial-gradient(
    circle at 50% 20%,
    rgba(184, 193, 163, 0.3) 0%, /* Vert sauge doux */
    transparent 20%
  );
}

/* Lueur d'ambiance */
.avatar-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 204, 0.15) 0%,
    rgba(138, 43, 226, 0.1) 50%,
    transparent 70%
  );
  z-index: -1;
  animation: glow-pulse 5s ease-in-out infinite alternate;
}

/* Animations */
@keyframes ring-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 20px rgba(0, 255, 204, 0.4),
      inset 0 0 20px rgba(0, 255, 204, 0.2);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 
      0 0 30px rgba(0, 255, 204, 0.6),
      inset 0 0 30px rgba(0, 255, 204, 0.3);
  }
}

@keyframes thematic-rotate {
  0% { 
    transform: rotate(0deg) scale(1);
    opacity: 0;
  }
  25% { 
    transform: rotate(90deg) scale(1.02);
    opacity: 0.3;
  }
  50% { 
    transform: rotate(180deg) scale(1.03);
    opacity: 0.6;
  }
  75% { 
    transform: rotate(270deg) scale(1.02);
    opacity: 0.4;
  }
  100% { 
    transform: rotate(360deg) scale(1);
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0% { 
    transform: scale(1);
    opacity: 0.6;
  }
  100% { 
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* === STYLES LIGHT THEME === */
.light-theme .avatar-ring {
  border: 3px solid rgba(0, 204, 170, 0.4);
  box-shadow: 
    0 0 20px rgba(0, 204, 170, 0.5),
    inset 0 0 20px rgba(0, 204, 170, 0.3);
}

/* === STYLES PASTEL THEME === */
.pastel-theme .avatar-ring {
  border-color: rgba(163, 185, 201, 0.35); /* Bleu acier pâle */
  box-shadow:
    0 0 18px rgba(163, 185, 201, 0.35),
    inset 0 0 18px rgba(163, 185, 201, 0.2);
}

.pastel-theme .avatar-inner {
  background: linear-gradient(135deg, rgba(163, 185, 201, 0.14), rgba(216, 207, 196, 0.12));
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.pastel-theme .avatar-glow {
  background: radial-gradient(
    circle,
    rgba(163, 185, 201, 0.18) 0%,
    rgba(216, 207, 196, 0.14) 50%,
    transparent 70%
  );
}

.light-theme .avatar-inner {
  background: linear-gradient(135deg, rgba(0, 204, 170, 0.15), rgba(235, 94, 40, 0.1));
  border: 2px solid rgba(37, 36, 34, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(37, 36, 34, 0.1);
}

.light-theme .avatar-glow {
  background: radial-gradient(
    circle,
    rgba(0, 204, 170, 0.2) 0%,
    rgba(235, 94, 40, 0.15) 50%,
    transparent 70%
  );
}

.light-theme .avatar-ring {
  animation: ring-pulse-light 4s ease-in-out infinite;
}

@keyframes ring-pulse-light {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 20px rgba(0, 204, 170, 0.5),
      inset 0 0 20px rgba(0, 204, 170, 0.3);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 
      0 0 30px rgba(0, 204, 170, 0.7),
      inset 0 0 30px rgba(0, 204, 170, 0.4);
  }
}

/* === TEXTE HÉRO === */
.hero-text {
  text-align: center;
  max-width: 600px;
}

.hero-text h1 {
  margin-bottom: 10px;
}

/* === RESPONSIVE === */
/* 📱 MOBILE PETIT (320px-480px) - Hero compact */
@media (max-width: 480px) {
  .hero-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
  }
  
  .avatar-ring {
    width: 120px;
    height: 120px;
  }
  
  .avatar-ring-rgb {
    width: 130px;
    height: 130px;
  }
  
  .avatar-inner {
    width: 100px;
    height: 100px;
  }
  
  .avatar-glow {
    width: 140px;
    height: 140px;
  }
  
  .crown {
    width: 50px;
    height: 25px;
    top: -15px;
  }
  
  .crown-point {
    width: 5px;
  }
  
  .crown-point:nth-child(1) { height: 12px; }
  .crown-point:nth-child(2) { height: 18px; }
  .crown-point.crown-center { height: 22px; width: 6px; }
  .crown-point:nth-child(4) { height: 18px; }
  .crown-point:nth-child(5) { height: 12px; }
  
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* 📱 MOBILE STANDARD (481px-768px) - Hero équilibré */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 25px;
    padding: 25px 20px;
  }
  
  .profile-avatar {
    width: 140px;
    height: 140px;
  }
  
  .avatar-ring {
    width: 140px;
    height: 140px;
  }
  
  .avatar-ring-rgb {
    width: 150px;
    height: 150px;
  }
  
  .avatar-inner {
    width: 120px;
    height: 120px;
  }
  
  .avatar-glow {
    width: 160px;
    height: 160px;
  }
  
  .crown {
    width: 55px;
    height: 28px;
    top: -18px;
  }
  
  .crown-point {
    width: 5.5px;
  }
  
  .crown-point:nth-child(1) { height: 14px; }
  .crown-point:nth-child(2) { height: 19px; }
  .crown-point.crown-center { height: 24px; width: 7px; }
  .crown-point:nth-child(4) { height: 19px; }
  .crown-point:nth-child(5) { height: 14px; }
  
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* 📱 TABLETTE (769px-1024px) - Hero optimisé */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 40px;
    padding: 30px;
    align-items: center;
  }
  
  .profile-avatar {
    width: 160px;
    height: 160px;
  }
  
  .avatar-ring {
    width: 160px;
    height: 160px;
  }
  
  .avatar-ring-rgb {
    width: 170px;
    height: 170px;
  }
  
  .avatar-inner {
    width: 140px;
    height: 140px;
  }
  
  .avatar-glow {
    width: 180px;
    height: 180px;
  }
  
  .crown {
    width: 65px;
    height: 32px;
    top: -20px;
  }
  
  .hero-text {
    flex: 1;
    text-align: left;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .hero-cta {
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
  }
}

/* Section principale */
section {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
  scroll-margin-top: 80px;
  position: relative;
}

/* =============================================== */
/* 📱 RESPONSIVE SECTIONS & COMPONENTS */
/* =============================================== */

/* 📱 MOBILE PETIT (320px-480px) - Sections compactes */
@media (max-width: 480px) {
  section {
    padding: 25px 15px;
    max-width: 100%;
    scroll-margin-top: 60px;
  }
  
  .section-header {
    margin-bottom: 20px;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  
  .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 10px;
  }
  
  /* Demo cards grid */
  .demo-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }
  
  .demo-card {
    padding: 15px;
    margin-bottom: 10px;
  }
  
  .demo-card-header {
    margin-bottom: 10px;
  }
  
  .demo-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  
  .demo-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .demo-card-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .demo-card-tags {
    gap: 6px;
    margin-bottom: 10px;
  }
  
  .demo-tag {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* 📱 MOBILE STANDARD (481px-768px) - Sections équilibrées */
@media (min-width: 481px) and (max-width: 768px) {
  section {
    padding: 35px 20px;
    scroll-margin-top: 70px;
  }
  
  .section-header {
    margin-bottom: 25px;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0 15px;
  }
  
  /* Demo cards grid */
  .demo-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 0 10px;
  }
  
  .demo-card {
    padding: 18px;
    margin-bottom: 12px;
  }
  
  .demo-card-header {
    margin-bottom: 12px;
  }
  
  .demo-card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .demo-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .demo-card-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .demo-card-tags {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .demo-tag {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* 📱 TABLETTE (769px-1024px) - Sections optimisées */
@media (min-width: 769px) and (max-width: 1024px) {
  section {
    padding: 45px 30px;
    scroll-margin-top: 80px;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 20px;
  }
  
  /* Demo cards grid optimisé */
  .demo-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }
  
  .demo-card {
    padding: 20px;
    margin-bottom: 15px;
  }
  
  .demo-card-header {
    margin-bottom: 15px;
  }
  
  .demo-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .demo-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .demo-card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  .demo-card-tags {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .demo-tag {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Grille pour la démonstration Q-Learning */
.q-learning-grid {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  gap: 4px;
  margin: 30px auto;
  justify-content: center;
}

/* Style des cellules de la grille */
.cell {
  width: 60px;
  height: 60px;
  background: #6a0dad;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff66;
  transition: all 0.3s;
}

/* Chemin optimal dans la grille */
.optimal-path {
  background: rgba(0, 255, 204, 0.3) !important;
  animation: pathGlow 1.5s infinite alternate;
}

@keyframes pathGlow {
  0% { box-shadow: inset 0 0 5px #00ffcc; }
  100% { box-shadow: inset 0 0 15px #00ffcc; }
}

/* Style de l'agent et de l'objectif */
.agent {
  background: #00ffcc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  box-shadow: 0 0 15px #00ffcc;
}

.goal {
  background: gold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  box-shadow: 0 0 15px gold;
}

/* Boutons interactifs */
button {
  background: #9b59b6;
  border: none;
  padding: 12px 24px;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

button:hover {
  background: #be75e6;
  transform: scale(1.05);
}

#status {
  margin-top: 20px;
  font-size: 1.1em;
  font-style: italic;
  color: #ffd700;
  min-height: 60px;
}

/* Zone de texte pour les requêtes SQL - Style harmonisé */
textarea {
  width: 80%;
  height: 80px;
  padding: 12px;
  margin: 20px 0;
  border-radius: 10px;
  border: 2px solid rgba(0, 255, 204, 0.2);
  font-family: monospace;
  font-size: 14px;
  background: linear-gradient(to bottom, rgba(138, 43, 226, 0.3), rgba(255, 20, 147, 0.3));
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

textarea:focus {
  outline: none;
  border: 2px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.6);
}

/* Classe pour l'animation de pulse lors de la frappe */
.text-pulse {
  animation: text-glow 0.5s ease-out;
}

@keyframes text-glow {
  0% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6), 0 0 40px rgba(255, 20, 147, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.9), 0 0 60px rgba(255, 20, 147, 0.8);
    border-color: rgba(255, 255, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6), 0 0 40px rgba(255, 20, 147, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

/* Conteneur pour les résultats SQL - Style harmonisé */
#sql-output {
  background: linear-gradient(to bottom, rgba(138, 43, 226, 0.2), rgba(255, 20, 147, 0.2));
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  margin-top: 15px;
  font-family: monospace;
  white-space: pre-wrap;
  color: #fff;
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  position: relative;
  overflow: hidden;
}

#sql-output::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(to bottom, rgba(0, 255, 204, 0.1), rgba(255, 215, 0, 0.1));
  border-radius: 17px;
  z-index: -1;
  opacity: 0.5;
}

/* Contrôles de la navbar */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-button {
  background: none;
  border: none;
  color: #00ffcc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.control-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.control-button:hover::before {
  transform: scale(1);
}

.control-button:hover {
  color: #fff;
  text-shadow: 0 0 10px #00ffcc;
}

.control-button.muted {
  color: #ff4757;
}

.control-button.muted:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff4757;
}

.control-button.muted::before {
  background: rgba(255, 71, 87, 0.1);
}

/* Animation pour le changement d'icône */
@keyframes iconRotate {
  0% { transform: scale(1); }
  50% { transform: scale(0.8); }
  100% { transform: scale(1); }
}

.control-button i {
  animation: iconRotate 0.3s ease;
}

/* Pied de page */
footer {
  background: #6a1b9a;
  color: #ffffff;
  border-top: 2px solid #9c27b0;
  text-align: center;
  padding: 20px 10px;
  margin-top: 50px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 -2px 10px rgba(106, 27, 154, 0.3);
}

/* Footer pastel, sans mauve */
.pastel-theme footer {
  background: #C7CCD4 !important; /* Gris ardoise clair */
  color: #2b2b2b !important;
  border-top: 1px solid #A3B9C9 !important;
  box-shadow: 0 -2px 12px rgba(163, 185, 201, 0.25) !important;
}

.pastel-theme footer a,
.pastel-theme footer p,
.pastel-theme footer span,
.pastel-theme footer i {
  color: #2b2b2b !important;
  text-shadow: none !important;
}

#table-list {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ffffff33;
  border-radius: 10px;
  font-family: monospace;
  font-size: 14px;
  color: #adf;
}

#storm-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  
  /* Effet simplifié avec une seule couche de lignes */
  background: repeating-linear-gradient(90deg, 
    rgba(140, 43, 226, 0.07) 0px, 
    rgba(140, 43, 226, 0.07) 2px, 
    transparent 2px, 
    transparent 4px);
  
  /* Animation simple mais efficace */
  animation: storm 2s linear infinite;
}

/* Pastel: supprimer l'animation d'arrière-plan */
.pastel-theme #storm-effect {
  display: none !important;
  animation: none !important;
}

@keyframes storm {
  from { background-position: 0px 0px; }
  to { background-position: 20px 0px; }
}

/* ==== SECTION DEMO PROJECTS MODERNE ==== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff !important;
  text-shadow: 0 0 20px #00ffcc;
}

.section-header h2 i {
  color: #fff !important;
  text-shadow: 0 0 20px #00ffcc;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-weight: 300;
}

.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.demo-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(0, 255, 204, 0.2);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ffcc, #ffd700, #ff6b35, #00ffcc);
  background-size: 300% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

.demo-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #00ffcc;
  box-shadow: 0 25px 60px rgba(0, 255, 204, 0.4), 0 0 30px rgba(0, 255, 204, 0.2);
}

.demo-card-header {
  padding: 25px 25px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.demo-card-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 215, 0, 0.2));
  border-radius: 15px;
  border: 2px solid rgba(0, 255, 204, 0.3);
  transition: all 0.3s ease;
}

.demo-card:hover .demo-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.demo-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.demo-card-description {
  padding: 0 25px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
}

.demo-card-tags {
  padding: 0 25px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-tag {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(255, 215, 0, 0.15));
  color: #00ffcc;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 204, 0.3);
  transition: all 0.3s ease;
}

.demo-card:hover .demo-tag {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(255, 215, 0, 0.25));
  border-color: rgba(0, 255, 204, 0.5);
  transform: translateY(-2px);
}

.demo-card-footer {
  padding: 15px 25px 25px;
  display: flex;
  justify-content: center;
}

.demo-card-action {
  background: linear-gradient(135deg, #00ffcc, #ffd700);
  color: #252422;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

.demo-card:hover .demo-card-action {
  background: linear-gradient(135deg, #ffd700, #00ffcc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.5);
}

/* ==== PANNEAUX DE DÉMONSTRATION MODERNES ==== */
.demo-panel {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(0, 255, 204, 0.3);
  border-radius: 20px;
  margin: 30px auto;
  max-width: 1000px;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: panelSlideIn 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

@keyframes panelSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.panel-header {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(255, 215, 0, 0.15));
  padding: 20px 25px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(255, 215, 0, 0.2));
  border-radius: 15px;
  border: 2px solid rgba(0, 255, 204, 0.4);
  animation: iconFloat 3s ease-in-out infinite;
}

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

.panel-title h3 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 5px 0;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.panel-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.panel-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.panel-close:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
  color: #ff6b35;
  transform: scale(1.1);
}

.panel-content {
  padding: 25px;
}

.demo-intro {
  background: rgba(0, 255, 204, 0.05);
  border: 1px solid rgba(0, 255, 204, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.intro-text p {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.species {
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

.species.setosa {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.species.versicolor {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.species.virginica {
  background: rgba(0, 255, 204, 0.2);
  color: #00ffcc;
  border: 1px solid rgba(0, 255, 204, 0.3);
}

.legend {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.agent-color {
  background: linear-gradient(135deg, #00ffcc, #ffd700);
}

.goal-color {
  background: linear-gradient(135deg, #ffd700, #ff6b35);
}

.path-color {
  background: linear-gradient(135deg, #ff6b35, #00ffcc);
}

.demo-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 25px 0;
  flex-wrap: wrap;
}

.demo-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.demo-btn.primary {
  background: linear-gradient(135deg, #00ffcc, #ffd700);
  color: #252422;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.3);
}

.demo-btn.primary:hover {
  background: linear-gradient(135deg, #ffd700, #00ffcc);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.5);
}

.demo-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.demo-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.demo-status {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles spécifiques pour la classification */
.data-visualization {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 25px 0;
}

.data-panel, .prediction-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
}

.data-panel:hover, .prediction-panel:hover {
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 5px 20px rgba(0, 255, 204, 0.1);
}

.panel-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.panel-section-header i {
  color: #00ffcc;
  font-size: 1.2rem;
}

.panel-section-header h4 {
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}

.data-display, .prediction-display {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles spécifiques pour Q-Learning */
.grid-container {
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

.grid-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 255, 204, 0.3);
  border-radius: 15px;
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(0, 255, 204, 0.1);
}

.q-learning-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.cell {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.cell:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 255, 204, 0.4);
}

.agent {
  background: linear-gradient(135deg, #00ffcc, #ffd700) !important;
  border: 2px solid #00ffcc !important;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
  animation: agentPulse 2s ease-in-out infinite;
}

@keyframes agentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.goal {
  background: linear-gradient(135deg, #ffd700, #ff6b35) !important;
  border: 2px solid #ffd700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  animation: goalGlow 3s ease-in-out infinite;
}

@keyframes goalGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

.optimal-path {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.6), rgba(0, 255, 204, 0.4)) !important;
  border: 2px solid #ff6b35 !important;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
  animation: pathGlow 1.5s ease-in-out infinite alternate;
}











#qlearning-container {
  display: none;
  margin-top: 30px;
}

#path-display {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: monospace;
}

/* Ajouts pour la partie Classification */
.classification-container {
  display: none;
  margin-top: 30px;
}

.data-tables {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Permet de s'adapter sur petits écrans */
  gap: 20px; /* Espacement entre les tableaux */
  margin: 20px 0;
}

.data-table {
  background: rgba(255, 255, 255, 0.08); /* Opacité ajustée pour meilleure lecture */
  border-radius: 8px;
  padding: 15px;
  width: 100%; /* Temporairement pour test : tu peux mettre 45% si ça passe bien */
  max-width: 600px; /* Limite max pour éviter trop large */
  overflow-x: auto; /* Permet le scroll horizontal si trop de colonnes */
  transition: transform 0.3s;
}

.data-table:hover {
  transform: translateY(-5px);
}

.prediction-table {
  border: 2px solid #00ffcc;
  box-shadow: 0 0 15px #00ffcc;
}

/* Table générale */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  table-layout: fixed; /* Force chaque colonne à respecter sa part */
}

/* Colonnes */
th, td {
  padding: 8px;
  border: 1px solid #ffffff33;
  text-align: center;
  word-wrap: break-word; /* évite débordement de texte */
  overflow-wrap: break-word;
  color: #ffffff; /* Couleur par défaut pour le thème sombre */
}

th {
  background-color: #6a0dad;
  color: white;
}

.feature-column {
  color: #00ffcc;
}

.prediction-column {
  color: #ffd700;
}

/* Correction pour le thème clair */
.light-theme table th, 
.light-theme table td {
  color: #252422 !important;
  border-color: rgba(37, 36, 34, 0.3) !important;
}

.light-theme table th {
  background-color: #00CCAA !important;
  color: #FFFCF2 !important;
}

.light-theme .feature-column {
  color: #00CCAA !important;
  font-weight: 600 !important;
}

.light-theme .prediction-column {
  color: #EB5E28 !important;
  font-weight: 600 !important;
}

/* Correction spécifique pour les noms des champs Classification Iris en mode light */
.light-theme #test-data table th {
  background-color: #00CCAA !important;
  color: #FFFCF2 !important;
  border: 2px solid #00CCAA !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.light-theme #test-data table td {
  color: #252422 !important;
  background-color: rgba(255, 252, 242, 0.9) !important;
  border: 1px solid #00CCAA !important;
  font-weight: 500 !important;
}

.light-theme #test-data table td.feature-column {
  color: #006B5B !important;
  font-weight: 700 !important;
  background-color: rgba(0, 204, 170, 0.1) !important;
}

.light-theme #test-data table td.prediction-column {
  color: #D63384 !important;
  font-weight: 700 !important;
  background-color: rgba(235, 94, 40, 0.1) !important;
}

/* Pastel: override des tables pour éliminer l’influence du thème light */
.pastel-theme table th,
.pastel-theme table td {
  color: #2b2b2b !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.pastel-theme table th {
  background-color: #A3B9C9 !important; /* Bleu acier pâle */
  color: #2b2b2b !important;
}

.pastel-theme .feature-column {
  color: #B8C1A3 !important; /* Vert sauge doux */
  font-weight: 600 !important;
}

.pastel-theme .prediction-column {
  color: #A3B9C9 !important; /* Bleu acier pâle */
  font-weight: 600 !important;
}

/* Ajout pour mobile/responsive */
@media (max-width: 768px) {
  .data-table {
    width: 100%;
  }
}

#image-result img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px #9b59b6;
}

/* Container principal pour les sections CV */
.cv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Sections CV avec harmonisation thème sombre */
.cv-section {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 20, 147, 0.2));
  margin: 30px 0;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4), 0 0 30px rgba(255, 20, 147, 0.3);
}

/* Pastel: sections neutres, sans rose/violet */
.pastel-theme .cv-section {
  background: #ffffff;
  border: 2px solid #A3B9C9; /* contraste plus net */
  box-shadow: 0 10px 26px rgba(163, 185, 201, 0.22);
}

.pastel-theme .cv-section:hover {
  border-color: #7fa2b8;
  box-shadow: 0 14px 34px rgba(163, 185, 201, 0.28);
}

.cv-section:hover {
  border-color: #00ffcc;
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
  transform: translateY(-5px);
}

/* En-tête des sections CV */
.cv-section-header {
  padding: 20px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 20, 147, 0.3));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scroll-margin-top: 100px;
}

.pastel-theme .cv-section-header {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.18), rgba(216, 207, 196, 0.18));
  border-bottom: 1px solid rgba(163, 185, 201, 0.35);
}

.cv-section-header:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.4), rgba(255, 20, 147, 0.4));
}

/* Titre des sections avec icône */
.cv-section-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px #00ffcc;
}

.pastel-theme .cv-section-title {
  color: #2b2b2b;
  text-shadow: none;
}

.cv-section-icon {
  font-size: 2rem;
  margin-right: 15px;
  color: #00ffcc;
  animation: pulse 2s infinite;
  text-shadow: 0 0 15px #00ffcc;
}

.pastel-theme .cv-section-icon {
  color: #A3B9C9;
  animation: none;
  text-shadow: none;
}

/* En-têtes de section génériques */
.pastel-theme .section-header h2,
.pastel-theme .section-header h2 i {
  color: #2b2b2b !important;
  text-shadow: none !important;
}
.pastel-theme .section-subtitle { color: #5e5e5e; }

/* Cartes de démonstration (dashboard) */
.pastel-theme .demo-card {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.18), rgba(216, 207, 196, 0.14));
  border: 2px solid rgba(163, 185, 201, 0.35);
  box-shadow: 0 10px 28px rgba(163, 185, 201, 0.18);
}
.pastel-theme .demo-card::before {
  background: linear-gradient(90deg, #A3B9C9, #B8C1A3, #C7CCD4, #A3B9C9);
}
.pastel-theme .demo-card:hover {
  border-color: #A3B9C9;
  box-shadow: 0 22px 48px rgba(163, 185, 201, 0.28);
}
.pastel-theme .demo-card-icon {
  background: linear-gradient(135deg, rgba(163, 185, 201, 0.25), rgba(216, 207, 196, 0.25));
  border: 2px solid rgba(163, 185, 201, 0.45);
}
.pastel-theme .demo-card-title { color: #2b2b2b; text-shadow: none; }
.pastel-theme .demo-card-description { color: #333; }
.pastel-theme .demo-tag {
  background: linear-gradient(135deg, rgba(163, 185, 201, 0.2), rgba(184, 193, 163, 0.2));
  color: #2b2b2b;
  border-color: rgba(163, 185, 201, 0.4);
}
.pastel-theme .demo-card-action {
  background: linear-gradient(135deg, #A3B9C9, #B8C1A3);
  color: #2b2b2b;
  box-shadow: 0 4px 14px rgba(163, 185, 201, 0.35);
}
.pastel-theme .demo-card:hover .demo-card-action {
  background: linear-gradient(135deg, #B8C1A3, #A3B9C9);
}

/* Panneaux (dashboard) */
.pastel-theme .demo-panel {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.18), rgba(216, 207, 196, 0.14));
  border: 2px solid rgba(163, 185, 201, 0.35);
  box-shadow: 0 12px 36px rgba(163, 185, 201, 0.2);
}
.pastel-theme .panel-header {
  background: linear-gradient(135deg, rgba(163, 185, 201, 0.2), rgba(216, 207, 196, 0.16));
  border-bottom: 1px solid rgba(163, 185, 201, 0.35);
}
.pastel-theme .panel-title h3 { color: #2b2b2b; text-shadow: none; }
.pastel-theme .panel-subtitle { color: #5e5e5e; }
.pastel-theme .panel-icon { background: rgba(163, 185, 201, 0.18); border-color: rgba(163, 185, 201, 0.4); }
.pastel-theme .panel-close { background: rgba(163, 185, 201, 0.15); border-color: rgba(163, 185, 201, 0.35); color: #2b2b2b; }

/* Expérience - suppression du violet */
.pastel-theme .cv-experience-title { color: #2b2b2b; text-shadow: none; }
.pastel-theme .cv-experience-company { color: #A3B9C9; }
.pastel-theme .cv-experience-item:hover .cv-experience-title { color: #2b2b2b !important; text-shadow: none !important; }
.pastel-theme .cv-experience-item:hover .cv-experience-company { color: #2b2b2b !important; }
.pastel-theme .cv-experience-year {
  background: rgba(163, 185, 201, 0.25);
  border-color: rgba(163, 185, 201, 0.4);
}
.pastel-theme .cv-experience-location {
  background: rgba(184, 193, 163, 0.2);
  border-color: rgba(184, 193, 163, 0.4);
}
.pastel-theme .cv-experience-location i { color: #A3B9C9; }
.pastel-theme .cv-experience-date { color: #5e5e5e; }

/* Images */
.pastel-theme #image-result img { box-shadow: 0 0 12px rgba(163, 185, 201, 0.4); }

/* Tech items */
.pastel-theme .cv-tech-item { background: linear-gradient(135deg, rgba(199, 204, 212, 0.2), rgba(216, 207, 196, 0.2)); border-color: rgba(163, 185, 201, 0.4); }
.pastel-theme .cv-tech-item i { color: #A3B9C9; text-shadow: none; }
.pastel-theme .cv-tech-item p { color: #2b2b2b; }

/* Langues - barre de progression sans violet */
.pastel-theme .cv-language-bar {
  background: linear-gradient(90deg, #A3B9C9, #B8C1A3, #C7CCD4);
  box-shadow: none;
}

/* Icône de toggle */
.cv-toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
}

/* Contenu des sections */
.cv-section-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.cv-section.active .cv-section-content {
  max-height: 2000px;
  padding: 20px;
}

.cv-section.active .cv-toggle-icon {
  transform: rotate(180deg);
}

/* Texte de profil */
.cv-profile-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  text-align: justify;
  margin-bottom: 20px;
  opacity: 0.9;
}

.pastel-theme .cv-profile-text {
  color: #2b2b2b;
}

/* =============================================== */
/* 🎯 NOUVELLE SECTION COMPÉTENCES MODERNE */
/* =============================================== */

/* Container principal des compétences */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

/* Groupe de catégories de compétences */
.skills-category-group {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.05), rgba(255, 20, 147, 0.05));
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pastel-theme .skills-category-group {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 3px solid rgba(139, 161, 184, 0.8) !important;
  box-shadow: 0 15px 40px rgba(143, 165, 184, 0.3), 
              0 5px 15px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

.skills-category-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ffcc, #9b59b6, #ff1493);
  border-radius: 20px 20px 0 0;
}

.pastel-theme .skills-category-group::before {
  background: linear-gradient(90deg, #A3B9C9, #B8C1A3, #C7CCD4);
}

.skills-category-group:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 255, 204, 0.15);
}

.pastel-theme .skills-category-group:hover {
  box-shadow: 0 20px 50px rgba(143, 165, 184, 0.4), 
              0 8px 25px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-5px);
}

/* Header des catégories */
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 255, 204, 0.2);
}

.pastel-theme .category-header {
  border-bottom: 2px solid rgba(139, 161, 184, 0.6) !important;
}

.category-icon {
  font-size: 2rem;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  padding: 10px;
  border-radius: 50%;
  background: rgba(0, 255, 204, 0.1);
}

.pastel-theme .category-icon {
  color: #8FA5B8 !important;
  text-shadow: none !important;
  background: linear-gradient(135deg, rgba(143, 165, 184, 0.15), rgba(163, 177, 143, 0.1)) !important;
  border: 2px solid rgba(139, 161, 184, 0.3) !important;
}

.category-header h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  margin: 0;
}

.pastel-theme .category-header h3 {
  color: #2b2b2b;
  text-shadow: none;
}

/* Grille des compétences avec barres de progression */
.skills-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Item de compétence individuel */
.skill-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.pastel-theme .skill-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 2px solid rgba(139, 161, 184, 0.4) !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.2), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 255, 204, 0.2);
}

.pastel-theme .skill-item:hover {
  box-shadow: 0 6px 20px rgba(143, 165, 184, 0.3), 
              0 0 0 2px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(139, 161, 184, 0.8) !important;
}

/* Compétences principales mise en avant */
.primary-skill {
  border-left: 4px solid #00ffcc;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(155, 89, 182, 0.05));
}

.pastel-theme .primary-skill {
  border-left: 4px solid #8FA5B8 !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95)) !important;
  box-shadow: 0 6px 20px rgba(143, 165, 184, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

/* Compétences featured (spécialisées) */
.featured-skill {
  border-left: 4px solid #ff1493;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(138, 43, 226, 0.05));
}

.pastel-theme .featured-skill {
  border-left: 4px solid #A3B18F !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95)) !important;
  box-shadow: 0 6px 20px rgba(163, 177, 143, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.9) !important;
}

/* Header de chaque compétence */
.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-header i {
  font-size: 1.5rem;
  color: #00ffcc;
  margin-right: 10px;
}

.pastel-theme .skill-header i {
  color: #8FA5B8 !important;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.pastel-theme .skill-name {
  color: #2b2b2b;
}

.skill-level {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-level.expert {
  background: linear-gradient(135deg, #00ffcc, #00cc99);
  color: #000;
}

.skill-level.advanced {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #fff;
}

.skill-level.intermediate {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
}

.skill-level.maitrise {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
}

.pastel-theme .skill-level.expert {
  background: linear-gradient(135deg, #A3B9C9, #8FA5B8);
  color: #2b2b2b;
}

.pastel-theme .skill-level.advanced {
  background: linear-gradient(135deg, #B8C1A3, #A3B18F);
  color: #2b2b2b;
}

.pastel-theme .skill-level.intermediate {
  background: linear-gradient(135deg, #C7CCD4, #B3B8C0);
  color: #2b2b2b;
}

.pastel-theme .skill-level.maitrise {
  background: linear-gradient(135deg, #B8C1A3, #A3B18F);
  color: #2b2b2b;
}

/* Barre de progression */
.skill-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.pastel-theme .skill-progress {
  background: rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffcc, #9b59b6);
  border-radius: 10px;
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.pastel-theme .progress-bar {
  background: linear-gradient(90deg, #A3B9C9, #B8C1A3);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Grille des tags pour les compétences supplémentaires */
.skills-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.skill-tag-category {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05));
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pastel-theme .skill-tag-category {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8)) !important;
  border: 2px solid rgba(139, 161, 184, 0.4) !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.2), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.skill-tag-category h4 {
  color: #00ffcc;
  margin-bottom: 15px;
  font-size: 1rem;
  text-shadow: 0 0 5px #00ffcc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pastel-theme .skill-tag-category h4 {
  color: #2b2b2b !important;
  text-shadow: none !important;
}

.skill-tag-category h4 i {
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.skill-tag.expert {
  background: linear-gradient(135deg, #00ffcc, #00cc99);
  color: #000;
  border-color: #00ffcc;
}

.skill-tag.advanced {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #fff;
  border-color: #9b59b6;
}

.skill-tag.intermediate {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  border-color: #f39c12;
}

.skill-tag.maitrise {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  border-color: #27ae60;
}

.pastel-theme .skill-tag.expert {
  background: linear-gradient(135deg, #A3B9C9, #8FA5B8);
  color: #2b2b2b;
  border-color: #A3B9C9;
}

.pastel-theme .skill-tag.advanced {
  background: linear-gradient(135deg, #B8C1A3, #A3B18F);
  color: #2b2b2b;
  border-color: #B8C1A3;
}

.pastel-theme .skill-tag.intermediate {
  background: linear-gradient(135deg, #C7CCD4, #B3B8C0);
  color: #2b2b2b;
  border-color: #C7CCD4;
}

.pastel-theme .skill-tag.maitrise {
  background: linear-gradient(135deg, #B8C1A3, #A3B18F);
  color: #2b2b2b;
  border-color: #B8C1A3;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.pastel-theme .skill-tag:hover {
  box-shadow: 0 5px 15px rgba(163, 185, 201, 0.3);
}

/* Grille des compétences (ancien style, conservé pour compatibilité) */
.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Catégorie de compétences */
.cv-skill-category {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 20, 147, 0.1));
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #00ffcc;
  transition: all 0.3s ease;
}

.pastel-theme .cv-skill-category {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.25), rgba(216, 207, 196, 0.25));
  border-left-color: #A3B9C9;
}

.cv-skill-category:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 20, 147, 0.2));
  transform: translateX(5px);
}

.pastel-theme .cv-skill-category:hover {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.35), rgba(216, 207, 196, 0.3));
}

.cv-skill-category h4 {
  color: #00ffcc;
  margin-bottom: 10px;
  font-size: 1.1rem;
  text-shadow: 0 0 5px #00ffcc;
}

.pastel-theme .cv-skill-category h4 {
  color: #2b2b2b;
  text-shadow: none;
}

/* Tags de compétences */
.cv-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill-tag {
  background: linear-gradient(135deg, #9b59b6, #be75e6);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

.pastel-theme .cv-skill-tag {
  background: linear-gradient(135deg, #C7CCD4, #D8CFC4);
  color: #2b2b2b;
  border: 1px solid rgba(163, 185, 201, 0.35);
  box-shadow: none;
}

.cv-skill-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 14px rgba(163, 185, 201, 0.28);
  background: linear-gradient(135deg, #A3B9C9, #B8C1A3);
  color: #2b2b2b;
}

/* Expérience Professionnelle - Style amélioré et modernisé */
.cv-experience-timeline {
  position: relative;
  padding-left: 0;
}

/* Suppression complète de tous les éléments timeline */
.cv-experience-timeline::before {
  display: none;
}

.cv-experience-item {
  position: relative;
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cv-experience-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 16px 48px rgba(0, 255, 204, 0.2);
}

.cv-experience-item::before {
  display: none;
}

.cv-experience-item::after {
  display: none;
}

.cv-experience-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}

.cv-experience-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.cv-experience-item:hover .cv-experience-title {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
  transform: translateX(4px);
}

/* Styles pour les logos d'expérience */
.cv-experience-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.experience-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cv-experience-item:hover .experience-logo {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 255, 204, 0.3);
}

.cv-experience-company {
  font-size: 1.1rem;
  font-weight: 600;
  color: #9b59b6;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.cv-experience-company::before {
  content: '🏢';
  font-size: 1rem;
}

.cv-experience-item:hover .cv-experience-company {
  color: #ffffff;
  transform: translateX(4px);
}

.cv-experience-date {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.cv-experience-year {
  background: rgba(155, 89, 182, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(155, 89, 182, 0.3);
  font-weight: 600;
  transition: all 0.3s ease;
}

.cv-experience-location {
  background: rgba(0, 255, 204, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 204, 0.3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.cv-experience-location i {
  color: #00ffcc;
  font-size: 0.85rem;
}

.cv-experience-item:hover .cv-experience-year {
  background: rgba(155, 89, 182, 0.3);
  border-color: rgba(155, 89, 182, 0.5);
  transform: translateX(4px);
}

.cv-experience-item:hover .cv-experience-location {
  background: rgba(0, 255, 204, 0.25);
  border-color: rgba(0, 255, 204, 0.5);
  transform: translateX(4px);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.cv-experience-item:hover .cv-experience-location i {
  color: #ffffff;
  text-shadow: 0 0 8px #00ffcc;
}

.cv-experience-description {
  margin: 16px 0;
  line-height: 1.6;
}

.cv-experience-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-experience-description li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.pastel-theme .cv-experience-description li {
  color: #2b2b2b;
}
.pastel-theme .cv-experience-description li::before { color: #A3B9C9; }
.pastel-theme .cv-experience-description li:hover { color: #2b2b2b; }
.pastel-theme .cv-experience-description li:hover::before { color: #7fa2b8; }

.cv-experience-description li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  color: #00ffcc;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.cv-experience-description li:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.cv-experience-description li:hover::before {
  color: #ffffff;
  transform: scale(1.2);
}

.cv-experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-experience-skill {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(155, 89, 182, 0.2));
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 204, 0.3);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 2px 8px rgba(0, 255, 204, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pastel-theme .cv-experience-skill {
  background: linear-gradient(135deg, #C7CCD4, #D8CFC4);
  color: #2b2b2b;
  border: 1px solid rgba(163, 185, 201, 0.4);
  box-shadow: none;
  text-shadow: none;
}
.pastel-theme .cv-experience-skill:hover {
  background: linear-gradient(135deg, #A3B9C9, #B8C1A3);
}

.cv-experience-skill:hover {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.4), rgba(155, 89, 182, 0.4));
  border-color: rgba(0, 255, 204, 0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 255, 204, 0.3);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Technologies Grid */
.cv-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cv-tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(0, 255, 204, 0.1));
  border-radius: 15px;
  border: 2px solid rgba(155, 89, 182, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  min-height: 120px;
}

.cv-tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: #00ffcc;
  box-shadow: 0 10px 25px rgba(0, 255, 204, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(155, 89, 182, 0.2));
}

.cv-tech-item i {
  font-size: 2.5rem;
  color: #9b59b6;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.cv-tech-item:hover i {
  color: #00ffcc;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
  transform: scale(1.1);
}

.cv-tech-item p {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  transition: all 0.3s ease;
}

.cv-tech-item:hover p {
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Languages Section */
.cv-languages {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 20px;
}

.cv-language-item {
  padding: 20px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(255, 215, 0, 0.1));
  border-radius: 20px;
  border: 2px solid rgba(155, 89, 182, 0.3);
  transition: all 0.3s ease;
}

.cv-language-item:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(155, 89, 182, 0.2));
}

.cv-language-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cv-language-flag {
  font-size: 2rem;
  transition: all 0.3s ease;
  margin-right: 15px;
}

.cv-language-item:hover .cv-language-flag {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.cv-language-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  flex: 1;
  transition: all 0.3s ease;
}

.cv-language-item:hover .cv-language-name {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.cv-language-level {
  color: #00ffcc;
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
  transition: all 0.3s ease;
}

.cv-language-item:hover .cv-language-level {
  color: #66d9ff;
  text-shadow: 0 0 15px rgba(102, 217, 255, 0.7);
}

.cv-language-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.cv-language-bar {
  height: 100%;
  background: linear-gradient(90deg, #9b59b6, #00ffcc, #ffd700);
  border-radius: 10px;
  transition: all 0.8s ease;
  position: relative;
  animation: progressGlow 2s ease-in-out infinite alternate;
}

/* Pastel overrides: Languages sans violet et lisibles */
.pastel-theme .cv-language-item {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.2), rgba(216, 207, 196, 0.18));
  border: 2px solid rgba(163, 185, 201, 0.45);
}
.pastel-theme .cv-language-item:hover {
  border-color: #A3B9C9;
  box-shadow: 0 10px 24px rgba(163, 185, 201, 0.25);
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.26), rgba(216, 207, 196, 0.22));
}
.pastel-theme .cv-language-name { color: #2b2b2b; }
.pastel-theme .cv-language-level { color: #A3B9C9; text-shadow: none; }
.pastel-theme .cv-language-progress { background: rgba(0,0,0,0.06); }
.pastel-theme .cv-language-bar { background: linear-gradient(90deg, #A3B9C9, #B8C1A3, #C7CCD4); animation: none; }

@keyframes progressGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(0, 255, 204, 0.5);
  }
}

.cv-language-item:hover .cv-language-bar {
  box-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 30px rgba(0, 255, 204, 0.7);
}

/* Education Section */
.cv-education-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(0, 255, 204, 0.1));
  border-radius: 15px;
  border: 2px solid rgba(155, 89, 182, 0.3);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cv-education-item:hover {
  transform: translateX(10px) scale(1.02);
  border-color: #00ffcc;
  box-shadow: 0 10px 25px rgba(0, 255, 204, 0.3);
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(155, 89, 182, 0.2));
}

.cv-education-icon {
  font-size: 2.5rem;
  color: #9b59b6;
  min-width: 60px;
  text-align: center;
  transition: all 0.3s ease;
}

.cv-education-item:hover .cv-education-icon {
  color: #00ffcc;
  text-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
  transform: scale(1.1);
}

.cv-education-details h4 {
  color: #00ffcc;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.5);
  transition: all 0.3s ease;
}

/* Pastel overrides: Education sans violet */
.pastel-theme .cv-education-item {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.2), rgba(216, 207, 196, 0.18));
  border: 2px solid rgba(163, 185, 201, 0.45);
}
.pastel-theme .cv-education-item:hover {
  border-color: #A3B9C9;
  box-shadow: 0 10px 24px rgba(163, 185, 201, 0.25);
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.26), rgba(216, 207, 196, 0.22));
}
.pastel-theme .cv-education-icon { color: #A3B9C9; text-shadow: none; }
.pastel-theme .cv-education-item:hover .cv-education-icon { color: #7fa2b8; text-shadow: none; }
.pastel-theme .cv-education-details h4 { color: #2b2b2b; text-shadow: none; }
.pastel-theme .cv-education-item:hover .cv-education-details h4 { color: #2b2b2b; }
.pastel-theme .cv-education-details p { color: #333; }
.pastel-theme .cv-education-item:hover .cv-education-details p { color: #2b2b2b !important; }

.cv-education-item:hover .cv-education-details h4 {
  color: #66d9ff;
  text-shadow: 0 0 15px rgba(102, 217, 255, 0.7);
}

.cv-education-details p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.cv-education-item:hover .cv-education-details p {
  color: #fff;
}

/* Certification Section */
.cv-certification-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(155, 89, 182, 0.1));
  border-radius: 15px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  margin-bottom: 25px; /* Espace entre les certificats */
}

.cv-certification-item:hover {
  transform: translateX(10px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(155, 89, 182, 0.2));
}

.cv-certification-icon {
  font-size: 2.5rem;
  color: #ffd700;
  min-width: 60px;
  text-align: center;
  transition: all 0.3s ease;
  animation: sparkle 3s infinite;
}

.cv-certification-item:hover .cv-certification-icon {
  transform: scale(1.2) rotateY(360deg);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Pastel overrides: Certification items */
.pastel-theme .cv-certification-item {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.2), rgba(216, 207, 196, 0.18));
  border: 2px solid rgba(163, 185, 201, 0.45);
}
.pastel-theme .cv-certification-item:hover {
  border-color: #A3B9C9;
  box-shadow: 0 10px 24px rgba(163, 185, 201, 0.25);
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.26), rgba(216, 207, 196, 0.22));
}
.pastel-theme .cv-certification-icon { color: #A3B9C9; text-shadow: none; animation: none; }
.pastel-theme .cv-certification-item:hover .cv-certification-icon { color: #7fa2b8; transform: scale(1.1); }
.pastel-theme .cv-certification-item h4 { color: #2b2b2b !important; }
.pastel-theme .cv-certification-item p { color: #333 !important; }
.pastel-theme .certification-link { color: #2b2b2b; }
.pastel-theme .certification-link:hover { color: #A3B9C9; }

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Optimisation des animations */
.cv-section {
  will-change: transform;
}

.cv-section-content {
  will-change: max-height;
}

/* Amélioration des performances de rendu */
* {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Réduction des animations sur mobile */
@media (max-width: 768px) {
  .cv-experience-item {
    animation: none;
    opacity: 1;
  }
  
  .cv-experience-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .cv-experience-company,
  .cv-experience-date {
    grid-column: 1;
    text-align: left;
  }
  
  /* Responsive pour nouvelles sections */
  .cv-tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .cv-tech-item {
    padding: 15px;
    min-height: 100px;
  }
  
  .cv-tech-item i {
    font-size: 2rem;
  }
  
  .cv-languages {
    gap: 15px;
  }
  
  .cv-language-item {
    min-width: 100px;
    padding: 15px;
  }
  
  .cv-language-flag {
    font-size: 2rem;
  }
  
  .cv-education-item,
  .cv-certification-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .cv-education-icon,
  .cv-certification-icon {
    min-width: auto;
  }
}

/* Animation pulse pour les icônes */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Animation d'entrée pour les éléments */
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations pour la section expérience */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.7), 0 0 25px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 204, 1), 0 0 40px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
  }
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2); 
  }
}

/* GitHub Projects Section - AMÉLIORATION COMPLÈTE */

/* Conteneur principal des projets GitHub - Plus d'espace */
.github-projects-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 400px;
  box-sizing: border-box;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  padding: 0 10px;
}

.repo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.repo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #9b59b6, #00ffcc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.repo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.repo-card:hover::before {
  transform: scaleX(1);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  min-height: 40px;
  gap: 12px;
}

.repo-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.repo-title a {
  color: #00ffcc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.repo-title a:hover {
  color: #ffffff;
  transform: scale(1.02);
}

.repo-name {
  flex: 1;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.repo-links {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 120px;
}

.repo-link {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  white-space: nowrap;
}

/* Pastel overrides for GitHub cards: meilleur contraste et couleur de carte */
.pastel-theme .repo-card {
  background: #ffffff;
  border: 1px solid rgba(163, 185, 201, 0.45);
  box-shadow: 0 10px 26px rgba(163, 185, 201, 0.22);
}
.pastel-theme .repo-card:hover {
  background: #ffffff;
  border-color: rgba(163, 185, 201, 0.65);
  box-shadow: 0 14px 34px rgba(163, 185, 201, 0.28);
}
.pastel-theme .repo-card::before {
  background: linear-gradient(90deg, #A3B9C9, #B8C1A3);
}
.pastel-theme .repo-title a { color: #2b2b2b; }
.pastel-theme .repo-title a:hover { color: #2b2b2b; text-decoration: underline; }
.pastel-theme .repo-description { color: #333; text-shadow: none; }
.pastel-theme .repo-link { background: rgba(199, 204, 212, 0.4); border-color: rgba(163, 185, 201, 0.45); color: #2b2b2b; }
.pastel-theme .repo-link:hover { background: rgba(163, 185, 201, 0.45); border-color: rgba(163, 185, 201, 0.6); }
.pastel-theme .homepage-link { background: rgba(184, 193, 163, 0.35); border-color: rgba(184, 193, 163, 0.5); }

.repo-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.homepage-link {
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid rgba(0, 255, 204, 0.25);
}

.homepage-link:hover {
  background: rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.repo-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 12px 0;
  line-height: 1.5;
  min-height: 3em;
  max-height: 4.5em;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.repo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
  min-height: 28px;
  align-content: flex-start;
  justify-content: flex-start;
}

.topic {
  background: rgba(155, 89, 182, 0.25);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(155, 89, 182, 0.4);
}

.topic:hover {
  background: rgba(155, 89, 182, 0.4);
  transform: scale(1.05);
}

.repo-stats {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.repo-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
}

.repo-stat i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.with-language i {
  font-size: 0.7em;
  color: #00ffcc;
}

.loading {
  text-align: center;
  padding: 60px 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 200px;
}

.loading i {
  color: #00ffcc;
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

.error-message {
  text-align: center;
  padding: 40px;
  background: rgba(255, 59, 48, 0.15);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.error-message i {
  font-size: 2.5rem;
  color: #ff3b30;
}

.error-message a {
  color: #00ffcc;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #00ffcc;
  border-radius: 25px;
  margin-top: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.error-message a:hover {
  background: rgba(0, 255, 204, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.no-projects {
  text-align: center;
  padding: 60px 40px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.no-projects i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 15px;
}

/* Style du footer amélioré */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 20, 147, 0.2));
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 20, 147, 0.3));
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.contact-item i {
  font-size: 1.5rem;
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Pastel footer contact items */
/* Pastel footer contact items - cartes blanches pour contraster avec le fond */
.pastel-theme footer .contact-item {
  color: #2b2b2b;
  background: #ffffff;
  border: 1px solid rgba(163, 185, 201, 0.45);
  box-shadow: 0 6px 18px rgba(163, 185, 201, 0.25);
}
.pastel-theme footer .contact-item:hover {
  background: #ffffff;
  border-color: rgba(163, 185, 201, 0.65);
  box-shadow: 0 10px 24px rgba(163, 185, 201, 0.32);
  transform: translateY(-4px);
}
.pastel-theme footer .contact-item i { color: #2b2b2b; text-shadow: none; }
.pastel-theme footer .contact-item span { color: #2b2b2b; }

.contact-item span {
  font-size: 0.9rem;
}

/* Style du lien de certification */
.certification-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.certification-link:hover {
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.certification-link i {
  font-size: 0.8em;
  opacity: 0.8;
}

.certification-link:hover i {
  transform: translateX(3px);
  opacity: 1;
}

/* Style du bouton de téléchargement CV */
.download-cv-button {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

/* Bouton CV en pastel */
.pastel-theme .cv-download-btn {
  background: linear-gradient(135deg, rgba(163, 185, 201, 0.2), rgba(216, 207, 196, 0.2));
  border: 1px solid rgba(163, 185, 201, 0.45);
  color: #2b2b2b;
}
.pastel-theme .cv-download-btn::before {
  background: linear-gradient(45deg, #A3B9C9, #B8C1A3, #A3B9C9);
}
.pastel-theme .cv-download-btn::after {
  background: rgba(199, 204, 212, 0.2);
}
.pastel-theme .download-icon {
  background: linear-gradient(135deg, #A3B9C9, #B8C1A3);
}
.pastel-theme .cv-download-btn:hover {
  box-shadow: 0 5px 16px rgba(163, 185, 201, 0.28);
}
.pastel-theme .cv-download-btn:hover .download-icon {
  background: linear-gradient(135deg, #B8C1A3, #A3B9C9);
}

.cv-download-btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffcc, #9b59b6, #00ffcc);
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv-download-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(138, 43, 226, 0.2);
  border-radius: 7px;
  z-index: -1;
}

.download-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #00ffcc, #9b59b6);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cv-download-btn i {
  font-size: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

.download-text {
  position: relative;
  z-index: 1;
}

/* Hover effects */
.cv-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
}

.cv-download-btn:hover::before {
  opacity: 1;
}

.cv-download-btn:hover .download-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #9b59b6, #00ffcc);
}

.cv-download-btn:hover i {
  animation: bounce 0.5s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Active state */
.cv-download-btn:active {
  transform: translateY(1px);
}

/* Responsive design */
@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .title-container h2 {
    margin-bottom: 15px;
  }
}

/* Header CV avec bouton de téléchargement */
.cv-header {
  margin-bottom: 30px;
  padding: 0 20px;
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.title-container h2 {
  margin: 0;
  font-size: 2em;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  flex: 1;
}

.pastel-theme .title-container h2 {
  color: #2b2b2b;
  text-shadow: none;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

/* Responsive design */
@media (max-width: 768px) {
  .title-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .title-container h2 {
    margin-bottom: 15px;
  }
}

/* Variables CSS pour le thème */
:root {
  --bg-primary: #4b0082;
  --bg-secondary: #2c003e;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-primary: #00ffcc;
  --accent-secondary: #00ccaa;
  --neon-glow: rgba(0, 255, 204, 0.5);
  --navbar-bg: rgba(75, 0, 130, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: var(--bg-secondary);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

/* Section SQL améliorée */
.sql-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.2), rgba(43, 0, 75, 0.2));
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
  border: 2px solid rgba(0, 255, 204, 0.2);
}

#sql-console.interactive-section {
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  text-align: center;
}

.table-info {
  background: linear-gradient(135deg, #403D39, #2c003e);
  border-radius: 15px;
  padding: 25px;
  margin: 30px auto;
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.1);
  max-width: 900px;
  backdrop-filter: blur(10px);
}

.table-header {
  font-size: 1.5rem;
  color: #00ffcc;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  font-family: 'Orbitron', sans-serif;
}

.table-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.table-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.table-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-item:hover {
  background: rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 20, 147, 0.3);
  box-shadow: 
      0 0 15px rgba(138, 43, 226, 0.3),
      0 0 30px rgba(255, 20, 147, 0.2);
}

.table-item:active {
  transform: translateY(0);
  background: rgba(138, 43, 226, 0.3);
}

.table-name {
  font-size: 1.1em;
  color: #00ffcc;
  margin-bottom: 5px;
  font-weight: bold;
}

/* Console SQL Interactive - Thème pastel professionnel */

/* Container principal - Contraste amélioré */
.pastel-theme .sql-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 3px solid rgba(139, 161, 184, 0.8) !important;
  box-shadow: 0 15px 40px rgba(143, 165, 184, 0.3), 
              0 5px 15px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  border-radius: 18px !important;
  padding: 25px !important;
}

/* Table info - Style moderne */
.pastel-theme .table-info {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(240, 244, 248, 0.85)) !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  box-shadow: 0 8px 25px rgba(143, 165, 184, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  border-radius: 15px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}

.pastel-theme .table-header {
  color: #2b2b2b !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  font-size: 18px !important;
}

.pastel-theme .table-description { 
  color: #5e5e5e !important; 
  font-weight: 500 !important;
  margin-top: 8px !important;
}

/* Table items - Contraste renforcé */
.pastel-theme .table-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8)) !important;
  border: 2px solid rgba(139, 161, 184, 0.4) !important;
  border-radius: 12px !important;
  padding: 15px 18px !important;
  margin: 10px 0 !important;
  transition: all 0.3s ease !important;
}

.pastel-theme .table-item:hover {
  background: linear-gradient(135deg, rgba(143, 165, 184, 0.15), rgba(163, 177, 143, 0.1)) !important;
  border-color: rgba(139, 161, 184, 0.8) !important;
  box-shadow: 0 6px 20px rgba(143, 165, 184, 0.3), 
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) !important;
}

.pastel-theme .table-name { 
  color: #2b2b2b !important; 
  font-weight: 600 !important;
}

.pastel-theme .table-stats { 
  color: #5e5e5e !important; 
  font-weight: 500 !important;
}

.pastel-theme .table-cols, .pastel-theme .table-rows { 
  background: rgba(143, 165, 184, 0.1) !important; 
  border: 1px solid rgba(139, 161, 184, 0.3) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-weight: 500 !important;
}

.pastel-theme .table-hint { 
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(240, 244, 248, 0.6)) !important; 
  border: 2px solid rgba(139, 161, 184, 0.4) !important;
  border-radius: 12px !important;
  padding: 15px !important;
  margin: 15px 0 !important;
}

.pastel-theme .table-hint p, .pastel-theme .table-hint code { 
  color: #2b2b2b !important; 
  border-left: 4px solid #8FA5B8 !important;
  padding-left: 12px !important;
  font-weight: 500 !important;
}

/* SQL Output - Style moderne */
.pastel-theme #sql-output {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  color: #2b2b2b !important;
  border-radius: 12px !important;
  padding: 20px !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.2), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

.pastel-theme #sql-output::before { 
  background: none !important; 
}

/* Textarea SQL - Design cohérent */
.pastel-theme textarea.sql-textarea {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  color: #2b2b2b !important;
  border-radius: 12px !important;
  padding: 15px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.pastel-theme textarea.sql-textarea:focus {
  border-color: #8FA5B8 !important;
  box-shadow: 0 0 20px rgba(143, 165, 184, 0.3), 
              0 0 0 3px rgba(143, 165, 184, 0.1) !important;
  outline: none !important;
}

/* Boutons SQL - Style amélioré */
.pastel-theme .sql-button.primary {
  background: linear-gradient(135deg, #8FA5B8, #A3B18F) !important;
  color: #2b2b2b !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  border-radius: 10px !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.pastel-theme .sql-button.primary:hover {
  background: linear-gradient(135deg, #A3B18F, #8FA5B8) !important;
  box-shadow: 0 6px 20px rgba(143, 165, 184, 0.35), 
              0 0 0 2px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.02) !important;
  border-color: rgba(139, 161, 184, 0.8) !important;
}

.pastel-theme .sql-button {
  background: linear-gradient(135deg, rgba(199, 204, 212, 0.6), rgba(216, 207, 196, 0.5)) !important;
  color: #2b2b2b !important;
  border: 2px solid rgba(139, 161, 184, 0.5) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.pastel-theme .sql-button:hover {
  background: linear-gradient(135deg, rgba(143, 165, 184, 0.4), rgba(163, 177, 143, 0.3)) !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-1px) !important;
  border-color: rgba(139, 161, 184, 0.7) !important;
}

/* Section Assistant supprimée - Styles conservés pour compatibilité */

/* Toggle button - Contraste amélioré */
.pastel-theme .chat-toggle {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.85)) !important;
  border: 3px solid rgba(139, 161, 184, 0.8) !important;
  box-shadow: 0 8px 25px rgba(143, 165, 184, 0.3), 
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  border-radius: 15px !important;
  padding: 18px 22px !important;
}

.pastel-theme .chat-toggle:hover {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(240, 244, 248, 0.9)) !important;
  box-shadow: 0 12px 35px rgba(143, 165, 184, 0.4), 
              0 0 0 2px rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-3px) !important;
  border-color: rgba(139, 161, 184, 1) !important;
}

.pastel-theme .chat-toggle span {
  color: #2b2b2b !important;
  font-weight: 600 !important;
  font-size: 16px !important;
}

.pastel-theme .chat-toggle i {
  color: #8FA5B8 !important;
  font-size: 18px !important;
}

/* Container principal - Cadre renforcé */
.pastel-theme .chat-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
  border: 3px solid rgba(139, 161, 184, 0.8) !important;
  box-shadow: 0 15px 40px rgba(143, 165, 184, 0.3), 
              0 5px 15px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.8) !important;
  border-radius: 18px !important;
  padding: 25px !important;
  margin-top: 20px !important;
}

/* Zone de messages - Style moderne */
.pastel-theme .chat-messages {
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.8), rgba(240, 244, 248, 0.6)) !important;
  border: 2px solid rgba(139, 161, 184, 0.4) !important;
  border-radius: 15px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  max-height: 350px !important;
}

/* Messages utilisateur */
.pastel-theme .user-message { 
  background: linear-gradient(135deg, rgba(143, 165, 184, 0.25), rgba(163, 177, 143, 0.2)) !important; 
  border-right: 4px solid #8FA5B8 !important;
  border-radius: 15px 15px 5px 15px !important;
  padding: 15px 18px !important;
  margin: 12px 0 !important;
  box-shadow: 0 3px 12px rgba(143, 165, 184, 0.2) !important;
}

/* Messages bot */
.pastel-theme .bot-message { 
  background: linear-gradient(135deg, rgba(163, 177, 143, 0.25), rgba(184, 193, 163, 0.2)) !important; 
  border-left: 4px solid #A3B18F !important;
  border-radius: 15px 15px 15px 5px !important;
  padding: 15px 18px !important;
  margin: 12px 0 !important;
  box-shadow: 0 3px 12px rgba(163, 177, 143, 0.2) !important;
}

/* Contenu des messages */
.pastel-theme .message-content i { 
  color: #8FA5B8 !important; 
  background: rgba(255, 255, 255, 0.8) !important;
  border-radius: 50% !important;
  padding: 3px !important;
}

.pastel-theme .message-content p { 
  color: #2b2b2b !important; 
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* Input de chat - Design moderne */
.pastel-theme .chat-input { 
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important; 
  color: #2b2b2b !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  border-radius: 25px !important;
  padding: 15px 20px !important;
  font-size: 15px !important;
  transition: all 0.3s ease !important;
}

.pastel-theme .chat-input:focus {
  border-color: #8FA5B8 !important;
  box-shadow: 0 0 20px rgba(143, 165, 184, 0.3), 
              0 0 0 3px rgba(143, 165, 184, 0.1) !important;
  outline: none !important;
}

.pastel-theme .chat-input::placeholder {
  color: rgba(43, 43, 43, 0.6) !important;
  font-style: italic !important;
}

/* Bouton d'envoi - Style cohérent */
.pastel-theme .chat-send-button { 
  background: linear-gradient(135deg, #8FA5B8, #A3B18F) !important;
  border: 2px solid rgba(139, 161, 184, 0.6) !important;
  box-shadow: 0 4px 15px rgba(143, 165, 184, 0.25), 
              0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

.pastel-theme .chat-send-button:hover {
  background: linear-gradient(135deg, #A3B18F, #8FA5B8) !important;
  box-shadow: 0 6px 20px rgba(143, 165, 184, 0.35), 
              0 0 0 2px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) scale(1.05) !important;
  border-color: rgba(139, 161, 184, 0.8) !important;
}

.pastel-theme .chat-send-button i {
  color: #2b2b2b !important;
  font-size: 16px !important;
}

.table-stats {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 15px;
}

.table-cols, .table-rows {
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

.table-hint {
  margin-top: 25px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 204, 0.2);
}

.table-hint p {
  color: #00ffcc;
  margin-bottom: 15px;
  font-size: 1rem;
  text-align: center;
}

.table-hint code {
  display: block;
  padding: 12px 15px;
  margin: 10px 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  font-family: 'Monaco', monospace;
  font-size: 0.9rem;
  color: #00ffcc;
  border-left: 3px solid #00ffcc;
}

/* Chatbot Toggle */
.chat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(43, 0, 75, 0.3));
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  transition: all 0.3s ease;
}

.chat-toggle:hover {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.4), rgba(43, 0, 75, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.1);
}

.chat-toggle i {
  transition: transform 0.3s ease;
}

.chat-toggle.active i {
  transform: rotate(180deg);
}

.chat-container {
  display: none;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.2), rgba(43, 0, 75, 0.2));
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.chat-container.active {
  display: block;
}

.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 10px;
}

.chat-message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  max-width: 80%;
}

.user-message {
  background: rgba(0, 255, 204, 0.1);
  margin-left: auto;
  border-right: 3px solid #00ffcc;
}

.bot-message {
  background: rgba(155, 89, 182, 0.1);
  margin-right: auto;
  border-left: 3px solid #9b59b6;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  color: #ff4444;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.message-content i {
  font-size: 1.2em;
  color: #00ffcc;
}

.message-content p {
  margin: 0;
  color: #fff;
  line-height: 1.4;
}

.chat-input-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.chat-input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1rem;
}

.chat-input:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.chat-send-button {
  background: linear-gradient(135deg, #00ffcc, #00ccaa);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.chat-send-button i {
  color: #000;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .table-info {
    padding: 15px;
    margin: 15px;
  }

  .table-list {
    grid-template-columns: 1fr;
  }

  .table-item {
    padding: 12px;
  }

  .chat-input-container {
    margin: 10px;
    padding: 10px;
  }

  .chat-input {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .chat-send-button {
    width: 40px;
    height: 40px;
  }
}

/* Classes spécifiques aux thèmes */
body.light-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Transitions pour les éléments communs */
a, button, input, textarea {
  transition: all var(--transition-duration) ease;
}

/* Styles pour les cartes et sections dans le mode sombre */
.dark-theme .cv-section,
.dark-theme .repo-card,
.dark-theme .interactive-card,
.dark-theme .contact-item,
.dark-theme .table-item {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 2px solid rgba(0, 255, 204, 0.3);
  color: #FFFCF2;
  box-shadow: 0 8px 32px rgba(0, 255, 204, 0.15);
}

.dark-theme .cv-section:hover,
.dark-theme .repo-card:hover,
.dark-theme .interactive-card:hover,
.dark-theme .contact-item:hover,
.dark-theme .table-item:hover {
  background: linear-gradient(135deg, #403D39, #252422);
  border-color: #00ffcc;
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 255, 204, 0.35);
}

/* Styles spécifiques pour les cartes GitHub en mode sombre */
.dark-theme .repo-card {
  background: linear-gradient(135deg, #2C2C2C, #1A1A1A);
  border: 2px solid rgba(0, 255, 204, 0.25);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.dark-theme .repo-card:hover {
  background: linear-gradient(135deg, #333333, #1F1F1F);
  border-color: rgba(0, 255, 204, 0.6);
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 255, 204, 0.4);
}

.dark-theme .repo-card::before {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(0, 200, 255, 0.05));
}

.dark-theme .repo-card:hover::before {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 200, 255, 0.1));
}

/* Styles pour les titres et contenus des cartes GitHub en mode sombre */
.dark-theme .repo-title a {
  color: #FFFFFF;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.dark-theme .repo-title a:hover {
  color: #00FFCC;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
  transform: scale(1.05);
}

.dark-theme .repo-description {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.dark-theme .repo-link {
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #FFFFFF;
  font-weight: 600;
}

.dark-theme .repo-link:hover {
  background: rgba(0, 255, 204, 0.3);
  border-color: rgba(0, 255, 204, 0.6);
  color: #FFFFFF;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.dark-theme .homepage-link {
  background: rgba(0, 255, 204, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.4);
}

.dark-theme .homepage-link:hover {
  background: rgba(0, 255, 204, 0.4);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
}

.dark-theme .topic {
  background: rgba(100, 50, 150, 0.3);
  border: 1px solid rgba(155, 89, 182, 0.5);
  color: #FFFFFF;
  font-weight: 600;
}

.dark-theme .topic:hover {
  background: rgba(155, 89, 182, 0.5);
  border-color: rgba(155, 89, 182, 0.8);
  box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.dark-theme .repo-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .repo-stat {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.dark-theme .repo-stat i {
  color: rgba(0, 255, 204, 0.8);
}

.dark-theme .with-language i {
  color: #00FFCC;
}

/* Harmonisation des en-têtes de sections CV en mode sombre */
.dark-theme .cv-section-header {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.8), rgba(37, 36, 34, 0.8));
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
}

.dark-theme .cv-section-header:hover {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.9), rgba(37, 36, 34, 0.9));
}

/* Harmonisation des éléments d'expérience en mode sombre */
.dark-theme .cv-experience-item {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.3), rgba(37, 36, 34, 0.3));
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 5px 20px rgba(0, 255, 204, 0.1);
}

.dark-theme .cv-experience-item:hover {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.4), rgba(37, 36, 34, 0.4));
  border-color: #00ffcc;
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
}

/* Correction des couleurs nom d'entreprise et date en mode sombre */
.dark-theme .cv-experience-company {
  color: #00ffcc !important;
}

.dark-theme .cv-experience-item:hover .cv-experience-company {
  color: #ffffff !important;
}

.dark-theme .cv-experience-year {
  background: rgba(0, 255, 204, 0.2) !important;
  border: 1px solid rgba(0, 255, 204, 0.3) !important;
  color: #ffffff !important;
}

.dark-theme .cv-experience-location {
  background: rgba(0, 255, 204, 0.15) !important;
  border: 1px solid rgba(0, 255, 204, 0.3) !important;
  color: #ffffff !important;
}

.dark-theme .cv-experience-location i {
  color: #00ffcc !important;
}

.dark-theme .cv-experience-item:hover .cv-experience-year {
  background: rgba(0, 255, 204, 0.3) !important;
  border-color: rgba(0, 255, 204, 0.5) !important;
}

.dark-theme .cv-experience-item:hover .cv-experience-location {
  background: rgba(0, 255, 204, 0.25) !important;
  border-color: rgba(0, 255, 204, 0.5) !important;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4) !important;
}

.dark-theme .cv-experience-item:hover .cv-experience-location i {
  color: #ffffff !important;
  text-shadow: 0 0 10px #00ffcc !important;
}

/* Base de données du CV harmonisée */
.dark-theme .table-info {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.1);
}

/* Chat et panneaux harmonisés */
.dark-theme .chat-toggle,
.dark-theme .chat-container {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.dark-theme .chat-toggle:hover {
  background: linear-gradient(135deg, #403D39, #252422);
  border-color: #00ffcc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* Panneau SQL harmonisé en mode sombre */
.dark-theme .sql-container {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
}

.dark-theme textarea {
  background: linear-gradient(to bottom, rgba(64, 61, 57, 0.8), rgba(37, 36, 34, 0.8));
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  color: #FFFCF2;
}

.dark-theme textarea:focus {
  border-color: #00ffcc;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.6);
}

.dark-theme #sql-output {
  background: linear-gradient(to bottom, rgba(64, 61, 57, 0.6), rgba(37, 36, 34, 0.6));
  border: 2px solid rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  color: #FFFCF2;
}

.dark-theme #sql-output::before {
  background: linear-gradient(to bottom, rgba(0, 255, 204, 0.05), rgba(255, 215, 0, 0.05));
}

/* Ajustements pour les inputs en mode sombre */
.dark-theme input,
.dark-theme .chat-input {
  background: #403D39;
  border: 2px solid rgba(0, 255, 204, 0.2);
  color: #FFFCF2;
}

.dark-theme input:focus,
.dark-theme .chat-input:focus {
  border-color: #00ffcc;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Textarea géré séparément ci-dessus pour harmonisation SQL */

/* Styles pour les boutons en mode sombre */
.dark-theme button {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 1px solid #CCC5B9;
  color: #FFFCF2;
}

.dark-theme button:hover {
  background: linear-gradient(135deg, #CCC5B9, #403D39);
  border-color: #CCC5B9;
  color: #252422;
  box-shadow: 0 4px 8px rgba(37, 36, 34, 0.5);
}

/* Ajustements pour le mode sombre */
.dark-theme .navbar {
  box-shadow: 0 2px 10px rgba(37, 36, 34, 0.5);
}

.dark-theme .theme-button {
  box-shadow: 0 2px 8px rgba(37, 36, 34, 0.5);
}

/* Styles spécifiques pour les éléments de navbar en mode sombre */
.dark-theme .navbar-item {
  color: #FFFCF2;
}

.dark-theme .navbar-item:hover {
  color: #CCC5B9;
  background: rgba(204, 197, 185, 0.1);
}

.dark-theme .navbar-icon-item {
  background: rgba(204, 197, 185, 0.15);
  color: #FFFCF2;
  border-color: rgba(204, 197, 185, 0.3);
}

.dark-theme .navbar-icon-item:hover {
  background: #CCC5B9;
  color: #252422;
  border-color: #CCC5B9;
}

.dark-theme .navbar-logo {
  color: #FFFCF2;
  text-shadow: 0 0 10px #403D39;
}

.dark-theme .theme-button {
  border-color: #CCC5B9;
  color: #FFFCF2;
}

.dark-theme .theme-button:hover {
  background: rgba(204, 197, 185, 0.1);
}

.dark-theme .cv-skill-tag,
.dark-theme .topic {
  background: #403D39;
  border: 1px solid #CCC5B9;
  color: #FFFCF2;
}

.dark-theme .cv-skill-tag:hover,
.dark-theme .topic:hover {
  background: #CCC5B9;
  border-color: #CCC5B9;
  color: #252422;
}

/* Styles pour les cartes de démo en mode sombre */
.dark-theme .demo-card {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.4), rgba(37, 36, 34, 0.4));
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dark-theme .demo-card:hover {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.6), rgba(37, 36, 34, 0.6));
  border-color: #00ffcc;
  box-shadow: 0 25px 60px rgba(0, 255, 204, 0.4), 0 0 30px rgba(0, 255, 204, 0.3);
}

.dark-theme .demo-card-title {
  color: #FFFCF2;
}

.dark-theme .demo-card-description {
  color: rgba(255, 252, 242, 0.9);
}

.dark-theme .demo-tag {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(204, 197, 185, 0.2));
  color: #00ffcc;
  border-color: rgba(0, 255, 204, 0.4);
}

.dark-theme .demo-card:hover .demo-tag {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.3), rgba(204, 197, 185, 0.3));
  border-color: rgba(0, 255, 204, 0.6);
}

/* Styles des panneaux de démo en mode sombre */
.dark-theme .demo-panel {
  background: linear-gradient(135deg, rgba(64, 61, 57, 0.4), rgba(37, 36, 34, 0.4));
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.dark-theme .panel-header {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(204, 197, 185, 0.1));
  border-bottom-color: rgba(0, 255, 204, 0.3);
}

.dark-theme .panel-title h3 {
  color: #FFFCF2;
}

.dark-theme .panel-subtitle {
  color: rgba(255, 252, 242, 0.8);
}

.dark-theme .demo-intro {
  background: rgba(0, 255, 204, 0.08);
  border-color: rgba(0, 255, 204, 0.15);
}

.dark-theme .intro-text p {
  color: rgba(255, 252, 242, 0.9);
}

.dark-theme .data-panel, 
.dark-theme .prediction-panel {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 204, 0.3);
}

.dark-theme .panel-section-header h4 {
  color: #FFFCF2;
}

.dark-theme .demo-status {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 255, 204, 0.2);
  color: rgba(255, 252, 242, 0.9);
}

/* Styles du dashboard analytics en mode sombre */
.dark-theme .data-source-selector label, 
.dark-theme .time-range-selector label {
  color: rgba(255, 252, 242, 0.9);
}

.dark-theme .data-source-selector select, 
.dark-theme .time-range-selector select {
  background: rgba(0, 0, 0, 0.5);
  color: #FFFCF2;
  border-color: rgba(0, 255, 204, 0.4);
}



/* Correction des icônes pour le mode sombre */
.dark-theme i,
.dark-theme .fas,
.dark-theme .fab {
  color: #FFFCF2 !important;
}

.dark-theme .chat-send-button {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 1px solid #CCC5B9;
}

.dark-theme .chat-send-button:hover {
  background: linear-gradient(135deg, #CCC5B9, #403D39);
  box-shadow: 0 0 15px rgba(204, 197, 185, 0.3);
}

.dark-theme .chat-send-button i {
  color: #252422;
}

.dark-theme .message-content i {
  color: #FFFCF2 !important;
}

.dark-theme .user-message {
  background: rgba(204, 197, 185, 0.1);
  border-right: 3px solid #CCC5B9;
}

.dark-theme .bot-message {
  background: rgba(64, 61, 57, 0.1);
  border-left: 3px solid #403D39;
}

.dark-theme .error-message {
  background: rgba(64, 61, 57, 0.2);
  color: #FFFCF2;
}

/* Remplacement des couleurs spécifiques pour certains éléments en mode sombre */
.dark-theme #storm-effect {
  background: linear-gradient(to bottom, #252422 60%, #403D39);
}

.dark-theme #storm-effect::before {
  background: rgba(64, 61, 57, 0.3);
}

.dark-theme #storm-effect::after {
  background: rgba(64, 61, 57, 0.5);
}

.dark-theme .cell {
  background: linear-gradient(to top, #403D39 50%, #CCC5B9 100%);
}

.dark-theme .agent {
  background: #CCC5B9;
  box-shadow: 0 0 10px rgba(204, 197, 185, 0.5);
}

.dark-theme .goal {
  background: #FFFCF2;
  box-shadow: 0 0 15px rgba(255, 252, 242, 0.7);
}

.dark-theme .optimal-path {
  border-color: #CCC5B9;
  box-shadow: 0 0 10px rgba(204, 197, 185, 0.5);
}

/* Styles harmonisés pour chat déjà définis ci-dessus */

.dark-theme .cv-download-btn {
  background: linear-gradient(135deg, #403D39, #252422);
  border: 1px solid #CCC5B9;
  color: #FFFCF2;
}

.dark-theme .cv-download-btn:hover {
  background: linear-gradient(135deg, #CCC5B9, #403D39);
  color: #252422;
}

.dark-theme .cv-download-btn::before {
  background: rgba(204, 197, 185, 0.2);
}

.dark-theme .download-icon {
  background: #CCC5B9;
  color: #252422;
}

.dark-theme .cv-download-btn:hover .download-icon {
  background: #FFFCF2;
}

body.dark-theme #hero h1 {
  color: #FFFCF2 !important;
  text-shadow: 0 0 20px rgba(204, 197, 185, 0.8) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 3.5em !important;
  font-weight: bold !important;
  margin: 20px 0 !important;
}

/* Style ultra-forcé pour le h1 en mode sombre - Palette normale */
.dark-theme #hero h1,
body.dark-theme #hero h1,
html.dark-theme #hero h1 {
  color: #FFFCF2 !important;
  background: transparent !important;
  text-shadow: 0 0 20px #CCC5B9, 0 0 40px #CCC5B9 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 3.5em !important;
  font-weight: bold !important;
  margin: 20px 0 !important;
  z-index: 999 !important;
  border: none !important;
  padding: 20px !important;
  text-align: center !important;
  width: 100% !important;
  position: relative !important;
}

body.dark-theme footer {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-top: 2px solid #CCC5B9 !important;
  box-shadow: 0 -2px 10px rgba(204, 197, 185, 0.2) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dark-theme footer .contact-item {
  background: linear-gradient(135deg, rgba(204, 197, 185, 0.2), rgba(64, 61, 57, 0.3)) !important;
  border: 2px solid #CCC5B9 !important;
  color: #FFFCF2 !important;
  box-shadow: 0 4px 12px rgba(204, 197, 185, 0.3) !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

body.dark-theme footer .contact-item:hover {
  background: linear-gradient(135deg, rgba(204, 197, 185, 0.3), rgba(64, 61, 57, 0.4)) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(204, 197, 185, 0.5) !important;
  border-color: #FFFCF2 !important;
}

body.dark-theme footer .contact-item i {
  color: #00ffcc !important;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.7) !important;
}

body.dark-theme footer .contact-item span {
  color: #FFFCF2 !important;
  font-weight: 600;
}

body.dark-theme footer .contact-grid {
  background: transparent !important;
  padding: 15px !important;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.dark-theme footer p {
  color: #FFFCF2 !important;
  font-weight: bold !important;
  font-size: 1.1em !important;
  text-align: center !important;
  margin: 15px 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Style de debug ultra-robuste pour le footer en mode sombre */
.dark-theme footer,
body.dark-theme footer,
html.dark-theme footer {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-top: 3px solid #CCC5B9 !important;
  box-shadow: 0 -3px 15px rgba(204, 197, 185, 0.4) !important;
  padding: 20px 10px !important;
  margin-top: 50px !important;
  font-weight: bold !important;
  font-size: 1.1em !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 999 !important;
  min-height: 100px !important;
}

.dark-theme footer .contact-grid,
body.dark-theme footer .contact-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 20px !important;
  padding: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark-theme footer .contact-item,
body.dark-theme footer .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #FFFCF2 !important;
  text-decoration: none !important;
  padding: 15px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(204, 197, 185, 0.15), rgba(64, 61, 57, 0.25)) !important;
  border: 1px solid #CCC5B9 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(204, 197, 185, 0.2) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark-theme footer .contact-item:hover,
body.dark-theme footer .contact-item:hover {
  background: linear-gradient(135deg, rgba(204, 197, 185, 0.25), rgba(64, 61, 57, 0.35)) !important;
  border-color: #FFFCF2 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 15px rgba(204, 197, 185, 0.3) !important;
}

.dark-theme footer .contact-item i,
body.dark-theme footer .contact-item i {
  font-size: 1.5rem !important;
  color: #00ffcc !important;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.7) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark-theme footer .contact-item span,
body.dark-theme footer .contact-item span {
  font-size: 0.9rem !important;
  color: #FFFCF2 !important;
  font-weight: 600 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.dark-theme footer p,
body.dark-theme footer p {
  color: #CCC5B9 !important;
  text-align: center !important;
  margin: 25px 0 15px 0 !important;
  font-weight: 600 !important;
  font-size: 1em !important;
  display: block !important;
  visibility: visible !important;
  opacity: 0.9 !important;
  text-shadow: 0 1px 3px rgba(37, 36, 34, 0.5) !important;
}

/* Fallback ultime - style de force pour le footer en mode sombre */
body.dark-theme footer:not(.light-mode) {
  background: #252422 !important;
  color: #FFFCF2 !important;
  border-top: 3px solid #CCC5B9 !important;
  min-height: 120px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

/* Style final pour le footer en mode sombre - palette respectée */
body.dark-theme #contact {
  background: #252422 !important;
  color: #FFFCF2 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 120px !important;
  padding: 20px 10px !important;
  border-top: 2px solid #CCC5B9 !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: 0 -2px 10px rgba(204, 197, 185, 0.2) !important;
  margin-top: 50px !important;
  font-weight: bold !important;
  font-size: 1.1em !important;
}

body.dark-theme footer:not(.light-mode) * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force pour les icônes FontAwesome */
body.dark-theme footer .fas,
body.dark-theme footer .fab {
  color: #00ffcc !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.theme-button#sound-toggle i {
  color: inherit;
}

body.dark-theme .theme-button#sound-toggle {
  border-color: #CCC5B9;
  color: #FFFCF2;
}
body.dark-theme .theme-button#sound-toggle:hover {
  background: rgba(204, 197, 185, 0.1);
}
body.light-theme .theme-button#sound-toggle {
  border-color: #403D39;
  color: #403D39;
}
body.light-theme .theme-button#sound-toggle:hover {
  background: rgba(64, 61, 57, 0.1);
}

/* Style uniforme pour le bouton de thème en mode clair */
body.light-theme .theme-button#theme-toggle {
  border-color: #403D39;
  color: #403D39;
}
body.light-theme .theme-button#theme-toggle:hover {
  background: rgba(64, 61, 57, 0.1);
}

@media (max-width: 768px) {
  footer {
    padding: 16px 5px;
    font-size: 0.95em;
  }
  
  body.dark-theme footer {
    background: #252422;
    color: #FFFCF2;
    border-top: 2px solid #CCC5B9;
    box-shadow: 0 -2px 10px rgba(204, 197, 185, 0.2);
  }
  
  body.dark-theme footer .contact-item {
    background: linear-gradient(135deg, rgba(204, 197, 185, 0.2), rgba(64, 61, 57, 0.3)) !important;
    border: 2px solid #CCC5B9 !important;
    margin: 8px 4px !important;
}

body.light-theme footer {
    background: #6a1b9a;
    color: #ffffff;
    border-top: 2px solid #9c27b0;
    box-shadow: 0 -2px 10px rgba(106, 27, 154, 0.3);
  }
}

body.light-theme footer {
  background: #6a1b9a;
  color: #ffffff;
  border-top: 2px solid #9c27b0;
  box-shadow: 0 -2px 10px rgba(106, 27, 154, 0.3);
}

body.light-theme footer .contact-item {
  color: #ffffff;
}

body.light-theme footer .contact-item i {
  color: #00ffcc;
}

/* Styles spécifiques pour la navbar en light theme */
.light-theme .navbar-item {
  color: #ffffff;
}

.light-theme .navbar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00ffcc;
}

.light-theme .navbar-icon-item {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.light-theme .navbar-icon-item:hover {
  background: #00ffcc;
  color: #6a1b9a;
}

.light-theme .theme-button {
  border-color: #00ffcc;
  color: #00ffcc;
}

.light-theme .theme-button:hover {
  background: #00ffcc;
  color: #6a1b9a;
}

.light-theme .theme-button.active {
  background: #00ffcc;
  color: #6a1b9a;
}

.light-theme .hamburger-line {
  background: #00ffcc;
}

.light-theme .hamburger-btn {
  border-color: #00ffcc;
}

.light-theme .hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.light-theme #hero h1 {
  color: #ffffff !important;
  text-shadow: 0 0 15px rgba(106, 27, 154, 0.8) !important;
}

/* HAMBURGER BUTTON - CACHÉ PAR DÉFAUT */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 400px;
  background: var(--bg-primary);
  border-radius: 20px;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--accent-primary);
}

.mobile-menu-header h3 {
  margin: 0;
  color: var(--accent-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-primary);
  padding-left: 2.5rem;
}

.mobile-menu-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.mobile-menu-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

.mobile-menu-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--accent-primary);
}

.mobile-theme-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.mobile-theme-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: transparent;
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.mobile-theme-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.mobile-theme-btn i {
  font-size: 1rem;
}

/* DARK THEME MOBILE STYLES */
.dark-theme .mobile-menu {
  background: #252422;
  border-color: #CCC5B9;
}

.dark-theme .mobile-menu-header h3 {
  color: #CCC5B9;
}

.dark-theme .mobile-menu-close,
.dark-theme .mobile-theme-btn {
  color: #CCC5B9;
  border-color: #CCC5B9;
}

.dark-theme .mobile-menu-close:hover,
.dark-theme .mobile-theme-btn:hover {
  background: #CCC5B9;
  color: #252422;
}

.dark-theme .mobile-menu-item {
  color: #FFFCF2;
}

.dark-theme .mobile-menu-item:hover {
  background: rgba(204, 197, 185, 0.1);
  border-left-color: #CCC5B9;
}

.dark-theme .hamburger-line {
  background: #CCC5B9;
}

.dark-theme .hamburger-btn {
  border-color: #CCC5B9;
}

.dark-theme .hamburger-btn:hover {
  background: rgba(204, 197, 185, 0.1);
}

/* RESPONSIVE DESIGN AMÉLIORÉ - GitHub Projects */

/* 📱 MOBILE (<768px) */
@media (max-width: 768px) {
  .github-projects-container {
    max-width: 100%;
    padding: 1rem;
    min-height: auto;
  }

  .repos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
    padding: 0;
  }

  .repo-card {
    padding: 16px;
    min-height: 200px;
    max-height: 250px;
  }

  .repo-header {
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    align-items: flex-start;
  }

  .repo-title {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .repo-links {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    max-width: none;
  }

  .repo-link {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .repo-description {
    font-size: 0.85rem;
    min-height: 2.5em;
    max-height: 3.5em;
    -webkit-line-clamp: 2;
    margin: 10px 0;
  }

  .repo-topics {
    gap: 4px;
    margin: 10px 0;
    min-height: 24px;
  }

  .topic {
    padding: 3px 6px;
    font-size: 0.65rem;
  }

  .repo-stats {
    gap: 8px;
    padding-top: 10px;
    flex-wrap: wrap;
  }

  .repo-stat {
    font-size: 0.75rem;
  }
}

/* 📱 TRÈS PETITS ÉCRANS (< 480px) */
@media (max-width: 479px) {
  .repo-card {
    padding: 14px;
    min-height: 180px;
  }

  .repo-header {
    gap: 6px;
  }

  .repo-title {
    font-size: 1.1rem;
  }

  .repo-links {
    gap: 4px;
  }

  .repo-link {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .repo-link span {
    display: none; /* Masquer le texte, garder seulement les icônes */
  }

  .repo-description {
    font-size: 0.9rem;
    min-height: 4em;
    -webkit-line-clamp: 3;
  }

  .repo-stats {
    gap: 10px;
  }

  .repo-stat {
    font-size: 0.8rem;
  }

  .topic {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}

/* 📱 TABLET (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .github-projects-container {
    max-width: 1000px;
    padding: 1.5rem;
  }

  .repos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 0 5px;
  }

  .repo-card {
    min-height: 240px;
    max-height: 300px;
    padding: 16px;
  }

  .repo-header {
    min-height: 36px;
  }

  .repo-title {
    font-size: 1.05rem;
  }

  .repo-links {
    max-width: 110px;
  }

  .repo-description {
    font-size: 0.88rem;
    min-height: 2.8em;
    max-height: 4.2em;
    -webkit-line-clamp: 3;
  }
}

/* 🖥️ LARGE DESKTOP (>1400px) */
@media (min-width: 1400px) {
  .github-projects-container {
    max-width: 1500px;
    padding: 2.5rem 2rem;
  }

  .repos-grid {
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 15px;
  }

  .repo-card {
    min-height: 280px;
    max-height: 340px;
    padding: 20px;
  }

  .repo-header {
    min-height: 44px;
  }

  .repo-title {
    font-size: 1.15rem;
  }

  .repo-links {
    max-width: 130px;
  }

  .repo-description {
    font-size: 0.92rem;
    min-height: 3.2em;
    max-height: 4.8em;
    -webkit-line-clamp: 3;
  }
}

/* ==================== OPTIMISATION CARTES GITHUB THEME CLAIR ==================== */

/* Styles pour les cartes GitHub en mode clair */
.light-theme .repo-card {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.light-theme .repo-card:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(-15px) scale(1.03);
}

.light-theme .repo-card::before {
  background: linear-gradient(90deg, #EB5E28, #00CCAA, #EB5E28);
}

.light-theme .repo-title a {
  color: #00CCAA;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(0, 204, 170, 0.4);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.light-theme .repo-title a:hover {
  color: #252422;
  text-shadow: 0 0 25px rgba(0, 204, 170, 0.9);
  transform: scale(1.08);
}

.light-theme .repo-description {
  color: rgba(37, 36, 34, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.light-theme .repo-link {
  background: rgba(37, 36, 34, 0.15);
  border: 1px solid rgba(37, 36, 34, 0.25);
  color: #252422;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.light-theme .repo-link:hover {
  background: rgba(37, 36, 34, 0.25);
  border-color: rgba(37, 36, 34, 0.4);
  color: #252422;
  box-shadow: 0 5px 20px rgba(37, 36, 34, 0.3);
  transform: translateY(-3px);
}

.light-theme .homepage-link {
  background: rgba(0, 204, 170, 0.2);
  border: 1px solid rgba(0, 204, 170, 0.4);
  color: #252422;
}

.light-theme .homepage-link:hover {
  background: rgba(0, 204, 170, 0.4);
  box-shadow: 0 0 30px rgba(0, 204, 170, 0.4);
  transform: translateY(-3px);
}

.light-theme .topic {
  background: rgba(235, 94, 40, 0.3);
  border: 1px solid rgba(235, 94, 40, 0.5);
  color: #252422;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.light-theme .topic:hover {
  background: rgba(235, 94, 40, 0.5);
  border-color: rgba(235, 94, 40, 0.8);
  box-shadow: 0 0 15px rgba(235, 94, 40, 0.4);
  transform: scale(1.12);
}

.light-theme .repo-stats {
  border-top: 1px solid rgba(37, 36, 34, 0.25);
}

.light-theme .repo-stat {
  color: rgba(37, 36, 34, 0.9);
  font-weight: 600;
}

.light-theme .repo-stat i {
  color: rgba(0, 204, 170, 0.8);
}

.light-theme .with-language i {
  color: #00CCAA;
}

/* Styles pour les cartes de démo en mode clair */
.light-theme .demo-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  border-color: rgba(37, 36, 34, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .demo-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  border-color: #00CCAA;
  box-shadow: 0 25px 50px rgba(0, 204, 170, 0.2), 0 0 20px rgba(0, 204, 170, 0.1);
}

.light-theme .demo-card-title {
  color: #252422;
  text-shadow: 0 0 10px rgba(0, 204, 170, 0.2);
}

.light-theme .demo-card-description {
  color: rgba(37, 36, 34, 0.8);
}

.light-theme .demo-tag {
  background: linear-gradient(135deg, rgba(0, 204, 170, 0.15), rgba(37, 36, 34, 0.1));
  color: #00CCAA;
  border-color: rgba(0, 204, 170, 0.3);
}

.light-theme .demo-card:hover .demo-tag {
  background: linear-gradient(135deg, rgba(0, 204, 170, 0.25), rgba(37, 36, 34, 0.15));
  border-color: rgba(0, 204, 170, 0.5);
}

.light-theme .demo-card-action {
  background: linear-gradient(135deg, #00CCAA, #252422);
  color: #FFFCF2;
}

.light-theme .demo-card:hover .demo-card-action {
  background: linear-gradient(135deg, #252422, #00CCAA);
  color: #FFFCF2;
}

.light-theme .section-header h2 {
  color: #252422;
  text-shadow: 0 0 20px rgba(0, 204, 170, 0.3);
}

.light-theme .section-subtitle {
  color: #fff !important;
  text-shadow: 0 0 10px #00ffcc;
}

/* Styles des panneaux de démo en mode clair */
.light-theme .demo-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  border-color: rgba(37, 36, 34, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.light-theme .panel-header {
  background: linear-gradient(135deg, rgba(0, 204, 170, 0.15), rgba(37, 36, 34, 0.1));
  border-bottom-color: rgba(0, 204, 170, 0.2);
}

.light-theme .panel-title h3 {
  color: #252422;
  text-shadow: 0 0 10px rgba(0, 204, 170, 0.2);
}

.light-theme .panel-subtitle {
  color: rgba(37, 36, 34, 0.7);
}

.light-theme .demo-intro {
  background: rgba(0, 204, 170, 0.08);
  border-color: rgba(0, 204, 170, 0.15);
}

.light-theme .intro-text p {
  color: rgba(37, 36, 34, 0.9);
}

/* =============================================== */
/* 📱 RESPONSIVE INTERACTIVE COMPONENTS */
/* =============================================== */

/* 📱 MOBILE PETIT (320px-480px) - Composants compacts */
@media (max-width: 480px) {
  /* SQL Console responsive */
  .sql-container {
    padding: 15px !important;
    margin: 10px 5px !important;
    border-radius: 12px !important;
  }
  
  .table-info {
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
  }
  
  .table-header {
    font-size: 1rem !important;
  }
  
  .table-description {
    font-size: 0.8rem !important;
  }
  
  .table-item {
    padding: 10px 12px !important;
    margin: 8px 0 !important;
    border-radius: 8px !important;
    flex-direction: column;
    text-align: center;
  }
  
  .table-name {
    font-size: 0.9rem !important;
    margin-bottom: 5px;
  }
  
  .table-stats {
    font-size: 0.75rem !important;
    margin-bottom: 8px;
  }
  
  .table-cols, .table-rows {
    padding: 3px 6px !important;
    font-size: 0.7rem !important;
    margin: 2px;
  }
  
  .sql-button {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    margin: 4px 2px;
  }
  
  .sql-button.primary {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    width: 100%;
    margin: 8px 0;
  }
  
  textarea.sql-textarea {
    padding: 12px 15px !important;
    font-size: 0.85rem !important;
    min-height: 80px;
    border-radius: 10px !important;
  }
  
  #sql-output {
    padding: 15px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
    max-height: 200px;
    overflow-y: auto;
  }
  
  /* Chat Assistant responsive */
  .chat-toggle {
    padding: 12px 15px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
  }
  
  .chat-container {
    padding: 15px !important;
    border-radius: 12px !important;
    margin-top: 15px !important;
  }
  
  .chat-messages {
    max-height: 200px !important;
    padding: 12px !important;
    border-radius: 10px !important;
    margin-bottom: 12px;
  }
  
  .user-message, .bot-message {
    padding: 10px 12px !important;
    margin: 8px 0 !important;
    border-radius: 12px 12px 4px 12px !important;
    font-size: 0.85rem !important;
    max-width: 90%;
  }
  
  .bot-message {
    border-radius: 12px 12px 12px 4px !important;
  }
  
  .message-content {
    flex-direction: column;
    gap: 6px;
  }
  
  .message-content i {
    font-size: 0.9rem !important;
    margin-bottom: 4px;
  }
  
  .message-content p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0;
  }
  
  .chat-input-container {
    margin: 12px 0 0 0;
    padding: 0;
    gap: 8px;
    flex-direction: row;
  }
  
  .chat-input {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    flex: 1;
  }
  
  .chat-send-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
  }
  
  .chat-send-button i {
    font-size: 0.9rem !important;
  }
  
  /* Floating chatbot */
  .chat-button {
    width: 50px !important;
    height: 50px !important;
    bottom: 15px !important;
    right: 15px !important;
  }
  
  .chat-window {
    width: calc(100vw - 20px) !important;
    height: 60vh !important;
    bottom: 80px !important;
    right: 10px !important;
    border-radius: 15px !important;
  }
  
  /* CV sections responsive */
  .cv-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
  }
  
  .cv-section-header {
    padding: 12px 15px;
    border-radius: 12px 12px 0 0;
  }
  
  .cv-section-title {
    font-size: 1.1rem;
  }
  
  .cv-section-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .cv-experience-item, .cv-education-item {
    padding: 15px;
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
  }
  
  .experience-logo, .education-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  
  .cv-experience-title, .cv-education-degree {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .cv-experience-company, .cv-education-institution {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .cv-experience-date, .cv-education-date {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .cv-experience-year, .cv-experience-location,
  .cv-education-year, .cv-education-location {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .cv-certification-item {
    padding: 15px;
    margin-bottom: 20px;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
  }
  
  .cv-certification-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .cv-certification-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .cv-certification-item p {
    font-size: 0.85rem;
  }
  
  /* Skills responsive */
  .cv-skill-category {
    margin-bottom: 15px;
  }
  
  .cv-skill-category h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .cv-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
  }
  
  .cv-skill-tag {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 15px;
  }
  
  /* GitHub cards */
  .github-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
  }
  
  .github-card-header {
    margin-bottom: 10px;
  }
  
  .github-card-title {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .github-card-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .github-card-stats {
    flex-direction: column;
    gap: 8px;
  }
  
  .github-stat {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  /* Footer responsive */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .contact-item {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* 📱 MOBILE STANDARD (481px-768px) - Composants équilibrés */
@media (min-width: 481px) and (max-width: 768px) {
  /* SQL Console */
  .sql-container {
    padding: 18px !important;
    margin: 15px 10px !important;
    border-radius: 15px !important;
  }
  
  .table-info {
    padding: 15px;
    margin: 12px 0;
    border-radius: 12px;
  }
  
  .table-item {
    padding: 12px 15px !important;
    margin: 10px 0 !important;
    border-radius: 10px !important;
  }
  
  .sql-button.primary {
    padding: 11px 18px !important;
    font-size: 0.9rem !important;
  }
  
  textarea.sql-textarea {
    padding: 14px 18px !important;
    font-size: 0.9rem !important;
    min-height: 100px;
    border-radius: 12px !important;
  }
  
  #sql-output {
    padding: 18px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
    max-height: 250px;
  }
  
  /* Chat Assistant */
  .chat-toggle {
    padding: 15px 18px !important;
    border-radius: 12px !important;
  }
  
  .chat-container {
    padding: 18px !important;
    border-radius: 15px !important;
    margin-top: 18px !important;
  }
  
  .chat-messages {
    max-height: 250px !important;
    padding: 15px !important;
    border-radius: 12px !important;
  }
  
  .user-message, .bot-message {
    padding: 12px 15px !important;
    margin: 10px 0 !important;
    border-radius: 15px 15px 4px 15px !important;
    max-width: 85%;
  }
  
  .bot-message {
    border-radius: 15px 15px 15px 4px !important;
  }
  
  .chat-input {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    border-radius: 22px !important;
  }
  
  .chat-send-button {
    width: 42px !important;
    height: 42px !important;
  }
  
  /* Floating chatbot */
  .chat-button {
    width: 55px !important;
    height: 55px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .chat-window {
    width: calc(100vw - 30px) !important;
    height: 65vh !important;
    bottom: 90px !important;
    right: 15px !important;
    border-radius: 18px !important;
  }
  
  /* CV sections */
  .cv-section {
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 15px;
  }
  
  .cv-experience-item, .cv-education-item {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 12px;
  }
  
  .cv-certification-item {
    padding: 18px;
    margin-bottom: 22px;
    border-radius: 12px;
  }
  
  .cv-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .cv-skill-tag {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  /* GitHub cards */
  .github-card {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 15px;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
    padding: 25px 20px;
  }
  
  .footer-section {
    flex: 1;
    min-width: 200px;
  }
}

/* 📱 TABLETTE (769px-1024px) - Composants optimisés */
@media (min-width: 769px) and (max-width: 1024px) {
  /* SQL Console */
  .sql-container {
    padding: 22px !important;
    margin: 20px 15px !important;
    border-radius: 16px !important;
  }
  
  .table-info {
    padding: 18px;
    margin: 15px 0;
    border-radius: 14px;
  }
  
  .table-item {
    padding: 15px 18px !important;
    margin: 12px 0 !important;
    border-radius: 12px !important;
  }
  
  .sql-button.primary {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }
  
  textarea.sql-textarea {
    padding: 16px 20px !important;
    font-size: 0.95rem !important;
    min-height: 120px;
    border-radius: 14px !important;
  }
  
  #sql-output {
    padding: 20px !important;
    font-size: 0.9rem !important;
    border-radius: 14px !important;
    max-height: 300px;
  }
  
  /* Chat Assistant */
  .chat-toggle {
    padding: 16px 20px !important;
    border-radius: 14px !important;
  }
  
  .chat-container {
    padding: 20px !important;
    border-radius: 16px !important;
    margin-top: 20px !important;
  }
  
  .chat-messages {
    max-height: 300px !important;
    padding: 18px !important;
    border-radius: 14px !important;
  }
  
  .user-message, .bot-message {
    padding: 14px 18px !important;
    margin: 12px 0 !important;
    border-radius: 16px 16px 5px 16px !important;
    max-width: 80%;
  }
  
  .bot-message {
    border-radius: 16px 16px 16px 5px !important;
  }
  
  .chat-input {
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    border-radius: 24px !important;
  }
  
  .chat-send-button {
    width: 46px !important;
    height: 46px !important;
  }
  
  /* Floating chatbot */
  .chat-button {
    width: 60px !important;
    height: 60px !important;
    bottom: 25px !important;
    right: 25px !important;
  }
  
  .chat-window {
    width: 400px !important;
    height: 500px !important;
    bottom: 100px !important;
    right: 25px !important;
    border-radius: 20px !important;
  }
  
  /* CV sections */
  .cv-section {
    margin-bottom: 30px;
    padding: 22px;
    border-radius: 16px;
  }
  
  /* Experience grid pour tablette */
  .cv-experience-grid, .cv-education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
  }
  
  .cv-experience-item, .cv-education-item {
    padding: 20px;
    margin-bottom: 0;
    border-radius: 14px;
  }
  
  .cv-certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .cv-certification-item {
    padding: 20px;
    margin-bottom: 0;
    border-radius: 14px;
  }
  
  .cv-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .cv-skill-tag {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  /* GitHub cards grid */
  .github-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .github-card {
    padding: 20px;
    margin-bottom: 0;
    border-radius: 16px;
  }
  
  /* Footer optimisé */
  .footer-content {
    gap: 30px;
    padding: 30px;
  }
  
  .footer-section {
    flex: 1;
  }
}

/* =============================================== */
/* 🖥️ RESPONSIVE LARGE SCREENS */
/* =============================================== */

/* 🖥️ DESKTOP LARGE (1025px-1440px) - Optimisations pour grands écrans */
@media (min-width: 1025px) and (max-width: 1440px) {
  section {
    max-width: 1100px;
    padding: 50px 40px;
  }
  
  .hero-content {
    gap: 60px;
    padding: 40px;
  }
  
  .profile-avatar {
    width: 200px;
    height: 200px;
  }
  
  .avatar-ring {
    width: 200px;
    height: 200px;
  }
  
  .avatar-ring-rgb {
    width: 210px;
    height: 210px;
  }
  
  .avatar-inner {
    width: 180px;
    height: 180px;
  }
  
  .avatar-glow {
    width: 220px;
    height: 220px;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    line-height: 1.7;
  }
  
  /* Demo cards optimisés */
  .demo-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
  }
  
  .demo-card {
    padding: 25px;
    border-radius: 18px;
  }
  
  /* CV sections larges */
  .cv-section {
    margin-bottom: 35px;
    padding: 25px 30px;
    border-radius: 18px;
  }
  
  .cv-experience-grid, .cv-education-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
  }
  
  .cv-certification-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
  }
  
  .cv-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  
  /* SQL Console large */
  .sql-container {
    padding: 25px !important;
    margin: 25px 20px !important;
    border-radius: 18px !important;
  }
  
  /* Chat optimisé */
  .chat-container {
    padding: 25px !important;
    border-radius: 18px !important;
  }
  
  .chat-messages {
    max-height: 350px !important;
    padding: 20px !important;
  }
  
  /* Floating chatbot */
  .chat-window {
    width: 450px !important;
    height: 550px !important;
    border-radius: 22px !important;
  }
}

/* 🖥️ ULTRA WIDE (1441px+) - Grands moniteurs */
@media (min-width: 1441px) {
  section {
    max-width: 1200px;
    padding: 60px 50px;
  }
  
  .hero-content {
    gap: 80px;
    padding: 50px;
  }
  
  .profile-avatar {
    width: 220px;
    height: 220px;
  }
  
  .avatar-ring {
    width: 220px;
    height: 220px;
  }
  
  .avatar-ring-rgb {
    width: 230px;
    height: 230px;
  }
  
  .avatar-inner {
    width: 200px;
    height: 200px;
  }
  
  .avatar-glow {
    width: 240px;
    height: 240px;
  }
  
  .hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
  }
  
  .hero-text p {
    font-size: 1.3rem;
    line-height: 1.8;
  }
  
  /* Demo cards ultra wide */
  .demo-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
  }
  
  .demo-card {
    padding: 30px;
    border-radius: 20px;
  }
  
  /* CV sections ultra wide */
  .cv-section {
    margin-bottom: 40px;
    padding: 30px 35px;
    border-radius: 20px;
  }
  
  .cv-experience-grid, .cv-education-grid {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
  }
  
  .cv-certification-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
  }
  
  .cv-skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
  }
  
  /* SQL Console ultra wide */
  .sql-container {
    padding: 30px !important;
    margin: 30px 25px !important;
    border-radius: 20px !important;
  }
  
  /* Chat ultra wide */
  .chat-container {
    padding: 30px !important;
    border-radius: 20px !important;
  }
  
  .chat-messages {
    max-height: 400px !important;
    padding: 25px !important;
  }
  
  /* Floating chatbot ultra wide */
  .chat-window {
    width: 500px !important;
    height: 600px !important;
    border-radius: 25px !important;
  }
  
  /* Footer ultra wide */
  .footer-content {
    gap: 40px;
    padding: 40px 50px;
  }
}

/* =============================================== */
/* 📱 ORIENTATION LANDSCAPE MOBILE */
/* =============================================== */

/* Mobile landscape (hauteur réduite) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    gap: 20px;
    padding: 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .avatar-ring {
    width: 80px;
    height: 80px;
  }
  
  .avatar-ring-rgb {
    width: 90px;
    height: 90px;
  }
  
  .avatar-inner {
    width: 70px;
    height: 70px;
  }
  
  .avatar-glow {
    width: 100px;
    height: 100px;
  }
  
  .crown {
    width: 40px;
    height: 20px;
    top: -10px;
  }
  
  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.1;
  }
  
  .hero-text p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  section {
    padding: 20px 15px;
  }
  
  .navbar {
    min-height: 50px;
    padding: 0.5rem;
  }
  
  .chat-window {
    height: 80vh !important;
  }
  
  .chat-messages {
    max-height: 150px !important;
  }
}

/* =============================================== */
/* 📱 PRINT STYLES */
/* =============================================== */

@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .chat-button,
  .chat-window,
  .floating-chat,
  .demo-controls,
  button,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  
  .hero-content,
  .cv-section,
  .demo-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  section {
    padding: 20px 0;
    margin: 0;
    max-width: 100%;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .cv-section-title {
    font-size: 1.2rem;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
  }
}

.light-theme .data-panel, 
.light-theme .prediction-panel {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 204, 170, 0.2);
}

.light-theme .panel-section-header h4 {
  color: #252422;
  text-shadow: 0 0 5px rgba(0, 204, 170, 0.2);
}

.light-theme .panel-section-header i {
  color: #00CCAA;
}

.light-theme .demo-status {
  background: rgba(37, 36, 34, 0.1);
  border-color: rgba(37, 36, 34, 0.2);
  color: rgba(37, 36, 34, 0.9);
}

.light-theme .data-display, 
.light-theme .prediction-display {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 36, 34, 0.1);
}

.light-theme .grid-wrapper {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 204, 170, 0.3);
}

.light-theme .q-learning-grid {
  background: rgba(37, 36, 34, 0.1);
  border-color: rgba(0, 204, 170, 0.2);
}

.light-theme .cell {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 36, 34, 0.2);
}

.light-theme .cell:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 204, 170, 0.4);
}

/* Styles du dashboard analytics en mode clair */
.light-theme .data-source-selector label, 
.light-theme .time-range-selector label {
  color: rgba(37, 36, 34, 0.9);
}

.light-theme .data-source-selector select, 
.light-theme .time-range-selector select {
  background: rgba(255, 255, 255, 0.8);
  color: #252422;
  border-color: rgba(0, 204, 170, 0.4);
}



/* Animation d'apparition fluide pour les cartes */
@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.repo-card {
  animation: cardFadeIn 0.6s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

.repo-card:nth-child(1) { animation-delay: 0.1s; }
.repo-card:nth-child(2) { animation-delay: 0.2s; }
.repo-card:nth-child(3) { animation-delay: 0.3s; }
.repo-card:nth-child(4) { animation-delay: 0.4s; }
.repo-card:nth-child(5) { animation-delay: 0.5s; }
.repo-card:nth-child(6) { animation-delay: 0.6s; }

/* Optimisations pour les états de chargement thème clair */
.light-theme .loading {
  color: rgba(37, 36, 34, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
}

.light-theme .loading i {
  color: #00CCAA;
}

.light-theme .error-message {
  background: rgba(235, 94, 40, 0.15);
  border: 2px solid rgba(235, 94, 40, 0.3);
  color: rgba(37, 36, 34, 0.9);
}

.light-theme .error-message i {
  color: #EB5E28;
}

.light-theme .error-message a {
  color: #00CCAA;
  border-color: #00CCAA;
}

.light-theme .error-message a:hover {
  background: rgba(0, 204, 170, 0.15);
}

.light-theme .no-projects {
  color: rgba(37, 36, 34, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
}

.light-theme .no-projects i {
  color: rgba(37, 36, 34, 0.4);
}

/* Correction des couleurs pour le thème clair - Expériences Professionnelles */
.light-theme .cv-experience-company {
  color: #252422 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

.light-theme .cv-experience-item:hover .cv-experience-company {
  color: #00CCAA !important;
  text-shadow: 0 0 8px rgba(0, 204, 170, 0.4) !important;
}

.light-theme .cv-experience-year {
  background: rgba(37, 36, 34, 0.15) !important;
  border: 1px solid rgba(37, 36, 34, 0.25) !important;
  color: #252422 !important;
  font-weight: 700 !important;
}

.light-theme .cv-experience-location {
  background: rgba(0, 204, 170, 0.15) !important;
  border: 1px solid rgba(0, 204, 170, 0.3) !important;
  color: #252422 !important;
  font-weight: 700 !important;
}

.light-theme .cv-experience-location i {
  color: #00CCAA !important;
  font-weight: bold !important;
}

.light-theme .cv-experience-item:hover .cv-experience-year {
  background: rgba(37, 36, 34, 0.25) !important;
  border-color: rgba(37, 36, 34, 0.4) !important;
  color: #252422 !important;
}

.light-theme .cv-experience-item:hover .cv-experience-location {
  background: rgba(0, 204, 170, 0.25) !important;
  border-color: rgba(0, 204, 170, 0.5) !important;
  color: #252422 !important;
  box-shadow: 0 0 15px rgba(0, 204, 170, 0.3) !important;
}

.light-theme .cv-experience-item:hover .cv-experience-location i {
  color: #252422 !important;
  text-shadow: 0 0 8px rgba(0, 204, 170, 0.5) !important;
}

@media (max-width: 768px) {
  .cv-experience-item {
    padding: 20px;
    margin-bottom: 30px;
  }

  .cv-experience-header {
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .cv-experience-title {
    font-size: 1.1rem;
  }

  .cv-experience-company {
    font-size: 1rem;
  }

  .cv-experience-date {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cv-experience-year,
  .cv-experience-location {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  .cv-experience-location i {
    font-size: 0.75rem;
  }

  .cv-experience-description li {
    font-size: 0.9rem;
    padding-left: 20px;
  }

  .cv-experience-skills {
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .cv-experience-skill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  /* Responsive pour les cartes de démo */
  .demo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .demo-card {
    margin-bottom: 20px;
  }

  .demo-card-header {
    padding: 20px 20px 10px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .demo-card-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .demo-card-title {
    font-size: 1.2rem;
  }

  .demo-card-description {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .demo-card-tags {
    padding: 0 20px 15px;
    justify-content: center;
  }

  .demo-card-footer {
    padding: 10px 20px 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Responsive pour les panneaux de démo */
  .demo-panel {
    margin: 20px 10px;
    border-radius: 15px;
  }

  .panel-header {
    padding: 15px 20px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .panel-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .panel-title h3 {
    font-size: 1.4rem;
  }

  .panel-subtitle {
    font-size: 0.8rem;
  }

  .panel-content {
    padding: 20px;
  }

  .demo-intro {
    padding: 15px;
    margin-bottom: 20px;
  }

  .intro-text p {
    font-size: 0.9rem;
  }

  .legend {
    justify-content: center;
    gap: 15px;
  }

  .legend-item {
    font-size: 0.8rem;
  }

  .demo-controls {
    flex-direction: column;
    gap: 10px;
  }

  .demo-btn {
    min-width: auto;
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .data-visualization {
    gap: 15px;
  }

  .data-panel, .prediction-panel {
    padding: 15px;
  }

  .panel-section-header h4 {
    font-size: 1rem;
  }

  .q-learning-grid {
    padding: 10px;
  }

  .cell {
    width: 40px;
    height: 40px;
  }

  .grid-wrapper {
    padding: 15px;
  }

  /* Responsive pour Data Analytics Dashboard */
  .dashboard-controls {
    flex-direction: column;
    gap: 15px;
  }


}



.light-theme .theme-button i {
  color: #fff !important;
}

.light-theme .theme-button.active i {
  color: #6a1b9a !important;
}

.navbar-item span {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 0.7rem;
}

.navbar-item i {
  font-size: 1.1rem;
}

.navbar-logo-img {
  width: 36px;
  height: 36px;
}

.navbar-menu {
  display: flex;
  gap: 0.2rem;
  margin-left: 0.2rem;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
}

.theme-button {
  min-width: 36px;
  min-height: 36px;
}

.empty-table-message {
  text-align: center;
  color: #6a0dad;
  background: #fffcf2;
  border: 2px dashed #00ccaa;
  border-radius: 10px;
  padding: 1.2em 0.5em;
  font-size: 1.1em;
  font-weight: 600;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(0,204,170,0.08);
}
.light-theme .empty-table-message {
  color: #00ccaa;
  background: #fff;
  border-color: #6a0dad;
}

.light-theme #test-data table td.feature-column {
  color: #006B5B !important;
  font-weight: 700 !important;
  background-color: rgba(0, 204, 170, 0.13) !important;
  border: 1.5px solid #00CCAA !important;
}

.light-theme .data-display, 
.light-theme .prediction-display {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(37, 36, 34, 0.1);
}
.light-theme .empty-table-message {
  color: #00ccaa;
  background: rgba(255,255,255,0.95);
  border-color: #6a0dad;
  z-index: 2;
  position: relative;
}

.light-theme #test-data table th.feature-column {
  color: #252422 !important;
  background-color: #00CCAA !important;
  border: 2px solid #00CCAA !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}
.light-theme #test-data table th.prediction-column {
  color: #EB5E28 !important;
  background-color: #fff3e6 !important;
  border: 2px solid #EB5E28 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}