:root {
    --color-bg: #ffffff;
    --color-text: #111111;
    --color-muted: #4a4a4a;
    --color-coral: #fe502d;
    --color-purple: #9d4edd;
    --color-yellow: #fee440;
    --color-nav-inactive: #9ca3af;
    --color-border: #111111;
    /* DA : blocs en angles droits ; exceptions : pastilles (pill), bouton play rond */
    --radius: 0;
    --radius-pill: 999px;
    --shadow-offset-x: 6px;
    --shadow-offset-y: 6px;
    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    --font-display: "Gasoek One", sans-serif;
    --dock-height: 88px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
    font-optical-sizing: auto;
}

body {
    font-family: var(--font);
    font-optical-sizing: auto;
    background: #e8e8e8;
    color: var(--color-text);
    line-height: 1.45;
    min-height: 100%;
    height: 100%;
}

.app {
    max-width: 430px;
    margin: 0 auto;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: var(--safe-top);
    padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 8px);
}

/* En-tête */
.page-head {
    padding: 4px 20px 16px;
    flex-shrink: 0;
    background: var(--color-bg);
}

.page-head__title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}

.page-head__title-row .page-head__title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.page-head__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 9vw, 2.75rem);
    font-weight: 400;
    font-style: normal;
    color: var(--color-coral);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 25px;
}

.page-head__about-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.12em;
    color: var(--color-muted);
    opacity: 0.42;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.page-head__about-link:hover {
    opacity: 0.62;
}

.page-head__about-link:active {
    opacity: 0.85;
}

.page-head__about-link:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 3px;
}

.page-head__about-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.95;
}

/* Page À propos */
.about-page {
    padding-bottom: 8px;
}

.about-page__lead {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.about-page__section {
    margin-bottom: 22px;
}

.about-page__section h2 {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin: 0 0 10px;
}

.about-page__section p {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.55;
    margin: 0 0 10px;
}

.about-page__section p:last-child {
    margin-bottom: 0;
}

.page-head__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.pill--purple {
    background: var(--color-purple);
    color: #fff;
}

.page-head__section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.page-head--simple {
    padding-bottom: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-head--simple .page-head__title {
    margin-bottom: 0;
    font-size: clamp(2rem, 7.6vw, 2.5rem);
    flex-shrink: 0;
}

.trends-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    background: #fff;
    margin-left: auto;
}

.trends-tab {
    appearance: none;
    border: 0;
    background: transparent;
    border-radius: var(--radius);
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
}

.trends-tab.is-active {
    color: #fff;
    background: var(--color-purple);
}

/* Contenu scrollable (zone centrale sous statut + titre d’onglet) */
.content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 24px;
}

/* Page Trends : flux pleine largeur + cartes */
.content--trends {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 32px;
    background: #f0f0f2;
}

.trends-loading {
    margin: 0;
    padding: 0 20px 16px;
    font-size: 0.9375rem;
    color: var(--color-muted);
}

.trends-cards-root {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 8px 16px 0;
}

.trend-card {
    margin-bottom: 0;
}

.trend-card:last-child {
    margin-bottom: 0;
}

.old-trends-root {
    padding: 0 20px 8px;
}

.old-trend-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
    margin-bottom: 12px;
}

.old-trend-card__title {
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.old-trend-card__meta {
    margin: 0 0 8px;
    font-size: 0.78rem;
    color: #8a8a8f;
}

.old-trend-card__desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.trend-card__media {
    position: relative;
    width: 100%;
    background: #eee;
}

.trend-card__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: min(52vh, 320px);
}

/* Bandeau vigilance sur les cartes du flux (même composant que la fiche détail) */
.trend-card__media .trend-card__vigilance {
    pointer-events: none;
    left: 8px;
    top: 8px;
    padding: 6px 10px;
    font-size: 0.6875rem;
    gap: 6px;
    max-width: calc(100% - 56px);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.trend-card__media .trend-card__vigilance .trend-hero__vigilance-icon {
    width: 16px;
    height: 16px;
}

.trend-card__accent {
    height: 5px;
    width: 100%;
}

.trend-card__accent--purple {
    background: var(--color-purple);
}

.trend-card__accent--yellow {
    background: var(--color-yellow);
}

.trend-card__body {
    padding: 18px 22px 0;
}

.trend-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--color-text);
}

.trend-card__desc {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.5;
}

