:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --secondary: #EC4899;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --success: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





/* Scroll reveal animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* pres Section */
.pres {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -5rem;
}

.pres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.pres h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
}

.pres h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.pres p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Floating code elements */
.code-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    font-family: monospace;
    backdrop-filter: blur(5px);
    transition: all 0.5s ease;
}

.code-element:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.2);
}

/* Project Intro */
.project-intro {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    text-align: center;
}

.project-intro h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-intro p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

.project-tag {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transform: perspective(1000px) rotateX(20deg);
    transition: all 0.4s ease;
}

.project-tag:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.05);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

/* Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-header h3 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.gallery-header p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
    transform-style: preserve-3d;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Project Sections */
.project-section {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.section-content {
    flex: 1;
    min-width: 300px;
}

.section-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
}

.section-image:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

/* Réalisations Section */
.realisations {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.realisations-header {
    text-align: center;
    margin-bottom: 2rem;
}

.realisations-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.realisations-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
}

.realisations-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.realisation-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    height: auto;
    transform: translateY(0);
}

.realisation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transition: all 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.realisation-card:hover::before {
    width: 4px;
    background: var(--secondary);
}

.realisation-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.realisation-card:hover .realisation-icon {
    color: var(--secondary);
    transform: scale(1.1) rotate(5deg);
}

.realisation-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.realisation-desc {
    color: var(--gray);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.realisation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    background: rgba(37, 99, 235, 0.08);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.stat-item:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 0.4rem;
    min-width: fit-content;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--dark);
    white-space: normal;
    line-height: 1.2;
    max-width: none;
}

/* Stats Section */
.stats-section {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNwYXR0ZXJuKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.stats-section .section-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.stats-section .section-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.stats-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.stats-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stats-box {
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stats-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stats-box:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.stats-box:hover .stat-number {
    color: var(--secondary);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Animation des chiffres */
@keyframes countUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stat-number.animated {
    animation: countUp 0.8s ease-out forwards;
}

/* Impact Section */
.impact-section {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.impact-section h3.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.impact-section h3.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.impact-section .section-text {
    font-size: 1.2rem;
    color: var(--dark);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    position: relative;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 10px;
    position: relative;
}

.impact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    z-index: 1;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.impact-card:hover::before {
    height: 8px;
}

.impact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1);
}

.impact-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
}

.impact-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.impact-card:hover h4::after {
    width: 70px;
    opacity: 1;
}

.impact-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.impact-card:hover p {
    color: var(--dark);
}

/* Particle background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pres {
        padding: 6rem 1.5rem 4rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .pres h1 {
        font-size: 2.5rem;
    }
    
    .project-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .section-image {
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .realisations-grid {
        grid-template-columns: 1fr;
    }
    
    .realisations-title {
        font-size: 2.2rem;
    }

    .stats-section {
        padding: 3rem 1.5rem;
        margin: 4rem auto;
    }
    
    .stats-section .section-title {
        font-size: 2.2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .stats-box {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .impact-section {
        padding: 3rem 1.5rem;
    }
    
    .impact-section h3.section-title {
        font-size: 2.2rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stats-section .section-title {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}
.container a{
    text-decoration: none;
}