/* ===========================
   GÉNÉALOGIE DOMINIQUE LEMAIRE
   Thème parchemin : crème, brun, or
   =========================== */

:root {
    --header-h: 58px;
    --nav-h: 62px;

    --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, Cambria, serif;

    /* Couleurs */
    --bg: #fbf3e6;
    --surface: #fdf8ee;
    --surface-2: #f6ebd6;
    --text: #2e2114;
    --heading: #6b4a1e;
    --muted: #7d6a4d;
    --border: #e1d0b2;
    --line: #eadfcb;

    --primary: #8b5e1a;
    --primary-dark: #6e4a12;
    --primary-soft: #f3e3c3;
    --gold: #b8861b;

    --male: #5b7fa6;
    --female: #b5586f;
    --unknown: #b3a285;

    --node-fill: #fffaf0;
    --node-stroke: #d9c3a0;
    --link: #c4ad84;

    --radius: 12px;
    --shadow: 0 1px 2px rgba(74, 47, 18, .08), 0 4px 12px rgba(74, 47, 18, .08);

    /* Bootstrap suit le thème (modales, champs, alertes) */
    --bs-body-font-family: var(--font-serif);
    --bs-body-bg: var(--surface);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface-2);
}

[data-bs-theme="dark"] {
    --bg: #1b150e;
    --surface: #251d14;
    --surface-2: #2e241a;
    --text: #f0e4d0;
    --heading: #e0b25a;
    --muted: #b9a688;
    --border: #4a3b28;
    --line: #3b2f20;

    --primary: #e0b25a;
    --primary-dark: #c99a40;
    --primary-soft: #3a2d18;
    --gold: #e0b25a;

    --male: #7ea0c8;
    --female: #d27b92;
    --unknown: #8c7d63;

    --node-fill: #2e241a;
    --node-stroke: #5b4a33;
    --link: #6e5a3c;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px rgba(0, 0, 0, .35);

    --bs-body-bg: var(--surface);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-secondary-color: var(--muted);
    --bs-tertiary-bg: var(--surface-2);
}

/* ===========================
   BASE
   =========================== */

html, body { height: 100%; }

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary); }

h1, h2, h3, h4, h5 { font-family: var(--font-serif); }

/* Boutons Bootstrap aux couleurs du thème */
.btn-success {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-active-color: #fff;
}

[data-bs-theme="dark"] .btn-success {
    --bs-btn-color: #1b150e;
    --bs-btn-hover-color: #1b150e;
    --bs-btn-active-color: #1b150e;
}

.btn-outline-secondary {
    --bs-btn-color: var(--heading);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-bg: var(--primary-soft);
    --bs-btn-hover-color: var(--heading);
    --bs-btn-hover-border-color: var(--gold);
    --bs-btn-active-bg: var(--primary-soft);
    --bs-btn-active-color: var(--heading);
    --bs-btn-active-border-color: var(--gold);
}

.form-control, .form-select {
    border-radius: 8px;
    background-color: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--gold) 25%, transparent);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.modal-header, .modal-footer { border-color: var(--line); }

/* ===========================
   HEADER
   =========================== */

.app-header {
    flex: 0 0 var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 0 1rem;
    background: linear-gradient(135deg, #3d2710 0%, #5e3f18 100%);
    border-bottom: 3px solid var(--gold);
    color: #f8ecd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    color: #f8ecd4;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .01em;
}

.brand i { color: #e3b45a; }

.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand:hover { color: #fff; }

.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(227, 180, 90, .5);
    border-radius: 10px;
    background: transparent;
    color: #f8ecd4;
    transition: background .15s;
}

.icon-btn:hover { background: rgba(227, 180, 90, .2); }

.app-header .btn-light {
    --bs-btn-bg: #f5e6c8;
    --bs-btn-border-color: #f5e6c8;
    --bs-btn-color: #3d2710;
    --bs-btn-hover-bg: #fff3d9;
    --bs-btn-hover-border-color: #fff3d9;
    --bs-btn-hover-color: #3d2710;
    --bs-btn-active-bg: #fff3d9;
    --bs-btn-active-color: #3d2710;
}

/* ===========================
   LAYOUT
   =========================== */

.app-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(270px, 310px) minmax(0, 1fr) minmax(290px, 350px);
}

.panel {
    background: var(--bg);
    overflow-y: auto;
    padding: 1.25rem 1.3rem;
}

.panel-left { border-right: 1px solid var(--border); }
.panel-right { border-left: 1px solid var(--border); }

.panel-center {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--surface);
}

/* Titres de rubriques : petites capitales espacées + filet */
.section-title {
    margin: 0 0 .5rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--border);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--heading);
}

