/* ===================================
   CSS OPTIMISÉ - INDEX V2
   =================================== */

/* ===================================
   SECTION BACKGROUNDS - UNIFORMISATION
   =================================== */
section {
    background: rgba(15, 23, 42, 0.8) !important;
}

.hero-corporate,
.problems-section,
.services-corporate,
.portfolio-corporate,
.expertise-section,
.methodology-timeline-section,
.contact-corporate,
.faq-corporate {
    background: rgba(15, 23, 42, 0.8) !important;
}

.problems-cta,
.service-card-corporate,
.problem-card,
.timeline-step,
.portfolio-item-corporate,
.value-prop-card,
.expertise-profile {
    background: rgba(30, 41, 59, 0.9) !important;
}
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Fallback si Three.js échoue */
#canvas-bg[style*="display: none"],
#canvas-bg.fallback {
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Animation de particules CSS en fallback si Three.js échoue */
@media (max-width: 768px) {
    #canvas-bg.fallback::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            radial-gradient(1px 1px at 20px 30px, rgba(96, 165, 250, 0.4), transparent),
            radial-gradient(1px 1px at 40px 70px, rgba(168, 85, 247, 0.3), transparent),
            radial-gradient(1px 1px at 90px 40px, rgba(59, 130, 246, 0.5), transparent),
            radial-gradient(1px 1px at 130px 80px, rgba(96, 165, 250, 0.3), transparent),
            radial-gradient(1px 1px at 160px 20px, rgba(168, 85, 247, 0.2), transparent);
        background-repeat: repeat;
        background-size: 120px 80px;
        animation: particleFloat 15s linear infinite;
        opacity: 0.8;
    }
    
    /* Lignes de connexion CSS pour fallback */
    #canvas-bg.fallback::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: 
            linear-gradient(45deg, transparent 48%, rgba(96, 165, 250, 0.1) 49%, rgba(96, 165, 250, 0.1) 51%, transparent 52%),
            linear-gradient(-45deg, transparent 48%, rgba(168, 85, 247, 0.08) 49%, rgba(168, 85, 247, 0.08) 51%, transparent 52%);
        background-size: 60px 60px, 80px 80px;
        animation: lineFloat 20s linear infinite;
        opacity: 0.4;
    }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-8px) translateX(3px); }
    50% { transform: translateY(-4px) translateX(-2px); }
    75% { transform: translateY(-12px) translateX(1px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes lineFloat {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    33% { transform: translateY(-5px) translateX(2px) rotate(1deg); }
    66% { transform: translateY(-2px) translateX(-1px) rotate(-1deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

/* ===================================
   VARIABLES ET BASE
   =================================== */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p, li {
    font-weight: 400;
    line-height: 1.7;
    font-size: 1.125rem;
}

/* Tech elements */
.service-number,
.step-number,
.expertise-icon,
code,
.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.btn-primary,
.btn-secondary {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===================================
   SECTION HEADERS ENHANCED
   =================================== */
.section-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-corporate {
    padding-top: 120px;
}

.hero-corporate .hero-content-corporate h1,
section.hero-corporate h1 {
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.hero-lead {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    max-width: 800px;
    position: relative;
    background: linear-gradient(90deg, #e2e8f0 0%, #ffffff 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s ease-in-out infinite;
    color: var(--text-light);
}

/* Fallback pour navigateurs non compatibles */
@supports not (-webkit-background-clip: text) {
    .hero-lead {
        background: none;
        color: #e2e8f0;
        animation: textGlow 2s ease-in-out infinite alternate;
    }
}

@keyframes textGlow {
    0% { 
        color: #e2e8f0;
        text-shadow: 0 0 5px rgba(226, 232, 240, 0.3);
    }
    100% { 
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes textShine {
    0% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.hero-content-corporate {
    max-width: 1000px;
    padding: 2rem 1rem;
}

/* Hero Benefits */
.hero-benefits {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.benefit-item {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 1.2rem 1.5rem;
    border-radius: 0.8rem;
    text-align: center;
    min-width: 180px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.benefit-item:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.benefit-item strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.benefit-item span {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Hero Benefits Compact List */
.hero-benefits-compact {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-benefits-compact li {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-benefits-compact li:before {
    display: none;
}

.hero-benefits-compact li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Social Proof */
.hero-social-proof {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-social-proof span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-left: 16px;
}

.hero-social-proof span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* ===================================
   PROBLEMS SECTION - REDESIGNED
   =================================== */
.problems-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.problems-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.problem-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 24px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.problem-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.problem-card:nth-child(1) { animation: slideInLeft 0.6s ease-out 0.1s both; }
.problem-card:nth-child(2) { animation: slideInRight 0.6s ease-out 0.2s both; }
.problem-card:nth-child(3) { animation: slideInLeft 0.6s ease-out 0.3s both; }
.problem-card:nth-child(4) { animation: slideInRight 0.6s ease-out 0.4s both; }

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

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

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 2rem;
    border: 2px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-icon::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: transform 0.6s ease;
}

.problem-card:hover .problem-icon {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.5);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
}

.problem-card:hover .problem-icon::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.problem-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    margin: 0 0 1.5rem 0;
    padding: 0 1.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.problem-card ul {
    list-style: none;
    padding: 0 2rem;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.problem-card li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.problem-card li:last-child {
    border-bottom: none;
}

.problem-card li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #fbbf24;
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.problem-card:hover li {
    color: #f1f5f9;
    transform: translateX(4px);
}

.problem-cost {
    margin-top: auto;
    padding: 1.5rem 2rem 2rem;
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}0;
    padding: 1.5rem 2rem 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-top: 2px solid rgba(239, 68, 68, 0.3);
    position: relative;
    border-radius: 0 0 24px 24px;
}

.problem-cost::before {
    display: none;
}

.problem-cost strong {
    color: #fca5a5;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(252, 165, 165, 0.3);
    display: block;
    margin-bottom: 0.5rem;
}

.problems-cta-section {
    background: rgba(15, 23, 42, 0.8) !important;
    padding: 3rem 0;
}

.problems-cta {
    text-align: center;
    margin: 0;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.9) !important;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.problems-cta::before {
    display: none;
}

.problems-cta p {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid-corporate {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.service-card-corporate {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #1e293b;
    color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card-corporate:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.service-card-corporate h3 {
    color: inherit;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.service-card-corporate p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.service-card-corporate ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card-corporate li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.6;
    font-size: 1.125rem;
}

.service-card-corporate li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--success);
    font-weight: bold;
    font-size: 1rem;
}

/* Service Colors */
.service-card-corporate:nth-child(1) {
    border-color: #10b981;
}

.service-card-corporate:nth-child(1):hover {
    border-color: #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}

.service-card-corporate:nth-child(1) .service-number,
.service-card-corporate:nth-child(1) h3 {
    color: #10b981;
}

.service-card-corporate:nth-child(1) .service-link {
    color: #10b981;
}

.service-card-corporate:nth-child(1) .service-link:hover {
    color: #059669;
}

.service-card-corporate:nth-child(1) .result-metric {
    background: rgba(16, 185, 129, 0.1);
}

.service-card-corporate:nth-child(1) .result-metric strong {
    color: #10b981;
}

.service-card-corporate:nth-child(2) {
    border-color: #f59e0b;
}

.service-card-corporate:nth-child(2):hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

.service-card-corporate:nth-child(2) .service-number,
.service-card-corporate:nth-child(2) h3 {
    color: #f59e0b;
}

.service-card-corporate:nth-child(2) .service-link {
    color: #f59e0b;
}

.service-card-corporate:nth-child(2) .service-link:hover {
    color: #d97706;
}

.service-card-corporate:nth-child(2) .result-metric {
    background: rgba(245, 158, 11, 0.1);
}

.service-card-corporate:nth-child(2) .result-metric strong {
    color: #f59e0b;
}

.service-card-corporate:nth-child(3) {
    border-color: #8b5cf6;
}

.service-card-corporate:nth-child(3):hover {
    border-color: #8b5cf6;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.service-card-corporate:nth-child(3) .service-number,
.service-card-corporate:nth-child(3) h3 {
    color: #8b5cf6;
}

.service-card-corporate:nth-child(3) .service-link {
    color: #8b5cf6;
}

.service-card-corporate:nth-child(3) .service-link:hover {
    color: #7c3aed;
}

.service-card-corporate:nth-child(3) .result-metric {
    background: rgba(139, 92, 246, 0.1);
}

.service-card-corporate:nth-child(3) .result-metric strong {
    color: #8b5cf6;
}

.service-card-corporate:nth-child(4) {
    border-color: #ef4444;
}

.service-card-corporate:nth-child(4):hover {
    border-color: #ef4444;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15);
}

.service-card-corporate:nth-child(4) .service-number,
.service-card-corporate:nth-child(4) h3 {
    color: #ef4444;
}

.service-card-corporate:nth-child(4) .service-link {
    color: #ef4444;
}

.service-card-corporate:nth-child(4) .service-link:hover {
    color: #dc2626;
}

.service-card-corporate:nth-child(4) .result-metric {
    background: rgba(239, 68, 68, 0.1);
}

.service-card-corporate:nth-child(4) .result-metric strong {
    color: #ef4444;
}

.service-card-corporate.highlight-card {
    border: 2px solid #10b981;
    position: relative;
    transform: scale(1.02);
}

.service-card-corporate.highlight-card::before {
    content: "POPULAIRE";
    position: absolute;
    top: -12px;
    left: 24px;
    background: #10b981;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-visual {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.service-visual img {
    display: inline-block;
    height: 280px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.service-card-corporate:hover .service-visual img {
    transform: scale(1.05);
}

.service-problem {
    background: rgba(239, 68, 68, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid #ef4444;
}

.service-solution {
    background: rgba(34, 197, 94, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid var(--success);
}

.service-results {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.result-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    flex: 1;
    min-width: 120px;
}

.result-metric strong {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.result-metric span {
    color: var(--text-main);
    font-size: 12px;
    text-align: center;
}

.service-example {
    background: var(--dark-light);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
}

/* ===================================
   PORTFOLIO SECTION
   =================================== */
.portfolio-grid-corporate {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    padding-bottom: 4rem;
}

.portfolio-item-corporate {
    position: sticky;
    top: 15vh;
    background: #1e293b;
    border-radius: 1rem;
    padding: 2rem;
    height: 65vh;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 0;
    align-items: stretch;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item-corporate:nth-child(1) { z-index: 1; }
.portfolio-item-corporate:nth-child(2) { z-index: 2; }
.portfolio-item-corporate:nth-child(3) { z-index: 3; }

.portfolio-media {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0.8rem;
}

.portfolio-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.8rem;
}

.portfolio-info-corporate {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-info-corporate h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.portfolio-info-corporate p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.portfolio-item-corporate.featured {
    grid-column: span 2;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    border-radius: 0.8rem;
}

.portfolio-item-corporate:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-metrics {
    display: flex;
    gap: 12px;
}

.metric {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

.portfolio-results {
    background: rgba(95, 194, 186, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: auto 0;
    border-left: 3px solid #5FC2BA;
}

.portfolio-link-corporate {
    display: inline-block;
    background: #5FC2BA;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: auto;
}

.portfolio-link-corporate:hover {
    background: #4fb3ab;
}

.portfolio-grid-corporate > .portfolio-item-corporate:last-child {
    margin-bottom: 0;
}

.portfolio-cta {
    margin-top: 0;
    text-align: center;
}

/* ===================================
   EXPERTISE SECTION - ENHANCED
   =================================== */
.expertise-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.expertise-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 4rem;
    box-shadow: var(--shadow-medium);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.3);
}

.profile-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

.expertise-value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-prop-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.value-prop-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

.value-prop-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-prop-card p {
    color: var(--text-main);
    line-height: 1.7;
}

/* ===================================
   METHODOLOGY SECTION
   =================================== */
.expertise-process {
    margin-top: 64px;
    text-align: center;
}

.expertise-process h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--dark);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.step-content h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* Methodology Timeline */
.methodology-timeline-section {
    background: var(--dark);
    padding: 6rem 0;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.timeline-line {
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    z-index: 1;
}

.timeline-step {
    position: relative;
    width: 22%;
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-step:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.timeline-step .step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.2rem;
}

.timeline-step h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    color: var(--text-main);
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.step-benefits {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.step-benefits li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1rem;
    color: var(--text-main);
    font-size: 1.125rem;
}

.step-benefits li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.step-icon {
    width: 48px;
    height: 48px;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.methodology-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-urgency {
    margin-bottom: 48px;
}

.urgency-card {
    background: rgba(245, 158, 11, 0.1);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #f59e0b;
}

.urgency-card h3 {
    color: #f59e0b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.roi-calculator {
    background: var(--dark);
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--border);
}

.calc-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

.calc-line:last-child {
    border-bottom: none;
}

.calc-result {
    background: #dc2626;
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
}

.urgency-text {
    color: #f59e0b;
    font-weight: 600;
    font-size: 16px;
    margin-top: 16px;
}

.contact-card.priority {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: scale(1.05);
    border: 2px solid var(--primary-dark);
}

.contact-link-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
}

.contact-link-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-guarantees {
    background: var(--dark-light);
    padding: 32px;
    border-radius: 16px;
    margin-top: 32px;
    border: 1px solid var(--border);
}

.contact-guarantees h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.guarantees-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.guarantee-item {
    color: var(--text-main);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
}

.guarantee-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* ===================================
   THREE.JS BACKGROUND
   =================================== */
#hero-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.service-card-corporate,
.problem-card,
.timeline-step,
.portfolio-item-corporate {
    background: #1e293b !important;
    backdrop-filter: none !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Small Mobile */
@media (max-width: 480px) {
    .portfolio-item-corporate {
        height: 55vh;
        padding: 1rem;
    }
    
    .portfolio-info-corporate p {
        display: none;
    }
    
    .portfolio-link-corporate {
        position: sticky;
        bottom: 1rem;
        background: #5FC2BA;
        color: white;
        padding: 1.2rem;
        border-radius: 0.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Mobile */
@media (min-width: 481px) and (max-width: 768px) {
    .portfolio-item-corporate {
        height: 58vh;
        padding: 1.2rem;
    }
    
    .portfolio-info-corporate p {
        display: none;
    }
    
    .portfolio-link-corporate {
        position: sticky;
        bottom: 1rem;
        background: #5FC2BA;
        color: white;
        padding: 1.2rem;
        border-radius: 0.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid-corporate {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-step {
        width: 45%;
    }
}

/* Tablet Landscape / Small Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Large Desktop */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Mobile */
/* Mobile Global Rules */
@media (max-width: 768px) {
    /* Animation simplifiée pour mobile */
    .hero-lead {
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
        -webkit-text-fill-color: initial;
        color: #e2e8f0;
        animation: textPulse 2s ease-in-out infinite;
    }
    
    @keyframes textPulse {
        0%, 100% { opacity: 0.9; }
        50% { opacity: 1; }
    }
    .problem-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 1rem;
    }
    
    .problem-card h3 {
        order: -1;
        margin-top: 0;
    }
    
    .problem-icon {
        order: -2;
        width: 3rem;
        height: 3rem;
        padding: 0.5rem;
        margin: 0;
    }
    /* Hero */
    .hero-corporate {
        min-height: 80vh;
        padding: 2rem 1rem;
        padding-top: 120px;
    }
    
    .hero-content-corporate {
        padding: 1rem;
        max-width: 100%;
    }
    
    .hero-corporate h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
        margin-top: 4rem;
        line-height: 1.2;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 2rem 1rem;
    }
    
    .benefit-item {
        min-width: 250px;
        max-width: 100%;
    }
    
    .hero-benefits-compact {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin: 2rem 1rem;
    }
    
    .hero-social-proof {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin: 2rem 1rem;
    }
    
    /* About */
    .expertise .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .expertise-profile {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .profile-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .about-me-content {
        flex-direction: column;
        text-align: center;
    }
    
    .expertise-value-props {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .value-prop-card {
        text-align: center;
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 200px;
    }
    
    /* Problems */
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .problem-card {
        text-align: center;
        padding: 2rem 1rem;
        display: block;
        grid-template-areas: none;
        grid-template-columns: none;
    }
    
    .problem-icon {
        width: 3rem;
        height: 3rem;
        margin: 0 auto 0.8rem auto;
        padding: 0.8rem;
        color: #38bdf8;
        grid-area: none;
    }
    
    .problem-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .problem-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
        grid-area: none;
        white-space: normal;
    }
    
    .problem-card ul {
        text-align: left;
        max-width: 100%;
        margin: 0 auto 1rem auto;
        grid-area: none;
    }
    
    .problem-cost {
        text-align: center;
        margin-top: 1rem;
        grid-area: none;
    }
    
    /* Services */
    .services-grid-corporate {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding-bottom: 2rem;
    }
    
    .service-card-corporate {
        position: sticky;
        top: 20vh;
        min-height: 400px;
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-visual {
        display: none;
    }
    
    .service-card-corporate h3 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .service-results {
        flex-direction: column;
    }
    
    /* Portfolio */
    .portfolio-grid-corporate {
        display: flex;
        flex-direction: column;
        gap: 12rem;
        padding-bottom: 4rem;
    }
    
    .portfolio-item-corporate {
        position: sticky;
        top: 15vh;
        display: flex;
        flex-direction: column;
        height: 60vh;
        max-height: none;
        padding: 1.5rem;
        margin-bottom: 0;
        z-index: auto;
    }
    
    .portfolio-info-corporate {
        flex: 1;
        display: flex;
        flex-direction: column;
        order: 2;
    }
    
    .portfolio-media {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .portfolio-media img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    .portfolio-info-corporate h3 {
        order: 2;
        font-size: 1.3rem;
    }
    
    .portfolio-info-corporate p {
        display: none;
    }
    
    .portfolio-link-corporate {
        display: block;
        margin-top: auto;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        flex-shrink: 0;
        order: 4;
        position: sticky;
        bottom: 1rem;
        background: #5FC2BA;
        border-radius: 0.5rem;
        font-weight: 600;
    }
    
    .portfolio-item-corporate:nth-child(1) { z-index: 1; }
    .portfolio-item-corporate:nth-child(2) { z-index: 2; }
    .portfolio-item-corporate:nth-child(3) { z-index: 3; }
    
    .portfolio-results {
        display: none;
    }
    
    .portfolio-item-corporate.featured {
        grid-column: span 1;
    }
    
    /* Methodology */
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-step {
        width: 100%;
        max-width: 400px;
    }
    
    .timeline-line {
        display: none;
    }
    
    /* Contact */
    .calc-line {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .guarantees-list {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-profile-badge {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .problem-card,
    .value-prop-card {
        padding: 24px;
    }
    
    .urgency-card {
        padding: 24px;
    }
    
    .roi-calculator {
        padding: 16px;
    }
    
    .benefit-item {
        min-width: 160px;
    }
}

@media (max-width: 600px) {
    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-step {
        width: 100%;
        max-width: 400px;
    }
    
    .timeline-line {
        display: none;
    }
}