@font-face {
    font-family: "DM Sans";
    src: url("/fonts/dm-sans-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f4f6f9;
    --bg-elevated: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.12);
    --accent-text: #1d4ed8;
    --danger: #dc2626;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    --radius: 12px;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    --home-content-max: 1080px;
    --fr-bleu: #1d4ed8;
    --fr-bleu-soft: rgba(29, 78, 216, 0.1);
    --fr-rouge: #dc2626;
    --fr-rouge-soft: rgba(220, 38, 38, 0.1);
    --coq-ambre: #f59e0b;
}

.tier-sprite-defs {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 48px;
    height: 48px;
    overflow: visible;
    pointer-events: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-family: var(--font);
    font-size: 1rem;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(var(--home-content-max), 100% - 2rem); margin-inline: auto; }
.container--admin { width: min(1480px, 100% - 2rem); }
.main { padding: 2rem 0 4rem; }

.site-header {
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(29, 78, 216, 0.1), 0 2px 0 rgba(220, 38, 38, 0.06);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.brand__img {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.15));
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav__user { margin-left: 0.25rem; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0 2rem;
    margin-top: 2rem;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.04) 0%, var(--bg-elevated) 12%);
}

.footer-inner { text-align: center; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tabular { font-variant-numeric: tabular-nums; }

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

.hero { padding: 0.5rem 0 1.5rem; }
.hero--home {
    padding: 0.35rem 0 1rem;
    max-width: var(--home-content-max);
    margin-inline: auto;
}
.hero__mark { margin-bottom: 0.5rem; }
.hero__mark img { display: inline-block; vertical-align: middle; opacity: 0.9; }
.hero-home__panel {
    padding: 1.1rem 1.25rem 1.2rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--border);
    background:
        linear-gradient(128deg, rgba(37, 99, 235, 0.09) 0%, transparent 42%),
        linear-gradient(220deg, rgba(249, 115, 22, 0.06) 0%, transparent 38%),
        var(--bg-elevated);
    box-shadow: var(--shadow);
}
.hero-home__grid {
    display: grid;
    gap: 1rem 1.75rem;
    align-items: center;
}
.hero-home__copy {
    min-width: 0;
}
.hero-home__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-text, #1d4ed8);
}
.hero--home h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    line-height: 1.12;
    text-wrap: balance;
}
.hero-home__lead {
    margin: 0 0 0.85rem;
    max-width: 52ch;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text);
}
.hero-home__lead a {
    font-weight: 600;
}
.hero-home__cta {
    display: inline-flex;
    padding: 0.7rem 1.35rem;
    font-size: 1rem;
    white-space: nowrap;
}
.hero-home__aside {
    min-width: 0;
}
.hero-home__aside-label {
    margin: 0 0 0.45rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.hero-home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-home__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg, #fff);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.hero-home__chip:hover {
    border-color: var(--accent, #2563eb);
    background: var(--accent-soft, rgba(37, 99, 235, 0.08));
    color: var(--accent-text, #1d4ed8);
    text-decoration: none;
}
@media (min-width: 720px) {
    .hero-home__grid {
        grid-template-columns: 1fr minmax(12rem, 17rem);
    }
    .hero-home__aside {
        justify-self: end;
        text-align: right;
    }
    .hero-home__chips {
        justify-content: flex-end;
    }
}
@media (min-width: 900px) {
    .hero-home__panel {
        padding: 1.2rem 1.5rem 1.25rem;
    }
    .hero-home__grid {
        grid-template-columns: 1fr minmax(14rem, 20rem);
        gap: 1.25rem 2.5rem;
    }
}

.home-intro {
    margin-bottom: 1.5rem;
}

.hero h1, .page-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.lead { font-size: 1.05rem; margin: 0; max-width: 52ch; }

.page-narrow { max-width: 32rem; margin-inline: auto; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { margin-bottom: 0.25rem; }

.panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    max-width: 720px;
    margin-inline: auto;
}

.panel--calculator { margin-top: 0.5rem; }

.panel--calc-slim {
    max-width: min(24rem, 100%);
    margin-inline: 0;
    padding: 1.15rem 1.2rem;
}

@media (max-width: 899px) {
    .panel--calc-slim {
        margin-inline: auto;
    }
}
.panel__hint { margin: 0 0 1rem; }

.calc-form { display: flex; flex-direction: column; gap: 1rem; }
.calc-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.label-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

label { display: grid; gap: 0.35rem; }

.grid-form {
    display: grid;
    gap: 1rem;
    max-width: 26rem;
}
.auth-page {
    max-width: 32rem;
}
.auth-page__lead {
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.auth-form .form-field,
.auth-form > div {
    display: grid;
    gap: 0.35rem;
}
.birth-date-field {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(165deg, #fafbfc 0%, #f3f6f9 100%);
}
.birth-date-field label {
    font-weight: 600;
    font-size: 0.9rem;
}
.birth-date-input,
.birth-date-field input[type="date"] {
    min-height: 2.75rem;
    font-size: 1rem;
    color-scheme: light;
    cursor: pointer;
}
.birth-date-field__hint {
    margin: 0.15rem 0 0;
    line-height: 1.45;
}
.auth-form__submit {
    margin-top: 0.25rem;
    width: 100%;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input:not([type]),
textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fafbfc;
    color: var(--text);
    font: inherit;
    width: 100%;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin: 0;
    background: #fafbfc;
}

.address-picker__control {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.address-picker__control .js-address-search {
    flex: 1;
    min-width: 0;
}

.address-picker__loader {
    flex-shrink: 0;
    align-self: center;
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: address-picker-spin 0.65s linear infinite;
}

@keyframes address-picker-spin {
    to { transform: rotate(360deg); }
}

.address-picker__clear {
    flex-shrink: 0;
    align-self: stretch;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .address-picker__clear {
        padding-inline: 0.5rem;
        font-size: 0.8rem;
    }
}

legend {
    padding: 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.suggestions {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
    max-height: 12rem;
    overflow-y: auto;
}

.suggestion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    text-align: left;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.suggestion__city {
    font-weight: 600;
    line-height: 1.25;
}

.suggestion__meta {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.3;
}

.suggestion:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}
.btn.primary {
    background: linear-gradient(160deg, #60a5fa, #2563eb 52%, #1e40af);
    border-color: #1e40af;
    color: #fff;
}
.btn.primary:hover { filter: brightness(1.03); text-decoration: none; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.calc-form__measure {
    margin-top: 0.65rem;
}

.calc-form__measure .btn--hero-measure {
    max-width: none;
}

.crest-result {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--accent-soft), transparent);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.crest-result::before,
.result-page .crest-hero:not(.crest-hero--showcase)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url("/images/footix.png") center / min(100%, 26rem) auto no-repeat;
    opacity: 0.065;
}

/* Pas de filigrane footix quand le résultat (coq échelle) est affiché */
#crest-live-panel.has-measure-result::before,
.crest-hero--showcase::before {
    display: none;
}

.crest-result > *,
.result-page .crest-hero > * {
    position: relative;
    z-index: 1;
}

.crest-heat {
    transition:
        background 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.crest-heat .crest-result__fill,
.crest-heat .crest-hero__fill {
    transition: background 0.45s ease, filter 0.45s ease;
}

.crest-heat .crest-result__score,
.crest-heat .crest-hero__score,
.crest-heat .crest-result__title,
.crest-heat .crest-hero__title {
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.crest-result__viz {
    width: 3.5rem;
    height: 7rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
}

.crest-result__fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: linear-gradient(180deg, #93c5fe, var(--accent));
    border-radius: 999px 999px 0 0;
    transition: height 0.45s ease;
}

.crest-result__range { margin: 0; }
.crest-result__score {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.15rem 0;
    line-height: 1;
    color: var(--accent-text);
}

.crest-result__title { margin: 0.25rem 0 0.35rem; font-size: 1.35rem; }
.crest-result__tagline { margin: 0 0 0.75rem; max-width: 28rem; margin-inline: auto; }
.crest-result__more { margin: 0; }

.tabs {
    display: flex;
    gap: 0.35rem;
    margin: 1rem 0 1.25rem;
    padding: 0.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}

.tabs__tab {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
}
.tabs__tab:hover { text-decoration: none; background: var(--bg); color: var(--text); }
.tabs__tab.is-active {
    background: var(--accent);
    color: #fff;
}

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.table-simple {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-simple th,
.table-simple td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-simple th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: #f8fafc;
    font-weight: 600;
}

.table-simple tr:last-child td { border-bottom: none; }

.tier-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.tier-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border-left: 4px solid var(--accent);
}

.tier-card__range {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-text);
    margin-bottom: 0.35rem;
}

.tier-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.tier-card__tag { margin: 0; font-size: 0.95rem; }

.tier-card__row {
    display: grid;
    grid-template-columns: 3.75rem 1fr;
    gap: 0.85rem 1.1rem;
    align-items: start;
}

.tier-card__mark-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.tier-mark-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tier-mark-size, 2.5rem);
    height: var(--tier-mark-size, 2.5rem);
    flex-shrink: 0;
    line-height: 0;
    overflow: visible;
}

.tier-mark-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    transform: scale(1.12);
    transform-origin: center bottom;
}

.tier-card__mark-frame,
.tier-card__mark {
    --tier-mark-size: 3.35rem;
}

.tier-card__copy {
    min-width: 0;
}

.result-page .crest-hero {
    margin: 1.5rem 0;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    background: linear-gradient(165deg, var(--accent-soft), #fff);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.crest-hero__viz {
    width: 4rem;
    height: 8rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
}

.crest-hero__fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, #93c5fe, var(--accent));
    border-radius: 999px 999px 0 0;
}

.crest-hero__score {
    font-size: clamp(2.75rem, 10vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.25rem 0;
    line-height: 1;
    color: var(--accent-text);
}

.crest-hero__title { margin: 0.35rem 0; font-size: 1.5rem; }
.crest-hero__tag { margin: 0 auto; max-width: 28rem; }

.crest-hero__tier-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem;
}

.crest-hero__tier-svg {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--fr-bleu-soft), rgba(96, 165, 250, 0.2));
    border: 1px solid var(--border);
    box-sizing: content-box;
}