.section-title i { display: none; }

.section-sep {
    margin: 1.6rem 0 1.4rem;
    border: 0;
    height: 0;
}

.sub-title {
    margin: 1.4rem 0 .4rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--heading);
}

.panel-footer {
    margin: 1.6rem 0 0;
    text-align: center;
    font-size: .85rem;
    font-style: italic;
    color: var(--muted);
}

/* ===========================
   STATS
   =========================== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: .9rem;
}

.stat {
    padding: .7rem .25rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--primary);
}

.stat span {
    font-size: .75rem;
    font-style: italic;
    color: var(--muted);
}

/* ===========================
   LISTES « MENU » (recherche, parents, conjoints, enfants)
   chevron doré + filet entre les lignes
   =========================== */

#searchResults {
    max-height: 340px;
    overflow-y: auto;
}

.result-item,
.relation-list .rel-link {
    position: relative;
    display: block;
    width: 100%;
    padding: .6rem .25rem .6rem 1.4rem;
    text-align: left;
    color: var(--text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: color .15s, padding-left .15s;
}

.result-item::before,
.relation-list .rel-link::before {
    content: "›";
    position: absolute;
    left: .3rem;
    top: .45rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold);
}

.result-item:hover,
.relation-list .rel-link:hover {
    color: var(--primary);
    padding-left: 1.6rem;
}

.result-item .r-name { display: block; font-weight: 600; }
.result-item .r-dates { display: block; font-size: .85rem; font-style: italic; color: var(--muted); }

.search-empty { font-size: .95rem; font-style: italic; color: var(--muted); }

.relation-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.relation-list li { margin: 0; }
.relation-list .rel-link small { font-style: italic; color: var(--muted); }
.relation-list .rel-none { padding: .4rem .25rem; font-size: .95rem; font-style: italic; color: var(--muted); }

/* ===========================
   ARBRE
   =========================== */

.tree-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.tree-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    color: var(--heading);
}

.depth-select { width: auto; }

#treeContainer {
    position: relative;
    flex: 1;
    min-height: 0;
    background-color: var(--surface);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
}

#tree { position: absolute; inset: 0; }

.tree-svg {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.tree-svg:active { cursor: grabbing; }

.link {
    fill: none;
    stroke: var(--link);
    stroke-width: 1.5;
}

.node { cursor: pointer; }

.node .card-bg {
    fill: var(--node-fill);
    stroke: var(--node-stroke);
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(74, 47, 18, .15));
}

.node:hover .card-bg { stroke: var(--gold); }

.node.selected .card-bg {
    stroke: var(--gold);
    stroke-width: 3;
}

.node .accent.male { fill: var(--male); }
.node .accent.female { fill: var(--female); }
.node .accent.unknown { fill: var(--unknown); }

.node .n-name {
    font-size: 14px;
    font-weight: 700;
    fill: var(--text);
}

.node .n-dates {
    font-size: 12px;
    font-style: italic;
    fill: var(--muted);
}

.node .more circle { fill: var(--gold); }
.node .more text {
    fill: #fff;
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}

.empty-state {
    height: 100%;
    display: grid;
    place-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
}

.empty-state i {
    margin-bottom: 1rem;
    font-size: 4rem;
    color: var(--gold);
    opacity: .85;
}

.empty-state h2 { color: var(--heading); }

/* ===========================
   FICHE INDIVIDU
   =========================== */

.avatar {
    width: 96px;
    height: 96px;
    margin: .5rem auto .75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid var(--gold);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: var(--unknown);
    box-shadow: var(--shadow);
}

.avatar.male { background: var(--male); }
.avatar.female { background: var(--female); }

.person-name {
    margin: 0 0 .5rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading);
}

.info-list { margin: 0; }

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .98rem;
}

.info-row dt { font-weight: 400; font-style: italic; color: var(--muted); }
.info-row dd { margin: 0; text-align: right; font-weight: 600; }

/* ===========================
   TIMELINE / CARTE
   =========================== */

.timeline-item {
    margin-bottom: .6rem;
    padding: .6rem .85rem;
    background: var(--surface-2);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

.timeline-item .t-date { font-weight: 700; color: var(--primary); margin-right: .5rem; }

#map {
    width: 100%;
    height: 60vh;
    min-height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ===========================
   NAVIGATION MOBILE
   =========================== */

.mobile-nav { display: none; }

@media (max-width: 991.98px) {

    .app-shell {
        display: block;
        position: relative;
    }

    .panel {
        display: none;
        position: absolute;
        inset: 0;
    }

    .panel.is-active { display: block; }
    .panel-center.is-active { display: flex; }

    .panel-left, .panel-right { border: 0; }

    .mobile-nav {
        flex: 0 0 var(--nav-h);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: var(--surface);
        border-top: 2px solid var(--gold);
    }

    .mobile-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        border: 0;
        background: transparent;
        font-family: var(--font-serif);
        font-size: .78rem;
        color: var(--muted);
    }

    .mobile-nav button i { font-size: 1.15rem; }
    .mobile-nav button.active { color: var(--primary); font-weight: 700; }
}

