/* ================================================================
   Glossaire au Survol v2  Pages termes & archive
   ================================================================ */

/* ---- Variables ------------------------------------------------- */
:root {
    --gt-accent: #0073aa;
    --gt-accent-light: #e8f4fb;
    --gt-text: #1c1c1c;
    --gt-muted: #666;
    --gt-border: #e2e6ea;
    --gt-bg-soft: #f8f9fa;
    --gt-radius: 8px;
}

/* ---- Reset forcing underlines by theme ---- */
.gt-archive-page a,
.gt-term-page a,
a.gt-term-link,
.gt-live-search__results a,
.gt-cat-filters a,
.gt-alpha-nav a,
.gt-terms-grid a,
.gt-sugg-block a {
    text-decoration: none !important;
    box-shadow: none !important;
}
a.gt-term-link:hover,
.gt-term-definition a:hover,
.gt-term-context a:hover,
.gt-term-excerpt a:hover {
    text-decoration: underline !important;
}

/* ================================================================
   PAGE TERME UNIQUE
   ================================================================ */

.gt-term-page {
    padding: 0 0 60px;
}

/* On laisse Astra gérer intégralement le layout via ses classes natives */


/* ---- Fil d'Ariane ---------------------------------------------- */
.gt-breadcrumb {
    padding: 16px 0 10px;
    font-size: 0.82rem;
    color: var(--gt-muted);
}

.gt-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.gt-breadcrumb li+li::before {
    content: "›";
    margin-right: 4px;
    color: var(--gt-muted);
}

.gt-breadcrumb a {
    color: var(--gt-text);
    text-decoration: none;
}

.gt-breadcrumb a:hover {
    text-decoration: underline;
}

.gt-breadcrumb [aria-current="page"] {
    color: var(--gt-muted);
}

/* ---- En-tête terme --------------------------------------------- */
.gt-term-header {
    padding: 28px 0 24px;
    border-bottom: 2px solid var(--gt-border);
    margin-bottom: 32px;
}

.gt-term-category {
    display: inline-block;
    background: var(--gt-accent-light);
    color: var(--gt-accent);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 12px;
}

.gt-term-category:hover {
    background: var(--gt-accent);
    color: #fff;
}

.gt-term-h1 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--gt-text);
    line-height: 1.2;
}

.gt-term-aliases {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.83rem;
    color: var(--gt-muted);
}

.gt-alias-badge {
    background: var(--gt-bg-soft);
    border: 1px solid var(--gt-border);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--gt-text);
}

/* ---- Intro ----------------------------------------------------- */
.gt-term-intro {
    background: var(--gt-accent-light);
    border-left: 4px solid var(--gt-accent);
    padding: 16px 20px;
    border-radius: 0 var(--gt-radius) var(--gt-radius) 0;
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--gt-text);
}

.gt-term-intro p {
    margin: 0;
}

/* ---- Sections -------------------------------------------------- */
.gt-term-section {
    margin-bottom: 36px;
}

.gt-term-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gt-text);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gt-border);
}

.gt-term-definition p,
.gt-term-context p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gt-text);
    margin-bottom: 1em;
}

/* ---- Points clés ----------------------------------------------- */
.wp-block-group.gt-points-cles {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 48px !important;
    margin-bottom: 48px !important;
}

