    /* Variables et Reset */
    :root {
        --primary-color: #0A0A0A;
        --secondary-color: #1A1A1A;
        --accent-color: #2C2C2C;
        --text-color: #E0E0E0;
        --background-color: #0F0F0F;
        --section-bg: #121212;
        --transition: all 0.3s ease;
        --border-radius: 8px;
        --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
        --gradient-accent: linear-gradient(45deg, #2C2C2C 0%, #1A1A1A 100%);
        --nav-bg: rgba(10, 10, 10, 0.75);
        --nav-border: rgba(255, 255, 255, 0.1);
        --nav-text: #333333;
        --nav-hover: #666666;
        --pill-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --pill-glow: 0 2px 12px rgba(102, 126, 234, 0.35);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Poppins', sans-serif;
        line-height: 1.6;
        color: var(--text-color);
        background-color: var(--background-color);
        overflow-x: hidden;
    }

    /* Navigation */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 1rem 5%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1000;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        height: 70px;
        border-bottom: 1px solid var(--nav-border);
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        height: 60px;
        padding: 0.5rem 5%;
        background: rgba(10, 10, 10, 0.85);
    }

    .navbar.scrolled .logo {
        font-size: 1.2rem;
        transform: scale(0.95);
    }

    .navbar.scrolled .nav-links a {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-color);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        transition: var(--transition);
        text-decoration: none;
        cursor: pointer;
        position: relative;
        display: inline-block;
        user-select: none;
        z-index: 1001;
        overflow: hidden;
        padding: 0.5rem 0;
    }

    .logo::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--pill-gradient);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
    }

    .logo:hover {
        color: #FFFFFF;
        opacity: 1;
        text-decoration: none;
        text-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
    }

    .logo:hover::after {
        transform: translateX(0);
    }

    /* ===== CODE DÉSACTIVÉ : Interaction draggable avec image =====
    .logo.dragging {
        cursor: grabbing;
        z-index: 1002;
        color: transparent;
        text-shadow: none;
        transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .logo.dragging::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .logo::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        width: 150px;
        height: 50px;
        background-image: url('assets/nav bar/ZEZF.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .logo:hover:not(.dragging) {
        color: transparent;
        text-shadow: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .logo:hover:not(.dragging)::before {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    ===== FIN CODE DÉSACTIVÉ ===== */

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

    .nav-links a {
        text-decoration: none;
        color: var(--text-color);
        font-weight: 500;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--pill-gradient);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
    }

    .nav-links a:hover {
        color: #FFFFFF;
        text-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        transform: translateX(0);
    }

    .nav-links a.active {
        color: #FFFFFF;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(102, 126, 234, 0.45);
    }

    .menu-toggle {
        display: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            background: white;
            padding: 1rem;
            flex-direction: column;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 999;
        }

        .menu-toggle {
            display: block;
        }
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        padding: 120px 5% 8rem;
        background: var(--gradient-dark);
        position: relative;
        overflow: hidden;
    }

    /* Vidéo en arrière-plan de la section hero */
    .hero-background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%) scale(1);
        object-fit: cover;
        z-index: 0;
        opacity: 0.3;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(44, 44, 44, 0.1) 0%, transparent 70%);
        pointer-events: none;
        z-index: 1;
    }

    .hero-content {
        max-width: 600px;
        z-index: 2;
        margin-top: 2rem;
        margin-bottom: -2rem;
        position: relative;
    }

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        background: linear-gradient(45deg, #FFFFFF, #CCCCCC);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .hero .subtitle {
        font-size: 1.2rem;
        color: var(--text-color);
        opacity: 0.9;
        margin-bottom: 1rem;
    }

    .hero-badge {
        display: inline-block;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
        border-radius: 999px;
        background: rgba(102, 126, 234, 0.25);
        border: 1px solid rgba(102, 126, 234, 0.5);
        color: #fff;
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.03em;
    }

    .hero-tagline {
        font-size: 0.95rem;
        opacity: 0.75;
        margin-bottom: 0.75rem;
    }

    .hero-location {
        font-size: 0.95rem;
        opacity: 0.85;
        margin-bottom: 1.5rem;
    }

    .featured-section {
        padding: 5rem 5% 3rem;
    }

    .featured-grid {
        max-width: 1400px;
        margin: 0 auto;
    }

    .featured-cards-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    @media (max-width: 992px) {
        .featured-cards-container {
            grid-template-columns: 1fr;
            max-width: 400px;
        }
    }

    .featured-cards-container .project-card {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transform: none !important;
        animation: none !important;
    }

    .featured-cta {
        text-align: center;
        margin-top: 2.5rem;
    }

    .portfolio-wrapper {
        padding: 2rem 0 4rem;
    }

    .portfolio-wrapper > .section-header {
        padding: 0 5% 2rem;
    }

    .subsection-header {
        padding: 0 5%;
        margin-bottom: 1.5rem;
    }

    .subsection-header h3 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .subsection-header p {
        opacity: 0.8;
    }

    .subsection-external-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.65rem 1.25rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #a8b4ff;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .subsection-external-link:hover {
        background: rgba(168, 180, 255, 0.15);
        color: #fff;
    }

    .project-type-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 3;
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        overflow: hidden;
        isolation: isolate;
        transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-type-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.32) 50%,
            rgba(255, 255, 255, 0.08) 100%
        );
        transform: translateX(-100%) skewX(-15deg);
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        z-index: -1;
    }

    .project-type-badge::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
        pointer-events: none;
        z-index: -1;
    }

    .project-type-badge:hover::before,
    .project-card:hover .project-type-badge::before {
        transform: translateX(100%) skewX(-15deg);
    }

    .project-type-badge:hover::after,
    .project-card:hover .project-type-badge::after {
        width: 180px;
        height: 180px;
    }

    .project-type-badge:hover,
    .project-card:hover .project-type-badge {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }

    .project-type-badge[data-project-type="client-paye"] {
        background: rgba(110, 231, 183, 0.88);
        border-color: rgba(6, 78, 59, 0.35);
        color: #064e3b;
    }

    .project-type-badge[data-project-type="mission-client"] {
        background: rgba(147, 197, 253, 0.88);
        border-color: rgba(30, 58, 95, 0.35);
        color: #1e3a5f;
    }

    .project-type-badge[data-project-type="brief"] {
        background: rgba(253, 224, 71, 0.92);
        border-color: rgba(202, 138, 4, 0.45);
        color: #422006;
    }

    .project-type-badge[data-project-type="diplome"] {
        background: rgba(192, 132, 252, 0.88);
        border-color: rgba(59, 7, 100, 0.35);
        color: #3b0764;
    }

    .project-type-badge[data-project-type="collaboration"] {
        background: rgba(251, 146, 132, 0.88);
        border-color: rgba(127, 29, 29, 0.35);
        color: #7f1d1d;
    }

    .project-type-badge[data-project-type="candidature"] {
        background: rgba(165, 180, 252, 0.88);
        border-color: rgba(49, 46, 129, 0.35);
        color: #312e81;
    }

    .project-type-badge[data-project-type="personnel"] {
        background: rgba(249, 168, 212, 0.88);
        border-color: rgba(131, 24, 67, 0.35);
        color: #831843;
    }

    .project-type-badge[data-project-type="academique"] {
        background: rgba(103, 232, 249, 0.88);
        border-color: rgba(22, 78, 99, 0.35);
        color: #164e63;
    }

    .project-type-badge[data-project-type="en-vente"] {
        background: rgba(253, 186, 116, 0.9);
        border-color: rgba(124, 45, 18, 0.35);
        color: #7c2d12;
    }

    .modal-details .project-type-badge {
        position: relative;
        display: inline-block;
        margin-bottom: 0.5rem;
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
        top: auto;
        left: auto;
    }

    .ui-placeholder {
        width: 100%;
        height: 100%;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-align: center;
        padding: 2rem;
    }

    .ui-placeholder i {
        font-size: 2.5rem;
        opacity: 0.9;
    }

    .about-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .about-block {
        padding: 1.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .about-block h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        color: #fff;
    }

    .about-block h3 i {
        margin-right: 0.4rem;
        opacity: 1;
    }

    .about-block h3 .fa-graduation-cap {
        color: #c4b5fd;
    }

    .about-block h3 .fa-tools {
        color: #7dd3fc;
    }

    .about-block h3 .fa-briefcase {
        color: #6ee7b7;
    }

    .about-block h3 .fa-palette {
        color: #f9a8d4;
    }

    .about-contact-link {
        text-align: center;
        margin-top: 2.5rem;
    }

    .about-contact-link .cta-button {
        display: inline-block;
    }

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

    .about-block li {
        margin-bottom: 0.35rem;
        opacity: 0.9;
    }

    .about-detail-line {
        font-size: 0.9rem;
        opacity: 0.85;
        margin-top: -0.25rem;
    }

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

    .tools-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tool-tag {
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        font-size: 0.85rem;
    }

    .about-block a {
        color: #a8b4ff;
        text-decoration: none;
    }

    .about-block a:hover {
        text-decoration: underline;
    }

    .contact-direct {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .contact-email-btn,
    .contact-cv-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.85rem 1.5rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        text-decoration: none;
        transition: var(--transition);
    }

    .contact-email-btn:hover,
    .contact-cv-btn:hover {
        background: var(--gradient-accent);
    }

    .modal-project-info {
        margin-bottom: 0;
        padding: 0.65rem 0.85rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .modal-project-info p {
        margin: 0 0 0.35rem;
        font-size: 0.82rem;
        line-height: 1.45;
    }

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

    .modal-demo-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.65rem;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        background: var(--gradient-accent);
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .modal-ui-demo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        min-height: 320px;
        padding: 2rem;
        gap: 1rem;
    }

    .modal-ui-demo i {
        font-size: 3rem;
        color: #a8b4ff;
    }

    .video-cards-grid {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        align-items: flex-start;
        min-height: 400px;
    }

    .video-cards-grid .project-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        width: 100%;
    }

    @media (min-width: 1200px) {
        .video-cards-grid .project-card {
            flex: 0 0 calc(50% - 1rem);
            max-width: min(640px, calc(50% - 1rem));
        }
    }

    .project-card .project-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
        color: white;
        padding: 2rem 1.5rem 1.5rem;
        z-index: 2;
    }

    .project-card .project-info h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .project-card .project-info .project-meta {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        opacity: 0.85;
    }

    .hero-description {
        margin-bottom: 2rem;
        color: var(--text-color);
    }

    .expertise-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 1rem;
    }

    .expertise-tags span {
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        font-size: 0.9rem;
        box-shadow: var(--box-shadow);
        color: var(--text-color);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
    }

    .cta-buttons {
        display: flex;
        gap: 1rem;
    }

    .cta-button {
        display: inline-block;
        padding: 1rem 2rem;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 500;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
    }

    .cta-button.primary {
        background: var(--gradient-accent);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .cta-button.secondary {
        background: var(--gradient-accent);
        border: 1px solid rgba(255, 255, 255,  0.1);
        color: var(--text-color);
    }

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 100%);
        transform: translateX(-100%) skewX(-15deg);
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .cta-button:hover::before {
        transform: translateX(100%) skewX(-15deg);
    }

    .cta-button.primary:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--text-color);
    }

    .cta-button.secondary:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--text-color);
    }

    .cta-button::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
        z-index: -1;
    }

    .cta-button:hover::after {
        width: 300px;
        height: 300px;
    }

    /* Section À propos */
    .about-section {
        position: relative;
        padding: 6rem 5%;
        background: var(--background-color);
    }

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .about-container {
        max-width: 840px;
        margin: 0 auto;
        width: 100%;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        opacity: 0;
    }

    .about-title {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 2.5rem;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .about-text {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }

    .about-text p {
        font-size: 1.05rem;
        line-height: 1.85;
        color: var(--text-color);
        opacity: 0.9;
        margin: 0;
    }

    .about-intro {
        font-size: 1.15rem;
        font-weight: 500;
        line-height: 1.75;
        opacity: 1;
    }

    /* Responsive - Mobile */
    @media (max-width: 768px) {
        .about-section {
            padding: 4rem 5%;
        }

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

        .about-text p {
            font-size: 1rem;
        }

        .about-intro {
            font-size: 1.05rem;
        }

        .about-details {
            grid-template-columns: 1fr;
            margin-top: 2.5rem;
            padding-top: 2rem;
        }
    }

    /* Animation subtile au scroll - activée par IntersectionObserver */
    .about-section.fade-in {
        animation: fadeInUp 0.8s ease forwards;
    }

    .about-content.fade-in {
        animation: fadeInUp 0.7s ease 0.15s forwards;
    }

    /* Portfolio Sections */
    .portfolio-section {
        position: relative;
        padding: 5rem 5%;
        background: var(--section-bg);
    }

    .portfolio-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

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

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--text-color);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .section-header p {
        color: var(--text-color);
        opacity: 0.8;
        font-size: 1.1rem;
    }

    .filter-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .portfolio-section--no-filters .subsection-header {
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.5rem 1.5rem;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 1rem;
        color: var(--text-color);
        transition: var(--transition);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

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

    .filter-btn:hover::before {
        transform: translateX(100%);
    }

    .filter-btn.active,
    .filter-btn:hover {
        background: var(--gradient-accent);
        color: white;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .portfolio-empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 280px;
        padding: 3rem 2rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.75);
    }

    .portfolio-empty-message {
        font-size: 1.15rem;
        margin: 0 0 0.75rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .portfolio-empty-hint {
        font-size: 0.95rem;
        margin: 0;
        opacity: 0.7;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .portfolio-empty-link {
        display: inline-flex;
        align-items: center;
        margin-top: 0.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 999px;
        background: rgba(168, 180, 255, 0.12);
        border: 1px solid rgba(168, 180, 255, 0.35);
        color: #a8b4ff;
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

    .portfolio-empty-link:hover {
        background: var(--gradient-accent);
        color: #fff;
        border-color: transparent;
    }

    .project-card-cta {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        padding: 0.65rem 1.25rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        color: white;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        opacity: 0;
        transition: opacity 0.35s ease, transform 0.35s ease;
        pointer-events: none;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        white-space: nowrap;
    }

    .project-card:hover .project-card-cta {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.03);
    }

    .portfolio-grid {
        position: relative;
        padding: 2rem 4rem;
        overflow: visible;
        margin: 0 auto;
        max-width: 1400px;
    }

    .cards-container {
        display: flex;
        gap: 2rem;
        width: 100%;
        position: relative;
        justify-content: center;
        align-items: center;
        min-height: 400px;
    }

    .project-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        display: none;
        position: relative;
    }

    .project-card.visible {
        opacity: 1;
        transform: translateX(0);
        display: block;
    }

    .carousel-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 0 2rem;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        gap: 2rem;
    }

    .project-card {
        background: var(--secondary-color);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        cursor: pointer;
        opacity: 0;
        transform: translateX(20px);
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.8) 100%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: 1;
    }

    .project-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.1);
    }

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

    .project-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        filter: brightness(0.9);
    }

    .project-card:hover img {
        transform: scale(1.05);
        filter: brightness(1);
    }

    .project-info {
        padding: 2rem;
        position: relative;
        z-index: 2;
        transform: translateY(20px);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.4) 100%
        );
    }

    .project-card:hover .project-info {
        transform: translateY(0);
    }

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

    .project-info p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .project-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .project-meta span {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .project-meta span:first-child::before {
        content: '👤';
        font-size: 1rem;
    }

    .project-meta span:last-child::before {
        content: '📅';
        font-size: 1rem;
    }

    /* Animation des cartes */
    @keyframes cardAppear {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .project-card {
        animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }

    .project-card:nth-child(1) { animation-delay: 0.1s; }
    .project-card:nth-child(2) { animation-delay: 0.2s; }
    .project-card:nth-child(3) { animation-delay: 0.3s; }
    .project-card:nth-child(4) { animation-delay: 0.4s; }
    .project-card:nth-child(5) { animation-delay: 0.5s; }
    .project-card:nth-child(6) { animation-delay: 0.6s; }

    /* Contact Section */
    .contact {
        padding: 5rem 5%;
        background: var(--gradient-dark);
        color: #E0E0E0;
        position: relative;
    }

    .contact::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    }

    .contact-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-group {
        position: relative;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        font-size: 1rem;
        transition: var(--transition);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text-color);
    }

    /* Select fermé : texte blanc */
    .form-group select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
        background-color: rgba(255, 255, 255, 0.03);
        color: var(--text-color);
    }

    .form-group label {
        position: absolute;
        left: 1rem;
        top: 1rem;
        color: var(--text-color);
        transition: var(--transition);
        pointer-events: none;
        background: var(--primary-color);
        padding: 0 0.5rem;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Select ouvert / focus : texte noir sur fond blanc (après les autres styles focus) */
    .form-group select:focus,
    .form-group select:active {
        background-color: #ffffff;
        color: #000000;
    }
    
    /* Options du menu : texte noir sur fond blanc */
    .form-group select option {
        background-color: #ffffff;
        color: #000000;
        padding: 0.75rem 1rem;
    }

    .form-group input:focus + label,
    .form-group textarea:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:not(:placeholder-shown) + label,
    .form-group select:focus + label,
    .form-group select:not([value=""]) + label {
        top: -0.5rem;
        left: 0.5rem;
        font-size: 0.8rem;
        color: var(--text-color);
    }

    .submit-btn {
        padding: 1rem 2rem;
        background: var(--gradient-accent);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: var(--transition);
        font-weight: 500;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
        z-index: 0;
    }
    
    .submit-btn > * {
        position: relative;
        z-index: 1;
    }

    .submit-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
    }

    .submit-btn:hover::after {
        width: 2000px;
        height: 2000px;
    }

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: wait;
    }

    .submit-btn.success {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        border-color: rgba(167, 243, 208, 0.4);
    }

    .contact-form-honeypot {
        display: none;
    }

    .contact-form-status {
        margin: 0;
        font-size: 0.9rem;
        text-align: center;
        min-height: 1.25rem;
    }

    .contact-form-status--success {
        color: #6ee7b7;
    }

    .contact-form-status--error {
        color: #fca5a5;
    }
    
    .submit-btn span,
    .submit-btn i {
        position: relative;
        z-index: 1;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    /* Footer */
    footer {
        background: var(--primary-color);
        color: #E0E0E0;
        padding: 2rem 5%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-links {
        display: flex;
        gap: 1.5rem;
    }

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

    .footer-links a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: var(--text-color);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .footer-links a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .navbar {
            padding: 1rem 5%;
        }

        .nav-links {
            display: none;
            position: fixed;
            top: 80px;
            left: 0;
            width: 100%;
            background: rgba(10, 10, 10, 0.98);
            padding: 2rem;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            transform: translateY(-100%);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .nav-links.active {
            display: flex;
            transform: translateY(0);
            opacity: 1;
        }

        .menu-toggle {
            display: block;
        }

        .nav-links a {
            font-size: 1.2rem;
        }

        .hero {
            padding: 100px 5% 3rem;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-top: 1rem;
        }

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

        .footer-content {
            flex-direction: column;
            text-align: center;
        }

        .footer-links {
            justify-content: center;
        }

        .portfolio-grid {
            padding: 1.5rem 1rem;
        }

        .cards-container {
            flex-direction: column;
            align-items: stretch;
            min-height: 0;
            gap: 1.5rem;
        }

        .cards-container .project-card,
        .portfolio-grid .project-card {
            flex: 0 0 100%;
            width: 100%;
            max-width: 100%;
        }

        .video-cards-grid {
            max-width: 100%;
        }

        .video-cards-grid .project-card {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .contact {
            padding: 3rem 5%;
        }

        .contact-direct {
            flex-direction: column;
            align-items: stretch;
        }

        .contact-email-btn,
        .contact-cv-btn {
            justify-content: center;
            width: 100%;
            font-size: 0.92rem;
        }

        .social-links {
            flex-wrap: wrap;
            justify-content: center;
        }

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

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

    @media (max-width: 992px) and (min-width: 769px) {
        .cards-container {
            flex-wrap: wrap;
        }

        .cards-container .project-card,
        .portfolio-grid .project-card {
            flex: 0 0 calc(50% - 1rem);
        }
    }

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

    .hero-content,
    .portfolio-section,
    .contact-container {
        animation: fadeIn 1s ease-out;
    }

    /* Accessibilité */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation: none !important;
            transition: none !important;
        }
    }

    /* Focus styles */
    :focus {
        outline: 2px solid var(--text-color);
        outline-offset: 2px;
    }

    /* Skip to main content */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--text-color);
        color: var(--primary-color);
        padding: 8px;
        z-index: 100;
        transition: top 0.3s;
    }

    .skip-link:focus {
        top: 0;
    }

    /* Scrollbar personnalisée */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--primary-color);
    }

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

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

    /* Effets de survol modernes */
    .social-links a {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .social-links a::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: var(--gradient-accent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

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

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

    .social-links a i {
        position: relative;
        z-index: 1;
        color: #ffffff;
        transition: transform 0.3s ease;
    }

    .social-links a:hover i {
        transform: scale(1.2);
    }

    /* Animations au défilement */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

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

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

    /* Classes d'animation */
    .animate-fade-up {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    .animate-fade-left {
        opacity: 0;
        animation: fadeInLeft 0.8s ease forwards;
    }

    .animate-fade-right {
        opacity: 0;
        animation: fadeInRight 0.8s ease forwards;
    }

    .animate-scale {
        opacity: 0;
        animation: scaleIn 0.8s ease forwards;
    }

    /* Délais d'animation */
    .delay-100 { animation-delay: 0.1s; }
    .delay-200 { animation-delay: 0.2s; }
    .delay-300 { animation-delay: 0.3s; }
    .delay-400 { animation-delay: 0.4s; }
    .delay-500 { animation-delay: 0.5s; }

    /* Application des animations aux sections */
    .hero-content h1 {
        animation: fadeInUp 0.8s ease forwards;
    }

    .hero-content .subtitle {
        animation: fadeInUp 0.8s ease 0.2s forwards;
        opacity: 0;
    }

    .hero-content .hero-description {
        animation: fadeInUp 0.8s ease 0.4s forwards;
        opacity: 0;
    }

    .expertise-tags span {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    .expertise-tags span:nth-child(1) { animation-delay: 0.6s; }
    .expertise-tags span:nth-child(2) { animation-delay: 0.7s; }
    .expertise-tags span:nth-child(3) { animation-delay: 0.8s; }
    .expertise-tags span:nth-child(4) { animation-delay: 0.9s; }

    .cta-buttons {
        opacity: 0;
        animation: fadeInUp 0.8s ease 1s forwards;
    }

    .section-header {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    .filter-buttons {
        opacity: 0;
        animation: fadeInUp 0.8s ease 0.2s forwards;
    }

    .portfolio-grid {
        opacity: 0;
        animation: scaleIn 0.8s ease 0.4s forwards;
    }

    .project-card {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    /* Animation des cartes de projet au défilement */
    .project-card:nth-child(odd) {
        animation: fadeInLeft 0.8s ease forwards;
    }

    .project-card:nth-child(even) {
        animation: fadeInRight 0.8s ease forwards;
    }

    /* Animation du formulaire de contact */
    .contact-form {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    .form-group {
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    .form-group:nth-child(1) { animation-delay: 0.2s; }
    .form-group:nth-child(2) { animation-delay: 0.3s; }
    .form-group:nth-child(3) { animation-delay: 0.4s; }
    .form-group:nth-child(4) { animation-delay: 0.5s; }

    .submit-btn {
        opacity: 0;
        animation: fadeInUp 0.8s ease 0.6s forwards;
    }

    /* Animation des liens sociaux */
    .social-links a {
        opacity: 0;
        animation: scaleIn 0.5s ease forwards;
    }

    .social-links a:nth-child(1) { animation-delay: 0.7s; }
    .social-links a:nth-child(2) { animation-delay: 0.8s; }
    .social-links a:nth-child(3) { animation-delay: 0.9s; } 

    /* Modal styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 2000;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .modal-content-container {
        position: relative;
        width: 95%;
        max-width: 1600px;
        margin: auto;
        background: rgba(26, 26, 26, 0.3);
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
        animation: modalSlideUp 0.5s ease-out;
        height: min(85vh, calc(100vh - 40px));
        max-height: calc(100vh - 40px);
        min-height: min(75vh, calc(100vh - 40px));
        flex-shrink: 0;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-media-column {
        flex: 1.1;
        min-width: 55%;
        max-width: 55%;
        display: flex;
        flex-direction: column;
        max-height: 100%;
        min-height: 0;
    }

    .modal-image-container {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        position: relative;
        overflow: hidden;
    }

    .modal-navigation {
        display: none;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.5rem 0.75rem;
        flex-shrink: 0;
    }

    .modal-ui-demo-actions {
        display: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        padding: 0 1.5rem 1.25rem;
        flex-shrink: 0;
    }

    .modal-ui-demo-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: min(100%, 320px);
        padding: 0.85rem 1.25rem;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        border: none;
        font-family: inherit;
    }

    .modal-ui-demo-btn--primary {
        background: linear-gradient(135deg, #6d7cff 0%, #4f5bd5 100%);
        color: #fff;
        box-shadow: 0 8px 24px rgba(79, 91, 213, 0.35);
    }

    .modal-ui-demo-btn--primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(79, 91, 213, 0.45);
    }

    .modal-ui-demo-btn--secondary {
        background: rgba(255, 255, 255, 0.08);
        color: #a8b4ff;
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .modal-ui-demo-btn--secondary:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-1px);
    }

    .device-preview-mount--hidden {
        display: none !important;
    }

    .modal-nav-btn {
        padding: 0.75rem 1.25rem;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .modal-nav-btn:hover:not(:disabled) {
        background: var(--pill-gradient);
        border-color: transparent;
        box-shadow: var(--pill-glow);
        transform: scale(1.05);
    }

    .modal-nav-btn:disabled {
        cursor: not-allowed;
        opacity: 0.4;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
    }

    .modal-nav-download {
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        margin-left: 0.25rem;
        white-space: nowrap;
    }

    .modal-nav-download .fa-file-pdf {
        color: #f87171;
    }

    .modal-nav-download:hover:not(:disabled) .fa-file-pdf {
        color: #fff;
    }

    .modal-nav-counter {
        padding: 0.75rem 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 5px;
        font-size: 0.95rem;
        min-width: 80px;
        text-align: center;
    }

    .modal-content {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    }

    .modal-content.modal-content--zoomable {
        cursor: zoom-in;
    }

    .modal-content.modal-content--zoomable.is-zoomed {
        cursor: zoom-out;
        object-fit: contain;
    }

    .modal-image-container.is-zoom-active {
        overflow: auto;
        align-items: flex-start;
        justify-content: flex-start;
        cursor: grab;
    }

    .modal-image-container.is-zoom-active:active {
        cursor: grabbing;
    }

    .modal-image-container video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .modal-details {
        flex: 1;
        padding: 1.35rem 1.5rem;
        color: var(--text-color);
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.1));
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .modal-details h2 {
        font-size: clamp(1.25rem, 2vw, 1.65rem);
        margin-bottom: 0.75rem;
        line-height: 1.25;
        color: #FFFFFF;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .modal-details > p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: 1rem;
        color: rgba(255, 255, 255, 0.95);
    }

    /* Styles pour le slider de description */
    .description-slider {
        margin-bottom: 1rem;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .slider-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
        border-bottom: none;
        flex-shrink: 0;
    }

    .slider-tab {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.55);
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        font-family: 'Poppins', sans-serif;
        white-space: nowrap;
        border-radius: 999px;
    }

    .slider-tab:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    .slider-tab.active {
        color: #FFFFFF;
        background: var(--pill-gradient);
        border-radius: 999px;
        box-shadow: var(--pill-glow);
    }

    .slider-tab.active::after {
        content: none;
    }

    .slider-content {
        position: relative;
        min-height: 72px;
        flex: 1 1 auto;
        overflow-y: auto;
        padding-right: 0.15rem;
    }

    .slider-panel {
        display: none;
        animation: fadeIn 0.3s ease;
    }

    .slider-panel.active {
        display: block;
    }

    .slider-panel p {
        font-size: 0.92rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, 0.92);
        margin: 0 0 0.75rem;
    }

    .modal-details-bottom {
        margin-top: auto;
        flex-shrink: 0;
    }

    .modal-details-bottom .modal-project-info {
        margin-bottom: 0;
    }

    .modal-details-bottom .modal-project-info[style*="display: none"],
    .modal-details-bottom .modal-project-info:empty {
        display: none !important;
    }

    .modal-details-bottom .modal-meta {
        padding-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-details-bottom .modal-project-info:not([style*="display: none"]):not(:empty) + .modal-meta {
        margin-top: 0.65rem;
    }

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

    .modal-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 0.75rem;
        padding-top: 0;
        border-top: none;
        margin-top: 0;
        flex-shrink: 0;
    }

    .modal-meta .meta-item:last-child {
        grid-column: 1 / -1;
    }

    .meta-item {
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        color: rgba(255, 255, 255, 0.92);
        font-size: 0.85rem;
        line-height: 1.35;
        padding: 0;
        min-width: 0;
    }

    .meta-item i {
        flex-shrink: 0;
        width: 1rem;
        margin-top: 0.15rem;
        opacity: 1;
        font-size: 0.8rem;
    }

    .meta-item .fa-user {
        color: #667eea;
    }

    .meta-item .fa-calendar {
        color: #8b9cff;
    }

    .meta-item .fa-tag {
        color: #a78bfa;
    }

    .meta-item span {
        min-width: 0;
    }

    /* Suppression des anciens styles d'emoji qui ne sont plus nécessaires */
    .meta-item[data-type="client"]::before,
    .meta-item[data-type="year"]::before,
    .meta-item[data-type="category"]::before,
    .meta-item[data-category="affiche"]::before,
    .meta-item[data-category="photo"]::before,
    .meta-item[data-category="video"]::before,
    .meta-item[data-category="design"]::before,
    .meta-item[data-category="portrait"]::before,
    .meta-item[data-category="paysage"]::before {
        content: none;
    }

    .modal-close {
        position: absolute;
        right: 20px;
        top: 20px;
        color: #f1f1f1;
        font-size: 35px;
        font-weight: bold;
        cursor: pointer;
        z-index: 2001;
        transition: all 0.3s ease;
        background: rgba(0, 0, 0, 0.6);
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-close:hover {
        color: #fff;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.1) rotate(90deg);
        box-shadow: 0 0 24px rgba(102, 126, 234, 0.55);
    }

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

    .nav-arrows {
        position: absolute;
        top: 50%;
        left: -60px;
        right: -60px;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        pointer-events: none;
        z-index: 10;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.7);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        pointer-events: auto;
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav-arrow:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    .nav-arrow.prev {
        margin-left: 0;
    }

    .nav-arrow.next {
        margin-right: 0;
    }

    /* Animation pour les cartes */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

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

    .project-card.visible {
        opacity: 1;
        transform: translateX(0);
    }

    /* Ajustement pour les images en mode portrait */
    @media (max-aspect-ratio: 1/1) {
        .modal-content-container {
            flex-direction: column;
            height: auto;
            min-height: 0;
            max-height: 98vh;
            width: 98%;
        }

        .modal-media-column {
            min-width: 100%;
            max-width: 100%;
            max-height: none;
        }

        .modal-image-container {
            height: 65vh;
            padding: 0.5rem;
        }

        .modal-navigation {
            padding: 0.75rem 1rem 1rem;
        }

        .modal-content {
            max-height: 100%;
        }

        .modal-details {
            max-height: 38vh;
            padding: 1rem 1.1rem;
        }

        .modal-details h2 {
            font-size: 1.25rem;
        }

        .modal-meta {
            grid-template-columns: 1fr;
        }

        .modal-meta .meta-item:last-child {
            grid-column: auto;
        }

        .slider-panel p {
            font-size: 0.9rem;
        }
    } 