/**
 * Styles pour la page Nomenclature VIH - Cartographie
 * Version sans variables CSS
 * Fichier: nomenclature-vih.css
 */

/* ====================================
   LAYOUT GÉNÉRAL
   ==================================== */
.nomenclature-vih-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.nomenclature-vih-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====================================
   EN-TÊTE DE LA PAGE
   ==================================== */
.nomenclature-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 8px;
    color: white;
}

.nomenclature-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nomenclature-icon {
    font-size: 3rem;
}

.nomenclature-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ====================================
   SECTIONS
   ==================================== */
.nomenclature-section {
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #2c3e50;
}

.section-description {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ====================================
   GRILLE DES SERVICES
   ==================================== */
.services-grid {
    display: grid;
grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Couleurs spécifiques par service */
.service-prevention {
    border-top-color: #6f9a93;
}

.service-medical {
    border-top-color: #f89412;
}

.service-psychosocial {
    border-top-color: #c7b7e2;
}

.service-juridique {
    border-top-color: #f39c12;
}

.service-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-definition,
.service-examples,
.service-objective {
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 0;
}

.service-examples ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.service-examples ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333333;
    line-height: 1.5;
}

.service-examples ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-weight: bold;
}

/* ====================================
   SECTION POPULATIONS
   ==================================== */
.populations-section {
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.population-block {
    margin-bottom: 3rem;
}

.population-block:last-child {
    margin-bottom: 0;
}

.population-header {
    margin-bottom: 2rem;
}

.population-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.population-icon {
    font-size: 2rem;
}

.population-definition {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2c3e50;
}

.population-definition h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.population-definition p {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.population-definition p:last-child {
    margin-bottom: 0;
}

.population-note {
    font-style: italic;
    color: #666666;
}

.population-list h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.population-details {
    margin: 0;
}

.population-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #2c3e50;
    transition: all 0.3s ease;
}

.population-item:hover {
    background: #f8f9fa;
    border-left-width: 5px;
}

.population-item dt {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.population-item dd {
    margin: 0;
    color: #333333;
    line-height: 1.6;
}

/* Couleurs différenciées */
.population-cles .population-title {
    color: #f89412;
}

.population-cles .population-definition {
    border-left-color: #f89412;
}

.population-vulnerables .population-title {
    color: #6f9a93;
}

.population-vulnerables .population-definition {
    border-left-color: #6f9a93;
}

.population-vulnerables .population-item {
    border-left-color: #6f9a93;
}

/* ====================================
   APPEL À L'ACTION (CTA)
   ==================================== */
.nomenclature-cta {
    background: linear-gradient(135deg, #C7B7E2, #764ba2);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}



.nomenclature-vih-wrapper .service-card h3 {
    font-size: 22px;
}

.cta-buttons a {
    margin-bottom: 15px;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    .nomenclature-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nomenclature-icon {
        font-size: 2.5rem;
    }
    
    .nomenclature-intro {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .population-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nomenclature-vih-wrapper {
    }
    
    .nomenclature-header {
        padding: 1.5rem;
    }
    
    .nomenclature-title {
        font-size: 1.5rem;
    }
    
    .populations-section {
        padding: 1.5rem;
    }
    
    .nomenclature-cta {
        padding: 1.5rem;
    }
}

/* ====================================
   ACCESSIBILITÉ
   ==================================== */
.service-card:focus-within,
.population-item:focus-within {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

/* Animation au scroll (optionnel) */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .population-block {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impression */
@media print {
    .nomenclature-cta,
    .btn {
        display: none;
    }
    
    .service-card,
    .population-block {
        page-break-inside: avoid;
    }
}