/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* ===== BANNIÈRE AGRANDIE ===== */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.banner-left {
    flex-shrink: 0;
    width: 180px;
    text-align: left;
}

.banner-logo-left {
    width: 190px;
    height: auto;
    max-height: 80px;
    border-radius: 8px;
}

.banner-text {
    flex: 1;
    text-align: center;
}

.association-name {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 5px;
}

.association-slogan {
    font-size: 0.85em;
    font-style: italic;
    color: #666;
}

.association-status {
    font-size: 0.65em;
    color: #999;
}

.banner-right {
    flex-shrink: 0;
    width: 180px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 110px;
    left: 0;
    width: 260px;
    background: white;
    color: #333;
    height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 20px 15px;
    border-right: 1px solid #ddd;
    z-index: 999;
}

.main-content {
    margin-left: 260px;
    margin-top: 110px;
    background: white;
    min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.nav-link {
    display: block;
    padding: 8px 15px;
    margin: 2px 0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f0f0f0;
    padding-left: 20px;
}

.nav-link.active {
    background: #3498db;
    color: white;
}

/* ===== CATÉGORIES ===== */
.nav-category-title {
    padding: 8px 15px;
    margin: 10px 0 5px 0;
    background: #f5f5f5;
    color: #333;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 1px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.category-item {
    padding-left: 25px !important;
    font-size: 0.85em;
}

.category-item:hover {
    padding-left: 32px !important;
}

/* ===== PIED DE SIDEBAR ===== */
.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.sidebar-contact p {
    margin: 6px 0;
    color: #666;
    font-size: 0.8em;
}

.sidebar-contact a {
    color: #666;
    text-decoration: none;
}

.sidebar-contact a:hover {
    color: #3498db;
}

.sidebar-links {
    margin: 15px 0;
}

.sidebar-links a {
    display: inline-block;
    margin: 0 5px;
    color: #666;
    text-decoration: none;
    font-size: 0.75em;
}

.sidebar-links a:hover {
    color: #3498db;
}

.sidebar-copyright {
    color: #999;
    font-size: 0.65em;
}

/* ===== MÉTADONNÉES ===== */
.yaml-metadata-right {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px 20px 0 20px;
}

.meta-line-right {
    text-align: right;
    font-size: 0.7em;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* ===== CONTENU ===== */
.content {
    padding: 30px 45px;
    max-width: 900px;
}

.content h1 {
    font-size: 2em;
    border-bottom: 3px solid #2d6a4f;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content h2 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #34495e;
}

.content p {
    margin-bottom: 15px;
}

.content ul, .content ol {
    margin: 15px 0 15px 30px;
}

.content li {
    margin: 5px 0;
}

.content a {
    color: #2d6a4f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.content a:hover {
    text-decoration: underline;
}

.content img {
    max-width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-banner {
        position: relative;
        padding: 10px;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        width: 100%;
        height: auto;
        max-height: 300px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
    
    .banner-left {
        width: 100px;
    }
    
    .banner-logo-left {
        width: 80px;
    }
    
    .association-name {
        font-size: 0.9em;
    }
    
    .association-slogan {
        font-size: 0.65em;
    }
    
    .content {
        padding: 20px;
    }
}
