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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    min-height: 100vh;
    position: relative;
}

/* ========================================
    STYLES POUR LES NOUVELLES SECTIONS SEO
    ======================================== */

/* FAQ Section */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Études de cas */
.case-study {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid #3498db;
    border-radius: 8px;
}

.case-study h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.case-study p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Tableau de comparaison */
.comparison-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #555;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

/* Glossaire */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.glossary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.glossary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.glossary-item h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.glossary-item p {
    color: #555;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ========================================
    STYLES POUR LES LOGOS JAS
    ======================================== */

/* Logo repositionné pour ne pas cacher le nom */
.logo-corner {
    position: absolute;
    top: 2px;
    right: 10px;
    z-index: 10;
}

.logo-jas-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.logo-jas-small:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.section-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.section-logo:hover {
    opacity: 1;
    transform: rotate(360deg) scale(1.1);
}

/* ========================================
   STYLES GLOBAUX POUR LES LIENS
   ======================================== */

/* Liens par défaut */
a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 3px;
    padding: 2px 4px;
}

a:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

/* Liens dans le header */
.header a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.header a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Liens dans les cartes de contact */
.contact-card a {
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.contact-card a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Liens de téléchargement et boutons */
.cv-document a {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.cv-document a:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* ========================================
   STYLES POUR LES BOUTONS DE TÉLÉCHARGEMENT
   ======================================== */

/* Boutons de téléchargement uniformes */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 8px 10px 8px 0;
    min-width: 220px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.3px;
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.download-link:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-link i {
    font-size: 18px;
    min-width: 18px;
    opacity: 0.9;
}

/* Container pour les boutons de téléchargement */
.expertise-highlight .download-link {
    display: block;
    margin: 12px auto;
    text-align: center;
    max-width: 280px;
}

/* Boutons spéciaux pour PDF et Email */
.download-link[href*=".pdf"] {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.download-link[href*=".pdf"]:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.download-link[href*="mailto:"] {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.download-link[href*="mailto:"]:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* Responsive pour les boutons - optimisé tactile */
@media (max-width: 768px) {
    .download-link {
        min-width: 100%;
        margin: 8px 0;
        padding: 16px 20px;
        font-size: 1rem;
        min-height: 48px; /* Taille minimum pour éléments tactiles */
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        touch-action: manipulation;
    }

    .expertise-highlight .download-link {
        max-width: 100%;
    }
}

/* Liens dans les sections expertise */
.expertise-highlight a:not(.download-link) {
    color: #8e44ad;
    font-weight: 500;
    border-bottom: 1px dotted #8e44ad;
}

.expertise-highlight a:not(.download-link):hover {
    color: #ffffff;
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    border-bottom: 1px solid transparent;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    z-index: -1;
}

.profile-info {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    position: relative;
    z-index: 5; /* S'assurer que le nom reste au-dessus du logo */
}

.title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-align: center;
    min-width: 200px;
    position: relative;
    z-index: 2;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #3498db;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

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

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

/* ========================================
    NAVIGATION AVEC MENU HAMBURGER MOBILE
    ======================================== */

.nav {
    background: #34495e;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Bouton hamburger */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    -webkit-tap-highlight-color: rgba(52, 152, 219, 0.3);
    touch-action: manipulation;
    pointer-events: auto;
    user-select: none;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu:hover .hamburger-line {
    background: white;
}

/* Menu de navigation */
.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #3498db;
    transform: translateY(-1px);
}

/* ========================================
   CORRECTION MENU MOBILE - CACHER HEADER DUPLIQUÉ
   ======================================== */

/* Styles pour le menu mobile */
@media (max-width: 768px) {
    /* Masquer complètement le header sur mobile par défaut */
    .header {
        display: none !important;
    }

    /* Masquer le menu de navigation par défaut sur mobile */
    .nav-menu {
        display: none !important;
    }

    /* Afficher le menu seulement quand il est actif */
    .nav-menu.active {
        display: flex !important;
    }

    /* Cacher tous les headers dupliqués dans le menu */
    .nav-menu .header {
        display: none !important;
    }

    .nav-menu header {
        display: none !important;
    }

    /* Menu mobile propre */
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        background: #34495e;
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        top: 60px; /* Position sous le bouton hamburger */
    }

    .nav-menu li {
        display: block !important;
        margin: 0;
        padding: 0;
        /* SUPPRIMÉ: border-bottom: 1px solid rgba(255,255,255,0.1); - ÉCONOMIE: 1px par élément */
        width: 100%;
        box-sizing: border-box;
        visibility: visible;
        opacity: 1;
    }

    .nav-menu li:last-child {
        /* SUPPRIMÉ: border-bottom: none; - Plus nécessaire car toutes les bordures supprimées */
    }

    .nav-menu a {
        display: block !important;
        padding: 8px 12px; /* OPTIMISÉ: -33% padding vertical (de 12px à 8px) et horizontal (de 15px à 12px) - ÉCONOMIE: ~8px */
        color: white !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.85rem; /* OPTIMISÉ: -6% (de 0.9rem à 0.85rem) - ÉCONOMIE: ~0.8px */
        transition: all 0.3s ease;
        background: none !important;
        width: 100%;
        box-sizing: border-box;
        min-height: 40px; /* OPTIMISÉ: -9% (de 44px à 40px) - Respecte toujours les standards tactiles */
        visibility: visible;
        opacity: 1;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(52, 152, 219, 0.8) !important;
        color: white !important;
        padding-left: 35px;
    }

    /* S'assurer que tous les liens de navigation sont visibles */
    .nav-menu .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
    }

    /* Règles spécifiques pour les éléments avec data-page="sections" */
    .nav-menu a[data-page="sections"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        background: none !important;
        padding: 8px 12px !important; /* OPTIMISÉ: même réduction que les autres liens */
        /* SUPPRIMÉ: border-bottom: 1px solid rgba(255,255,255,0.1) !important; - ÉCONOMIE: 1px */
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 40px !important; /* OPTIMISÉ: même réduction que les autres liens */
        font-size: 0.85rem !important; /* OPTIMISÉ: même réduction que les autres liens */
    }

    /* Forcer la visibilité de tous les enfants du menu actif */
    .nav-menu.active * {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* S'assurer que tous les liens du menu sont visibles et accessibles */
    .nav-menu.active li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-menu.active a {
        display: block !important;
        width: 100% !important;
        padding: 8px 12px !important; /* OPTIMISÉ: même réduction que ci-dessus */
        margin: 0 !important;
        color: white !important;
        text-decoration: none !important;
        /* SUPPRIMÉ: border-bottom: 1px solid rgba(255,255,255,0.1) !important; - ÉCONOMIE: 1px par lien */
        font-size: 0.85rem !important; /* OPTIMISÉ: même réduction que ci-dessus */
        min-height: 40px !important; /* OPTIMISÉ: même réduction que ci-dessus */
        box-sizing: border-box !important;
    }

    /* Hamburger menu styles */
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: fixed;
        top: 15px;
        right: 20px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background: #FFFFFF;
        margin: 5px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

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

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

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

    /* Contenu principal avec marge pour la barre fixe */
    .content {
        margin-top: 60px;
        padding-top: 20px;
    }

    /* Styles pour le header dans le menu mobile - VERSION OPTIMISÉE */
    .nav-menu .mobile-header-item {
        display: block !important;
        width: 100%;
        order: -1; /* Mettre en premier */
        flex-shrink: 0;
    }

    .nav-menu .mobile-header {
        display: block !important;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        padding: 0.3rem 0.4rem; /* OPTIMISÉ: -50% de padding vertical (-0.3rem) et horizontal (-0.4rem) - ÉCONOMIE: ~9.6px */
        text-align: center;
        position: relative;
        overflow: hidden;
        z-index: 1;
        /* SUPPRIMÉ: border-bottom: 1px solid rgba(255, 255, 255, 0.1); - ÉCONOMIE: 1px */
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        visibility: visible;
        opacity: 1;
        flex-shrink: 0;
        min-height: auto;
    }

    /* Masquer le header mobile sur desktop */
    @media (min-width: 769px) {
        .nav-menu .mobile-header-item {
            display: none !important;
        }
    }

    .nav-menu .mobile-header::before {
        display: none; /* Désactiver l'effet de texture sur mobile */
    }

    .nav-menu .mobile-header .name {
        font-size: 0.9rem; /* OPTIMISÉ: -25% (de 1.2rem à 0.9rem) - ÉCONOMIE: ~4.8px */
        font-weight: 700;
        margin-bottom: 0.1rem; /* OPTIMISÉ: -50% (de 0.2rem à 0.1rem) - ÉCONOMIE: ~1.6px */
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        letter-spacing: 0.3px; /* OPTIMISÉ: -40% (de 0.5px à 0.3px) */
        line-height: 1; /* OPTIMISÉ: hauteur de ligne minimale */
    }

    .nav-menu .mobile-header .title {
        font-size: 0.6rem; /* OPTIMISÉ: -14% (de 0.7rem à 0.6rem) - ÉCONOMIE: ~1.6px */
        margin-bottom: 0.2rem; /* OPTIMISÉ: -50% (de 0.4rem à 0.2rem) - ÉCONOMIE: ~2.8px */
        opacity: 0.9;
        font-weight: 300;
        line-height: 1; /* OPTIMISÉ: hauteur de ligne minimale */
    }

    .nav-menu .mobile-header .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15rem; /* OPTIMISÉ: -50% (de 0.3rem à 0.15rem) - ÉCONOMIE: ~1.8px */
        margin-bottom: 0.2rem; /* OPTIMISÉ: -50% (de 0.4rem à 0.2rem) - ÉCONOMIE: ~2.8px */
    }

    .nav-menu .mobile-header .social-links {
        display: flex;
        justify-content: center;
        gap: 0.3rem; /* OPTIMISÉ: -40% (de 0.5rem à 0.3rem) - ÉCONOMIE: ~2.4px */
        margin-top: 0.4rem; /* OPTIMISÉ: -50% (de 0.8rem à 0.4rem) - ÉCONOMIE: ~5.6px */
    }

    /* Optimisation pour très petits écrans */
    .nav-menu .mobile-header {
        padding: 1.5rem 1rem;
    }

    .nav-menu .mobile-header .name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .nav-menu .mobile-header .title {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .nav-menu .mobile-header .contact-item {
        font-size: 0.65rem; /* OPTIMISÉ: -13% (de 0.75rem à 0.65rem) - ÉCONOMIE: ~1.6px */
        min-width: auto;
        gap: 0.1rem; /* OPTIMISÉ: -50% (de 0.2rem à 0.1rem) - ÉCONOMIE: ~1.6px */
        padding: 0.05rem 0; /* OPTIMISÉ: padding vertical minimal */
    }

    /* Optimiser les éléments sociaux dans le menu mobile - ULTRA COMPACT */
    .nav-menu .mobile-header .social-links {
        gap: 0.15rem; /* OPTIMISÉ: -50% (de 0.3rem à 0.15rem) - ÉCONOMIE: ~1.8px */
        margin-top: 0.2rem; /* OPTIMISÉ: -50% (de 0.4rem à 0.2rem) - ÉCONOMIE: ~2.8px */
    }

    .nav-menu .mobile-header .social-links a {
        width: 24px; /* OPTIMISÉ: -25% (de 32px à 24px) - ÉCONOMIE: 8px par élément */
        height: 24px; /* OPTIMISÉ: -25% (de 32px à 24px) - ÉCONOMIE: 8px par élément */
    }

    /* Hamburger menu pour très petits écrans */
    .hamburger-menu {
        right: 15px;
        top: 10px;
        width: 35px;
        height: 35px;
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
        margin: 3px 0;
    }

    /* Header mobile optimisé pour très petits écrans */
    .nav-menu .mobile-header {
        padding: 1rem;
    }

    .nav-menu .mobile-header .name {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .nav-menu .mobile-header .title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .nav-menu .mobile-header .contact-row {
        gap: 0.5rem;
    }

    .nav-menu .mobile-header .contact-item {
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .nav-menu .mobile-header .social-links {
        gap: 0.3rem;
    }

    .nav-menu .mobile-header .social-links a {
        width: 35px;
        height: 35px;
    }

    .nav-menu .mobile-header .social-links i {
        font-size: 0.65rem; /* OPTIMISÉ: -13% (de 0.75rem à 0.65rem) - ÉCONOMIE: ~1.6px */
    }
}

/* Cacher le hamburger sur desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        background: none;
        box-shadow: none;
    }

    /* Masquer complètement le header mobile sur desktop */
    .mobile-header-item {
        display: none !important;
    }
}

/* ========================================
   CORRECTION MENU MOBILE - CACHER HEADER DUPLIQUÉ
   ======================================== */

@media (max-width: 768px) {
    /* Cacher tous les headers dupliqués dans le menu mobile */
    .nav-menu .header {
        display: none !important;
    }

    /* Empêcher l'insertion de headers dans le menu */
    .nav-menu header {
        display: none !important;
    }

    /* S'assurer que seuls les liens de navigation sont visibles */
    .nav-menu li {
        display: block;
    }

    /* Les styles pour .nav-menu a sont maintenant définis plus haut */

    /* Menu mobile propre sans header */
    .nav-menu.active {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #34495e;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: 0;
        z-index: 1000;
        max-height: calc(100vh - 60px);
        height: calc(100vh - 60px); /* Hauteur fixe pour éviter le débordement */
    }

    /* S'assurer que seuls les éléments li sont visibles */
    .nav-menu.active > *:not(li) {
        display: none !important;
    }

    /* S'assurer que les éléments li prennent toute la largeur */
    .nav-menu.active li {
        width: 100%;
        box-sizing: border-box;
        display: block;
    }

    /* S'assurer que les liens sont visibles */
    .nav-menu.active a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* ========================================
    CONTENU PRINCIPAL
    ======================================== */

.content {
    padding: 2rem;
}

/* Section Header pour éviter les conflits avec navigation */
#header-section {
    position: relative;
    z-index: 1;
    padding: 20px 0; /* Ajouter un petit espacement */
}

/* Correction pour les ancres avec navigation sticky */
.section:target {
    scroll-margin-top: 120px; /* Augmenter l'espace pour le menu sticky */
}

.section {
    scroll-margin-top: 120px; /* Espace pour le menu sticky sur tous les navigateurs */
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

.section h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* ========================================
   SECTIONS SPÉCIFIQUES
   ======================================== */

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.expertise-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 5px solid #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.expertise-highlight h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.expertise-highlight h3 i {
    color: #3498db;
    margin-right: 0.5rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    opacity: 0;
    animation: slideInFromLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

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


.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #3498db;
}

.timeline-content::before {
    left: -41px !important;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.timeline-content .company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content .period {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content .description {
    color: #555;
    line-height: 1.6;
}

.timeline-content .skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.company-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.company-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background: #2c3e50;
    padding: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid #34495e;
    display: block;
    margin: 0 auto;
}

.company-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: #3498db;
}

/* Placeholder pour entreprises sans logo spécifique */
.no-logo {
    background: #2c3e50 !important;
    border-color: #34495e !important;
    margin: 0 auto;
    display: block;
}

/* Styles spécifiques pour certains logos - TOUS avec fond noir */
.company-img[alt*="Migros"] {
    background: #2c3e50;
    border-color: #34495e;
}

.company-img[alt*="État de Vaud"] {
    background: #2c3e50;
    border-color: #34495e;
}

.company-img[alt*="Planzer"] {
    background: #2c3e50;
    border-color: #34495e;
}

.company-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.company-card p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.company-card p strong {
    color: #3498db;
    font-weight: 600;
}

.company-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1rem;
}

/* Placeholder pour entreprises sans logo spécifique */
.no-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.no-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Styles spécifiques pour différents placeholders */
.no-logo:contains("CH") {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.no-logo:contains("IS") {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.no-logo:contains("FD") {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
}

.no-logo:contains("ET") {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
}

.no-logo:contains("YD") {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
}

.no-logo:contains("EM") {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%) !important;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.company-link:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white !important;
}

/* Documents Section */
.documents-grid {
    margin: 2rem 0;
}

.document-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #e74c3c;
}

.document-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.document-item p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Certificates Section */
.certificates-section {
    margin-top: 2rem;
}

.certificates-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.certificates-section p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.certificate-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 3px solid #27ae60;
}

.certificate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.certificate-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.certificate-item h5 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.certificate-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-link.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 120px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.skill-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.skill-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: #555;
    line-height: 1.6;
}

/* Social Links dans Contact - CORRECTION APPLIQUÉE */
.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-links-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important; /* CORRECTION: Texte en blanc forcé */
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-links-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    color: white !important; /* CORRECTION: Texte reste blanc au hover */
}

