/* ============================================================
   TOCCO HEURTOIRS — Theme CSS
   ============================================================ */

/* ── Variables ── */
:root {
    --g:        #6d7c37;
    --gd:       #4a5526;
    --gdd:      #2c3520;
    --gl:       #f0f7e8;
    --gb:       #c6d68c;
    --gb2:      rgba(198, 214, 140, .3);
    --warm:     #faf8f4;
    --text:     #1e2a0e;
    --muted:    #64748b;
    --line:     rgba(109, 124, 55, .18);
    --white:    #ffffff;
    --header-h: 68px;
    --r:        10px;
    --r-lg:     14px;
    --shadow:   0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --trans:    .2s ease;
}

/* ── Reset minimal ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--warm);
    padding-top: var(--header-h);
}

a { color: var(--g); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════ */

.th-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--trans);
}

.th-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.th-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.th-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.th-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gb);
}

.th-brand-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.th-brand-text small {
    display: block;
    font-size: 11px;
    color: var(--g);
    letter-spacing: .04em;
    font-style: italic;
}

/* Nav */
.th-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.th-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-nav-list li a,
.th-nav-list li > a {
    display: inline-flex;
    padding: 7px 14px;
    font-size: 14px;
    color: var(--muted);
    border-radius: 8px;
    transition: background var(--trans), color var(--trans);
    text-decoration: none;
    font-weight: 400;
}

.th-nav-list li a:hover,
.th-nav-list li.current-menu-item > a {
    background: var(--gl);
    color: var(--gd);
}

/* Bouton Ajouter */
.th-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--g);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--trans), transform .1s;
    margin-left: 8px;
    white-space: nowrap;
}

.th-btn-add:hover { background: var(--gd); }
.th-btn-add:active { transform: scale(.97); }

/* Bouton Connexion */
.th-btn-login {
    display: inline-flex;
    padding: 7px 16px;
    font-size: 13px;
    border: 1.5px solid var(--gb);
    border-radius: 8px;
    color: var(--g);
    margin-left: 8px;
    transition: all var(--trans);
    text-decoration: none;
}
.th-btn-login:hover { background: var(--gl); text-decoration: none; }

/* Mobile toggle */
.th-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--trans);
}
.th-mobile-toggle:hover { background: var(--gl); }
.th-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
}
.th-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.th-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.th-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.th-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 999;
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */

.th-hero {
    position: relative;
    min-height: clamp(420px, 60vh, 680px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Diaporama ── */
.th-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--gdd);
}

.th-hero-slide {
    position: absolute;
    inset: 0;
    background-color: var(--gdd);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
    will-change: opacity, transform;
    transform: scale(1.07);
}

.th-hero-slide.is-active {
    opacity: 1;
    animation: tocco-pan-out 12s ease-out forwards;
}

@keyframes tocco-pan-out {
    from { transform: scale(1.07); }
    to   { transform: scale(1.0); }
}

/* Vignette sombre par-dessus les photos */
.th-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(20,30,10,.55) 0%, rgba(20,30,10,.2) 40%, rgba(20,30,10,.65) 100%);
    z-index: 1;
}

