/* ==========================================
   PROJECT DETAIL PAGE STYLES - THÈME CLAIR
   ========================================== */

/* Désactiver l'aimantation pour les pages de détails */
html {
    scroll-snap-type: none !important;
}

/* Redonner une hauteur normale aux sections pour éviter qu'elles ne fassent toutes 100vh */
.section {
    height: auto !important;
    min-height: auto !important;
    scroll-snap-align: none !important;
}

/* Navigation */
.project-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.back-btn:hover {
    background: rgba(172, 182, 244, 0.1);
    border-color: rgba(172, 182, 244, 0.3);
    transform: translateX(-5px);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.1em;
}

/* Hero Section */
.project-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5rem 4rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(172, 182, 244, 0.15), transparent 50%);
    pointer-events: none;
}

.project-hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.project-category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(172, 182, 244, 0.15);
    border: 1px solid rgba(172, 182, 244, 0.3);
    border-radius: 50px;
    color: #5a67d8;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.project-hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a1a1a 0%, #5a67d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-hero-subtitle {
    font-size: 1.5rem;
    color: #666666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.project-tags-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-tags-hero .tag {
    padding: 0.75rem 1.5rem;
    background: rgba(172, 182, 244, 0.1);
    border: 1px solid rgba(172, 182, 244, 0.2);
    border-radius: 50px;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tags-hero .tag:hover {
    background: rgba(172, 182, 244, 0.2);
    border-color: rgba(172, 182, 244, 0.4);
    color: #5a67d8;
}

.project-hero-image {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.project-hero-image video,
.project-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Content Section */
.project-content {
    background: #ffffff;
    padding: 6rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Overview */
.project-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.overview-text h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 700;
}

.overview-text p {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.overview-stats {
    background: rgba(172, 182, 244, 0.05);
    border: 1px solid rgba(172, 182, 244, 0.15);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(172, 182, 244, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a67d8;
    font-size: 1.25rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 600;
}

/* Gallery */
.project-gallery {
    margin-bottom: 6rem;
}

.project-gallery h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    background: #f8f9ff;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Process */
.project-process {
    margin-bottom: 6rem;
}

.project-process h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.process-steps {
    display: grid;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: rgba(172, 182, 244, 0.05);
    border: 1px solid rgba(172, 182, 244, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(172, 182, 244, 0.1);
    border-color: rgba(172, 182, 244, 0.3);
    transform: translateX(10px);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(172, 182, 244, 0.4);
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-content p {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.6;
}

/* Technical Details */
.project-technical {
    margin-bottom: 6rem;
}

.project-technical h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-weight: 700;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.technical-item {
    background: rgba(172, 182, 244, 0.05);
    border: 1px solid rgba(172, 182, 244, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.technical-item:hover {
    background: rgba(172, 182, 244, 0.1);
    border-color: rgba(172, 182, 244, 0.3);
}

.technical-item i {
    font-size: 3rem;
    color: #5a67d8;
    margin-bottom: 1.5rem;
}

.technical-item h4 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.technical-item ul {
    list-style: none;
    padding: 0;
}

.technical-item li {
    color: #666666;
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* Project Navigation */
.project-navigation {
    background: #f8f9ff;
    padding: 6rem 0;
}

.project-navigation h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
}

.nav-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.nav-project-card img,
.nav-project-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
    padding: 2rem;
}

.nav-project-category {
    font-size: 0.75rem;
    color: #acb6f4;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.nav-project-info h3 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}

/* Footer */
footer.section {
    background: #f8f9ff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    text-align: center;
    padding: 3rem 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(172, 182, 244, 0.1);
    border-radius: 50%;
    color: #1a1a1a;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(172, 182, 244, 0.2);
    color: #5a67d8;
    transform: translateY(-3px);
}

.copyright {
    color: #666666;
    font-size: 0.95rem;
}

/* Bouton "Voir en ligne" dans la section overview */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(172, 182, 244, 0.1);
    border: 1px solid rgba(172, 182, 244, 0.3);
    border-radius: 50px;
    color: #5a67d8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(172, 182, 244, 0.2);
    border-color: rgba(172, 182, 244, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
    .project-hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 3rem 4rem;
    }
    
    .project-hero-content {
        max-width: 100%;
    }
    
    .project-hero-title {
        font-size: 3.5rem;
    }
    
    .project-overview {
        grid-template-columns: 1fr;
    }
    
    .technical-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-projects {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-nav {
        padding: 1rem 1.5rem;
    }
    
    .project-hero-title {
        font-size: 2.5rem;
    }
    
    .project-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
}

/* ==========================================
   RESPONSIVE MOBILE - PROJECT-DETAIL.CSS
   ========================================== */

@media (max-width: 768px) {
    /* Navigation de projet */
    .project-nav {
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .back-btn span {
        display: inline; /* Garder le texte visible */
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Hero du projet */
    .project-hero {
        flex-direction: column;
        padding: 100px 20px 40px;
        text-align: center;
        min-height: auto;
    }

    .project-category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 1.5rem;
    }

    .project-hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .project-hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .project-hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .project-tags-hero {
        justify-content: center;
        gap: 0.8rem;
    }

    .project-tags-hero .tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .project-hero-image {
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .project-hero-image video,
    .project-hero-image img {
        border-radius: 15px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }

    /* Content Section */
    .project-content {
        padding: 4rem 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Overview */
    .project-overview {
        grid-template-columns: 1fr !important;
        gap: 30px;
        margin-bottom: 4rem;
    }

    .overview-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .overview-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .overview-stats {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .stat-item {
        gap: 1rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    /* Gallery */
    .project-gallery {
        margin-bottom: 4rem;
    }

    .project-gallery h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Process */
    .project-process {
        margin-bottom: 4rem;
    }

    .project-process h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .process-steps {
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .process-step:hover {
        transform: none;
    }

    .step-number {
        font-size: 2.5rem;
        text-align: center;
    }

    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .step-content p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }

    /* Technical Details */
    .project-technical {
        margin-bottom: 4rem;
    }

    .project-technical h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .technical-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .technical-item {
        padding: 2rem 1.5rem;
    }

    .technical-item i {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }

    .technical-item h4 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .technical-item li {
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }

    /* Project Navigation */
    .project-navigation {
        padding: 4rem 0;
    }

    .project-navigation h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .nav-projects {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .nav-project-card {
        border-radius: 15px;
    }

    .nav-project-card:hover {
        transform: translateY(-5px);
    }

    .nav-project-info {
        padding: 1.5rem;
    }

    .nav-project-category {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .nav-project-info h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    footer.section {
        padding: 3rem 0 !important;
    }

    .footer-content {
        padding: 2rem 0;
    }

    .footer-logo {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .social-links {
        gap: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
    }

    .copyright {
        font-size: 0.85rem;
    }

    /* Bouton "Voir en ligne" */
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.9rem 1.8rem;
        justify-content: center;
    }
}