/* Downloads Section */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.download-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.download-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-section p {
    margin-bottom: 1rem;
}

.certificates-download {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.certificates-download p {
    margin-bottom: 0.5rem;
}

/* Responsive pour downloads */
@media (max-width: 768px) {
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ========================================
    OPTIMISATION SMARTPHONES
    ======================================== */

/* Optimisations pour tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        margin: 0;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }

    /* Optimiser la navigation pour tablettes */
    .nav-link {
        padding: 1rem 1rem;
        font-size: 0.95rem;
    }
}

/* Breakpoint intermédiaire pour gros smartphones */
@media (max-width: 600px) and (min-width: 481px) {
    .container {
        margin: 0;
    }

    .header {
        padding: 2.5rem 1.5rem;
    }

    .name {
        font-size: 2.2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    /* Grille 2 colonnes pour certains éléments sur gros smartphones */
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Optimisations pour smartphones - Tablettes petites et téléphones */
@media (max-width: 768px) {
    /* Navigation optimisée pour le toucher */
    .nav-link {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-height: 48px; /* Taille minimum recommandée pour éléments tactiles */
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.3);
        touch-action: manipulation;
    }

    /* Grilles en colonne unique pour mobile */
    .companies-grid,
    .skills-grid,
    .contact-grid,
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .company-card {
        min-height: 280px;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .company-img, .no-logo {
        width: 70px;
        height: 70px;
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* FAQ optimisée */
    .faq-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .faq-item h4 {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Études de cas */
    .case-study {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Glossaire responsive */
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .glossary-item {
        padding: 1.5rem;
    }

    /* Certificats en colonne unique */
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Optimisation pour petits smartphones */
@media (max-width: 480px) {
    /* Navigation verticale pour petits écrans */
    .nav ul {
        flex-direction: column;
    }

    .nav-link {
        padding: 0.8rem;
        text-align: center;
        /* SUPPRIMÉ: border-bottom: 1px solid rgba(255, 255, 255, 0.1); - ÉCONOMIE: 1px */
        /* SUPPRIMÉ: border-radius: 0; - Plus nécessaire */
        min-height: 48px;
        font-size: 0.9rem;
    }

    /* Hamburger menu pour très petits écrans */
    .hamburger-menu {
        right: 10px;
        padding: 8px;
    }

    .hamburger-line {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }

    /* Menu encore plus compact sur très petits écrans */
    .nav-menu.active {
        max-height: calc(100vh - 60px);
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Optimiser les performances du menu hamburger */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
        will-change: max-height;
    }

    .hamburger-menu {
        will-change: transform;
    }

    /* Barre de navigation plus compacte sur très petits écrans */
    .nav {
        height: 50px;
    }

    .nav-menu {
        top: 50px;
    }

    .content {
        margin-top: 50px;
    }

    /* S'assurer que le header reste masqué sur très petits écrans */
    .header {
        display: none !important;
    }

    /* Nettoyer tout élément non-li du menu sauf ceux nécessaires */
    .nav-menu.active > *:not(li):not(.hamburger-menu):not(.mobile-header-item) {
        display: none !important;
    }

    .nav-link:last-child {
        /* SUPPRIMÉ: border-bottom: none; - Plus nécessaire car toutes les bordures supprimées */
    }

    /* Header compact pour petits écrans */
    .header {
        padding: 2rem 1rem;
    }

    .name {
        font-size: 1.8rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .title {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Contenu principal compact */
    .content {
        padding: 1rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    /* Cartes d'entreprise compactes */
    .company-card {
        padding: 1rem;
        min-height: 250px;
    }

    .company-img, .no-logo {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    /* Expertise highlights compacts */
    .expertise-highlight {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    /* Timeline optimisée pour mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
        padding: 1.5rem;
    }

    .timeline-content::before {
        left: -32px !important;
        width: 16px;
        height: 16px;
    }

    /* Éléments sociaux compacts */
    .social-links a {
        width: 45px;
        height: 45px;
    }

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

    /* Téléchargements compacts */
    .download-link {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
        margin: 0.5rem 0;
        min-height: 48px;
    }

    /* Cartes de contact et compétences */
    .contact-card, .skill-card {
        padding: 1.5rem;
    }
}

/* Optimisations tactiles et performances pour mobile */
@media (max-width: 768px) {
    /* Améliorer les performances sur mobile */
    .timeline-item {
        animation: none; /* Désactiver les animations coûteuses */
        opacity: 1;
    }

    /* Optimiser le rendu des images */
    .company-img, .no-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Améliorer les polices pour mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Disposition verticale pour mobile */
    .contact-row {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-item {
        min-width: auto;
        text-align: center;
    }

    /* Timeline optimisée pour mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px !important;
        margin-right: 0 !important;
    }

    .timeline-content::before {
        left: -32px !important;
    }

    /* Grilles en colonnes uniques */
    .certificates-grid,
    .social-links-contact {
        grid-template-columns: 1fr;
    }

    .social-links-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links-contact a {
        width: 200px;
        justify-content: center;
    }
}

/* Plus besoin de cette section dupliquée - déjà couverte ci-dessus */

/* ========================================
   ANIMATIONS ET EFFETS
   ======================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* Effet de survol pour les cartes */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3498db, #2980b9);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2980b9, #1f4e79);
}

/* ========================================
    OPTIMISATIONS MOBILES AVANCÉES
    ======================================== */

/* Optimisations tactiles avancées pour smartphones */
@media (max-width: 768px) {
    /* Optimiser les défilements tactiles */
    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Améliorer la visibilité des éléments tactiles */
    .nav-link, .download-link, .company-link, .cv-document a {
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.3);
        touch-action: manipulation;
        user-select: none;
    }

    /* Éléments tactiles avec taille minimum recommandée */
    .nav-link, .download-link, .company-link {
        min-height: 44px; /* Taille minimum recommandée pour éléments tactiles */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Espacement amélioré pour doigts */
    .company-links {
        gap: 1.5rem;
    }

    .company-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    /* Boutons de téléchargement optimisés */
    .download-link {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 1rem 0;
    }

    /* Optimiser les cartes pour le toucher */
    .company-card, .skill-card, .contact-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(52, 152, 219, 0.1);
        transition: none; /* Désactiver les animations sur mobile */
    }

    /* Améliorer la lisibilité du texte sur mobile */
    p, li {
        line-height: 1.7;
        font-size: 1rem;
    }

    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }

    /* Espacement des sections pour le défilement mobile */
    .section {
        padding: 1rem 0;
        scroll-margin-top: 100px;
    }

    /* Améliorer la visibilité des éléments focus */
    .nav-link:focus,
    .download-link:focus,
    .company-link:focus {
        outline: 2px solid #3498db;
        outline-offset: 2px;
    }
}

/* Optimisations pour très petits écrans (iPhone SE, Galaxy S mini, etc.) */
@media (max-width: 375px) {
    .container {
        margin: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .header {
        padding: 1.5rem 1rem;
        margin-bottom: 0;
    }

    /* Logo très petit sur très petits écrans */
    .logo-corner {
        top: 8px;
        right: 8px;
    }

    .logo-jas-small {
        width: 28px;
        height: 28px;
    }

    .name {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .title {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Contenu principal compact */
    .content {
        padding: 0.8rem;
    }

    .section h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    /* Cartes d'entreprise ultra-compactes */
    .company-card {
        padding: 1rem;
        min-height: 220px;
    }

    .company-img, .no-logo {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }

    /* Logo encore plus petit sur très petits écrans */
    .logo-jas-small {
        width: 30px;
        height: 30px;
    }

    /* Menu ultra-compact */
    .nav-link {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    /* Expertise highlights compacts */
    .expertise-highlight {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Timeline optimisée pour très petits écrans */
    .timeline::before {
        left: 15px;
    }

    .timeline-content {
        width: calc(100% - 30px);
        margin-left: 30px !important;
        margin-right: 0 !important;
        padding: 1rem;
    }

    .timeline-content::before {
        left: -25px !important;
        width: 14px;
        height: 14px;
    }

    /* Éléments sociaux compacts */
    .social-links a {
        width: 40px;
        height: 40px;
    }

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

    /* Téléchargements full-width */
    .download-link {
        padding: 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 0.8rem 0;
        min-height: 48px;
    }

    /* Optimiser les éléments de contact pour très petits écrans */
    .contact-item {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .social-links-contact a {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        width: 180px;
    }
}

/* Optimisations de performances avancées pour mobile */
@media (max-width: 768px) {
    /* Désactiver les animations coûteuses sur mobile */
    .timeline-item {
        animation: none !important;
        opacity: 1;
    }

    /* Désactiver les effets de survol sur mobile */
    .company-card:hover,
    .skill-card:hover,
    .contact-card:hover,
    .glossary-item:hover {
        transform: none; /* Éviter les animations sur mobile */
        box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Garder l'ombre de base */
    }

    /* Optimiser le rendu des images */
    .company-img, .no-logo, .section-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        will-change: auto;
    }

    /* Améliorer les performances de défilement */
    .section {
        will-change: scroll-position;
        contain: layout style paint;
    }

    /* Optimiser les polices pour mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeSpeed;
        font-feature-settings: "kern" 1;
    }

    /* Réduire les effets visuels lourds sur mobile */
    .header::before {
        display: none; /* Éviter le pattern SVG sur mobile */
    }

    /* Simplifier les dégradés sur mobile pour de meilleures performances */
    .download-link {
        background: #667eea !important; /* Couleur unie au lieu de dégradé */
    }

    .download-link:hover {
        background: #5a6fd8 !important;
    }

    /* Optimiser les autres dégradés */
    .nav {
        background: #34495e; /* Couleur unie */
    }

    .header {
        background: #2c3e50; /* Couleur unie */
    }
}