/* glossaire.css - accueil glossaire */

.nav-links a:hover, .nav-links a.active {
    color: var(--or);
}

.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
    color: var(--or);
}

.nav-dropdown-toggle.open svg {
    transform: rotate(180deg);
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown a.active {
    color: var(--or);
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer.open {
    display: flex;
}

.nav-drawer > a, .drawer-section-toggle.open svg {
    transform: rotate(180deg);
}

.drawer-submenu.open {
    display: block;
}

.page-hero {
    background: var(--noir);
    color: var(--blanc);
    padding-top: calc(64px + clamp(3rem,6vw,6rem));
    padding-bottom: clamp(2.5rem,5vw,5rem);
}

.page-eyebrow {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 1rem;
}

.page-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem,3.8vw,3rem);
    font-weight: 300;
    line-height: 1.18;
    color: var(--blanc);
    margin-bottom: 1rem;
}

.page-intro {
    font-size: 0.95rem;
    color: rgba(240,237,230,0.65);
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 2rem;
    text-align: justify;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-stat-value {
    font-family: var(--mono);
    font-size: 1.25rem;
    color: var(--or);
    font-weight: 500;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(240,237,230,0.4);
    letter-spacing: 0.04em;
}

.alpha-filter {
    padding: 1.5rem 0;
    background: var(--noir);
    border-top: 1px solid rgba(200,169,110,0.1);
    border-bottom: 1px solid rgba(200,169,110,0.1);
    position: sticky;
    top: 64px;
    z-index: 50;
}

.alpha-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(1.25rem,4vw,2.5rem);
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.alpha-label {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(200,169,110,0.4);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.alpha-btn {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(240,237,230,0.4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 2px;
    transition: all 0.15s;
    letter-spacing: 0.05em;
}

    .alpha-btn:hover, .alpha-btn.active {
        color: var(--or);
        background: rgba(200,169,110,0.1);
    }

    .alpha-btn.disabled {
        opacity: 0.2;
        cursor: default;
        pointer-events: none;
    }

.glossaire-wrap {
    padding: clamp(2.5rem,5vw,5rem) 0;
}

.termes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: rgba(107,107,107,0.15);
    border: 1px solid rgba(107,107,107,0.15);
}

.terme-card {
    background: var(--blanc);
    border-left: 2px solid rgba(200,169,110,0.2);
    transition: background 0.15s, border-color 0.15s;
}

    .terme-card:hover {
        background: rgba(200,169,110,0.06);
        border-left-color: var(--or);
    }

.terme-card a {
    display: block;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
}

.terme-nom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--corps);
    line-height: 1.25;
    margin-bottom: 0.3rem;
}

    .terme-nom::after {
        content: '\2192';
        font-family: var(--sans);
        font-size: 1.2rem;
        line-height: 1;
        color: rgba(200,169,110,0.6);
        flex-shrink: 0;
    }

.terme-card:hover .terme-nom {
    color: var(--or);
}

    .terme-card:hover .terme-nom::after {
        color: var(--or);
    }

.terme-def-courte {
    font-size: 0.82rem;
    color: var(--gris-texte);
    line-height: 1.55;
    text-align: justify;
    max-width: 60ch;
}

.terme-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.terme-tag {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(200,169,110,0.08);
    color: rgba(200,169,110,0.7);
    border: 1px solid rgba(200,169,110,0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
}

    .terme-tag.methode {
        background: rgba(92,184,92,0.06);
        color: rgba(92,184,92,0.7);
        border-color: rgba(92,184,92,0.15);
    }

    .terme-tag.non-utilise {
        background: rgba(107,107,107,0.06);
        color: rgba(107,107,107,0.6);
        border-color: rgba(107,107,107,0.15);
    }

.search-wrap {
    margin-bottom: 2.5rem;
}

.search-input {
    width: 100%;
    max-width: 480px;
    font-family: var(--sans);
    font-size: 0.92rem;
    color: var(--corps);
    background: var(--blanc);
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: 2px;
    padding: 0.85rem 1.25rem;
    outline: none;
    transition: border-color 0.2s,box-shadow 0.2s;
}

    .search-input:focus {
        border-color: var(--or);
        box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
    }

    .search-input::placeholder {
        color: rgba(107,107,107,0.5);
    }

.legende {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.legende-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--gris-texte);
}

.mise-en-garde {
    background: var(--noir);
    border-top: 1px solid rgba(200,169,110,0.1);
    padding: 2rem 0;
}

    .mise-en-garde p {
        font-size: 0.73rem;
        line-height: 1.75;
        color: rgba(240,237,230,0.3);
        max-width: 920px;
    }

.hero-stats {
    gap: 1.5rem;
}