/* Ancien format (liste) - conservé pour rétrocompatibilité */
.wp-block-group.gt-points-cles:not(.gt-presse) h2 {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.gt-points-cles:not(.gt-presse) ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gt-points-cles:not(.gt-presse) li {
    padding: 10px 14px 10px 42px;
    background: var(--gt-bg-soft);
    border-radius: var(--gt-radius);
    font-size: 0.95rem;
    line-height: 1.55;
    position: relative;
    color: var(--gt-text);
}

.gt-points-cles:not(.gt-presse) li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 18px;
    height: 18px;
    background-color: var(--gt-accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><path d='M20 6 9 17l-5-5'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><path d='M20 6 9 17l-5-5'/></svg>") no-repeat center / contain;
}

/* Nouveau format presse - styles complémentaires spécifiques aux pages terme */
.gt-points-cles.gt-presse {
    margin-top: 48px !important;
    margin-bottom: 48px !important;
}

.gt-points-cles.gt-presse .gt-presse-titre {
    font-family: Georgia, "Times New Roman", serif !important;
}

/* ---- FAQ Accordion ----------------------------------------------- */
.gt-term-faq {
    border-top: 1px solid var(--gt-border);
    padding-top: 28px;
}

details.wp-block-details.gt-faq-accordion {
    margin-bottom: 16px;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

details.wp-block-details.gt-faq-accordion:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: var(--gt-accent-light);
}

details.wp-block-details.gt-faq-accordion summary {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gt-text);
    padding: 16px 20px;
    cursor: pointer;
    background: var(--gt-bg-soft);
    list-style: none;
    /* remove native arrow in some browsers */
    position: relative;
    outline: none;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

details.wp-block-details.gt-faq-accordion summary::-webkit-details-marker {
    display: none;
    /* remove native arrow in webkit */
}

details.wp-block-details.gt-faq-accordion summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--gt-accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
    transition: transform 0.3s ease;
}

details[open].wp-block-details.gt-faq-accordion summary::after {
    content: "";
    -webkit-mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'><line x1='5' y1='12' x2='19' y2='12'/></svg>") no-repeat center / contain;
    transform: translateY(-50%);
}

details[open].wp-block-details.gt-faq-accordion summary {
    background: var(--gt-accent-light);
    color: var(--gt-accent);
}

details.wp-block-details.gt-faq-accordion p {
    padding: 16px 20px;
    margin: 0;
    color: #444;
    font-size: 0.95rem;
}

/* ---- Voir aussi ------------------------------------------------ */
.gt-term-see-also h3 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gt-muted);
    margin: 0 0 12px;
}

.gt-see-also-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.gt-see-also-list li {
    font-size: 0.9rem;
    line-height: 1.4;
}

.gt-see-also-list a {
    color: var(--gt-accent);
    font-weight: 600;
    text-decoration: none;
}

.gt-see-also-list a:hover {
    text-decoration: underline;
}

.gt-see-also-list span {
    color: var(--gt-muted);
}

/* ---- Lien retour ----------------------------------------------- */
.gt-term-back {
    padding-top: 24px;
}

.gt-back-link {
    color: var(--gt-accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.gt-back-link:hover {
    text-decoration: underline;
}


/* ================================================================
   PAGE ARCHIVE (PILIER)
   ================================================================ */


/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes gt-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes gt-scaleIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   SHARED — archive + catpage
   ================================================================ */
.gt-archive-page {
    padding-bottom: 60px;
}

.gt-archive-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.gt-search-bar {
    margin-bottom: 20px;
}

#gt-search {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 1.5px solid var(--gt-border);
    border-radius: 28px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
}

#gt-search:focus {
    border-color: var(--gt-accent);
    box-shadow: 0 0 0 3px var(--gt-accent-light);
}

/* ── Live search dropdown ────────────────────────────────────── */
.gt-live-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
}

.gt-live-search #gt-search {
    max-width: 100%;
}

.gt-live-search__results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gt-border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}

.gt-live-search__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--gt-text);
    border-bottom: 1px solid var(--gt-border);
    transition: background .1s;
}

.gt-live-search__item:last-child {
    border-bottom: none;
}

.gt-live-search__item:hover {
    background: var(--gt-bg-soft);
}

.gt-live-search__name {
    font-weight: 600;
    color: var(--gt-accent);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
}

.gt-live-search__def {
    font-size: .84rem;
    color: var(--gt-muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-live-search__badge {
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gt-live-search__empty {
    padding: 20px;
    text-align: center;
    color: var(--gt-muted);
    font-size: .9rem;
    font-style: italic;
}

/* ── Nav alphabétique ────────────────────────────────────────── */
.gt-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 20px;
}

.gt-alpha-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gt-accent);
    text-decoration: none;
    border: 1px solid var(--gt-border);
    transition: all .15s;
}