/* Intensité visuelle selon la tranche (aperçu accueil + page résultat) */
.crest-result.crest-heat[data-slug="fidele"],
.crest-hero.crest-heat[data-slug="fidele"] {
    background: linear-gradient(165deg, rgba(148, 163, 184, 0.2), #fff);
    border-color: #cbd5e1;
    box-shadow: none;
}
.crest-result.crest-heat[data-slug="fidele"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="fidele"] .crest-hero__viz {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.crest-result.crest-heat[data-slug="fidele"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="fidele"] .crest-hero__fill {
    background: linear-gradient(180deg, #f1f5f9, #94a3b8);
}
.crest-result.crest-heat[data-slug="fidele"] .crest-result__score,
.crest-hero.crest-heat[data-slug="fidele"] .crest-hero__score {
    color: #475569;
}

.crest-result.crest-heat[data-slug="local"],
.crest-hero.crest-heat[data-slug="local"] {
    background: linear-gradient(165deg, rgba(147, 197, 253, 0.38), #fff);
    border-color: #93c5fd;
}
.crest-result.crest-heat[data-slug="local"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="local"] .crest-hero__viz {
    border-color: #60a5fa;
    background: #eff6ff;
}
.crest-result.crest-heat[data-slug="local"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="local"] .crest-hero__fill {
    background: linear-gradient(180deg, #bfdbfe, #3b82f6);
}
.crest-result.crest-heat[data-slug="local"] .crest-result__score,
.crest-hero.crest-heat[data-slug="local"] .crest-hero__score {
    color: #1d4ed8;
}

.crest-result.crest-heat[data-slug="sympathisant"],
.crest-hero.crest-heat[data-slug="sympathisant"] {
    background: linear-gradient(165deg, rgba(96, 165, 250, 0.32), #f8fafc);
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.crest-result.crest-heat[data-slug="sympathisant"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="sympathisant"] .crest-hero__viz {
    border-color: #3b82f6;
    background: #dbeafe;
}
.crest-result.crest-heat[data-slug="sympathisant"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="sympathisant"] .crest-hero__fill {
    background: linear-gradient(180deg, #93c5fd, #2563eb);
}
.crest-result.crest-heat[data-slug="sympathisant"] .crest-result__score,
.crest-hero.crest-heat[data-slug="sympathisant"] .crest-hero__score {
    color: #1e40af;
}

.crest-result.crest-heat[data-slug="leger"],
.crest-hero.crest-heat[data-slug="leger"] {
    background: linear-gradient(165deg, rgba(59, 130, 246, 0.28), #eff6ff);
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}
.crest-result.crest-heat[data-slug="leger"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="leger"] .crest-hero__viz {
    border-color: #2563eb;
    background: #dbeafe;
}
.crest-result.crest-heat[data-slug="leger"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="leger"] .crest-hero__fill {
    background: linear-gradient(180deg, #60a5fa, #1d4ed8);
}
.crest-result.crest-heat[data-slug="leger"] .crest-result__score,
.crest-hero.crest-heat[data-slug="leger"] .crest-hero__score {
    color: #1e3a8a;
}

.crest-result.crest-heat[data-slug="confirme"],
.crest-hero.crest-heat[data-slug="confirme"] {
    background: linear-gradient(165deg, rgba(37, 99, 235, 0.3), #eff6ff);
    border-color: #2563eb;
    box-shadow: 0 6px 24px rgba(29, 78, 216, 0.16);
}
.crest-result.crest-heat[data-slug="confirme"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="confirme"] .crest-hero__viz {
    border-color: #1d4ed8;
    background: #dbeafe;
}
.crest-result.crest-heat[data-slug="confirme"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="confirme"] .crest-hero__fill {
    background: linear-gradient(180deg, #3b82f6, #1e3a8a);
}
.crest-result.crest-heat[data-slug="confirme"] .crest-result__score,
.crest-hero.crest-heat[data-slug="confirme"] .crest-hero__score {
    color: #172554;
}
.crest-result.crest-heat[data-slug="confirme"] .crest-result__title,
.crest-hero.crest-heat[data-slug="confirme"] .crest-hero__title {
    color: #1e3a8a;
}

.crest-result.crest-heat[data-slug="professionnel"],
.crest-hero.crest-heat[data-slug="professionnel"] {
    background: linear-gradient(165deg, rgba(29, 78, 216, 0.34), #eef2ff);
    border-color: #1d4ed8;
    box-shadow: 0 8px 28px rgba(30, 64, 175, 0.2);
}
.crest-result.crest-heat[data-slug="professionnel"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="professionnel"] .crest-hero__viz {
    border-color: #1e40af;
    background: #e0e7ff;
}
.crest-result.crest-heat[data-slug="professionnel"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="professionnel"] .crest-hero__fill {
    background: linear-gradient(180deg, #2563eb, #172554);
    filter: saturate(1.05);
}
.crest-result.crest-heat[data-slug="professionnel"] .crest-result__score,
.crest-hero.crest-heat[data-slug="professionnel"] .crest-hero__score {
    color: #172554;
}
.crest-result.crest-heat[data-slug="professionnel"] .crest-result__title,
.crest-hero.crest-heat[data-slug="professionnel"] .crest-hero__title {
    color: #1e1b4b;
}

.crest-result.crest-heat[data-slug="elite"],
.crest-hero.crest-heat[data-slug="elite"] {
    background: linear-gradient(165deg, rgba(30, 64, 175, 0.38), #eef2ff);
    border-color: #1e40af;
    box-shadow: 0 10px 32px rgba(30, 58, 138, 0.22);
}
.crest-result.crest-heat[data-slug="elite"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="elite"] .crest-hero__viz {
    border-color: #1e3a8a;
    background: #dbeafe;
}
.crest-result.crest-heat[data-slug="elite"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="elite"] .crest-hero__fill {
    background: linear-gradient(180deg, #1d4ed8, #0f172a);
    filter: saturate(1.08);
}
.crest-result.crest-heat[data-slug="elite"] .crest-result__score,
.crest-hero.crest-heat[data-slug="elite"] .crest-hero__score {
    color: #172554;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.crest-result.crest-heat[data-slug="elite"] .crest-result__title,
.crest-hero.crest-heat[data-slug="elite"] .crest-hero__title {
    color: #0f172a;
}

.crest-result.crest-heat[data-slug="legende"],
.crest-hero.crest-heat[data-slug="legende"] {
    background: linear-gradient(165deg, rgba(67, 56, 202, 0.32), #eef2ff 50%, #fff);
    border-color: #6366f1;
    box-shadow: 0 12px 40px rgba(67, 56, 202, 0.22);
}
.crest-result.crest-heat[data-slug="legende"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="legende"] .crest-hero__viz {
    border-color: #4f46e5;
    background: #e0e7ff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}
.crest-result.crest-heat[data-slug="legende"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="legende"] .crest-hero__fill {
    background: linear-gradient(180deg, #818cf8, #312e81);
    filter: saturate(1.08);
}
.crest-result.crest-heat[data-slug="legende"] .crest-result__score,
.crest-hero.crest-heat[data-slug="legende"] .crest-hero__score {
    color: #312e81;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.crest-result.crest-heat[data-slug="legende"] .crest-result__title,
.crest-hero.crest-heat[data-slug="legende"] .crest-hero__title {
    color: #1e1b4b;
}
.crest-result.crest-heat[data-slug="legende"] .crest-result__tagline,
.crest-hero.crest-heat[data-slug="legende"] .crest-hero__tag {
    color: #3730a3;
    opacity: 0.92;
}

.crest-result.crest-heat[data-slug="ballon_or"],
.crest-hero.crest-heat[data-slug="ballon_or"] {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.38) 0%, rgba(37, 99, 235, 0.22) 50%, #fff 100%);
    border-color: #38bdf8;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.35),
        0 16px 48px rgba(29, 78, 216, 0.18);
}
.crest-result.crest-heat[data-slug="ballon_or"] .crest-result__viz,
.crest-hero.crest-heat[data-slug="ballon_or"] .crest-hero__viz {
    border-color: #0ea5e9;
    background: linear-gradient(180deg, #e0f2fe, #bae6fd);
    box-shadow: 0 0 28px rgba(14, 165, 233, 0.35);
}
.crest-result.crest-heat[data-slug="ballon_or"] .crest-result__fill,
.crest-hero.crest-heat[data-slug="ballon_or"] .crest-hero__fill {
    background: linear-gradient(180deg, #38bdf8, #1d4ed8 55%, #172554);
    filter: saturate(1.12);
}
.crest-result.crest-heat[data-slug="ballon_or"] .crest-result__score,
.crest-hero.crest-heat[data-slug="ballon_or"] .crest-hero__score {
    color: #1e40af;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.45), 0 1px 0 #fff;
}
.crest-result.crest-heat[data-slug="ballon_or"] .crest-result__title,
.crest-hero.crest-heat[data-slug="ballon_or"] .crest-hero__title {
    color: #172554;
}
.crest-result.crest-heat[data-slug="ballon_or"] .crest-result__tagline,
.crest-hero.crest-heat[data-slug="ballon_or"] .crest-hero__tag {
    color: #1d4ed8;
    opacity: 0.92;
}

.crest-result.crest-heat[data-slug] .crest-result__viz,
.crest-hero.crest-heat[data-slug] .crest-hero__viz {
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.actions--tight { margin-top: 1rem; }

.opt-in-block {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}
.checkbox input { width: auto; margin-top: 0.2rem; }

.flash {
    margin: 0.75rem auto;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    max-width: var(--home-content-max);
}
.flash-success { border-color: #6ee7b7; background: #ecfdf5; }
.flash-info { border-color: #7dd3fc; background: #f0f9ff; }
.flash-danger { border-color: #fecaca; background: #fef2f2; }
.flash-warn { border-color: #fcd34d; background: #fffbeb; color: #78350f; }

.error { color: var(--danger); font-weight: 600; font-size: 0.9rem; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) {
    .row { grid-template-columns: 1fr; }
}

/* Header fusion : CTA dénoncer + auth seule */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.brand {
    flex: 1 1 auto;
    min-width: 0;
}

.btn--denonce-cta {
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(160deg, #f97316, #ea580c);
    border-color: #c2410c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
    white-space: nowrap;
}
.btn--denonce-cta:hover:not(:disabled) {
    filter: brightness(1.05);
    text-decoration: none;
}
.crest-live__actions .btn--denonce-cta {
    width: 100%;
}
.crest-live__actions .btn--denonce-cta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.nav--auth {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn--register {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .brand { flex: none; }
    .btn--denonce-cta { text-align: center; justify-content: center; }
    .nav--auth { justify-content: flex-end; }
}

/* Ancres page d’accueil (header sticky) */
.home-anchor-target {
    scroll-margin-top: 5.25rem;
}

/* Accueil : même largeur max que l’échelle ; deux colonnes 50 % / 50 % */
.home-split {
    display: grid;
    gap: 1rem 1.25rem;
    align-items: start;
    width: 100%;
    max-width: var(--home-content-max);
    margin-inline: auto;
}

.home-split .panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.home-split .panel--calculator {
    margin-top: 0;
}

.home-split .panel--calc-slim {
    max-width: 100%;
}

.home-split > .home-section {
    margin-top: 0;
}

@media (min-width: 900px) {
    .home-split {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.25rem;
    }

    .home-split__calc {
        min-width: 0;
    }

    .home-split__calc .panel--calc-slim {
        padding: 1.1rem 1.2rem;
    }

    .home-split__rank.panel {
        padding: 1.1rem 1.2rem;
    }

    .home-split__rank.home-section {
        margin-top: 0;
    }
}

@media (max-width: 899px) {
    .home-split__rank.home-section {
        margin-top: 0;
    }
}

.tabs--compact {
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
}

.tabs--compact .tabs__tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.4rem 0.45rem;
    font-size: 0.8rem;
}

.table-simple--rank {
    font-size: 0.875rem;
}

.table-simple--rank th,
.table-simple--rank td {
    padding: 0.5rem 0.55rem;
}

.table-wrap--rank {
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(70vh, 28rem);
    -webkit-overflow-scrolling: touch;
}

.table-simple--rank thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    box-shadow: 0 1px 0 var(--border);
}

.table-simple--rank .lb-col-pseudo,
.table-simple--rank .lb-col-place,
.table-simple--rank .lb-col-tier:not(.lb-tier-cell) {
    word-break: break-word;
    hyphens: auto;
    max-width: min(38vw, 12rem);
}

.table-simple--rank .lb-tier-cell {
    word-break: break-word;
    hyphens: auto;
    max-width: min(58vw, 22rem);
}

.lb-tier-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    vertical-align: middle;
}

.lb-tier-mark-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: none;
    background: transparent;
}

.lb-tier-mark-wrap .tier-mark-frame,
.lb-tier-mark-frame {
    width: 100%;
    height: 100%;
}

.lb-pseudo-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.lb-challenge-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fr-rouge, #c8102e);
    line-height: 0;
}

.lb-challenge-mark svg {
    display: block;
}

.lb-parcours {
    display: inline-flex;
    flex-shrink: 0;
    margin-left: 0.15rem;
    vertical-align: middle;
}

.lb-parcours__trigger {
    display: inline-flex;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 0;
    font: inherit;
    color: inherit;
}

.lb-parcours__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lb-parcours__trigger:hover .lb-parcours__icon,
.lb-parcours__trigger:focus-visible .lb-parcours__icon {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--accent-soft);
}

.lb-parcours__panel {
    margin: 0;
    padding: 0.6rem 0.7rem;
    min-width: 13.5rem;
    max-width: min(19rem, calc(100vw - 2rem));
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.lb-parcours__panel:popover-open {
    position: fixed;
    inset: auto;
    z-index: 10000;
}

.lb-parcours__title {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

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

.lb-parcours__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.5rem;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.lb-parcours__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lb-parcours__city {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.lb-parcours__years {
    font-size: 0.82rem;
    color: var(--text);
    white-space: nowrap;
}

.lb-parcours__tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.lb-parcours__tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.lb-parcours__hint {
    margin: 0.45rem 0 0;
    font-size: 0.7rem;
    line-height: 1.35;
}

.lb-tier-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
}

.lb-tier-label {
    min-width: 0;
    font-weight: 600;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .table-simple--rank .lb-col-pseudo,
    .table-simple--rank .lb-col-place,
    .table-simple--rank .lb-col-tier:not(.lb-tier-cell) {
        max-width: 14rem;
    }

    .table-simple--rank .lb-tier-cell {
        max-width: 22rem;
    }
}

.rank-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
}

.rank-pager__status {
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
    min-width: 12rem;
}

.rank-pager__btn {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding-inline: 1rem;
}

.rank-pager__btn:disabled,
.rank-pager__btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

a.rank-pager__btn {
    text-decoration: none;
}

.home-section {
    margin-top: 2.75rem;
}

.home-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.home-section__intro {
    margin: 0 0 1rem;
}

.panel--wide {
    max-width: var(--home-content-max);
}

/* Pages SEO éditoriales : largeur homogène sur tous les blocs */
.seo-page {
    width: min(var(--home-content-max), 100%);
    max-width: var(--home-content-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.25rem;
}

.seo-page > .panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.seo-page__section + .seo-page__section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.seo-page__section > h2:first-child {
    margin-top: 0;
}

.seo-page__lead {
    font-size: 1.05rem;
    line-height: 1.55;
}

.seo-page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.club-index-grid {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
}

.club-index-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    min-height: 100%;
}

.club-index-card__name {
    font-weight: 600;
    line-height: 1.3;
}

.club-index-card__meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.club-index-card__link {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
}

.table-wrap--seo-ranking {
    margin-top: 0.75rem;
}

.table-wrap--seo-ranking .admin-table {
    min-width: 36rem;
}

.seo-faq-item + .seo-faq-item {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.seo-faq-item h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.seo-faq-item p {
    margin: 0;
}

@media (max-width: 640px) {
    .club-index-grid {
        grid-template-columns: 1fr;
    }
}

.home-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.65rem;
}

.stats-kpis {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.tier-list--compact .tier-card__title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

/* Page dénonciation */
.denounce-page {
    max-width: 34rem;
    margin-inline: auto;
    padding-bottom: 1rem;
}

.denounce-page--wide {
    width: min(var(--home-content-max), 100%);
    max-width: var(--home-content-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.denounce-page--wide > .panel,
.denounce-page--wide > section.panel,
.denounce-page--wide > .account-section.panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.denounce-page__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.denounce-page__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.denounce-page__header h1 {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.denounce-page__lead {
    margin: 0 auto;
    max-width: 38ch;
    font-size: 0.98rem;
    line-height: 1.5;
}

.denounce-page__callout {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.denounce-page__callout--warn {
    border-color: #fecaca;
    background: #fef2f2;
}

.denounce-page__callout--info {
    border-color: #93c5fd;
    background: #eff6ff;
}

.denounce-page__callout-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.denounce-page__hash {
    display: block;
    margin-top: 0.65rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    word-break: break-all;
    color: var(--text);
}

.denounce-page__wip {
    border-radius: var(--radius);
    border: 1px solid #fcd34d;
    background: linear-gradient(165deg, rgba(250, 204, 21, 0.2), #fffbeb);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.denounce-page__wip-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #92400e;
}

.denounce-page__wip-actions {
    margin: 1rem 0 0;
}

.denounce-page__form {
    max-width: none;
    margin-inline: 0;
    padding: 1.25rem 1.35rem;
}

.denounce-page__form-desc {
    margin: 0 0 1.1rem;
}

.denounce-page__fieldset {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1rem 1.1rem;
    margin: 0 0 1rem;
    background: #fafbfc;
}

.denounce-page__fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.denounce-page__fieldset--optional legend {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
}

.denounce-page__fieldset-hint {
    margin: -0.25rem 0 0.75rem;
}

.denounce-page__fieldset label {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.denounce-page__fieldset label:first-of-type {
    margin-top: 0;
}

.denounce-page__fieldset input:not([type="hidden"]) {
    width: 100%;
}

.denounce-page__turnstile {
    margin: 0.5rem 0 1rem;
}

.denounce-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.25rem;
}

/* Page partage défi — cartes alignées */
.denounce-share-page__header {
    margin-bottom: 0;
}

.denounce-share-page__card {
    padding: 1.25rem 1.35rem;
}

/* Bloc partage — action principale */
.denounce-share-page__card--hero {
    padding: 1.5rem 1.4rem 1.4rem;
    border: 2px solid #25d366;
    background: linear-gradient(165deg, #ecfdf5 0%, #fff 38%, #f0fdf4 100%);
    box-shadow:
        0 0 0 4px rgba(37, 211, 102, 0.14),
        0 12px 36px rgba(22, 101, 52, 0.14);
}

.denounce-share-page__cta-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #15803d;
}

.denounce-share-page__cta-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.denounce-share-page__cta-warn {
    margin: 0 0 1.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.92rem;
    line-height: 1.45;
}

.denounce-share-page__whatsapp-wrap {
    margin: 0 0 1.1rem;
}

.denounce-share-page__whatsapp-btn {
    display: block;
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1.08rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    background: #25d366;
    border: 2px solid #1da851;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.denounce-share-page__whatsapp-btn:hover {
    filter: brightness(1.06);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.denounce-share-page__textarea {
    width: 100%;
    min-height: 6.5rem;
    padding: 0.75rem;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    background: #fff;
}

.denounce-share-page__copy-btn {
    font-weight: 600;
}

.denounce-share-page__copy-feedback {
    margin: 0.35rem 0 0;
}

/* Récap fusionné — secondaire */
.denounce-share-page__card--recap {
    border-color: var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}

.denounce-share-page__card--nav {
    padding: 1rem 1.35rem;
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.denounce-share-page__recap-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.denounce-share-page__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #166534;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.denounce-share-page__recap-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.denounce-share-page__recap-title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.denounce-share-page__recap-lead {
    margin: 0;
    line-height: 1.4;
}

.denounce-share-page__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.65rem 1.25rem;
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.denounce-share-page__meta-item {
    margin: 0;
    min-width: 0;
}

.denounce-share-page__meta-item dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.denounce-share-page__meta-item dd {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
}

.denounce-share-page__table {
    margin-top: 0.25rem;
}

.denounce-share-page__crest {
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.denounce-share-page__tier-caption {
    margin: 0.45rem 0 0;
    text-align: center;
}

@media (min-width: 540px) {
    .denounce-share-page__tier-caption {
        text-align: left;
    }
}

.denounce-share-page__crest-link {
    margin: 0.85rem 0 0;
}

.denounce-share-page__nav-label {
    margin: 0 0 0.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.denounce-share-page__nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.denounce-share-page__field {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
}

.denounce-share-page__field--link {
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.denounce-share-page__url-input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    background: #fff;
    color: var(--text);
}

.denounce-share-page__copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.denounce-page__error {
    margin: 0.75rem 0 0;
}

.denounce-page .req {
    color: var(--danger);
    font-weight: 700;
}

/* Page d’accueil — mesure deux colonnes, dialogs, icônes info */
.home-block {
    margin-top: 2.25rem;
}

.home-block--measure {
    margin-top: 0.85rem;
}

.home-block__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
}

.home-block__lead {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-block__lead-denonce {
    color: #c2410c;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.14), rgba(234, 88, 12, 0.08));
    padding: 0.05em 0.35em;
    border-radius: 0.25rem;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.panel--measure {
    max-width: var(--home-content-max);
}

.panel--rank {
    max-width: var(--home-content-max);
}

.home-measure {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .home-measure {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
        gap: 2rem;
    }
}

.home-measure__crest {
    min-width: 0;
}

.home-measure__form {
    min-width: 0;
}

.crest-result.crest-result--live {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 16rem;
    text-align: center;
    overflow: visible;
}
#crest-live-panel.crest-result--live {
    overflow: visible;
}

/* État d’attente : assez de hauteur pour le filigrane footix.png en entier */
#crest-live-panel:not(.has-measure-result) {
    min-height: clamp(24rem, 42vw, 32rem);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#crest-live-panel:not(.has-measure-result)::before {
    background-size: contain;
    background-position: center center;
}

#crest-live-panel:not(.has-measure-result) .crest-live__tail {
    margin-top: auto;
    border-top-color: transparent;
    padding-top: 0;
}

.crest-live__result {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0 0.25rem;
    width: 100%;
}

.crest-live__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    width: 100%;
}

.crest-live__coq {
    margin: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: min(100%, 15.4rem);
}

.crest-live__coq-img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
    transition: max-height 0.35s ease;
}

#crest-live-panel[data-slug="fidele"] .crest-live__coq-img,
#crest-live-panel[data-slug="local"] .crest-live__coq-img {
    max-height: 7.15rem;
}

#crest-live-panel[data-slug="sympathisant"] .crest-live__coq-img,
#crest-live-panel[data-slug="leger"] .crest-live__coq-img {
    max-height: 8.25rem;
}

#crest-live-panel[data-slug="confirme"] .crest-live__coq-img,
#crest-live-panel[data-slug="professionnel"] .crest-live__coq-img {
    max-height: 9.35rem;
}

#crest-live-panel[data-slug="elite"] .crest-live__coq-img,
#crest-live-panel[data-slug="ballon_or"] .crest-live__coq-img {
    max-height: 10.45rem;
}

#crest-live-panel[data-slug="legende"] .crest-live__coq-img {
    max-height: 11.55rem;
}

.crest-live__score-block {
    flex: 0 1 auto;
    min-width: 7rem;
    text-align: center;
}

.crest-live__score-block .crest-result__score {
    margin: 0;
}

.crest-live__score-block .crest-result__range {
    margin: 0 0 0.15rem;
}

.crest-live__result .crest-result__title {
    margin: 0.15rem 0 0;
    text-align: center;
    width: 100%;
}

.crest-live__result .crest-result__tagline {
    margin: 0 0 0.35rem;
    text-align: center;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
}

.btn--hero-measure {
    width: 100%;
    max-width: 16rem;
    padding: 0.95rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
}

.crest-live__toolbar {
    display: none !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
    width: 100%;
}
#crest-live-panel.has-measure-result .crest-live__toolbar.is-visible {
    display: flex !important;
}
#contest-btn,
#recommencer-btn {
    display: none !important;
}
#crest-live-panel.has-measure-result #recommencer-btn.is-visible {
    display: inline-flex !important;
}
#crest-live-panel.has-measure-result #contest-btn.is-available {
    display: inline-flex !important;
}
#contest-btn {
    border-color: var(--accent);
    color: var(--accent-text);
}
#contest-btn:disabled,
#contest-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.crest-live__tail {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.crest-live__publish {
    width: 100%;
    max-width: 18rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.crest-live__publish .cf-turnstile {
    display: flex;
    justify-content: center;
}

.crest-live__foot {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--accent-soft);
}

.home-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.home-section__head .home-section__title {
    margin-bottom: 0;
}

.home-section__lead {
    margin: 0 0 0.85rem;
}

.home-denonce-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 1.25rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-elevated, var(--surface));
}
.home-denonce-cta__hint {
    flex: 1 1 16rem;
    margin: 0;
    max-width: 42rem;
    line-height: 1.45;
}
.home-denonce-cta .btn--denonce-cta {
    flex: 0 0 auto;
    align-self: center;
}

.dn-tier-cell {
    min-width: 10rem;
}
.dn-tier-cell__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.dn-tier-cell .lb-tier-mark-frame {
    --tier-mark-size: 2rem;
}
.dn-tier-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.dn-tier-stack__final {
    gap: 0.5rem;
}
.dn-tier-stack__final .lb-tier-mark-frame {
    --tier-mark-size: 2.5rem;
}
.dn-tier-stack__final-label {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text, #0f172a);
}
.dn-tier-stack__initial {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.25;
    color: var(--muted, #64748b);
}

/* Infobulles (registre, etc.) */
.ui-tooltip {
    position: relative;
    display: inline-block;
    vertical-align: baseline;
}
.ui-tooltip__trigger {
    cursor: help;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
}
.ui-tooltip__trigger:focus {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}
.ui-tooltip__trigger:focus:not(:focus-visible) {
    outline: none;
}
.ui-tooltip__trigger:focus-visible {
    outline: 2px solid var(--accent, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}
.ui-tooltip__bubble {
    position: absolute;
    z-index: 40;
    left: 50%;
    bottom: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(4px);
    min-width: 10rem;
    max-width: 15rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}
.ui-tooltip__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #0f172a;
}
.ui-tooltip--below .ui-tooltip__bubble {
    bottom: auto;
    top: calc(100% + 0.45rem);
    transform: translateX(-50%) translateY(-4px);
}
.ui-tooltip--below .ui-tooltip__bubble::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #0f172a;
}
.ui-tooltip:hover .ui-tooltip__bubble,
.ui-tooltip:focus-within .ui-tooltip__bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dn-tier-stack__initial-label {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 0.15em;
    text-decoration-color: currentColor;
}

.dn-delator-score-col {
    min-width: 8.5rem;
    text-align: right;
}
.dn-delator-score__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1.15;
}
.dn-delator-score__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.25;
}
.table-simple--denouncers .dn-delator-score-col {
    vertical-align: middle;
}

#denonciations .table-wrap--denouncements {
    overflow: visible;
}
#denonciations .table-wrap--denouncements .table-simple {
    overflow: visible;
}

.stats-kpis--inline {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tabs--compact {
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.app-dialog {
    width: min(40rem, calc(100vw - 1.25rem));
    max-height: min(88vh, 42rem);
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    box-shadow: none;
}

.app-dialog--echelle {
    width: min(22rem, calc(100vw - 1rem));
    max-height: min(90vh, 40rem);
}

.app-dialog--echelle .app-dialog__inner {
    max-height: inherit;
}

.app-dialog--echelle .app-dialog__title {
    font-size: 1.15rem;
}

.app-dialog--echelle .app-dialog__body {
    flex: 1;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.app-dialog__inner {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    max-height: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.app-dialog__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-dialog__body {
    padding: 1rem 1.1rem 1.15rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.prose-small {
    font-size: 0.92rem;
    line-height: 1.55;
}

.prose-small p {
    margin: 0 0 0.65rem;
}

.prose-small p:last-child {
    margin-bottom: 0;
}

.detail-dl {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    margin: 0;
    font-size: 0.92rem;
}

.detail-dl dt {
    margin: 0;
    font-weight: 600;
    color: var(--muted);
}

.detail-dl dd {
    margin: 0;
    word-break: break-word;
}

.tier-list--dialog {
    max-height: min(78vh, 44rem);
    overflow-y: auto;
    padding-right: 0.35rem;
    margin: 0;
    padding-left: 1.15rem;
}

.app-dialog--echelle .tier-list--dialog .tier-card {
    padding: 1.05rem 1.2rem;
}

.app-dialog--echelle .tier-list--compact .tier-card__title {
    font-size: 1.12rem;
}

.tier-list--dialog .tier-card {
    margin-bottom: 0.65rem;
}

.tier-list--dialog .tier-card:last-child {
    margin-bottom: 0;
}

/* Échelle footix — aperçu modal */
.tier-scale-dialog {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.tier-scale-dialog__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.85rem 1rem 0.65rem;
}

.tier-scale-dialog__lead {
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.tier-scale-mini-group {
    margin: 0 0 0.85rem;
}

.tier-scale-mini-group:last-child {
    margin-bottom: 0;
}

.tier-scale-mini-group--footix {
    padding: 0.55rem 0.5rem 0.15rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(200, 16, 46, 0.05), transparent);
    border: 1px solid rgba(200, 16, 46, 0.12);
}

.tier-scale-mini-group__title {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.tier-scale-mini-group--footix .tier-scale-mini-group__title {
    color: var(--fr-rouge, #c8102e);
}

.tier-scale-mini {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tier-scale-mini__item {
    display: grid;
    grid-template-columns: 1.4rem 2.4rem minmax(0, 1fr) auto;
    gap: 0.4rem 0.55rem;
    align-items: center;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
}

.tier-scale-mini__item--footix {
    border-left: 3px solid var(--fr-rouge, #c8102e);
    background: #fff;
}

.tier-scale-mini__level {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-text);
    background: var(--accent-soft);
}

.tier-scale-mini__item--footix .tier-scale-mini__level {
    color: var(--fr-rouge, #c8102e);
    background: rgba(200, 16, 46, 0.1);
}

.tier-scale-mini__mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-scale-mini__img {
    --tier-mark-size: 2.15rem;
}

.tier-scale-mini__title {
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.tier-scale-mini__range {
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
}

.tier-scale-dialog__foot {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.tier-scale-dialog__foot .btn--wide {
    width: 100%;
    justify-content: center;
}

.tier-scale-dialog__foot-note {
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.tier-scale-dialog__foot-note a {
    font-weight: 600;
}

/* Échelle footix — page SEO */
.tier-list--scale {
    margin-top: 0.75rem;
}

.tier-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.2rem;
}

.tier-card__level {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.tier-card__badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.tier-card__badge--local {
    background: var(--accent-soft);
    color: var(--accent-text);
}

.tier-card--footix {
    border-left-color: var(--fr-rouge, #c8102e);
}

/* V2 multi-résidences */
.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 0;
}
.form-section legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0 0.35rem;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
}
.form-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
}
.calc-form__club-field {
    display: grid;
    gap: 0.5rem;
}
.calc-form__club-field .address-picker__control {
    width: 100%;
}
.residence-birth .address-picker {
    border: none;
    padding: 0;
    margin: 0;
}
/* Jamais de durée / case actuelle dans l’encart naissance */
.residence-birth .years-slider,
.residence-birth .residence-current,
.residence-birth .js-residence-years,
.residence-birth input[type="number"],
.residence-birth input[type="range"] {
    display: none !important;
}
.residence-city-readonly {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--accent-soft, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.35rem;
}
.residence-city-readonly__badge {
    font-size: 1.25rem;
    line-height: 1;
}
.residence-city-readonly__name {
    font-weight: 600;
}
.residence-row--birth .years-slider {
    margin-top: 0.5rem;
}
.years-slider {
    flex: 1 1 100%;
    min-width: min(100%, 280px);
    padding: 0.5rem 0 0.25rem;
}
.years-slider__label {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.years-slider__value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-text);
    min-width: 2ch;
    text-align: center;
}
.years-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) var(--range-pct, 25%),
        var(--border) var(--range-pct, 25%),
        var(--border) 100%
    );
    cursor: pointer;
}
.years-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.years-slider input[type="range"]::-moz-range-thumb {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.years-slider__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--muted);
    padding: 0 0.1rem;
}
.residence-row__meta {
    flex-direction: column;
    align-items: stretch;
}
.residence-row__meta .residence-current {
    align-self: flex-start;
    margin-top: 0.25rem;
}
.residence-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.residence-item:last-child .residence-row {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.residence-row .address-picker {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.residence-current {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-size: 0.9rem;
}
.residences-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

/* Ligne de résidence en cours de saisie */
.residence-item[data-state="draft"] {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
}
.residence-item[data-state="draft"] .residence-row {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.residence-draft[hidden] {
    display: none !important;
}
.residence-item[data-state="locked"] .residence-draft {
    display: none !important;
}
.residence-draft {
    padding: 0.75rem 0.85rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.residence-global-actions {
    margin-top: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent-soft), var(--bg-elevated));
}
.residence-global-actions[hidden] {
    display: none !important;
}
.residence-field {
    min-width: 0;
}
.residence-field--years {
    padding-top: 0.15rem;
}
.residence-step__picker,
.residence-field .address-picker {
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
}
.residence-city-readonly--pending {
    border-color: var(--border);
    border-style: dashed;
    background: var(--bg);
    color: var(--muted);
}
.residence-city-readonly:not(.residence-city-readonly--pending) {
    border-color: var(--border);
    background: var(--bg);
}

/* —— Lignes validées : discret —— */
.residence-item[data-state="locked"] {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    opacity: 0.92;
}
.residence-item[data-state="locked"] .residence-row {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.residence-item .btn-remove {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}
.residence-locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
}
.residence-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.residence-summary__city {
    font-weight: 600;
    color: var(--text);
}
.residence-summary__years {
    color: var(--muted);
}
.residence-summary__badge {
    color: var(--accent-text);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Boutons d’action (étape 3) */
.residence-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: 0;
}
.residence-actions--single {
    grid-template-columns: 1fr;
}
.residence-actions__btn {
    font-size: 0.9rem;
    padding: 0.65rem 0.55rem;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    min-height: 2.75rem;
}
.residence-actions__btn--secondary {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--bg-elevated);
}
.residence-actions__btn--secondary:hover {
    background: var(--accent-soft);
}
.residence-first-hint {
    margin: 0 0 0.25rem;
}
.address-picker__clear,
.js-club-clear {
    display: none !important;
}
.result-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.result-section__title {
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
}
.residences-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}
.residences-timeline__item {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}
.residences-timeline__item:last-child {
    border-bottom: none;
}
.breakdown-dl__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--border);
}
.breakdown-dl__row:last-child {
    border-bottom: none;
}
.breakdown-dl__row--warning dt,
.breakdown-dl__row--warning dd {
    color: var(--accent-warm, #c45c26);
}
.breakdown-dl dt {
    margin: 0;
    font-weight: 400;
    color: var(--muted);
}
.breakdown-dl dd {
    margin: 0;
    font-weight: 600;
}

.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin: 0 0 0.35rem; }

.admin-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
    margin: 0;
}
.admin-stats__grid > div { margin: 0; }
.admin-stats__grid dt { font-size: 0.85rem; color: var(--muted); margin: 0; }
.admin-stats__grid dd { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 700; }

.admin-section { margin-top: 1.5rem; }

/* Administration — navigation et pages découpées */
.admin-shell {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.admin-shell__head {
    margin-bottom: 0.75rem;
}

.admin-shell__back {
    margin: 0 0 0.35rem;
}

.admin-shell__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

/* Pleine largeur du conteneur admin (évite le .panel à 720px collé à gauche) */
.container--admin .panel,
.admin-shell .panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.admin-shell__head.page-head--wide {
    max-width: none;
    width: 100%;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted, #64748b);
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.admin-nav__link:hover {
    color: var(--text, #0f172a);
    background: #e2e8f0;
    text-decoration: none;
}

.admin-nav__link.is-active {
    color: #fff;
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
}

.admin-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
}

.nav__admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    margin-left: -0.15rem;
    padding: 0 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
    vertical-align: super;
}

.admin-panel {
    margin: 0;
    padding: 1rem 1.15rem;
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

.admin-panel--empty {
    text-align: center;
    padding: 1.5rem;
}

.admin-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.admin-stats__grid--compact dd {
    font-size: 0.95rem;
}

.admin-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.65rem;
}

.admin-hub__card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-hub__card:hover {
    border-color: var(--accent, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
    text-decoration: none;
}

.admin-hub__label {
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-top-paths {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-top-paths li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.admin-top-paths li:last-child {
    border-bottom: none;
}

.admin-path-link {
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.admin-path-link:hover,
.admin-path-link:focus-visible {
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-path-link code {
    color: inherit;
}

.admin-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-queue__item {
    padding: 1rem 1.15rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-queue__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.admin-queue__pseudo {
    font-size: 1.05rem;
}

.admin-queue__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0.45rem 1rem;
    margin: 0 0 0.85rem;
}

.admin-queue__facts > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-queue__facts dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.admin-queue__facts dd {
    margin: 0;
    font-size: 0.875rem;
}

.admin-queue__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-queue__form {
    margin: 0;
}

.table-wrap--admin {
    overflow-x: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
}

.admin-table--compact th,
.admin-table--compact td {
    padding: 0.52rem 0.65rem;
    font-size: 0.85rem;
}

.admin-table__path {
    word-break: break-all;
    font-size: 0.82rem;
}

.admin-detail {
    margin: 0;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th,
.admin-table td { padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border); text-align: left; }
.admin-table th { font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.table-wrap--admin .admin-table { min-width: 980px; }
.admin-table td { vertical-align: top; line-height: 1.35; }
.admin-table__cell--wide { min-width: 16rem; white-space: normal; }
.admin-table__cell--hash { min-width: 13rem; }
.admin-table__cell--hash code { word-break: break-all; }
.admin-table__cell--actions { min-width: 12rem; }
.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
}
.admin-table__actions .admin-inline-form { margin: 0; }
.admin-table__sort {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}
.admin-table__sort:hover { text-decoration: underline; }
.admin-table__sort.is-active { color: var(--text); }
.admin-table__row--warn { background: rgba(254, 226, 226, 0.35); }
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.admin-filters__field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 10rem; }
.admin-filters__label { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.admin-filters__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}
.admin-detail-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    width: 100%;
}
@media (min-width: 960px) {
    .admin-detail-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.85fr);
        align-items: start;
    }
}
@media (min-width: 1200px) {
    .admin-detail-layout--denouncement {
        grid-template-columns: minmax(0, 1.5fr) minmax(22rem, 0.75fr);
    }
}
.admin-detail-layout__main,
.admin-detail-layout__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.admin-form__row {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .admin-form__row { grid-template-columns: 1fr 1fr; }
}
.admin-form__actions { margin-top: 0.5rem; }
.admin-detail--toolbar { margin-bottom: 1rem; }
.rmc-transcript {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    max-height: 28rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    font-size: 0.9rem;
}
.rmc-transcript__line {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--border);
}
.rmc-transcript__line:last-child { border-bottom: none; }
.rmc-transcript__line.is-highlight {
    background: rgba(254, 243, 199, 0.55);
    font-weight: 600;
}
.admin-email-detail__error { margin: 1rem 0; }
.admin-email-detail__error-text {
    margin: 0.5rem 0 0;
    white-space: pre-wrap;
    font-size: 0.85rem;
    overflow-x: auto;
}
.admin-email-preview-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background: #fff;
}
.admin-email-preview {
    display: block;
    width: 100%;
    min-height: 28rem;
    border: 0;
    background: #fff;
}
.admin-email-source { margin-top: 1rem; }
.admin-email-source__code {
    margin-top: 0.5rem;
    max-height: 16rem;
    overflow: auto;
    font-size: 0.75rem;
    padding: 0.75rem;
    background: var(--surface, #f8fafc);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.admin-detail--grid {
    display: grid;
    gap: 0.75rem 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    margin-bottom: 1.25rem;
}
.table-scroll { overflow-x: auto; }
.nowrap { white-space: nowrap; }

.crest-list { list-style: none; padding: 0; margin: 0; }
.crest-list__item { border-bottom: 1px solid var(--border); }
.crest-list__item:last-child { border-bottom: none; }
.crest-list__link { display: block; text-decoration: none; color: inherit; }
.crest-list__link:hover { background: var(--accent-soft); text-decoration: none; }
.crest-list__label { display: block; font-weight: 600; }
.crest-list__meta { display: block; margin-top: 0.25rem; }
.crest-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
}
.crest-list__item--published { background: rgba(34, 197, 94, 0.06); }
.crest-list__main { flex: 1; min-width: 12rem; }
.crest-list__link { padding: 0; }
.crest-list__actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.crest-list__publish-form { margin: 0; }
.crest-list__published-hint { margin-bottom: 1rem; }

/* Page détail crête (compte) */
.account-crest-detail {
    max-width: var(--home-content-max);
    margin-inline: auto;
}

.account-crest-detail__head {
    margin-bottom: 1rem;
}

.account-crest-detail__back {
    margin: 0 0 0.5rem;
}

.account-crest-detail__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.account-crest-detail__title-row h1 {
    margin: 0;
}

.account-crest-detail__date {
    margin: 0.35rem 0 0;
}

.account-crest-detail__card.panel {
    max-width: none;
    margin-inline: 0;
    padding: 1.25rem 1.35rem;
}

.account-crest-detail__hero {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.account-crest-detail__score-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.account-crest-detail__score {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.account-crest-detail__score-unit {
    font-size: 1rem;
    font-weight: 500;
}

.account-crest-detail__tier .lb-tier-cell {
    gap: 0.55rem;
}

.account-crest-detail__facts {
    display: grid;
    grid-template-columns: minmax(6.5rem, 9rem) 1fr;
    gap: 0.5rem 1.25rem;
    margin: 0 0 1.15rem;
    padding: 0;
}

.account-crest-detail__fact {
    display: contents;
}

.account-crest-detail__fact dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.account-crest-detail__fact dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.account-crest-detail__section {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.account-crest-detail__section-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.account-crest-detail__residences {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.account-crest-detail__residence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.account-crest-detail__residence-city {
    font-weight: 600;
}

.account-crest-detail__residence-years {
    font-size: 0.875rem;
}

.account-crest-detail__rename-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem;
    margin: 0;
    max-width: 32rem;
}

.account-crest-detail__rename-label {
    flex: 1 1 14rem;
    margin: 0;
    min-width: 0;
}

.account-crest-detail__rename-label input {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.5rem 0.65rem;
    font: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    box-sizing: border-box;
}

.account-crest-detail__rename-label input:focus {
    outline: 2px solid var(--accent-soft);
    border-color: var(--accent);
}

.account-crest-detail__footer {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.account-crest-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.85rem;
}

.account-crest-detail__publish-form,
.account-crest-detail__delete-form {
    margin: 0;
}

.account-crest-detail__delete-form {
    padding-top: 0.15rem;
}

@media (max-width: 520px) {
    .account-crest-detail__card.panel {
        padding: 1rem;
    }

    .account-crest-detail__facts {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .account-crest-detail__fact dt {
        margin-top: 0.35rem;
    }

    .account-crest-detail__fact:first-child dt {
        margin-top: 0;
    }

    .account-crest-detail__score-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

.page-head--wide,
.account-section {
    max-width: var(--home-content-max);
    margin-inline: auto;
}

/* Mes défis envoyés — cartes (lisible desktop + mobile) */
.challenge-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.challenge-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.challenge-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.06), transparent);
}

.challenge-card__identity {
    min-width: min(100%, 12rem);
    flex: 1 1 10rem;
}

.challenge-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.challenge-card__date {
    margin: 0.2rem 0 0;
}

.challenge-card__head-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 0.75rem;
    flex: 0 1 auto;
    max-width: 100%;
}

.challenge-card__score {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
}

.challenge-card__score-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.challenge-card__score strong {
    font-size: 1.15rem;
    line-height: 1.2;
}

.challenge-card__grid {
    margin: 0;
    padding: 0.65rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 0.55rem 1.25rem;
}

.challenge-card__field {
    margin: 0;
    min-width: 0;
}

.challenge-card__field--wide {
    grid-column: 1 / -1;
}

.challenge-card__field dt {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.challenge-card__field dd {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
}

.challenge-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1.5rem;
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid var(--border);
    background: rgba(248, 250, 252, 0.65);
}

.challenge-card__foot-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.challenge-card__tier,
.challenge-card__response {
    flex: 1 1 12rem;
    min-width: min(100%, 12rem);
}

.challenge-card__tier .lb-tier-cell {
    max-width: none;
}

.challenge-card__response-value {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.challenge-card__response-value strong {
    font-size: 1.05rem;
}

@media (min-width: 640px) {
    .challenge-card__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .challenge-card__field--wide {
        grid-column: auto;
    }

    .challenge-card__foot {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: start;
    }
}

@media (min-width: 900px) {
    .challenge-card__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.account-callout {
    max-width: var(--home-content-max);
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.account-callout--warn {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.account-crests__row--published {
    background: rgba(34, 197, 94, 0.06);
}

/* Ma crête — hors tableau */
.account-my-crest {
    max-width: var(--home-content-max);
    margin: 0 auto 1.5rem;
    padding: 1.25rem 1.35rem 1.1rem;
    border: 2px solid var(--fr-bleu);
    border-radius: var(--radius);
    background: linear-gradient(
        145deg,
        rgba(29, 78, 216, 0.14) 0%,
        rgba(37, 99, 235, 0.05) 42%,
        var(--bg-elevated) 100%
    );
    box-shadow: 0 4px 18px rgba(29, 78, 216, 0.12);
    position: relative;
    overflow: hidden;
}

.account-my-crest::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--fr-bleu), #60a5fa);
}

.account-my-crest__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0.35rem;
}

.account-my-crest__title {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fr-bleu);
}

.account-my-crest__subtitle {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--text);
}

.account-my-crest__hint {
    margin: 0;
    max-width: 22rem;
}

.account-my-crest__score-block {
    text-align: right;
    flex-shrink: 0;
}

.account-my-crest__score-label {
    margin: 0 0 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.68rem;
    font-weight: 600;
}

.account-my-crest__score {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--fr-bleu);
}

.account-my-crest__tier {
    margin-top: 0.45rem;
    display: flex;
    justify-content: flex-end;
}

.account-my-crest__tier .lb-tier-cell {
    flex-direction: row-reverse;
}

.account-my-crest__facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0.85rem 0 0 0.35rem;
    border-top: 1px solid rgba(29, 78, 216, 0.15);
}

.account-my-crest__fact {
    margin: 0;
    min-width: 0;
}

.account-my-crest__fact dt {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.account-my-crest__fact dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.account-my-crest__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.85rem 0 0 0.35rem;
    border-top: 1px solid rgba(29, 78, 216, 0.12);
}

.account-my-crest__form {
    margin: 0;
    display: inline;
}

.account-crests-list__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.account-crests-list__lead {
    margin: 0 0 1rem;
}

@media (max-width: 540px) {
    .account-my-crest__head {
        flex-direction: column;
    }

    .account-my-crest__score-block {
        text-align: left;
        width: 100%;
    }

    .account-my-crest__tier {
        justify-content: flex-start;
    }

    .account-my-crest__tier .lb-tier-cell {
        flex-direction: row;
    }
}

.table-wrap--account-crests {
    overflow-x: auto;
    overflow-y: visible;
}

.table-simple--account-crests {
    font-size: 0.8125rem;
}

.table-simple--account-crests th,
.table-simple--account-crests td {
    padding: 0.45rem 0.5rem;
    vertical-align: middle;
}

.table-simple--account-crests tr:has(.row-menu[open]) {
    position: relative;
    z-index: 3;
}

.table-simple--account-crests td.lb-col-tier {
    vertical-align: middle;
}

.table-simple--account-crests .lb-tier-cell {
    gap: 0.45rem;
    max-width: 11rem;
}

.table-simple--account-crests .lb-tier-mark-wrap {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    background: transparent;
}

.table-simple--account-crests .lb-tier-mark-frame {
    width: 100%;
    height: 100%;
}

.table-simple--account-crests .lb-tier-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

.table-simple--account-crests .lb-col-name {
    min-width: 6.5rem;
    max-width: 12rem;
}

.account-crests__label {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-crests__status,
.account-crests__status-muted {
    display: block;
    margin-top: 0.2rem;
}

.table-simple--account-crests .lb-col-menu {
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    padding-left: 0.25rem;
    padding-right: 0.35rem;
    text-align: center;
    white-space: nowrap;
}

.account-crests__menu-meta {
    display: none;
}

@media (max-width: 899px) {
    .table-simple--account-crests .account-crests__col-extra {
        display: none;
    }

    .account-crests__menu-meta {
        display: block;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--border);
    }

    .row-menu__meta-line {
        margin: 0.15rem 0;
    }

    .row-menu__meta-line span {
        font-weight: 600;
        margin-right: 0.35rem;
    }

    .table-simple--account-crests .lb-tier-label {
        display: none;
    }

    .table-simple--account-crests .lb-tier-cell {
        max-width: 2.75rem;
    }
}

/* Menu d’actions par ligne (compte crêtes, etc.) */
.row-menu {
    position: relative;
    display: inline-block;
    text-align: left;
}

.row-menu__trigger {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted, #64748b);
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    user-select: none;
}

.row-menu__trigger::-webkit-details-marker {
    display: none;
}

.row-menu__trigger::marker {
    content: '';
}

.row-menu__trigger:hover,
.row-menu[open] > .row-menu__trigger {
    color: var(--text, #0f172a);
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.row-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 20;
    min-width: 11.5rem;
    max-width: min(18rem, 85vw);
    padding: 0.3rem 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.row-menu__panel--floating {
    position: fixed;
    right: auto;
    top: auto;
    z-index: 10050;
    margin: 0;
}

.row-menu__link,
.row-menu__action {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    color: var(--text, #0f172a);
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.row-menu__link:hover,
.row-menu__action:hover {
    background: #f1f5f9;
}

.row-menu__action--primary {
    font-weight: 600;
    color: var(--accent-text, #1d4ed8);
}

.row-menu__form {
    margin: 0;
}

.admin-inline-form {
    display: inline-block;
    margin: 0 0 0 0.35rem;
    vertical-align: middle;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.admin-user-actions .admin-inline-form {
    margin: 0;
}

.admin-detail__spaced {
    margin-top: 0.75rem;
}
.admin-detail__reset-form {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.admin-detail__reset-hint {
    margin: 0.5rem 0 0;
    max-width: 42rem;
}
.btn--small { font-size: 0.85rem; padding: 0.4rem 0.75rem; }

.crest-detail__residences {
    margin: 0;
    padding-left: 1.25rem;
}

.btn--danger { color: var(--danger); border-color: var(--danger); }
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    margin-left: 0.35rem;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-text);
}

.crest-live__publish { display: flex; flex-direction: column; gap: 0.5rem; }
.crest-live__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.crest-live__actions--panel {
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    flex-shrink: 0;
}
.crest-live__actions--panel[hidden] {
    display: none !important;
}
.crest-live__actions-msg {
    margin: 0;
}
.crest-live__turnstile { margin-bottom: 0.25rem; }
.crest-list__rename-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.crest-list__rename-label { flex: 1; min-width: 10rem; margin: 0; }
.crest-list__name-input {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg-elevated);
}
.crest-list__name-input:focus {
    outline: 2px solid var(--accent-soft);
    border-color: var(--accent);
}
.status-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.25;
}

.table-simple--denouncements th:last-child,
.table-simple--denouncements td:last-child {
    min-width: 6.75rem;
    white-space: nowrap;
}

.place-cell {
    cursor: help;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.15s ease;
}

.place-cell:hover,
.place-cell:focus-visible {
    border-bottom-color: var(--muted);
}
.status-badge--pending { background: #fef3c7; color: #92400e; }
.status-badge--accepted { background: #dcfce7; color: #166534; }
.status-badge--contested { background: #ccfbf1; color: #0f766e; }
.status-badge--not_assuming { background: #e0e7ff; color: #3730a3; }
.status-badge--sent { background: #dcfce7; color: #166534; }
.status-badge--failed { background: #fee2e2; color: #991b1b; }
.challenge-recap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.challenge-recap__title {
    margin: 0;
    font-size: 1.15rem;
}
.challenge-recap__lead {
    margin: 0;
}
.challenge-recap__score {
    padding: 1.35rem 1.5rem 1.5rem;
    background: linear-gradient(145deg, var(--accent-soft, rgba(37, 99, 235, 0.08)) 0%, transparent 62%);
}
.challenge-recap__showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem 2rem;
}
.challenge-recap__score-main {
    flex: 1 1 11rem;
    min-width: 0;
    text-align: center;
}
.challenge-recap__score-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.challenge-recap__score-value {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent-text, #1d4ed8);
}
.challenge-recap__score-unit {
    font-size: 0.42em;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 0.88;
}
.challenge-recap__tier {
    margin: 0.55rem 0 0;
    display: flex;
    justify-content: center;
}
.challenge-recap__tier .lb-tier-cell {
    gap: 0.55rem;
    align-items: center;
}
.challenge-recap__tier .lb-tier-mark-wrap {
    width: 3.15rem;
    height: 3.15rem;
}
.challenge-recap__tier .tier-mark-frame,
.challenge-recap__tier .lb-tier-mark-frame {
    --tier-mark-size: 50px;
}
.challenge-recap__tier .lb-tier-label {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
}
.challenge-recap__coq {
    flex: 0 1 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: min(100%, 16rem);
    margin: 0 auto;
}
.challenge-recap__coq-img {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.16));
}
.challenge-recap__score[data-slug="fidele"] .challenge-recap__coq-img,
.challenge-recap__score[data-slug="local"] .challenge-recap__coq-img {
    max-height: 9.5rem;
}
.challenge-recap__score[data-slug="sympathisant"] .challenge-recap__coq-img,
.challenge-recap__score[data-slug="leger"] .challenge-recap__coq-img {
    max-height: 10.75rem;
}
.challenge-recap__score[data-slug="confirme"] .challenge-recap__coq-img,
.challenge-recap__score[data-slug="professionnel"] .challenge-recap__coq-img {
    max-height: 12rem;
}
.challenge-recap__score[data-slug="elite"] .challenge-recap__coq-img,
.challenge-recap__score[data-slug="ballon_or"] .challenge-recap__coq-img {
    max-height: 13.25rem;
}
.challenge-recap__score[data-slug="legende"] .challenge-recap__coq-img {
    max-height: 14.5rem;
}
@media (min-width: 540px) {
    .challenge-recap__showcase {
        justify-content: space-between;
        align-items: center;
    }
    .challenge-recap__score-main {
        text-align: left;
    }
    .challenge-recap__tier {
        justify-content: flex-start;
    }
    .challenge-recap__coq {
        margin: 0;
        order: 2;
    }
    .challenge-recap__score-main {
        order: 1;
    }
}
.challenge-recap__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.challenge-page__calc { margin-top: 1rem; }
.challenge-page__measure-hint { margin: 0 0 0.75rem; }
.challenge-page__submit { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.challenge-page__submit .challenge-action--pre-footix:not(.challenge-action--visible),
.challenge-page__submit .challenge-action--footix:not(.challenge-action--visible) {
    display: none !important;
}
.challenge-page__footix-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.challenge-page__admit-hint {
    margin: -0.15rem 0 0.35rem;
    line-height: 1.35;
}
.challenge-page__footix-actions.challenge-action--visible {
    display: flex;
}
.challenge-admit-dialog {
    max-width: 28rem;
    border: none;
    border-radius: var(--radius, 12px);
    padding: 1.25rem;
}
.challenge-admit-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}
.challenge-admit-dialog__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.challenge-admit-dialog__intro {
    margin: 0 0 0.5rem;
    line-height: 1.45;
}
.challenge-admit-dialog__label {
    display: block;
    margin: 1rem 0;
}
.challenge-admit-dialog__label .muted.small {
    display: block;
    margin-top: 0.35rem;
}
.challenge-admit-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.challenge-admit-dialog__actions--stack {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.25rem;
}
.challenge-admit-dialog__actions--stack .btn--wide {
    width: 100%;
}
.challenge-admit-dialog__account {
    margin: 1rem 0 0.5rem;
    padding: 0.85rem 0.9rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--surface-elevated, rgba(248, 250, 252, 0.6));
}
.challenge-admit-dialog__account-legend {
    padding: 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #64748b);
}
.challenge-admit-dialog__account-lead {
    margin: 0.35rem 0 0.75rem;
    line-height: 1.4;
}

.challenge-success {
    max-width: 40rem;
    margin-inline: auto;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: var(--radius, 12px);
    border: 1px solid #86efac;
    background: linear-gradient(165deg, #ecfdf5 0%, var(--bg-elevated, #fff) 42%);
    box-shadow: 0 4px 24px rgba(22, 101, 52, 0.1);
}
.challenge-success__hero {
    text-align: center;
    margin-bottom: 1.15rem;
}
.challenge-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: #166534;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(22, 101, 52, 0.35);
}
.challenge-success__title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.challenge-success__lead {
    margin: 0 auto;
    max-width: 34ch;
    font-size: 0.95rem;
    line-height: 1.45;
}
.challenge-success__result {
    text-align: center;
    margin: 0 0 1.25rem;
    padding: 1rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(134, 239, 172, 0.6);
}
.challenge-success__score {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #14532d;
    line-height: 1.1;
}
.challenge-success__score-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
}
.challenge-success__meta {
    margin: 0.5rem 0 0.65rem;
}
.challenge-success__tier {
    display: flex;
    justify-content: center;
}
.challenge-success__nav-label {
    margin: 0 0 0.65rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.challenge-success__links {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 520px) {
    .challenge-success__links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.challenge-success__link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg, #fff);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.challenge-success__link:hover {
    border-color: var(--accent, #2563eb);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}
.challenge-success__link--primary {
    border-color: #2563eb;
    background: linear-gradient(160deg, #3b82f6, #2563eb);
    color: #fff;
    grid-column: 1 / -1;
}
.challenge-success__link--primary:hover {
    border-color: #1d4ed8;
    color: #fff;
    filter: brightness(1.05);
}
.challenge-success__link--primary .challenge-success__link-desc {
    color: rgba(255, 255, 255, 0.88);
}
.challenge-success__link-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}
.challenge-success__link-desc {
    line-height: 1.3;
}

.admin-detail__grid {
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
    gap: 0.35rem 1.25rem;
}
.admin-denouncements-table .table-wrap--admin {
    width: 100%;
}
.admin-denouncement-link__actions {
    margin: 0.5rem 0 0.75rem;
}
.admin-detail__hash {
    word-break: break-all;
}
.admin-detail__subtitle { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.admin-detail__ua { word-break: break-word; font-size: 0.85rem; color: var(--muted); }
.admin-section__link { margin-left: 0.75rem; font-weight: 400; }
.admin-url-field { display: block; margin-top: 0.75rem; }
/* Pages crête publique / ma crête */
.crest-hero--showcase {
    padding: 1.25rem 1rem 1.5rem;
}

.crest-hero__banner {
    display: grid;
    grid-template-columns: minmax(9rem, 38%) 1fr;
    gap: 1rem 1.25rem;
    align-items: center;
    text-align: left;
}

.crest-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
}

.crest-hero__rooster {
    width: 100%;
    max-width: 18rem;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.15));
    transition: max-height 0.35s ease;
}

/* Coq : hauteur = colonne texte (main), sans gonfler le banner */
.crest-hero--showcase .crest-hero__banner {
    align-items: start;
}

.crest-hero--showcase .crest-hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.crest-hero--showcase .crest-hero__rooster {
    position: absolute;
    inset: 0.35rem 0.2rem;
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100% - 0.4rem);
    max-height: calc(100% - 0.7rem);
    margin: auto;
    object-fit: contain;
    object-position: bottom center;
}

.crest-hero__score-row {
    display: flex;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin: 0.15rem 0 0.5rem;
    flex-wrap: wrap;
}

.crest-hero__tier-mark {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.crest-hero__tier-lg-frame {
    --tier-mark-size: 4.75rem;
}

.crest-hero__main {
    min-width: 0;
}

.crest-hero__display-name {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent-text);
}

.crest-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.35rem 0.85rem;
    margin: 0 0 0.75rem;
    padding: 0;
}

.crest-hero__fact {
    margin: 0;
}

.crest-hero__fact dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
}

.crest-hero__fact dd {
    margin: 0.1rem 0 0;
    font-weight: 600;
    font-size: 0.92rem;
}

.crest-hero--showcase .crest-hero__range {
    text-align: left;
    margin: 0 0 0.35rem;
}

.crest-hero--showcase .crest-hero__score-row {
    justify-content: flex-start;
}

.crest-hero--showcase .crest-hero__title,
.crest-hero--showcase .crest-hero__tag {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 540px) {
    .crest-hero__banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .crest-hero__facts,
    .crest-hero--showcase .crest-hero__range,
    .crest-hero--showcase .crest-hero__score-row,
    .crest-hero--showcase .crest-hero__title,
    .crest-hero--showcase .crest-hero__tag {
        text-align: center;
        justify-content: center;
    }
}

.crest-hero--showcase .crest-hero__score--flash {
    font-size: clamp(2rem, 7vw, 3rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em;
    line-height: 0.95;
    background: linear-gradient(135deg, var(--crest-tier-color, var(--accent)), #0f172a 55%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: none !important;
    animation: crest-score-pulse 2.8s ease-in-out infinite;
}

.crest-hero__score-unit {
    display: block;
    font-size: 0.28em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 0.15em;
}

@keyframes crest-score-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.08); }
}

.timeline {
    position: relative;
    margin: 1.5rem 0;
    padding: 0.75rem 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 0.85rem 0;
    gap: 1rem;
}

.timeline-dot {
    height: 2.5rem;
    border-radius: 1.25rem;
    flex-shrink: 0;
    min-width: 1.25rem;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.timeline-label {
    font-size: 0.92rem;
    line-height: 1.45;
}

.timeline-label .percentage {
    font-weight: 700;
    color: var(--crest-tier-color, var(--accent));
}

.timeline-label .years {
    color: var(--muted);
}

.timeline-label .current {
    display: inline-block;
    margin-left: 0.35rem;
    background: var(--crest-tier-color, var(--accent));
    color: #fff;
    padding: 0.12rem 0.5rem;
    border-radius: 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.timeline-badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.78rem;
    padding: 0.1rem 0.45rem;
    border-radius: 0.5rem;
    background: var(--fr-bleu-soft);
    color: var(--accent-text);
}

.crest-social-proof {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--fr-bleu-soft), #fff);
    border: 1px solid var(--border);
}

.crest-social-proof__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.crest-social-proof__item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.crest-social-proof__value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--accent-text);
    line-height: 1.1;
}

.crest-social-proof__label {
    font-size: 0.85rem;
    color: var(--muted);
}

.crest-comparison {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.crest-comparison__line {
    margin: 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.crest-comparison__line--footix {
    color: var(--accent-text);
}

.crest-comparison__line--loyal {
    color: #475569;
}

.crest-share {
    margin: 1.5rem 0;
}

.crest-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.crest-share__btn--twitter {
    background: #0f1419;
    color: #fff;
    border-color: #0f1419;
}

.crest-share__btn--whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #1da851;
}

.crest-share__field {
    margin-top: 0.5rem;
}

.breakdown-dl__subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

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

.breakdown-residences__item {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.breakdown-residences__item:last-child {
    border-bottom: none;
}

.result-details summary {
    cursor: pointer;
    list-style: none;
}

.result-details summary::-webkit-details-marker {
    display: none;
}

.account-crest-detail__card .crest-hero--showcase {
    margin: 0 0 1rem;
    border: none;
    box-shadow: none;
    background: linear-gradient(165deg, var(--accent-soft), #fff);
}

.admin-url-field__input {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    font-family: ui-monospace, monospace;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}
.admin-json-block { margin-top: 0.75rem; }
.admin-json-block summary { cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; }
.admin-json-block__pre {
    margin: 0;
    padding: 1rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: var(--radius);
    font-size: 0.8rem;
    line-height: 1.45;
    overflow-x: auto;
    max-height: 32rem;
}
.admin-explanation {
    margin: 0;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
