/* ============================================================
 * TAROTOUI — IDENTITÉ VISUELLE
 * ============================================================
 *
 * Palette : nuit profonde + or champagne + violet crépuscule.
 *   --to-night    #0E0B1A   fond principal, ciel sans lune
 *   --to-twilight #3E2B59   pénombre, surfaces secondaires
 *   --to-plum     #5C2A4E   accent chaud, prune fumée
 *   --to-gold     #D8B96B   doré champagne, métal poli
 *   --to-gold-soft#F0DEA7   doré clair pour textes sur fond noir
 *   --to-cream    #F4ECD8   crème, papier ancien (sections claires)
 *   --to-mist     #C7BFD8   gris-mauve, texte secondaire sur fond noir
 *
 * Typographie : Cormorant Garamond (serif manuscrit) pour les
 *   titres, Inter (sans-serif sobre) pour le corps. Volontairement
 *   distinct de Cinzel + Manrope utilisés par le site frère Tarotki :
 *   l\'ensemble vise un imaginaire Art-Nouveau / manuscrit enluminé
 *   plutôt qu\'épigraphique romain.
 *
 * Philosophie : sombre par défaut, riche en ornements discrets
 *   (étoiles, filets dorés, traits courbes), respiration ample,
 *   contraste maîtrisé. Mystique mais lisible.
 * ============================================================ */

:root {
    /* Couleurs */
    --to-night:        #0E0B1A;
    --to-night-2:      #15102A;
    --to-twilight:     #3E2B59;
    --to-twilight-2:   #2A1C3F;
    --to-plum:         #5C2A4E;
    --to-plum-soft:    #7A3C68;
    --to-gold:         #D8B96B;
    --to-gold-bright:  #E8CB7F;
    --to-gold-soft:    #F0DEA7;
    --to-cream:        #F4ECD8;
    --to-mist:         #C7BFD8;
    --to-mist-2:       #9A8FB5;

    /* Tipos */
    --to-font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
    --to-font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Espacements */
    --to-nav-h:        76px;
    --to-radius:       14px;
    --to-radius-sm:    8px;

    /* Ombres et lueurs */
    --to-glow-gold:    0 0 24px rgba(216,185,107,0.15);
    --to-shadow-card:  0 4px 18px rgba(0,0,0,0.35), 0 1px 0 rgba(216,185,107,0.08) inset;
}

@media (max-width: 480px) {
    :root { --to-nav-h: 62px; }
}

/* ──────────────────────────────────────────────────────────────
 * BASE
 * ────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--to-font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--to-cream);
    background: var(--to-night);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62,43,89,0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 30%, rgba(92,42,78,0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 10% 70%, rgba(62,43,89,0.30) 0%, transparent 55%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--to-nav-h);
}

/* Fond étoilé subtil (créé en CSS pur — pas d\'image) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(240,222,167,0.7), transparent),
        radial-gradient(1px 1px at 28% 64%, rgba(216,185,107,0.55), transparent),
        radial-gradient(1px 1px at 47% 22%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 65% 80%, rgba(216,185,107,0.5), transparent),
        radial-gradient(1px 1px at 82% 45%, rgba(240,222,167,0.65), transparent),
        radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 38% 88%, rgba(240,222,167,0.7), transparent),
        radial-gradient(1px 1px at 55% 55%, rgba(199,191,216,0.45), transparent);
    background-size: 100% 100%;
    z-index: 0;
    opacity: 0.85;
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--to-font-serif);
    font-weight: 600;
    color: var(--to-gold-soft);
    line-height: 1.22;
    letter-spacing: 0.01em;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1em; color: var(--to-cream); }

a {
    color: var(--to-gold);
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}
a:hover, a:focus-visible { color: var(--to-gold-bright); text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--to-gold); color: var(--to-night); }

/* ──────────────────────────────────────────────────────────────
 * LAYOUT
 * ────────────────────────────────────────────────────────────── */

.to-page { min-height: 100vh; display: flex; flex-direction: column; }
.to-main { flex: 1; padding: 2rem 1.25rem 4rem; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ──────────────────────────────────────────────────────────────
 * NAVIGATION
 * ────────────────────────────────────────────────────────────── */

.to-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--to-nav-h);
    background: linear-gradient(180deg, rgba(14,11,26,0.96) 0%, rgba(14,11,26,0.88) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216,185,107,0.18);
    z-index: 100;
}
.to-nav { height: 100%; }
.to-nav__container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.to-nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--to-gold);
    text-decoration: none;
    flex-shrink: 0;
}
.to-nav__logo:hover { color: var(--to-gold-bright); text-decoration: none; }
.to-logo-svg { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(216,185,107,0.25)); }
.to-logo-text {
    font-family: var(--to-font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--to-gold-soft);
}