.gt-alpha-link:hover {
    background: var(--gt-accent);
    color: #fff;
    border-color: var(--gt-accent);
}

/* ── Filtres catégories ──────────────────────────────────────── */
.gt-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.gt-cat-btn {
    padding: 6px 14px;
    border: 1px solid var(--gt-border);
    border-radius: 20px;
    background: #fff;
    font-size: .85rem;
    cursor: pointer;
    color: var(--gt-text);
    transition: all .15s;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    text-decoration: none;
}

.gt-cat-btn:hover,
.gt-cat-btn--active {
    background: var(--gt-accent);
    color: #fff;
    border-color: var(--gt-accent);
}

.gt-cat-count {
    background: rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .75rem;
}

/* ── Sections lettre ─────────────────────────────────────────── */
.gt-letter-section {
    margin-bottom: 36px;
    animation: gt-fadeUp .4s ease both;
}

.gt-letter-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gt-accent);
    border-bottom: 2px solid var(--gt-accent-light);
    padding-bottom: 6px;
    margin: 0 0 14px;
}

.gt-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gt-muted);
    font-style: italic;
}

/* ================================================================
   HUB — Page principale /glossaire/
   ================================================================ */

/* ── Modern Glossary Hub ────────────────────────────────────────── */
.gt-hub {
    --gt-hub-ink: #0f172a;
    --gt-hub-muted: #64748b;
    --gt-hub-line: #e2e8f0;
    --gt-hub-soft: #f8fafc;
    --gt-hub-blue: #2563eb;
    background: linear-gradient(180deg, #f8fafc 0%, rgba(255, 255, 255, 0) 300px);
}

.gt-hub .gt-archive-container {
    max-width: 1100px;
    padding-top: 40px;
}

/* Hero Section */
.gt-hero {
    background: #ffffff;
    border: 1px solid var(--gt-hub-line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    padding: 50px 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gt-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.gt-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
}

.gt-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gt-hub-blue);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.gt-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--gt-hub-ink);
    line-height: 1.15;
    margin: 0 0 12px;
}

.gt-hero__desc {
    color: var(--gt-hub-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 30px;
}

.gt-hero__search {
    max-width: 520px;
    margin: 0 auto;
}

.gt-hero #gt-search {
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    padding: 16px 20px;
    font-size: 1.05rem;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.25s ease;
}

.gt-hero #gt-search:focus {
    border-color: var(--gt-hub-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 4px 20px rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
}

/* Sections Intros */
.gt-section-intro {
    margin-bottom: 24px;
    margin-top: 10px;
}

.gt-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gt-hub-muted);
    margin: 0 0 6px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gt-hub-line);
}

.gt-section-desc {
    font-size: 0.92rem;
    color: var(--gt-hub-muted);
    margin: 0;
}

.gt-section-wrap {
    margin-bottom: 45px;
}

/* Category grid Explorer */
.gt-hub-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 45px;
}

.gt-hub-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--gt-hub-line);
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gt-hub-cat-card:hover {
    border-color: var(--cat-accent, var(--gt-hub-blue));
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.gt-hub-cat-card__icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--cat-bg, rgba(37, 99, 235, 0.06));
    color: var(--cat-accent, var(--gt-hub-blue));
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.gt-hub-cat-card__icon svg {
    width: 24px;
    height: 24px;
}

.gt-hub-cat-card:hover .gt-hub-cat-card__icon {
    background: var(--cat-accent, var(--gt-hub-blue));
    color: #ffffff;
}

.gt-hub-cat-card__body {
    min-width: 0;
}

.gt-hub-cat-card__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gt-hub-ink);
    margin-bottom: 2px;
}

.gt-hub-cat-card__count {
    display: block;
    font-size: 0.8rem;
    color: var(--gt-hub-muted);
}

/* Featured / Promoted Cards */
.gt-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gt-featured-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--gt-hub-line);
    border-radius: 12px;
    padding: 22px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
}

