/* Variables */
:root {
    --primary-color: #2563eb; /* Bleu Tailwind */
    --secondary-color: #06b6d4; /* Cyan Tailwind */
    --accent-color: #f59e42; /* Orange Material */
    --text-color: #1e293b; /* Slate-800 */
    --light-text: #64748b; /* Slate-400 */
    --background-color: #f1f5f9; /* Slate-100 */
    --card-background: #fff;
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 10px;
    --box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body, html {
    font-family: 'Times New Roman', Times, serif !important;
    background-color: #f8f9fa !important;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

marquee {
    font-size: 1.3em !important;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    /* Assurer que la sidebar ne dépasse pas la hauteur de la fenêtre */
    max-height: 100vh;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.sidebar-logo:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.sidebar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.sidebar-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    filter: brightness(1.1) contrast(1.1);
}

.sidebar-logo:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.2);
}

.sidebar-header h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: white;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
}

.sidebar-menu {
    padding: 1rem 0;
    flex: 1;
    /* Permettre le scroll si nécessaire */
    overflow-y: auto;
    /* Masquer la scrollbar mais garder la fonctionnalité */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    border-left-color: #60a5fa;
    transform: translateX(5px);
}

.sidebar-menu a i {
    margin-right: 1rem;
    font-size: 1.3rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a span {
    font-size: 1.1rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    /* S'assurer que le footer reste en bas */
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Main Content Styles */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    background: #f8f9fa;
    transition: margin-left 0.3s ease;
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}

.stat-card h3 {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Project Cards */
.project-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.technology-tag {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--secondary-color);
}

/* Skills Section */
.skills-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-level {
    color: var(--light-text);
}

.skill-bar {
    height: 8px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    will-change: width;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Contact Form */
.contact-form {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.btn, .btn-primary, .btn-outline-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    will-change: transform, background-color;
    transform: translateZ(0);
}

.btn:hover, .btn-primary:hover, .btn-outline-primary:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        margin-left: var(--sidebar-width);
        padding: 1.5rem;
    }
    
    .about-header {
        padding: 0 1rem;
    }
    
    .about-header .subtitle {
        font-size: 1.1em !important;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .cv-section {
        padding: 1.5rem 1rem !important;
        margin: 1.5rem auto !important;
    }
    
    .business-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .business-text {
        flex: 1;
        min-width: auto;
    }
    
    .business-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        min-width: auto;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: var(--card-background);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 999;
    }
    
    .about-header {
        padding: 0;
        margin-bottom: 1.5em;
    }
    
    .about-header h1 {
        font-size: 1.8em !important;
    }
    
    .about-header .subtitle {
        font-size: 1em !important;
        padding: 0 0.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cv-section {
        padding: 1rem !important;
        margin: 1rem auto !important;
        max-width: 95% !important;
    }
    
    .cv-content ul {
        columns: 1 !important;
        column-gap: 1em;
    }
    
    .business-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .business-stats {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .business-stats .stat-item {
        flex: 0 1 auto;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -280px;
        width: 280px;
        height: 100vh;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        color: white;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .sidebar .sidebar-header,
    .sidebar .sidebar-menu,
    .sidebar .sidebar-footer {
        padding: 1rem;
    }
    
    .sidebar .sidebar-menu a i {
        font-size: 1.4rem;
    }
    
    .sidebar .sidebar-menu a.active {
        background: rgba(255,255,255,0.15);
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .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);
    }
    
    /* Amélioration de la responsivité des fonctionnalités */
    .sidebar-menu a {
        font-size: 1.2rem;
        padding: 1.2rem 1rem;
    }
    
    .sidebar-menu a i {
        font-size: 1.5rem;
        margin-right: 1.2rem;
    }
    
    .sidebar-menu a span {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .sidebar-header h2 {
        font-size: 1.6rem;
    }
    
    .sidebar-header p {
        font-size: 1rem;
    }
    
    .social-links a {
        font-size: 1.4rem;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-left: 0;
        padding: 0.5rem;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .mobile-header {
        padding: 0.8rem 1rem;
    }
    
    .menu-toggle {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
    
    /* Amélioration des fonctionnalités sur très petits écrans */
    .sidebar-menu a {
        font-size: 1.1rem;
        padding: 1rem 0.8rem;
    }
    
    .sidebar-menu a i {
        font-size: 1.3rem;
        margin-right: 1rem;
    }
    
    .sidebar-menu a span {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .sidebar-header h2 {
        font-size: 1.4rem;
    }
    
    .sidebar-header p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-footer {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 360px) {
    .mobile-header {
        padding: 0.6rem 0.8rem;
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
    }
    
    /* Optimisation pour les très petits écrans */
    .sidebar-menu a {
        font-size: 1rem;
        padding: 0.9rem 0.6rem;
    }
    
    .sidebar-menu a i {
        font-size: 1.2rem;
        margin-right: 0.8rem;
    }
    
    .sidebar-menu a span {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .sidebar-header h2 {
        font-size: 1.3rem;
    }
    
    .sidebar-header p {
        font-size: 0.85rem;
    }
    
    .social-links a {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .sidebar-header {
        padding: 1.2rem 0.8rem;
    }
    
    .sidebar-footer {
        padding: 0.6rem 0.8rem;
    }
}

/* Additional fixes for text overflow */
.about-header .subtitle,
.about-header blockquote,
.about-header div[style*="max-width:600px"],
.info-item p,
.business-text p,
.summary-section p,
.cv-item p,
.cv-item ul li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for long URLs and emails */
.info-item p,
.cv-item ul li {
    word-break: break-all;
}

/* Ensure proper spacing on all devices */
.about-section {
    max-width: 100%;
    overflow-x: hidden;
}

.cv-section {
    overflow-x: hidden;
}

/* Fix for business stats on very small screens */
@media (max-width: 360px) {
    .business-stats .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .business-stats .stat-icon {
        align-self: center;
    }
}

/* Animation for Mobile Menu */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.sidebar.active {
    animation: none;
}

.sidebar:not(.active) {
    animation: none;
}

/* Overlay for Mobile Menu */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

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

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: transform, opacity;
}

/* About Page Styles */
.about-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-text {
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.personal-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-item p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Skills Section */
.skills-section {
    margin: 3rem 0;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-header span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-header span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
    will-change: width;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Summary Section */
.summary-section {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-section p {
    color: var(--text-primary);
    line-height: 1.8;
}

/* Skills Categories */
.skill-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skill-header span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-header span:first-child i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Business Section */
.business-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.business-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.business-text {
    line-height: 1.8;
}

.business-text p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.business-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.business-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.business-features li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

/* Responsive Design for Business Section */
@media (min-width: 768px) {
    .business-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .business-stats {
        grid-template-columns: 1fr;
    }
}

/* Projects and Achievements Section */
.projects-achievements {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.projects-achievements h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-achievements h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projects-list ul, .competitions ul {
    list-style: none;
    padding-left: 1rem;
}

.projects-list li, .competitions li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.projects-list i, .competitions i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.projects-achievements h3 i {
    color: var(--accent-color);
}

.projects-achievements h4 i {
    color: var(--secondary-color);
}

/* Business Section Icons */
.business-text p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.business-features li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.business-stats .stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-section h2 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.summary-section p i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Animation for icons */
.business-stats .stat-item i,
.business-features li i,
.summary-section p i {
    transition: transform 0.3s ease;
}

.business-stats .stat-item:hover i,
.business-features li:hover i,
.summary-section p:hover i {
    transform: scale(1.1);
}

/* CV Section Styles */
.cv-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 3rem 0;
}

.cv-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-content {
    max-width: 500px;
    margin: 0 auto;
}

.cv-login-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cv-login-form .form-group {
    margin-bottom: 1.5rem;
}

.cv-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cv-login-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cv-login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.cv-admin-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cv-admin-controls .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.cv-admin-controls .btn i {
    font-size: 1.1rem;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert i {
    font-size: 1.2rem;
}

.cv-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cv-profile-image {
    flex-shrink: 0;
}

.cv-profile-image .profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cv-title {
    flex-grow: 1;
}

.cv-title h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cv-title p {
    font-size: 1.1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .cv-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cv-title h1 {
        font-size: 1.5rem;
    }
}

.quote-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote-section blockquote {
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.quote-section blockquote p {
    color: white;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 400;
}

.quote-section blockquote cite {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 500;
}

.quote-section blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: -1rem;
    top: -1rem;
}

.quote-section blockquote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    right: -1rem;
    bottom: -2rem;
}

/* Amélioration de la responsivité des citations */
@media (max-width: 768px) {
    .quote-section {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }
    
    .quote-section blockquote p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .quote-section blockquote cite {
        font-size: 1rem;
        text-align: center;
    }
    
    .quote-section blockquote::before,
    .quote-section blockquote::after {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .quote-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .quote-section blockquote p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    .quote-section blockquote cite {
        font-size: 0.9rem;
    }
    
    .quote-section blockquote::before,
    .quote-section blockquote::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 360px) {
    .quote-section {
        padding: 0.8rem;
    }
    
    .quote-section blockquote p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .quote-section blockquote cite {
        font-size: 0.85rem;
    }
    
    .quote-section blockquote::before,
    .quote-section blockquote::after {
        font-size: 2rem;
    }
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

.footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-info small {
    flex: 1 1 200px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-info .quote-section {
    flex: 2 1 400px;
    max-width: 600px;
    margin: 0 0 0 40px;
    text-align: left;
}

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

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/* Quote Section in Footer */
.footer-content .quote-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    max-width: 800px;
}

.footer-content .quote-section blockquote {
    text-align: center;
    margin: 0;
    padding: 0;
    position: relative;
}

.footer-content .quote-section blockquote p {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-content .quote-section blockquote cite {
    font-size: 1rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    text-align: center;
    font-weight: 500;
}

.footer-content .quote-section blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-family: Georgia, serif;
}

.footer-content .quote-section blockquote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    right: -1rem;
    bottom: -2.5rem;
    font-family: Georgia, serif;
}

/* Responsivité améliorée pour les citations du footer */
@media (max-width: 768px) {
    .footer-content .quote-section {
        padding: 1rem 1.5rem;
        margin: 0 auto 1rem;
    }
    
    .footer-content .quote-section blockquote p {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    .footer-content .quote-section blockquote cite {
        font-size: 0.9rem;
    }
    
    .footer-content .quote-section blockquote::before,
    .footer-content .quote-section blockquote::after {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .footer-content .quote-section {
        padding: 0.8rem 1rem;
        margin: 0 auto 0.8rem;
    }
    
    .footer-content .quote-section blockquote p {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .footer-content .quote-section blockquote cite {
        font-size: 0.85rem;
    }
    
    .footer-content .quote-section blockquote::before,
    .footer-content .quote-section blockquote::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 360px) {
    .footer-content .quote-section {
        padding: 0.6rem 0.8rem;
    }
    
    .footer-content .quote-section blockquote p {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .footer-content .quote-section blockquote cite {
        font-size: 0.8rem;
    }
    
    .footer-content .quote-section blockquote::before,
    .footer-content .quote-section blockquote::after {
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .footer-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-info .quote-section {
        margin: 1rem 0 0 0;
        text-align: center;
        max-width: 100%;
        order: 1;
    }
    
    .footer-info small {
        margin-bottom: 0.5rem;
        order: 2;
    }
    
    .site-footer {
        margin-left: 0;
        width: 100%;
    }
    
    .footer-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-left: 0;
        width: 100%;
        padding: 1rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-info {
        gap: 0.8rem;
    }
    
    .footer-info .quote-section {
        margin: 0.8rem 0 0 0;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 0.8rem 0;
    }
    
    .footer-content {
        padding: 0 0.8rem;
    }
    
    .footer-info {
        gap: 0.6rem;
    }
    
    .footer-info .quote-section {
        margin: 0.6rem 0 0 0;
    }
    
    .footer-info small {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .site-footer {
        padding: 0.6rem 0;
    }
    
    .footer-content {
        padding: 0 0.6rem;
    }
    
    .footer-info {
        gap: 0.5rem;
    }
    
    .footer-info .quote-section {
        margin: 0.5rem 0 0 0;
    }
    
    .footer-info small {
        font-size: 0.75rem;
    }
}

/* Projects Section */
.projects-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

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

.project-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}

.project-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon i {
    font-size: 1.8rem;
    color: white;
}

.project-info {
    flex-grow: 1;
}

.project-info h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    .projects-section {
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-item {
        padding: 1.5rem;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
    }
    
    .project-icon i {
        font-size: 1.5rem;
    }
    
    .project-info h3 {
        font-size: 1.1rem;
    }
    
    .project-info p {
        font-size: 0.9rem;
    }
}

/* Coming Soon Message */
.coming-soon-message {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.coming-soon-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.coming-soon-message h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.coming-soon-message p {
    color: var(--light-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Recent Projects Section */
.recent-projects {
    margin: 3rem 0;
}

.recent-projects h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .coming-soon-message {
        padding: 2rem 1.5rem;
    }
    
    .coming-soon-message i {
        font-size: 2.5rem;
    }
    
    .coming-soon-message h3 {
        font-size: 1.3rem;
    }
    
    .coming-soon-message p {
        font-size: 1rem;
    }
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 227, 194, 0.1));
    border-radius: var(--border-radius);
}

.welcome-text {
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.welcome-text h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-text .section-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.welcome-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-image img {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* Profile Image in Sidebar */
.sidebar .profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.sidebar .profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.sidebar .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Statistics Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.stat-info {
    flex-grow: 1;
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-info .number {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Coming Soon Message */
.coming-soon-message {
    position: relative;
    overflow: hidden;
}

.rocket-container {
    position: relative;
    margin-bottom: 2rem;
}

.rocket-trail {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(to top, var(--primary-color), transparent);
    animation: trail 2s ease-in-out infinite;
}

.progress-indicator {
    margin-top: 2rem;
    height: 4px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    animation: progress 2s ease-in-out infinite;
}

@keyframes trail {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 100px;
        opacity: 1;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Skills Section */
.skill-category {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.skill-header span:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-header span:first-child i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .welcome-section {
        text-align: center;
        padding: 2rem 1rem;
    }

    .welcome-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .welcome-text h1 {
        font-size: 2rem;
    }

    .welcome-text .section-description {
        font-size: 1.1rem;
    }

    .welcome-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header .section-description {
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-content h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .contact-header h1 {
        font-size: 2rem;
    }

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

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* Profile Header Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 227, 194, 0.1));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.profile-image-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title {
    flex-grow: 1;
}

.profile-title h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-title .title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design for Profile Header */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .profile-image-large {
        width: 120px;
        height: 120px;
    }

    .profile-title h1 {
        font-size: 2rem;
    }

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

/* CV Download Section */
.cv-download-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
}

.view-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-cv:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.view-cv i {
    font-size: 1.2rem;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

section h2, section h1 {
    color: #0d6efd;
}

.btn-primary, .btn-light {
    border-radius: 30px;
    padding-left: 30px;
    padding-right: 30px;
    font-weight: 500;
}

.btn-primary:hover, .btn-light:hover {
    opacity: 0.9;
}

footer {
    font-size: 1rem;
}

.card {
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
}

#skills-list .card {
    min-height: 120px;
}

/* Logo styling - larger and more visible */
.sidebar-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    border-radius: 30px;
}

.sidebar-logo:hover::before {
    transform: translateX(100%);
}

.sidebar-logo:hover {
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(59, 130, 246, 0.6);
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6)) brightness(1.15);
    transition: all 0.4s ease;
    border-radius: 26px;
}

.sidebar-logo:hover img {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.7)) brightness(1.25);
}

/* Responsive logo sizing - improved for better fit */
@media (max-width: 1200px) {
    .sidebar-logo {
        width: 110px;
        height: 110px;
        margin-bottom: 1.8rem;
    }
}

@media (max-width: 768px) {
    .sidebar-logo {
        width: 95px;
        height: 95px;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-logo img {
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .sidebar-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1.2rem;
    }
    
    .sidebar-logo img {
        border-radius: 20px;
    }
}

@media (max-width: 360px) {
    .sidebar-logo {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .sidebar-logo img {
        border-radius: 18px;
    }
}

/* Optimisation des media queries pour la performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

/* Optimisation du focus pour l'accessibilité */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    transition: outline 0.1s ease;
}

/* Optimisation des sélections de texte */
::selection {
    background-color: rgba(102, 126, 234, 0.2);
    color: #333;
}

::-moz-selection {
    background-color: rgba(102, 126, 234, 0.2);
    color: #333;
}

/* Optimisations supplémentaires pour la réactivité */
.sidebar a, .project-card, .contact-icon-item, .btn, .menu-toggle {
    /* Retour au style professionnel */
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar a:hover, .project-card:hover, .contact-icon-item:hover, .btn:hover {
    /* Effets hover simples et professionnels */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar a:active, .project-card:active, .contact-icon-item:active, .btn:active, .menu-toggle:active {
    /* Effet actif simple */
    transform: translateY(0);
}

/* Optimisation des focus states */
.sidebar a:focus, .project-card:focus, .contact-icon-item:focus, .btn:focus, .menu-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    /* Amélioration de la visibilité */
    transition: outline 0.1s ease;
}

/* Optimisation des animations de chargement */
.loaded .fade-in {
    animation: fadeIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Optimisation des performances de rendu */
.main-content, .sidebar {
    /* Amélioration de la performance du rendu */
    contain: layout style paint;
    /* Optimisation du GPU */
    transform: translateZ(0);
    backface-visibility: hidden;
    background: white;
}

/* Optimisation des images et icônes */
img, .fas, .fab, .far {
    /* Retour au style simple */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimisation des barres de progression */
.skill-progress {
    transition: width 0.8s ease-in-out;
}

/* Optimisation des effets de hover */
.sidebar a:hover, .project-card:hover, .contact-icon-item:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* Amélioration de la réactivité */
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Optimisation du menu mobile */
.menu-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.menu-toggle:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Optimisation pour les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .sidebar a, .project-card, .contact-icon-item, .btn {
        /* Suppression des effets hover sur les appareils tactiles */
        transition: none;
    }
    
    .sidebar a:hover, .project-card:hover, .contact-icon-item:hover, .btn:hover {
        /* Pas d'effets hover sur les appareils tactiles */
        transform: none;
        box-shadow: none;
    }
    
    .sidebar a:active, .project-card:active, .contact-icon-item:active, .btn:active {
        /* Effets actifs pour les appareils tactiles */
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Optimisation des animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        animation: fadeIn 0.6s ease-out;
    }
    
    .skill-progress {
        animation: progressFill 1.5s ease-out;
    }
}

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

/* Optimisation du HTML et body */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Times New Roman', Times, serif !important;
    background-color: #f8f9fa !important;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Optimisation des sélections */
::selection {
    background-color: rgba(102, 126, 234, 0.2);
    color: #333;
}

::-moz-selection {
    background-color: rgba(102, 126, 234, 0.2);
    color: #333;
}

.btn-primary, .btn-secondary, .btn-success {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: white;
    text-decoration: none;
}

.contact-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
  