/* 
   ModernWeb - Modern & Aesthetic Web Design
   Theme: Blue/White/Dark Slate
*/

:root {
    /* Colors */
    --primary: #2563EB;       /* Royal Blue */
    --primary-dark: #1E40AF;  /* Darker Blue for hover */
    --secondary: #0F172A;     /* Slate 900 - Dark Text/Bg */
    --accent: #3B82F6;        /* Lighter Blue */
    --background: #F8FAFC;    /* Slate 50 - Light Bg */
    --surface: #FFFFFF;       /* White */
    --text-main: #334155;     /* Slate 700 */
    --text-light: #475569;    /* Slate 600 - Darker for better contrast */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);

    /* Typography */
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Orbitron', sans-serif; /* Tech/Futuristic look */
    --font-epic: 'Orbitron', sans-serif; /* Tech/Futuristic look */
    
    /* Spacing */
    --container-width: 1280px; /* Increased for larger screens */
    --header-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Responsive Spacing */
    --section-spacing: clamp(60px, 8vw, 100px);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
    content-visibility: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-family: var(--font-epic);
    font-weight: 900; /* Extra bold as requested */
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.02em; /* Slightly wider for epic feel */
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-epic);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Preserve Logo Font */
.logo {
    font-family: var(--font-display) !important;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none !important; /* Logo stays normal case */
}

p {
    margin-bottom: 1rem;
}

/* Utilities */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem); /* Fluid padding */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-glow {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure button shape */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(37, 99, 235, 0.6),
        0 0 60px rgba(34, 211, 238, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.marketing-section {
    padding-top: 3rem; /* Reduce top padding to move cards higher */
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-electric-blue {
    color: #2563EB;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7); /* Reduced opacity for glass effect */
    backdrop-filter: blur(24px); /* Increased blur */
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtler border */
    transition: all 0.3s ease;
}

.navbar.glass-nav {
    /* Specific override to be safe, though inline styles created above match the request */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display); /* Use Syne font */
    letter-spacing: -0.04em;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    /* gap removed for tighter spacing */
}

.logo .logo-number {
    font-size: 0.85em; /* Adjusted size for the number 2 */
    color: var(--secondary);
    margin-top: 5px; /* Slight adjustment for alignment if needed, or remove */
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary);
    position: relative;
    z-index: 1100; /* Ensure it's above the full-screen menu */
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 100px); /* Increased spacing as requested */
    padding-bottom: 120px; /* Increased to allow gradient to fade nicely */
    position: relative;
    overflow: hidden;
    /* Fluid Blue Gradient (Brand Colors) - Double Fade Transition */
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0) 0%,      /* Transparent Top (Seamless Header) */
        rgba(37, 99, 235, 0.25) 25%,    /* Peak Royal Blue (Visible below header) */
        rgba(59, 130, 246, 0.12) 60%,   /* Soft Lighter Blue */
        rgba(255, 255, 255, 0) 100%     /* Fade to White/Transparent Bottom */
    );
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Background Blobs (Hidden for cleaner gradient look) */
.blob {
    display: none;
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #60A5FA;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Marketing Cards */
.marketing-section {
    background: var(--background);
    padding-bottom: 0; /* Reduce gap with next section */
}

.marketing-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%; /* Use full container width */
    max-width: none; /* Remove the 1000px limit */
    margin: 0 auto;
}

.marketing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 950px; /* Constrain width so alignment is visible */
}

/* Align cards centrally */
.marketing-card:nth-child(1),
.marketing-card.alt {
    margin: 0 auto;
}

/* Ensure alternate card has same direction if requested, or keep it standard. 
   If 'droite' means no zigzag, we remove the specific margins. 
   We also remove row-reverse to make them consistent. */
.marketing-card.alt {
    flex-direction: row;
}

@media (max-width: 768px) {
    .marketing-card, .marketing-card.alt {
        flex-direction: column;
    }
}

.marketing-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 10; /* Ensure it pops out above others if overlapping */
}