@media (max-width: 575.98px) {
    .brand { font-size: 1rem; }
    .panel { padding: 1rem; }
    .tree-toolbar { padding: .4rem .5rem; }
    .tree-title { font-size: .92rem; }
}

/* ===========================
   EXPLORER (menu type Ancestris)
   =========================== */

.explore-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100%;
    background: var(--bg);
}

.explore-nav {
    padding: 1.1rem 1.2rem;
    border-right: 1px solid var(--border);
    background: var(--bg);
}

.nav-section-title {
    margin: 1.2rem 0 .3rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--heading);
}

.nav-section-title:first-child { margin-top: 0; }

.explore-nav button {
    position: relative;
    display: block;
    width: 100%;
    padding: .55rem .25rem .55rem 1.4rem;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    transition: color .15s, padding-left .15s;
}

.explore-nav button::before {
    content: "›";
    position: absolute;
    left: .3rem;
    top: .35rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}

.explore-nav button:hover { color: var(--primary); padding-left: 1.6rem; }
.explore-nav button.active { color: var(--primary); font-weight: 700; }

.explore-main {
    min-width: 0;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
}

.explore-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.explore-toolbar:empty { display: none; }
.explore-toolbar .form-control { flex: 1 1 220px; max-width: 360px; }
.explore-sort { width: auto; }

.explore-h {
    margin: 1.4rem 0 .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--heading);
}

.explore-h:first-child { margin-top: 0; }
.explore-h small { letter-spacing: 0; text-transform: none; font-weight: 400; font-style: italic; }

.explore-empty, .explore-hint, .pager-info {
    font-size: .92rem;
    font-style: italic;
    color: var(--muted);
}

.table-wrap { overflow-x: auto; }

.explore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .98rem;
}

.explore-table th {
    padding: .5rem .6rem;
    text-align: left;
    white-space: nowrap;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--heading);
    border-bottom: 2px solid var(--border);
}

.explore-table td {
    padding: .5rem .6rem;
    border-bottom: 1px solid var(--line);
}

.explore-table .num { text-align: right; white-space: nowrap; }

.explore-table tbody tr[data-open-person],
.explore-table tbody tr[data-surname],
.explore-table tbody tr[data-place] { cursor: pointer; }

.explore-table tbody tr[data-open-person]:hover,
.explore-table tbody tr[data-surname]:hover,
.explore-table tbody tr[data-place]:hover { background: var(--primary-soft); }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    font-size: .92rem;
    color: var(--muted);
}

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .8rem; }

.chip {
    padding: .25rem .75rem;
    font-family: var(--font-serif);
    font-size: .9rem;
    color: var(--heading);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.chip:hover { border-color: var(--gold); }
.chip.active { color: #fff; background: var(--primary); border-color: var(--primary); }
[data-bs-theme="dark"] .chip.active { color: #1b150e; }

/* Calendrier */
.cal-list, .celeb-list { margin: 0; padding: 0; list-style: none; }

.cal-item {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    padding: .45rem .25rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}

.cal-item:hover { background: var(--primary-soft); }
.cal-year { min-width: 3.2rem; font-weight: 700; color: var(--primary); }
.cal-type { min-width: 5.5rem; font-size: .78rem; font-style: italic; color: var(--muted); }
.cal-N { color: var(--male); }
.cal-D { color: var(--muted); }
.cal-M { color: var(--female); }

/* Éléments fréquents */
.freq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
}

.freq-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .3rem .5rem;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.freq-bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--primary-soft);
    z-index: 0;
}

.freq-label, .freq-count { position: relative; z-index: 1; }
.freq-count { font-weight: 700; color: var(--primary); }

/* Célébrités */
.celeb-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .3rem .25rem;
    border-bottom: 1px solid var(--line);
}

.celeb-main {
    flex: 1;
    min-width: 0;
    padding: .25rem 0;
    text-align: left;
    font-family: var(--font-serif);
    color: var(--text);
    background: transparent;
    border: 0;
}