/* ── Toc toc ripples ── */
.th-hero-tocs {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-hero-toc {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(198, 214, 140, .5);
    transform: scale(0.15);
    opacity: 0;
}

/* Cycle de 9s — premier toc à 0s, deuxième à 0.45s, pause, recommence */
.th-hero-toc--a1 { animation: tocco-toc-a 9s ease-out infinite; }
.th-hero-toc--a2 { animation: tocco-toc-b 9s ease-out infinite; }
.th-hero-toc--b1 { animation: tocco-toc-a 9s ease-out infinite 4.5s; }
.th-hero-toc--b2 { animation: tocco-toc-b 9s ease-out infinite 4.5s; }

@keyframes tocco-toc-a {
    0%            { transform: scale(0.15); opacity: .55; }
    28%           { transform: scale(4);    opacity: 0; }
    28.1%, 100%   { transform: scale(0.15); opacity: 0; }
}

@keyframes tocco-toc-b {
    0%, 5%        { transform: scale(0.15); opacity: 0; }
    5%            { opacity: .38; }
    33%           { transform: scale(4);    opacity: 0; }
    33.1%, 100%   { transform: scale(0.15); opacity: 0; }
}

/* ── Onde diffuse aléatoire ── */
.th-hero-wave {
    position: absolute;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    margin-top: -60px;
    border-radius: 50%;
    border: 1px solid rgba(198, 214, 140, .22);
    background: radial-gradient(circle, rgba(198,214,140,.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: tocco-wave 5s cubic-bezier(0.1, 0.4, 0.3, 1) forwards;
}

@keyframes tocco-wave {
    0%   { transform: scale(0.1);  opacity: 1; }
    40%  { opacity: .6; }
    100% { transform: scale(10);   opacity: 0; }
}

/* ── Contenu (au-dessus du diaporama) ── */
.th-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    text-align: center;
    padding: 80px 32px 72px;
}

/* Badge */
.th-hero-badge {
    display: inline-block;
    background: rgba(198, 214, 140, .15);
    border: 1px solid rgba(198, 214, 140, .35);
    color: var(--gb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

/* Titre */
.th-hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -.02em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* Tagline */
.th-hero-tagline {
    font-size: 16px;
    color: rgba(255,255,255,.6);
    font-style: italic;
    margin-bottom: 10px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* Claim */
.th-hero-claim {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gb);
    margin-bottom: 8px;
    opacity: .85;
}

.th-hero-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 16px;
    filter: blur(14px);
    opacity: 0;
    transition: filter 1.1s cubic-bezier(.25,.46,.45,.94), opacity .8s ease;
}

.th-hero-count.is-visible {
    filter: blur(0);
    opacity: 1;
}

/* Drapeaux pays */
.th-hero-countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .8s ease .5s, transform .8s ease .5s;
}

.th-hero-countries.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.th-hero-flag {
    border-radius: 2px;
    opacity: .7;
    transition: opacity .2s, transform .2s;
    cursor: default;
}

.th-hero-flag:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Description */
.th-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 36px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* CTA */
.th-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 500;
    padding: 11px 24px;
    border-radius: 10px;
    transition: all var(--trans);
    text-decoration: none;
    backdrop-filter: blur(4px);
}
.th-hero-cta:hover {
    background: rgba(255,255,255,.22);
    color: var(--white);
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   SECTION EXPLORER
══════════════════════════════════════════════════════ */

.th-explore-section {
    width: 100%;
    padding: 0 0 56px;
}

.th-explore-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    max-width: 100%;
}

.th-explore-divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.th-explore-divider-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gb);
    white-space: nowrap;
    flex-shrink: 0;
}

.th-explore-divider .th-btn-add {
    margin-left: 0;
    padding: 6px 14px;
    font-size: 12px;
    flex-shrink: 0;
}

.th-explore-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.th-explore-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.th-explore-header p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.th-btn-add--explore {
    flex-shrink: 0;
    margin-left: 0;
}

/* Plugin manquant */
.th-plugin-missing {
    padding: 40px;
    text-align: center;
    background: var(--gl);
    border: 1.5px dashed var(--gb);
    border-radius: var(--r-lg);
    color: var(--gd);
    font-size: 15px;
}

/* ══════════════════════════════════════════════════════
   PAGE GÉNÉRIQUE
══════════════════════════════════════════════════════ */

.th-page {
    min-height: 60vh;
}

.th-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 32px 80px;
}

.th-page-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.th-page-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.01em;
    line-height: 1.2;
}

/* Corps de page */
.th-page-body { color: var(--text); }

.th-page-body h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 40px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.th-page-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gd);
    margin: 28px 0 10px;
}

.th-page-body p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
}

.th-page-body a { color: var(--g); }
.th-page-body a:hover { text-decoration: underline; }

.th-page-body ul, .th-page-body ol {
    margin: 0 0 16px 24px;
    line-height: 1.8;
    color: #374151;
}

.th-page-body code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    background: var(--gl);
    color: var(--gd);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Table légale */
.th-page-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px 0 28px;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
}

.th-page-body th {
    background: var(--gl);
    color: var(--gd);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gb);
}

.th-page-body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: #374151;
    vertical-align: top;
}

.th-page-body tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */

.th-footer {
    background: var(--gdd);
    margin-top: 0;
}

.th-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 32px 28px;
}

.th-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

/* Colonne brand */
.th-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-footer-logo-wrap { display: inline-block; margin-bottom: 2px; }

.th-footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(198, 214, 140, .35);
}

.th-footer-brand strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.th-footer-brand p {
    font-size: 13px;
    color: rgba(255,255,255,.45);
    line-height: 1.6;
    margin: 0;
}

.th-footer-tagline {
    font-style: italic;
    color: rgba(255,255,255,.35) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.th-footer-osm {
    font-size: 11px !important;
    color: rgba(255,255,255,.25) !important;
    margin-top: 8px !important;
}

.th-footer-osm a { color: rgba(198, 214, 140, .6); text-decoration: none; }
.th-footer-osm a:hover { color: var(--gb); }

/* Colonnes nav */
.th-footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    color: rgba(198, 214, 140, .8);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}

.th-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.th-footer-nav li a,
.th-footer-nav li > a {
    font-size: 14px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color var(--trans);
}

.th-footer-nav li a:hover { color: var(--white); }

/* Bottom */
.th-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.th-footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    margin: 0;
}

