/* --- Global Documentation Layout --- */
.api-section-wrapper {
    background-color: #fcfcfc;
    width: 100%;
    padding: 60px 0;
}

.api-full-container {
    width: 95%; /* Largeur totale pour s'aligner sur la bannière de stats */
    max-width: 1600px; 
    margin: 0 auto;
}

.api-main-layout {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar légèrement élargie pour plus de stature */
    gap: 50px;
    align-items: start;
}

/* --- Sidebar Style (Optimisé pour paraître plus grand) --- */
.api-nav-sidebar {
    position: sticky;
    top: 100px;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Titres de groupes pour remplir et structurer la colonne de gauche */
.sidebar-group-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    color: #adb5bd; /* Gris élégant pour les labels */
    letter-spacing: 1.5px;
    margin: 25px 0 10px 5px;
}

.api-nav-sidebar ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.api-nav-sidebar li a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 2px;
    border-bottom: none; /* On enlève la bordure pour un look plus moderne */
}

/* Icônes du menu pour le look Enterprise */
.api-nav-sidebar li a i {
    width: 25px;
    margin-right: 10px;
    color: #30ae69; /* Vert signature */
    font-size: 0.9rem;
    text-align: center;
}

.api-nav-sidebar li a:hover { 
    background-color: #f8f9fa;
    color: #30ae69; 
    padding-left: 18px; 
}

/* --- API Card (Design inchangé mais optimisé) --- */
.api-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 380px; 
}

/* Partie gauche : Texte & Paramètres */
.api-info {
    flex: 1.1;
    padding: 40px;
}

.api-desc {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Partie droite : Code JSON */
.api-example {
    flex: 1.4; 
    background: #1e1e1e; /* Fond sombre type VS Code */
    color: #d4d4d4;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.code-header {
    background: #2d2d2d;
    padding: 12px 25px;
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #3d3d3d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-example pre {
    padding: 25px;
    margin: 0;
    color: #9cdcfe; /* Bleu clair pour le JSON */
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* --- Badges de Méthodes --- */
.method {
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
    margin-right: 15px;
    text-transform: uppercase;
}

.get { background: #61affe; }
.post { background: #49cc90; }
.put { background: #fca130; }
.delete { background: #f93e3e; }

.api-url {
    font-family: 'Consolas', monospace;
    font-weight: bold;
    font-size: 1.05rem;
    color: #222;
}

/* --- Tableaux de paramètres --- */
.params-table {
    width: 100%;
    margin-top: 25px;
    border-collapse: collapse;
}

.params-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #30ae69;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.params-table td {
    padding: 15px 12px;
    border-bottom: 1px dotted #eee;
    font-size: 0.9rem;
}

.type-tag {
    background: #f0f4f8;
    color: #0366d6;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
}

.note-box {
    margin-top: 25px;
    padding: 15px;
    border-left: 4px solid #30ae69;
    background: #f9fffb;
    font-size: 0.9rem;
    color: #444;
}

/* Responsive */
@media (max-width: 1200px) {
    .api-main-layout { 
        grid-template-columns: 1fr; 
    }
    .api-nav-sidebar { 
        display: none; 
    }
    .api-card { 
        flex-direction: column; 
    }
    .api-info, .api-example { 
        flex: none; 
        width: 100%; 
    }
}


.api-cta-container {
    text-align: center;
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
    margin-top: 60px;
    width: 100%;
}

.api-cta-container p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.api-btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #30ae69; /* Le vert SDepender */
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 174, 105, 0.3);
}

.api-btn-primary i {
    margin-right: 12px;
}

.api-btn-primary:hover {
    background-color: #268d55;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(48, 174, 105, 0.4);
    color: #fff;
    text-decoration: none;
}

.api-btn-primary:active {
    transform: translateY(-1px);
}