/* Commentaire de début - Styles de la Fiche Individuelle (v2.9.93) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Space+Grotesk:wght@400;700&display=swap');

.recit-container {
    background-color: #fdfaf2;
    border: 2px solid #8e6c50;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 24px rgba(138, 88, 50, 0.08), inset 0 0 40px rgba(138, 88, 50, 0.04);
    font-family: 'Playfair Display', Georgia, serif;
    color: #433325;
    line-height: 1.8;
}

.recit-container::before {
    content: '';
    display: block;
    border: 1px dashed rgba(138, 88, 50, 0.3);
    margin: -25px -25px 25px -25px;
    padding-bottom: 25px;
    border-radius: 8px 8px 0 0;
}

.lettrine {
    font-family: 'Great Vibes', 'Cinzel', 'Georgia', serif;
    font-size: 4.8rem;
    float: left;
    line-height: 0.72;
    margin-top: 0.15rem;
    margin-right: 0.65rem;
    color: #8a5832;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.12);
    font-weight: bold;
}

.section-titre {
    font-family: 'Cinzel', serif;
    font-size: 1.02rem;
    color: #8b5837;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1.5px double rgba(138, 88, 50, 0.2);
    text-align: center;
}

.mini-tree-container {
    border: 1px double rgba(138, 88, 50, 0.25);
    border-radius: 8px;
    background-color: #fefdfb;
    padding: 22px;
    margin: 28px 0;
    text-align: center;
    box-shadow: inset 0 0 12px rgba(138,88,50,0.02);
}

.tree-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tree-row:last-child {
    margin-bottom: 0;
}

.tree-node {
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #ffffff;
    border: 1.5px solid #ebd9c5;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.22s ease-in-out;
}

.tree-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(138,88,50,0.1);
    border-color: #8a5832;
}

.tree-node.main-subject {
    background-color: #fbf5ee;
    border: 2px solid #8a5832;
    width: 135px;
}

.node-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f7f3ed;
    border: 1.5px solid #ebd9c5;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.main-subject .node-photo {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    border: 2px solid #8a5832;
}

.tree-node span {
    font-size: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #4a3d31;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.tree-node .node-year {
    font-size: 0.65rem;
    font-weight: 400;
    color: #8a7c6e;
    font-family: monospace;
}

.seal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 5px 0;
}

.wax-seal {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle, #b13c24 0%, #851c14 100%);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.2), inset 0 -4px 10px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #8c231a;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.wax-seal:hover {
    transform: rotate(5deg) scale(1.05);
}

.wax-seal::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 50%;
}

.wax-seal-logo {
    font-family: 'Great Vibes', 'Cinzel', 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: normal;
    color: #f7ede2;
    text-shadow: -1px -1px 1px rgba(0,0,0,0.6), 1px 1px 1px rgba(255,255,255,0.2);
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-block;
    transform: translateY(-2px);
}

.titan-link {
    color: #8a5832;
    font-weight: bold;
    border-bottom: 1.5px dotted #c2b09e;
    cursor: help;
    position: relative;
    display: inline-block;
}

.titan-bubble {
    visibility: hidden;
    width: 220px;
    background: #fdfaf6;
    color: #4a3d31;
    text-align: center;
    border: 2px solid #ebd9c5;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1050;
    bottom: 140%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(5px);
    box-shadow: 0 10px 25px rgba(138, 88, 50, 0.15);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    line-height: 1.4;
    pointer-events: auto;
}

.titan-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #ebd9c5 transparent transparent transparent;
}

.titan-link:hover .titan-bubble, .titan-link:focus-within .titan-bubble {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.bubble-name {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #8a5832;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.bubble-dates {
    display: block;
    font-family: monospace;
    font-size: 0.72rem;
    color: #8a7c6e;
    margin-bottom: 8px;
}

.bubble-action {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: bold;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff !important;
    background-color: #8a5832;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background 0.15s;
}

.bubble-action:hover {
    background-color: #704726;
}

.btn-print-titan {
    background: linear-gradient(135deg, #a06f4c 0%, #8a5832 100%);
    border: 1.5px solid #ebd9c5;
    color: #ffffff !important;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.25s ease;
}

.btn-print-titan:hover {
    background: linear-gradient(135deg, #8a5832 0%, #704726 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 88, 50, 0.2);
}

@media print {
    body {
        background-color: #fdfaf2 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .no-print, 
    header, 
    footer, 
    nav, 
    iframe,
    button,
    .btn, 
    #btn-fav-large, 
    #loginModal,
    .navbar {
        display: none !important;
    }
    
    #ancestor-sheet-full, .card {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .cols, .row {
        gap: 0 !important;
    }

    .recit-container {
        border: none !important;
        background-color: #fdfaf2 !important;
        padding: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .recit-container::before {
        display: none !important;
    }
    
    .titan-bubble {
        display: none !important;
    }
}

.btn-genealogy-action {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5a4b3d !important;
    background-color: #fdfcf9;
    border: 1px solid #c2b09e;
    border-radius: 50px;
    padding: 6px 16px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-genealogy-action:hover {
    color: #ffffff !important;
    background-color: #8a5832 !important;
    border-color: #8a5832 !important;
    box-shadow: 0 4px 10px rgba(138, 88, 50, 0.15);
}
/* Commentaire