﻿:root {
    --foret: #1a4d1a; /* Vert foncé pour la forêt */
    --richesse: #ffd700; /* Or pour la richesse */
    --sang: #8b0000; /* Rouge sang */
    --texte-clair: #ffffff;
    --texte-fonce: #000000;
    --fond-clair: #f5f5f5;
    --fond-fonce: #1e1e1e;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--fond-fonce);
    color: var(--texte-clair);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--richesse);
}

h1 {
    color: var(--richesse);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.description {
    color: var(--texte-clair);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Correction des onglets */
.tabs-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--foret);
    gap: 5px;
}

.tab {
    padding: 12px 24px;
    background-color: var(--foret);
    color: var(--texte-clair);
    border: none;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

    .tab:hover {
        background-color: var(--sang);
        transform: translateY(-2px);
    }

    .tab.active {
        background-color: var(--richesse);
        color: var(--texte-fonce);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

.tab-content {
    display: none;
    padding: 20px;
    background-color: var(--fond-clair);
    color: var(--texte-fonce);
    border-radius: 0 5px 5px 5px;
    min-height: 600px;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.api-section {
    margin-bottom: 30px;
}

    .api-section h3 {
        color: var(--foret);
        margin-bottom: 20px;
        border-bottom: 2px solid var(--richesse);
        padding-bottom: 10px;
        font-size: 1.4rem;
    }

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.endpoint-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--richesse);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .endpoint-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .endpoint-card h4 {
        color: var(--sang);
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--foret);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

    input:focus {
        border-color: var(--richesse);
        outline: none;
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }

button {
    background-color: var(--foret);
    color: var(--texte-clair);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

    button:hover {
        background-color: var(--sang);
        transform: translateY(-1px);
    }

    button:active {
        transform: translateY(0);
    }

.response-area {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Layout pour la carte */
.map-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    height: 700px;
}

.map-controls {
    overflow-y: auto;
    padding-right: 10px;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.map-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .map-info h4 {
        color: var(--foret);
        margin-bottom: 10px;
    }

#map-info-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Styles pour les étapes */
.step-group {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid var(--info);
}

.step-input {
    margin-top: 5px;
}

/* Styles pour les marqueurs de carte */
.leaflet-marker-icon {
    filter: hue-rotate(120deg);
}

.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content h3 {
    color: var(--foret);
    margin-bottom: 8px;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--richesse);
    color: var(--texte-clair);
}

/* Responsive */
@media (max-width: 1024px) {
    .map-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-controls {
        overflow-y: visible;
        padding-right: 0;
    }

    #map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
    }

    .tab {
        border-radius: 5px;
        margin-bottom: 5px;
    }

    .tab-content {
        border-radius: 5px;
    }

    .endpoint-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 10px;
    }
}

/* Scrollbar personnalisée */
.response-area::-webkit-scrollbar {
    width: 8px;
}

.response-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.response-area::-webkit-scrollbar-thumb {
    background: var(--foret);
    border-radius: 4px;
}

    .response-area::-webkit-scrollbar-thumb:hover {
        background: var(--sang);
    }