.celeb-main strong { display: block; }
.celeb-main span { display: block; font-size: .88rem; font-style: italic; color: var(--muted); }
.celeb-main:hover strong { color: var(--primary); }
.celeb-wiki { font-size: .85rem; white-space: nowrap; }

@media (max-width: 991.98px) {

    .explore-layout { display: block; }

    .explore-nav {
        display: flex;
        gap: .3rem;
        padding: .6rem .75rem;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 2px solid var(--gold);
    }

    .nav-section-title { display: none; }

    .explore-nav button {
        width: auto;
        flex: 0 0 auto;
        padding: .4rem .9rem;
        white-space: nowrap;
        border: 1px solid var(--border);
        border-radius: 999px;
    }

    .explore-nav button::before { display: none; }
    .explore-nav button:hover { padding-left: .9rem; }
    .explore-nav button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
    [data-bs-theme="dark"] .explore-nav button.active { color: #1b150e; }

    .explore-main { padding: 1rem; }
    .freq-grid { grid-template-columns: 1fr; }
}

/* ===========================
   PAGES D'HISTOIRE FAMILIALE (Explorer)
   =========================== */

.doc { max-width: 860px; line-height: 1.65; }
.doc-title { margin: 0 0 .3rem; font-size: 1.55rem; color: var(--heading); }
.doc-lead { margin-bottom: 1.2rem; font-style: italic; color: var(--muted); }

.doc h3 {
    margin: 1.9rem 0 .7rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--heading);
}

.doc h4 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; color: var(--primary); }
.doc p { margin: 0 0 .85rem; }
.doc a { color: var(--primary); }
.doc-facts { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc-facts li { margin-bottom: .25rem; }
.doc-src { font-size: .85rem; font-style: italic; color: var(--muted); }

.doc blockquote {
    margin: 1rem 0;
    padding: .7rem 1rem .1rem;
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--primary-soft);
    font-size: .95rem;
}

.doc-fig { margin: 1rem auto; text-align: center; }
.doc-fig img { max-width: min(100%, 420px); height: auto; border-radius: 8px; box-shadow: var(--shadow); }
.doc-fig figcaption { margin-top: .35rem; font-size: .85rem; font-style: italic; color: var(--muted); }

.doc details {
    margin: .6rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--node-fill);
}

.doc summary { cursor: pointer; padding: .55rem .9rem; list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc-details summary { font-weight: 700; color: var(--primary); }
.doc-details summary::before { content: "▸ "; }
.doc-details[open] summary::before { content: "▾ "; }
.doc-names { margin: 0; padding: 0 .9rem .8rem; font-size: .9rem; line-height: 1.7; }

/* Frise chronologique */
.tl {
    position: relative;
    margin: 1rem 0 1.4rem .7rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gold);
}

.tl-item { position: relative; margin: 0 0 .55rem; }

.tl-item::before {
    content: "";
    position: absolute;
    left: calc(-1.5rem - 10px);
    top: .8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--gold);
}

.tl-item summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
.tl-item[open] { box-shadow: var(--shadow); }
.tl-item summary:hover { background: var(--primary-soft); border-radius: var(--radius); }
.tl-num { min-width: 2.8rem; font-weight: 700; color: var(--primary); }
.tl-name { font-weight: 700; }
.tl-dates { margin-left: auto; font-style: italic; color: var(--muted); white-space: nowrap; }
.tl-body { padding: 0 .9rem .8rem 3.6rem; font-size: .95rem; }

@media (max-width: 575.98px) {
    .tl-body { padding-left: .9rem; }
    .tl-dates { margin-left: 0; }
}

.explore-note { margin: -.3rem 0 .8rem; font-size: .9rem; font-style: italic; color: var(--muted); }

/* ===========================
   IMPRESSION DE L'ARBRE
   =========================== */

#printSheet { display: none; }

@media print {

    body.printing-tree > *:not(#printSheet) { display: none !important; }

    body.printing-tree { background: #fff !important; }

    body.printing-tree #printSheet {
        display: block;
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #printSheet .print-head { margin-bottom: 4mm; border-bottom: 1px solid #999; padding-bottom: 2mm; }
    #printSheet .print-site { font-size: 9pt; letter-spacing: .12em; text-transform: uppercase; color: #6b4f2a; }
    #printSheet .print-title { margin: 1mm 0 0; font-size: 15pt; font-weight: 700; }
    #printSheet .print-foot { margin-top: 3mm; font-size: 8pt; color: #666; text-align: right; }

    #printSheet .print-svg { display: block; width: 100%; }
    #printSheet.print-landscape .print-svg { height: 170mm; }
    #printSheet.print-portrait .print-svg { height: 245mm; }

    #printSheet .node .card-bg { filter: none; }
}