.to-nav__list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0; padding: 0;
}
.to-nav__link {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    color: var(--to-cream);
    font-family: var(--to-font-sans);
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--to-radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}
.to-nav__link:hover, .to-nav__link:focus-visible { color: var(--to-gold-soft); background: rgba(216,185,107,0.08); text-decoration: none; }
.to-nav__link--active { color: var(--to-gold); position: relative; }
.to-nav__link--active::after {
    content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.18rem;
    height: 1px; background: var(--to-gold);
    box-shadow: 0 0 6px rgba(216,185,107,0.6);
}

.to-nav__toggle {
    display: none;
    width: 40px; height: 40px;
    background: none; border: 1px solid rgba(216,185,107,0.4);
    border-radius: var(--to-radius-sm);
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.to-nav__toggle span {
    width: 18px; height: 1.5px; background: var(--to-gold);
    transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 980px) {
    .to-nav__toggle { display: inline-flex; }
    .to-nav__list {
        position: absolute; top: var(--to-nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(14,11,26,0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(216,185,107,0.2);
        padding: 0.5rem 1rem 1rem;
        gap: 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .to-nav__list--open { max-height: 80vh; }
    .to-nav__item { width: 100%; }
    .to-nav__link { display: block; padding: 0.85rem 0.6rem; border-bottom: 1px solid rgba(216,185,107,0.08); }
    .to-nav__link--active::after { display: none; }
    .to-nav__link--active { background: rgba(216,185,107,0.08); }
}

/* ──────────────────────────────────────────────────────────────
 * HERO ACCUEIL
 * ────────────────────────────────────────────────────────────── */

.to-hero {
    position: relative;
    padding: 4rem 1rem 3rem;
    text-align: center;
    overflow: hidden;
}
.to-hero__inner { max-width: 760px; margin: 0 auto; position: relative; }
.to-hero__ornament { color: var(--to-gold); margin: 0 auto 1.5rem; width: clamp(180px, 30vw, 260px); opacity: 0.8; }
.to-hero__title {
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, var(--to-gold-soft) 0%, var(--to-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 2px 24px rgba(216,185,107,0.15);
}
.to-hero__lead {
    color: var(--to-mist);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────
 * SECTIONS GÉNÉRIQUES
 * ────────────────────────────────────────────────────────────── */

.to-section__title {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}
.to-section__title::before,
.to-section__title::after {
    content: "";
    display: inline-block;
    width: 38px; height: 1px;
    background: var(--to-gold);
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.5;
}

/* ──────────────────────────────────────────────────────────────
 * GRILLES
 * ────────────────────────────────────────────────────────────── */

.to-grid { display: grid; gap: 1.25rem; }
.to-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.to-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.to-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.to-grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ──────────────────────────────────────────────────────────────
 * CARTES
 * ────────────────────────────────────────────────────────────── */

.to-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.5rem 1.25rem 1.35rem;
    background: linear-gradient(160deg, rgba(62,43,89,0.40) 0%, rgba(21,16,42,0.85) 100%);
    border: 1px solid rgba(216,185,107,0.18);
    border-radius: var(--to-radius);
    text-decoration: none;
    color: var(--to-cream);
    box-shadow: var(--to-shadow-card);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}
.to-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, rgba(216,185,107,0.18) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.to-card:hover, .to-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(216,185,107,0.5);
    box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(216,185,107,0.15), var(--to-glow-gold);
    text-decoration: none;
}
.to-card:hover::before { opacity: 1; }

.to-card__icon { color: var(--to-gold); margin-bottom: 0.2rem; opacity: 0.92; }
.to-card__title {
    font-family: var(--to-font-serif);
    color: var(--to-gold-soft);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
}
.to-card__desc {
    color: var(--to-mist);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}
.to-card__cta {
    margin-top: auto;
    padding-top: 0.5rem;
    color: var(--to-gold);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.to-card--app .to-card__title { font-size: 1.2rem; }

/* ──────────────────────────────────────────────────────────────
 * HUB HERO
 * ────────────────────────────────────────────────────────────── */

.to-hub-hero {
    padding: 3rem 1rem 2rem;
    text-align: center;
}
.to-hub-hero__inner { max-width: 760px; margin: 0 auto; }
.to-hub-hero__icon { color: var(--to-gold); margin: 0 auto 1.25rem; opacity: 0.9; }
.to-hub-hero__title {
    background: linear-gradient(180deg, var(--to-gold-soft) 0%, var(--to-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 0.8rem;
}
.to-hub-hero__lead { color: var(--to-mist); font-size: 1.06rem; max-width: 620px; margin: 0 auto; }
.to-hub-empty { color: var(--to-mist); text-align: center; padding: 2rem; font-style: italic; }
.to-hub-list { padding: 1rem 0 2rem; }

/* ──────────────────────────────────────────────────────────────
 * BLOC SEO SOUS LES APPS
 * ────────────────────────────────────────────────────────────── */

.to-seo-block {
    max-width: 1180px;
    margin: 2rem auto 0;
    padding: 1.25rem 1.5rem;
    background: rgba(21,16,42,0.55);
    border-top: 1px solid rgba(216,185,107,0.15);
    border-bottom: 1px solid rgba(216,185,107,0.08);
}
.to-seo-block__desc { color: var(--to-mist); margin: 0; font-size: 0.95rem; text-align: center; }

.to-seo { background: rgba(14,11,26,0.6); padding: 2.5rem 1rem; }
.to-seo__inner { max-width: 820px; margin: 0 auto; }
.to-seo__section { margin: 2rem 0; }
.to-seo__intro { color: var(--to-cream); font-size: 1.08rem; margin-bottom: 1.5rem; }
.to-seo__body { color: var(--to-mist); }
.to-seo__faq { margin-top: 2.5rem; }
.to-faq {
    margin: 0.5rem 0;
    background: rgba(62,43,89,0.25);
    border: 1px solid rgba(216,185,107,0.15);
    border-radius: var(--to-radius-sm);
    padding: 0.85rem 1rem;
}
.to-faq summary {
    font-family: var(--to-font-serif);
    color: var(--to-gold-soft);
    font-size: 1.12rem;
    cursor: pointer;
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
}
.to-faq summary::-webkit-details-marker { display: none; }
.to-faq summary::after {
    content: "+";
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--to-gold); font-size: 1.3rem; line-height: 1;
    transition: transform 0.2s ease;
}
.to-faq[open] summary::after { content: "−"; }
.to-faq__body { padding-top: 0.7rem; color: var(--to-mist); }

/* ──────────────────────────────────────────────────────────────
 * BOUTONS
 * ────────────────────────────────────────────────────────────── */

.to-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--to-radius-sm);
    font-family: var(--to-font-sans);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.to-btn--primary {
    background: linear-gradient(180deg, var(--to-gold) 0%, #B89549 100%);
    color: var(--to-night);
    border-color: var(--to-gold-bright);
    box-shadow: 0 4px 18px rgba(216,185,107,0.25);
}
.to-btn--primary:hover { transform: translateY(-1px); text-decoration: none; }

/* ──────────────────────────────────────────────────────────────
 * 404
 * ────────────────────────────────────────────────────────────── */

.to-404 { padding: 5rem 1rem; text-align: center; }
.to-404__inner { max-width: 540px; margin: 0 auto; }
.to-404__symbol { color: var(--to-gold); margin: 0 auto 2rem; width: 120px; opacity: 0.85; }
.to-404__title {
    background: linear-gradient(180deg, var(--to-gold-soft) 0%, var(--to-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.to-404__lead { color: var(--to-mist); margin-bottom: 2rem; }

/* ──────────────────────────────────────────────────────────────
 * PAGES LÉGALES
 * ────────────────────────────────────────────────────────────── */

.to-legal { max-width: 760px; margin: 2rem auto; padding: 1rem; }
.to-legal__title {
    background: linear-gradient(180deg, var(--to-gold-soft) 0%, var(--to-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 1rem;
}
.to-legal__lead { color: var(--to-mist); margin-bottom: 2rem; }
.to-legal__placeholder { color: var(--to-mist-2); font-style: italic; padding: 1rem; border: 1px dashed rgba(216,185,107,0.3); border-radius: var(--to-radius-sm); }

/* ──────────────────────────────────────────────────────────────
 * GLOSSAIRE
 * ────────────────────────────────────────────────────────────── */

.to-glossaire__alpha {
    position: sticky;
    top: var(--to-nav-h, 76px);
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: rgba(14, 11, 26, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(216, 185, 107, 0.18);
    margin: 0 -1.25rem 2rem;
}
.to-glossaire__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    font-family: var(--to-font-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--to-gold-soft);
    text-decoration: none;
    border-radius: var(--to-radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.to-glossaire__letter:hover {
    background: rgba(216, 185, 107, 0.12);
    color: var(--to-gold-bright);
    text-decoration: none;
}
.to-glossaire__letter--disabled {
    color: var(--to-mist-2);
    opacity: 0.35;
    pointer-events: none;
}

.to-glossaire { padding: 0 0 3rem; }
.to-glossaire__group { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--to-nav-h, 76px) + 4.5rem); }
.to-glossaire__letter-h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--to-gold);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(216, 185, 107, 0.25);
}
.to-glossaire__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}
.to-glossaire__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: rgba(62, 43, 89, 0.18);
    border: 1px solid rgba(216, 185, 107, 0.1);
    border-radius: var(--to-radius-sm);
    color: var(--to-cream);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.to-glossaire__link:hover {
    background: rgba(62, 43, 89, 0.35);
    border-color: rgba(216, 185, 107, 0.35);
    text-decoration: none;
}
.to-glossaire__term {
    font-family: var(--to-font-serif);
    font-weight: 500;
    color: var(--to-gold-soft);
    font-size: 1.08rem;
}
.to-glossaire__cat {
    font-size: 0.78rem;
    color: var(--to-mist-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

/* Entrée individuelle */
.to-glossaire-entry {
    max-width: 760px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}
.to-glossaire-entry__breadcrumb {
    color: var(--to-mist-2);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.to-glossaire-entry__breadcrumb a { color: var(--to-mist); }
.to-glossaire-entry__breadcrumb a:hover { color: var(--to-gold); }
.to-glossaire-entry__cat {
    color: var(--to-gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
}
.to-glossaire-entry__title {
    background: linear-gradient(180deg, var(--to-gold-soft) 0%, var(--to-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 1.5rem;
}
.to-glossaire-entry__definition {
    color: var(--to-cream);
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 1rem 1.2rem;
    background: rgba(62, 43, 89, 0.18);
    border-left: 3px solid var(--to-gold);
    border-radius: 0 var(--to-radius-sm) var(--to-radius-sm) 0;
    margin-bottom: 2rem;
}
.to-glossaire-entry__section { margin: 2rem 0; }
.to-glossaire-entry__section h2 {
    font-size: 1.4rem;
    color: var(--to-gold-soft);
}
.to-glossaire-entry__synonyms {
    color: var(--to-mist);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: rgba(62, 43, 89, 0.12);
    border-radius: var(--to-radius-sm);
    margin: 1.5rem 0;
}
.to-glossaire-entry__related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(216, 185, 107, 0.15);
}
.to-glossaire-entry__related h2 {
    margin-bottom: 1.25rem;
}

/* ──────────────────────────────────────────────────────────────
 * GRID DE CARTES « RELATED » — apps, hubs, glossaire
 * ────────────────────────────────────────────────────────────── */

.to-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.to-related-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(160deg, rgba(62, 43, 89, 0.32) 0%, rgba(21, 16, 42, 0.55) 100%);
    border: 1px solid rgba(216, 185, 107, 0.16);
    border-radius: var(--to-radius);
    color: var(--to-cream);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.to-related-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(216, 185, 107, 0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.to-related-card:hover,
.to-related-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(216, 185, 107, 0.5);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), var(--to-glow-gold);
    text-decoration: none;
}
.to-related-card:hover::before { opacity: 1; }
.to-related-card:focus-visible { outline: 2px solid var(--to-gold); outline-offset: 2px; }

.to-related-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--to-gold);
    background: rgba(216, 185, 107, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(216, 185, 107, 0.18);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.to-related-card:hover .to-related-card__icon {
    background: rgba(216, 185, 107, 0.18);
    border-color: rgba(216, 185, 107, 0.4);
}
.to-related-card__icon svg { width: 24px; height: 24px; }

.to-related-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.to-related-card__label {
    font-family: var(--to-font-serif);
    font-weight: 600;
    font-size: 1.08rem;
    color: var(--to-gold-soft);
    line-height: 1.25;
}
.to-related-card__desc {
    font-size: 0.84rem;
    color: var(--to-mist);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.to-related-card__cta {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--to-gold);
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-related-card:hover .to-related-card__cta {
    opacity: 1;
    transform: translateX(3px);
}

/* Réduit la marge inutile du <h2> dans le bloc related des apps/hubs */
.to-seo__related h2 { margin-bottom: 1.25rem; }

/* ──────────────────────────────────────────────────────────────
 * FOOTER
 * ────────────────────────────────────────────────────────────── */

.to-footer {
    background: rgba(10,7,20,0.85);
    border-top: 1px solid rgba(216,185,107,0.2);
    padding: 2.5rem 1rem 1.5rem;
    margin-top: 4rem;
}
.to-footer__inner { max-width: 1180px; margin: 0 auto; }
.to-footer__brand {
    display: flex; align-items: center; gap: 0.8rem;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
}
.to-footer__logo-svg { width: 36px; height: 36px; color: var(--to-gold); opacity: 0.8; }
.to-footer__tagline { color: var(--to-mist); font-size: 0.95rem; margin: 0; }
.to-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(216,185,107,0.1);
    color: var(--to-mist-2);
    font-size: 0.86rem;
}
.to-footer__bottom p { margin: 0; }
.to-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.to-footer__legal a { color: var(--to-mist); font-size: 0.86rem; }
.to-footer__legal a:hover { color: var(--to-gold); }

@media (max-width: 600px) {
    .to-footer__bottom { justify-content: center; text-align: center; flex-direction: column; }
    .to-footer__legal { justify-content: center; }
}

/* ──────────────────────────────────────────────────────────────
 * UTILITAIRES
 * ────────────────────────────────────────────────────────────── */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
