/* Variables globales du système de design */
:root {
    /* Couleurs principales en RGB pour la flexibilité */
    --primary-rgb: 243, 156, 18;    /* Orange */
    --accent-rgb: 255, 165, 0;      /* Orange vif */
    --text-rgb: 230, 230, 250;      /* Lavande clair */
    --bg-rgb: 27, 27, 50;           /* Bleu foncé */
    --darker-bg-rgb: 23, 23, 43;    /* Bleu plus foncé */
    
    /* Couleurs dérivées avec transparence */
    --primary-color: rgb(var(--primary-rgb));
    --accent: rgb(var(--accent-rgb));
    --text-primary: rgb(var(--text-rgb));
    --primary-bg: rgb(var(--bg-rgb));
    --darker-bg: rgb(var(--darker-bg-rgb));
    
    /* Système d'espacement (rem) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    
    /* Système de bordures */
    --border-width-sm: 1px;
    --border-width-md: 2px;
    --border-width-lg: 3px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 50%;
    
    /* Système d'ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --glow: 0 0 15px rgba(var(--accent-rgb), 0.3);
    
    /* Système de typographie */
    --font-primary: 'Press Start 2P', cursive;
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-md: 1rem;       /* 16px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index système */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-popup: 400;
    
    /* Breakpoints */
    --mobile: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --large: 1200px;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-md);
    line-height: 1.6;
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

/* Utilitaires de base */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus accessible */
:focus-visible {
    outline: var(--border-width-md) solid var(--accent);
    outline-offset: var(--space-xs);
}

/* Variables globales du thème */
:root {
    /* Variables de base */
    --font-primary: 'Press Start 2P', cursive;
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    
    /* Thème sombre (par défaut) */
    --primary-color: #f39c12;
    --text-primary: #ffffff;
    --primary-bg: #1a1a1a;
    --darker-bg: #151515;
    --card-bg: #2d2d44;
    --card-hover: #3d3d5c;
    --border-primary: #3d3d3d;
    --hover-primary: #f1c40f;
    --box-glow: 0 0 15px rgba(243, 156, 18, 0.3);
    --nav-bg: rgba(45, 45, 68, 0.95);
    
    /* Thème clair */
    --light-primary: #e67e22;
    --light-text: #333333;
    --light-bg: #f5f5f5;
    --light-darker: #e5e5e5;
    --light-card: #ffffff;
    --light-card-hover: #f0f7ff;
    --light-border: #dddddd;
    --light-hover: #d35400;
    
    /* Thème nature */
    --nature-primary: #4caf50;
    --nature-text: #e0e0e0;
    --nature-bg: #1a2f1a;
    --nature-darker: #152615;
    --nature-card: #2d4a2d;
    --nature-card-hover: #3d633d;
    --nature-border: #3d633d;
    --nature-hover: #66bb6a;
    
    /* Thème colorblind */
    --colorblind-primary: #0077bb;
    --colorblind-text: #ffffff;
    --colorblind-bg: #1a1a1a;
    --colorblind-darker: #151515;
    --colorblind-card: #2d2d44;
    --colorblind-card-hover: #3d3d5c;
    --colorblind-border: #3d3d3d;
    --colorblind-hover: #00a0ee;
}

/* Application des thèmes */
[data-theme="light"] {
    --primary-color: var(--light-primary);
    --text-primary: var(--light-text);
    --primary-bg: var(--light-bg);
    --darker-bg: var(--light-darker);
    --card-bg: var(--light-card);
    --card-hover: var(--light-card-hover);
    --border-primary: var(--light-border);
    --hover-primary: var(--light-hover);
    --box-glow: 0 0 15px rgba(230, 126, 34, 0.3);
}

[data-theme="nature"] {
    --primary-color: var(--nature-primary);
    --text-primary: var(--nature-text);
    --primary-bg: var(--nature-bg);
    --darker-bg: var(--nature-darker);
    --card-bg: var(--nature-card);
    --card-hover: var(--nature-card-hover);
    --border-primary: var(--nature-border);
    --hover-primary: var(--nature-hover);
    --box-glow: 0 0 15px rgba(76, 175, 80, 0.3);
}

