/**
* Portfolio Ilan Dahan - Design Premium
* Style moderne et professionnel avec effets visuels avancés
*/

/*--------------------------------------------------------------
# Font & Color Variables - Premium Design System
--------------------------------------------------------------*/

/* Importation de polices Google Fonts premium */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Fonts - Combinaison élégante et professionnelle */
:root {
    --default-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --heading-font: "Playfair Display", Georgia, serif;
    --nav-font: "Inter", sans-serif;
    --mono-font: "JetBrains Mono", "Courier New", monospace;
}

/* Global Colors - Palette sophistiquée et moderne */
:root {
    --background-color: #030d33;
    --default-color: #ffffff;
    --heading-color: #051e57;
    --accent-color: #3b82f6;
    --accent-secondary: #8b5cf6;
    --surface-color: #1e293b;
    --surface-elevated: #334155;
    --contrast-color: #ffffff;
    --border-color: rgba(148, 163, 184, 0.1);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-surface: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Nav Menu Colors - Moderne et épuré */
:root {
    --nav-color: #94a3b8;
    --nav-hover-color: #3b82f6;
    --nav-mobile-background-color: #0f172a;
    --nav-dropdown-background-color: #1e293b;
    --nav-dropdown-color: #cbd5e1;
    --nav-dropdown-hover-color: #3b82f6;
}

/* Color Presets - Thèmes alternatifs */
.light-background {
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --default-color: #1e293b;
    --heading-color: #0f172a;
}

.dark-background {
    --background-color: #a4aab1;
    --default-color: #000000;
    --heading-color: #f8fafc;
    --surface-color: #1e293b;
    --contrast-color: #ffffff;
}

/* Smooth scroll avec accélération */
:root {
    scroll-behavior: smooth;
}

* {
    scroll-padding-top: 100px;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes - Design Premium
--------------------------------------------------------------*/

body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
    font-feature-settings: "liga" 1, "kern" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Effet de grain subtil sur le body */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 9999;
    mix-blend-mode: overlay;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Soulignement animé pour les liens */
a:not(.btn):not(.social-links a):not(.navmenu a)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn):not(.social-links a):not(.navmenu a):hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #7390d0;
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Sélection de texte personnalisée */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/*--------------------------------------------------------------
# PHP Email Form Messages
--------------------------------------------------------------*/
.php-email-form .error-message {
    display: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    text-align: left;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-weight: 600;
    border-radius: 12px;
    border-left: 4px solid #991b1b;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.2);
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    text-align: center;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-weight: 600;
    border-radius: 12px;
    border-left: 4px solid #047857;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 18px 24px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    margin: 0 10px -8px 0;
    border: 3px solid var(--accent-color);
    border-top-color: transparent;
    animation: php-email-form-loading 0.8s linear infinite;
}

@keyframes php-email-form-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Global Header - Design Moderne
--------------------------------------------------------------*/
.header {
    color: var(--default-color);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 30px 20px;
    width: 320px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 997;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

/* Scrollbar personnalisée pour le header */
.header::-webkit-scrollbar {
    width: 6px;
}

.header::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

.header::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.header .profile-img {
    position: relative;
    margin: 30px auto;
    display: block;
    width: 140px;
    height: 140px;
}

.header .profile-img::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: rotate-gradient 8s linear infinite;
    z-index: -1;
}

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

.header .profile-img img {
    margin: 0 auto;
    display: block;
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 50%;
    border: 4px solid var(--surface-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .profile-img:hover img {
    transform: scale(1.05);
}

.header .logo {
    line-height: 1;
    margin: 25px 0;
    text-align: center;
}

.header .logo h1 {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .social-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.header .social-links a {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    color: var(--default-color);
    border-radius: 12px;
    text-align: center;
    width: 48px;
    height: 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.header .social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .social-links a i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .social-links a:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
    border-color: var(--accent-color);
}

.header .social-links a:hover::before {
    opacity: 1;
}

.header .social-links a:hover i {
    color: white;
    transform: scale(1.1);
}

@media (min-width: 1200px) {
    .header~main,
    .header~#footer {
        margin-left: 320px;
    }
}

@media (max-width: 1199px) {
    .header {
        left: -100%;
    }
}

.header.header-show {
    left: 0;
}

.header .header-toggle {
    color: var(--contrast-color);
    background: var(--gradient-primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.header .header-toggle:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

/*--------------------------------------------------------------
# Navigation Menu - Style Moderne
--------------------------------------------------------------*/
.mobile-nav-toggle {
    display: none;
}

.navmenu {
    padding: 0;
    z-index: 9997;
}

.navmenu ul {
    list-style: none;
    padding: 0 0 20px 0;
    margin: 0;
}

.navmenu a,
.navmenu a:focus {
    color: var(--nav-color);
    padding: 16px 20px;
    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    border-radius: 12px;
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
}

.navmenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
    font-size: 20px;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
    color: var(--nav-hover-color);
    background: rgba(59, 130, 246, 0.1);
}

.navmenu a:hover::before,
.navmenu .active::before,
.navmenu .active:focus::before {
    transform: scaleY(1);
}

.navmenu a:hover::after {
    width: 100%;
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
    color: var(--accent-color);
    transform: translateX(4px) scale(1.1);
}

/*--------------------------------------------------------------
# Global Footer - Design Épuré
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    font-size: 14px;
    padding: 50px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer .copyright p {
    margin-bottom: 0;
    text-align: center;
    opacity: 0.8;
}

.footer .credits {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
    opacity: 0.6;
}

/*--------------------------------------------------------------
# Preloader - Animation Moderne
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.6s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader:before {
    content: "";
    position: absolute;
    border: 6px solid transparent;
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-secondary);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: animate-preloader 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#preloader:after {
    content: "";
    position: absolute;
    border: 6px solid transparent;
    border-top-color: var(--accent-secondary);
    border-bottom-color: var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: animate-preloader 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button - Design Premium
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 25px;
    bottom: -15px;
    z-index: 99999;
    background: var(--gradient-primary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top i {
    font-size: 26px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 25px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 40px 0;
    position: relative;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 800;
}

.page-title .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.page-title .breadcrumbs ol li+li {
    padding-left: 12px;
}

.page-title .breadcrumbs ol li+li::before {
    content: "/";
    display: inline-block;
    padding-right: 12px;
    color: var(--accent-color);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 100px 0;
    overflow: clip;
    position: relative;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    padding-bottom: 80px;
    position: relative;
    text-align: center;
}

.section-title h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 30px;
    padding-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: "";
    position: absolute;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    margin-bottom: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Hero Section - Design Spectaculaire
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
            radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
            linear-gradient(135deg, #0a0e27 0%, #1e293b 50%, #0a0e27 100%);
    overflow: hidden;
}

/* Particules animées en arrière-plan */
.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h2 {
    margin: 0 0 20px 0;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    margin: 30px 0 0 0;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #ffffff;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero p span {
    letter-spacing: 0.02em;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding-bottom: 2px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .social-links {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero .social-links a {
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--default-color);
    width: 56px;
    height: 56px;
    line-height: 1;
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 50%;
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.hero .social-links a:hover {
    color: white;
    transform: translateY(-8px) scale(1.1);
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

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

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .hero .social-links a {
        width: 48px;
        height: 48px;
        font-size: 24px;
        margin-right: 15px;
    }
}

/*--------------------------------------------------------------
# About Section - Design Premium
--------------------------------------------------------------*/
.about .content h2 {
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 25px;
}

.about-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f9fafb;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-right: 8px;
}

.about-card h1,
.about-card h2,
.about-card h3,
.about-card h4,
.about-card h5,
.about-card h6 {
    color: #f9fafb;
    font-weight: 700;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

.about .content ul li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about .content ul li:hover {
    transform: translateX(8px);
    background: rgba(30, 41, 59, 0.5);
}

.about .content ul strong {
    margin-right: 12px;
    font-weight: 600;
    color: var(--accent-color);
}

.about .content ul i {
    font-size: 18px;
    margin-right: 10px;
    color: var(--accent-color);
    line-height: 0;
}

/* Bouton CV avec effet premium */
.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    opacity: 1;
}

/*--------------------------------------------------------------
# Skills Section - Design Moderne
--------------------------------------------------------------*/
.skills .progress {
    height: 70px;
    display: block;
    background: none;
    border-radius: 0;
    margin-bottom: 35px;
}

.skills .progress .skill {
    color: var(--heading-color);
    padding: 0;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    display: block;
    font-weight: 700;
    font-family: var(--heading-font);
    font-size: 15px;
    letter-spacing: 0.05em;
}

.skills .progress .skill .val {
    float: right;
    font-style: normal;
    font-family: var(--mono-font);
    color: var(--accent-color);
    font-weight: 600;
}

.skills .progress-bar-wrap {
    background: rgba(30, 41, 59, 0.5);
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.skills .progress-bar-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
    animation: shimmer 2s infinite;
}

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

.skills .progress-bar {
    width: 1px;
    height: 14px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-primary);
    border-radius: 7px;
    position: relative;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.skills .progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}

/*--------------------------------------------------------------
# Resume Section - Timeline Premium
--------------------------------------------------------------*/
.resume .resume-title {
    font-size: 28px;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.resume .resume-item {
    padding: 0 0 30px 30px;
    margin-top: -2px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 0 12px 12px 0;
    padding: 25px 25px 25px 35px;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume .resume-item:hover {
    transform: translateX(8px);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.2);
}

.resume .resume-item h4 {
    line-height: 1.4;
    font-size: 20px;
    font-weight: 700;

    margin-bottom: 12px;
}

.resume .resume-item h5 {
    font-size: 15px;
    padding: 8px 18px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-family: var(--mono-font);
}

.resume .resume-item ul {
    padding-left: 25px;
}

.resume .resume-item ul li {
    padding-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.resume .resume-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
    line-height: 1;
}

.resume .resume-item:last-child {
    padding-bottom: 0;
}

.resume .resume-item::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    left: -12px;
    top: 25px;
    background: var(--gradient-primary);
    border: 3px solid var(--background-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume .resume-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3);
}

/*--------------------------------------------------------------
# Portfolio Section - Grid Premium
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
    padding: 0;
    margin: 0 auto 40px auto;
    list-style: none;
    text-align: center;
}

.portfolio .portfolio-filters li {
    cursor: pointer;
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    margin: 0 8px 15px 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 25px;
    border: 2px solid transparent;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.portfolio .portfolio-content {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio .portfolio-content img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-content .portfolio-info {
    opacity: 0;
    position: absolute;
    inset: 0;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portfolio .portfolio-content .portfolio-info h4 {
    font-size: 22px;
    padding: 12px 24px;
    font-weight: 700;
    color: #ffffff;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.portfolio .portfolio-content .portfolio-info p {
    position: relative;
    bottom: auto;
    text-align: center;
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    max-width: 80%;
}

.portfolio .portfolio-content:hover .portfolio-info {
    opacity: 1;
}

.portfolio .portfolio-content:hover img {
    transform: scale(1.15);
}

/* Cards des projets sur la page principale */
.project-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: black;
}

.project-card p {
    flex-grow: 1;
    color: black;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/*--------------------------------------------------------------
# Services Section - Cards Premium
--------------------------------------------------------------*/
.services .service-item {
    position: relative;
    padding: 35px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
}

.services .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services .service-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.3);
}

.services .service-item:hover::before {
    transform: scaleX(1);
}

.services .service-item .icon {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-right: 25px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.services .service-item .icon i {
    color: var(--contrast-color);
    font-size: 28px;
    line-height: 0;
}

.services .service-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.services .service-item .title {
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 22px;
}

.services .service-item .title a {
    color: var(--heading-color);
}

.services .service-item .title a:hover {
    color: var(--accent-color);
}

.services .service-item .description {
    line-height: 1.7;
    font-size: 15px;
    color: var(--default-color);
}

/*--------------------------------------------------------------
# Contact Section - Design Premium
--------------------------------------------------------------*/
.contact .info-wrap {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.contact .info-item {
    margin-bottom: 45px;
    padding: 25px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--accent-color);
}

.contact .info-item:hover {
    transform: translateX(8px);
    background: rgba(30, 41, 59, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact .info-item i {
    font-size: 24px;
    color:white;
    background: rgba(59, 130, 246, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 20px;
}

.contact .info-item:hover i {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.contact .info-item h3 {
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact .info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: 15px;
    color: var(--default-color);
}

.contact .php-email-form {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    height: 100%;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
    font-size: 15px;
    padding: 16px 20px;
    box-shadow: none;
    border-radius: 12px;
    color: var(--default-color);
    background-color: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--accent-color);
    background-color: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.contact .php-email-form button[type=submit] {
    color: var(--contrast-color);
    background: var(--gradient-primary);
    border: 0;
    padding: 16px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.contact .php-email-form button[type=submit]:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

/* Google Maps avec style premium */
.contact iframe {
    border-radius: 16px;
    border: 2px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Animations personnalisées
--------------------------------------------------------------*/
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Animation pour les éléments qui apparaissent */
.fade-in {
    animation: fadeIn 1s ease-out;
}

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

/* Effet de brillance sur les cartes */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.about-card::after,
.project-card::after,
.services .service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            135deg,
            transparent 40%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 60%
    );
    transform: translateX(-100%) translateY(-100%) rotate(30deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.about-card:hover::after,
.project-card:hover::after,
.services .service-item:hover::after {
    transform: translateX(100%) translateY(100%) rotate(30deg);
}

/*--------------------------------------------------------------
# Responsive Design - Mobile First
--------------------------------------------------------------*/
@media (max-width: 1199px) {
    .header {
        width: 280px;
    }
}

@media (max-width: 768px) {
    section,
    .section {
        padding: 60px 0;
    }

    .section-title {
        padding-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .about-card,
    .project-card,
    .services .service-item {
        padding: 25px;
    }

    .contact .info-wrap,
    .contact .php-email-form {
        padding: 30px;
    }
}

/*--------------------------------------------------------------
# Page Projet - Styles spécifiques
--------------------------------------------------------------*/
.project-page {
    background: #0a0e27;
}

.project-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    overflow: hidden;
}

.project-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

@media (max-width: 768px) {
    .project-wrapper {
        padding: 30px 20px;
        border-radius: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.project-badge i {
    font-size: 16px;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #255160 0%, #15324c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
}

.project-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--heading-color);
}

.project-section-title i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.project-divider {
    margin: 60px 0 50px;
    border: none;
    height: 1px;
    background: linear-gradient(
            90deg,
            transparent,
            rgba(148, 163, 184, 0.3) 50%,
            transparent
    );
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.project-card h6 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.project-card p:last-child {
    margin-bottom: 0;
}

.project-image {
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.project-caption {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 12px;
    font-style: italic;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
    margin-top: 20px;
}

.pill-list li {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.5);
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.pill-list li:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.pill-list li i {
    margin-right: 6px;
    color: var(--accent-color);
}

.pill-list li:hover i {
    color: white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    text-decoration: none;
    color: #94a3b8;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(148, 163, 184, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link:hover {
    color: var(--accent-color);
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--accent-color);
    transform: translateX(-5px);
}

.project-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.project-actions .btn {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 12px;
}

/*--------------------------------------------------------------
# Utilitaires
--------------------------------------------------------------*/
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.shadow-premium {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.border-gradient {
    border-image: var(--gradient-primary) 1;
}
/* ========================================
   CORRECTION PAGES PROJETS - Style sombre unifié
============================================ */

/* Page title et breadcrumbs projets */
.page-title {
    background: var(--background-color);
    color: var(--default-color);
    padding: 4rem 0;
}

.page-title h1 {
    color: var(--heading-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.page-title .breadcrumbs {
    color: var(--text-muted);
}

/* Portfolio details (pages projets) */
.portfolio-details .portfolio-info {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-radius: 24px;
    padding: 2.5rem !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(99,102,241,0.3);
}

.portfolio-details .portfolio-info h3 {
    color: var(--heading-color) !important;
    border-bottom-color: rgba(99,102,241,0.3) !important;
}

.portfolio-details .portfolio-info ul {
    color: var(--default-color) !important;
}

.portfolio-details .portfolio-description {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.portfolio-details .portfolio-description h2 {
    color: var(--heading-color);
}

.portfolio-details .portfolio-description p {
    color: var(--text-muted);
}

/* Service details (autres pages projets) */
.service-details .services-list {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    padding: 2rem;
}

.service-details .services-list a {
    color: var(--default-color) !important;
    border-left-color: rgba(99,102,241,0.4) !important;
}

.service-details .services-list a.active,
.service-details .services-list a:hover {
    color: var(--heading-color) !important;
    border-left-color: var(--accent-color) !important;
}

.service-details h3, .service-details h4 {
    color: var(--heading-color);
}

.service-details p, .service-details ul li {
    color: var(--default-color);
}

.service-details ul i {
    color: var(--accent-color);
}

/* Contenu général des pages projets */
.portfolio-details,
.service-details {
    background: var(--background-color);
    color: var(--default-color);
}

.portfolio-details p,
.service-details p {
    color: var(--text-muted) !important;
    line-height: 1.7;
}

/* Sections portfolio dans projets */
.portfolio-filters li {
    color: var(--text-muted) !important;
}

.portfolio-filters li.filter-active,
.portfolio-filters li:hover {
    color: var(--accent-color) !important;
}

.portfolio-content {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.portfolio-info {
    background: rgba(30, 41, 59, 0.95) !important;
}

/* Formulaire contact dans projets */
.php-email-form {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.php-email-form input,
.php-email-form textarea {
    background: #0f172a !important;
    border: 2px solid #334155 !important;
    color: var(--default-color) !important;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2) !important;
}

/* Boutons projets */
.btn-outline-primary {
    background: transparent !important;
    color: var(--accent-color) !important;
    border: 2px solid rgba(99,102,241,0.5) !important;
    border-radius: 50px !important;
}

.btn-outline-primary:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Infos contact projets */
.contact .info-wrap {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6) !important;
}

.contact .info-item i {
    background: linear-gradient(135deg, var(--accent-color), #818cf8) !important;
}

/* ========================================
   URGENT - CORRECTION TEXTE BLANC ILLISIBLE
============================================ */

/* FORCE texte foncé sur TOUTES les pages projets */
body,
.portfolio-details,
.service-details,
.page-title,
.portfolio-info,
.portfolio-description,
.services-list {
    color: #e2e8f0 !important;
    background: #1e293b !important;
}

.portfolio-details p,
.service-details p,
.portfolio-details .portfolio-info p,
.page-title p {
    color: #cbd5e1 !important;
}

.portfolio-details h1,
.portfolio-details h2,
.portfolio-details h3,
.portfolio-details h4,
.portfolio-details h5,
.portfolio-details h6,
.service-details h1,
.service-details h2,
.service-details h3,
.service-details h4,
.service-details h5,
.service-details h6 {
    color: #f8fafc !important;
}

/* Contenu général pages projets */
.portfolio-details,
.service-details {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.portfolio-details .portfolio-info {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #e2e8f0 !important;
}

.portfolio-details .portfolio-description {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #e2e8f0 !important;
}

/* Textes spécifiques */
.portfolio-details ul li,
.service-details ul li {
    color: #cbd5e1 !important;
}

.page-title h1 {
    color: #f8fafc !important;
}

/* Formulaire et liens */
.php-email-form,
.contact .info-wrap {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #e2e8f0 !important;
}

.php-email-form input,
.php-email-form textarea {
    background: #162139 !important;
    color: #e2e8f0 !important;
    border: 2px solid #475569 !important;
}
/* ========================================
   PAGES PROJET - CORRECTION FINALE
======================================== */

body.projet-page {
    background: #f8fafc !important;
}

body.projet-page .page-title,
body.projet-page .portfolio-details,
body.projet-page .service-details {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.projet-page h1,
body.projet-page h2,
body.projet-page h3,
body.projet-page h4,
body.projet-page h5,
body.projet-page h6 {
    color: #0f172a !important;
    background: transparent !important;
}

body.projet-page p {
    color: #0f172a !important;
    background: transparent !important;
}

body.projet-page li {
    color: #0f172a !important;
    background: transparent !important;
}

body.projet-page span {
    color: inherit !important;
    background: transparent !important;
}

body.projet-page a {
    color: #6366f1 !important;
    background: transparent !important;
}

body.projet-page .portfolio-info,
body.projet-page .portfolio-description,
body.projet-page .services-list {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    color: #0f172a !important;
}

body.projet-page .portfolio-info h3,
body.projet-page .portfolio-description h3 {
    color: #0f172a !important;
}

body.projet-page .portfolio-info ul li,
body.projet-page .portfolio-info p {
    color: #0f172a !important;
}

body.projet-page .btn-outline-primary {
    background: transparent !important;
    color: #6366f1 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 999px !important;
}

body.projet-page .btn-outline-primary:hover {
    background: #6366f1 !important;
    color: #fff !important;
}

body.projet-page img {
    background: transparent !important;
}

/* Header reste sombre */
body.projet-page .header,
body.projet-page .header * {
    background: #1e293b !important;
    color: #e2e8f0 !important;
}

body.projet-page .header h1 {
    color: #f8fafc !important;
}

.project-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform .35s ease, box-shadow .35s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: .6rem;
    font-weight: 600;
}

.project-content p {
    font-size: .95rem;
    color: #555;
}