/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
}

/* Logo */
.logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

/* Section headers */
.section-header {
    background: linear-gradient(135deg, #db5903 0%, #a04102 100%);
    color: white;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* Autres éléments orange à modifier */
.legend-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #db5903;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(219, 89, 3, 0.1);
}

.legend-acronym {
    font-size: 1.2rem;
    font-weight: bold;
    color: #db5903;
    margin-bottom: 8px;
}

.map-legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #db5903;
}

.map-legend h4 {
    color: #a04102;
    margin-bottom: 15px;
    font-size: 1rem;
}

.strategic-conclusion {
    background: linear-gradient(135deg, #fdf5f0 0%, #f5e6d3 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 5px solid #db5903;
}

.strategic-conclusion h4 {
    color: #a04102;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.conclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(219, 89, 3, 0.3);
}

.figure-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #db5903;
}

.dashboard-left {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #db5903;
}

.alert-text {
    color: #db5903;
    font-weight: 600;
}

.objectives-box {
    background: linear-gradient(135deg, #fdf5f0 0%, #f5e6d3 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid #db5903;
}

.objectives-box h4 {
    color: #a04102;
    margin-bottom: 20px;
}

.section-conclusion {
    margin-top: 25px;
    padding: 15px;
    background: rgba(219, 89, 3, 0.1);
    border-radius: 8px;
    font-style: italic;
    color: #4a5568;
    border-left: 3px solid #db5903;
}


h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 25px;
}

/* Boutons de navigation - REMPLACER COMPLÈTEMENT */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    margin: 0 auto;
}

.nav-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* SOLUTION : États fixes sans animation */
    opacity: 1;
    transform: translateY(0);
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav-button:active {
    transform: translateY(0px);
}


/* Sections */
.section {
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
}

.section-header {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
    color: white;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.section-content {
    padding: 30px;
}

.section-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.section-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

/* Légende */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.legend-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #FF9800;
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.1);
}

.legend-acronym {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FF9800;
    margin-bottom: 8px;
}

.legend-meaning {
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.legend-description {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Images */
.image-container {
    text-align: center;
    margin: 30px 0;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.placeholder-image {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 15px;
}

.actual-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.image-caption {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    background: white;
    margin-top: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Styles spécifiques pour la cartographie */
.prevention-context {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #2196F3;
    margin-bottom: 30px;
}

.prevention-context h3 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.prevention-context h4 {
    color: #1976d2;
    margin: 20px 0 15px 0;
    font-size: 1rem;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.domain-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.domain-item:hover {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.map-legend {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #FF9800;
}

.map-legend h4 {
    color: #e65100;
    margin-bottom: 15px;
    font-size: 1rem;
}

.legend-elements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legend-element {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.legend-color-gradient {
    width: 40px;
    height: 20px;
    background: linear-gradient(to right, #e3f2fd, #1976d2);
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-circle {
    width: 25px;
    height: 25px;
    background: rgba(244, 67, 54, 0.7);
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-circle-red {
    width: 20px;
    height: 20px;
    background: #f44336;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-color-filled {
    width: 30px;
    height: 20px;
    background: #e8ab8a;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-color-empty {
    width: 30px;
    height: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-info {
    width: 25px;
    height: 25px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.legend-text {
    flex: 1;
    line-height: 1.4;
    font-size: 0.9rem;
}

.legend-text strong {
    color: #2c3e50;
}

.legend-text em {
    color: #666;
    font-size: 0.85rem;
}

.explanation-text {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 5px solid #4CAF50;
}

.explanation-text h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.explanation-text p {
    color: #1b5e20;
    margin-bottom: 15px;
    text-align: justify;
}

.analysis-highlight {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.analysis-highlight .highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.strategic-conclusion {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 5px solid #ff8f00;
}

.strategic-conclusion h4 {
    color: #e65100;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.conclusion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.conclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(255, 143, 0, 0.3);
}

.conclusion-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Styles spécifiques pour le tableau de bord */
.context-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #4CAF50;
    margin-bottom: 30px;
}

.context-box h3 {
    color: #2d4a2d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.step-number {
    background: #4CAF50;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.5;
}

.dashboard-explanation {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.explanation-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.key-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.figure-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #FF9800;
}

.figure-box.highlight-success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

.figure-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.figure-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
}

.dashboard-left, .dashboard-right {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF9800;
}

.dashboard-right {
    border-left-color: #2196F3;
}

.dashboard-left h5, .dashboard-right h5 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
}

.dashboard-sections ul {
    margin: 15px 0;
    padding-left: 20px;
}

.dashboard-sections li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.success-text {
    color: #4CAF50;
    font-weight: 600;
}

.alert-text {
    color: #FF9800;
    font-weight: 600;
}

.objectives-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid #FF9800;
}

.objectives-box h4 {
    color: #e65100;
    margin-bottom: 20px;
}

.objective-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.objective-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comparison-highlight {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.highlight-icon {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.section-conclusion {
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    font-style: italic;
    color: #4a5568;
    border-left: 3px solid #FF9800;
}

/* Responsive Design */
@media (min-width: 480px) {
    .nav-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 500px;
    }
    
    .nav-button {
        flex: 1;
        min-width: 140px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 30px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-buttons {
        flex-direction: row;
        max-width: 600px;
    }
    
    .section-content {
        padding: 40px;
    }
    
    .legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .step {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr 1fr;
    }
    
    .objective-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .conclusion-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .explanation-text {
        padding: 30px;
        margin: 40px 0;
    }
    
    .explanation-text h3 {
        font-size: 1.2rem;
    }
    
    .comparison-highlight {
        flex-direction: row;
        text-align: left;
    }
    
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .explanation-text {
        padding: 20px;
        margin: 25px 0;
    }
    
    .explanation-text h3 {
        font-size: 1rem;
    }
    
    .comparison-highlight {
        flex-direction: column;
        text-align: left;
    }
    
    .highlight-icon {
        align-self: flex-start;
    }
    
    .domains-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 40px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .legend-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    
    .conclusion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