[data-theme="colorblind"] {
    --primary-color: var(--colorblind-primary);
    --text-primary: var(--colorblind-text);
    --primary-bg: var(--colorblind-bg);
    --darker-bg: var(--colorblind-darker);
    --card-bg: var(--colorblind-card);
    --card-hover: var(--colorblind-card-hover);
    --border-primary: var(--colorblind-border);
    --hover-primary: var(--colorblind-hover);
    --box-glow: 0 0 15px rgba(0, 119, 187, 0.3);
}

/* Styles spécifiques pour le thème daltonien */
[data-theme="colorblind"] .content-card {
    border-width: 2px !important;
}

[data-theme="colorblind"] .menu-link {
    border-width: 2px !important;
}

[data-theme="colorblind"] .theme-toggle-btn {
    border-width: 2px !important;
}

/* Appliquer la transition à tous les éléments */
*, *::before, *::after {
    transition: var(--theme-transition);
}

/* Styles de base qui utilisent les variables */
body {
    background-color: var(--primary-bg) !important;
    color: var(--text) !important;
}

.nav-header {
    background-color: var(--darker-bg) !important;
    border-bottom-color: var(--accent) !important;
}

.content-card {
    background-color: var(--card-bg) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--border-glow) !important;
}

.content-card:hover {
    background-color: var(--card-hover) !important;
}

.menu-link {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.menu-link:hover {
    background-color: var(--accent) !important;
    color: var(--darker-bg) !important;
}

.dropdown-content {
    background-color: var(--darker-bg) !important;
    border-color: var(--accent) !important;
}

.lateral-contact {
    background-color: var(--darker-bg) !important;
    border-color: var(--accent) !important;
}

.footer {
    background-color: var(--darker-bg) !important;
    border-top-color: var(--accent) !important;
}

/* Styles spécifiques pour chaque thème */
[data-theme="sunset"] .footer {
    background-color: #261429;
}

[data-theme="sunset"] .menu-link:hover {
    color: #ffe4d0;
}

[data-theme="ocean"] .footer {
    background-color: #042e38;
}

[data-theme="ocean"] .menu-link:hover {
    color: #e0f7ff;
}

/* Mode clair */
[data-theme="light"] {
    --primary-bg: #f5f5ff;
    --darker-bg: #e5e5f0;
    --card-bg: #ffffff;
    --card-hover: #f0f0f7;
    --accent: #ff7b00;
    --accent-hover: #ff6600;
    --text: #333344;
    --border-glow: 0 0 10px rgba(255, 123, 0, 0.2);
}

/* Styles spécifiques pour le mode clair */
[data-theme="light"] .nav-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .content-card:nth-child(even) {
    background-color: #f0f0f7;
}

[data-theme="light"] .content-card:nth-child(odd) {
    background-color: #ffffff;
}

[data-theme="light"] .menu-link:hover {
    color: #1b1b32;
}

[data-theme="light"] .footer {
    background-color: #e5e5f0;
}

/* Styles du sélecteur de thèmes */
.theme-switcher {
    position: relative;
    margin-left: 1rem;
    z-index: 1000;
}

.theme-toggle-btn {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--accent);
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}

