/* ===== STYLES PRINCIPAUX ===== */

/* Styles pour le compteur de caractères */
.char-count {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
    text-align: right;
}

/* Pour les écrans plus larges */
@media (min-width: 576px) {
    .char-count {
        font-size: 0.8rem;
        display: inline-block;
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

/* Pour les grands écrans */
@media (min-width: 768px) {
    .char-count {
        font-size: 0.85rem;
    }
}

/* Pour les très grands écrans */
@media (min-width: 992px) {
    .char-count {
        font-size: 0.9rem;
    }
}


/* Style général */
:root {
    /* Nouvelle palette de couleurs */
    --primary-color: #6366F1; /* Indigo plus moderne */
    --primary-light: #A5B4FC;
    --primary-dark: #4338CA;
    --secondary-color: #06B6D4; /* Cyan moderne */
    --accent-color: #EC4899; /* Rose vif */
    --dark-color: #1E293B;
    --light-color: #F8FAFC;
    --gray-color: #94A3B8;
    --lightning-color: #FBBF24; /* Jaune vif pour l'éclair */
    
    /* Dégradés améliorés */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #4338CA 100%);
    --gradient-secondary: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --gradient-accent: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    --gradient-light: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Couleurs du mode clair (par défaut) */
    --bg-color: var(--light-color);
    --text-color: #333;
    --card-bg: #fff;
    --card-shadow: var(--shadow-md);
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --navbar-text: #333;
    --input-bg: #fff;
    --input-border: #ced4da;
    --border-color: #dee2e6;
    --section-bg-odd: #f8f9fa;
    --section-bg-even: #ffffff;
}

/* Mode sombre */
.dark-mode {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --card-bg: #1E1E1E;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --navbar-bg: #0a0a0a;
    --navbar-text: #f5f5f5;
    --input-bg: #2D2D2D;
    --input-border: #444;
    --border-color: #333;
    --section-bg-odd: #1A1A1A;
    --section-bg-even: #121212;
    --btn-text: #ffffff;
    --heading-color: #f5f5f5;
    --footer-bg: #0a0a0a;
}

.dark-mode .display-1, 
.dark-mode .display-2, 
.dark-mode .display-3, 
.dark-mode .display-4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
    color: var(--heading-color);
}

/* Navbar toujours sombre */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
    background: #1E293B !important;
}

.dark-mode .navbar {
    background: #1A2234 !important; /* Fond bleu foncé navy pour le mode sombre */
}

