/* CORRECTIONS MOBILE ET CITATIONS - FICHIER SPÉCIFIQUE */

/* 1. CORRECTION BARRE LATÉRALE - SCROLL COMPLET */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: white !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.sidebar-header {
    flex-shrink: 0 !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.sidebar-menu {
    flex: 1 !important;
    padding: 1rem 0 !important;
    overflow-y: auto !important;
}

.sidebar-footer {
    flex-shrink: 0 !important;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* 2. CORRECTION MENU MOBILE - COULEURS BLEUES */
.mobile-header {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    padding: 15px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.menu-toggle {
    display: none !important;
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.05) !important;
}

/* 3. CORRECTION CITATIONS - RESPONSIVE COMPLET */
.about-header blockquote {
    font-style: italic !important;
    color: #1e3a8a !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-left: 4px solid #3b82f6 !important;
    padding: 1.5em 2em !important;
    margin: 1.5em auto 2em auto !important;
    max-width: 600px !important;
    border-radius: 12px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1) !important;
    position: relative !important;
}

.about-header blockquote::before {
    content: '"' !important;
    font-size: 4em !important;
    color: #3b82f6 !important;
    position: absolute !important;
    top: -10px !important;
    left: 10px !important;
    opacity: 0.3 !important;
}

.about-header div[style*="max-width:600px"] {
    max-width: 600px !important;
    margin: 0 auto 1.5em auto !important;
    color: #1e3a8a !important;
    font-size: 1.1em !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-radius: 12px !important;
    padding: 1.5em 2em !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
}

/* 4. RESPONSIVE MOBILE - CORRECTION COMPLÈTE */
@media (max-width: 900px) {
    .mobile-header {
        display: block !important;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .sidebar {
        left: -100% !important;
        z-index: 10000 !important;
    }
    
    .sidebar.active {
        left: 0 !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 80px !important;
    }
}

/* 5. CITATIONS RESPONSIVE - TOUS ÉCRANS */
@media (max-width: 768px) {
    .about-header blockquote {
        font-size: 0.95em !important;
        padding: 1.2em 1.5em !important;
        margin: 1.2em auto !important;
        max-width: 95% !important;
        line-height: 1.5 !important;
        border-radius: 10px !important;
    }
    
    .about-header div[style*="max-width:600px"] {
        font-size: 1em !important;
        padding: 1.2em 1.5em !important;
        margin: 1.2em auto !important;
        line-height: 1.6 !important;
        max-width: 95% !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 480px) {
    .about-header blockquote {
        font-size: 0.9em !important;
        padding: 1em 1.2em !important;
        margin: 1em auto !important;
        max-width: 98% !important;
        line-height: 1.4 !important;
    }
    
    .about-header div[style*="max-width:600px"] {
        font-size: 0.95em !important;
        padding: 1em 1.2em !important;
        margin: 1em auto !important;
        max-width: 98% !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 360px) {
    .about-header blockquote {
        font-size: 0.85em !important;
        padding: 0.8em 1em !important;
        margin: 0.8em auto !important;
        max-width: 100% !important;
        line-height: 1.3 !important;
    }
    
    .about-header div[style*="max-width:600px"] {
        font-size: 0.9em !important;
        padding: 0.8em 1em !important;
        margin: 0.8em auto !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 320px) {
    .about-header blockquote {
        font-size: 0.8em !important;
        padding: 0.7em 0.9em !important;
        margin: 0.7em auto !important;
        line-height: 1.3 !important;
    }
    
    .about-header div[style*="max-width:600px"] {
        font-size: 0.85em !important;
        padding: 0.7em 0.9em !important;
        margin: 0.7em auto !important;
        line-height: 1.4 !important;
    }
}

/* 6. COMPÉTENCES AVEC COULEURS BLEUES */
.skill-category {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1) !important;
}

.skill-category h3 {
    color: #1e3a8a !important;
    font-size: 1.3rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.skill-category h3 i {
    color: #3b82f6 !important;
}

.skill-header span:first-child {
    font-weight: 500 !important;
    color: #1e3a8a !important;
}

.skill-percentage {
    font-weight: 600 !important;
    color: #3b82f6 !important;
    font-size: 0.9rem !important;
}

.skill-progress {
    background: linear-gradient(90deg, #3b82f6, #1e3a8a) !important;
}

/* 7. PHOTO AVEC BORDURE BLEUE */
.profile-img {
    border: 3px solid #3b82f6 !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2) !important;
}

/* 8. GARANTIR QUE LE SCROLL FONCTIONNE */
html, body {
    height: 100% !important;
    overflow-x: hidden !important;
}

.sidebar {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255,255,255,0.3) transparent !important;
}

.sidebar::-webkit-scrollbar {
    width: 6px !important;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent !important;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3) !important;
    border-radius: 3px !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5) !important;
}

/* Corrections spécifiques pour mobile */

/* Amélioration de la sidebar sur mobile */
@media (max-width: 768px) {
    .sidebar {
        left: -280px;
        width: 280px;
        height: 100vh;
        top: 0;
        bottom: 0;
        overflow-y: auto;
        will-change: transform;
        transform: translateZ(0);
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 60px;
    }
    
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, #2563eb, #06b6d4);
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        height: 60px;
    }
    
    .menu-toggle {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 5px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle:hover {
        background: rgba(255,255,255,0.1);
        transform: scale(1.1);
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.6rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .sidebar-header p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .sidebar-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 0.8rem auto;
    }
    
    .sidebar-logo img {
        width: 42px;
        height: 42px;
    }
    
    .sidebar-menu a {
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .sidebar-menu a i {
        font-size: 1.4rem;
        margin-right: 1.2rem;
    }
    
    .sidebar-menu a span {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .sidebar-footer {
        padding: 1.2rem 1.5rem;
    }
    
    .social-links a {
        font-size: 1.4rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .mobile-header {
        padding: 0.8rem 1rem;
    }
    
    .menu-toggle {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
    
    .sidebar-header {
        padding: 1.2rem 0.8rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.4rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .sidebar-header p {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .sidebar-logo {
        width: 65px;
        height: 65px;
        margin: 0 auto 0.6rem auto;
    }
    
    .sidebar-logo img {
        width: 38px;
        height: 38px;
    }
    
    .sidebar-menu a {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .sidebar-menu a i {
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .sidebar-menu a span {
        font-size: 1.1rem;
    }
    
    .sidebar-footer {
        padding: 1rem 1.2rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
        padding: 0.5rem;
    }
}

@media (max-width: 360px) {
    .sidebar {
        width: 240px;
        left: -240px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .mobile-header {
        padding: 0.6rem 0.8rem;
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
    }
    
    .sidebar-header {
        padding: 1rem 0.6rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.3rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .sidebar-header p {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .sidebar-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.5rem auto;
    }
    
    .sidebar-logo img {
        width: 35px;
        height: 35px;
    }
    
    .sidebar-menu a {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    
    .sidebar-menu a i {
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
    
    .sidebar-menu a span {
        font-size: 1rem;
    }
    
    .sidebar-footer {
        padding: 0.8rem 1rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        padding: 0.4rem;
    }
}

/* Amélioration du footer sur mobile */
@media (max-width: 900px) {
    .site-footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .footer-content {
        padding: 0 1.5rem !important;
    }
    
    .footer-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .footer-info .quote-section {
        margin: 1rem 0 0 0 !important;
        text-align: center !important;
        max-width: 100% !important;
        order: 1 !important;
    }
    
    .footer-info small {
        margin-bottom: 0.5rem !important;
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1rem 0 !important;
    }
    
    .footer-content {
        padding: 0 1rem !important;
    }
    
    .footer-info {
        gap: 0.8rem !important;
    }
    
    .footer-info .quote-section {
        margin: 0.8rem 0 0 0 !important;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 0.8rem 0 !important;
    }
    
    .footer-content {
        padding: 0 0.8rem !important;
    }
    
    .footer-info {
        gap: 0.6rem !important;
    }
    
    .footer-info .quote-section {
        margin: 0.6rem 0 0 0 !important;
    }
    
    .footer-info small {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 360px) {
    .site-footer {
        padding: 0.6rem 0 !important;
    }
    
    .footer-content {
        padding: 0 0.6rem !important;
    }
    
    .footer-info {
        gap: 0.5rem !important;
    }
    
    .footer-info .quote-section {
        margin: 0.5rem 0 0 0 !important;
    }
    
    .footer-info small {
        font-size: 0.75rem !important;
    }
}

/* Amélioration de l'accessibilité et de l'expérience utilisateur */
@media (hover: none) and (pointer: coarse) {
    .sidebar-menu a:hover {
        background: rgba(255,255,255,0.1) !important;
        transform: none !important;
    }
    
    .menu-toggle:hover {
        background: rgba(255,255,255,0.1) !important;
        transform: none !important;
    }
    
    .social-links a:hover {
        background: rgba(255,255,255,0.2) !important;
        transform: none !important;
    }
}

/* Amélioration de la performance */
.sidebar, .main-content, .mobile-header {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Amélioration de la lisibilité */
@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .welcome-text .section-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    .welcome-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .btn-primary, .btn-secondary {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
    }
} 