.theme-options {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--darker-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-switcher.active .theme-options {
    display: flex;
}

.theme-option {
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-family: 'Press Start 2P', cursive;
}

.theme-option:hover {
    background-color: var(--accent);
    color: var(--darker-bg);
}

.theme-option.active {
    background-color: var(--accent);
    color: var(--darker-bg);
}

.theme-option-icon {
    font-size: 1.2rem;
}

.theme-option-label {
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Animation du bouton */
.theme-changing {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Media queries pour le sélecteur de thèmes */
@media (max-width: 768px) {
    .theme-switcher {
        position: fixed;
        top: 15px;
        right: 65px;
    }
    
    .theme-toggle-btn {
        width: 35px;
        height: 35px;
    }
    
    .theme-options {
        position: fixed;
        top: 60px;
        right: 10px;
        padding: 0.8rem;
    }

    .theme-option {
        padding: 0.6rem 0.8rem;
    }

    .theme-option-label {
        font-size: 0.6rem;
    }
}

/* ====================================
   1. VARIABLES ET RESET
   ==================================== */
   :root {
    --primary-bg: #1b1b32;
    --darker-bg: #1b1b32;
    --accent: #ffa500;
    --accent-hover: #ffb732;
    --text: #e6e6fa;
    --border-glow: 0 0 10px rgba(255, 165, 0, 0.3);
    --mobile-breakpoint: 480px;
    --tablet-breakpoint: 768px;
    --desktop-breakpoint: 1024px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--primary-bg);
    color: var(--text);
    line-height: 1.6;
}

/* ====================================
   2. HEADER ET NAVIGATION - INCHANGÉ
   ==================================== */
.nav-header {
    background-color: var(--darker-bg);
    padding: 1rem;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    padding: 0 1rem;
}

/* Profil dans la navigation */
.nav-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-info h1 {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 5px;
}

.profile-info p {
    font-size: clamp(12px, 3vw, 16px);
}

/* Menu de navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-link {
    text-decoration: none;
    color: var(--accent);
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: transparent;
}

.menu-link:hover {
    background-color: var(--accent);
    color: var(--darker-bg);
    transform: translateY(-2px);
    box-shadow: var(--border-glow);
}

/* Styles du menu mobile */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 35px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Styles pour le menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    display: none;
    min-width: 200px;
    background-color: var(--darker-bg);
    border: 2px solid var(--accent);
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 10px;
    z-index: 102;
}

.dropdown-content a {
    color: var(--accent);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--accent);
    color: var(--darker-bg);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ====================================
   3. BARRE LATÉRALE DE CONTACT - OPTIMISÉ
   ==================================== */
.lateral-contact {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--darker-bg);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 200px;
    box-shadow: var(--border-glow);
    z-index: 99;
}

/* Éléments de contact */
.contact-title {
    color: var(--accent);
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.contact-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    gap: 8px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.icon-title {
    color: var(--accent);
    font-size: 10px;
}

.contact-label {
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: var(--darker-bg);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item:hover .contact-label {
    opacity: 1;
    left: 110%;
}

/* ====================================
   4. CONTENEUR PRINCIPAL ET CARDS - OPTIMISÉ
   ==================================== */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

.content-card {
    background-color: rgb(42, 44, 77);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--accent);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--border-glow);
    width: 100%;
}

.content-card:nth-child(even) {
    background-color: rgb(47, 49, 86);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.content-card h2 {
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.content-card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Styles pour l'image de profil */
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}

/* ====================================
   5. GRILLES (SKILLS ET TOOLS) - OPTIMISÉ
   ==================================== */
.skills-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.skill-item,
.tool-item {
    background-color: rgba(37, 39, 68, 0.6);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.skill-item:hover,
.tool-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-hover);
    box-shadow: var(--border-glow);
    background-color: rgba(37, 39, 68, 0.8);
}

.skill-icon,
.tool-icon {
    width: 70%;
    height: auto;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

/* ====================================
   6. CAROUSEL - OPTIMISÉ
   ==================================== */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
}

.carousel-track-container {
    width: 100%;
    overflow-x: hidden;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex: 0 0 220px;
    background-color: rgba(42, 44, 77, 0.7);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
    background-color: rgba(42, 44, 77, 0.9);
}

.certif-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.tech-label {
    color: var(--accent);
    font-size: 12px;
    text-align: center;
}

.status-label {
    color: var(--text);
    font-size: 10px;
    opacity: 0.8;
}

/* Styles des flèches */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--darker-bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-arrow:hover {
    background-color: var(--accent);
}

.carousel-arrow i {
    color: var(--accent);
    font-size: 24px;
}