.th-footer-credits { font-style: italic; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .th-footer-top { grid-template-columns: 1fr 1fr; }
    .th-footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    :root { --header-h: 60px; }

    .th-header-inner { padding: 0 20px; }

    /* Nav mobile */
    .th-mobile-toggle { display: flex; }

    .th-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        border-left: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 32px;
        z-index: 1001;
        transition: right .3s cubic-bezier(.4, 0, .2, 1);
        box-shadow: -8px 0 40px rgba(0,0,0,.12);
        gap: 0;
    }

    .th-nav.is-open { right: 0; }
    .th-mobile-overlay.is-visible { display: block; }

    .th-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 2px;
    }

    .th-nav-list li { width: 100%; }
    .th-nav-list li a { display: block; width: 100%; padding: 10px 14px; font-size: 15px; }

    .th-btn-add, .th-btn-login { margin: 12px 0 0; width: 100%; justify-content: center; }

    /* Hero */
    .th-hero { padding: 56px 20px 48px; }
    .th-hero-title { font-size: 28px; }

    /* Explore */
    .th-explore-section { padding: 28px 20px 48px; }
    .th-explore-header { flex-direction: column; align-items: flex-start; }

    /* Page */
    .th-page-content { padding: 36px 20px 56px; }

    /* Footer */
    .th-footer-inner { padding: 40px 20px 24px; }
    .th-footer-top { grid-template-columns: 1fr; gap: 32px; }
    .th-footer-brand { grid-column: auto; }
    .th-footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ══════════════════════════════════════════════════════
   SINGLE HEURTOIR
══════════════════════════════════════════════════════ */

/* ── Back bar ── */
.th-single-back {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.th-single-back-link,
.th-single-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 7px;
    transition: all var(--trans);
}
.th-single-back-link:hover { background: var(--gl); color: var(--gd); }
.th-single-edit-link {
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.th-single-edit-link:hover { border-color: var(--gb); color: var(--g); background: var(--gl); }

/* ── Hero photo ── */
.th-single-hero {
    position: relative;
    height: clamp(340px, 50vh, 580px);
    overflow: hidden;
    background: var(--gdd);
}

.th-single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.th-single-hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gdd), var(--gd));
}

.th-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,30,10,.85) 0%, rgba(20,30,10,.2) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
}

.th-single-hero-content {
    padding: 36px 40px;
    width: 100%;
    max-width: 900px;
}

.th-single-hero-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.th-single-cat {
    background: rgba(198,214,140,.2);
    border: 1px solid rgba(198,214,140,.4);
    color: var(--gb);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.th-single-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.th-single-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.7);
    font-style: italic;
    margin-bottom: 16px;
}

.th-single-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.th-single-flag,
.th-single-likes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
}

.th-single-flag img { border-radius: 2px; }

.th-single-likes svg { color: rgba(255,100,100,.8); }

/* ── Corps ── */
.th-single-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 72px;
}

.th-single-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.th-single-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.th-single-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--g);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
}

.th-single-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
}

.th-single-description p { margin-bottom: 14px; }
.th-single-description p:last-child { margin-bottom: 0; }

/* Tags */
.th-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.th-single-tag {
    font-size: 13px;
    background: var(--gl);
    color: var(--gd);
    border: 1px solid var(--gb);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* Contributeur */
.th-single-contributor {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--gl);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    border: 1px solid var(--gb);
}

.th-single-contributor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--g);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    flex-shrink: 0;
}

.th-single-contributor-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.th-single-contributor-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.th-single-contributor-date {
    margin-left: auto;
    text-align: right;
    font-size: 13px;
    color: var(--muted);
}

/* ── Aside ── */
.th-single-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.th-single-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Mini carte */
.th-single-map {
    height: 220px;
    width: 100%;
}

.th-single-address {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.th-single-address-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.th-single-address-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.th-single-address-content strong {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.th-single-address-content span {
    font-size: 13px;
    color: var(--muted);
}

.th-single-address-country {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.th-single-address-country img { border-radius: 2px; }

.th-single-osm-link {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--g);
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: background var(--trans);
}
.th-single-osm-link:hover { background: var(--gl); }

/* Carte catégorie / coords */
.th-single-card--cats,
.th-single-card--coords {
    padding: 16px 18px;
}

.th-single-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.th-single-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.th-single-cat-pill {
    font-size: 13px;
    font-weight: 500;
    background: var(--gl);
    color: var(--gd);
    border: 1px solid var(--gb);
    padding: 5px 14px;
    border-radius: 20px;
}

.th-single-card--coords code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    color: var(--gd);
    background: var(--gl);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* ── Responsive single ── */
@media (max-width: 900px) {
    .th-single-body {
        grid-template-columns: 1fr;
        padding: 28px 20px 48px;
    }

    .th-single-aside {
        order: -1;
    }

    .th-single-hero-content { padding: 24px 20px; }
    .th-single-back { padding: 10px 20px; }

    .th-single-contributor { flex-wrap: wrap; }
    .th-single-contributor-date { margin-left: 0; text-align: left; }
}