.gt-featured-card:hover {
    border-color: var(--card-text, var(--gt-hub-blue));
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.gt-featured-card__meta {
    margin-bottom: 12px;
    display: flex;
}

.gt-card-badge {
    background: var(--card-bg, rgba(37, 99, 235, 0.06));
    color: var(--card-text, var(--gt-hub-blue));
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gt-featured-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gt-hub-ink);
    line-height: 1.3;
    margin-bottom: 8px;
    display: block;
}

.gt-featured-card__def {
    font-size: 0.88rem;
    color: var(--gt-hub-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.gt-featured-card__link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--card-text, var(--gt-hub-blue));
    transition: all 0.2s ease;
}

.gt-featured-card:hover .gt-featured-card__link {
    transform: translateX(3px);
}

/* Recent Additions List */
.gt-hub-recent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--gt-hub-line);
    border-radius: 12px;
    padding: 8px;
}

.gt-hub-recent__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.gt-hub-recent__row:hover {
    background: var(--gt-hub-soft);
}

.gt-hub-recent__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gt-hub-ink);
    min-width: 150px;
    flex-shrink: 0;
}

.gt-hub-recent__def {
    font-size: 0.85rem;
    color: var(--gt-hub-muted);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gt-hub-recent__badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* A-Z List layout overrides */
.gt-terms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.gt-term-item {
    border-radius: 10px;
    border: 1px solid var(--gt-hub-line);
    background: #ffffff;
    transition: all 0.2s ease;
}

.gt-term-item:hover {
    border-color: #cbd5e1;
    background: var(--gt-hub-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.gt-term-link-archive {
    display: block;
    padding: 16px;
}

.gt-term-link-archive strong {
    color: var(--gt-hub-ink);
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.gt-term-item:hover .gt-term-link-archive strong {
    color: var(--gt-hub-blue);
}

.gt-term-excerpt {
    font-size: 0.82rem;
    color: var(--gt-hub-muted);
    line-height: 1.4;
    display: block;
}

/* ================================================================
   CATPAGE — Page catégorie /glossaire/{cat}/
   ================================================================ */

/* ── Breadcrumb ────────────────────────────────────────────────── */
.gt-catpage-bc {
    font-size: .85rem;
    color: var(--gt-muted);
    padding: 20px 0 12px;
}

.gt-catpage-bc a {
    color: var(--gt-text);
    text-decoration: none;
    font-weight: 600;
}

.gt-catpage-bc a:hover {
    text-decoration: underline;
}

.gt-catpage-bc__sep {
    margin: 0 6px;
    color: var(--gt-border);
}

/* ── Bannière ──────────────────────────────────────────────────── */
.gt-catpage-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 16px;
    background: var(--catpage-grad, var(--gt-bg-soft));
    margin-bottom: 26px;
    border: 1.5px solid var(--catpage-bg, var(--gt-border));
    animation: gt-fadeUp .5s ease both;
}

.gt-catpage-banner__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    color: var(--catpage-accent, var(--gt-accent));
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.gt-catpage-banner__icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    overflow: visible;
}

.gt-catpage-banner__body {
    flex: 1;
    min-width: 0;
}

.gt-catpage-banner h1 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.3;
}

.gt-catpage-banner__desc {
    font-size: .92rem;
    color: var(--gt-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

.gt-catpage-banner__stats {
    display: flex;
    gap: 28px;
}

.gt-catpage-banner__stat {
    font-size: .82rem;
    color: var(--gt-muted);
}

.gt-catpage-banner__stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--catpage-text, var(--gt-text));
    line-height: 1.2;
}

/* ── Cartes termes catpage ─────────────────────────────────────── */
.gt-catpage-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gt-catpage-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--gt-border);
    background: #fff;
    text-decoration: none;
    color: var(--gt-text);
    transition: all .2s cubic-bezier(.4,0,.2,1);
}

.gt-catpage-card:hover {
    border-color: var(--catpage-accent, var(--gt-accent));
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transform: translateY(-1px);
}

