/* ============================================================
   public/css/style.css – Styles personnalisés de Genea
   ============================================================ */

/* ── Corps de page ── */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

main.container {
    flex: 1;
}

/* ── Footer collé en bas ── */
.footer {
    margin-top: auto;
}

/* ── Navbar ── */
.navbar-brand {
    letter-spacing: -0.3px;
}

/* ── Cartes ── */
.card {
    border-radius: 12px;
}

/* ── Boutons ── */
.btn {
    border-radius: 8px;
}

/* ── Champs de formulaire ── */
.form-control, .form-select {
    border-radius: 8px;
}

/* ── Badges ── */
.badge {
    font-weight: 500;
    font-size: 0.8rem;
}

/* ── Arbre généalogique (Phase 4) ── */
#tree-container {
    width: 100%;
    min-height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

/* ── Cartes personnes ── */
.person-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}

/* ── Photo de profil (grande) ── */
.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #dee2e6;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
    border: 3px solid #dee2e6;
}

/* ── Photo de profil (petite, dans les cartes) ── */
.profile-photo-sm {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

.profile-photo-sm-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #adb5bd;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }
}
