/* =====================================================================
   GLOSSAIRE / ENCYCLOPÉDIE POLITIQUE — EPOC
   Feuille de style dédiée (page glossaire.php)
   Reprend les jetons de design de styles.css (bleu #00507D / orange #e86c00)
   en y ajoutant un registre plus jeune : couleurs par thématique,
   cartes, filtres à puces, fiche plein écran et rendu "story" 9:16.
   ===================================================================== */

.page-glossaire {
    --gl-blue:        #00507D;
    --gl-blue-dark:   #0a3b73;
    --gl-orange:      #e86c00;
    --gl-orange-hi:   #ff8c1a;
    --gl-ink:         #12202b;
    --gl-ink-soft:    #4a5c6a;
    --gl-line:        #e3e9ee;
    --gl-bg:          #f5f5f5;
    --gl-white:       #ffffff;

    --gl-radius:      16px;
    --gl-radius-lg:   22px;
    --gl-radius-pill: 999px;

    --gl-shadow-xs:   0 1px 3px rgba(0, 32, 56, .07);
    --gl-shadow-sm:   0 3px 12px rgba(0, 80, 125, .09);
    --gl-shadow-md:   0 10px 28px rgba(0, 80, 125, .14);
    --gl-shadow-lg:   0 22px 60px rgba(0, 30, 55, .28);

    --gl-t:           200ms cubic-bezier(.4, 0, .2, 1);

    background: var(--gl-bg);
}

/* --- Couleurs de thématique : une identité visuelle par famille ------
   15 familles, 15 teintes assez éloignées pour rester distinguables
   côte à côte dans la rangée de puces. --th = teinte de base,
   --th2 = variante claire (dégradés, survols). ------------------------ */