@media (min-width: 768px) {
    .marketing-card {
        flex-direction: row;
        align-items: stretch;
        min-height: 400px;
    }

    .marketing-card.alt {
        flex-direction: row-reverse; /* Invert order: Text left, Image right */
    }

    .card-image {
        width: 50%;
        flex: 0 0 50%;
        height: auto;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .card-content {
        width: 50%;
        flex: 0 0 50%;
        padding: 4rem; /* Increased padding for better spacing */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.card-image {
    width: 100%;
    height: auto;
    min-height: 300px; /* Restore mobile banner height */
    overflow: hidden;
    position: relative;
}

.card-image img {
    position: relative;
    width: 100%;
    height: 100%; /* Force fill */
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-content {
    padding: 2rem;
    position: relative;
}

.card-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.card-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
}

.card-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.card-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-main);
}

.card-content strong {
    color: var(--secondary);
    font-weight: 700;
}

.card-cta {
    font-weight: 500;
    color: var(--text-main);
}

.card-cta strong {
    color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-grid h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: white;
}

.footer-logo .logo-number {
    font-size: 0.85em;
    color: white;
    margin-top: 5px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94A3B8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.85); /* Increased opacity for accessibility compliance */
    font-size: 0.9rem;
}

footer p {
    color: rgba(255, 255, 255, 0.9); /* Ensure high contrast for main footer text */
}
/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        /* Bubble menu: positioned at top-right, not full screen */
        position: fixed;
        top: 15px;
        right: 15px;
        left: auto;
        width: auto;
        min-width: 280px;
        max-width: 340px;
        height: auto;
        max-height: calc(100vh - 100px);
        
        /* Rounded bubble look */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.08);
        
        /* Layout */
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        align-items: stretch;
        
        /* Bubble animation: starts tiny from top-right corner */
        transform-origin: top right;
        transform: scale(0);
        opacity: 0;
        visibility: hidden;
        
        /* Smooth spring-like animation */
        transition: 
            transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.25s ease,
            visibility 0s 0.35s;
        
        z-index: 1000;
    }

    .nav-links.active {
        transform: scale(1);
        opacity: 1;
        visibility: visible;
        transition: 
            transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity 0.25s ease,
            visibility 0s 0s;
    }
    
    /* Stagger animation for menu items */
    .nav-links.active li {
        animation: menuItemFadeIn 0.3s ease forwards;
        opacity: 0;
    }
    .nav-links.active li:nth-child(1) { animation-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.2s; }
    
    @keyframes menuItemFadeIn {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Compact link styling inside bubble */
    .nav-links .nav-link {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        font-size: 1.15rem;
        font-weight: 500;
        text-align: left;
        transition: background 0.2s ease;
    }
    
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(37, 99, 235, 0.08);
        color: var(--primary);
    }
    
    /* Remove underline in bubble menu as it's too far from text */
    .nav-links .nav-link::after {
        display: none;
    }
    
    .nav-links .btn-glow {
        margin-top: 0.5rem;
        text-align: center;
        border-radius: 12px;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .marketing-card {
        min-height: auto;
    }

    .card-image {
        height: 250px;
        min-height: 250px;
    }

    .card-content {
        padding: 2rem 1.5rem;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .team-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .team-member-img-wrapper {
        margin: 0 auto;
    }
}

/* Sticky Project Stack */
.portfolio-stack {
    position: relative;
    max-width: 1200px; /* Increased from 900px */
    margin: 0 auto;
    padding-bottom: 10vh; /* Space at bottom */
}

/* Sticky Header Wrapper */
.portfolio-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 900; /* Below navbar (1000) but above content */
    background: transparent;
    transition: all 0.3s ease;
    /* Trick to make the sticky container taller so it unsticks later (with the last card) */
    padding-bottom: 520px; /* Card height (500) + buffer (20) */
    margin-bottom: -520px; /* Compensate to not affect flow */
    pointer-events: none; /* Allow clicks to pass through the padding area */
}

.header-content {
    background: var(--background);
    pointer-events: auto; /* Restore clicks on the actual header */
    width: 100%;
}

.project-card-sticky {
    position: sticky;
    top: calc(var(--portfolio-offset, 250px) + 20px); /* Dynamic offset + buffer */
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1); /* Shadow pointing up to separate from card below */
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 4rem; /* Spacing for scroll flow */
    height: 500px; /* Reduced from 600px */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
}