.trend-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-right: calc(var(--shadow-offset-x) + 12px);
    padding-bottom: calc(var(--shadow-offset-y) + 14px);
}

.trend-card__actions .btn-brutal {
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 0 var(--color-yellow);
}

.trend-card__actions .btn-brutal:active {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-offset-x) - 2px) calc(var(--shadow-offset-y) - 2px) 0 0 var(--color-yellow);
}

.trend-card__expand {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.trend-card__expand:active {
    transform: scale(0.96);
}

.trend-card--link {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow:
        var(--shadow-offset-x) var(--shadow-offset-y) 0 0 #9d4edd,
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    font: inherit;
    text-align: inherit;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.trend-card--link:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

.trend-card--link .trend-card__expand {
    pointer-events: none;
}

/* Page détail trend */
.content--trend-detail {
    padding: 0;
    padding-bottom: 32px;
}

.trend-hero__media {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 36vh;
    background: #1a1a1a;
    overflow: hidden;
}

.trend-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 36vh;
    object-fit: cover;
}

.trend-hero__vigilance {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-coral);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: calc(min(100%, 320px) - 24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.trend-hero__vigilance-icon {
    flex-shrink: 0;
}

.trend-hero__vigilance-text {
    flex: 1;
}

.trend-hero__vigilance-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.95;
}

.trend-hero__expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trend-hero__expand:active {
    transform: scale(0.96);
}

.trend-hero__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-left: 4px;
    z-index: 3;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.trend-hero__play:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.trend-hero__media.is-playing-video .trend-hero__play {
    visibility: hidden;
    pointer-events: none;
}

.trend-hero__poster {
    transition: opacity 0.2s ease;
}

.trend-hero__media.is-playing-video .trend-hero__poster {
    opacity: 0;
    visibility: hidden;
}

.trend-hero__player-slot {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-hero__player-slot[hidden] {
    display: none !important;
}

.trend-hero__embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.trend-hero__native-video {
    width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.trend-hero__player-fallback {
    padding: 16px 20px;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.trend-hero__player-fallback a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.trend-hero__video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.trend-hero__video-close[hidden] {
    display: none !important;
}

.trend-hero__video-close:active {
    transform: scale(0.96);
}

.trend-hero__divider {
    height: 5px;
    width: 100%;
}

.trend-hero__divider--yellow {
    background: var(--color-yellow);
}

.trend-hero__divider--purple {
    background: var(--color-purple);
}

.trend-detail__inner {
    padding: 16px 20px 0;
}

.trend-detail__meta-tags {
    margin-bottom: 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.trend-detail__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    list-style: none;
}

.trend-detail__meta-key {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

.trend-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trend-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 100%;
    text-align: left;
}

.trend-tag--purple {
    background: var(--color-purple);
    color: #fff;
}

.trend-tag--orange {
    background: var(--color-coral);
    color: #fff;
}

.trend-tag--challenge {
    background: var(--color-yellow);
    color: var(--color-coral);
}

.trend-detail__title {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--color-text);
}

.trend-detail__body {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.55;
}

.trend-detail__body p + p {
    margin-top: 12px;
}

/* Feuille tendance (superposition depuis l’onglet Trends) */
.trend-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
}

.trend-sheet.is-open {
    pointer-events: auto;
}

.trend-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
}

.trend-sheet.is-open .trend-sheet__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.trend-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(94vh, 100% - env(safe-area-inset-top, 0px));
    background: #fff;
    border-radius: var(--radius);
    transform: translateY(105%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    will-change: transform;
}

.trend-sheet.is-open .trend-sheet__panel {
    transform: translateY(0);
}

.trend-sheet__panel.is-dragging {
    transition: none;
}

.trend-sheet__handle-wrap {
    flex-shrink: 0;
    padding: 12px 16px 10px;
    touch-action: none;
    cursor: grab;
}

.trend-sheet__handle-wrap:active {
    cursor: grabbing;
}

.trend-sheet__handle {
    width: 40px;
    height: 5px;
    margin: 0 auto;
    background: #d1d1d6;
    border-radius: var(--radius);
}

.trend-sheet__scroller {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.trend-sheet__detail {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* Ombres néo-brutalistes (bloc plein décalé, sans flou) */
.neo-shadow {
    position: relative;
    z-index: 0;
}

.neo-shadow::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: var(--shadow-offset-x);
    top: var(--shadow-offset-y);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.neo-shadow--purple::after {
    background: var(--color-purple);
}

.neo-shadow--coral::after {
    background: var(--color-coral);
}

.neo-shadow--yellow::after {
    background: var(--color-yellow);
}

.featured__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured__link:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 4px;
}

.featured__media {
    margin-bottom: 14px;
}

.featured__media img {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid var(--color-purple);
    background: #f3f3f3;
    position: relative;
    z-index: 0;
}

.featured__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.featured__desc {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-muted);
    max-width: 36em;
}

/* Mot du jour */
.word-of-day {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.word-of-day__heading {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.word-of-day__highlight {
    display: inline;
    background: var(--color-yellow);
    padding: 2px 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.word-of-day__card {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 16px 18px;
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 0 var(--color-coral);
}

.word-of-day__definition {
    font-size: 0.9375rem;
    color: var(--color-muted);
    font-weight: 400;
}

.word-of-day__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    padding-right: var(--shadow-offset-x);
    padding-bottom: var(--shadow-offset-y);
}

.word-of-day__actions .btn-brutal {
    box-shadow: var(--shadow-offset-x) var(--shadow-offset-y) 0 0 var(--color-yellow);
}

.word-of-day__actions .btn-brutal:active {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--shadow-offset-x) - 2px) calc(var(--shadow-offset-y) - 2px) 0 0 var(--color-yellow);
}

.btn-brutal {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 10px 22px;
    cursor: pointer;
    border-radius: var(--radius);
}

.btn-brutal:active {
    transform: translate(2px, 2px);
}

/* Dock : barre d’onglets + indicateur d’accueil */

.app-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 430px;
    background: var(--color-bg);
    border-top: 1px solid #eee;
    z-index: 50;
    padding-bottom: var(--safe-bottom);
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 8px 6px;
    background: var(--color-bg);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-nav-inactive);
    padding: 4px 2px;
    min-width: 0;
}