.page-glossaire [data-th="scrutins"]       { --th: #e86c00; --th2: #ff9e2c; }
.page-glossaire [data-th="mecanique"]      { --th: #c2410c; --th2: #f2683b; }
.page-glossaire [data-th="regimes"]        { --th: #9d174d; --th2: #dd4f88; }
.page-glossaire [data-th="institutions"]   { --th: #00507D; --th2: #2a84bd; }
.page-glossaire [data-th="mandats"]        { --th: #0f766e; --th2: #2bb6a5; }
.page-glossaire [data-th="droit"]          { --th: #2563eb; --th2: #6aa2f7; }
.page-glossaire [data-th="territoire"]     { --th: #15803d; --th2: #45bd6d; }
.page-glossaire [data-th="administration"] { --th: #475569; --th2: #8496ab; }
.page-glossaire [data-th="economie"]       { --th: #a16207; --th2: #d8a23a; }
.page-glossaire [data-th="libertes"]       { --th: #4338ca; --th2: #7d74ee; }
.page-glossaire [data-th="contrepouvoirs"] { --th: #6d28d9; --th2: #9b5df0; }
.page-glossaire [data-th="communication"]  { --th: #db2777; --th2: #f472b6; }
.page-glossaire [data-th="doctrines"]      { --th: #b91c1c; --th2: #ef5350; }
.page-glossaire [data-th="geopolitique"]   { --th: #0e7490; --th2: #2bb0c9; }
.page-glossaire [data-th="crises"]         { --th: #78350f; --th2: #b4703a; }
.page-glossaire [data-th=""]               { --th: #00507D; --th2: #2a84bd; }

/* ===================================================================== */
/* 1. HÉRO                                                               */
/* ===================================================================== */
.gl-hero {
    position: relative;
    background: linear-gradient(135deg, #00263c 0%, #00507D 45%, #0a3b73 100%);
    color: #fff;
    padding: clamp(28px, 5vw, 54px) clamp(16px, 4vw, 40px) clamp(22px, 4vw, 40px);
}
/* Calque décoratif : rogné, pour que le menu de suggestions puisse déborder */
.gl-hero-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
/* Trame graphique : grille de points + halo orange */
.gl-hero-deco::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
    pointer-events: none;
}
.gl-hero-deco::after {
    content: "";
    position: absolute;
    right: -140px; top: -170px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 108, 0, .55) 0%, rgba(232, 108, 0, 0) 68%);
    pointer-events: none;
}
.gl-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
}
.gl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: clamp(.72rem, .68rem + .2vw, .82rem);
    padding: 6px 14px;
    border-radius: var(--gl-radius-pill);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
}
.gl-eyebrow i { width: 1em; height: 1em; color: var(--gl-orange-hi); }

.gl-hero h1 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    line-height: .96;
    letter-spacing: -.01em;
    font-size: clamp(2.1rem, 1.3rem + 4.2vw, 4.2rem);
    margin: 14px 0 10px;
}
.gl-hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--gl-orange-hi) 0%, #ffd08a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gl-hero-sub {
    max-width: 640px;
    font-size: clamp(.95rem, .9rem + .3vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, .86);
    margin-bottom: 22px;
}

/* Compteurs */
.gl-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.gl-stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--gl-radius-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
}
.gl-stat b {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gl-orange-hi);
    line-height: 1;
}
.gl-stat span {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255, 255, 255, .8);
}

/* ===================================================================== */
/* 2. RECHERCHE INSTANTANÉE                                              */
/* ===================================================================== */
.gl-searchwrap { position: relative; max-width: 760px; }

.gl-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--gl-radius-pill);
    padding: 6px 6px 6px 20px;
    box-shadow: 0 14px 38px rgba(0, 20, 40, .3);
}
.gl-search > i {
    width: 22px; height: 22px;
    color: var(--gl-orange);
    flex: 0 0 auto;
}
.gl-search input {
    flex: 1 1 auto;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.02rem;
    color: var(--gl-ink);
    padding: 12px 0;
    min-width: 0;
}
.gl-search input::placeholder { color: #90a0ad; }
.gl-search-clear {
    display: none;
    border: 0;
    background: #eef2f5;
    color: var(--gl-ink-soft);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.gl-search-clear.is-on { display: inline-flex; }
.gl-search-go {
    flex: 0 0 auto;
    border: 0;
    cursor: pointer;
    border-radius: var(--gl-radius-pill);
    padding: 12px 22px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--gl-orange) 0%, var(--gl-orange-hi) 100%);
    transition: filter var(--gl-t), transform var(--gl-t);
}
.gl-search-go:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Suggestions instantanées */
.gl-suggest {
    position: absolute;
    z-index: 60;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #fff;
    border-radius: var(--gl-radius);
    box-shadow: var(--gl-shadow-lg);
    overflow: hidden;
    max-height: min(58vh, 460px);
    overflow-y: auto;
    display: none;
}
.gl-suggest.is-open { display: block; }
.gl-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--gl-line);
    text-decoration: none;
    color: var(--gl-ink);
}
.gl-suggest-item:last-child { border-bottom: 0; }
.gl-suggest-item:hover,
.gl-suggest-item.is-active { background: #f2f7fb; }
.gl-suggest-dot {
    flex: 0 0 auto;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--th);
}
.gl-suggest-txt { flex: 1 1 auto; min-width: 0; }
.gl-suggest-term {
    display: block;
    font-weight: 700;
    font-size: .97rem;
    line-height: 1.25;
}
.gl-suggest-term mark {
    background: rgba(232, 108, 0, .2);
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}
.gl-suggest-path {
    display: block;
    font-size: .76rem;
    color: var(--gl-ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gl-suggest-empty {
    padding: 22px 18px;
    text-align: center;
    color: var(--gl-ink-soft);
    font-size: .92rem;
}

/* ===================================================================== */
/* 3. BARRE DE FILTRES                                                   */
/* ===================================================================== */
.gl-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(14px, 3vw, 28px) 60px;
}

.gl-filters {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(245, 245, 245, .94);
    backdrop-filter: blur(8px);
    margin: 0 calc(-1 * clamp(14px, 3vw, 28px));
    padding: 14px clamp(14px, 3vw, 28px) 12px;
    border-bottom: 1px solid var(--gl-line);
}
.gl-filters-row + .gl-filters-row { margin-top: 10px; }

.gl-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.gl-chips::-webkit-scrollbar { height: 5px; }
.gl-chips::-webkit-scrollbar-thumb { background: #cdd8e1; border-radius: 3px; }

.gl-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--gl-line);
    background: #fff;
    color: var(--gl-ink-soft);
    border-radius: var(--gl-radius-pill);
    padding: 8px 15px;
    font-size: .86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--gl-t);
}
.gl-chip i { width: 15px; height: 15px; color: var(--th); }
.gl-chip b {
    font-size: .74rem;
    font-weight: 700;
    color: #8a99a6;
    background: #eef2f5;
    border-radius: var(--gl-radius-pill);
    padding: 1px 7px;
}
.gl-chip:hover { border-color: var(--th); color: var(--gl-ink); transform: translateY(-1px); }
.gl-chip.is-on {
    background: linear-gradient(135deg, var(--th) 0%, var(--th2) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--th) 38%, transparent);
}
.gl-chip.is-on i { color: #fff; }
.gl-chip.is-on b { background: rgba(255, 255, 255, .24); color: #fff; }

/* Sous-thématiques : registre plus discret */
.gl-chip-sub {
    padding: 6px 13px;
    font-size: .81rem;
    font-weight: 500;
    border-style: dashed;
}
.gl-chip-sub.is-on { border-style: solid; font-weight: 600; }

/* Alphabet */
.gl-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.gl-alpha button {
    width: 27px; height: 27px;
    border: 0;
    background: transparent;
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--gl-ink-soft);
    cursor: pointer;
    transition: all var(--gl-t);
}
.gl-alpha button:hover { background: #e6eef4; color: var(--gl-blue); }
.gl-alpha button.is-on { background: var(--gl-blue); color: #fff; }
.gl-alpha button:disabled { opacity: .28; cursor: default; }

/* Ligne de résultats */
.gl-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 14px;
}
.gl-count {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gl-ink);
}
.gl-count b { color: var(--gl-orange); }
.gl-reset {
    display: none;
    align-items: center;
    gap: 6px;
    border: 0;
    background: #fff;
    border: 1px solid var(--gl-line);
    border-radius: var(--gl-radius-pill);
    padding: 7px 14px;
    font-size: .83rem;
    color: var(--gl-ink-soft);
    cursor: pointer;
}
.gl-reset.is-on { display: inline-flex; }
.gl-reset:hover { border-color: var(--gl-orange); color: var(--gl-orange); }

/* ===================================================================== */
/* 4. GRILLE DE CARTES                                                   */
/* ===================================================================== */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.gl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--gl-radius);
    box-shadow: var(--gl-shadow-xs);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    transition: transform var(--gl-t), box-shadow var(--gl-t);
}
.gl-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--th) 0%, var(--th2) 100%);
}
.gl-card:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow-md); }
.gl-card:focus-visible { outline: 3px solid var(--th); outline-offset: 2px; }