.project-image {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Removed min-height to allow grid to control height */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes bottom spacing */
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.project-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Mobile Responsive for Stack */
@media (max-width: 768px) {
    .project-card-sticky {
        grid-template-columns: 1fr;
        min-height: auto;
        top: calc(var(--header-height) + 10px);
    }
    
    .project-image {
        height: 250px;
        min-height: auto;
    }
    
    .project-info {
        padding: 2rem;
    }
}

/* Homepage Projects Carousel */
.projects-carousel-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.projects-carousel > article {
    flex: 0 0 calc((100% - 4rem) / 3); /* 3 cartes visibles */
    min-width: 280px;
    scroll-snap-align: start;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

@media (max-width: 768px) {
    .projects-carousel > article {
        flex: 0 0 300px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
}

.project-card-home {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-card-home .project-image {
    height: 300px;
    width: 100%;
}

.project-card-home .project-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-card-home .project-desc {
    margin-bottom: 1.5rem;
    flex: 1; /* Pushes button to bottom */
}

/* Team Section */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.team-card.reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.team-member-img-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.team-member-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-role {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Philosophy Section */
.philosophy-pillars {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.pillar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pillar-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.pillar-item h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--secondary);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px; /* Fixed minimum height for uniformity */
    height: 100%; /* Fill the grid cell */
}

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

.testimonial-quote {
    margin-bottom: 2rem;
}

.testimonial-quote i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-quote p {
    font-size: 1.05rem;
    color: var(--text-main);
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: var(--secondary);
}

.testimonial-author p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 40px 0;
    margin-top: 0;
}

.cta-section h2 {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .team-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .philosophy-pillars {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

/* Tablet & Small Laptop (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --section-spacing: 80px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
    
    .marketing-card {
        min-height: auto;
    }
    
    .card-content {
        padding: 2rem;
    }

    .project-card-sticky {
        grid-template-columns: 1fr 1fr;
        height: 450px;
    }

    .project-info {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.75rem;
    }
}

/* Large Screens (> 1440px) */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
        --section-spacing: 120px;
    }
    
    .hero h1 {
        font-size: 5rem;
    }

    .project-card-sticky {
        height: 600px;
    }
}

/* Mobile Portfolio Filter */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    background: var(--surface);
    color: var(--secondary);
    border: 1px solid rgba(0,0,0,0.1);
}

.filter-buttons-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    margin: 0 !important; /* Override inline styles */
    padding: 8px 20px;
    font-size: 0.9rem;
}

.filter-btn:not(.active) {
    border-color: transparent;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .filter-buttons-wrapper {
        display: none;
        flex-direction: column;
        background: var(--surface);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        position: absolute;
        left: 20px;
        right: 20px;
        z-index: 100;
        border: 1px solid rgba(0,0,0,0.05);
    }

    .filter-buttons-wrapper.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .filter-btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }
    
    .portfolio-filters {
        position: relative;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes Extracted from HTML */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

.view-all-projects {
    margin-top: 2rem;
}

/* Shared Review Card Styles (Moved from avis.css) */
.review-item {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height in grid */
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
}

.review-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.review-stars {
    color: #FBBF24;
    font-size: 0.9rem;
    background: rgba(251, 191, 36, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
    align-items: center;
}

.review-content {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #334155; /* Slate 700 - Darker for homepage */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.review-date::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #334155;
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.cta-title {
    color: white;
    margin-bottom: 2rem;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketing-btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* Contact Page Utility Classes */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-link {
    color: var(--text-light);
}

.why-choose-us {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-wrapper {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Portfolio Page Utility Classes */
.portfolio-hero {
    padding-top: 90px;
    padding-bottom: 20px;
    min-height: auto;
}

.portfolio-subtitle {
    margin-bottom: 1rem;
}

.filter-container {
    padding-bottom: 2rem;
}

.filter-icon-right {
    margin-left: auto;
}

.portfolio-grid-section {
    padding-top: 20px;
    padding-bottom: 0;
}

.portfolio-stack-no-padding {
    padding-bottom: 0;
}

/* Services Page Utility Classes */
.services-hero {
    padding-bottom: 60px;
    min-height: auto;
}

.services-section-padding {
    padding-top: 0;
}

/* Refactoring Utilities */
.ml-2 { margin-left: 8px; }
.mt-10 { margin-top: 40px; }
.bg-background { background: var(--background); }
.bg-white { background: white; }
.col-span-full { grid-column: 1/-1; }
.object-pos-top { object-position: center 20%; }
.project-title-large { font-size: 1.5rem !important; }

/* =========================================
   Premium Project Grid (New Design)
   ========================================= */

.premium-project-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem; /* Large spacing between projects */
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 15rem 0;
}

.premium-project-card {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal split to ensure same image size */
    gap: 4rem;
    align-items: center;
    opacity: 0; /* JS Animation or remove if static */
    animation: fadeInUp 0.8s ease forwards;
}

/* Alternate Layout: Even children reverse order */
.premium-project-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl; /* Quick way to swap, but need to reset text direction */
}

.premium-project-card:nth-child(even) > * {
    direction: ltr; /* Reset text direction for children */
}

/* Adjust animation delay for stagger effect */
.premium-project-card:nth-child(1) { animation-delay: 0.1s; }
.premium-project-card:nth-child(2) { animation-delay: 0.2s; }
.premium-project-card:nth-child(3) { animation-delay: 0.3s; }
.premium-project-card:nth-child(4) { animation-delay: 0.4s; }

.premium-project-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
    cursor: pointer;
    aspect-ratio: 16/10; /* Modern widescreen ratio */
}

.premium-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Hover Effect */
.premium-project-image:hover {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

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

/* Overlay with "View Project" on hover */
/* Overlay removed by user request */
/* Overlay removed by user request */
.premium-project-image::after,
.premium-project-image:hover::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

.premium-project-content {
    padding: 1rem;
}

.premium-project-category {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.premium-project-title {
    font-size: 2.75rem; /* Large and bold */
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -1px;
}

.premium-project-desc {
    font-size: 1.125rem;
    color: var(--text-light); /* Slate 500 */
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.premium-project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.feature-tag {
    background: #F1F5F9;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.feature-tag:hover {
    background: #E2E8F0;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */

/* 1. Large Laptops & Desktops (max-width: 1400px) */
@media (max-width: 1400px) {
    .premium-project-grid {
        max-width: 90%;
        gap: 6rem;
    }
}

/* 2. Small Laptops & Landscape Tablets (max-width: 1200px) */
@media (max-width: 1200px) {
    .premium-project-grid {
        gap: 5rem;
    }

    .premium-project-card {
        gap: 3rem;
    }

    .premium-project-title {
        font-size: 2.5rem;
    }
}

/* 3. Tablets Portrait (max-width: 1024px) */
@media (max-width: 1024px) {
    .premium-project-grid {
        gap: 4rem;
        padding: 2rem 0;
    }
    
    .premium-project-card {
        grid-template-columns: 1fr 1fr; /* Equal split */
        gap: 2rem;
    }
    
    .premium-project-card:nth-child(even) {
        grid-template-columns: 1fr 1fr;
    }
    
    .premium-project-title {
        font-size: 2rem;
    }

    .premium-project-desc {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* 4. Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .premium-project-grid {
        display: flex;
        flex-direction: column;
        gap: 5rem; /* Good separation */
        padding: 1rem 0 4rem 0;
        max-width: 90%; /* Ensure side margins */
    }

    .premium-project-card, 
    .premium-project-card:nth-child(even) {
        /* Force vertical stack on mobile */
        display: flex !important;
        flex-direction: column-reverse !important; 
        direction: ltr !important; 
        gap: 1.5rem;
        align-items: flex-start; /* Left align items */
    }
    
    /* Ensure image order is correct if we want image on top */
    .premium-project-card .premium-project-image {
        order: -1;
    }

    .premium-project-image {
        width: 100%;
        aspect-ratio: 3/2; /* slightly taller on mobile */
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    /* Disable hover transform on mobile to avoid sticking */
    .premium-project-image:hover {
        transform: none;
    }
    
    .premium-project-image:hover img {
        transform: none;
    }
    
    .premium-project-image::after {
        display: none; /* Hide hover button on mobile */
    }

    .premium-project-content {
        padding: 0; /* Remove internal padding, wrapper handles it */
        text-align: left; /* Ensure left alignment */
        width: 100%;
    }

    .premium-project-category {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .premium-project-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .premium-project-desc {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .premium-project-features {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Make button full width for easy tapping */
    .premium-project-content .btn {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* 5. Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .premium-project-grid {
        gap: 4rem;
    }

    .premium-project-image {
        aspect-ratio: 4/3; /* Slightly squarer content */
    }

    .premium-project-title {
        font-size: 1.5rem; /* Smaller title */
    }
    
    .premium-project-content .btn {
        padding: 12px 20px;
    }
}

/* Review Text Truncation */
.review-content {
    transition: max-height 0.3s ease;
    /* Styles de base pour le texte */
}

.review-content.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    text-decoration: none;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* =========================================
   Project Details Modal
   ========================================= */
.project-modal-overlay {
    position: fixed !important;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.project-modal-overlay.active .project-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #374151;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
    background: #f43f5e;
    color: white;
    transform: rotate(90deg);
}

/* Image de la modal */
.modal-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.modal-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Corps de la modal */
.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 280px);
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin: 0;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-info-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.modal-info-item h4 {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-info-item h4 i {
    color: var(--primary);
}

.modal-info-item p {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    margin: 0;
}

/* Description de la modal */
.modal-description {
    margin-bottom: 1.5rem;
}

.modal-description h4 {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-description h4 i {
    color: var(--primary);
}

.modal-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.modal-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .project-modal-content {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-image-container {
        height: 200px;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.35rem;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* QCM Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.qcm-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.qcm-step.active {
    display: block;
}

.qcm-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qcm-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    background: none;
    font-size: 1rem;
    color: var(--text-main);
}

.qcm-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.qcm-result {
    text-align: center;
}

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

.bg-light {
    background-color: var(--background);
}

/* ==========================================
   ENHANCED CTA PROJECT SECTION
   ========================================== */

.cta-project-section {
    background: #0F172A;
    color: #F8FAFC;
    position: relative;
    overflow: visible;
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Vague du haut - transition douce */
.cta-project-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: #F8FAFC;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: 1;
}

/* Vague du bas - transition douce */
.cta-project-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 120px;
    background: #F8FAFC;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.cta-project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.float-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(59, 130, 246, 0.3);
    animation: float 6s ease-in-out infinite;
}

.float-icon.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-icon.icon-2 { top: 20%; right: 15%; animation-delay: 1s; }
.float-icon.icon-3 { bottom: 30%; left: 8%; animation-delay: 2s; }
.float-icon.icon-4 { top: 15%; right: 25%; animation-delay: 0.5s; font-size: 20px; }
.float-icon.icon-5 { bottom: 20%; right: 10%; animation-delay: 1.5s; }
.float-icon.icon-6 { bottom: 15%; left: 25%; animation-delay: 2.5s; font-size: 28px; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.6; }
}

/* Content */
.cta-project-content {
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.cta-badge i {
    font-size: 0.75rem;
}

.cta-title {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.cta-description strong {
    color: white;
}

/* Benefits */
.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.benefit-item i {
    color: #22C55E;
    font-size: 1rem;
}

/* CTA Button */
.btn-cta-project {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #60A5FA 100%);
    background-size: 200% 200%;
    color: white;
    padding: 18px 36px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    animation: gradientShift 3s ease infinite;
}

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

.btn-cta-project:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

.btn-cta-project i {
    transition: transform 0.3s ease;
}

.btn-cta-project:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-project-card {
        padding: 40px 24px;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .btn-cta-project {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .float-icon {
        display: none;
    }
}




/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--primary);
    max-width: 400px;
}

.toast-notification.active {
    transform: translateX(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-content h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--secondary);
}

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

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    font-size: 1rem;
    transition: color 0.3s;
}

.toast-close:hover {
    color: var(--secondary);
}

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

.toast-success {
    border-left-color: #22c55e;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.toast-error {
    border-left-color: #ef4444;
}