.bottom-nav__item--active {
    color: var(--color-coral);
}

/* Icônes en <img> : compatibles file:// (les mask-image externes sont bloquées par CORS) */
.bottom-nav__icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.45;
}

.bottom-nav__icon--home {
    width: 24px;
    height: 24px;
}

.bottom-nav__icon--trends {
    width: 28px;
    height: 21px;
}

.bottom-nav__icon--glossaire {
    width: 24px;
    height: 23px;
}

.bottom-nav__icon--search {
    width: 22px;
    height: 22px;
}

/* Icônes noires → orange accent (#fe502d) */
.bottom-nav__item--active .bottom-nav__icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(3200%) hue-rotate(349deg) brightness(101%) contrast(98%);
}

/* ——— Glossaire ——— */

.app--glossary {
    background: #f2f2f7;
}

.app--glossary .app-dock {
    background: #fff;
}

.content--glossary {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0 0 8px 10px;
}

.glossary-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 12px 4px;
    background: #f2f2f7;
    z-index: 2;
}

.glossary-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #e5e5ea;
    border-radius: var(--radius);
    min-width: 0;
}

.glossary-search__icon-wrap {
    display: flex;
    color: #8e8e93;
    flex-shrink: 0;
}

.glossary-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--color-text);
    min-width: 0;
    outline: none;
}

.glossary-search__input::placeholder {
    color: #8e8e93;
}