.gl-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 0 18px;
}
.gl-card-theme {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--th);
}
.gl-card-theme i { width: 13px; height: 13px; }
.gl-card-num {
    margin-left: auto;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #dde5eb;
    line-height: 1;
}
.gl-card-term {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.42rem;
    font-weight: 700;
    line-height: 1.08;
    color: var(--gl-ink);
    padding: 7px 18px 0;
}
.gl-card-alt {
    font-size: .76rem;
    color: #8a99a6;
    font-style: italic;
    padding: 3px 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gl-card-def {
    font-size: .875rem;
    line-height: 1.5;
    color: var(--gl-ink-soft);
    padding: 9px 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}
.gl-card-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 14px;
    margin-top: 10px;
}
.gl-card-sub {
    font-size: .72rem;
    color: #8a99a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gl-scope {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: var(--gl-radius-pill);
    background: #eef2f5;
    color: #6d7f8c;
}
.gl-scope[data-scope="France"]   { background: #e8f0f8; color: #185fa8; }
.gl-scope[data-scope="Europe"]   { background: #eaf3ff; color: #1b4f9c; }
.gl-scope[data-scope="Monde"]    { background: #e9f7ef; color: #15803d; }
.gl-scope[data-scope="Occident"] { background: #fdf0e6; color: #b45309; }

/* Séparateur de lettre dans la grille */
.gl-letter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0 -2px;
}
.gl-letter span {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--gl-blue);
    line-height: 1;
}
.gl-letter::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--gl-line), transparent);
}

.gl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gl-ink-soft);
}
.gl-empty i { width: 44px; height: 44px; color: #c3d0da; margin-bottom: 12px; }
.gl-empty p { font-size: 1rem; margin: 0 0 6px; }

.gl-more {
    display: block;
    margin: 28px auto 0;
    border: 0;
    cursor: pointer;
    border-radius: var(--gl-radius-pill);
    padding: 14px 34px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--gl-blue);
    background: #fff;
    border: 2px solid var(--gl-blue);
    transition: all var(--gl-t);
}
.gl-more:hover { background: var(--gl-blue); color: #fff; }

/* ===================================================================== */
/* 5. FICHE (panneau plein écran / bottom-sheet mobile)                  */
/* ===================================================================== */
.gl-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 22, 36, .62);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gl-t), visibility var(--gl-t);
}
.gl-backdrop.is-open { opacity: 1; visibility: visible; }