.gt-catpage-card__initial {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--catpage-bg, var(--gt-accent-light));
    color: var(--catpage-text, var(--gt-accent));
    font-size: .95rem;
    font-weight: 700;
    transition: all .2s;
}

.gt-catpage-card:hover .gt-catpage-card__initial {
    background: var(--catpage-accent, var(--gt-accent));
    color: #fff;
}

.gt-catpage-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gt-catpage-card__name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gt-text);
    transition: color .2s;
}

.gt-catpage-card:hover .gt-catpage-card__name {
    color: var(--catpage-accent, var(--gt-accent));
}

.gt-catpage-card__def {
    font-size: .84rem;
    color: var(--gt-muted);
    line-height: 1.5;
}

.gt-catpage-card__related {
    font-size: .78rem;
    color: var(--catpage-accent, var(--gt-accent));
    font-weight: 600;
    margin-top: 4px;
}

.gt-catpage-empty {
    text-align: center;
    padding: 40px;
    color: var(--gt-muted);
    font-style: italic;
}

/* ── Retour glossaire ──────────────────────────────────────────── */
.gt-catpage-back {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gt-border);
}

.gt-catpage-back a {
    text-decoration: none;
    font-weight: 700;
    color: var(--catpage-accent, var(--gt-accent));
    font-size: .92rem;
    transition: color .15s;
}

.gt-catpage-back a:hover {
    text-decoration: underline;
}

/* ── Catpage overrides pour couleurs thématiques ──────────────── */
.gt-catpage .gt-letter-heading {
    color: var(--catpage-accent, var(--gt-accent));
    border-bottom-color: var(--catpage-bg, var(--gt-accent-light));
}

.gt-catpage .gt-alpha-link {
    color: var(--catpage-accent, var(--gt-accent));
}

.gt-catpage .gt-alpha-link:hover {
    background: var(--catpage-accent, var(--gt-accent));
    border-color: var(--catpage-accent, var(--gt-accent));
    color: #fff;
}

.gt-catpage .gt-cat-btn--active {
    background: var(--catpage-accent, var(--gt-accent));
    border-color: var(--catpage-accent, var(--gt-accent));
}

