/* ============================================
   Hub Pédagogique - Task 139
   ============================================ */

.pedago-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.pedago-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pedago-header h1 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.pedago-header h1 i { color: #0d9488; }

.pedago-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.header-breadcrumb {
    text-align: left;
    margin-bottom: 1rem;
}

.header-breadcrumb a {
    color: #0d9488;
    text-decoration: none;
    font-size: 0.9rem;
}

.header-breadcrumb a:hover { text-decoration: underline; }

/* Stats */
.header-stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.stat-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; }
.stat-label { font-size: 0.8rem; color: #94a3b8; margin-top: 0.25rem; }

/* Layout 2 colonnes */
.pedago-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.pedago-main { min-width: 0; }

/* Sections */
.pedago-section {
    margin-bottom: 2rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-row h2 {
    font-size: 1.2rem;
    color: #1e293b;
}

.section-header-row h2 i { color: #0d9488; margin-right: 0.4rem; }

.see-all {
    color: #0d9488;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.see-all:hover { text-decoration: underline; }

/* Clubs grid */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.club-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.club-card:hover { border-color: #0d9488; box-shadow: 0 4px 12px rgba(13,148,136,.1); }

.club-card h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.club-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.club-meta i { color: #0d9488; margin-right: 0.2rem; }

.club-card-full {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.club-card-full:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.club-card-full h4 { font-size: 1.05rem; color: #1e293b; margin-bottom: 0.4rem; }
.club-card-full p { font-size: 0.85rem; color: #64748b; margin-bottom: 0.5rem; }

.club-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.club-footer small { color: #94a3b8; font-size: 0.75rem; }

/* Genre badge */
.genre-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #99f6e4;
}

.genre-badge-sm {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Info badges */
.club-info-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
}

.info-badge i { color: #0d9488; }

.club-actions { margin-top: 1rem; }

/* Guides grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.guide-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.guide-card:hover { border-color: #0d9488; box-shadow: 0 4px 12px rgba(13,148,136,.1); }

.guide-level {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guide-card h4 { font-size: 0.95rem; color: #1e293b; margin-bottom: 0.35rem; }
.guide-card p { font-size: 0.8rem; color: #64748b; margin-bottom: 0.5rem; }

.guide-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.guide-author { font-size: 0.75rem; color: #94a3b8; }

/* Guide article */
.guide-article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.guide-article-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.guide-level-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.guide-article h1 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.guide-description {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.guide-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name { font-weight: 600; color: #1e293b; display: block; }
.guide-date { font-size: 0.8rem; color: #94a3b8; }

.guide-content-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}

/* Books list */
.books-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.book-status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.book-info h4 { font-size: 0.9rem; color: #1e293b; margin-bottom: 0.15rem; }
.book-info small { color: #94a3b8; font-size: 0.8rem; }

.add-book-form {
    display: flex;
    gap: 0.5rem;
}

.add-book-form select { flex: 1; }

/* Sidebar */
.pedago-sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-widget h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.sidebar-widget h3 i { color: #0d9488; margin-right: 0.4rem; }

.widget-empty { color: #94a3b8; font-size: 0.85rem; }

/* Reco list */
.reco-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reco-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.reco-item:last-child { border-bottom: none; }

.reco-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0fdfa;
    color: #0d9488;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reco-info { min-width: 0; }
.reco-info strong { display: block; font-size: 0.85rem; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-info small { color: #94a3b8; font-size: 0.75rem; }

/* Quick links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.quick-links a:hover { background: #f0fdfa; color: #0d9488; }
.quick-links a i { color: #0d9488; width: 18px; text-align: center; }

/* Members list */
.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.member-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.member-name { font-size: 0.85rem; color: #1e293b; }

.role-badge {
    padding: 0.1rem 0.4rem;
    background: #0d9488;
    color: #fff;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-left: auto;
}

.role-badge.mod { background: #f59e0b; }

/* Formation CTA */
.formation-cta {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 1.25rem;
}

.formation-cta p {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover { background: #0f766e; color: #fff; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: #fff;
    color: #0d9488;
    border: 1px solid #0d9488;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary:hover { background: #f0fdfa; color: #0d9488; }

.btn-danger { color: #ef4444; border-color: #ef4444; }
.btn-danger:hover { background: #fef2f2; }

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-small:hover { background: #0f766e; color: #fff; }

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary-large:hover { background: #0f766e; color: #fff; }

/* Toolbar */
.clubs-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.clubs-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-header h3 { font-size: 1.15rem; color: #1e293b; }
.modal-header h3 i { color: #0d9488; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

/* Form (shared) */
.pi-form, .modal-content form {
    background: #fff;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group label i { color: #0d9488; margin-right: 0.3rem; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions { text-align: center; margin-top: 1.5rem; }

/* Empty states */
.empty-state-card {
    text-align: center;
    padding: 2.5rem;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    color: #94a3b8;
}

.empty-state-card i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    color: #cbd5e1;
}

.empty-state-card p { margin-bottom: 1rem; }

.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .pedago-layout { grid-template-columns: 1fr; }
    .header-stats { flex-direction: column; align-items: stretch; }
    .clubs-grid, .guides-grid { grid-template-columns: 1fr; }
    .clubs-toolbar { flex-direction: column; align-items: stretch; }
    .form-row { grid-template-columns: 1fr; }
    .guide-author-info { flex-wrap: wrap; }
}
