/* ==================== */
/* PAGE PROJET */
/* ==================== */

.project-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.project-main-image {
    width: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.project-content {
    color: #ffffff;
}

.project-title {
    font-size: 90px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    letter-spacing: -2px;
}

.project-description {
    margin-bottom: 30px;
}

.project-description p {
    font-size: 19px;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px 0;
}

/* Espace entre les premiers paragraphes */
.project-description p:nth-of-type(1) {
    margin-bottom: 20px;
}

.project-description p:nth-of-type(2) {
    margin-bottom: 20px;
}

/* Modèles et Appareil : plus espacés du texte, plus rapprochés entre eux */
.project-description .project-info {
    margin-top: 20px;
    margin-bottom: 2px;
    font-size: 16px !important;
}

.project-description .project-info:last-of-type {
    margin-bottom: 0;
}

.project-description .project-info strong {
    font-weight: 700;
}

.project-tools {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-auto-rows: auto;
    gap: 50px;
    align-items: start;
}

.tools-label {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    grid-column: 1;
    grid-row: 1;
}

.tools-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.tools-row {
    display: flex;
    align-items: center;
    gap: 40px;
    grid-column: 1 / -1;
    grid-row: 2;
}

.tool-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.camera-model {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: -15px 0 0 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
}

.breadcrumb-section {
    background-color: #000000;
    padding: 120px 0 20px;
    border-bottom: none;
    position: relative;
    z-index: 5;
    margin-top: 0;
}

.breadcrumb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    font-size: 20px;
    color: #999;
}

.breadcrumb-container a {
    color: #999;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: #ffffff;
}

.breadcrumb-container span {
    color: #ffffff;
    text-decoration: none;
}

/* ==================== */
/* GALERIE DÉFILANTE */
/* ==================== */

.project-gallery {
    background-color: #000000;
    padding: 0 0 100px;
    overflow: hidden;
}

.gallery-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.gallery-track {
    display: flex;
    gap: 5px;
    padding: 0 60px;
}

.gallery-item {
    flex-shrink: 0;
    width: 500px;
    height: 500px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-item {
    background-color: #000000;
}

.video-item video {
    object-fit: contain;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 1200px) {
    .project-container {
        padding: 0 40px;
        gap: 60px;
    }
    
    .project-title {
        font-size: 60px;
    }
    
    .project-description p {
        font-size: 16px;
    }

    .tools-label {
        font-size: 28px;
    }
    
    .tool-icon {
        width: 70px;
        height: 70px;
    }
    
    .gallery-item {
        width: 500px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 120px 0 60px;
    }
    
    .project-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .project-main-image {
        padding: 40px;
    }
    
    .project-title {
        font-size: 48px;
    }
    
    .project-description p {
        font-size: 15px;
    }
    
    .tools-label {
        font-size: 24px;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
    }
    
    .gallery-track {
        padding: 0 20px;
        gap: 20px;
    }
    
    .gallery-item {
        width: 400px;
        height: 300px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .project-hero {
        padding: 100px 0 50px;
    }
    
    .project-container {
        padding: 0 15px;
    }
    
    .project-main-image {
        padding: 0px;
    }
    
    .project-title {
        font-size: 36px;
    }
    
    .project-description p {
        font-size: 14px;
    }

    .tools-label {
        font-size: 20px;
    }
    
    .tool-icon {
        width: 50px;
        height: 50px;
    }
    
    .gallery-item {
        width: 300px;
        height: 250px;
        padding: 20px;
    }
}

/* PRIORITÉ ABSOLUE : Modèles et Appareil */
p.project-info {
    font-size: 16px !important;
    margin-top: 20px !important;
    margin-bottom: 0px !important;
    line-height: 1 !important;
}

/* Quand Appareil est seul (pas de Modèles avant) */
p.project-info:first-of-type:last-of-type {
    margin-top: 35px !important;
}

/* Seulement si c'est la première ET pas la dernière (il y a 2 lignes) */
p.project-info:first-of-type:not(:last-of-type) {
    transform: translateY(15px) !important;
}

/* Seulement si c'est la dernière ET pas la première (il y a 2 lignes) */
p.project-info:last-of-type:not(:first-of-type) {
    transform: translateY(-15px) !important;
}

p.project-info strong {
    font-weight: 700 !important;
}
/* ---- Fil d'ariane uniformisé mobile ---- */
@media (max-width: 768px) {
    .breadcrumb-section,
    .breadcrumb-section-video {
        padding: 100px 0 20px !important;
    }
    .breadcrumb-container,
    .breadcrumb-container-video {
        font-size: 16px !important;
    }
}
@media (max-width: 480px) {
    .breadcrumb-section,
    .breadcrumb-section-video {
        padding: 100px 0 20px !important;
    }
    .breadcrumb-container,
    .breadcrumb-container-video {
        font-size: 16px !important;
    }
}
