/* ===== DESIGN MODERNE POUR LA PAGE DE DÉTAIL D'ORGANISATION ===== */

/* Variables pour l'organisation */
:root {
    --org-header-bg: #1a365d;
    --org-title-color: #2d3748;
    --org-subtitle-color: #718096;
    --info-section-bg: #ffffff;
    --info-border: 1px solid #e2e8f0;
    --info-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    --contact-link-color: #3182ce;
    --revenue-color: #38a169;
    --badge-success-bg: #48bb78;
    --badge-danger-bg: #f56565;
    --avatar-size: 40px;
    --table-hover-bg: #f7fafc;
}

/* ===== EN-TÊTE DE L'ORGANISATION ===== */

.organization-header {
    background: var(--org-header-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #2d3748;
    position: relative;
}

.organization-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    pointer-events: none;
}

.organization-title .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.organization-title .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.organization-title .breadcrumb-item a:hover {
    color: white;
}

.organization-title .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.organization-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.organization-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.organization-subtitle i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.organization-actions .btn-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.organization-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.organization-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== SECTIONS D'INFORMATIONS ===== */

.info-section {
    background: var(--info-section-bg);
    border: var(--info-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--info-shadow);
    transition: all 0.3s ease;
}

.info-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.info-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--org-title-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section-title i {
    color: #3182ce;
    font-size: 0.875rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.info-label {
    font-weight: 600;
    color: var(--org-subtitle-color);
    font-size: 0.875rem;
}

.info-value {
    font-weight: 500;
    color: var(--org-title-color);
    text-align: right;
}

/* ===== LIENS DE CONTACT ===== */

.contact-link {
    color: var(--contact-link-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #2c5aa0;
    text-decoration: none;
}

.contact-link i {
    font-size: 0.875rem;
}

/* ===== MONTANT DES REVENUS ===== */

.revenue-amount {
    color: var(--revenue-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== CONTENU DES SECTIONS ===== */

.address-content,
.annexes-content,
.hobbies-content {
    background: #f8fafc;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.address-text,
.annexes-text,
.hobbies-text {
    margin: 0;
    color: var(--org-subtitle-color);
    line-height: 1.6;
}

/* ===== SECTION DES STATISTIQUES ===== */

.stats-section {
    position: sticky;
    top: 2rem;
}

.stats-card-professional {
    transition: all 0.3s ease;
}

.stats-card-professional:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== TABLEAU DES ADHÉRENTS ===== */

.adherents-count {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.adherents-table {
    border-collapse: separate;
    border-spacing: 0;
}

.adherents-table thead th {
    background: #f8fafc;
    border: none;
    padding: 1rem;
    font-weight: 600;
    color: var(--org-title-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adherent-row {
    transition: all 0.3s ease;
}

.adherent-row:hover {
    background: var(--table-hover-bg);
    transform: translateY(-1px);
}

.adherent-row td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* ===== INFORMATIONS DES ADHÉRENTS ===== */

.adherent-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.adherent-avatar {
    width: var(--avatar-size);
    height: var(--avatar-size);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.adherent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 1.2rem;
}

.adherent-details {
    flex: 1;
}

.adherent-name {
    font-weight: 600;
    color: var(--org-title-color);
    margin-bottom: 0.25rem;
}

.adherent-phone {
    font-size: 0.875rem;
    color: var(--org-subtitle-color);
}

.adherent-id {
    font-weight: 600;
    color: #3182ce;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* ===== BADGES ET STATUTS ===== */

.type-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: #3182ce;
    color: white;
}

.badge-info {
    background: #38b2ac;
    color: white;
}

.badge-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-success {
    background: var(--badge-success-bg);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-danger {
    background: var(--badge-danger-bg);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--org-subtitle-color);
}

.join-date {
    font-weight: 500;
    color: var(--org-title-color);
}

/* ===== BOUTONS D'ACTION ===== */

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .btn {
    border-radius: 6px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(49, 130, 206, 0.15);
}

/* ===== ÉTAT VIDE ===== */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--org-subtitle-color);
}

.empty-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

.empty-state h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--org-title-color);
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
}

/* ===== NAVIGATION DE RETOUR ===== */

.navigation-footer {
    text-align: center;
    padding: 2rem 0;
}

.navigation-footer .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navigation-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .organization-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .organization-name {
        font-size: 2rem;
    }
    
    .organization-subtitle {
        font-size: 1rem;
    }
    
    .organization-actions {
        margin-top: 1rem;
    }
    
    .organization-actions .btn-group {
        width: 100%;
    }
    
    .organization-actions .btn {
        flex: 1;
    }
    
    .info-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-value {
        text-align: left;
    }
    
    .adherent-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .adherent-avatar {
        width: 32px;
        height: 32px;
    }
    
    .stats-section {
        position: static;
        margin-top: 1.5rem;
    }
    
    .adherents-table {
        font-size: 0.875rem;
    }
    
    .adherents-table thead th,
    .adherents-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .organization-header {
        padding: 1rem;
    }
    
    .organization-name {
        font-size: 1.75rem;
    }
    
    .info-grid {
        gap: 0.75rem;
    }
    
    .adherents-table {
        font-size: 0.8rem;
    }
    
    .adherents-table thead th,
    .adherents-table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .type-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .badge-success,
    .badge-danger {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
} 