/* ============================================
   PROJET DÉTAIL - STYLES SPÉCIFIQUES
   ============================================ */

.projet-detail {
    min-height: 100vh;
    background: var(--bg-light);
}

/* ============================================
   HERO PROJET
   ============================================ */

.projet-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    overflow: hidden;
}

.projet-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path fill="%23ffffff" fill-opacity="0.1" d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"/></svg>') center/cover no-repeat;
}

.projet-hero__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 0 40px;
}

.projet-hero__category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 14px;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.projet-hero__title {
    font-size: 56px;
    font-weight: var(--weight-bold);
    line-height: 1.2;
    margin-bottom: 24px;
}

.projet-hero__subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 32px;
}

.projet-hero__meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 16px;
    opacity: 0.9;
}

.projet-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.projet-hero__meta-icon {
    font-size: 20px;
}

/* ============================================
   NAVIGATION STICKY PROJET
   ============================================ */

.projet-nav {
    position: sticky;
    top: 80px;
    background: var(--bg-white);
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.projet-nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.projet-nav__list {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.projet-nav__link {
    display: block;
    padding: 20px 0;
    font-size: 15px;
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-medium);
}

.projet-nav__link:hover,
.projet-nav__link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* ============================================
   SECTIONS CONTENU
   ============================================ */

.projet-section {
    padding: 80px 0;
}

.projet-section:nth-child(even) {
    background: var(--bg-white);
}

.projet-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.projet-section__header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.projet-section__number {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 20px;
    font-weight: var(--weight-bold);
    line-height: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.projet-section__title {
    font-size: 40px;
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.projet-section__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   GRILLE CONTENU 2 COLONNES
   ============================================ */

.projet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.projet-grid--reverse {
    direction: rtl;
}

.projet-grid--reverse > * {
    direction: ltr;
}

.projet-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.projet-content h3 {
    font-size: 24px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.projet-content h4 {
    font-size: 18px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.projet-content p {
    margin-bottom: 16px;
}

.projet-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.projet-content li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.projet-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: var(--weight-bold);
}

.projet-content strong {
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
}

/* ============================================
   STATS / METRICS
   ============================================ */

.projet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.projet-stat {
    text-align: center;
    padding: 32px 24px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.projet-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.projet-stat__number {
    font-size: 40px;
    font-weight: var(--weight-bold);
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.projet-stat__label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   VISUAL / IMAGE
   ============================================ */

.projet-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.projet-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.projet-visual--video {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background: #000;
}

.projet-visual--video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projet-visual--audio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    text-align: center;
}

.projet-visual--audio audio {
    width: 100%;
    margin-top: 24px;
}

.projet-visual--placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 40px;
    text-align: center;
    font-size: 64px;
}

.projet-visual--logo {
    background: var(--bg-white);
    padding: 60px 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.projet-logo {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-medium);
}

.projet-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

/* ============================================
   GALERIE
   ============================================ */

.projet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.projet-gallery__item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
}

.projet-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.projet-gallery__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.projet-gallery__caption {
    padding: 16px;
    background: var(--bg-white);
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   TECH STACK / TAGS
   ============================================ */

.projet-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}

.projet-tech__tag {
    padding: 10px 20px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.projet-tech__tag:hover {
    background: var(--primary-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ============================================
   QUOTE / HIGHLIGHT
   ============================================ */

.projet-quote {
    margin: 48px 0;
    padding: 32px;
    background: rgba(0, 102, 255, 0.05);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
}

.projet-quote__text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.projet-quote__author {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.projet-cta {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border-radius: 24px;
    margin: 80px 0;
}

.projet-cta__title {
    font-size: 32px;
    font-weight: var(--weight-bold);
    margin-bottom: 16px;
}

.projet-cta__text {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 32px;
}

.projet-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   NAVIGATION INTER-PROJETS
   ============================================ */

.projet-navigation {
    padding: 60px 0;
    background: var(--bg-white);
}

.projet-navigation__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.projet-navigation__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.projet-navigation__item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.projet-navigation__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.projet-navigation__item--prev {
    text-align: left;
}

.projet-navigation__item--next {
    text-align: right;
    flex-direction: row-reverse;
}

.projet-navigation__arrow {
    font-size: 32px;
    color: var(--primary-blue);
}

.projet-navigation__content {
    flex: 1;
}

.projet-navigation__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.projet-navigation__title {
    font-size: 18px;
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .projet-hero__title {
        font-size: 42px;
    }
    
    .projet-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projet-grid--reverse {
        direction: ltr;
    }
    
    .projet-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projet-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .projet-hero__title {
        font-size: 32px;
    }
    
    .projet-hero__meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .projet-nav__list {
        gap: 16px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .projet-section {
        padding: 60px 0;
    }
    
    .projet-section__title {
        font-size: 28px;
    }
    
    .projet-stats {
        grid-template-columns: 1fr;
    }
    
    .projet-navigation__grid {
        grid-template-columns: 1fr;
    }
    
    .projet-gallery {
        grid-template-columns: 1fr;
    }
    
    .projet-visual--logo {
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .projet-logo {
        max-height: 200px;
    }
}
