/* Variables CSS Personnalisées */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* Mode sombre */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --particle-bg: var(--primary-gradient);
}

/* Mode clair - Design UI/UX moderne */
[data-theme="light"] {
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    --bg-secondary: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --border-color: rgba(148, 163, 184, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(148, 163, 184, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.2);
    --particle-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Couleurs spécifiques au mode light */
    --light-card-bg: rgba(255, 255, 255, 0.9);
    --light-card-border: rgba(148, 163, 184, 0.2);
    --light-accent-bg: rgba(102, 126, 234, 0.05);
    --light-hover-bg: rgba(102, 126, 234, 0.1);
    --light-input-bg: rgba(248, 250, 252, 0.8);
    --light-input-border: rgba(148, 163, 184, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

/* Mode light - Background avec pattern subtil */
[data-theme="light"] body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

/* Particules animées en arrière-plan */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--particle-bg);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

/* Mode light - Particules plus subtiles */
[data-theme="light"] .particle {
    opacity: 0.3;
    background: var(--primary-gradient);
}

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

[data-theme="light"]{

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

} 

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mode light - Navigation */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0edff 50%, #c7d2fe 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-container a{
    text-decoration: none;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mode light - Liens de navigation */
[data-theme="light"] .nav-links a {
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="light"] .nav-links a:hover {
    color: #667eea;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Mode light - Toggle theme */
[data-theme="light"] .theme-toggle {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    color: var(--text-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.theme-toggle:hover {
    background: var(--primary-gradient);
    transform: scale(1.05);
}

/* ===============================
   MENU BURGER - STYLES AMÉLIORÉS
   ===============================*/

/* Menu hamburger - Version moderne */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    gap: 4px;
    transition: var(--transition-smooth);
    position: relative;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mode light - Bouton hamburger */
[data-theme="light"] .mobile-menu-btn {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-btn:hover {
    background: var(--light-hover-bg);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.mobile-menu-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* Mode light - Lignes hamburger */
[data-theme="light"] .hamburger-line {
    background: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Animation des lignes lors de l'ouverture */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobile - Overlay moderne */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(148, 163, 184, 0.8);
    backdrop-filter: blur(15px);
}

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

/* Menu mobile - Container principal */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(350px, 85vw);
    height: 100vh;
    background: var(--glass-bg);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    z-index: 9999;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Empêche le scroll sur le container principal */
}

[data-theme="light"] .mobile-menu {
    background: var(--light-card-bg);
    border-left: 1px solid var(--light-card-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    right: 0;
}

/* En-tête du menu mobile */
.mobile-menu-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .mobile-menu-header {
    background: var(--light-accent-bg);
    border-bottom: 1px solid var(--light-card-border);
}

.mobile-menu-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

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

[data-theme="light"] .mobile-menu-close:hover {
    background: var(--light-hover-bg);
    color: #667eea;
}

.mobile-menu-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Navigation mobile */
.mobile-nav {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto; /* Permet le scroll dans la zone de navigation */
    overflow-x: hidden;
}

/* Personnalisation de la scrollbar pour le menu mobile */
.mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 2px;
}

[data-theme="light"] .mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
}

.mobile-nav-links {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .mobile-nav-links a {
    color: var(--text-primary);
    font-weight: 600;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    z-index: -1;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a:focus::before {
    width: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: white;
    transform: translateX(10px);
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] .mobile-nav-links a:hover,
[data-theme="light"] .mobile-nav-links a:focus {
    background: var(--light-hover-bg);
    transform: translateX(8px);
}

.mobile-nav-links a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* État inactif des liens (quand le menu est fermé) */
.mobile-menu:not(.active) .mobile-nav-links a,
.mobile-menu:not(.active) .mobile-menu-close,
.mobile-menu:not(.active) .mobile-theme-toggle {
    pointer-events: none;
    opacity: 0.5;
}

/* Réactivation des liens quand le menu est ouvert */
.mobile-menu.active .mobile-nav-links a,
.mobile-menu.active .mobile-menu-close,
.mobile-menu.active .mobile-theme-toggle {
    pointer-events: auto;
    opacity: 1;
}

/* Icônes pour les liens (optionnel) */
.mobile-nav-links a::after {
    content: '→';
    margin-left: auto;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
}

.mobile-nav-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Footer du menu mobile */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mobile-menu-footer {
    background: var(--light-accent-bg);
    border-top: 1px solid var(--light-card-border);
}

.mobile-theme-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mobile-theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mobile-theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

[data-theme="light"] .mobile-theme-toggle {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
}

.mobile-theme-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.mobile-contact-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.mobile-contact-info a {
    color: #667eea;
    text-decoration: none;
}

.mobile-contact-info a:hover {
    text-decoration: underline;
}

/* Responsive - Affichage du menu mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .theme-toggle {
        display: none; /* Cache le toggle desktop sur mobile */
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100vw;
        right: -100vw;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-header {
        padding: 1.5rem 1rem 1rem;
    }

    .mobile-nav {
        padding: 1.5rem 0;
    }

    .mobile-nav-links {
        padding: 0 1rem;
    }

    .mobile-nav-links a {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}

/* Animations d'entrée pour les éléments du menu */
.mobile-menu.active .mobile-nav-links li {
    animation: slideInFromRight 0.4s ease forwards;
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* États d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu-overlay,
    .hamburger-line,
    .mobile-nav-links a,
    .mobile-theme-toggle {
        transition: none;
    }

    .mobile-menu.active .mobile-nav-links li {
        animation: none;
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus visible amélioré pour l'accessibilité */
.mobile-menu-btn:focus-visible,
.mobile-menu-close:focus-visible,
.mobile-nav-links a:focus-visible,
.mobile-theme-toggle:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mode high contrast */
@media (prefers-contrast: high) {
    [data-theme="light"] .mobile-menu {
        border-left: 2px solid #000;
    }

    [data-theme="light"] .mobile-nav-links a:hover {
        background: #000;
        color: #fff;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

/* Mode light - Hero section */
[data-theme="light"] .hero {
    background: 
        radial-gradient(ellipse at center, rgba(102, 126, 234, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(240, 147, 251, 0.06) 0%, transparent 50%);
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* Mode light - Boutons */
[data-theme="light"] .btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

[data-theme="light"] .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -10px rgba(102, 126, 234, 0.5);
}

.btn-primary-second {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary-second::before {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary-second:hover {
    box-shadow: var(--shadow-glow);
}

.btn-primary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: background 2.5s ease-in-out;
}

.btn-primary:hover {
    background: var(--secondary-gradient);
}

/* Mode light - Bouton secondaire */
[data-theme="light"] .btn-secondary {
    background: var(--light-card-bg);
    color: var(--text-primary);
    border: 2px solid var(--light-card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--light-hover-bg);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section À Propos - Version Ultra-Moderne */
.presentation-section {
    padding: 10rem 0;
    background: 
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Mode light - Section présentation */
[data-theme="light"] .presentation-section {
    background: 
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(240, 147, 251, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.presentation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

/* Mode light - Pattern subtil */
[data-theme="light"] .presentation-section::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.presentation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.presentation-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.presentation-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Layout en bento box moderne */
.presentation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte principale avec effet néomorphisme */
.presentation-main-card {
    grid-column: 1;
    grid-row: 1 / 3;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

/* Mode light - Carte principale */
[data-theme="light"] .presentation-main-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.1),
        0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .presentation-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(102, 126, 234, 0.2);
}

.presentation-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.5;
}

.presentation-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.3),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.presentation-subtitle {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.presentation-subtitle::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.presentation-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: justify;
}

/* Grille de compétences moderne */
.presentation-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.skill-item {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Mode light - Compétences */
[data-theme="light"] .skill-item {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-item:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.02);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.skill-item:hover::before {
    left: 100%;
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Carte profil avec effet holographique */
.profile-card {
    grid-column: 2;
    grid-row: 1;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Mode light - Carte profil */
[data-theme="light"] .profile-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .profile-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.profile-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent, rgba(240, 147, 251, 0.1), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover::after {
    opacity: 1;
}

.profile-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.3);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.profile-image-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--primary-gradient);
    background-clip: padding-box;
    transition: var(--transition-smooth);
}

.profile-image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--primary-gradient);
    z-index: -1;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    position: relative;
}

.profile-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    z-index: 2;
    position: relative;
}

/* Carte stats/métriques */
.stats-card {
    grid-column: 2;
    grid-row: 2;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    transition: var(--transition-smooth);
}

/* Mode light - Carte stats */
[data-theme="light"] .stats-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.stats-card:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.3);
}

.stats-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mode light - Stats items */
[data-theme="light"] .stat-item {
    background: var(--light-accent-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.3rem;
}

/* Styles pour le bandeau "en cours" pour Python */
.skill-item-particular {
    position: relative;
    overflow: visible;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

/* Mode light - Skill particulière */
[data-theme="light"] .skill-item-particular {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-item-particular:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.02);
}

.skill-item-particular:before {
    content: 'En cours';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    animation: none;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transform: rotate(15deg);
    z-index: 10;
}

.skill-item-particular:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.skill-item-particular:nth-child(5) {
    position: relative;
    overflow: visible;
}

.skill-item-particular:nth-child(5):before {
    content: 'En cours';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transform: rotate(15deg);
    z-index: 10;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

/* Mode light - Section pricing */
[data-theme="light"] .pricing-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
}

/* Mode light - Cartes pricing */
[data-theme="light"] .pricing-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

[data-theme="light"] .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border: solid 2px;
}

[data-theme="light"] .pricing-card.featured{
   border: solid 2px; 
}

.pricing-card.featured::before {
    content: 'Plus Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

[data-theme="light"] .pricing-card.featured::before {
    content: 'Plus Populaire';
    position: absolute;
    top: -12px; /* Ajusté pour centrer verticalement */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: .5rem 1.5rem; /* Padding uniforme avec le mode sombre */
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
}

.pricing-plan {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ===============================
   SECTION TÉMOIGNAGES - VERSION RESPONSIVE AMÉLIORÉE
   ===============================*/

/* Styles de base - Desktop (inchangés) */
.testimonials-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

[data-theme="light"] .testimonials-section {
    background: 
        radial-gradient(ellipse at center, rgba(102, 126, 234, 0.04) 0%, transparent 70%),
        linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.testimonials-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container responsive pour les témoignages */
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grille desktop - Animation défilante */
.testimonials-grid {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Styles des cartes témoignages - Version desktop */
.testimonial-card {
    min-width: 350px;
    max-width: 750px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Mode light - Cartes témoignages desktop */
[data-theme="light"] .testimonial-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

[data-theme="light"] .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card blockquote {
    padding-bottom: 1.5rem;
    margin: 0;
}

.testimonial-card blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
}

/* Guillemets décoratifs */
.testimonial-card blockquote p::before {
    content: '"';
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.3);
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

[data-theme="light"] .testimonial-card blockquote p::before {
    color: rgba(102, 126, 234, 0.2);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: var(--primary-gradient);
    background-clip: padding-box;
    transition: var(--transition-smooth);
}

.testimonial-avatar:hover {
    transform: scale(1.1);
}

.author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ===============================
   RESPONSIVE - TABLETTE (iPad, etc.)
   ===============================*/

@media (max-width: 1024px) {
    .testimonials-section {
        padding: 6rem 0;
    }

    .testimonials-title {
        margin-bottom: 3rem;
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* Désactivation de l'animation et passage en grille */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        animation: none; /* Désactivation de l'animation */
        transform: none;
        max-width: 100%;
    }

    .testimonial-card {
        min-width: unset;
        max-width: unset;
        width: 100%;
        padding: 2rem;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Amélioration UI/UX pour tablette */
    .testimonial-card {
        background: 
            linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }

    [data-theme="light"] .testimonial-card {
        background: 
            linear-gradient(135deg, var(--light-card-bg) 0%, rgba(102, 126, 234, 0.02) 100%);
        border: 1px solid var(--light-card-border);
    }

    /* Effet de brillance subtile */
    .testimonial-card::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: rotate(45deg);
        transition: transform 0.6s ease;
        opacity: 0;
    }

    .testimonial-card:hover::after {
        opacity: 1;
        transform: rotate(45deg) translate(50%, 50%);
    }

    .testimonial-card blockquote p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .testimonial-avatar {
        width: 50px;
        height: 50px;
    }
}

/* ===============================
   RESPONSIVE - MOBILE
   ===============================*/

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 0;
    }

    .testimonials-container {
        padding: 0 1rem;
    }

    .testimonials-title {
        margin-bottom: 2.5rem;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    /* Passage en colonne unique pour mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        animation: none; /* Confirmation de la désactivation */
    }

    /* Design mobile optimisé */
    .testimonial-card {
        padding: 1.5rem;
        min-height: 250px;
        border-radius: 16px;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    [data-theme="light"] .testimonial-card {
        background: var(--light-card-bg);
        backdrop-filter: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(148, 163, 184, 0.15);
    }

    /* Animation d'apparition en mobile */
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
    .testimonial-card:nth-child(2) { animation-delay: 0.2s; }
    .testimonial-card:nth-child(3) { animation-delay: 0.3s; }
    .testimonial-card:nth-child(4) { animation-delay: 0.4s; }

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

    /* Ajustements typographiques mobile */
    .testimonial-card blockquote p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .testimonial-card blockquote p::before {
        font-size: 2rem;
        top: -0.25rem;
        left: -0.25rem;
    }

    .testimonial-author {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .testimonial-avatar {
        width: 45px;
        height: 45px;
        border: 2px solid transparent;
    }

    .author {
        font-size: 0.9rem;
        font-weight: 600;
    }

    .testimonial-role {
        font-size: 0.8rem;
    }

    /* Effet tactile pour mobile */
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===============================
   RESPONSIVE - TRÈS PETIT MOBILE
   ===============================*/

@media (max-width: 480px) {
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-container {
        padding: 0 0.75rem;
    }

    .testimonials-title {
        margin-bottom: 2rem;
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .testimonials-grid {
        gap: 1.25rem;
    }

    .testimonial-card {
        padding: 1.25rem;
        min-height: 220px;
        border-radius: 12px;
    }

    .testimonial-card blockquote p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .testimonial-card blockquote p::before {
        font-size: 1.5rem;
        top: -0.1rem;
        left: -0.1rem;
    }

    .testimonial-author {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .author {
        font-size: 0.85rem;
    }

    .testimonial-role {
        font-size: 0.75rem;
    }
}

/* ===============================
   AMÉLIORATIONS ACCESSIBILITY & UX
   ===============================*/

/* Réduction des animations si demandée */
@media (prefers-reduced-motion: reduce) {
    .testimonials-grid {
        animation: none !important;
    }

    .testimonial-card {
        animation: none !important;
    }

    .testimonial-card::after {
        transition: none;
    }

    .testimonial-avatar:hover {
        transform: none;
    }
}

/* Focus pour l'accessibilité */
.testimonial-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mode sombre - Améliorations spécifiques */
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(102, 126, 234, 0.2);
}

/* Mode clair - Contraste élevé */
@media (prefers-contrast: high) {
    [data-theme="light"] .testimonial-card {
        border: 2px solid rgba(0, 0, 0, 0.2);
    }

    [data-theme="light"] .testimonial-card blockquote p::before {
        color: rgba(0, 0, 0, 0.3);
    }
}

/* ===============================
   LOADING STATES & MICRO-INTERACTIONS
   ===============================*/

/* État de chargement pour les témoignages */
.testimonial-card.loading {
    position: relative;
    overflow: hidden;
}

.testimonial-card.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

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

/* Survol amélioré pour desktop */
@media (hover: hover) and (pointer: fine) {
    .testimonial-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .testimonial-card:hover .testimonial-avatar {
        transform: scale(1.15) rotate(5deg);
    }
}

/* Optimisations pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .testimonial-avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===============================
   CONTACT SECTION - FORMULAIRE ANTI-DÉFORMATION
   ===============================*/

/* Section contact - Conteneur principal robuste */
.contact-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
}

/* Mode light - Contact section background */
[data-theme="light"] .contact-section::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

/* Container principal avec contraintes robustes */
.contact-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(400px, 600px);
    width: 90%;
    max-width: 1200px;
    gap: 3rem;
    align-items: start;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Section info contact - Flexible mais contrainte */
.contact-info {
    padding: 0;
    min-height: fit-content;
    max-width: 100%;
}

.form-section {
    margin-bottom: 2rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.form-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.form-description {
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-text {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}

/* Mode light - CTA text */
[data-theme="light"] .cta-text {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.cta-description {
    font-size: clamp(0.8rem, 1.1vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Grille d'informations personnelles - Adaptative */
.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem;
    transition: var(--transition-smooth);
    min-width: 0; /* Permet la compression si nécessaire */
}

/* Mode light - Info items */
[data-theme="light"] .info-item {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .info-item:hover {
    background: var(--light-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.info-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 16px;
    height: 16px;
}

.info-content {
    min-width: 0;
    flex: 1;
}

.info-content h3 {
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 1vw, 0.8rem);
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-content p {
    color: var(--text-secondary);
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===============================
   FORMULAIRE - CONTAINER ANTI-DÉFORMATION
   ===============================*/

/* Container du formulaire avec contraintes strictes */
.form-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-width: 400px; /* Largeur minimale absolue */
    max-width: 600px; /* Largeur maximale */
}

/* Wrapper du formulaire - Dimensions fixes et robustes */
.form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    min-width: 400px; /* Empêche la compression excessive */
    max-width: 550px; /* Limite la largeur maximale */
    min-height: 600px; /* Hauteur minimale pour éviter l'écrasement */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Mode light - Form wrapper */
[data-theme="light"] .form-wrapper {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

/* En-têtes du formulaire avec tailles fixes */
.form-wrapper .form-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0; /* Empêche la compression */
}

.form-wrapper .form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: clamp(0.8rem, 1.2vw, 0.85rem);
    flex-shrink: 0;
}

/* Formulaire principal - Structure flexible mais contrainte */
.contact-form {
    display: grid;
    gap: 1rem;
    flex: 1;
    min-height: 0; /* Permet le flex shrink si nécessaire */
}

/* Rangées du formulaire - Adaptatives mais avec limites */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* Groupes de champs - Dimensions contrôlées */
.form-group {
    position: relative;
    min-height: 70px; /* Hauteur minimale pour éviter l'écrasement */
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: clamp(0.7rem, 1vw, 0.75rem);
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.required-dot {
    width: 3px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Champs de saisie - Dimensions fixes */
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: clamp(0.8rem, 1.1vw, 0.85rem);
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    min-height: 45px; /* Hauteur minimale des inputs */
    flex: 1;
}

/* Mode light - Form inputs */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
    background: var(--light-input-bg);
    border: 1px solid var(--light-input-border);
    color: var(--text-primary);
    backdrop-filter: none;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Textarea avec dimensions contrôlées */
.form-textarea {
    min-height: 80px;
    max-height: 120px;
    resize: vertical;
}

/* Input téléphone avec préfixe */
.phone-input {
    position: relative;
}

.phone-input::before {
    content: '🇫🇷 +33';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: clamp(0.7rem, 1vw, 0.75rem);
    pointer-events: none;
    z-index: 1;
}

.phone-input .form-input {
    padding-left: 3.5rem;
}

/* Bouton de soumission - Dimensions fixes */
.submit-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    min-height: 50px;
    flex-shrink: 0;
}

/* Mode light - Submit button */
[data-theme="light"] .submit-btn {
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover::before {
    left: 100%;
}

/* États d'erreur */
.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: rgba(245, 87, 108, 0.6);
    box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.1);
}

.error-message {
    color: rgba(245, 87, 108, 1);
    font-size: clamp(0.65rem, 0.9vw, 0.7rem);
    margin-top: 0.3rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Message de succès */
#successMessage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    max-width: 90%;
    text-align: center;
    font-size: 1rem;
}

#successMessage.visible {
    opacity: 1;
    visibility: visible;
}

#successMessage.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===============================
   RESPONSIVE - ÉCRANS MOYENS
   ===============================*/

@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: minmax(280px, 1fr) minmax(400px, 550px);
        gap: 2.5rem;
        width: 95%;
    }

    .form-wrapper {
        min-width: 400px;
        padding: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 90%;
        max-width: 600px;
        justify-items: center;
    }

    .contact-info {
        max-width: 100%;
        text-align: center;
    }

    .personal-info {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }

    .form-container {
        width: 100%;
        min-width: 400px;
        max-width: 550px;
    }

    .form-wrapper {
        min-width: 400px;
        width: 100%;
    }
}

/* ===============================
   RESPONSIVE - TABLETTES
   ===============================*/

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-container {
        width: 95%;
        gap: 1.5rem;
        max-width: 500px;
    }

    .personal-info {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .form-container {
        min-width: 350px;
        max-width: 450px;
    }

    .form-wrapper {
        min-width: 350px;
        max-width: 450px;
        padding: 1.5rem;
        min-height: 550px;
    }
}

/* ===============================
   RESPONSIVE - MOBILES
   ===============================*/

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-container {
        width: 95%;
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .form-container {
        min-width: 300px;
        max-width: 350px;
    }

    .form-wrapper {
        min-width: 300px;
        max-width: 350px;
        padding: 1.2rem;
        min-height: 500px;
    }

    /* Passage en colonnes uniques pour les champs sur très petit écran */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .form-group {
        min-height: 65px;
    }

    .form-input,
    .form-textarea {
        min-height: 42px;
    }

    .form-textarea {
        min-height: 70px;
        max-height: 100px;
    }

    .submit-btn {
        min-height: 45px;
        padding: 0.9rem 1.2rem;
    }
}

/* ===============================
   TRÈS PETITS ÉCRANS - PROTECTION EXTRÊME
   ===============================*/

@media (max-width: 360px) {
    .contact-container {
        width: 100%;
        padding: 0 0.25rem;
    }

    .form-container {
        min-width: 280px;
        max-width: 320px;
    }

    .form-wrapper {
        min-width: 280px;
        max-width: 320px;
        padding: 1rem;
        min-height: 480px;
    }

    .form-input,
    .form-textarea {
        padding: 0.6rem 0.8rem;
        min-height: 40px;
    }

    .form-textarea {
        min-height: 65px;
        max-height: 90px;
    }

    .phone-input::before {
        font-size: 0.65rem;
        left: 0.6rem;
    }

    .phone-input .form-input {
        padding-left: 3rem;
    }
}

/* ===============================
   PROTECTIONS ADDITIONNELLES
   ===============================*/

/* Empêche le débordement sur tous les éléments du formulaire */
.form-wrapper * {
    box-sizing: border-box;
    max-width: 100%;
}

/* Protection contre les textes trop longs */
.form-wrapper input,
.form-wrapper textarea {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Assure que le formulaire reste visible même avec du contenu dynamique */
.form-wrapper {
    overflow: hidden;
    position: relative;
}

/* Protection contre les contenus flottants */
.contact-form::after {
    content: "";
    display: table;
    clear: both;
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 0 1.5rem 0;
}

/* Mode light - Footer */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0edff 50%, #c7d2fe 100%);
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand h2 {
   font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-weight: 300;
}

[data-theme="light"] .footer-tagline {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.social-links a i {
    font-size: 1.2rem;
}

.social-links a.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a.facebook:hover {
    background: #1877f2;
}

.social-links a.twitter:hover {
    background: #000000;
}

[data-theme="light"] .social-links a.twitter:hover {
    background: #ffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

[data-theme="light"] .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #000;
    font-size: 0.9rem;
}

.footer-legal{
    margin-bottom: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

[data-theme="light"] .footer-legal a {
    color: #000;
    font-weight: 300;
    text-decoration: none;
    margin: 0 1rem;
    transition: font-weight 0.3s ease;
}

.footer-legal a:hover {
    font-weight: 500;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Mode light - Scroll progress */
[data-theme="light"] .scroll-progress {
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .presentation-main-card {
        grid-column: 1;
        grid-row: 1;
    }

    .profile-card {
        grid-column: 1;
        grid-row: 2;
    }

    .stats-card {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 768px) {

      .nav-links {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .theme-toggle {
        display: none; /* Cache aussi le toggle desktop sur mobile */
    }
    
    body{
        margin-top: 5rem;
    }

    .hero-title{
        font-size: clamp(2.5rem, 8vw, 6rem);
    }
    
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn-primary{
        margin: 0 auto;
    }

    .btn-realisations{
        margin-top: 0;
    }

    .demo-interface {
        padding: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .presentation-section {
        padding: 6rem 0;
    }

    .presentation-container {
        padding: 0 1rem;
    }

    .presentation-main-card {
        padding: 2.5rem;
    }

    .presentation-skills {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Contact responsive */
    .contact-container {
        grid-template-columns: 1fr;
        width: 80%;
        gap: 2rem;
    }
    
    .personal-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .contact-container {
        width: 95%;
        padding: 2rem 0.5rem;
    }
    
    .contact-section {
        padding: 1rem 0;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .form-wrapper .form-title {
        font-size: 1.4rem;
    }
}

/* Mode light - Couleurs spécifiques pour les éléments interactifs */
[data-theme="light"] .interactive-element:hover {
    transform: translateY(-5px);
    filter: brightness(1.05);
}

[data-theme="light"] .glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Mode light - Loading dots */
[data-theme="light"] .loading-dot {
    background: var(--primary-gradient);
    opacity: 0.8;
}

/* Accessibility - Mode light */
[data-theme="light"] .form-input:focus-visible,
[data-theme="light"] .form-textarea:focus-visible,
[data-theme="light"] .submit-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

[data-theme="light"] .sr-only {
    /* Maintient les propriétés screen-reader only */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mode light - Animations d'entrée améliorées */
[data-theme="light"] .animate-slide-left {
    animation: slideInFromLeftLight 0.8s ease-out forwards;
}

[data-theme="light"] .animate-slide-right {
    animation: slideInFromRightLight 0.8s ease-out forwards;
}

[data-theme="light"] .animate-fade-scale {
    animation: fadeInScaleLight 0.6s ease-out forwards;
}

[data-theme="light"] .animate-fade-up {
    animation: fadeInUpLight 0.8s ease-out forwards;
}

/* Nouvelles animations pour le mode light */
@keyframes slideInFromLeftLight {
    from {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes slideInFromRightLight {
    from {
        opacity: 0;
        transform: translateX(50px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeInScaleLight {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: brightness(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes fadeInUpLight {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Mode light - Amélioration des cartes pricing */
[data-theme="light"] .pricing-card {
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

[data-theme="light"] .pricing-card:hover::before {
    opacity: 1;
}

[data-theme="light"] .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .pricing-card.featured {
    background: 
        linear-gradient(145deg, #ffffff 0%, rgba(102, 126, 234, 0.02) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .pricing-card.featured::before {
    opacity: 1;
}

/* Mode light - Amélioration des skill tags */
[data-theme="light"] .skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Mode light - Animation de typing pour le mode clair */
[data-theme="light"] .typing-effect {
    color: var(--text-primary);
    border-right: 2px solid #667eea;
    animation: typing 2s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #667eea; }
}

/* Mode light - Amélioration des micro-animations */
[data-theme="light"] .theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .testimonial-avatar {
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

[data-theme="light"] .testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    border-color: #667eea;
}

/* Mode light - Messages de succès et d'erreur */
[data-theme="light"] #successMessage {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    color: #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .error-message {
    color: #dc2626;
    font-weight: 500;
}

[data-theme="light"] .form-group.error .form-input,
[data-theme="light"] .form-group.error .form-textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
    background: rgba(254, 242, 242, 0.5);
}

/* Mode light - Améliorations des particules */
[data-theme="light"] .particle {
    background: linear-gradient(135deg, #667eea 0%, rgba(102, 126, 234, 0.6) 100%);
    opacity: 0.2;
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .particle:nth-child(even) {
    background: linear-gradient(135deg, #f093fb 0%, rgba(240, 147, 251, 0.6) 100%);
    box-shadow: 0 0 6px rgba(240, 147, 251, 0.3);
}

/* Mode light - Navigation mobile améliorée */
[data-theme="light"] .mobile-menu-btn .hamburger-line {
    background: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-btn:hover .hamburger-line {
    background: #667eea;
}

/* Mode light - Scroll progress bar améliorée */
[data-theme="light"] .scroll-progress {
    background: var(--primary-gradient);
    box-shadow: 
        0 0 10px rgba(102, 126, 234, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
    height: 3px;
}

/* Mode light - Améliorations des liens sociaux */
[data-theme="light"] .social-links a {
    background: rgba(102, 126, 234, 0.1);
    color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Mode light - Customisation des sélections de texte */
[data-theme="light"] ::selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

[data-theme="light"] ::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

/* Mode light - Scrollbar personnalisée */
[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a67d8, #6b46c1);
}

/* Mode light - États de focus améliorés */
[data-theme="light"] button:focus-visible,
[data-theme="light"] a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mode light - Animation de chargement de page */
[data-theme="light"] body {
    transition: 
        opacity 0.5s ease-in-out,
        background 0.3s ease;
}

[data-theme="light"] body.loaded {
    opacity: 1;
}

/* Mode light - Améliorations finales */
[data-theme="light"] .hero-content {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .presentation-subtitle {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mode light - États d'erreur et de validation */
[data-theme="light"] .form-group.success .form-input,
[data-theme="light"] .form-group.success .form-textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(236, 253, 245, 0.5);
}

[data-theme="light"] .success-message {
    color: #065f46;
    font-weight: 500;
}

/* Mode light - Transitions fluides pour le changement de thème */
[data-theme="light"] * {
    transition: 
        color 0.3s ease, 
        background-color 0.3s ease, 
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* Mode light - Performance optimizations pour mobile */
@media (max-width: 768px) {
    [data-theme="light"] .particle {
        animation-duration: 8s;
        opacity: 0.15;
    }
    
    [data-theme="light"] .pricing-card:hover,
    [data-theme="light"] .testimonial-card:hover {
        transform: none;
    }
    
    [data-theme="light"] .presentation-visual,
    [data-theme="light"] .presentation-text {
        transition-duration: 0.3s;
    }
}

/* Mode light - Améliorations d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    [data-theme="light"] * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    [data-theme="light"] .particle {
        animation: none;
        opacity: 0.1;
    }
}

/* Mode light - Contrast élevé pour l'accessibilité */
@media (prefers-contrast: high) {
    [data-theme="light"] {
        --text-primary: #000000;
        --text-secondary: #4a5568;
        --border-color: rgba(0, 0, 0, 0.3);
        --glass-border: rgba(0, 0, 0, 0.4);
    }
}

/* Mode light - Gestion des images et media queries */
[data-theme="light"] img {
    filter: brightness(1.02) contrast(1.05);
}

[data-theme="light"] .profile-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .testimonial-avatar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fin des améliorations du mode light */