.gl-sheet {
    position: fixed;
    z-index: 201;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(.97);
    width: min(720px, calc(100vw - 32px));
    max-height: min(88vh, 920px);
    background: #fff;
    border-radius: var(--gl-radius-lg);
    box-shadow: var(--gl-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--gl-t), transform var(--gl-t), visibility var(--gl-t);
}
.gl-sheet.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.gl-sheet-head {
    position: relative;
    flex: 0 0 auto;
    padding: 22px 56px 20px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--th) 0%, var(--th2) 100%);
    overflow: hidden;
}
.gl-sheet-head::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -90px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.gl-sheet-path {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: .73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 8px;
}
.gl-sheet-path i { width: 14px; height: 14px; }
.gl-sheet-path em { font-style: normal; opacity: .65; }
.gl-sheet h2,
.gl-fiche-term {
    position: relative;
    z-index: 1;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.02;
    text-transform: uppercase;
    margin: 0;
}
.gl-sheet-alt {
    position: relative;
    z-index: 1;
    font-size: .85rem;
    font-style: italic;
    color: rgba(255, 255, 255, .84);
    margin-top: 6px;
}
.gl-sheet-close {
    position: absolute;
    z-index: 2;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gl-t);
}
.gl-sheet-close:hover { background: rgba(255, 255, 255, .34); }

.gl-sheet-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 26px 8px;
}

.gl-block + .gl-block { margin-top: 20px; }
.gl-block-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--th);
    margin-bottom: 8px;
}
.gl-block-label i { width: 15px; height: 15px; }
.gl-def {
    font-size: 1.02rem;
    line-height: 1.68;
    color: var(--gl-ink);
}
.gl-case {
    position: relative;
    font-size: .95rem;
    line-height: 1.62;
    color: var(--gl-ink);
    background: #f7fafc;
    border-left: 4px solid var(--th);
    border-radius: 0 var(--gl-radius) var(--gl-radius) 0;
    padding: 15px 18px;
}
.gl-case-scope {
    display: inline-block;
    margin-top: 10px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: var(--gl-radius-pill);
    background: #fff;
    border: 1px solid var(--gl-line);
    color: var(--gl-ink-soft);
}
.gl-usage {
    font-size: .92rem;
    font-style: italic;
    color: var(--gl-ink-soft);
    padding: 12px 16px;
    border: 1px dashed var(--gl-line);
    border-radius: var(--gl-radius);
}
.gl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--gl-line);
    background: #fff;
    border-radius: var(--gl-radius-pill);
    padding: 7px 14px;
    font-size: .85rem;
    color: var(--gl-ink);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--gl-t);
}
.gl-link i { width: 13px; height: 13px; color: var(--th); }
.gl-link:hover { border-color: var(--th); background: #f7fafc; transform: translateY(-1px); }
.gl-link.is-dead { opacity: .55; cursor: default; }
.gl-link.is-dead:hover { transform: none; border-color: var(--gl-line); background: #fff; }

.gl-sheet-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-top: 1px solid var(--gl-line);
    background: #fbfcfd;
    flex-wrap: wrap;
}
.gl-act {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--gl-line);
    background: #fff;
    border-radius: var(--gl-radius-pill);
    padding: 9px 15px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gl-ink-soft);
    cursor: pointer;
    transition: all var(--gl-t);
    text-decoration: none;
}
.gl-act i { width: 15px; height: 15px; }
.gl-act:hover { border-color: var(--gl-blue); color: var(--gl-blue); }
.gl-act-primary {
    margin-left: auto;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--gl-orange) 0%, var(--gl-orange-hi) 100%);
    box-shadow: 0 6px 16px rgba(232, 108, 0, .3);
}
.gl-act-primary:hover { color: #fff; filter: brightness(1.08); }
.gl-sheet-nav { display: inline-flex; gap: 6px; }
.gl-sheet-nav button {
    width: 36px; height: 36px;
    border: 1px solid var(--gl-line);
    background: #fff;
    border-radius: 50%;
    color: var(--gl-ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gl-sheet-nav button:hover { border-color: var(--gl-blue); color: var(--gl-blue); }

/* ===================================================================== */
/* 6. MODE STORY 9:16 (capture TikTok / Reels / Shorts)                  */
/* ===================================================================== */
.gl-story-stage {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(3, 16, 27, .9);
}
.gl-story-stage.is-open { display: flex; }

.gl-story {
    position: relative;
    width: min(340px, 86vw);
    aspect-ratio: 9 / 16;
    border-radius: 26px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, var(--th) 0%, var(--th2) 52%, #0a1c2b 100%);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
}
.gl-story::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .6;
}
.gl-story-kicker span {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    letter-spacing: .08em;
}
.gl-story-kicker {
    position: relative;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}
.gl-story-term {
    position: relative;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(2rem, 8vw, 2.7rem);
    font-weight: 800;
    line-height: .98;
    text-transform: uppercase;
    margin: 12px 0 4px;
}
.gl-story-rule {
    position: relative;
    width: 56px; height: 5px;
    border-radius: 3px;
    background: #fff;
    margin: 14px 0 18px;
}
.gl-story-def {
    position: relative;
    font-size: .93rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .95);
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gl-story-case {
    position: relative;
    margin-top: auto;
    font-size: .78rem;
    line-height: 1.45;
    background: rgba(255, 255, 255, .14);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 76%, rgba(0,0,0,.25) 100%);
            mask-image: linear-gradient(180deg, #000 76%, rgba(0,0,0,.25) 100%);
}
.gl-story-case b {
    display: block;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .8;
    margin-bottom: 4px;
}
.gl-story-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}
.gl-story-brand span:last-child { opacity: .75; }

.gl-story-tools { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gl-story-tools .gl-act { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); color: #fff; }
.gl-story-tools .gl-act:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Toast copie de lien */
.gl-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    z-index: 300;
    background: #10293b;
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--gl-radius-pill);
    font-size: .9rem;
    box-shadow: var(--gl-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--gl-t);
}
.gl-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ===================================================================== */
/* 7. FICHE PLEINE PAGE (glossaire.php?mot=xxx — SEO / partage)          */
/* ===================================================================== */
.gl-fiche {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px clamp(14px, 3vw, 28px) 10px;
}
.gl-fiche-card {
    background: #fff;
    border-radius: var(--gl-radius-lg);
    box-shadow: var(--gl-shadow-sm);
    overflow: hidden;
}
.gl-fiche .gl-sheet-head { padding: 26px 26px 24px; }
.gl-fiche .gl-sheet-body { padding: 26px; overflow: visible; }
.gl-fiche .gl-sheet-foot { border-radius: 0 0 var(--gl-radius-lg) var(--gl-radius-lg); }
.gl-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gl-ink-soft);
    text-decoration: none;
}
.gl-back i { width: 15px; height: 15px; }
.gl-back:hover { color: var(--gl-orange); }