/* Styles de la navbar - liens visibles */
.navbar-brand, .nav-link {
    color: white !important;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link.active {
    color: var(--primary-light) !important;
    font-weight: 700;
}

/* Styles communs pour les deux modes */
.navbar-toggler-icon:before,
.navbar-toggler-icon:after,
.navbar-toggler-icon span {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: white; /* Toujours blanc pour être visible sur fond sombre */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Adaptation des boutons en mode sombre */
.dark-mode .btn-outline-light {
    border-color: var(--primary-light);
    color: white;
}

.dark-mode .btn-outline-light:hover {
    background-color: var(--primary-light);
    color: var(--dark-color);
}

/* Style spécifique pour les cartes en mode sombre */
.dark-mode .card {
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .project-info {
    background-color: var(--card-bg);
}

/* Footer en mode sombre */
.dark-mode footer {
    background: var(--footer-bg);
    color: #e0e0e0;
}

.dark-mode .footer-links a,
.dark-mode .footer-info li {
    color: #bbbbbb;
}

.dark-mode .footer-links a:hover {
    color: var(--primary-light) !important;
}

.dark-mode .social-icons a {
    background-color: transparent;
}

.dark-mode .social-icons a:hover {
    background-color: inherit !important;
}

/* Brand colors for footer social icons */
.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.social-icons a.facebook { background-color: #1877F2 !important; }
.social-icons a.twitter { background-color: #1DA1F2 !important; }
.social-icons a.instagram { background-color: #E4405F !important; }
.social-icons a.linkedin { background-color: #0A66C2 !important; }
.social-icons a.discord { background-color: #5865F2 !important; }

.social-icons a:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Ensure brand colors also in dark mode */
.dark-mode .social-icons a.facebook { background-color: #1877F2 !important; }
.dark-mode .social-icons a.twitter { background-color: #1DA1F2 !important; }
.dark-mode .social-icons a.instagram { background-color: #E4405F !important; }
.dark-mode .social-icons a.linkedin { background-color: #0A66C2 !important; }
.dark-mode .social-icons a.discord { background-color: #5865F2 !important; }

/* Adaptation des formulaires en mode sombre */
.dark-mode .form-control,
.dark-mode .form-select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-color: var(--input-border);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.dark-mode .form-text {
    color: #aaa;
}

/* Adaptation du captcha en mode sombre */
.dark-mode .captcha-container {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
}

.dark-mode .captcha-iframe {
    background-color: var(--input-bg);
    filter: invert(0.85) hue-rotate(180deg);
}

.dark-mode .btn-refresh-captcha {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

/* Adaptation des listes */
.dark-mode .list-group-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Transition douce pour le changement de thème */
body, button, a, section, header, footer, .navbar, .card, .form-control, .form-select, input, textarea {
    transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
    padding-top: 76px; /* Ajout de padding pour compenser la navbar fixe */
    background-color: var(--bg-color);
    line-height: 1.7;
}

/* Bouton de basculement mode sombre amélioré */
#darkModeToggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#darkModeToggle i {
    font-size: 18px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.dark-mode #darkModeToggle {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode #darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.dark-mode #darkModeToggle i.fa-moon {
    display: none;
}

.dark-mode #darkModeToggle i.fa-sun {
    display: inline-block;
}

#darkModeToggle i.fa-sun {
    display: none;
}

/* Animation pour le changement de thème */
.theme-transition {
    animation: themeTransition 0.5s ease;
}

@keyframes themeTransition {
    0% { opacity: 0.8; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

section {
    animation: fadeIn 1s ease-out;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

section .container {
    position: relative;
    z-index: 2;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Sections */
section:nth-child(odd) {
    background-color: var(--section-bg-odd);
}

section:nth-child(even) {
    background-color: var(--section-bg-even);
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
}

/* Navbar styles */
.navbar-scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    background: linear-gradient(120deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: none;
    transition: all 0.3s ease;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B6B, #4ECDC4, #45B7D1, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

.navbar-brand:hover {
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

.dark-mode .navbar-brand {
    background: linear-gradient(120deg, #FF8787, #63E6E6, #5CCFE0);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark-mode .navbar-brand::after {
    background: linear-gradient(90deg, transparent, #FF8787, #63E6E6, #5CCFE0, transparent);
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
}

.navbar-brand img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

.dark-mode .navbar-brand {
    background: linear-gradient(45deg, #64B5F6, #4DD0E1);
    -webkit-background-clip: text;
    background-clip: text;
}

.navbar-brand .brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.navbar-brand:hover .brand-logo {
    transform: rotate(10deg);
}

/* Logo styles */
.logo-image {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

header .logo-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
    animation: floatLogo 6s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes floatLogo {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% {
        transform: translateY(-10px) rotate(3deg);
    }
    50% { 
        transform: translateY(-15px) rotate(0deg); 
    }
    75% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

header .logo-image:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4)) brightness(1.1);
}

footer .mb-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer .logo-image {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

footer .logo-image:hover {
    transform: rotate(10deg) scale(1.1);
}

@media (max-width: 768px) {
    footer .mb-4 {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 30px !important;
    }
    
    footer h5::after {
        left: 0;
        transform: none;
    }
    
    footer .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    footer .col-md-6,
    footer .col-lg-3 {
        width: 100%;
        margin-bottom: 0;
    }
    
    .footer-links, 
    .footer-info {
        text-align: left;
    }
    
    .footer-info li {
        justify-content: flex-start;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    footer .container > .row:last-child .col-md-6 {
        grid-column: span 2;
        text-align: center;
        margin-top: 20px;
    }
}

/* Pour assurer une meilleure transition entre mobile et tablette */
@media (max-width: 575.98px) {
    footer .row {
        display: block;
    }
    
    footer .mb-4 {
        align-items: center;
        text-align: center;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links, 
    .footer-info {
        text-align: center;
    }
    
    .footer-info li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

.nav-link {
    position: relative;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-light) !important;
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: none !important;
    position: relative;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after,
.navbar-toggler-icon span {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: white; /* Toujours blanc pour être visible sur fond sombre */
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar-toggler-icon:before {
    top: 6px;
}

.navbar-toggler-icon:after {
    bottom: 6px;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    transform: rotate(45deg);
    top: 10px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    transform: rotate(-45deg);
    bottom: 10px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

/* Header */
header {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(79, 70, 229, 0.1)" fill-opacity="1" d="M0,160L48,170.7C96,181,192,203,288,202.7C384,203,480,181,576,154.7C672,128,768,96,864,101.3C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.8;
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    color: white;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 span {
    display: block;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    max-width: 600px;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* About Section */
#about {
    position: relative;
}

#about::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background-color: rgba(79, 70, 229, 0.05);
    border-radius: 50%;
    transform: translate(150px, -150px);
    z-index: 0;
}

#about::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(16, 185, 129, 0.05);
    border-radius: 50%;
    transform: translate(-100px, 100px);
    z-index: 0;
}

#about .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
}

#about .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

#about .card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#about .list-group-item {
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 12px 0;
    position: relative;
    padding-left: 30px;
}

#about .list-group-item:last-child {
    border-bottom: none;
}

#about .list-group-item::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Services Section */
#services {
    background-color: white;
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(249, 115, 22, 0.05)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,149.3C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.8;
    z-index: 0;
}

#services .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white;
    z-index: 1;
    box-shadow: var(--shadow-md);
    height: 100%;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

#services .card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, color 0.4s ease;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

/* Couleurs vives pour les icônes de services */
#services .card i.fa-desktop {
    color: #6366F1 !important; /* Indigo */
}

#services .card i.fa-mobile-alt {
    color: #EC4899 !important; /* Rose */
}

#services .card i.fa-search {
    color: #F59E0B !important; /* Ambre */
}

#services .card:hover i {
    transform: scale(1.15);
}

#services .card-title {
    font-weight: 700;
    margin-top: 10px;
    color: var(--dark-color);
}

/* Contact Form */
#contact {
    background-color: white;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(16, 185, 129, 0.05)" fill-opacity="1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.8;
    z-index: 0;
}

#contact .card {
    border: none;
    transition: transform 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

#contact .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--input-border);
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    background-color: transparent;
}

.form-select {
    border-radius: 10px;
    border: 1px solid var(--input-border);
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--input-bg);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    background-color: transparent;
}

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

.dark-mode .form-label {
    color: #e0e0e0;
}

.form-label i {
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.modern-input {
    height: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.dark-mode .modern-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.modern-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.dark-mode .modern-input:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Projets Section */
#projets {
    background-color: var(--section-bg-odd);
    position: relative;
}

#projets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(79, 70, 229, 0.05)" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,208C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.8;
    z-index: 0;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-img {
    position: relative;
    height: 275px;
    overflow: hidden;
    border-radius: 15px;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.project-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 30px;
    color: var(--light-color);
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    width: 100%;
    height: calc(100% - 60px); /* Laisse de l'espace pour le bouton */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-card:hover .project-content {
    opacity: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 1;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

.project-info {
    padding: 15px;
    background-color: white;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    padding: 5px 10px;
    font-weight: 500;
    font-size: 0.7rem;
    border-radius: 30px;
}

/* Mise à jour des couleurs pour les badges */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.badge.bg-success {
    background-color: var(--secondary-color) !important;
}

.badge.bg-info {
    background-color: #0EA5E9 !important;
}

.badge.bg-warning {
    background-color: #FBBF24 !important;
}

.badge.bg-danger {
    background-color: #EF4444 !important;
}

.badge.bg-dark {
    background-color: var(--dark-color) !important;
}

/* Footer */
footer {
    position: relative;
    background: var(--dark-color);
    padding: 70px 0 30px;
    color: var(--light-color);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(79, 70, 229, 0.05)" fill-opacity="1" d="M0,96L48,128C96,160,192,224,288,213.3C384,203,480,117,576,101.3C672,85,768,139,864,160C960,181,1056,171,1152,154.7C1248,139,1344,117,1392,106.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: top;
    opacity: 0.8;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1rem;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.footer-links li, .footer-info li {
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: var(--light-color);
    position: relative;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
}

.footer-info li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info li i {
    color: var(--primary-light);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
}

footer h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
}

hr.footer-divider {
    opacity: 0.1;
    margin: 40px 0;
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Captcha */
#captchaImage {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.captcha-container {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: var(--card-bg);
}

.captcha-iframe {
    width: 100%;
    max-width: 250px;
    height: 60px;
    transition: all 0.3s ease;
}

.btn-refresh-captcha {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh-captcha i {
    font-size: 1rem;
    transition: transform 0.6s ease;
}

.btn-refresh-captcha:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-refresh-captcha:hover i {
    transform: rotate(180deg);
}

.btn-refresh-captcha:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design - Dimensions spécifiques */

/* 320px - Petits smartphones */
@media (max-width: 320px) {
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand .brand-logo {
        width: 28px;
        height: 28px;
    }
    
    header {
        padding: 50px 0 30px;
        min-height: auto;
    }
    
    header h1 {
        font-size: 1.6rem;
    }
    
    header .lead {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .project-img {
        height: 220px;
    }
    
    .btn-project-view {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.8rem;
    }
    
    .captcha-iframe {
        height: 50px;
    }
    
    #contact .card-body {
        padding: 15px !important;
    }
    
    section {
        padding: 40px 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .form-control, .form-select {
        padding: 8px 12px;
    }
    
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: 0 0;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 425px - Téléphones moyens */
@media (min-width: 321px) and (max-width: 425px) {
    body {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    header {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    header .lead {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .project-img {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .project-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .btn-project-view {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    #contact .card-body {
        padding: 25px !important;
    }
    
    .social-icons {
        margin-top: 20px;
    }
    
    .social-icons a {
        font-size: 1.2rem;
        margin: 0 8px;
    }
    
    footer {
        padding: 30px 0;
        font-size: 0.85rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .g-recaptcha iframe {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

/* 768px - Tablettes */
@media (min-width: 426px) and (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    header {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    header .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .project-img {
        height: 220px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .btn-project-view {
        padding: 10px 25px;
    }
    
    #contact .card-body {
        padding: 30px !important;
    }
    
    .col-md-4 {
        margin-bottom: 20px;
    }
    
    footer .col-md-6 {
        margin-bottom: 20px;
    }
    
    /* Ajustement de la navbar sur tablette */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        padding: 15px;
    }
    
    .nav-link {
        padding: 8px 0;
    }
}

/* 1024px - Ordinateurs portables */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    header {
        min-height: auto;
        padding: 100px 0 80px;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .project-img {
        height: 240px;
    }
    
    .project-content {
        padding: 25px;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
    }
    
    #contact .card-body {
        padding: 40px !important;
    }
    
    /* Styles spécifiques pour le footer */
    footer {
        padding: 60px 0 30px;
    }
    
    footer .row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    footer .col-lg-3,
    footer .col-md-6 {
        width: 100%;
        margin-bottom: 0;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    footer p {
        font-size: 0.9rem;
    }
    
    .footer-links li a,
    .footer-info li {
        font-size: 0.9rem;
    }
    
    .footer-info li i {
        font-size: 0.9rem;
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    footer .container > .row:last-child {
        margin-top: 20px;
    }
    
    footer .container > .row:last-child .col-md-6 {
        width: 50%;
        text-align: center;
    }
}

/* 1440px - Grands écrans */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    header {
        min-height: auto;
        padding: 120px 0 100px;
    }
    
    header h1 {
        font-size: 3.2rem;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    .project-img {
        height: 280px;
    }
    
    .project-content {
        padding: 30px;
    }
}

/* Écrans très larges */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    header {
        min-height: auto;
        padding: 140px 0 120px;
    }
    
    header h1 {
        font-size: 3.5rem;
    }
    
    .project-img {
        height: 300px;
    }
    
    .section-spacer {
        padding: 100px 0;
    }
}

/* Responsive Design complet basé sur les standards Google Chrome */

/* Extra small devices - Petits téléphones (moins de 576px) */
@media (max-width: 575.98px) {
    body {
        padding-top: 65px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    
    header {
        text-align: center;
        padding: 60px 0 40px;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    header .lead {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .project-card {
        height: 200px;
        margin-bottom: 15px;
    }
    
    .project-img {
        height: 150px;
    }
    
    .project-overlay h3 {
        font-size: 1.2rem;
    }
    
    .project-overlay p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-info-item {
        padding: 15px;
    }
    
    .contact-info-item i {
        font-size: 1.5rem;
    }
    
    /* Améliorations spécifiques pour le formulaire de contact sur mobile */
    #contact .card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    #contact .card-body {
        padding: 20px 15px !important;
    }
    
    #contactForm label {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    #contactForm .form-control {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    #contactForm .form-text {
        font-size: 0.8rem;
    }
    
    #contactForm .btn-lg {
        width: 100%;
        padding: 12px;
    }
    
    /* Ajustement du captcha pour mobile */
    .captcha-container {
        padding: 10px;
    }
    
    .captcha-iframe {
        max-width: 100%;
        width: 100%;
        height: 50px;
    }
    
    .btn-refresh-captcha {
        padding: 6px 12px;
        font-size: 0.85rem;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    footer {
        text-align: center;
        padding: 40px 0 20px;
    }
    
    footer h5 {
        margin-top: 20px;
    }
    
    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links, .footer-info {
        text-align: center;
    }
    
    .footer-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small devices - Grands téléphones (576px et plus) */
@media (min-width: 576px) and (max-width: 767.98px) {
    header {
        text-align: center;
        padding: 70px 0 50px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header .lead {
        font-size: 1.1rem;
    }
    
    section {
        padding: 55px 0;
    }
    
    .project-card {
        height: 220px;
    }
    
    .project-img {
        height: 170px;
    }
    
    .captcha-iframe {
        max-width: 200px;
        height: 55px;
    }
}

/* Tablettes en mode portrait - Footer amélioré */
@media (min-width: 576px) and (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
    }
    
    footer .logo-image {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    footer h5 {
        font-size: 1.15rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    footer p, 
    footer .footer-links a,
    footer .footer-info li {
        font-size: 0.95rem;
    }
    
    .footer-info li i {
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .social-icons {
        margin-top: 15px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    hr.footer-divider {
        margin: 30px 0;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Medium devices - Tablettes (768px et plus) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link {
        padding: 10px 0;
    }
    
    header {
        padding: 90px 0 70px;
    }
    
    header h1 {
        font-size: 2.3rem;
    }
    
    header .lead {
        font-size: 1.15rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .project-card {
        height: 240px;
    }
    
    .project-img {
        height: 190px;
    }
    
    .contact-info-item {
        padding: 20px 15px;
    }
}

/* Large devices - Petits ordinateurs portables (992px et plus) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    header h1 {
        font-size: 2.8rem;
    }
    
    header .lead {
        font-size: 1.2rem;
    }
    
    .project-card {
        height: 260px;
    }
    
    .project-img {
        height: 210px;
    }
}

/* Extra large devices - Grands ordinateurs et moniteurs (1200px et plus) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    header h1 {
        font-size: 3rem;
    }
}

/* XXL devices - Très grands écrans (1400px et plus) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    header h1 {
        font-size: 3.5rem;
    }
    
    header .lead {
        font-size: 1.3rem;
    }
    
    .project-card {
        height: 300px;
    }
    
    .project-img {
        height: 250px;
    }
}

/* Orientation spécifique - Paysage sur mobile */
@media (max-height: 576px) and (orientation: landscape) {
    header {
        padding: 40px 0 30px;
    }
    
    .navbar {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Touch interactions pour mobile et tablette */
.project-card.touch-active .project-overlay {
    opacity: 1;
    visibility: visible;
}

.project-card.touch-active .project-img {
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

/* Classe spéciale pour le formulaire sur mobile */
#contactForm.mobile-form .form-control:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    border-color: var(--primary-color);
}

#contactForm.mobile-form .btn-lg {
    margin-top: 10px;
}

#contactForm.mobile-form .form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Pour empêcher le zoom sur les champs de formulaire sur iOS */
@media screen and (max-width: 767.98px) {
    input[type="text"], 
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

.card {
    border: none;
    border-radius: 15px;
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.project-content {
    position: absolute;
    top: 0;
    left: 0;
    padding: 30px;
    color: var(--light-color);
    z-index: 2;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

footer {
    position: relative;
    background: var(--dark-color);
    padding: 70px 0 30px;
    color: var(--light-color);
    overflow: hidden;
}

.footer-links a {
    color: var(--light-color);
    position: relative;
    transition: all 0.3s ease;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Les styles spécifiques pour la captcha */
.captcha-container {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: var(--card-bg);
}

.dark-mode .list-group-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.dark-mode footer {
    background: #0a0a0a;
}

.dark-mode #about .card,
.dark-mode #services .card,
.dark-mode #contact .card {
    background-color: var(--card-bg);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: transparent;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.dark-mode .form-control::placeholder {
    color: #aaa;
}

/* Ajustements pour le header en mode sombre */
.dark-mode header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.dark-mode header::before {
    opacity: 0.4;
}

.dark-mode header .lead {
    color: #ddd;
}

/* Ajustements pour les sections en mode sombre */
.dark-mode #about::after,
.dark-mode #about::before {
    opacity: 0.2;
}

.dark-mode #services::before,
.dark-mode #projets::before,
.dark-mode #contact::before {
    opacity: 0.3;
}

/* Adaptation des boutons en mode sombre */
.dark-mode .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.dark-mode .btn-primary:hover {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
}

/* Ajustement des cartes de services */
.dark-mode #services .card i {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: brightness(1.2);
}

.dark-mode .card-text {
    color: #cccccc;
}

/* Améliorer la visibilité des badges en mode sombre */
.dark-mode .badge {
    filter: brightness(1.1);
}

/* Améliorer les contrastes dans le footer */
.dark-mode footer p,
.dark-mode .footer-info li {
    color: #bbb;
}

/* Sections en mode sombre */
.dark-mode section {
    background-color: var(--bg-color);
}

.dark-mode section:nth-child(odd) {
    background-color: var(--section-bg-odd);
}

.dark-mode section:nth-child(even) {
    background-color: var(--section-bg-even);
}

/* Header en mode sombre */
.dark-mode header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

/* Services et cartes en mode sombre */
.dark-mode #services {
    background-color: var(--section-bg-even);
}

.dark-mode #contact {
    background-color: var(--section-bg-odd);
}

/* Amélioration de la visibilité des liens et textes */
.dark-mode p, 
.dark-mode li, 
.dark-mode span:not(.badge) {
    color: #e0e0e0;
}

.dark-mode .card {
    background-color: var(--card-bg);
}

.dark-mode #about .card,
.dark-mode #services .card,
.dark-mode #contact .card {
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Amélioration du contraste des titres */
.dark-mode .card-title {
    color: var(--primary-light);
}

/* Adaptation des boutons */
.dark-mode .btn-outline-light {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.dark-mode .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.dark-mode .list-group-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Projets en mode sombre */
.dark-mode .project-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.dark-mode .project-info {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.dark-mode .project-bg {
    filter: brightness(0.85);
}

.dark-mode .project-content h3 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dark-mode .project-content p {
    color: #dddddd;
}

/* Adaptation des formulaires en mode sombre */
.dark-mode .form-control,
.dark-mode .form-select {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background-color: transparent;
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.dark-mode .form-control::placeholder {
    color: #999;
}

.dark-mode .form-text,
.dark-mode small.text-muted {
    color: #aaaaaa !important;
}

/* Bouton centré pour les projets */
.project-center-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
}

.project-card:hover .project-center-button {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    visibility: visible;
}

.btn-project-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 140px;
}

@media (max-width: 767px) {
    .btn-project-view {
        /* Position fixe et centrage parfait */
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* Taille et style */
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        
        /* Visibilité et apparence */
        opacity: 1 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        
        /* Suppression complète des animations */
        transition: none !important;
        animation: none !important;
    }
    
    /* Gestion du texte sur mobile */
    .btn-text-long {
        display: none !important;
    }
    
    .btn-text-short {
        display: inline-block !important;
    }
    
    /* Désactiver TOUS les états de survol */
    .btn-project-view:hover,
    .btn-project-view:active,
    .btn-project-view:focus,
    .project-card:hover .btn-project-view {
        transform: translateX(-50%) !important;
        bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
        color: white !important;
    }
    
    /* Désactiver TOUTE animation d'icône */
    .btn-project-view i,
    .btn-project-view:hover i,
    .btn-project-view:active i,
    .btn-project-view:focus i,
    .project-card:hover .btn-project-view i {
        transform: none !important;
    }
}

.btn-project-view i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
    opacity: 0.7;
}

/* Ajustements responsives globaux */
img {
    max-width: 100%;
    height: auto;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

/* Amélioration de la navigation mobile */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--bg-color);
        border-radius: 0.25rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    .nav-item {
        text-align: center;
        margin: 8px 0;
    }
    
    .navbar-toggler {
        border-color: transparent;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
}

/* Flexibilité des projets sur tous les écrans */
.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-img-container {
    flex: 1 0 auto;
    position: relative;
    overflow: hidden;
}

/* Animation plus fluide pour les transitions */
.project-overlay,
.project-content,
.btn,
.nav-link,
.social-icons a {
    transition: all 0.3s ease-in-out;
}

/* Amélioration du formulaire de contact sur tous les écrans */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
    background-color: transparent;
}

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

/* Correction pour les grands écrans */
@media (min-width: 1200px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Corrections pour l'espacement des colonnes sur mobile */
@media (max-width: 767px) {
    .col-12 {
        margin-bottom: 20px;
    }
    
    .row > [class*="col-"] {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    h2.display-4 {
        margin-bottom: 25px;
    }
    
    .skills-list {
        margin-bottom: 30px;
    }
    
    .project-card {
        margin-bottom: 25px;
    }
}

/* Amélioration de l'accessibilité */
a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* S'assurer que le contenu reste lisible en mode sombre */
.dark-mode .project-content {
    color: #f8f9fa;
}

.dark-mode .project-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
}

/* Amélioration du menu déroulant en mode clair pour écrans < 1024px */
@media (max-width: 1024px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        padding: 1rem;
        margin-top: 0.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    .nav-item {
        text-align: center;
        margin: 8px 0;
    }
    
    .nav-link {
        color: #333 !important;
        font-weight: 600;
    }
    
    .nav-link:hover, 
    .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .nav-link::after {
        background: var(--gradient-primary);
    }
    
    .dark-mode .navbar-collapse {
        background-color: var(--bg-color);
    }
    
    .dark-mode .nav-link {
        color: white !important;
    }
}

/* Correction du menu en mode clair */
.navbar-brand, .nav-link {
    color: white !important;
}

/* Spécifique pour la navbar-collapse en mode clair */
@media (max-width: 1024px) {
    .navbar-collapse .nav-link {
        color: #333 !important;
        font-weight: 600;
    }
    
    .navbar-collapse .nav-link:hover, 
    .navbar-collapse .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .dark-mode .navbar-collapse .nav-link {
        color: white !important;
    }
    
    .dark-mode .navbar-collapse .nav-link:hover,
    .dark-mode .navbar-collapse .nav-link.active {
        color: var(--primary-light) !important;
    }
}

.project-card:hover .project-overlay {
    opacity: 0.95;
}

.project-card:hover .project-content {
    opacity: 1;
    transform: translateY(0);
}

.dark-mode .project-content {
    color: #f8f9fa;
}

.dark-mode .project-content p {
    color: white;
}

/* Styles pour les modales */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    color: var(--heading-color);
}

.modal-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-footer .btn-secondary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Amélioration de l'affichage des projets sur mobile */
@media (max-width: 768px) {
    .project-img {
        height: auto;
        min-height: 200px;
    }
    
    .project-content {
        padding: 20px 15px;
        height: auto;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .project-center-button {
        bottom: 15px;
        transform: translateX(-50%) scale(0.9);
    }
    
    .project-card:hover .project-center-button {
        transform: translateX(-50%) scale(1);
    }
    
    .btn-project-view {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .project-overlay {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    }
}

/* Ajustements spécifiques pour très petits écrans */
@media (max-width: 480px) {
    .project-img {
        min-height: 180px;
    }
    
    .project-content {
        padding: 15px 10px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .project-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .project-center-button {
        bottom: 10px;
    }
    
    .btn-project-view {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Couleurs des icônes sociales */
.social-icons a i.fa-facebook-f {
    color: #4267B2;
}

.social-icons a i.fa-twitter {
    color: #1DA1F2;
}

.social-icons a i.fa-instagram {
    color: #E1306C;
}

.social-icons a i.fa-linkedin-in {
    color: #0077B5;
}

/* Couleurs des icônes de contact dans le footer */
.footer-info i.fa-map-marker-alt {
    color: #FF5252;
}

.footer-info i.fa-phone {
    color: #4CAF50;
}

.footer-info i.fa-envelope {
    color: #FF9800;
}

/* Ajustement pour le mode sombre */
.dark-mode .social-icons a i,
.dark-mode .footer-info i {
    filter: brightness(1.2);
}

/* Animation au survol des icônes */
.social-icons a i,
.footer-info i {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover i,
.footer-info i:hover {
    transform: scale(1.2);
    filter: brightness(1.3);
}

/* Couleurs des icônes de services */
#services .card i.fa-desktop {
    color: #7E57C2;
}

#services .card i.fa-mobile-alt {
    color: #26A69A;
}

#services .card i.fa-search {
    color: #FFC107;
}

/* Couleurs des icônes pour le formulaire de contact */
#contact .form-label i {
    color: var(--primary-color);
}

#contact .btn-refresh-captcha i {
    color: #42A5F5;
}

/* Animation des icônes de services */
#services .card i {
    transition: transform 0.4s ease, color 0.4s ease;
}

#services .card:hover i {
    transform: scale(1.15);
}

.dark-mode #services .card i {
    filter: brightness(1.2);
}

/* Style élégant pour le titre OmarKWeb */
.navbar-brand span {
    position: relative;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    background: none;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    transition: all 0.3s ease;
    animation: none;
    text-shadow: none;
    display: inline-block;
}

.navbar-brand .web-text {
    position: relative;
    background: linear-gradient(90deg, #FFFFFF, #F0F0F0, #FFFFFF, #F0F0F0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 800;
}

.navbar-brand:hover span {
    letter-spacing: 0.7px;
    animation: none;
}

.navbar-brand:hover .web-text {
    animation: none;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.dark-mode .navbar-brand span,
.dark-mode .navbar-brand .web-text {
    background: none;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    animation: none;
    text-shadow: none;
}

@keyframes gold-shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gentle-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.95; 
        transform: scale(1.02);
    }
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

[data-bs-theme="dark"] .contact-info a {
    color: var(--bs-light);
}

[data-bs-theme="dark"] .contact-info a:hover {
    color: var(--primary-color);
}

/* Couleurs des icônes de réseaux sociaux */
.social-icons a i.fa-facebook-f {
    color: #1877f2;
}

.social-icons a i.fa-twitter {
    color: #1da1f2;
}

.social-icons a i.fa-instagram {
    color: #e4405f;
}

.social-icons a i.fa-linkedin-in {
    color: #0077b5;
}

/* Couleurs des icônes d'information de contact */
.contact-info i.fa-map-marker-alt {
    color: #ff4444;
}

.contact-info i.fa-phone {
    color: #00C851;
}

.contact-info i.fa-envelope {
    color: #33b5e5;
}

/* Styles pour le mode sombre */
.dark-mode .social-icons a i,
.dark-mode .contact-info i {
    opacity: 0.9;
}

/* Animation au survol */
.social-icons a:hover i,
.contact-info a:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Styles modernes pour le header */
.modern-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 100px;
    min-height: 100vh;
}

.badge-container .badge {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
}

.bg-primary-soft {
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: #818CF8;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #34D399;
}

.mega-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: white;
}

.gradient-text {
    background: linear-gradient(45deg, #818CF8, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modern-lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-modern:hover::after {
    transform: translateX(100%);
}

.tech-stack {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.tech-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.tech-icons {
    display: flex;
    gap: 15px;
}

.tech-icons i {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    transform: translateY(-5px);
    color: #818CF8;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(3deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-3deg); }
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: #818CF8;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: #34D399;
    bottom: -30px;
    left: -30px;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #F472B6;
    top: 50%;
    right: 20%;
}

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

.animate-left {
    animation: slideInLeft 1s ease-out;
}

.animate-right {
    animation: slideInRight 1s ease-out;
}

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

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

.header-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.header-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mega-title {
        font-size: 2.5rem;
    }
    
    .modern-lead {
        font-size: 1.1rem;
    }
    
    .tech-stack {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-shapes .shape {
        filter: blur(30px);
    }
}

@media (max-width: 576px) {
    .mega-title {
        font-size: 2rem;
    }
    
    .badge-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .tech-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-modern {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Styles modernes pour la section À propos */
.modern-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 0.5rem;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.about-content {
    position: relative;
    z-index: 1;
}

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

.experience-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 1rem;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.experience-badge .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

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

.skills-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

.section-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    z-index: 0;
}

.section-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -150px;
    right: -150px;
}

.section-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: -100px;
    left: -100px;
}

/* Animation des compétences */
.skill-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.2s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.6s; }
.skill-item:nth-child(4) { animation-delay: 0.8s; }
.skill-item:nth-child(5) { animation-delay: 1s; }

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

/* Mode sombre */
.dark-mode .section-badge {
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-light);
}

.dark-mode .stat-item {
    background: var(--card-bg);
}

.dark-mode .skills-container {
    background: var(--card-bg);
}

.dark-mode .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

    .skills-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

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

    .stat-item {
        padding: 1rem;
    }

    .experience-badge {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-icon:hover::before {
    opacity: 0.1;
}

.skill-icon i {
    font-size: 2.5rem;
    color: inherit !important;
    transition: all 0.3s ease;
}

.skill-icon .skill-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.skill-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-icon:hover i {
    transform: scale(1.1);
}

/* Couleurs spécifiques pour chaque technologie */
.skill-icon[data-skill="HTML5"] i { color: #E44D26 !important; }
.skill-icon[data-skill="CSS3"] i { color: #264DE4 !important; }
.skill-icon[data-skill="JavaScript"] i { color: #F7DF1E !important; }
.skill-icon[data-skill="PHP"] i { color: #777BB3 !important; }
.skill-icon[data-skill="React"] i { color: #61DAFB !important; }
.skill-icon[data-skill="Node.js"] i { color: #339933 !important; }
.skill-icon[data-skill="Linux"] i { color: #FCC624 !important; }
.skill-icon[data-skill="Terminal"] i { color: #4CAF50 !important; }
.skill-icon[data-skill="Sécurité Réseau"] i { color: #2196F3 !important; }
.skill-icon[data-skill="Tests d'Intrusion"] i { color: #F44336 !important; }

.dark-mode .skill-icon i {
    opacity: 1;
    color: inherit !important;
}

.dark-mode .skill-icon[data-skill="HTML5"] i { color: #E44D26 !important; }
.dark-mode .skill-icon[data-skill="CSS3"] i { color: #264DE4 !important; }
.dark-mode .skill-icon[data-skill="JavaScript"] i { color: #F7DF1E !important; }
.dark-mode .skill-icon[data-skill="PHP"] i { color: #777BB3 !important; }
.dark-mode .skill-icon[data-skill="React"] i { color: #61DAFB !important; }
.dark-mode .skill-icon[data-skill="Node.js"] i { color: #339933 !important; }
.dark-mode .skill-icon[data-skill="Linux"] i { color: #FCC624 !important; }
.dark-mode .skill-icon[data-skill="Terminal"] i { color: #4CAF50 !important; }
.dark-mode .skill-icon[data-skill="Sécurité Réseau"] i { color: #2196F3 !important; }
.dark-mode .skill-icon[data-skill="Tests d'Intrusion"] i { color: #F44336 !important; }

/* Mode sombre */
.dark-mode .skill-icon {
    background: var(--dark-card-bg);
}

.dark-mode .skill-icon::before {
    opacity: 0.05;
}

.dark-mode .skill-icon:hover::before {
    opacity: 0.15;
}

/* Responsive */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .skill-icon {
        padding: 15px;
    }

    .skill-icon i {
        font-size: 2rem;
    }

    .skill-icon .skill-percentage {
        font-size: 1rem;
    }
}

/* Styles améliorés pour le captcha */
.captcha-container {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.captcha-iframe {
    width: 200px;
    height: 70px;
    background: #fff;
    border-radius: 10px;
    margin-right: 10px;
}

.btn-refresh-captcha {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh-captcha:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

#captcha_code {
    font-size: 1.1rem;
    padding: 12px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 15px;
    background: white;
    color: var(--text-color);
}

#captcha_code:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
}

.form-text.text-muted {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-top: 10px;
}

/* Mode sombre pour le captcha */
.dark-mode .captcha-container {
    background: var(--dark-card-bg);
    border-color: var(--primary-color);
}

.dark-mode #captcha_code {
    background: var(--dark-input-bg);
    color: var(--dark-text-color);
    border-color: var(--primary-color);
}

.dark-mode .form-text.text-muted {
    color: var(--primary-color) !important;
}

/* Styles modernes pour la section Services */
.modern-services {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.modern-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 150%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% -50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.05) 0%, 
        rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

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

.service-content h3 {
    color: #1a1c2d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #1a1c2d;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.service-features li i {
    color: #4F46E5;
    margin-right: 0.8rem;
    font-size: 1rem;
    background: rgba(79, 70, 229, 0.1);
    padding: 0.4rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li i {
    background: rgba(79, 70, 229, 0.2);
    transform: scale(1.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .modern-services {
        padding: 60px 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Dark mode adjustments */
.dark-mode .service-card {
    background: rgba(255, 255, 255, 0.02);
}

.dark-mode .service-content h3 {
    color: #fff;
}

.dark-mode .service-content p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .service-features li {
    color: rgba(255, 255, 255, 0.8);
}

/* Mode sombre pour les services */
.dark-mode .modern-services {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1c2d 100%);
}

.dark-mode .service-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.dark-mode .service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .service-content h3 {
    color: #ffffff;
}

.dark-mode .service-content p {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .service-features li {
    color: rgba(255, 255, 255, 0.8);
}

.dark-mode .service-features li i {
    background: rgba(79, 70, 229, 0.2);
}

.dark-mode .service-card::before {
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.15) 0%, 
        rgba(236, 72, 153, 0.15) 100%);
}

.dark-mode .modern-services::before {
    background: radial-gradient(circle at 20% 150%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% -50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4F46E5 0%, #EC4899 100%);
    font-size: 2rem;
    color: white;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

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

/* Styles modernes pour la section Projets */
.modern-projects {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg-odd) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.modern-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 150%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% -50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.project-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.btn-project-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    min-width: 140px;
}

.btn-project-view i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.project-card:hover .btn-project-view {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.btn-project-view:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.btn-project-view:hover i {
    transform: translateX(3px);
}

/* Gestion responsive des textes du bouton */
.btn-text-short {
    display: none;
}

@media (max-width: 767px) {
    .btn-project-view {
        /* Position fixe et centrage parfait */
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        
        /* Taille et style */
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        
        /* Visibilité et apparence */
        opacity: 1 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        
        /* Suppression complète des animations */
        transition: none !important;
        animation: none !important;
    }
    
    /* Gestion du texte sur mobile */
    .btn-text-long {
        display: none !important;
    }
    
    .btn-text-short {
        display: inline-block !important;
    }
    
    /* Désactiver TOUS les états de survol */
    .btn-project-view:hover,
    .btn-project-view:active,
    .btn-project-view:focus,
    .project-card:hover .btn-project-view {
        transform: translateX(-50%) !important;
        bottom: 15px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
        color: white !important;
    }
    
    /* Désactiver TOUTE animation d'icône */
    .btn-project-view i,
    .btn-project-view:hover i,
    .btn-project-view:active i,
    .btn-project-view:focus i,
    .project-card:hover .btn-project-view i {
        transform: none !important;
    }
}

/* Dark mode adjustments */
.dark-mode .modern-projects {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg-odd) 100%);
}

.dark-mode .modern-projects::before {
    background: radial-gradient(circle at 20% 150%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% -50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
}

.dark-mode .project-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .project-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.95));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card {
        height: 300px;
        margin-bottom: 30px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn-project-view {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .project-card {
        height: 250px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-tech {
        gap: 5px;
        margin-bottom: 1rem;
    }

    .tech-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Styles modernes pour la section Contact */
.modern-contact {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg-odd) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modern-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    color: #fff !important;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

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

.modern-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

select.modern-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px !important;
}

.captcha-modern {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-iframe {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 70px;
    width: 100%;
    max-width: 300px;
}

.btn-refresh-captcha {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-refresh-captcha:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.875rem;
    margin-top: 8px;
}

/* Styles pour le mode clair */
:root[data-bs-theme="light"] .modern-input {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-color) !important;
}

:root[data-bs-theme="light"] .modern-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

:root[data-bs-theme="light"] .contact-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-bs-theme="light"] .captcha-modern {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-bs-theme="light"] .btn-refresh-captcha {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px;
    }

    .modern-input {
        padding: 12px 15px !important;
    }

    .captcha-modern {
        padding: 15px;
    }
}

/* Styles modernes pour le formulaire de contact */
.modern-contact {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--section-bg-odd) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Styles pour le mode sombre */
.dark-mode .contact-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .modern-input {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .modern-input:focus {
    background: #333 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

.dark-mode .captcha-modern {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .btn-refresh-captcha {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Styles pour le mode clair */
:root:not(.dark-mode) .contact-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

:root:not(.dark-mode) .modern-input {
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

:root:not(.dark-mode) .modern-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

:root:not(.dark-mode) .modern-input:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

:root:not(.dark-mode) .captcha-modern {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root:not(.dark-mode) .btn-refresh-captcha {
    background: #f0f0f0;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Styles communs */
.contact-card {
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

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

.modern-input {
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.captcha-modern {
    border-radius: 15px;
    padding: 20px;
}

.captcha-iframe {
    border-radius: 10px;
    min-height: 70px;
    width: 100%;
    max-width: 300px;
}

.btn-refresh-captcha {
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-refresh-captcha:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px;
    }

    .modern-input {
        padding: 12px 15px !important;
    }

    .captcha-modern {
        padding: 15px;
    }
}

/* Styles pour le mode sombre */
.dark-mode .modern-contact {
    background: #121212;
}

.dark-mode .contact-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .modern-input {
    background: #2a2a2a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .modern-input:focus {
    background: #333 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

.dark-mode .captcha-modern {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .btn-refresh-captcha {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .btn-refresh-captcha:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.dark-mode select.modern-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    padding-right: 40px !important;
}

.dark-mode .form-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Styles pour le mode clair */
:root:not(.dark-mode) .modern-contact {
    background: #f8f9fa;
}

:root:not(.dark-mode) .contact-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

:root:not(.dark-mode) .modern-input {
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
}

:root:not(.dark-mode) .modern-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

:root:not(.dark-mode) .modern-input:focus {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2) !important;
}

:root:not(.dark-mode) .captcha-modern {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

:root:not(.dark-mode) .btn-refresh-captcha {
    background: #f0f0f0;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Styles communs */
.contact-card {
    border-radius: 20px;
    padding: 40px;
}

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

.modern-input {
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.captcha-modern {
    border-radius: 15px;
    padding: 20px;
}

.captcha-iframe {
    border-radius: 10px;
    min-height: 70px;
    width: 100%;
    max-width: 300px;
}

.btn-refresh-captcha {
    border-radius: 12px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-card {
        padding: 25px;
    }

    .modern-input {
        padding: 12px 15px !important;
    }

    .captcha-modern {
        padding: 15px;
    }
}

.tech-icons i {
    font-size: 2.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.tech-icons i.fa-html5 { color: #E44D26 !important; }
.tech-icons i.fa-css3-alt { color: #264DE4 !important; }
.tech-icons i.fa-js { color: #F7DF1E !important; }
.tech-icons i.fa-php { color: #777BB3 !important; }
.tech-icons i.fa-react { color: #61DAFB !important; }
.tech-icons i.fa-node-js { color: #339933 !important; }
.tech-icons i.fa-linux { color: #FCC624 !important; }
.tech-icons i.fa-terminal { color: #4CAF50 !important; }
.tech-icons i.fa-network-security { color: #2196F3 !important; }
.tech-icons i.fa-intrusion-detection { color: #F44336 !important; }

.tech-icons i:hover {
    transform: translateY(-5px);
}

.dark-mode .tech-icons i.fa-html5 { color: #E44D26 !important; }
.dark-mode .tech-icons i.fa-css3-alt { color: #264DE4 !important; }
.dark-mode .tech-icons i.fa-js { color: #F7DF1E !important; }
.dark-mode .tech-icons i.fa-php { color: #777BB3 !important; }
.dark-mode .tech-icons i.fa-react { color: #61DAFB !important; }
.dark-mode .tech-icons i.fa-node-js { color: #339933 !important; }
.dark-mode .tech-icons i.fa-linux { color: #FCC624 !important; }
.dark-mode .tech-icons i.fa-terminal { color: #4CAF50 !important; }
.dark-mode .tech-icons i.fa-network-security { color: #2196F3 !important; }
.dark-mode .tech-icons i.fa-intrusion-detection { color: #F44336 !important; }

.header-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    min-width: 200px;
    text-align: center;
}

.btn-modern.btn-primary {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-modern.btn-secondary {
    background: linear-gradient(45deg, #673AB7, #9C27B0);
    color: white;
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.3);
}

.btn-modern.btn-accent {
    background: linear-gradient(45deg, #FF5722, #F44336);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-modern:active {
    transform: translateY(1px);
}

.dark-mode .btn-modern.btn-primary {
    background: linear-gradient(45deg, #1976D2, #0097A7);
}

.dark-mode .btn-modern.btn-secondary {
    background: linear-gradient(45deg, #512DA8, #7B1FA2);
}

.dark-mode .btn-modern.btn-accent {
    background: linear-gradient(45deg, #D84315, #C62828);
}

@media (max-width: 768px) {
    .header-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-modern {
        width: 100%;
        max-width: 300px;
        padding: 12px 25px;
    }
}

.badge-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.badge-container .badge {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.badge.bg-primary-soft {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.3));
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge.bg-success-soft {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.3));
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-container .badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #2196F3, #00BCD4, #4CAF50, #2196F3);
    background-size: 400%;
    z-index: -1;
    animation: glowingBorder 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.badge-container .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge-container .badge:hover::before {
    opacity: 1;
}

@keyframes glowingBorder {
    0% { background-position: 0% 0%; }
    100% { background-position: 400% 0%; }
}

.dark-mode .badge.bg-primary-soft {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(33, 150, 243, 0.4));
    color: #64B5F6;
    border-color: rgba(33, 150, 243, 0.4);
}

.dark-mode .badge.bg-success-soft {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.4));
    color: #81C784;
    border-color: rgba(76, 175, 80, 0.4);
}

.tech-icons .fa-html5 { color: #E44D26; }
.tech-icons .fa-css3-alt { color: #264DE4; }
.tech-icons .fa-js { color: #F7DF1E; }
.tech-icons .fa-php { color: #777BB3; }
.tech-icons .fa-react { color: #61DAFB; }
.tech-icons .fa-database { color: #00758F; }

.dark-mode .tech-icons .fa-html5 { color: #E44D26; }
.dark-mode .tech-icons .fa-css3-alt { color: #264DE4; }
.dark-mode .tech-icons .fa-js { color: #F7DF1E; }
.dark-mode .tech-icons .fa-php { color: #777BB3; }
.dark-mode .tech-icons .fa-react { color: #61DAFB; }
.dark-mode .tech-icons .fa-database { color: #00758F; }

h4.mb-2.fw-bold {
    color: #f8f9fa;
    position: relative;
    margin-bottom: 15px !important;
    padding-bottom: 8px;
    display: inline-block;
}

h4.mb-2.fw-bold::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.dark-mode h4.mb-2.fw-bold {
    color: #ffffff;
}

footer h3.fw-bold, 
footer h4.fw-bold {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

footer h3.fw-bold::after,
footer h4.fw-bold::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.dark-mode footer h3.fw-bold,
.dark-mode footer h4.fw-bold {
    color: var(--primary-light);
}

.dark-mode footer h3.fw-bold::after,
.dark-mode footer h4.fw-bold::after {
    background: linear-gradient(45deg, var(--primary-light), var(--secondary-color));
}

/* Amélioration des animations pour plus de subtilité */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Réduction de l'intensité des animations AOS */
[data-aos] {
    transition-duration: 600ms !important;
    transition-timing-function: ease-out !important;
}

[data-aos="fade-up"] {
    transform: translateY(15px); /* Réduit la distance de déplacement */
}

[data-aos="zoom-in"] {
    transform: scale(0.97); /* Animation de zoom plus subtile */
}

[data-aos="flip-left"] {
    transform: perspective(2500px) rotateY(5deg); /* Rotation plus légère */
}

/* Amélioration de l'accessibilité */
:root {
    /* Amélioration des contrastes pour l'accessibilité */
    --primary-color: #4338CA; /* Légèrement plus foncé pour meilleur contraste */
    --primary-light: #6366F1; 
    --text-color: #374151;
    --dark-bg: #111827;
    --card-bg-dark: #1F2937;
}

/* Améliorer le contraste des textes sur fond sombre */
.dark-mode {
    --text-color: #E5E7EB; /* Plus clair pour meilleur contraste */
    --card-bg: #1F2937;
    --card-bg-hover: #374151;
}

/* Amélioration de la lisibilité des textes */
p, .lead, li {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Contraste amélioré pour les éléments de formulaire */
.form-control {
    color: var(--text-color);
    border-color: rgba(107, 114, 128, 0.3);
}

.dark-mode .form-control {
    background-color: #374151;
    color: #F3F4F6;
    border-color: #4B5563;
}

/* Focus visible pour accessibilité au clavier */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* Animation subtile pour les cartes de projet */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Transition plus douce pour les icônes sociales */
.social-icons a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Support des préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating, .animate-left, .animate-right {
        animation: none !important;
        transform: none !important;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .project-card:hover, .service-card:hover, .skill-icon:hover {
        transform: none !important;
    }
}

/* Classe appliquée via JavaScript pour les utilisateurs préférant réduire les mouvements */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

.reduce-motion .floating, 
.reduce-motion .animate-left, 
.reduce-motion .animate-right {
    animation: none !important;
    transform: none !important;
}

.reduce-motion [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.reduce-motion .project-card:hover, 
.reduce-motion .service-card:hover, 
.reduce-motion .skill-icon:hover {
    transform: none !important;
}

/* Style moderne et élégant pour le logo OmarKWeb */
.navbar-brand span {
    position: relative;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: shimmer 5s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.navbar-brand .web-text {
    position: relative;
    background: linear-gradient(90deg, #FFFFFF, #F0F0F0, #FFFFFF, #F0F0F0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 800;
}

.navbar-brand:hover span {
    letter-spacing: 0.7px;
    animation: none;
}

.navbar-brand:hover .web-text {
    animation: none;
}

/* Animation pour l'effet de scintillement */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Effet 3D subtil sur le logo */
.navbar-brand {
    display: flex;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand .brand-logo {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 15px rgba(79, 70, 229, 0.6));
}

.navbar-brand:hover .brand-logo {
    transform: rotate(10deg) translateZ(10px);
}

/* Effet par-dessus au survol */
.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 50%;
    transform: scale(0.5);
}

.navbar-brand:hover::before {
    opacity: 1;
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Améliorations responsives */
@media (max-width: 1199.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .mega-title {
        font-size: 3rem;
    }
    
    .modern-lead {
        font-size: 1.1rem;
    }
    
    .header-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-buttons .btn {
        margin-bottom: 10px;
    }
}

@media (max-width: 991.98px) {
    .modern-header {
        padding: 100px 0 80px;
    }
    
    .mega-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .skills-container, .about-content {
        margin-top: 30px;
    }
    
    .service-card {
        height: 100%;
        min-height: 340px;
    }
    
    .project-card {
        margin-bottom: 25px;
    }
    
    footer {
        padding: 50px 0 20px;
    }
}

@media (max-width: 767.98px) {
    .modern-header {
        padding: 90px 0 60px;
        min-height: auto;
    }
    
    .hero-image-container {
        margin-top: 40px;
    }
    
    .mega-title {
        font-size: 2.3rem;
        margin: 1rem 0;
    }
    
    .modern-lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    .about-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-badge {
        margin-top: 15px;
        margin-left: 0;
    }
    
    .skill-category {
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    .btn-project-view {
        opacity: 1;
        transform: translateY(0);
    }
    
    .contact-info {
        margin-top: 30px;
    }
    
    .footer-links, .footer-info {
        margin-top: 20px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand span {
        font-size: 1.5rem;
    }
    
    .modern-header {
        padding: 80px 0 40px;
    }
    
    .mega-title {
        font-size: 1.9rem;
    }
    
    .badge-container .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .tech-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-buttons {
        flex-direction: column;
    }
    
    .header-buttons .btn {
        width: 100%;
        margin-right: 0;
    }
    
    .btn-modern {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-features {
        padding-left: 15px;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
    }
    
    .tech-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin: 2px;
    }
    
    .form-control, .form-select {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    footer h3 {
        font-size: 1.3rem;
        margin-top: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 10px;
    }
}

/* Corrections pour les petits téléphones */
@media (max-width: 360px) {
    .navbar-brand span {
        font-size: 1.3rem;
    }
    
    .mega-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
    }
}

/* Optimisations supplémentaires */
@media (max-width: 767.98px) {
    .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .col-lg-6:last-child,
    .col-md-6:last-child,
    .col-sm-6:last-child {
        margin-bottom: 0;
    }
    
    .navbar-collapse {
        background: rgba(30, 41, 59, 0.98);
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 8px 0;
    }
    
    .project-overlay {
        opacity: 1;
    }
    
    .project-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fix pour l'affichage sur iPad et tablettes */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-image-container {
        margin-top: 30px;
    }
    
    .skill-category {
        margin-bottom: 20px;
    }
    
    .service-card {
        min-height: 380px;
    }
}

/* Amélioration pour le footer responsive */
@media (max-width: 767.98px) {
    footer .row {
        display: flex;
        flex-direction: column;
    }
    
    footer .col-lg-4, 
    footer .col-lg-3, 
    footer .col-lg-5 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    footer h3 {
        margin-bottom: 15px;
    }
    
    .footer-links, .footer-info {
        margin-bottom: 0;
    }
    
    .footer-bottom {
        margin-top: 20px;
    }
    
    .footer-bottom .col-md-6:first-child {
        margin-bottom: 10px;
    }
    
    .footer-bottom p, .footer-bottom a {
        text-align: center;
    }
}

/* Amélioration de la navigation mobile */
@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-toggler {
        margin-right: 10px;
    }
    
    .navbar-collapse {
        z-index: 1000;
        margin-top: 10px;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .nav-link {
        padding: 10px 15px;
        text-align: center;
        font-size: 1.1rem;
    }
    
    #darkModeToggle {
        margin: 10px auto;
        display: block;
    }
}

/* Corrections pour les éléments flottants */
@media (max-width: 767.98px) {
    .floating {
        animation: none;
        transform: none;
    }
    
    .hero-shapes {
        display: none;
    }
    
    section {
        overflow: hidden;
    }
}

/* Optimisation des formulaires sur mobile */
@media (max-width: 767.98px) {
    form {
        margin-bottom: 30px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .form-control, .form-select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        height: auto;
        padding: 12px 15px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .btn-lg {
        width: 100%;
        padding: 12px;
    }
    
    .captcha-container {
        margin: 15px 0;
    }
    
    .captcha-iframe {
        transform: scale(0.85);
        transform-origin: left top;
    }
    
    .btn-refresh-captcha {
        height: 40px;
        width: 40px;
    }
}

/* Optimisation de l'expérience utilisateur sur tactile */
@media (max-width: 991.98px) {
    .project-card, 
    .service-card, 
    .btn, 
    .social-icons a {
        cursor: default; /* Supprime les effets hover inutiles sur tactile */
    }
    
    .project-overlay,
    .project-content {
        opacity: 1;
        visibility: visible;
    }
    
    .btn-project-view {
        opacity: 1;
        transform: none;
    }
    
    .skill-icon::before {
        opacity: 0.1;
    }
    
    .footer-links a, 
    .footer-info a, 
    .social-icons a {
        display: inline-block;
        padding: 5px 0;
    }
    
    .social-icons a {
        margin: 5px;
    }
}

/* Fix de base pour tous les écrans */
html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* Ajout des styles pour les logos des projets */
.project-logo-container {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.project-logo {
    max-width: 80px;
    max-height: 80px;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .project-logo {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Ajustements pour mobile */
@media (max-width: 767px) {
    .project-content {
        padding: 10px;
    }
    
    .project-logo-container {
        margin-bottom: 5px;
    }
    
    .project-logo {
        max-width: 50px;
        max-height: 50px;
        border-radius: 8px;
    }
    
    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .project-content p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .btn-project-view {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Styles améliorés pour le bouton projet */
.btn-project-view {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 100 !important;
    min-width: 140px !important;
    transition: none !important;
    animation: none !important;
}

.btn-project-view:hover,
.btn-project-view:active,
.btn-project-view:focus {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-project-view i {
    font-size: 14px !important;
    transition: none !important;
}

.btn-project-view:hover i,
.btn-project-view:active i,
.btn-project-view:focus i {
    transform: none !important;
}

@media (max-width: 767px) {
    .btn-project-view {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        bottom: 15px !important;
    }
    
    .btn-text-long {
        display: none !important;
    }
    
    .btn-text-short {
        display: inline-block !important;
    }
}

/* Amélioration de la visibilité du menu mobile en mode clair */
@media (max-width: 1024px) {
    .navbar-collapse {
        background-color: #1E293B !important;
        padding: 15px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-collapse .nav-link {
        color: white !important;
        padding: 10px 15px;
        margin: 2px 0;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .navbar-collapse .nav-link:hover, 
    .navbar-collapse .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
    }
    
    :root:not(.dark-mode) .navbar-collapse .nav-link {
        color: white !important;
    }
    
    :root:not(.dark-mode) .navbar-collapse .nav-link:hover,
    :root:not(.dark-mode) .navbar-collapse .nav-link.active {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Amélioration des icônes de réseaux sociaux */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #1E293B;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a i {
    font-size: 18px;
    color: white !important;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover i.fa-facebook-f {
    color: #1877f2 !important;
}

.social-icons a:hover i.fa-twitter {
    color: #1da1f2 !important;
}

.social-icons a:hover i.fa-instagram {
    color: #e4405f !important;
}

.social-icons a:hover i.fa-linkedin-in {
    color: #0077b5 !important;
}

/* Style pour le mode clair */
:root:not(.dark-mode) .social-icons a {
    background-color: #1E293B;
    color: white;
}

:root:not(.dark-mode) .social-icons a i {
    color: white !important;
}

/* Ajustements pour mobile */
@media (max-width: 767px) {
    .social-icons {
        justify-content: center;
        margin-top: 15px;
        margin-bottom: 25px;
        gap: 20px;
    }
    
    .social-icons a {
        width: 50px;
        height: 50px;
    }
    
    .social-icons a i {
        font-size: 20px;
    }
}

/* Optimisation responsive pour les formats standard de Google Chrome */

/* Mobile S - 320px */
@media screen and (max-width: 320px) {
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .mega-title {
        font-size: 1.8rem;
    }
    
    .modern-lead {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .tech-icons i {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    footer h3.fw-bold {
        font-size: 1.2rem;
    }
}

/* Mobile M - 375px */
@media screen and (min-width: 321px) and (max-width: 375px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    .mega-title {
        font-size: 2rem;
    }
    
    .modern-lead {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .skill-icon {
        width: 65px;
        height: 65px;
    }
}

/* Mobile L - 425px */
@media screen and (min-width: 376px) and (max-width: 425px) {
    .navbar-brand span {
        font-size: 1.15rem;
    }
    
    .mega-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skill-icon {
        width: 70px;
        height: 70px;
    }
    
    .project-logo {
        max-width: 55px;
        max-height: 55px;
    }
}

/* Tablette - 768px */
@media screen and (min-width: 426px) and (max-width: 768px) {
    .mega-title {
        font-size: 2.5rem;
    }
    
    .modern-lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-collapse {
        background-color: #1E293B !important;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .project-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .stats-container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: 15px;
    }
}

/* Laptop - 1024px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .mega-title {
        font-size: 3rem;
    }
    
    .modern-lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .social-icons a {
        width: 42px;
        height: 42px;
    }
    
    .social-icons a i {
        font-size: 17px;
    }
}

/* Laptop L - 1440px */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .mega-title {
        font-size: 3.2rem;
    }
}

/* Grands écrans - >1440px */
@media screen and (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .mega-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Styles des titres dans le footer - avec taille de police ajustée */
footer h3.fw-bold, 
footer h3.mb-4.fw-bold {
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    font-size: 1.6rem !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
}

footer h3.fw-bold::after,
footer h3.mb-4.fw-bold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* Ajustement responsive pour les titres du footer */
@media (max-width: 767px) {
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem;
        text-align: center;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer .social-icons {
        justify-content: center;
    }
}

/* Style spécifique pour le titre OmarKWeb dans le footer */
footer h3.fw-bold.mb-3 {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    text-transform: none;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: left;
    width: 100%;
}

footer h3.fw-bold.mb-3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

/* Alignement mobile pour OmarKWeb */
@media (max-width: 767px) {
    footer h3.fw-bold.mb-3 {
        text-align: center;
    }
    
    footer h3.fw-bold.mb-3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Assurer l'alignement en mode responsive pour les écrans entre 560px et 800px */
@media (min-width: 560px) and (max-width: 800px) {
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.3rem;
        text-align: center;
        width: 100%;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    footer .social-icons {
        justify-content: center;
    }
}

/* ===================================
   STYLES MODERNES POUR LE FORMULAIRE DE CONTACT
   =================================== */

/* Carte de contact moderne */
.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

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

/* Champs de formulaire modernes */
.modern-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.modern-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Labels avec icônes */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Bouton d'envoi moderne */
.btn-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-modern:active {
    transform: translateY(-1px);
}

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

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

/* Animation du bouton de chargement */
.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

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

/* Sélecteur de budget moderne */
.budget-selector {
    margin: 1.5rem 0;
}

.budget-selector .form-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.btn-check:checked + .btn-outline-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

/* Compteur de caractères */
.char-count {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.char-count.text-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.char-count.text-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Messages d'erreur */
.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invalid-feedback::before {
    content: '⚠';
    font-size: 0.875rem;
}

/* Mode sombre pour le formulaire */
.dark-mode .contact-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .modern-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .modern-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .form-label {
    color: #ffffff;
}

.dark-mode .form-label i {
    color: var(--primary-light);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modern-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-modern {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .budget-selector .btn-outline-primary {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
}

/* Animation d'apparition */
.contact-card {
    animation: slideInUp 0.6s ease-out;
}

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

/* Style moderne pour tous les titres du footer */
footer h3.fw-bold, 
footer h3.mb-4.fw-bold,
footer h3.fw-bold.mb-3 {
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    font-size: 1.6rem !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
    display: inline-block;
}

/* Suppression des anciennes barres ::after */
footer h3.fw-bold::after,
footer h3.mb-4.fw-bold::after,
footer h3.fw-bold.mb-3::after {
    display: none;
}

/* Nouvelle décoration moderne pour les titres */
footer h3.fw-bold, 
footer h3.mb-4.fw-bold,
footer h3.fw-bold.mb-3 {
    border-bottom: none;
    background-image: linear-gradient(90deg, var(--primary-color), transparent);
    background-size: 80px 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* Style spécifique pour OmarKWeb */
footer h3.fw-bold.mb-3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    text-transform: none;
}

/* Responsive pour tous types d'écrans */
@media (max-width: 991px) {
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        text-align: center;
        background-position: center bottom;
    }
    
    footer .social-icons {
        justify-content: center;
    }
}

/* Supprimer les media queries spécifiques qui ne sont plus nécessaires */
@media (min-width: 560px) and (max-width: 800px) {
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.3rem;
    }
}

@media (max-width: 767px) {
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem;
    }
}

/* Amélioration du footer en mode tablette */
@media (min-width: 576px) and (max-width: 991px) {
    footer {
        padding: 3rem 0 2rem;
    }
    
    footer .container {
        max-width: 95%;
    }
    
    footer .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
        text-align: center;
        display: block;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        display: none;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        background-image: linear-gradient(90deg, var(--primary-color), transparent);
        background-size: 80px 2px;
        background-repeat: no-repeat;
        background-position: center bottom;
        padding-bottom: 1rem;
    }
    
    footer p, 
    footer .footer-links li a,
    footer .footer-info li {
        font-size: 0.95rem;
    }
    
    .footer-links, 
    .footer-info {
        padding-left: 0;
    }
    
    .footer-links li, 
    .footer-info li {
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .social-icons a {
        margin: 0 0.6rem;
        height: 40px;
        width: 40px;
    }
    
    .social-icons a i {
        font-size: 1.2rem;
        line-height: 40px;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        text-align: center;
    }
    
    .footer-bottom .row {
        flex-direction: column;
    }
    
    .footer-bottom .col-md-6 {
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 991px) {
    footer .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Système de media queries harmonisé pour tous les formats d'écran */

/* Extra small devices (phones, jusqu'à 575.98px) */
@media (max-width: 575.98px) {
    body {
        font-size: 0.9rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }
    
    .navbar-brand span {
        font-size: 1.3rem;
    }
    
    /* Header */
    .mega-title, header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title, h2.display-4 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Projets */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .btn-project-view {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Compétences */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skill-icon {
        padding: 0.8rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact */
    .form-control, .form-select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    footer h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.3rem !important;
        margin-bottom: 1.2rem;
        text-align: center;
        padding-bottom: 1rem;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        display: none;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        background-image: linear-gradient(90deg, var(--primary-color), transparent);
        background-size: 80px 2px;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
    
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        margin-bottom: 1.5rem;
    }
    
    .footer-links, .footer-info {
        padding-left: 0;
        text-align: center;
    }
    
    .footer-info li {
        text-align: center;
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        margin: 0 0.4rem;
    }
    
    .social-icons a i {
        font-size: 1rem;
        line-height: 35px;
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom p, .footer-bottom a {
        font-size: 0.8rem;
    }
}

/* Small devices (tablets portrait, 576px à 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Header */
    .mega-title, header h1 {
        font-size: 2.2rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Projets */
    .project-card {
        margin-bottom: 2rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 0 2rem;
    }
    
    footer .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.4rem !important;
        margin-bottom: 1.3rem;
        text-align: center;
        padding-bottom: 1rem;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        display: none;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        background-image: linear-gradient(90deg, var(--primary-color), transparent);
        background-size: 80px 2px;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
    
    .footer-links, .footer-info {
        padding-left: 0;
        text-align: center;
    }
    
    .footer-info li {
        justify-content: center;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .row {
        flex-direction: column;
    }
    
    .footer-bottom .col-md-6 {
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

/* Medium devices (tablets landscape, 768px à 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-collapse {
        background-color: var(--bg-color);
        border-radius: 0.5rem;
        padding: 1rem;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
    }
    
    /* Header */
    .mega-title, header h1 {
        font-size: 2.5rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1.2rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Footer */
    footer .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
        text-align: center;
        display: block;
        padding-bottom: 1rem;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        display: none;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        background-image: linear-gradient(90deg, var(--primary-color), transparent);
        background-size: 80px 2px;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
    
    footer p, 
    footer .footer-links li a,
    footer .footer-info li {
        font-size: 0.95rem;
    }
    
    .footer-links, 
    .footer-info {
        padding-left: 0;
    }
    
    .footer-links li, 
    .footer-info li {
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .social-icons a {
        margin: 0 0.6rem;
        height: 40px;
        width: 40px;
    }
    
    .social-icons a i {
        font-size: 1.2rem;
        line-height: 40px;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        text-align: center;
    }
    
    .footer-bottom .row {
        flex-direction: column;
    }
    
    .footer-bottom .col-md-6 {
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Large devices (desktops, 992px à 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Header */
    .mega-title, header h1 {
        font-size: 2.8rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1.25rem;
    }
    
    /* Footer */
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        margin-bottom: 0;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        text-align: left;
        background-position: left bottom;
    }
}

/* Extra large devices (large desktops, 1200px et plus) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .mega-title, header h1 {
        font-size: 3.2rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1.4rem;
    }
    
    /* Projets */
    .project-card {
        margin-bottom: 30px;
    }
    
    /* Footer */
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        text-align: left;
        background-position: left bottom;
    }
}

/* Pour écrans très larges */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Orientation paysage sur les petits appareils */
@media (max-height: 576px) and (orientation: landscape) {
    header {
        min-height: auto;
        padding: 6rem 0;
    }
    
    .navbar {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Centrer les liens dans la section NAVIGATION du footer */
.footer-links {
    text-align: center;
    padding-left: 0;
}

.footer-links li {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.footer-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(0);
}

/* Assurer que les styles sont appliqués sur tous les écrans */
@media (max-width: 991px) {
    .footer-links {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-links li {
        justify-content: center;
    }
}

/* Centrage spécifique pour les écrans entre 578px et 1000px */
@media (min-width: 578px) and (max-width: 1000px) {
    /* Structure du footer */
    footer {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    footer .container {
        max-width: 95%;
    }
    
    footer .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    /* Colonnes */
    footer .col-lg-4, 
    footer .col-md-6,
    footer .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2.5rem;
    }
    
    /* Titres */
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        text-align: center;
        font-size: 1.5rem !important;
        margin: 0 auto 1.5rem;
        padding-bottom: 1rem;
        display: inline-block;
        background-position: center bottom;
        max-width: 80%;
    }
    
    footer h3.fw-bold::after,
    footer h3.mb-4.fw-bold::after,
    footer h3.fw-bold.mb-3::after {
        display: none;
    }
    
    /* Texte descriptif */
    footer p {
        text-align: center;
        margin: 0 auto 1.2rem;
        max-width: 80%;
        font-size: 0.95rem;
    }
    
    /* Liens navigation */
    .footer-links {
        padding-left: 0;
        margin: 0 auto;
        text-align: center;
        display: block;
    }
    
    .footer-links li {
        margin-bottom: 1rem;
        justify-content: center;
        text-align: center;
        display: flex;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    /* Coordonnées */
    .footer-info {
        padding-left: 0;
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-info li {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-info li i {
        margin-right: 10px;
    }
    
    /* Icônes sociales */
    .social-icons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 1rem auto;
    }
    
    .social-icons a {
        margin: 0 0.8rem;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .social-icons a i {
        font-size: 1.2rem;
        color: #FFFFFF;
    }
    
    /* Bas de page */
    .footer-bottom {
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .footer-bottom .row {
        flex-direction: column;
    }
    
    .footer-bottom .col-md-6 {
        max-width: 100%;
        text-align: center !important;
        margin-bottom: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        margin: 0 auto;
    }
}

/* Style spécifique pour le titre OmarKWeb centré */
.title-omarkweb {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: block;
}

.title-omarkweb::after {
    display: none !important;
}

.title-omarkweb {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    text-transform: none;
    background-image: linear-gradient(90deg, var(--primary-color), transparent);
    background-size: 80px 2px;
    background-repeat: no-repeat;
    background-position: center bottom;
    padding-bottom: 1rem;
}

/* Assurer que le paragraphe sous le titre est également centré */
.title-omarkweb + p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Amélioration des icônes sociales avec couleurs au survol */
.social-icons a {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px 0 0;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a i {
    color: #f5f5f5;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.social-icons a:hover::before {
    transform: scale(1);
}

/* Couleurs spécifiques pour chaque réseau social */
.social-icons a.facebook::before {
    background: #3b5998;
}

.social-icons a.twitter::before {
    background: #1da1f2;
}

.social-icons a.instagram::before {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icons a.linkedin::before {
    background: #0077b5;
}

/* Faire tourner légèrement les icônes au survol */
.social-icons a:hover i {
    transform: scale(1.2);
}

/* Mode sombre - ajustements */
.dark-mode .social-icons a {
    background: rgba(255, 255, 255, 0.15);
}

.dark-mode .social-icons a i {
    color: #f8f8f8;
}

/* Assurer que les styles s'appliquent sur mobile */
@media (max-width: 767px) {
    .social-icons a {
        width: 35px;
        height: 35px;
        margin: 0 8px 0 0;
    }
    
    .social-icons a i {
        font-size: 1rem;
    }
    
    .social-icons a:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Centrer la navigation en mode desktop */
@media (min-width: 992px) {
    .footer-links {
        text-align: center;
        padding-left: 0;
    }
    
    .footer-links li {
        display: flex;
        justify-content: center;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a {
        position: relative;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
}

/* Ajout d'espace à gauche pour la navigation en mode desktop */
@media (min-width: 992px) {
    .footer-links {
        text-align: left;
        padding-left: 25%;
    }
    
    .footer-links li {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a {
        position: relative;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
}

/* Style amélioré pour la section NAVIGATION du footer */
.footer-links {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 0;
}

.footer-links li {
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links li::before {
    content: '›';
    font-size: 1.4rem;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -0.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-links li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .footer-links {
        align-items: center;
    }
    
    .footer-links li {
        padding-left: 0;
        display: flex;
        justify-content: center;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .footer-links a {
        text-align: center;
    }
    
    .footer-links a:hover {
        transform: translateX(0) scale(1.05);
    }
}

@media (min-width: 992px) {
    .footer-links {
        padding-left: 15%;
    }
}

/* Media query spécifique pour la plage 980px-1020px */
@media (min-width: 980px) and (max-width: 1020px) {
    /* Containers */
    .container {
        max-width: 95%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation */
    .navbar .container {
        max-width: 98%;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Header */
    header .container {
        max-width: 95%;
    }
    
    .mega-title, header h1 {
        font-size: 2.5rem;
    }
    
    .modern-lead, header .lead {
        font-size: 1.2rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    /* Projets */
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.4rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.75rem;
    }
    
    /* Formulaire */
    .form-control, .form-select {
        padding: 0.75rem;
    }
    
    /* Footer */
    footer .container {
        max-width: 95%;
    }
    
    footer h3.fw-bold, 
    footer h3.mb-4.fw-bold,
    footer h3.fw-bold.mb-3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.2rem;
    }
    
    footer p {
        font-size: 0.95rem;
    }
    
    .footer-links, .footer-info {
        padding-left: 0;
    }
}

/* Languette flottante sur le côté droit - version améliorée */
.side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: none; /* Masqué par défaut */
}

/* Afficher uniquement en desktop */
@media (min-width: 1200px) {
    .side-tab {
        display: block;
    }
}

.tab-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
    width: 240px;
    overflow: hidden;
    transform: translateX(calc(100% - 50px));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.side-tab:hover .tab-content {
    transform: translateX(0);
}

.tab-header {
    padding: 15px;
    background-color: rgba(0,0,0,0.15);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tab-header i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.tab-links {
    padding: 10px 0;
}

.tab-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tab-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.tab-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Supprimer le tab-toggle et son bloc */
.tab-toggle {
    display: none;
}

/* Style pour les icônes d'éclair */
.fa-bolt, 
.fas.fa-bolt, 
.side-tab .tab-header i.fa-bolt {
    color: var(--lightning-color) !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    animation: pulse-lightning 2s infinite;
}

@keyframes pulse-lightning {
    0% {
        text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    }
}

.side-tab:hover .tab-header i.fa-bolt,
.tab-link:hover i.fa-bolt {
    transform: scale(1.2);
    color: #F59E0B !important;
}

/* Style pour les autres icônes dans la languette */
.tab-link i.fa-paper-plane {
    color: #38BDF8 !important; /* Bleu ciel */
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
    transition: all 0.3s ease;
}

.tab-link:hover i.fa-paper-plane {
    color: #0EA5E9 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.7);
    transform: scale(1.2);
}

.tab-link i.fa-phone-alt {
    color: #4ADE80 !important; /* Vert */
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
}

.tab-link:hover i.fa-phone-alt {
    color: #22C55E !important;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
    transform: scale(1.2);
}

.tab-link i.fa-linkedin {
    color: #2563EB !important; /* Bleu LinkedIn */
    text-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.tab-link:hover i.fa-linkedin {
    color: #1D4ED8 !important;
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.7);
    transform: scale(1.2);
}

/* Styles pour le formulaire de contact moderne */
.contact-card {
    background: var(--light-color);
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark-mode .contact-card {
    background: var(--dark-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 2;
}

/* Champs flottants */
.form-floating {
    position: relative;
    margin-bottom: 1rem;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: #6c757d;
}

.form-floating label i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    background-color: transparent;
    color: #6c757d;
}

.form-floating > .form-control:focus ~ label i,
.form-floating > .form-control:not(:placeholder-shown) ~ label i {
    color: #6c757d;
}

.dark-mode .form-floating label {
    color: #6c757d;
}

.dark-mode .form-floating > .form-control:focus ~ label,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #6c757d;
}

.dark-mode .form-floating > .form-control:focus ~ label i,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label i {
    color: #6c757d;
}

/* Styles des champs */
.modern-input {
    border-radius: 0.5rem;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.dark-mode .modern-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modern-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
}

.dark-mode .modern-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.4);
}

/* Sélecteur de budget */
.budget-selector {
    padding: 0.5rem 0;
}

.budget-selector .btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.budget-selector .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(-2px);
}

.dark-mode .budget-selector .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.budget-selector .btn-outline-primary:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

/* Compteur de caractères */
.form-text {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.char-count {
    font-weight: 600;
}

.char-count .text-danger {
    color: #dc3545;
}

.char-count .text-success {
    color: #28a745;
}

/* Bouton moderne */
.btn-modern {
    position: relative;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

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

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.4);
}

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

.btn-content, .btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Options de contact direct */
.contact-direct {
    margin-top: 3rem;
}

.contact-options {
    margin-top: 1rem;
}

.contact-options .btn {
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.contact-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Badge de section */
.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-mode .section-badge {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 767px) {
    .contact-card {
        padding: 1.5rem;
    }
    
    .budget-selector .btn-outline-primary {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-modern {
        padding: 0.7rem 1.5rem;
    }
}

/* Améliorations pour le mode sombre du formulaire de contact */
.dark-mode .contact-card {
    background: var(--dark-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .form-floating label {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .form-floating > .form-control:focus ~ label,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
    background-color: var(--dark-color);
    color: var(--primary-color);
}

.dark-mode .modern-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dark-mode .modern-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.4);
    border-color: var(--primary-color);
}

.dark-mode .form-text {
    color: rgba(255, 255, 255, 0.6);
}

.dark-mode .budget-selector .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-mode .budget-selector .btn-check:checked + .btn-outline-primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.dark-mode .btn-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}

.dark-mode .btn-modern:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.5);
}

.dark-mode .contact-options .btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .contact-options .btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dark-mode .contact-direct h4 {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .char-count .text-success {
    color: #4caf50 !important;
}

.dark-mode .section-title, .dark-mode .section-badge {
    color: rgba(255, 255, 255, 0.9);
}

.dark-mode .lead {
    color: rgba(255, 255, 255, 0.7);
}

/* Correction du compteur de caractères et du formulaire en mode sombre */
.dark-mode .char-count {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.dark-mode .contact-card {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.dark-mode .modern-input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9) !important;
}

.dark-mode .form-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark-mode .form-floating > .form-control:focus ~ label,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
    background-color: #121212;
}

/* Correction du compteur de caractères en mode clair */
.char-count {
    color: rgba(0, 0, 0, 0.75);
    font-weight: 600;
}

.char-count .text-danger {
    color: #dc3545 !important;
}

.char-count .text-success {
    color: #28a745 !important;
}

/* S'assurer que le formulaire est bien sombre en mode sombre */
.dark-mode .contact-card {
    background-color: #121212 !important;
}

/* Forcer une couleur claire pour les compteurs en mode sombre */
.dark-mode .char-count {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Correction pour le positionnement du label "Description du projet" */
.form-floating textarea.form-control {
    height: 130px;
    padding-top: 1.625rem;
}

.form-floating textarea.form-control ~ label {
    padding-top: 0.7rem;
    height: auto;
}

.form-floating textarea.form-control:focus ~ label,
.form-floating textarea.form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    padding-top: 0;
}

/* Corrections supplémentaires pour le mode sombre */
.dark-mode .contact-card {
    background-color: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.dark-mode .form-floating label {
    color: rgba(255, 255, 255, 0.7);
}

.dark-mode .form-floating > .form-control {
    background-color: #1e1e1e !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .form-floating > .form-control:focus ~ label,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) ~ label {
    background-color: transparent;
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
    padding: 0 0.5rem;
    z-index: 1;
}

.dark-mode .form-floating textarea.form-control ~ label {
    padding-top: 0.7rem;
    height: auto;
}

.dark-mode .form-floating textarea.form-control:focus ~ label,
.dark-mode .form-floating textarea.form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-1.2rem) translateX(0.15rem);
    background-color: #121212;
    padding: 0 0.5rem;
}

/* Correction du texte d'aide pour qu'il reste visible en mode clair et sombre */
.form-text {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.75) !important;
    margin-top: 0.5rem;
    font-weight: 500;
}

.dark-mode .form-text {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Style spécifique pour le texte qui indique les caractères minimum */
.form-text.text-muted {
    color: rgba(0, 0, 0, 0.75) !important;
    opacity: 1;
}

.dark-mode .form-text.text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
    opacity: 1;
}

/* Assurer que le texte d'aide ne disparaît pas quand on clique sur le champ */
.form-control:focus + .form-text,
.form-control:focus ~ .form-text,
textarea.form-control:focus ~ .form-text {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* S'assurer que les étiquettes flottantes ne cachent pas le texte d'aide */
.form-floating:focus-within + .form-text,
.form-floating:has(> .form-control:focus) + .form-text {
    visibility: visible !important;
    opacity: 1 !important;
}

.dark-mode .form-floating > .form-control:focus,
.dark-mode .form-floating > .form-control:not(:placeholder-shown) {
    background-color: #1e1e1e !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Correction du fond blanc sur textarea et amélioration de la visibilité du budget en mode sombre */
.dark-mode textarea.form-control:focus {
    background-color: #1e1e1e !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-color);
}

.dark-mode textarea.modern-input {
    background-color: #1e1e1e !important;
}

.dark-mode textarea.modern-input:focus {
    background-color: #1e1e1e !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.4);
}

/* Amélioration de la visibilité du titre de section Budget estimé */
.dark-mode .budget-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

/* Style général pour tous les titres de sections en mode sombre */
.dark-mode h3, 
.dark-mode h4,
.dark-mode h5,
.dark-mode .h3,
.dark-mode .h4,
.dark-mode .h5 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* S'assurer que tous les éléments avec l'icône de budget sont visibles en mode sombre */
.dark-mode [class*="fa-money"],
.dark-mode [class*="fa-coins"],
.dark-mode [class*="fa-dollar"],
.dark-mode [class*="fa-euro"],
.dark-mode .budget-selector label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Styles spécifiques pour le budget estimé */
.dark-mode .budget-selector {
    margin-top: 0; /* Suppression de la marge qui causait le décalage */
}

.dark-mode .budget-icon {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Style spécifique pour le conteneur du budget et son texte */
.dark-mode [class*="budget"] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

/* Assurer que le texte "Budget estimé" est bien visible */
.dark-mode .form-label.fs-5,
.dark-mode h5.mb-3,
.dark-mode .fs-5 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
}

/* Style pour l'élément spécifique avec l'icône de budget */
.dark-mode i.fa-money-bill-wave,
.dark-mode i.fas.fa-coins,
.dark-mode .budget-estimé {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Boutons modernes en mode sombre */
.dark-mode .btn-modern.btn-primary {
    background: linear-gradient(45deg, #1976D2, #0097A7);
    color: white;
}

.dark-mode .btn-modern.btn-secondary {
    background: linear-gradient(45deg, #512DA8, #7B1FA2);
    color: white;
}

.dark-mode .btn-modern.btn-accent {
    background: linear-gradient(45deg, #D84315, #C62828);
    color: white;
}

.dark-mode .btn {
    color: white;
}

.dark-mode .form-control:focus {
    background-color: var(--dark-color);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.dark-mode .form-select:focus {
    background-color: var(--dark-color);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.modern-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-form .form-control,
.modern-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus,
.modern-form .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.modern-form .form-floating label {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    font-size: 1rem;
}

.modern-form .form-floating > .form-control:focus ~ label,
.modern-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.modern-form .form-floating label i {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.modern-form .form-floating > .form-control:focus ~ label i,
.modern-form .form-floating > .form-control:not(:placeholder-shown) ~ label i {
    color: var(--primary-color);
}

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

.modern-form .btn-modern {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-form .btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

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

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

.dark-mode .modern-form {
    background: rgba(0, 0, 0, 0.2);
}

.dark-mode .modern-form .form-control,
.dark-mode .modern-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dark-mode .modern-form .form-control:focus,
.dark-mode .modern-form .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .modern-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode textarea.modern-input {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .modern-input:focus {
    background: rgba(255, 255, 255, 0.08);
}

.dark-mode textarea.modern-input {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .modern-input {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark-mode .modern-input:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.dark-mode textarea.modern-input,
.dark-mode textarea.form-control,
.dark-mode textarea.modern-input:focus,
.dark-mode textarea.form-control:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
    caret-color: #ffffff; /* Couleur du curseur */
    opacity: 1 !important;
}

/* Assurer que le texte est visible pendant la saisie */
.dark-mode textarea.modern-input::selection,
.dark-mode textarea.form-control::selection {
    background-color: rgba(79, 70, 229, 0.5) !important;
    color: #ffffff !important;
}

/* S'assurer que tous les champs de formulaire en mode sombre ont du texte blanc */
.dark-mode input.modern-input,
.dark-mode input.form-control,
.dark-mode select.modern-input,
.dark-mode select.form-control {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
    caret-color: #ffffff;
    opacity: 1 !important;
}

/* Surcharger toutes les autres règles de focus qui pourraient interférer */
.dark-mode .form-control:focus,
.dark-mode .modern-input:focus,
.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Solution drastique pour le problème de visibilité du textarea */
.dark-mode #description,
.dark-mode textarea#description,
.dark-mode textarea#description.form-control,
.dark-mode textarea#description.modern-input {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode #description:focus,
.dark-mode textarea#description:focus,
.dark-mode textarea#description.form-control:focus,
.dark-mode textarea#description.modern-input:focus {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Style pour le texte sélectionné */
.dark-mode #description::selection,
.dark-mode textarea#description::selection {
    background-color: rgba(79, 70, 229, 0.5) !important;
    color: #ffffff !important;
}

/* Renforcer les styles pour tous les champs de saisie en mode sombre */
.dark-mode input[type="text"], 
.dark-mode input[type="email"],
.dark-mode input[type="tel"],
.dark-mode select,
.dark-mode textarea {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    background-color: #1a1a1a !important;
}

/* Style spécifique pour tous les champs du formulaire en mode sombre */
.dark-mode #nom,
.dark-mode #prenom,
.dark-mode #email,
.dark-mode #sujet,
.dark-mode input#nom,
.dark-mode input#prenom,
.dark-mode input#email,
.dark-mode input#sujet,
.dark-mode input#nom.form-control,
.dark-mode input#prenom.form-control,
.dark-mode input#email.form-control,
.dark-mode input#sujet.form-control,
.dark-mode input#nom.modern-input,
.dark-mode input#prenom.modern-input,
.dark-mode input#email.modern-input,
.dark-mode input#sujet.modern-input {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    caret-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dark-mode #nom:focus,
.dark-mode #prenom:focus,
.dark-mode #email:focus,
.dark-mode #sujet:focus,
.dark-mode input#nom:focus,
.dark-mode input#prenom:focus,
.dark-mode input#email:focus,
.dark-mode input#sujet:focus,
.dark-mode input#nom.form-control:focus,
.dark-mode input#prenom.form-control:focus,
.dark-mode input#email.form-control:focus,
.dark-mode input#sujet.form-control:focus,
.dark-mode input#nom.modern-input:focus,
.dark-mode input#prenom.modern-input:focus,
.dark-mode input#email.modern-input:focus,
.dark-mode input#sujet.modern-input:focus {
    background-color: #252525 !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Fix pour éviter le saut de mise en page entre les pages */
html {
    overflow-y: scroll;
    scrollbar-width: thin; /* Pour Firefox */
}

/* Pour Chrome, Edge et Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}
