/* Styles personnalisés pour l'application généalogique */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.photo-scroller {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
}

.photo-scroller .card {
    flex: 0 0 auto;
    margin-right: 15px;
    width: 200px;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Styles pour l'arbre généalogique */
.tree-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.person-card {
    transition: all 0.3s ease;
}

.person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Styles pour les formulaires */
.form-label {
    font-weight: 500;
}

.btn {
    border-radius: 0.375rem;
}

/* Styles pour les tables */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Styles responsives */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .photo-scroller .card {
        width: 150px;
    }
}

/* Animation de chargement */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badges personnalisés */
.badge-family {
    background-color: #6f42c1;
    color: white;
}

.badge-member {
    background-color: #20c997;
    color: white;
}

/* Galerie photos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.photo-item {
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.03);
}