.glossary-cancel {
    flex-shrink: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #8e8e93;
    padding: 8px 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.glossary-cancel:active {
    opacity: 0.7;
}

.glossary-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.glossary-scroll {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.glossary-section {
    scroll-margin-top: 12px;
}

.glossary-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 14px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

button.glossary-row {
    width: 100%;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.glossary-row:last-child {
    border-bottom: none;
}

.glossary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-height: 40px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    transform: rotate(-3deg) skewX(-4deg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.glossary-badge--orange {
    background: var(--color-coral);
}

.glossary-badge--yellow {
    background: #f9a825;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.glossary-badge--purple {
    background: var(--color-purple);
}

.glossary-snippet {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.35;
    margin: 0;
}

.glossary-chevron {
    display: flex;
    color: var(--color-text);
    opacity: 0.75;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.glossary-row.is-open .glossary-chevron {
    transform: rotate(180deg);
}

.glossary-panel {
    padding: 0 8px 12px 2px;
    margin-top: -6px;
}

.glossary-panel[hidden] {
    display: none;
}

.glossary-definition {
    margin: 0 0 0 116px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #4f4f55;
}

.glossary-index {
    flex-shrink: 0;
    align-self: stretch;
    width: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 6px 2px 10px 4px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    user-select: none;
    touch-action: none;
    -webkit-user-select: none;
}

.glossary-index--scrubbing {
    cursor: grab;
}

.glossary-index--scrubbing:active {
    cursor: grabbing;
}

.glossary-index__letter {
    display: block;
    padding: 0;
    flex-shrink: 0;
}

.glossary-index__letter--inactive {
    color: #c7c7cc;
    font-weight: 600;
}

.glossary-index__letter--active {
    color: var(--color-text);
    font-size: 11px;
    font-weight: 800;
}

.glossary-index__link {
    display: block;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
    color: #aeaeb2;
    font-weight: 600;
    font-size: 9px;
    -webkit-tap-highlight-color: transparent;
}

.glossary-index__link--active {
    color: var(--color-text);
    font-size: 11px;
    font-weight: 800;
}

/* ——— Rechercher ——— */

.app--search {
    background: #ffffff;
}

.content--search {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.search-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 16px;
    flex-shrink: 0;
    background: var(--color-bg);
}

.search-toolbar__field {
    background: #e5e5e5;
}

.search-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
}

.search-block__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.search-block__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin: 0;
}

.search-block__title--solo {
    margin-bottom: 8px;
}

.search-block__action {
    flex-shrink: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: #8e8e93;
    padding: 4px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.search-block__action:active {
    opacity: 0.65;
}

.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-hit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    text-decoration: none;
    color: inherit;
}

.search-hit__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.search-hit__dot--orange {
    background: var(--color-coral);
}

.search-hit__dot--purple {
    background: var(--color-purple);
}

.search-hit__dot--grey {
    background: #c7c7cc;
}

.search-hit__label {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

.search-hit__label--orange {
    color: var(--color-coral);
}

.search-hit__label--purple {
    color: var(--color-purple);
}

.search-hit__label--muted {
    color: #8e8e93;
    font-weight: 400;
}

.search-divider {
    border: none;
    border-top: 1px solid #e5e5ea;
    margin: 4px 0 18px;
}

.search-global-help {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: #8e8e93;
}

.search-global-group {
    margin-bottom: 16px;
}

.search-global-group__title {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6a6a70;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.search-global-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-global-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #fff;
}

.search-global-item__title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.search-global-item__meta {
    margin: 3px 0 0;
    font-size: 0.78rem;
    color: #8e8e93;
}

.search-global-item__snippet {
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #5c5c62;
}

@media (min-width: 431px) {
    .app {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.08);
    }

    .trend-sheet {
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    }
}


.tt-quiz-module {
    margin-top: 28px;
    padding: 28px 20px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tt-quiz-title {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.tt-quiz-stack {
    position: relative;
}

.tt-quiz-card {
    position: relative;
    z-index: 2;
    background: #9d4edd;
    border: 2px solid #1C1C1E;
    padding: 20px;
}

.tt-quiz-accent {
    position: absolute;
    top: 6px;
    left: 6px;
    right: -6px;
    bottom: -6px;
    background: #fe502d;
    z-index: 1;
}

.tt-quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tt-quiz-heading {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.tt-quiz-badge {
    background: #fff;
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
}

.tt-quiz-question {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 16px;
}

.tt-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tt-quiz-btn {
    width: 100%;
    border: 2px solid #1C1C1E;
    background: #fff;
    color: #000;
    text-align: left;
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
}

.tt-quiz-btn:hover {
    background: #FFE600;
}

.tt-quiz-btn:active {
    transform: scale(0.99);
}

.tt-quiz-btn.is-correct {
    background: #FFE600;
    border-color: #1C1C1E;
}

.tt-quiz-btn.is-wrong {
    background: #FFD7CC;
    border-color: #1C1C1E;
}

.tt-quiz-btn.is-disabled {
    opacity: 0.72;
    cursor: default;
}

.tt-quiz-feedback {
    min-height: 22px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.tt-quiz-next {
    margin-top: 10px;
    border: 2px solid #1C1C1E;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 14px;
    cursor: pointer;
    font-family: inherit;
}

.tt-quiz-next:hover {
    background: #FFE600;
}
