@import url(https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap);


body#content {
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Main Container */
.project-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* Go Back Button */
.go-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #ffffff;
    text-decoration: none;
    font-size:28px;
    font-weight: 900;
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid transparent;
}

.go-back-btn:hover {
    color: #fff;
}

.go-back-btn svg {
    width: 25px;
    height: 26px;
    flex-shrink: 0;
    stroke: currentColor;
}

.go-back-btn span {
    line-height: 1;
}

/* Breadcrumb (hidden on project detail pages) */
.breadcrumb {
    display: none;
}

/* Project Title */
.project-title {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 auto 50px;
    text-align: center;
    font-family: 'Instrument Sans', sans-serif;
    width: 100%;
    padding: 0;
}

/* Hero Section */
.project-hero {
    margin-bottom: 100px;
    position: relative;
}

.project-hero .go-back-btn {
    position: absolute;
    top: -50px;
    left: 0;
    margin: 0;
    z-index: 10;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Info Cards Row */
.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    transform: translateY(-30px);
}

.info-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 20px 0;
    font-family: 'Instrument Sans', sans-serif;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    display: inline-block;
}

.info-text {
    font-size: 18px;
    color: #555;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
}


.info-description {
    font-size: 18px;
    line-height: 1.2;
    color: #555;
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
}

/* Description Section */
.project-description {
    margin-bottom: 60px;
    max-width: 100%;
}

.description-text {
    font-size: 20px;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 300;
    text-align: left;
}

.description-text strong {
    font-weight: 700;
}

/* Gallery Section */
.project-gallery {
    margin-bottom: 60px;
}

.gallery-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
    object-position: center;
}

/* CTA Section */
.project-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0 40px;
}

.try-it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    color: #2a2a2a;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.try-it-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.try-it-btn svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    fill: #2a2a2a;
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-detail {
        padding: 40px 30px 60px;
    }

    .project-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image,
    .gallery-image {
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .project-detail {
        padding: 30px 20px 50px;
    }

    .project-title {
        font-size: 32px;
        margin-bottom: 30px;
        text-align: center !important;
        display: block;
        width: 100% !important;
        padding: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .project-hero .go-back-btn {
        top: -40px;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .project-hero .go-back-btn svg {
        width: 14px;
        height: 14px;
    }

    .info-card {
        padding: 24px;
    }

    .description-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .project-detail {
        padding: 20px 15px 40px;
    }

    .project-title {
        font-size: 28px;
        margin-bottom: 25px;
        text-align: center !important;
        display: block;
        width: 100% !important;
        padding: 0 !important;
        margin-left: auto;
        margin-right: auto;
    }

    .project-hero .go-back-btn {
        top: -75px;
        font-size: 12px;
        padding: 8px 12px;
        gap: 6px;
    }
    
    .project-hero .go-back-btn svg {
        width: 12px;
        height: 12px;
    }

    .hero-image,
    .gallery-image {
        border-radius: 8px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .info-text {
        font-size: 14px;
    }

    .info-description {
        font-size: 13px;
    }

    .description-text {
        font-size: 12px;
        line-height: 1.7;
    }

    .try-it-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .try-it-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   MOBILE TOUCH EVENT FIXES
   ============================================ */

/* Ensure all interactive elements are touchable */
.try-it-btn,
.go-back-btn,
.breadcrumb a,
.project-detail a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .project-detail {
        padding: 30px 20px 50px;
    }
    
    /* **AJOUT : Cache Go Back** */
    .project-hero .go-back-btn {
        display: none !important;
    }
    
    /* Reste de ton CSS... */
}

@media (max-width: 480px) {
    .project-detail {
        padding: 20px 15px 40px;
    }
    
    /* **Cache aussi 480px** */
    .project-hero .go-back-btn {
        display: none !important;
    }
}

/* Navigation active - Le lien avec nav-active est en gras et brillant */
/* Plus besoin de forcer "works" - chaque page affiche son propre nom */

@media (max-width: 768px) {
    .decorative-footer {
        position: fixed;
        bottom: 80px; /* **200px avant bas** */
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }
    
    body#content {
        padding-bottom: calc(80px + 170px) !important; /* 370px total */
    }
}

@media (max-width: 480px) {
    body#content {
        padding-bottom: calc(80px + 200px) !important; /* 400px */
    }
}