.carousel-arrow:hover i {
    color: var(--darker-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-track-container {
        padding: 0 30px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
    }

    .carousel-arrow i {
        font-size: 18px;
    }

    .carousel-item {
        flex: 0 0 180px;
    }
}

/* ====================================
   7. FOOTER - OPTIMISÉ
   ==================================== */
.footer {
    background-color: var(--darker-bg);
    padding: 1.5rem;
    text-align: center;
    border-top: 2px solid var(--accent);
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer p {
    font-size: 0.7rem;
    color: var(--text);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ====================================
   8. MEDIA QUERIES - OPTIMISÉ
   ==================================== */
/* En mode desktop, décaler le contenu pour éviter qu'il soit caché par lateral-contact */
@media (min-width: 1200px) {
    .container {
        margin-left: 240px;
        max-width: calc(100% - 300px);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        margin: 0 auto;
        max-width: 800px;
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
}

/* Styles du menu mobile */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        padding: 1rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--darker-bg);
        padding: 80px 2rem 2rem 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border: 2px solid var(--accent);
        margin: 0.5rem 0;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: none;
        background: transparent;
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-content {
        max-height: 300px;
        padding: 0.5rem 0;
    }

    .dropdown-content a {
        padding: 1rem;
        text-align: center;
        border: 1px solid var(--accent);
        margin: 0.5rem 0;
        border-radius: 8px;
    }

    /* Animation du bouton hamburger */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Empêcher le défilement quand le menu est ouvert */
    body.menu-open {
        overflow: hidden;
    }

    /* Ajustement du thème switcher en mobile */
    .theme-switcher {
        position: fixed;
        top: 15px;
        right: 60px;
    }
}

/* Media query pour tablettes et mobiles - barre latérale de contact repositionnée */
@media (max-width: 1024px) {
    .lateral-contact {
        position: static;
        transform: none;
        width: 100%;
        max-width: 600px;
        margin: 1.5rem auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-title {
        grid-column: 1 / -1;
        margin-bottom: 0.5rem;
    }

    .contact-separator {
        display: none;
    }

    .contact-item {
        margin: 0;
    }

    .contact-label {
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        margin-top: 8px;
        white-space: nowrap;
    }

    .contact-item:hover .contact-label {
        left: 50%;
    }
    
    .container {
        margin: 0 auto;
        padding: 1.5rem;
    }
}

/* Section "À propos" adaptée pour mobile */
@media (max-width: 768px) {
    .content-card > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin-top: 1.5rem;
    }
    
    .skills-grid,
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
}

/* Ajustements pour petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .content-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .content-card h2 {
        font-size: 16px;
        margin-bottom: 1rem;
        flex-direction: column;
    }
    
    .content-card p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .lateral-contact {
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
    }
    
    .icon-title {
        font-size: 9px;
    }
    
    .carousel-item {
        width: 150px;
        height: 180px;
        padding: 1rem;
    }
    
    .certif-icon {
        width: 50px;
        height: 50px;
    }
    
    .separator {
        margin: 1rem auto;
    }
}

/* ====================================
   9. ANIMATIONS ET DIVERS - OPTIMISÉ
   ==================================== */
/* Séparateur élégant */
.separator {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 2rem auto;
    width: 80%;
    border-radius: 3px;
}

/* Animation des éléments au survol */
.content-card h2 .section-icon {
    transition: transform 0.3s ease;
}

.content-card:hover h2 .section-icon {
    transform: scale(1.1);
}

/* Amélioration de l'accessibilité */
a:focus {
    outline: 2px dashed var(--accent);
    outline-offset: 3px;
}

/* Autres améliorations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix pour le curseur sur les liens */
a, button, .menu-link, .dropdown, .contact-item {
    cursor: pointer;
}

/* Forcer l'application des couleurs de texte */
h1, h2, h3, h4, h5, h6, p, span, a {
    color: var(--text) !important;
}

/* Forcer l'application des couleurs d'arrière-plan */
.theme-options, .nav-menu, .dropdown-content {
    background-color: var(--darker-bg) !important;
}

/* Forcer l'application des couleurs d'accent */
button, .btn, .theme-option {
    border-color: var(--accent) !important;
}

button:hover, .btn:hover, .theme-option:hover {
    background-color: var(--accent) !important;
    color: var(--darker-bg) !important;
}