/* Projet Individual Page - Styles principaux */
/* Fichier: user/themes/regard-sur/css/projet-individual.css */

/* Variables hÃ©ritÃ©es du thÃ¨me principal */
:root {
    --projet-section-padding: 4rem;
    --projet-content-max-width: 1200px;
    --content-radius: 16px;
}

/* ===== PROTECTION NAVIGATION PRINCIPALE ===== */
/* S'assurer que la navigation principale n'est jamais affectÃ©e */

/* Force la navigation principale Ã  garder ses styles */
.main-header .navbar {
    background: rgba(28, 28, 28, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
}

.main-header .nav-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

.main-header .nav-link {
    color: #f9f9f9 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    padding: 1rem 1.5rem !important;
}

.main-header .nav-link:hover {
    color: #EE7900 !important;
    background: rgba(238, 121, 0, 0.05) !important;
    transform: translateY(-2px) !important;
}

.main-header .nav-link.active {
    color: #1c1c1c !important;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%) !important;
    box-shadow: 0 4px 15px rgba(238, 121, 0, 0.3) !important;
    transform: translateY(-1px) !important;
}

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

/* Navigation avec titre du projet  */
.projet-navigation {
    position: sticky;
    top: 80px; /* Sous la navigation principale */
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    z-index: 998; /* Sous le header principal */
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(238, 121, 0, 0.1);
    transition: all 0.3s ease;
}

/* Container avec titre - disposition horizontale desktop */
.projet-navigation .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Titre du projet dans la nav - cÃ´tÃ© gauche */
.projet-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #EE7900;
    white-space: nowrap;
    text-align: left;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.projet-navigation.show-title .projet-nav-title {
    opacity: 1;
    transform: translateY(0);
}

/* Badge secteur optionnel - INCHANGÃ‰ */
.projet-nav-badge {
    background: rgba(238, 121, 0, 0.15);
    color: #EE7900;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 1rem;
}

/* Navigation des sections - cÃ´tÃ© droit desktop  */
.projet-navigation .nav-sections {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

/* ðŸ"¹ SPÃ‰CIFICITÃ‰ RENFORCÃ‰E pour les liens projet */
/* Utilisation de sÃ©lecteurs trÃ¨s spÃ©cifiques pour Ã©viter tout conflit */
.projet-navigation .nav-sections .nav-link {
    color: #f9f9f9;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.projet-navigation .nav-sections .nav-link:hover,
.projet-navigation .nav-sections .nav-link.active {
    color: #1c1c1c;
    background: #EE7900;
    transform: translateY(-2px);
}

.projet-hero {
    height: 100vh; /* Hauteur plein Ã©cran */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem; /* Garde juste le padding horizontal */
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 50%, #1c1c1c 100%);
    position: relative;
    margin-top: 0 !important; /* Supprime la marge du header */
}

.projet-hero-content {
    max-width: var(--projet-content-max-width);
    margin: 0 auto;
}

.breadcrumb {
    display: none;
	margin-bottom: 2rem;
}

.breadcrumb a {
    color: #EE7900;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff8800;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Badges */
.projet-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.secteur {
    background: rgba(238, 121, 0, 0.15);
    color: #EE7900;
}

.badge.category {
    background: rgba(249, 249, 249, 0.1);
    color: #f9f9f9;
    border: 1px solid rgba(249, 249, 249, 0.2);
}

/* Titre projet */
.projet-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #f9f9f9;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #EE7900;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Informations projet */
.projet-infos {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #f9f9f9;
    opacity: 0.9;
}

.info-item i {
    color: #EE7900;
    font-size: 1rem;
}

/* Hero Image */
.hero-visual {
    position: relative;
}

.hero-image {
    border-radius: var(--content-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTENU PRINCIPAL ===== */
.projet-content {
    background: #1c1c1c;
}

.content-container {
    max-width: var(--projet-content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections de contenu */
.content-section {
    padding: var(--projet-section-padding) 0;
    border-bottom: 1px solid rgba(238, 121, 0, 0.1);
    scroll-margin-top: 140px; /* Navigation principale (80px) + Navigation projet (60px) + marge (20px) */
}


.content-section:last-child {
    border-bottom: none;
}

.content-section.alt {
    background: #2a2a2a;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* En-tÃªte de section */
.section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-number {
    font-size: 3rem;
    font-weight: 900;
    color: #EE7900;
    opacity: 0.3;
    line-height: 1;
}

.content-section h2 {
    font-size: 2.5rem;
    color: #f9f9f9;
    margin: 0;
    font-weight: 700;
}

/* Contenu des sections */
.section-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #f9f9f9;
}

.content-text h3 {
    color: #EE7900;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.content-text strong {
    color: #EE7900;
}

/* ===== Ã‰LÃ‰MENTS SPÃ‰CIAUX ===== */
.objectifs-metriques,
.technologies-section,
.resultats-section {
    background: rgba(238, 121, 0, 0.05);
    border-radius: var(--content-radius);
    padding: 2rem;
    border: 1px solid rgba(238, 121, 0, 0.1);
    /* FORCE VISIBILITÃ‰ */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
}

.objectifs-metriques h3,
.technologies-section h3,
.resultats-section h3 {
    color: #EE7900;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.metriques-grid,
.technologies-grid,
.resultats-grid {
    display: grid;
    gap: 1rem;
    /* FORCE VISIBILITÃ‰ */
    opacity: 1 !important;
    visibility: visible !important;
}

.metrique-card,
.tech-item,
.resultat-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(28, 28, 28, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    /* FORCE VISIBILITÃ‰ */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.metrique-card:hover,
.tech-item:hover,
.resultat-card:hover {
    background: rgba(238, 121, 0, 0.1);
    transform: translateY(-2px);
}

.metrique-card i,
.tech-item i,
.resultat-card i {
    color: #EE7900;
    font-size: 1.1rem;
}

/* ===== FOCUS ET ACCESSIBILITÃ‰ ===== */
.projet-navigation .nav-sections .nav-link:focus {
    outline: 2px solid #EE7900;
    outline-offset: 2px;
}

/* ===== RESPONSIVE PROJET NAVIGATION ===== */

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .projet-navigation .nav-container {
        flex-direction: column;
        justify-content: center;
        gap: 0.8rem;
        padding: 0 1.5rem;
    }
    
    .projet-navigation {
        height: auto;
        padding: 0.8rem 0;
    }
    
    .projet-navigation .nav-sections {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        flex: none;
        width: 100%;
    }
    
    .projet-nav-title {
        text-align: center;
        width: 100%;
    }
    
    .projet-navigation .nav-sections .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Protection navigation principale mobile */
    .main-header .nav-container {
        height: 70px !important;
    }
    
    /* Navigation projet mobile */
    .projet-navigation {
        position: sticky;
        top: 70px;
        height: auto;
        padding: 1rem 0;
    }
    
    .projet-navigation .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .projet-nav-title {
        font-size: 1rem;
    }
    
    .projet-navigation .nav-sections {
        gap: 1rem;
    }
    
    .projet-navigation .nav-sections .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .projet-nav-badge {
        margin-left: 0.5rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Correction body pour mobile */
    body .projet-hero {
        margin-top: 70px !important;
    }
	
	    /* DÃ©sactive le grid sur mobile */
    .hero-content {
        display: block !important; /* Plus de grid */
        text-align: center;
    }
    
    /* Style pour tous les enfants du hero-content */
    .hero-content > * {
        margin-bottom: 2rem;
        width: 100%;
    }
    
    /* Image hero responsive */
    .hero-image {
        margin-top: 2rem;
        width: 100%;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
    }
    
    /* Ajustements texte */
    .projet-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Centre les infos projet */
    .projet-infos {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Responsive - TrÃ¨s petit mobile */
@media (max-width: 480px) {
    .projet-navigation .nav-container {
        padding: 0 0.5rem;
    }
    
    .projet-navigation .nav-sections {
        gap: 0.5rem;
    }
    
    .projet-navigation .nav-sections .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .projet-nav-title {
        font-size: 0.9rem;
    }
    
    .projet-nav-badge {
        display: none; /* Cache le badge sur trÃ¨s petit Ã©cran */
    }
}
