/* TropiTag — Styles communs à tous les guides */

/* ── FOCUS VISIBLE ── */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── VIEW TRANSITIONS ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-in  both fade-vt-out; }
::view-transition-new(root) { animation: 280ms ease-out both fade-vt-in;  }
@keyframes fade-vt-in  { from { opacity: 0; } }
@keyframes fade-vt-out { to   { opacity: 0; } }

        ::-webkit-scrollbar-track { background: var(--forest); }

        ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

        body {
            font-family: 'Jost', sans-serif;
            font-weight: 300;
            background: var(--cream);
            color: var(--forest);
            line-height: 1.75;
            font-size: 1rem;
        }
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 1000;
            opacity: 0.4;
        }

        .anim-1 { opacity: 0; animation: fadeUp 0.8s 0.1s forwards; }

        .anim-2 { opacity: 0; animation: fadeUp 0.8s 0.25s forwards; }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            flex-shrink: 0;
        }

        .nav-logo-text { display: flex; flex-direction: column; gap: 2px; }

        .nav-logo-title {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.35rem;
            font-weight: 300;
            color: rgba(255,255,255,0.9);
            letter-spacing: 0.04em;
            line-height: 1;
        }

        .nav-logo-title em { font-style: italic; color: var(--gold); }

        .nav-logo-sub {
            font-size: 0.52rem;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: rgba(212,175,55,0.4);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 28px;
            margin-left: auto;
        }

        .nav-links a {
            font-size: 0.72rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            transition: color 0.2s;
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 28px;
        }

        .breadcrumb a {
            font-size: 0.62rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: rgba(212,175,55,0.5);
            text-decoration: none;
            transition: color 0.2s;
        }

        .guide-figure img {
            display: block;
            width: 100%;
            max-height: 420px;
            object-fit: cover;
            background: rgba(27,77,62,0.08);
        }

        .toc-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .toc-list li a {
            display: block;
            font-size: 0.8rem;
            color: rgba(15,46,30,0.55);
            text-decoration: none;
            padding: 7px 10px;
            border-radius: 2px;
            transition: background 0.2s, color 0.2s;
            line-height: 1.4;
        }

        .toc-list li a:hover {
            background: rgba(212,175,55,0.08);
            color: var(--primary);
        }

        .footer-logo {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.7rem;
            font-weight: 300;
            color: rgba(255,255,255,0.75);
        }

        .footer-logo em { font-style: italic; color: var(--gold); }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 9px;
        }

        .footer-links a {
            font-size: 0.78rem;
            color: rgba(255,255,255,0.38);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover { color: var(--gold); }

        .fiches-assoc-title {
            font-size: 0.58rem;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .fiches-assoc-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(142,109,28,0.18);
        }

        .fiches-assoc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 14px;
        }

        .fiche-card {
            display: flex;
            flex-direction: column;
            gap: 2px;
            background: #fff;
            border: 1px solid rgba(212,175,55,0.2);
            border-radius: 6px;
            padding: 16px 18px;
            text-decoration: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .fiche-card:hover {
            border-color: rgba(212,175,55,0.5);
            box-shadow: 0 2px 12px rgba(27,77,62,0.07);
        }

        .fiche-card-nom {
            font-family: 'Cormorant Garamond', serif;
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--forest);
        }

        .fiche-card-latin {
            font-size: 0.73rem;
            font-style: italic;
            color: var(--accent);
        }

        .fiche-card-arrow {
            font-size: 0.65rem;
            color: var(--gold);
            margin-top: 8px;
            letter-spacing: 0.06em;
        }
@keyframes fadeUp {
            from { opacity: 0; transform: translateY(18px); }
@keyframes fadeIn {
            from { opacity: 0; }