.gt-catpage #gt-search:focus {
    border-color: var(--catpage-accent, var(--gt-accent));
    box-shadow: 0 0 0 3px var(--catpage-bg, var(--gt-accent-light));
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .gt-hub-card {
        padding: 20px;
    }
    .gt-hub-card__search-row {
        flex-direction: column;
    }
    .gt-hub-card__pills {
        padding-top: 0;
    }
    .gt-hub-cats {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    .gt-hub-cat-card {
        padding: 18px 10px 16px;
    }
    .gt-hub-cat-card__icon {
        width: 44px;
        height: 44px;
    }
    .gt-hub-recent__name {
        min-width: 110px;
    }
    .gt-hub-recent__def {
        display: none;
    }
    .gt-live-search__def {
        display: none;
    }
    .gt-live-search__badge {
        display: none;
    }
    .gt-catpage-banner {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    .gt-catpage-banner__icon {
        width: 44px;
        height: 44px;
    }
    .gt-catpage-card {
        padding: 14px;
        gap: 10px;
    }
    .gt-catpage-card__initial {
        width: 36px;
        height: 36px;
        font-size: .85rem;
    }
    .gt-terms-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gt-hub-cats {
        grid-template-columns: repeat(2, 1fr);
    }
    .gt-hub-recent__row {
        flex-wrap: wrap;
        gap: 4px;
    }
    .gt-hub-recent__badge {
        margin-left: auto;
    }
    .gt-catpage-banner__stats {
        gap: 16px;
    }
    .gt-catpage-card__related {
        display: none;
    }
    .gt-alpha-link {
        width: 28px;
        height: 28px;
        font-size: .78rem;
    }
}

/* ═══════════════════════════════════════════════════════
   Suggestions — Design A : Accent latéral premium
   Charte #0069e2 · Expert en noir #111827
   ═══════════════════════════════════════════════════════ */

/* Reset global soulignages thème */
.gt-suggestions,
.gt-suggestions a,
.gt-suggestions a:hover,
.gt-suggestions a:visited,
.gt-suggestions a:focus {
    text-decoration: none !important;
    box-shadow:      none !important;
}

.gt-suggestions {
    margin-top:     44px;
    padding-top:    28px;
    border-top:     1px solid #f0f2f5;
    display:        flex;
    flex-direction: column;
    gap:            12px;
    font-family:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Bloc (wrapper commun) ── */
.gt-sugg-block {
    border-radius: 12px;
    overflow:      hidden;
    border:        1px solid var(--sb-border-light, #e2e8f0);
}

/* ── Header teinté ── */
.gt-sugg-header {
    display:     flex;
    align-items: center;
    gap:         9px;
    padding:     10px 14px 10px 14px;
    background:  var(--sb-header-bg, #f0f6ff);
    border-bottom: 1px solid var(--sb-border-light, #d1e4fa);
    margin:      0;
    line-height: 1.2;
}

.gt-sugg-icon {
    width:           28px;
    height:          28px;
    border-radius:   7px;
    background:      var(--sb-icon-bg, #0069e2);
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    color:           #fff;
}

.gt-sugg-header-label {
    flex:      1;
    font-size: 0.82rem;
    font-weight: 500;
    color:     var(--sb-label-color, #003d8a);
}

.gt-sugg-header-badge {
    font-size:   0.75rem;
    padding:     3px 9px;
    border-radius: 20px;
    font-weight: 700;
    background:  var(--sb-badge-bg, #0069e2);
    color:       var(--sb-badge-text, #fff);
    flex-shrink: 0;
}

/* ── Cards de termes ── */
.gt-sugg-cards {
    background: #ffffff;
}

.gt-sugg-card {
    display:     flex;
    align-items: center;
    gap:         12px;
    padding:     11px 14px;
    border-top:  1px solid #f4f6f9;
    color:       inherit;
    transition:  background .13s ease;
    cursor:      pointer;
}
.gt-sugg-card:first-child { border-top: none; }
.gt-sugg-card:hover { background: #fafbff; }

/* Initiale */
.gt-sugg-card__initial {
    width:           34px;
    height:          34px;
    border-radius:   8px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       0.85rem;
    font-weight:     700;
    flex-shrink:     0;
    background:      var(--sb-initial-bg, #e8f1fc);
    color:           var(--sb-initial-text, #0069e2);
    border:          1px solid var(--sb-initial-border, #b5d4f4);
    transition:      background .13s, color .13s;
}
.gt-sugg-card:hover .gt-sugg-card__initial {
    background: var(--sb-icon-bg, #0069e2);
    color:      #fff;
    border-color: transparent;
}

/* Corps */
.gt-sugg-card__body {
    flex:           1;
    min-width:      0;
    display:        flex;
    flex-direction: column;
    gap:            3px;
}

.gt-sugg-card__title {
    font-size:     0.95rem;
    font-weight:   600;
    color:         #0f172a;
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
    transition:    color .13s;
}
.gt-sugg-card:hover .gt-sugg-card__title {
    color: var(--sb-icon-bg, #0069e2);
}

.gt-sugg-card__excerpt {
    font-size:          0.82rem;
    color:              #94a3b8;
    line-height:        1.4;
    display:            -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow:           hidden;
}

/* Flèche */
.gt-sugg-card__arrow {
    font-size:  0.9rem;
    color:      #d1d9e6;
    flex-shrink: 0;
    transition: color .13s, transform .13s;
}
.gt-sugg-card:hover .gt-sugg-card__arrow {
    color:     var(--sb-icon-bg, #0069e2);
    transform: translateX(2px);
}

/* ══ Variante Expert (noir #111827) ══ */
.gt-sugg-block--expert {
    --sb-border-light:   #1f2937;
    --sb-header-bg:      #111827;
    --sb-icon-bg:        #374151;
    --sb-label-color:    #9ca3af;
    --sb-badge-bg:       #374151;
    --sb-badge-text:     #e5e7eb;
    --sb-initial-bg:     #1f2937;
    --sb-initial-text:   #e5e7eb;
    --sb-initial-border: #374151;
}
.gt-sugg-block--expert .gt-sugg-cards { background: #ffffff; }
.gt-sugg-block--expert .gt-sugg-card:hover { background: #f8fafc; }
.gt-sugg-block--expert .gt-sugg-card:hover .gt-sugg-card__title { color: #111827; }
.gt-sugg-block--expert .gt-sugg-card:hover .gt-sugg-card__arrow { color: #374151; }
.gt-sugg-block--expert .gt-sugg-card:hover .gt-sugg-card__initial {
    background:   #111827;
    border-color: transparent;
    color:        #fff;
}

/* ══ Variante Même niveau (bleu léger) ══ */
.gt-sugg-block--same {
    --sb-border-light:   #d1e4fa;
    --sb-header-bg:      #f0f6ff;
    --sb-icon-bg:        #0069e2;
    --sb-label-color:    #003d8a;
    --sb-badge-bg:       #e8f1fc;
    --sb-badge-text:     #0069e2;
    --sb-initial-bg:     #e8f1fc;
    --sb-initial-text:   #0069e2;
    --sb-initial-border: #b5d4f4;
}

/* ══ Variante Moyen (orange) ══ */
.gt-sugg-block--moyen {
    --sb-border-light:   #fed7aa;
    --sb-header-bg:      #fffbeb;
    --sb-icon-bg:        #d97706;
    --sb-label-color:    #78350f;
    --sb-badge-bg:       #fef3c7;
    --sb-badge-text:     #92400e;
    --sb-initial-bg:     #fffbeb;
    --sb-initial-text:   #d97706;
    --sb-initial-border: #fcd34d;
}
.gt-sugg-block--moyen .gt-sugg-card:hover .gt-sugg-card__title { color: #d97706; }
.gt-sugg-block--moyen .gt-sugg-card:hover .gt-sugg-card__arrow { color: #d97706; }

/* ══ Variante Débutant (vert) ══ */
.gt-sugg-block--debutant {
    --sb-border-light:   #a7f3d0;
    --sb-header-bg:      #f0fdf8;
    --sb-icon-bg:        #1D9E75;
    --sb-label-color:    #065f46;
    --sb-badge-bg:       #d1fae5;
    --sb-badge-text:     #065f46;
    --sb-initial-bg:     #f0fdf8;
    --sb-initial-text:   #1D9E75;
    --sb-initial-border: #6ee7b7;
}
.gt-sugg-block--debutant .gt-sugg-card:hover .gt-sugg-card__title { color: #1D9E75; }
.gt-sugg-block--debutant .gt-sugg-card:hover .gt-sugg-card__arrow { color: #1D9E75; }

@media (max-width: 640px) {
    .gt-sugg-card__excerpt { display: none; }
    .gt-sugg-card { padding: 10px 12px; gap: 10px; }
    .gt-sugg-card__initial { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* ================================================================
   LMS HUB — Responsive overrides
   ================================================================ */
@media (max-width: 980px) {
    .gt-lms-hero {
        grid-template-columns: 1fr;
    }

    .gt-lms-lessons,
    .gt-lms-levels {
        grid-template-columns: 1fr;
    }

    .gt-hub-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gt-hub .gt-archive-container {
        padding: 18px 16px 0;
    }

    .gt-lms-hero__main,
    .gt-lms-hero__panel {
        padding: 20px;
    }

    .gt-lms-hero .gt-hub-card__title {
        font-size: 2rem;
    }

    .gt-lms-stats {
        grid-template-columns: 1fr;
    }

    .gt-hub-cats,
    .gt-terms-list {
        grid-template-columns: 1fr;
    }

    .gt-hub-cat-card {
        align-items: flex-start;
    }

    .gt-hub-recent__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .gt-hub-recent__def {
        white-space: normal;
    }

    .gt-alpha-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        background: rgba(255,255,255,.96);
        padding: 8px 0;
        border-bottom: 1px solid var(--gt-lms-line);
    }
}