/* Bandeau d'accroche vers l'explorateur, sous la fiche pleine page */
.gl-cta {
    max-width: 860px;
    margin: 26px auto 0;
    padding: 22px clamp(16px, 3vw, 26px);
    border-radius: var(--gl-radius-lg);
    background: linear-gradient(135deg, #00263c 0%, #00507D 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.gl-cta-txt { flex: 1 1 260px; }
.gl-cta-txt strong {
    display: block;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.gl-cta-txt span { font-size: .9rem; color: rgba(255, 255, 255, .8); }

/* ===================================================================== */
/* 8. RESPONSIVE — MOBILE                                                */
/* ===================================================================== */
@media (max-width: 900px) {
    .gl-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    .gl-hero { padding: 22px 16px 24px; }
    .gl-hero-sub { font-size: .92rem; margin-bottom: 16px; }
    .gl-stats { gap: 7px; margin-bottom: 18px; }
    .gl-stat { padding: 7px 12px; }
    .gl-stat b { font-size: 1.15rem; }
    .gl-stat span { font-size: .68rem; }

    .gl-search { padding: 5px 5px 5px 15px; gap: 8px; }
    .gl-search input { font-size: 16px; padding: 11px 0; }  /* 16px : pas de zoom iOS */
    .gl-search-go { padding: 11px 15px; font-size: .9rem; }
    .gl-search-go span { display: none; }

    .gl-filters { top: 56px; padding: 10px 14px 9px; }
    .gl-chip { padding: 7px 13px; font-size: .82rem; }
    .gl-alpha { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
    .gl-alpha button { flex: 0 0 auto; }

    .gl-grid { grid-template-columns: 1fr; gap: 12px; }
    .gl-card-term { font-size: 1.3rem; }

    /* La fiche devient une feuille qui monte du bas */
    .gl-sheet {
        top: auto; left: 0;
        bottom: 0;
        transform: translateY(100%);
        width: 100%;
        max-height: 92vh;
        border-radius: var(--gl-radius-lg) var(--gl-radius-lg) 0 0;
    }
    .gl-sheet.is-open { transform: translateY(0); }
    .gl-sheet-head { padding: 26px 52px 18px 20px; }
    .gl-sheet-head::before {
        content: "";
        position: absolute;
        top: 9px; left: 50%;
        transform: translateX(-50%);
        width: 44px; height: 4px;
        border-radius: 3px;
        background: rgba(255, 255, 255, .45);
    }
    .gl-sheet-body { padding: 20px 20px 6px; }
    .gl-sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
    .gl-act span { display: none; }
    .gl-act-primary span { display: inline; }

    .gl-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .gl-hero h1 { font-size: 2.05rem; }
    .gl-story { width: min(320px, 92vw); padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .page-glossaire * { transition: none !important; animation: none !important; }
}
