:root {
    --bg: #041f1a;
    --bg-soft: #092a24;
    --panel: rgba(4, 31, 26, 0.88);
    --panel-2: rgba(7, 40, 33, 0.92);
    --line: rgba(203, 164, 92, 0.38);
    --gold: #d9b16b;
    --gold-strong: #efc87f;
    --gold-soft: rgba(217, 177, 107, 0.16);
    --text: #f4eedf;
    --text-soft: #c7c0af;
    --green-soft: #5f8b58;
    --green-strong: #7faa61;
    --danger: #b98a45;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(19, 88, 72, 0.24), transparent 34%),
        radial-gradient(circle at top right, rgba(179, 132, 54, 0.13), transparent 30%),
        linear-gradient(180deg, #041b17 0%, #031411 100%);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 22px auto;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(5, 30, 25, 0.98), rgba(3, 20, 17, 0.98));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.site-header,
.site-footer {
    padding: 18px 30px;
    border-bottom: 1px solid rgba(203, 164, 92, 0.16);
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.site-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.site-header-top {
    position: relative;
    min-height: 56px;
}

.brand-logo {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.site-title-link {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: calc(100% - 160px);
    text-align: center;
}

.site-title-brand {
    gap: 12px;
    text-decoration: none;
}

.site-title-brand .brand-mark {
    flex: 0 0 auto;
}

.site-title-text {
    display: block;
    text-align: left;
    white-space: nowrap;
}

.site-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(203, 164, 92, 0.16);
    border-bottom: 0;
    justify-content: center;
    gap: 28px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(217, 177, 107, 0.08);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text,
.hero-copy h1,
.section-title,
.highlight-name,
.kpi-value,
.result-heading,
.login-panel h1 {
    font-family: Georgia, 'Times New Roman', serif;
}

.brand-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    padding: 10px 16px !important;
    min-height: 44px;
    font-size: 0.95rem;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: 999px;
    background: rgba(217, 177, 107, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a::after {
    display: none;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(217, 177, 107, 0.12);
    border-color: rgba(217, 177, 107, 0.4);
    transform: translateY(-1px);
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px !important;
    border: 1px solid rgba(217, 177, 107, 0.45);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.14), rgba(217, 177, 107, 0.08));
}

.nav-login::after {
    display: none;
}

.nav-login-icon {
    color: var(--gold-strong);
    font-size: 0.86rem;
}

.nav-user-btn,
.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-user-btn {
    gap: 10px;
    padding: 9px 14px !important;
    max-width: min(100%, 260px);
    color: var(--text);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.18), rgba(217, 177, 107, 0.08));
    border-color: rgba(217, 177, 107, 0.42);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.nav-user-btn:hover,
.nav-user-btn.is-active {
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.24), rgba(217, 177, 107, 0.12));
    border-color: rgba(239, 200, 127, 0.6);
    color: var(--text);
    transform: translateY(-1px);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10352d;
    background: linear-gradient(180deg, var(--gold-strong), var(--gold));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.nav-user-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.nav-logout-btn {
    padding: 10px 16px !important;
    color: var(--text-soft);
    background: rgba(185, 138, 69, 0.08);
    border-color: rgba(185, 138, 69, 0.36);
}

.nav-logout-btn:hover {
    color: var(--text);
    background: rgba(185, 138, 69, 0.16);
    border-color: rgba(217, 177, 107, 0.5);
    transform: translateY(-1px);
}


.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(217, 177, 107, 0.06);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--gold);
}

.page-content {
    padding: 26px 26px 34px;
}

.grid-home {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, rgba(8, 44, 36, 0.76), rgba(5, 28, 23, 0.96));
    border: 1px solid rgba(203, 164, 92, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card-pad {
    padding: 24px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 34px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.08;
}

.hero-copy p {
    max-width: 24ch;
    color: var(--gold);
    font-size: 1.15rem;
    margin: 22px 0 0;
}

.hero-copy .accent-line {
    width: 56px;
    height: 3px;
    border-radius: 999px;
    margin-top: 22px;
    background: var(--gold);
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 390px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 27, 23, 0.98) 0%, rgba(4, 27, 23, 0.88) 43%, rgba(4, 27, 23, 0.42) 70%, rgba(4, 27, 23, 0.12) 100%);
    z-index: 1;
}

.feature-top-meta {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    max-width: min(46%, 430px);
    text-align: right;
}

.feature-top-date,
.feature-top-time,
.feature-top-code {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(217, 177, 107, 0.38);
    border-radius: 999px;
    background: rgba(4, 27, 23, 0.82);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    color: var(--gold-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.feature-top-date {
    padding: 8px 14px;
}

.feature-top-time {
    padding: 8px 12px;
    color: #fff2d6;
    background: rgba(217, 177, 107, 0.15);
    border-color: rgba(217, 177, 107, 0.48);
}

.feature-top-code {
    padding: 8px 12px;
    color: var(--gold-strong);
    background: linear-gradient(135deg, rgba(5, 76, 62, 0.98), rgba(3, 44, 37, 0.98));
    border-color: rgba(217, 177, 107, 0.72);
}

.feature-confidence-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.feature-title-meta {
    margin: -4px 0 14px;
    flex-wrap: nowrap;
    align-items: center;
}

.feature-title-meta .feature-top-date,
.feature-title-meta .feature-top-time,
.feature-title-meta .feature-top-code {
    white-space: nowrap;
}

.feature-content .feature-title-meta .feature-top-date {
    max-width: 100%;
    text-align: left;
}

.confidence-card .section-kicker {
    margin-top: 0;
}

.feature-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(62%, 520px);
    min-height: 100%;
    padding: 30px 30px 28px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.kicker-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.highlight-name {
    font-size: 2.1rem;
    line-height: 1;
    margin: 0 0 16px;
    color: var(--gold-strong);
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.meta-row {
    display: grid;
    grid-template-columns: 28px 116px 1fr;
    gap: 8px;
    align-items: center;
    color: var(--text-soft);
}

.meta-row strong {
    color: var(--text);
    font-weight: 600;
}

.meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(217, 177, 107, 0.26);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 0.82rem;
}

.btn,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
    background: linear-gradient(180deg, #e2bd7c, #c79a55);
    color: #1e1407;
}

.btn:hover,
.btn-ghost:hover {
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(217, 177, 107, 0.05);
    color: var(--text);
}

.home-bottom {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 18px;
    margin-top: 18px;
}

.home-bottom-results-only {
    grid-template-columns: 1fr;
}

.home-why-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-why-card .value-list {
    margin-top: 18px;
}

.home-why-card .section-kicker {
    align-items: center;
    flex-wrap: nowrap;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.3;
}

.home-why-card .section-kicker .kicker-box {
    flex: 0 0 20px;
}

.home-why-card .value-list li {
    align-items: flex-start;
    line-height: 1.5;
}

.home-why-card .value-icon {
    flex: 0 0 34px;
    margin-top: 0.05em;
}

.home-why-card .value-list li > span:last-child {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.section-title {
    margin: 0 0 18px;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.value-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.value-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-soft);
}

.value-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(217, 177, 107, 0.26);
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(217, 177, 107, 0.06);
}

.results-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.result-mini-card {
    position: relative;
    overflow: hidden;
    padding: 20px 18px 18px;
    border-radius: 20px;
    border: 1px solid rgba(203, 164, 92, 0.2);
    background:
        radial-gradient(circle at top center, rgba(217, 177, 107, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(11, 47, 39, 0.95), rgba(7, 30, 25, 0.98));
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.result-mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
}

.result-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 200, 127, 0.28);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.result-mini-card .date {
    font-size: 0.82rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.result-mini-card .horse-name {
    margin-top: 8px;
    font-weight: 700;
    color: var(--text);
}

.result-mini-card .track {
    margin-top: 4px;
    font-size: 0.98rem;
}


.result-mini-card .home-history-meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.result-mini-card .home-history-date {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(217, 177, 107, 0.08);
    border: 1px solid rgba(217, 177, 107, 0.18);
    color: rgba(244, 238, 223, 0.78);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.result-mini-card .home-history-horse {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: #fff7ec;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.result-mini-card .home-history-track {
    position: relative;
    z-index: 1;
    margin-top: 9px;
    color: rgba(244, 238, 223, 0.9);
    font-size: 0.99rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-mini-card .home-history-code {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 200, 127, 0.1);
    border: 1px solid rgba(239, 200, 127, 0.18);
    color: var(--gold-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-mini-card .home-history-odds {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 16px;
    padding: 13px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 9px;
}

.result-mini-card .home-history-odd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    padding: 0 2px;
}

.result-mini-card .home-history-odd-label {
    color: rgba(244, 238, 223, 0.64);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.result-mini-card .home-history-odd-value {
    color: #fff8eb;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    background: rgba(217, 177, 107, 0.2);
    color: var(--text);
}

.badge-win {
    background: rgba(111, 152, 89, 0.34);
}

.badge-place {
    background: rgba(111, 152, 89, 0.22);
}

.badge-show {
    background: rgba(201, 149, 70, 0.24);
}


.result-status-wrap {
    margin-top: 15px;
}

.result-position-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 116px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.result-position-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.result-position-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.result-position-badge.badge {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(92, 71, 39, 0.96), rgba(58, 47, 28, 0.98));
    border-color: rgba(217, 177, 107, 0.34);
    color: #f7dfb3;
}

.result-position-badge.badge-win {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(118, 172, 95, 0.98), rgba(68, 109, 53, 0.98));
    border-color: rgba(188, 233, 166, 0.24);
    color: #f7fff3;
}

.result-position-badge.badge-place {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(152, 186, 96, 0.98), rgba(90, 119, 52, 0.98));
    border-color: rgba(201, 224, 143, 0.24);
    color: #fbffef;
}

.result-position-badge.badge-show {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 58%),
        linear-gradient(180deg, rgba(224, 181, 97, 0.98), rgba(145, 103, 39, 0.98));
    border-color: rgba(246, 211, 142, 0.24);
    color: #fff8eb;
}

.result-mini-card .result-position-badge {
    max-width: 100%;
    width: auto;
}

.public-result-position.result-position-badge {
    min-width: auto;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.86rem;
}

.result-mini-card .odd {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 0.94rem;
}


.public-hero-card {
    position: relative;
    overflow: hidden;
    min-height: 390px;
}

.public-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 27, 23, 0.92) 0%, rgba(4, 27, 23, 0.60) 48%, rgba(4, 27, 23, 0.22) 100%);
    z-index: 1;
}

.public-hero-content {
    justify-content: flex-end;
    width: min(66%, 560px);
    gap: 8px;
}

.public-hero-text {
    max-width: 42ch;
    margin: 0 0 22px;
}

.hero-page {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.analysis-text {
    color: var(--text-soft);
    line-height: 1.7;
}

.confidence-box {
    display: flex;
    align-items: center;
    gap: 24px;
}

.progress-ring {
--value: 75;
    width: 112px;
    height: 94px;
    border-radius: 50%;
    background: radial-gradient(closest-side, #06231d 74%, transparent 76% 100%), conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(217, 177, 107, 0.12) 0);
    display: grid;
    place-items: center;
    color: var(--gold-strong);
    font-size: 1.6rem;
    font-weight: 700;
}

.stars {
    color: var(--gold);
    letter-spacing: 0.14em;
    font-size: 1.25rem;
}

.page-heading {
    margin: 0 0 24px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.table-card {
    padding: 24px;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: 18px;
    overflow: hidden;
}

.table thead th {
    background: rgba(217, 177, 107, 0.08);
    color: var(--text);
    text-align: left;
    padding: 16px 18px;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table tbody td {
    padding: 16px 18px;
    border-top: 1px solid rgba(203, 164, 92, 0.14);
    color: var(--text-soft);
}

.table tbody tr:hover {
    background: rgba(217, 177, 107, 0.03);
}

.table tbody td strong {
    color: var(--text);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
}

.dashboard-layout-nosidebar {
    grid-template-columns: minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.side-nav {
    display: grid;
    gap: 8px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    color: var(--text-soft);
}

.side-nav a.is-active,
.side-nav a:hover {
    background: rgba(217, 177, 107, 0.09);
    color: var(--text);
}

.premium-box {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    border-radius: 18px;
    background: rgba(217, 177, 107, 0.04);
}

.dot-online {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #48b567;
    margin-right: 8px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.kpi-card {
    padding: 22px;
}

.kpi-label {
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.kpi-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kpi-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(217, 177, 107, 0.3);
}

.kpi-value {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    margin: 0;
}

.kpi-subtext,
.small-text {
    color: var(--text-soft);
    line-height: 1.6;
}

.dashboard-bottom {
    display: grid;
    gap: 18px;
}


.text-link {
    color: var(--gold-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-link:hover {
    color: var(--text);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.login-layout {
    min-height: 68vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.login-panel {
    padding: 34px;
}

.login-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 3rem);
}

.login-panel p {
    color: var(--text-soft);
    line-height: 1.7;
}

.form-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(203, 164, 92, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.form-field input:focus {
    border-color: rgba(217, 177, 107, 0.6);
    box-shadow: 0 0 0 4px rgba(217, 177, 107, 0.1);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(203, 164, 92, 0.22);
    background: rgba(217, 177, 107, 0.06);
    color: var(--text);
}

.alert-error {
    border-color: rgba(219, 143, 70, 0.34);
    background: rgba(219, 143, 70, 0.09);
}

.note-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(203, 164, 92, 0.28);
    color: var(--text-soft);
}

.hero-side {
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.hero-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 28, 23, 0.6), rgba(4, 28, 23, 0.1));
}

.hero-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-row {
    margin-top: 16px;
}

.empty-state {
    padding: 28px;
    color: var(--text-soft);
}

@media (max-width: 1100px) {
    .grid-home,
    .hero-page,
    .login-layout,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .home-bottom,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .feature-content {
        width: min(74%, 600px);
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 860px) {
    .site-shell {
        width: min(calc(100% - 18px), var(--container));
        margin: 10px auto;
    }

    .site-header {
        gap: 16px;
        padding: 18px;
    }

    .site-header-top {
        width: 100%;
        min-height: 52px;
    }

    .site-title-link {
        max-width: calc(100% - 96px);
    }

    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a,
    .nav-login {
        padding: 12px 14px !important;
        border-radius: 12px;
        background: rgba(217, 177, 107, 0.04);
    }

    .main-nav a::after {
        display: none;
    }

    .page-content {
        padding: 18px;
    }

    .hero-copy,
    .card-pad,
    .table-card,
    .login-panel,
    .feature-content {
        padding: 22px;
    }

    .results-mini {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 460px;
    }

    .feature-content {
        width: 100%;
        justify-content: flex-end;
        background: linear-gradient(180deg, rgba(4, 27, 23, 0.06), rgba(4, 27, 23, 0.86));
    }

    .confidence-box,
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 12px 18px;
        padding: 18px;
    }
}

.form-field textarea,
.form-field select,
.form-field input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(203, 164, 92, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.form-field textarea:focus,
.form-field select:focus,
.form-field input[type="file"]:focus {
    border-color: rgba(217, 177, 107, 0.6);
    box-shadow: 0 0 0 4px rgba(217, 177, 107, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field select option,
.form-field select optgroup {
    background: #ffffff;
    color: #10221d;
}

.form-field select option:checked {
    background: #d9b16b;
    color: #10221d;
}

.form-field-full {
    grid-column: 1 / -1;
}

.alert-success {
    border-color: rgba(72, 181, 103, 0.34);
    background: rgba(72, 181, 103, 0.12);
}

.dashboard-main {
    display: grid;
    gap: 18px;
}

.page-intro {
    display: grid;
    gap: 12px;
}

.kpi-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-split {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.dashboard-featured {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 18px;
}

.dashboard-featured-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.18);
}

.stack-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.admin-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.compact-actions .btn,
.compact-actions .btn-ghost {
    padding: 12px 16px;
}

.admin-form-card {
    padding: 24px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.form-check {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(217, 177, 107, 0.04);
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.preview-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(217, 177, 107, 0.03);
}

.preview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 10px;
}

.thumb-row {
    display: flex;
    gap: 10px;
}

.table-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(203, 164, 92, 0.18);
}

.row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-small {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(219, 143, 70, 0.34);
    background: rgba(219, 143, 70, 0.12);
    color: #ffd8b2;
    cursor: pointer;
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
}

@media (max-width: 1200px) {
    .kpi-grid-4,
    .dashboard-split,
    .dashboard-featured,
    .admin-form-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .row-actions,
    .form-actions,
    .admin-actions-grid {
        width: 100%;
    }

    .row-actions > *,
    .form-actions > *,
    .admin-actions-grid > * {
        width: 100%;
    }
}



.cheval-community-row {
    grid-template-columns: 1fr;
}

.community-comments-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .community-comments-stack {
        grid-template-columns: 1fr;
    }
}

.community-comment-box,
.reaction-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(217, 177, 107, 0.05);
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.reaction-list {
    display: grid;
    gap: 14px;
}

.reactions-split {
    align-items: start;
}

.table-message-cell {
    max-width: 440px;
    white-space: normal;
    line-height: 1.6;
}

.public-reactions-layout {
    display: block;
}

.reactions-facebook-page .page-intro {
    margin-bottom: 18px;
}

.reactions-facebook-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
}

.facebook-composer-card,
.facebook-feed-card {
    background: linear-gradient(180deg, rgba(12, 50, 41, 0.95), rgba(5, 28, 23, 0.98));
}

.reaction-opinion-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.reaction-opinion-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 10px;
    border: 1px solid rgba(203, 164, 92, 0.24);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}

.reaction-opinion-option input {
    display: none;
}

.reaction-opinion-option.is-selected,
.reaction-opinion-option:has(input:checked) {
    border-color: rgba(217, 177, 107, 0.75);
    background: rgba(217, 177, 107, 0.12);
}

.reaction-feed {
    display: grid;
    gap: 16px;
}

.reaction-facebook-card {
    padding: 18px;
    border: 1px solid rgba(203, 164, 92, 0.2);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}

.reaction-facebook-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.reaction-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #10211a;
    background: linear-gradient(180deg, var(--gold-strong), var(--gold));
    flex: 0 0 48px;
}

.reaction-author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.reaction-opinion-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
    border: 1px solid transparent;
}

.reaction-opinion-positive {
    background: rgba(87, 177, 98, 0.14);
    border-color: rgba(87, 177, 98, 0.28);
}

.reaction-opinion-neutral {
    background: rgba(217, 177, 107, 0.14);
    border-color: rgba(217, 177, 107, 0.28);
}

.reaction-opinion-negative {
    background: rgba(188, 88, 88, 0.16);
    border-color: rgba(188, 88, 88, 0.3);
}

.reaction-message {
    margin: 16px 0 18px;
}

.reaction-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(203, 164, 92, 0.14);
}

.reaction-likes-count {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.reaction-like-form {
    margin: 0;
}

.reaction-like-button {
    border: 1px solid rgba(203, 164, 92, 0.22);
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    cursor: pointer;
}

.reaction-like-button.is-liked,
.reaction-like-button:disabled {
    opacity: 0.7;
    cursor: default;
    background: rgba(217, 177, 107, 0.12);
}

@media (max-width: 980px) {
    .reactions-facebook-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reaction-opinion-picker {
        grid-template-columns: 1fr;
    }

    .reaction-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .reaction-like-button {
        width: 100%;
    }
}


.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-buttons form {
    margin: 0;
}

.action-btn {
    min-width: 110px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.action-btn.btn-danger {
    min-width: 110px;
}

.table td .action-btn,
.table td .btn-danger,
.table td .btn-ghost {
    text-decoration: none;
}


.site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-footer-links,
.site-footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.site-footer a {
    color: var(--text-soft);
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer-meta {
    font-size: 0.88rem;
    color: rgba(240, 244, 240, 0.74);
}

.legal-page {
    max-width: 980px;
    margin: 0 auto;
}

.legal-sections {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.legal-block {
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.legal-block h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.legal-block p {
    margin: 0 0 10px;
    color: var(--text-soft);
    line-height: 1.65;
}


.public-contact-layout {
    grid-template-columns: minmax(0, 1fr);
}

.public-contact-layout .dashboard-main {
    width: 100%;
}

.contact-layout .card {
    min-width: 0;
}

.contact-layout .analysis-text {
    max-width: 52ch;
}

@media (min-width: 921px) {
    .contact-layout .card-pad {
        padding: 28px;
    }
}
.contact-layout {
    grid-template-columns: minmax(0, 1.35fr) 320px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
}

.public-contact-layout .dashboard-main {
    max-width: 1040px !important;
    margin: 0 auto;
}

.contact-layout .card:first-child {
    min-width: 0;
}

.contact-layout .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-layout .page-heading {
    max-width: 12ch;
}

@media (max-width: 920px) {
    .contact-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .public-contact-layout .dashboard-main {
        max-width: 100% !important;
    }

    .contact-layout .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout .page-heading {
        max-width: none;
    }
}

.contact-info-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.contact-info-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(203, 164, 92, 0.18);
    color: var(--text-soft);
}


html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

.site-shell {
    max-width: 100%;
}

.page-content,
.card,
.table-card,
.admin-form-card,
.facebook-composer-card,
.facebook-feed-card,
.legal-page,
.contact-layout,
.dashboard-main,
.dashboard-featured,
.dashboard-layout,
.dashboard-split,
.hero-page,
.grid-home,
.home-bottom {
    min-width: 0;
}

.hero-copy p,
.analysis-text,
.small-text,
.note-box,
.legal-block p,
.contact-info-item {
    overflow-wrap: anywhere;
}

.form-field input,
.form-field textarea,
.form-field select,
.btn,
.btn-ghost,
.btn-danger,
.action-btn,
.reaction-like-button,
.nav-login,
.main-nav a {
    min-height: 46px;
}

@media (max-width: 980px) {
    .brand-text {
        font-size: 1.55rem;
    }

    .site-header,
    .site-footer {
        padding: 16px 18px;
    }

    .feature-card,
    .public-hero-card {
        min-height: 460px;
    }

    .feature-content,
    .public-hero-content {
        width: 100%;
        max-width: none;
        padding: 22px;
    }

    .meta-row {
        grid-template-columns: 28px 96px 1fr;
    }

    .dashboard-featured-image {
        min-height: 220px;
    }

    .action-buttons,
    .row-actions {
        gap: 10px;
    }
}

@media (max-width: 760px) {
    :root {
        --radius-xl: 20px;
        --radius-lg: 16px;
        --radius-md: 12px;
    }

    .site-shell {
        width: calc(100% - 12px);
        margin: 6px auto;
        border-radius: 18px;
    }

    .site-header {
        align-items: stretch;
    }

    .site-header-top {
        gap: 12px;
        min-height: 48px;
    }

    .site-title-link {
        max-width: calc(100% - 92px);
    }

    .site-title-text {
        font-size: 1.18rem;
        white-space: normal;
        line-height: 1.05;
    }

    .brand {
        max-width: calc(100% - 58px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .brand-text {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .main-nav {
        justify-content: center;
    }

    .page-content {
        padding: 14px;
    }

    .hero-copy,
    .card-pad,
    .table-card,
    .login-panel,
    .feature-content,
    .admin-form-card,
    .legal-block {
        padding: 18px;
    }

    .hero-copy h1,
    .page-heading,
    .highlight-name,
    .login-panel h1 {
        line-height: 1.08;
        word-break: break-word;
    }

    .hero-copy p,
    .public-hero-text,
    .analysis-text {
        max-width: none;
        font-size: 1rem;
    }

    .grid-home,
    .home-bottom,
    .hero-page,
    .dashboard-layout,
    .dashboard-split,
    .dashboard-featured,
    .login-layout,
    .contact-layout,
    .admin-form-grid,
    .preview-grid,
    .kpi-grid,
    .kpi-grid-4,
    .results-mini {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .public-hero-card {
        min-height: 420px;
    }

    .public-hero-card::before,
    .feature-card::before {
        background: linear-gradient(180deg, rgba(4, 27, 23, 0.08) 0%, rgba(4, 27, 23, 0.72) 52%, rgba(4, 27, 23, 0.95) 100%);
    }

    .meta-list {
        gap: 10px;
        margin-bottom: 22px;
    }

    .meta-row {
        grid-template-columns: 24px 1fr;
        gap: 8px 10px;
        align-items: start;
    }

    .meta-row strong {
        grid-column: 2;
    }

    .meta-row > :nth-child(2) {
        display: none;
    }

    .progress-ring {
        width: 96px;
        height: 96px;
        font-size: 1.4rem;
    }

    .confidence-box {
        gap: 16px;
    }

    .table {
        min-width: 620px;
    }

    .table thead th,
    .table tbody td {
        padding: 13px 14px;
    }

    .table-message-cell {
        max-width: 260px;
    }

    .action-buttons > *,
    .row-actions > *,
    .form-actions > *,
    .admin-actions-grid > * {
        width: 100%;
    }

    .action-btn,
    .btn,
    .btn-ghost,
    .btn-danger,
    .reaction-like-button {
        width: 100%;
        justify-content: center;
    }

    .site-footer-links,
    .site-footer-meta {
        flex-direction: column;
        gap: 8px;
    }

    .reaction-facebook-head {
        gap: 10px;
    }

    .reaction-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .contact-layout .page-heading {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 1.15rem;
    }

    .site-title-link {
        max-width: calc(100% - 84px);
    }

    .site-title-text {
        font-size: 1.02rem;
    }

    .site-header,
    .site-footer {
        padding: 14px 12px;
    }

    .page-content {
        padding: 12px;
    }

    .hero-copy,
    .card-pad,
    .table-card,
    .login-panel,
    .feature-content,
    .admin-form-card,
    .legal-block {
        padding: 16px;
    }

    .section-kicker {
        gap: 8px;
        font-size: 0.78rem;
    }

    .kicker-box {
        width: 18px;
        height: 18px;
        font-size: 0.72rem;
    }

    .page-heading {
        font-size: 1.8rem;
    }

    .highlight-name {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.08rem;
    }

    .hero-copy p,
    .analysis-text,
    .small-text,
    .note-box,
    .form-field label,
    .main-nav a {
        font-size: 0.95rem;
    }

    .form-field input,
    .form-field textarea,
    .form-field select,
    .btn,
    .btn-ghost,
    .btn-danger,
    .reaction-like-button {
        padding: 13px 14px;
        border-radius: 12px;
    }

    .result-mini-card {
        padding: 17px 14px 15px;
        border-radius: 18px;
    }

    .result-mini-card .home-history-meta {
        gap: 6px;
    }

    .result-mini-card .home-history-date,
    .result-mini-card .home-history-code {
        font-size: 0.68rem;
        padding: 5px 9px;
    }

    .result-mini-card .home-history-horse {
        font-size: 1.16rem;
    }

    .result-mini-card .home-history-track {
        font-size: 0.93rem;
    }

    .result-mini-card .home-history-odds {
        padding-left: 8px;
        padding-right: 8px;
    }

    .result-mini-card .home-history-odd-label,
    .result-mini-card .home-history-odd-value {
        font-size: 0.83rem;
    }

    .badge {
        min-width: 52px;
        padding: 8px 12px;
    }

    .result-position-badge {
        min-width: 106px;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.84rem;
        gap: 7px;
    }

    .public-result-position.result-position-badge {
        min-width: auto;
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .reaction-opinion-option {
        min-height: 48px;
    }

    .reaction-facebook-card {
        padding: 14px;
    }

    .comment-meta {
        gap: 6px;
        font-size: 0.88rem;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }
}


/* Cookies */
#cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9998;
}

#cookie-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#cookie-banner,
.cookie-settings-panel {
    position: fixed;
    left: 50%;
    width: min(calc(100% - 28px), 920px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 44, 36, 0.98), rgba(4, 24, 20, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

#cookie-banner {
    bottom: 18px;
    transform: translateX(-50%) translateY(18px);
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cookie-settings-panel {
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(calc(100% - 28px), 520px);
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-settings-panel.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.cookie-title {
    margin: 0 0 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
    color: var(--text);
}

.cookie-text p,
.cookie-settings-panel fieldset,
.cookie-settings-panel label {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.cookie-buttons,
.settings-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-button {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 18px;
    min-height: 46px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.cookie-button:hover {
    filter: brightness(1.04);
}

.cookie-accept {
    background: linear-gradient(135deg, var(--gold), var(--gold-strong));
    color: #1d1609;
}

.cookie-reject,
.cookie-manage {
    background: rgba(217, 177, 107, 0.08);
}

.cookie-settings-panel fieldset {
    border: 1px solid rgba(203, 164, 92, 0.22);
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0 22px;
}

.cookie-settings-panel legend {
    padding: 0 8px;
    color: var(--gold);
    font-weight: 700;
}

.cookie-settings-panel input[type="checkbox"] {
    accent-color: var(--gold);
    margin-right: 10px;
}

@media (max-width: 860px) {
    #cookie-banner {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .cookie-buttons,
    .settings-buttons {
        justify-content: stretch;
    }

    .cookie-button {
        flex: 1 1 100%;
    }
}


.toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.toggle-field input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--gold);
}

.maintenance-body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(19, 88, 72, 0.28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(217, 177, 107, 0.14), transparent 30%),
        linear-gradient(180deg, #041b17 0%, #031411 100%);
}

.maintenance-wrap {
    width: min(100%, 760px);
}

.maintenance-card {
    padding: 42px 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(5, 30, 25, 0.98), rgba(3, 20, 17, 0.98));
    box-shadow: var(--shadow);
    text-align: center;
}

.maintenance-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(203, 164, 92, 0.3);
    background: rgba(217, 177, 107, 0.08);
    color: var(--gold-strong);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.maintenance-logo {
    width: 84px;
    height: 84px;
    margin: 22px auto 18px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(203, 164, 92, 0.24);
    background: rgba(217, 177, 107, 0.07);
}

.maintenance-card h1 {
    margin: 0 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text);
}

.maintenance-message {
    margin: 0 auto 14px;
    max-width: 620px;
    color: var(--text-soft);
    font-size: 1.08rem;
    line-height: 1.75;
}

.maintenance-note {
    margin: 0;
    color: var(--gold);
    font-weight: 700;
}

.maintenance-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.maintenance-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(203, 164, 92, 0.28);
    border-radius: 999px;
    color: var(--gold-strong);
    background: rgba(217, 177, 107, 0.08);
    font-weight: 800;
    text-decoration: none;
}

.maintenance-admin-link:hover,
.maintenance-admin-link:focus-visible {
    color: var(--bg);
    background: var(--gold);
}

.maintenance-meta {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 164, 92, 0.16);
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .maintenance-card {
        padding: 34px 22px;
    }

    .toggle-field {
        align-items: flex-start;
        flex-direction: column;
    }
}


.site-footer {
    flex-wrap: wrap;
}

.site-footer-links,
.site-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: var(--text-soft);
}

.site-footer-links a:hover {
    color: var(--text);
}

.page-intro,
.content-stack,
.table-card,
.admin-form-card,
.public-contact-layout .dashboard-main,
.public-reactions-layout .dashboard-main,
.login-layout,
.account-layout {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.page-heading {
    margin: 8px 0 12px;
    line-height: 1.1;
}

.analysis-text,
.legal-block p,
.legal-page li,
.contact-info-item {
    line-height: 1.75;
}

.home-bottom,
.cheval-community-row,
.contact-layout,
.reactions-split {
    align-items: stretch;
}

.contact-layout > .card,
.reactions-split > .card,
.home-bottom > .card,
.cheval-community-row > .card {
    height: 100%;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.community-comment-box,
.reaction-facebook-card,
.legal-block,
.contact-info-item,
.note-box {
    border-radius: var(--radius-md);
}

.legal-block {
    padding: 22px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.legal-block h2 {
    margin-top: 0;
}

.note-box {
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.contact-info-list {
    display: grid;
    gap: 12px;
}

.contact-info-item {
    padding: 14px 16px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.table-card .page-heading,
.legal-page .page-heading,
.facebook-composer-card .section-title,
.facebook-feed-card .section-title {
    margin-top: 10px;
}

@media (max-width: 860px) {
    .site-footer {
        gap: 12px;
    }

    .site-footer-links,
    .site-footer-meta {
        width: 100%;
    }
}


.feature-side-actions {
    margin-top: 18px;
}

.btn-block {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

.cheval-latest-comments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cheval-reaction-card {
    height: 100%;
}

.cheval-reaction-card .reaction-actions-bar {
    margin-top: auto;
}

@media (max-width: 860px) {
    .cheval-latest-comments-grid {
        grid-template-columns: 1fr;
    }
}


.cheval-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.cheval-comments-heading .section-kicker {
    margin: 0;
}

.cheval-comments-add-btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cheval-comments-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cheval-comments-add-btn {
        width: 100%;
        justify-content: center;
    }
}

.live-comments-wrapper {
    display: grid;
    gap: 14px;
}

.live-comments-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    background: rgba(15, 76, 58, 0.08);
    color: #0f4c3a;
}

.live-comments-status::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #1ea672;
    box-shadow: 0 0 0 4px rgba(30, 166, 114, 0.16);
}

.live-comments-status.is-fresh {
    background: rgba(212, 175, 55, 0.15);
    color: #7a5b00;
}

.live-comments-status.is-fresh::before {
    background: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}


.reaction-rating-stars,
.reaction-rating-stars-display {
    color: #d4a94f;
    letter-spacing: 1px;
}

.reaction-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 169, 79, 0.12);
    color: #f3d48a;
    border: 1px solid rgba(212, 169, 79, 0.28);
}

.reaction-opinion-option .reaction-rating-stars-display {
    font-size: 1.05rem;
}


.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(203, 164, 92, 0.18);
}

.pagination-link {
    min-width: 132px;
    justify-content: center;
    text-align: center;
}

.pagination-status {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pagination-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

@media (max-width: 640px) {
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-link {
        width: 100%;
    }

    .pagination-status {
        text-align: center;
        order: -1;
    }
}

@media (max-width: 760px) {
    .nav-user-btn,
    .nav-logout-btn {
        width: 100%;
    }

    .nav-user-btn {
        max-width: 100%;
    }
}


.reaction-composer-form {
    gap: 14px;
}

.reaction-composer-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(203, 164, 92, 0.18);
}

.reaction-composer-meta {
    display: grid;
    gap: 3px;
}

.reaction-context-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(217, 177, 107, 0.08);
    border: 1px solid rgba(217, 177, 107, 0.16);
    color: var(--text-soft);
}

.reaction-stars-inline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reaction-composer-form textarea {
    min-height: 132px;
    resize: vertical;
    background: rgba(255,255,255,0.04);
}

.reaction-composer-actions {
    align-items: center;
}

.reaction-composer-actions .btn,
.reaction-composer-actions .btn-ghost {
    min-width: 150px;
    justify-content: center;
}

@media (max-width: 860px) {
    .reaction-stars-inline {
        grid-template-columns: 1fr;
    }

    .reaction-context-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Fix notes display in reaction composer */
.reaction-stars-inline {
    display: grid;
    grid-template-columns: repeat(5, minmax(88px, 1fr));
    gap: 10px;
}

.reaction-stars-inline .reaction-opinion-option {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 74px;
    padding: 10px 8px;
}

.reaction-stars-inline .reaction-opinion-option strong {
    display: block;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-soft);
}

.reaction-stars-inline .reaction-opinion-option.is-selected strong,
.reaction-stars-inline .reaction-opinion-option:has(input:checked) strong {
    color: #f8e7b5;
}

.reaction-stars-inline .reaction-rating-stars-display {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .reaction-stars-inline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .reaction-stars-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reaction-stars-inline .reaction-opinion-option {
        min-height: 68px;
    }
}


/* Reaction composer rating fix */
.reaction-stars-inline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.reaction-stars-inline .reaction-opinion-option {
    min-width: 0;
    min-height: 72px;
    padding: 10px 6px;
    gap: 6px;
}

.reaction-stars-inline .reaction-rating-stars-display {
    display: block;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.reaction-stars-inline .reaction-opinion-option strong {
    display: block;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .reactions-facebook-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .reaction-stars-inline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reaction-stars-inline .reaction-opinion-option {
        min-height: 64px;
        padding: 8px 4px;
    }

    .reaction-stars-inline .reaction-rating-stars-display {
        font-size: 0.82rem;
        letter-spacing: 0.25px;
    }

    .reaction-stars-inline .reaction-opinion-option strong {
        font-size: 0.92rem;
    }
}

/* Menu déroulant pour la note dans le bloc "Laisser une réaction" */
.reaction-rating-select {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(217, 177, 107, 0.28);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    appearance: auto;
}

.reaction-rating-select:focus {
    outline: none;
    border-color: rgba(217, 177, 107, 0.75);
    box-shadow: 0 0 0 3px rgba(217, 177, 107, 0.14);
}

.reaction-rating-select option {
    color: #1f2933;
}

/* Fil de la communauté revu */
.community-feed-card {
    overflow: hidden;
}

.community-feed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
}

.community-feed-header .section-title {
    margin-bottom: 0;
}

.community-feed-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    background: rgba(217, 177, 107, 0.1);
    color: #f3d48a;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.community-feed-subtitle {
    margin: 0 0 18px;
    color: var(--text-soft);
}

.community-timeline {
    gap: 18px;
}

.community-reaction-card {
    position: relative;
    padding: 20px;
    border-color: rgba(217, 177, 107, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.community-reaction-card::before {
    content: "";
    position: absolute;
    inset: 18px auto 18px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--gold-strong), rgba(217, 177, 107, 0.18));
}

.reaction-card-content {
    min-width: 0;
    flex: 1;
}

.reaction-author-name {
    font-size: 1.03rem;
}

.reaction-meta-row {
    gap: 7px;
    margin-top: 9px;
}

.community-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.2;
}

.reaction-message-box {
    margin: 16px 0 18px 62px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.13);
    background: rgba(2, 20, 17, 0.28);
}

.reaction-message-box .reaction-message {
    margin: 0;
}

.community-actions-bar {
    margin-left: 62px;
    padding-top: 13px;
}

.community-actions-bar .reaction-likes-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-weight: 700;
}

.community-actions-bar .reaction-like-button {
    min-width: 118px;
    font-weight: 800;
}

.community-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px;
    text-align: left;
    border: 1px dashed rgba(217, 177, 107, 0.35);
    background: rgba(217, 177, 107, 0.06);
}

.community-empty-state span {
    color: var(--text-soft);
}

@media (max-width: 720px) {
    .community-feed-header {
        flex-direction: column;
        align-items: stretch;
    }

    .community-feed-count {
        align-self: flex-start;
    }

    .community-reaction-card {
        padding: 16px;
    }

    .reaction-message-box,
    .community-actions-bar {
        margin-left: 0;
    }

    .community-actions-bar {
        align-items: stretch;
    }
}

/* Espace membre complet */
.member-space {
    display: grid;
    gap: 22px;
}

.member-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(7, 40, 33, 0.98), rgba(4, 31, 26, 0.92));
}

.member-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.member-hero-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.member-avatar-large {
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid rgba(217, 177, 107, 0.42);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.24), rgba(217, 177, 107, 0.08));
    color: #f8e7b5;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9rem;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.member-profile-chips,
.member-hero-actions,
.member-action-row,
.member-comment-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.member-profile-chips {
    margin-top: 14px;
}

.member-profile-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 0.88rem;
}

.member-hero-actions {
    position: relative;
    z-index: 1;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.member-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.member-stat-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    border-color: rgba(217, 177, 107, 0.22);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}

.member-stat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.08);
}

.member-stat-card strong {
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.1rem;
    line-height: 1;
}

.member-stat-card span:last-child {
    color: var(--text-soft);
    font-weight: 700;
}

.member-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.member-grid-bottom {
    align-items: stretch;
}

.member-main-card,
.member-side-card {
    height: 100%;
}

.member-pick-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.member-pick-card h3 {
    margin: 12px 0 8px;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
}

.member-pick-odd {
    min-width: 112px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(217, 177, 107, 0.26);
    background: rgba(217, 177, 107, 0.1);
}

.member-pick-odd span {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.member-pick-odd strong {
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
}

.member-action-row {
    margin-top: 18px;
}

.member-shortcuts {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.member-shortcuts a {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.member-shortcuts a:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 177, 107, 0.42);
    background: rgba(217, 177, 107, 0.08);
}

.member-shortcuts a > span {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(217, 177, 107, 0.1);
}

.member-shortcuts strong {
    color: var(--text);
}

.member-shortcuts small {
    color: var(--text-soft);
    line-height: 1.35;
}

.member-comments-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.member-comment-item {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.member-comment-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.member-comment-top strong,
.member-comment-top .small-text {
    display: block;
}

.member-comment-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.member-profile-form {
    margin-top: 14px;
}

.member-security-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(203, 164, 92, 0.14);
}

.member-empty-state {
    gap: 10px;
    align-items: start;
    text-align: left;
}

@media (max-width: 980px) {
    .member-hero,
    .member-hero-main {
        align-items: flex-start;
    }

    .member-hero {
        flex-direction: column;
    }

    .member-hero-actions {
        justify-content: flex-start;
    }

    .member-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .member-hero-main {
        flex-direction: column;
    }

    .member-avatar-large {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 1.55rem;
    }

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

    .member-pick-card,
    .member-comment-top {
        flex-direction: column;
        align-items: stretch;
    }

    .member-hero-actions .btn,
    .member-hero-actions .btn-ghost,
    .member-action-row .btn,
    .member-action-row .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* Dashboard administrateur complet */
.admin-dashboard-pro {
    gap: 0;
}

.admin-dashboard-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.2), transparent 34%),
        linear-gradient(135deg, rgba(8, 44, 36, 0.98), rgba(4, 31, 26, 0.94));
}

.admin-dashboard-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    border: 1px solid rgba(217, 177, 107, 0.22);
    pointer-events: none;
}

.admin-dashboard-hero-content,
.admin-dashboard-actions {
    position: relative;
    z-index: 1;
}

.admin-status-row,
.admin-dashboard-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-status-row {
    margin-top: 16px;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(203, 164, 92, 0.2);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-status-pill.is-online {
    border-color: rgba(95, 139, 88, 0.5);
    color: #cde7bd;
    background: rgba(95, 139, 88, 0.16);
}

.admin-status-pill.is-warning {
    border-color: rgba(217, 177, 107, 0.52);
    color: var(--gold-strong);
    background: rgba(217, 177, 107, 0.13);
}

.admin-dashboard-actions {
    justify-content: flex-end;
    max-width: 440px;
}

.admin-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.admin-kpi-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 20px;
    border-color: rgba(217, 177, 107, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
}

.admin-kpi-card .kpi-label {
    margin-bottom: 8px;
}

.admin-kpi-card .kpi-value {
    font-size: 2.0rem;
}

.admin-kpi-icon,
.member-avatar-small,
.admin-attention-number {
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    background: rgba(217, 177, 107, 0.09);
    color: var(--gold-strong);
    font-weight: 900;
}

.admin-kpi-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
}

.admin-kpi-focus {
    border-color: rgba(217, 177, 107, 0.34);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.12), rgba(255, 255, 255, 0.02));
}

.admin-kpi-alert {
    border-color: rgba(217, 177, 107, 0.42);
    box-shadow: inset 0 0 0 1px rgba(217, 177, 107, 0.12);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 18px;
    align-items: stretch;
}

.admin-dashboard-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard-card {
    min-width: 0;
}

.admin-card-wide {
    min-height: 100%;
}

.admin-pick-panel {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.13), transparent 38%),
        rgba(255, 255, 255, 0.035);
}

.admin-pick-number {
    display: grid;
    place-items: center;
    min-height: 150px;
    border-radius: 20px;
    border: 1px solid rgba(217, 177, 107, 0.28);
    background: rgba(217, 177, 107, 0.1);
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 900;
}

.admin-pick-info h3 {
    margin: 14px 0;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
    line-height: 1;
}

.admin-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 12px;
	    font-size: 0.77rem;
    border-radius: 15px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
}

.admin-meta-grid strong {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-win-card,
.admin-task-list,
.admin-mini-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.admin-win-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.admin-win-card strong {
    color: var(--text);
    font-size: 1.2rem;
}

.admin-attention-number {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
}

.admin-task-list a,
.admin-mini-item,
.admin-message-preview,
.admin-reaction-preview {
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.admin-task-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-task-list a:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 177, 107, 0.42);
    background: rgba(217, 177, 107, 0.08);
}

.admin-task-list a > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(217, 177, 107, 0.1);
}

.admin-task-list strong,
.admin-task-list small,
.admin-mini-item strong,
.admin-mini-item small,
.admin-message-preview strong,
.admin-message-preview small {
    display: block;
}

.admin-task-list small,
.admin-mini-item small,
.admin-message-preview small {
    margin-top: 4px;
    color: var(--text-soft);
    line-height: 1.4;
}

.admin-mini-item,
.admin-message-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.admin-message-preview {
    grid-template-columns: minmax(0, 1fr) auto;
}

.member-avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-family: Georgia, 'Times New Roman', serif;
}

.admin-mini-item em {
    color: var(--text-soft);
    font-style: normal;
    font-size: 0.86rem;
}

.admin-reaction-preview {
    padding: 14px;
}

.admin-reaction-preview p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.admin-empty-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 1120px) {
    .admin-dashboard-hero,
    .admin-dashboard-grid,
    .admin-dashboard-grid-bottom {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-actions {
        justify-content: flex-start;
        max-width: none;
    }

    .admin-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .admin-dashboard-kpis,
    .admin-pick-panel,
    .admin-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-kpi-card,
    .admin-mini-item,
    .admin-message-preview {
        grid-template-columns: 1fr;
    }

    .admin-pick-number {
        min-height: 96px;
    }

    .admin-dashboard-actions .btn,
    .admin-dashboard-actions .btn-ghost,
    .admin-empty-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Harmonisation premium globale */
:root {
    --glass: rgba(255, 255, 255, 0.045);
    --glass-strong: rgba(255, 255, 255, 0.07);
    --line-soft: rgba(203, 164, 92, 0.18);
    --line-strong: rgba(217, 177, 107, 0.38);
}

body {
    background:
        radial-gradient(circle at 8% 0%, rgba(217, 177, 107, 0.12), transparent 27%),
        radial-gradient(circle at 92% 4%, rgba(28, 107, 86, 0.28), transparent 33%),
        radial-gradient(circle at 50% 110%, rgba(217, 177, 107, 0.08), transparent 30%),
        linear-gradient(180deg, #041b17 0%, #031411 100%);
}

.site-shell {
    border-color: rgba(217, 177, 107, 0.34);
    background:
        linear-gradient(180deg, rgba(6, 35, 29, 0.98), rgba(3, 18, 15, 0.99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.site-header {
    background:
        radial-gradient(circle at top, rgba(217, 177, 107, 0.08), transparent 38%),
        rgba(2, 17, 14, 0.34);
}

.site-header-top::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: min(360px, 58vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(217, 177, 107, 0.5), transparent);
}

.brand-mark {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(217, 177, 107, 0.035);
}

.main-nav a,
.nav-login,
.nav-user-btn,
.nav-logout-btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.main-nav a.is-active,
.nav-login.is-active,
.nav-user-btn.is-active {
    color: var(--gold-strong);
    border-color: rgba(217, 177, 107, 0.52);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.16), rgba(217, 177, 107, 0.06));
}

.card,
.table-card,
.admin-form-card,
.facebook-composer-card,
.facebook-feed-card,
.legal-page,
.login-panel {
    border-color: var(--line-soft);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card:not(.feature-card):not(.public-hero-card):not(.hero-side):not(.member-hero):not(.admin-dashboard-hero) {
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.075), transparent 35%),
        linear-gradient(180deg, rgba(10, 48, 40, 0.82), rgba(5, 27, 23, 0.96));
}

.card-pad,
.table-card,
.admin-form-card,
.login-panel {
    position: relative;
}

.section-kicker {
    font-weight: 800;
}

.kicker-box {
    color: var(--gold-strong);
    background: rgba(217, 177, 107, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-heading {
    color: var(--text);
    letter-spacing: -0.025em;
}

.section-title {
    color: var(--text);
}

.analysis-text,
.small-text {
    color: rgba(244, 238, 223, 0.72);
}

.btn,
.btn-ghost,
.btn-danger,
.reaction-like-button,
.cookie-button {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.btn {
    border-color: rgba(239, 200, 127, 0.58);
    background: linear-gradient(180deg, #f0cd8a 0%, #d8a960 54%, #bd8743 100%);
}

.btn-ghost:hover,
.reaction-like-button:hover {
    border-color: rgba(217, 177, 107, 0.5);
    background: rgba(217, 177, 107, 0.1);
}

.form-field label {
    font-weight: 700;
    color: rgba(244, 238, 223, 0.78);
}

.form-field input,
.form-field textarea,
.form-field select,
.form-field input[type="file"] {
    background: rgba(2, 18, 15, 0.42);
    border-color: rgba(203, 164, 92, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(244, 238, 223, 0.42);
}

.table {
    background: rgba(2, 18, 15, 0.22);
    border-color: rgba(217, 177, 107, 0.2);
}

.table thead th {
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.14), rgba(217, 177, 107, 0.06));
}

.table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.018);
}

.table tbody tr:hover {
    background: rgba(217, 177, 107, 0.07);
}

.empty-state {
    display: grid;
    gap: 10px;
	margin-top:14px;
    border: 1px dashed rgba(217, 177, 107, 0.28);
    border-radius: 18px;
    background: rgba(217, 177, 107, 0.045);
}

.page-hero-unified {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at right, rgba(217, 177, 107, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(8, 44, 36, 0.98), rgba(4, 31, 26, 0.94));
}

.page-hero-unified .page-heading {
    margin-bottom: 12px;
}

.page-hero-unified .analysis-text {
    max-width: 62ch;
    margin: 0;
}

.page-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
    min-width: 280px;
}

.page-hero-stats span {
    display: grid;
    gap: 3px;
    padding: 15px 16px;
    border: 1px solid rgba(217, 177, 107, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-soft);
    font-size: 0.88rem;
}

.page-hero-stats strong {
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9rem;
    line-height: 1;
}

.table-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.results-table-card .section-title,
.table-card-head .section-title {
    margin-bottom: 0;
}

.contact-card-main,
.contact-info-card,
.auth-panel-pro {
    overflow: hidden;
}

.contact-card-main::after,
.auth-panel-pro::after,
.contact-info-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(217, 177, 107, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.contact-benefit-grid {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.contact-benefit-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-weight: 700;
}

.contact-benefit-grid span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(217, 177, 107, 0.12);
    color: var(--gold-strong);
}

.auth-kicker {
    margin-bottom: 14px;
}

.login-panel .note-box,
.note-box {
    background: rgba(217, 177, 107, 0.045);
}

.hero-side::after,
.feature-card::after,
.public-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(217, 177, 107, 0.16), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(217, 177, 107, 0.12), transparent 24%);
}

.member-stat-card,
.admin-kpi-card,
.result-mini-card,
.member-shortcuts a,
.admin-task-list a,
.admin-mini-item,
.admin-message-preview,
.admin-reaction-preview,
.member-comment-item,
.community-reaction-card,
.contact-info-item {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.member-stat-card:hover,
.admin-kpi-card:hover,
.result-mini-card:hover,
.member-shortcuts a:hover,
.admin-task-list a:hover,
.admin-mini-item:hover,
.admin-message-preview:hover,
.admin-reaction-preview:hover,
.member-comment-item:hover,
.community-reaction-card:hover,
.contact-info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 177, 107, 0.4);
}

.site-footer {
    background: rgba(2, 17, 14, 0.28);
}

@media (max-width: 760px) {
    .page-hero-unified,
    .table-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero-stats {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}


/* Ajustements réactions : ville à côté du pseudo, note à côté du cheval */
.reaction-author-city {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.08);
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
}

.community-horse-chip {
    gap: 9px;
    flex-wrap: wrap;
    color: var(--text);
}

.community-horse-chip .reaction-opinion-badge {
    padding: 4px 8px;
    font-size: 0.8rem;
}

@media (max-width: 540px) {
    .community-horse-chip {
        align-items: flex-start;
        border-radius: 16px;
    }
}
/* Bouton J’aime aligné à gauche dans le fil de la communauté */
.community-actions-bar {
    justify-content: flex-start;
}

.community-actions-bar .reaction-like-form {
    order: 1;
}

.community-actions-bar .reaction-likes-count {
    order: 2;
    margin-left: auto;
}

@media (max-width: 640px) {
    .community-actions-bar .reaction-likes-count {
        margin-left: 0;
    }
}

/* Bloc de don */
.donation-slot {
    position: relative;
    width: 100%;
    margin: 18px auto;
    padding: 24px;
    border: 1px solid rgba(217, 177, 107, 0.42);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.16), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    color: var(--text-soft);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.donation-slot-horizontal {
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donation-slot-rectangle {
    min-height: 250px;
    max-width: 420px;
    margin: 22px auto 0;
    display: grid;
    place-items: center;
}

.donation-content {
    width: 100%;
    max-width: 860px;
    display: grid;
    gap: 10px;
    text-align: center;
    justify-items: center;
}

.donation-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(203, 164, 92, 0.24);
    background: rgba(4, 31, 26, 0.72);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.donation-content strong {
    color: var(--text);
    font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.donation-content p {
    max-width: 680px;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
}

.donation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gold);
    color: #06231d;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(217, 177, 107, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donation-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(217, 177, 107, 0.32);
}

.facebook-composer-card .donation-slot {
    width: 100%;
}

.admin-settings-section {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid rgba(203, 164, 92, 0.18);
}

.admin-settings-section .section-title,
.admin-settings-section p {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .donation-slot {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
    }

    .donation-slot-horizontal {
        min-height: 104px;
    }

    .donation-slot-rectangle {
        max-width: 100%;
        min-height: 220px;
    }
}

/* Formulaire PayPal de don */
.donation-paypal-form {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: 100%;
    max-width: 520px;
    margin-top: 4px;
}

.donation-amount-label {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.donation-amount-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.donation-amount-input {
    width: 112px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 164, 92, 0.28);
    border-radius: 999px;
    background: rgba(4, 31, 26, 0.68);
    color: var(--text);
    font-weight: 800;
    text-align: center;
}

.donation-currency {
    color: var(--gold);
    font-weight: 900;
}

.donation-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 480px) {
    .donation-amount-row {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    .donation-amount-input {
        width: 100%;
    }

    .donation-amount-row .donation-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}


/* Harmonisation des pages dashboard sans menu gauche */
.admin-dashboard-page {
    width: 100%;
}

.admin-dashboard-page .dashboard-main {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.admin-dashboard-page .table-card,
.admin-dashboard-page .admin-form-card {
    padding: clamp(20px, 2.5vw, 32px);
    border-radius: 24px;
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(203, 164, 92, 0.14);
}

.admin-card-title {
    min-width: 0;
}

.admin-card-head .page-heading {
    margin: 8px 0 8px;
}

.admin-page-subtitle {
    margin: 0;
    color: rgba(244, 238, 223, 0.72);
    line-height: 1.6;
    max-width: 720px;
}

.admin-head-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.admin-dashboard-page .table-wrap,
.admin-dashboard-page .admin-form-grid {
    margin-top: 0;
}

.admin-dashboard-page .table {
    border-radius: 18px;
}

.admin-dashboard-page .action-buttons {
    align-items: center;
}

.admin-dashboard-page .action-btn {
    min-width: 104px;
    text-align: center;
}

@media (max-width: 760px) {
    .admin-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-head-actions,
    .admin-head-actions .btn,
    .admin-head-actions .btn-ghost {
        width: 100%;
    }

    .admin-head-actions .btn,
    .admin-head-actions .btn-ghost {
        text-align: center;
        justify-content: center;
    }

    .admin-dashboard-page .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Bouton déroulant dans la colonne Actions des tableaux du dashboard */
.table-actions-cell {
    width: 150px;
    min-width: 150px;
    vertical-align: top;
}

.action-menu {
    position: relative;
    display: inline-block;
    width: 100%;
}

.action-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 118px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.action-menu-toggle::-webkit-details-marker {
    display: none;
}

.action-menu-toggle::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.8em;
}

.action-menu[open] .action-menu-toggle::after {
    content: "▴";
}

.action-menu-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: 14px;
    background: rgba(5, 31, 25, 0.96);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.action-menu-panel form,
.action-menu-panel .action-btn {
    width: 100%;
}

.action-menu-panel .action-btn {
    min-width: 0;
    white-space: normal;
}

/* Menus Actions homogènes sur tous les tableaux admin */
.admin-dashboard-page .table-actions-cell {
    text-align: center;
}

.admin-dashboard-page .action-menu-panel a.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tableaux dashboard modernisés : Pronostics, Résultats, Réactions */
.admin-dashboard-page .dashboard-main {
    max-width: 1180px;
}

.admin-dashboard-page .table-card {
    overflow: visible;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(6, 35, 29, 0.92);
    border: 1px solid rgba(217, 177, 107, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.admin-dashboard-page .table-wrap {
    border: 1px solid rgba(217, 177, 107, 0.16);
    border-radius: 22px;
    overflow-x: auto;
    overflow-y: visible;
    background: rgba(2, 22, 18, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-dashboard-page .table {
    min-width: 900px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.admin-dashboard-page .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 15px 18px;
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.20), rgba(217, 177, 107, 0.10));
    color: #f8e6c3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    border-bottom: 1px solid rgba(217, 177, 107, 0.22);
    white-space: nowrap;
}

.admin-dashboard-page .table thead th:first-child {
    border-top-left-radius: 20px;
}

.admin-dashboard-page .table thead th:last-child {
    border-top-right-radius: 20px;
}

.admin-dashboard-page .table tbody td {
    padding: 17px 18px;
    border-top: 1px solid rgba(217, 177, 107, 0.10);
    color: rgba(244, 238, 223, 0.80);
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.012);
}

.admin-dashboard-page .table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.028);
}

.admin-dashboard-page .table tbody tr:hover td {
    background: rgba(217, 177, 107, 0.075);
}

.admin-dashboard-page .table tbody td:first-child {
    color: rgba(244, 238, 223, 0.68);
    font-weight: 700;
    white-space: nowrap;
}

.admin-dashboard-page .table tbody td strong {
    color: #fff6dd;
    font-weight: 800;
}

.admin-dashboard-page .table .small-text {
    margin-top: 5px;
    color: rgba(244, 238, 223, 0.55);
    font-size: 0.82rem;
}

.admin-dashboard-page .badge,
.admin-dashboard-page .badge-win,
.admin-dashboard-page .status-badge,
.admin-dashboard-page .position-win,
.admin-dashboard-page .position-place,
.admin-dashboard-page .position-lost,
.admin-dashboard-page .reaction-opinion-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.admin-dashboard-page .table-message-cell {
    max-width: 380px;
    min-width: 260px;
    color: rgba(244, 238, 223, 0.76);
    line-height: 1.55;
}

.admin-dashboard-page .table-actions-cell {
    width: 136px;
    min-width: 136px;
    text-align: right;
}

.admin-dashboard-page .action-menu-toggle {
    min-width: 112px;
    border-color: rgba(217, 177, 107, 0.30);
    background: rgba(217, 177, 107, 0.09);
    color: #f8e6c3;
    font-weight: 800;
}

.admin-dashboard-page .action-menu-toggle:hover,
.admin-dashboard-page .action-menu[open] .action-menu-toggle {
    background: rgba(217, 177, 107, 0.18);
    border-color: rgba(217, 177, 107, 0.48);
}

.admin-dashboard-page .action-menu-panel {
    min-width: 176px;
    padding: 9px;
    border-radius: 16px;
    border-color: rgba(217, 177, 107, 0.24);
    background: rgba(5, 31, 25, 0.98);
}

.admin-dashboard-page .action-menu-panel .action-btn {
    border-radius: 12px;
    min-height: 36px;
    font-weight: 750;
}

@media (max-width: 860px) {
    .admin-dashboard-page .dashboard-main {
        max-width: 100%;
    }

    .admin-dashboard-page .table-card {
        padding: 16px;
    }

    .admin-dashboard-page .table-wrap {
        border-radius: 18px;
    }

    .admin-dashboard-page .table {
        min-width: 820px;
    }
}

/* Boutons de connexion dans le bloc "Laisser une réaction" : côte à côte */
.reaction-auth-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

.reaction-auth-actions > .btn,
.reaction-auth-actions > .btn-ghost {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .reaction-auth-actions {
        gap: 8px;
    }

    .reaction-auth-actions > .btn,
    .reaction-auth-actions > .btn-ghost {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.9rem;
    }
}

.password-field {
    position: relative;
}

.password-forgot-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-helper-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

/* Page résultats publique : harmonisation avec les cartes du site */
.public-results-page {
    display: grid;
    gap: 18px;
}

.results-hero {
    position: relative;
}

.results-hero::after,
.results-board-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.results-hero::after {
    right: -76px;
    bottom: -112px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(217, 177, 107, 0.16);
}

.results-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.results-board-card {
    overflow: hidden;
}

.results-board-card::after {
    left: -90px;
    top: -130px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(217, 177, 107, 0.12);
}

.results-board-head {
    position: relative;
    z-index: 1;
}

.results-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    border-radius: 999px;
    background: rgba(217, 177, 107, 0.075);
    color: var(--gold-strong);
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.public-results-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-result-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.075), transparent 36%),
        rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.public-result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 177, 107, 0.4);
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.11), transparent 38%),
        rgba(255, 255, 255, 0.05);
}

.public-result-topline,
.public-result-meta,
.public-result-odd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-result-date {
    color: rgba(244, 238, 223, 0.62);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-result-position {
    white-space: nowrap;
}

.public-result-card h3 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.24rem;
    letter-spacing: -0.01em;
}

.public-result-meta {
    align-items: stretch;
}

.public-result-meta span {
    flex: 1 1 0;
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border: 1px solid rgba(203, 164, 92, 0.14);
    border-radius: 14px;
    background: rgba(2, 18, 15, 0.22);
    color: rgba(244, 238, 223, 0.72);
    font-size: 0.94rem;
}

.public-result-meta strong,
.public-result-odd span {
    color: rgba(244, 238, 223, 0.54);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.public-result-odd {
    padding: 14px 15px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 15px;
    background: rgba(217, 177, 107, 0.055);
}

.public-result-odd strong {
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.35rem;
}

.results-table-card {
    overflow: hidden;
    width: 100%;
    max-width: min(1480px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.results-table-card .table-wrap {
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .results-table-card .site-table {
        min-width: 1180px;
    }
}

.results-table th,
.results-table td {
    vertical-align: middle;
}

.results-empty-state {
    position: relative;
    z-index: 1;
}

@media (max-width: 980px) {
    .public-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .results-hero-actions,
    .results-hero-actions .btn,
    .results-hero-actions .btn-ghost,
    .results-board-head,
    .public-result-topline,
    .public-result-meta,
    .public-result-odd {
        align-items: stretch;
    }

    .results-hero-actions .btn,
    .results-hero-actions .btn-ghost,
    .results-count-pill {
        width: 100%;
    }

    .public-result-topline,
    .public-result-meta,
    .public-result-odd {
        flex-direction: column;
    }

    .public-result-meta span {
        width: 100%;
    }
}

/* Ameliorations JavaScript progressives */
.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.site-toast {
    transform: translateY(12px);
    opacity: 0;
    padding: 13px 15px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    border-radius: 16px;
    background: rgba(8, 26, 22, 0.96);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    transition: opacity 0.22s ease, transform 0.22s ease;
    font-weight: 800;
}

.site-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.site-toast-success { border-color: rgba(64, 190, 128, 0.5); }
.site-toast-error { border-color: rgba(220, 95, 95, 0.55); }

.alert.is-soft-hidden {
    opacity: 0.18;
    transition: opacity 0.25s ease;
}

.password-toggle-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-wrap input {
    width: 100%;
    padding-right: 92px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(217, 177, 107, 0.24);
    border-radius: 999px;
    background: rgba(217, 177, 107, 0.08);
    color: var(--gold-strong);
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.password-live-hint {
    margin: 7px 0 0;
}

.password-live-hint.is-valid { color: #7bd89f; }
.password-live-hint.is-warning { color: var(--gold-strong); }
.password-live-hint.is-error { color: #ff9b9b; }

button.is-loading,
.btn.is-loading {
    opacity: 0.72;
    cursor: progress;
}

.results-js-tools,
.table-js-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
    align-items: end;
    gap: 12px;
    margin: 0 0 22px;
    position: relative;
    z-index: 1;
}

.table-js-tools {
    grid-template-columns: minmax(220px, 1fr) auto;
    padding: 0 22px 18px;
}

.results-js-tools label,
.table-js-tools label {
    display: grid;
    gap: 7px;
    color: rgba(244, 238, 223, 0.68);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.results-js-tools input,
.results-js-tools select,
.table-js-tools input {
    min-height: 44px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 14px;
    background: rgba(2, 18, 15, 0.32);
    color: var(--text);
    padding: 0 13px;
    outline: none;
}

.results-js-tools input:focus,
.results-js-tools select:focus,
.table-js-tools input:focus {
    border-color: rgba(217, 177, 107, 0.48);
    box-shadow: 0 0 0 3px rgba(217, 177, 107, 0.12);
}

.results-reset-button {
    min-height: 44px;
}

.results-filter-count,
.table-js-tools .small-text {
    margin: 0;
    color: rgba(244, 238, 223, 0.62);
}

.is-filtered-out {
    display: none !important;
}

.table th.is-sortable {
    cursor: pointer;
    user-select: none;
}

.table th.is-sortable::after {
    content: ' ↕';
    color: rgba(217, 177, 107, 0.7);
    font-size: 0.8em;
}

@media (max-width: 900px) {
    .results-js-tools,
    .table-js-tools {
        grid-template-columns: 1fr;
    }

    .table-js-tools {
        padding: 0 16px 16px;
    }

    .results-reset-button,
    .results-js-tools input,
    .results-js-tools select {
        width: 100%;
    }
}

/* Correctif notifications : messages d'erreur et de succès toujours lisibles */
.alert {
    position: relative;
    display: block;
    margin: 18px 0 0;
    padding: 14px 16px 14px 44px;
    border-radius: 16px;
    border: 1px solid rgba(217, 177, 107, 0.34);
    background: rgba(217, 177, 107, 0.12);
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.12);
    opacity: 1 !important;
}

.alert::before {
    content: "i";
    position: absolute;
    left: 16px;
    top: 14px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(244, 238, 223, 0.12);
    color: var(--gold-strong);
    font-size: 0.78rem;
    font-weight: 900;
    font-family: Arial, sans-serif;
}

.alert-error {
    border-color: rgba(237, 122, 88, 0.62);
    background: rgba(237, 122, 88, 0.16);
    color: #fff2e8;
}

.alert-error::before {
    content: "!";
    background: rgba(237, 122, 88, 0.22);
    color: #ffd1c2;
}

.alert-success {
    border-color: rgba(87, 191, 132, 0.58);
    background: rgba(87, 191, 132, 0.14);
    color: #ecfff4;
}

.alert-success::before {
    content: "✓";
    background: rgba(87, 191, 132, 0.2);
    color: #b8ffd1;
}

.alert.is-soft-hidden {
    opacity: 1 !important;
}


/* Les messages PHP restent dans le DOM pour alimenter les notifications JS,
   mais ils ne s'affichent plus en bloc au-dessus des formulaires/pages. */
.alert {
    display: none !important;
}

/* Tableaux homogènes sur tout le site */
.table-wrap-modern {
    position: relative;
    width: 100%;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 22px;
    overflow: auto;
    background: linear-gradient(180deg, rgba(4, 31, 26, 0.74), rgba(2, 18, 15, 0.42));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-table,
.table-enhanced {
    width: 100%;
    min-width: 780px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    overflow: visible;
}

.site-table thead th,
.table-enhanced thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(217, 177, 107, 0.24);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.20), rgba(217, 177, 107, 0.08));
    color: #f9e8c5;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-table tbody td,
.table-enhanced tbody td {
    padding: 16px 18px;
    border-top: 1px solid rgba(217, 177, 107, 0.10);
    color: rgba(244, 238, 223, 0.82);
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.012);
}

.site-table tbody tr:nth-child(even) td,
.table-enhanced tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.028);
}

.site-table tbody tr:hover td,
.table-enhanced tbody tr:hover td {
    background: rgba(217, 177, 107, 0.075);
}

.site-table tbody td strong,
.table-enhanced tbody td strong {
    color: #fff6dd;
    font-weight: 850;
}

.site-table .small-text,
.table-enhanced .small-text {
    margin-top: 5px;
    color: rgba(244, 238, 223, 0.58);
}

.table-toolbar,
.table-js-tools {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 177, 107, 0.14);
    border-radius: 18px;
    background: rgba(2, 18, 15, 0.30);
}

.table-toolbar input,
.table-js-tools input {
    width: 100%;
}

.table th.is-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.table th.is-sortable:hover,
.table th.is-sortable:focus-visible {
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.28), rgba(217, 177, 107, 0.12));
    color: #fff3d4;
    outline: none;
}

.table th.is-sortable::after {
    content: ' ↕';
    display: inline-block;
    margin-left: 5px;
    color: rgba(217, 177, 107, 0.82);
    font-size: 0.82em;
}

.table th.is-sortable[aria-sort="ascending"]::after {
    content: ' ↑';
}

.table th.is-sortable[aria-sort="descending"]::after {
    content: ' ↓';
}

.table-actions-cell {
    white-space: nowrap;
}

.table-message-cell {
    min-width: 260px;
    max-width: 420px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .table-wrap-modern {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-table,
    .table-enhanced,
    .admin-dashboard-page .table {
        min-width: 0;
        border-spacing: 0 12px;
    }

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

    .site-table tbody,
    .site-table tr,
    .site-table td,
    .table-enhanced tbody,
    .table-enhanced tr,
    .table-enhanced td {
        display: block;
        width: 100%;
    }

    .site-table tbody tr,
    .table-enhanced tbody tr {
        padding: 14px;
        border: 1px solid rgba(217, 177, 107, 0.18);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(4, 31, 26, 0.78), rgba(2, 18, 15, 0.42));
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    }

    .site-table tbody tr:nth-child(even) td,
    .site-table tbody tr:hover td,
    .site-table tbody td,
    .table-enhanced tbody tr:nth-child(even) td,
    .table-enhanced tbody tr:hover td,
    .table-enhanced tbody td {
        background: transparent;
    }

    .site-table tbody td,
    .table-enhanced tbody td {
        display: grid;
        grid-template-columns: minmax(105px, 0.42fr) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid rgba(217, 177, 107, 0.10);
        word-break: break-word;
    }

    .site-table tbody td:first-child,
    .table-enhanced tbody td:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .site-table tbody td::before,
    .table-enhanced tbody td::before {
        content: attr(data-label);
        color: rgba(217, 177, 107, 0.88);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .table-actions-cell,
    .admin-dashboard-page .table-actions-cell {
        width: auto;
        min-width: 0;
        text-align: left;
        white-space: normal;
    }

    .table-actions-cell .action-menu,
    .table-actions-cell .action-menu-toggle,
    .table-actions-cell .action-menu-panel {
        width: 100%;
    }

    .table-message-cell,
    .admin-dashboard-page .table-message-cell {
        min-width: 0;
        max-width: none;
    }
}

/* Harmonisation finale des tableaux du site : ordre visuel propre et rendu identique */
.table-card .table-wrap-modern,
.admin-dashboard-page .table-wrap.table-wrap-modern,
.results-table-card .table-wrap.table-wrap-modern {
    margin-top: 0;
    border-radius: 22px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    overflow-x: auto;
    overflow-y: visible;
    background: linear-gradient(180deg, rgba(4, 31, 26, 0.74), rgba(2, 18, 15, 0.42));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.table-card .site-table,
.admin-dashboard-page .site-table,
.results-table-card .site-table {
    width: 100%;
    min-width: 900px;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.table-card .site-table thead th,
.admin-dashboard-page .site-table thead th,
.results-table-card .site-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(217, 177, 107, 0.24);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.20), rgba(217, 177, 107, 0.08));
    color: #f9e8c5;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-card .site-table tbody td,
.admin-dashboard-page .site-table tbody td,
.results-table-card .site-table tbody td {
    padding: 16px 18px;
    border-top: 1px solid rgba(217, 177, 107, 0.10);
    color: rgba(244, 238, 223, 0.82);
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.012);
}

.table-card .site-table tbody tr:nth-child(even) td,
.admin-dashboard-page .site-table tbody tr:nth-child(even) td,
.results-table-card .site-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.028);
}

.table-card .site-table tbody tr:hover td,
.admin-dashboard-page .site-table tbody tr:hover td,
.results-table-card .site-table tbody tr:hover td {
    background: rgba(217, 177, 107, 0.075);
}

.table-card .site-table td:first-child,
.admin-dashboard-page .site-table td:first-child,
.results-table-card .site-table td:first-child,
.table-card .site-table td:nth-child(5),
.admin-dashboard-page .site-table td:nth-child(5),
.results-table-card .site-table td:nth-child(5) {
    white-space: nowrap;
}

.admin-dashboard-page .table-actions-cell,
.table-actions-cell {
    width: 136px;
    min-width: 136px;
    text-align: center;
    white-space: nowrap;
}

.table-message-cell,
.admin-dashboard-page .table-message-cell {
    min-width: 260px;
    max-width: 420px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .table-card .site-table,
    .admin-dashboard-page .site-table,
    .results-table-card .site-table {
        min-width: 0;
        border-spacing: 0 12px;
    }

    .table-card .site-table thead,
    .admin-dashboard-page .site-table thead,
    .results-table-card .site-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .table-card .site-table tbody,
    .table-card .site-table tr,
    .table-card .site-table td,
    .admin-dashboard-page .site-table tbody,
    .admin-dashboard-page .site-table tr,
    .admin-dashboard-page .site-table td,
    .results-table-card .site-table tbody,
    .results-table-card .site-table tr,
    .results-table-card .site-table td {
        display: block;
        width: 100%;
    }

    .table-card .site-table tbody tr,
    .admin-dashboard-page .site-table tbody tr,
    .results-table-card .site-table tbody tr {
        padding: 14px;
        border: 1px solid rgba(217, 177, 107, 0.18);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(4, 31, 26, 0.78), rgba(2, 18, 15, 0.42));
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    }

    .table-card .site-table tbody td,
    .admin-dashboard-page .site-table tbody td,
    .results-table-card .site-table tbody td {
        display: grid;
        grid-template-columns: minmax(105px, 0.42fr) minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid rgba(217, 177, 107, 0.10);
        background: transparent !important;
        white-space: normal;
        word-break: break-word;
    }

    .table-card .site-table tbody td:first-child,
    .admin-dashboard-page .site-table tbody td:first-child,
    .results-table-card .site-table tbody td:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .table-card .site-table tbody td::before,
    .admin-dashboard-page .site-table tbody td::before,
    .results-table-card .site-table tbody td::before {
        content: attr(data-label);
        color: rgba(217, 177, 107, 0.88);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .admin-dashboard-page .table-actions-cell,
    .table-actions-cell {
        width: auto;
        min-width: 0;
        text-align: left;
    }
}


.results-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.results-stat-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.09), rgba(255, 255, 255, 0.026));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.results-stat-card span {
    color: rgba(244, 238, 223, 0.64);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.results-stat-card strong {
    color: var(--gold-strong);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1;
}

.results-stat-card small {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.45;
}

.site-footer-warning {
    display: grid;
    gap: 4px;
    max-width: 760px;
    margin: 2px auto 0;
    color: rgba(244, 238, 223, 0.86);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 920px) {
    .results-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .results-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustements résultats : titres de colonne et cohérence visuelle */
.table th.number-column-title,
.site-table th.number-column-title,
.results-table-card .site-table th.number-column-title {
    width: 1%;
    min-width: 58px;
    padding-left: 14px;
    padding-right: 14px;
}

.results-board-card {
    border-color: rgba(217, 177, 107, 0.22);
    background:
        radial-gradient(circle at top left, rgba(217, 177, 107, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(10, 48, 40, 0.82), rgba(5, 27, 23, 0.96));
}

.results-board-card .results-js-tools {
    padding: 16px;
    border: 1px solid rgba(217, 177, 107, 0.14);
    border-radius: 18px;
    background: rgba(2, 18, 15, 0.26);
}

.results-filter-count {
    grid-column: 1 / -1;
    margin: -4px 0 0;
}

.public-result-card h3 {
    min-height: 1.4em;
}

.public-result-odd strong {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .results-board-card .results-js-tools {
        padding: 14px;
    }

    .table th.number-column-title,
    .site-table th.number-column-title,
    .results-table-card .site-table th.number-column-title {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .site-table tbody td.number-column-cell,
    .table-enhanced tbody td.number-column-cell,
    .admin-dashboard-page .site-table tbody td.number-column-cell,
    .results-table-card .site-table tbody td.number-column-cell {
        grid-template-columns: 1fr;
    }

    .site-table tbody td.number-column-cell::before,
    .table-enhanced tbody td.number-column-cell::before,
    .admin-dashboard-page .site-table tbody td.number-column-cell::before,
    .results-table-card .site-table tbody td.number-column-cell::before {
        display: none;
        content: "";
    }
}

/* Tableaux dynamiques : recherche, tri et pagination locale */
.table-js-tools.table-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(145px, 0.55fr) minmax(170px, auto) minmax(260px, auto);
    align-items: end;
    gap: 12px;
}

.table-js-tools select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 14px;
    background: rgba(2, 18, 15, 0.32);
    color: var(--text);
    padding: 0 13px;
    outline: none;
}

.table-js-tools select:focus {
    border-color: rgba(217, 177, 107, 0.48);
    box-shadow: 0 0 0 3px rgba(217, 177, 107, 0.12);
}

.table-js-tools .table-count {
    align-self: center;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 44px;
}

.table-pagination.is-hidden,
.is-hidden {
    display: none !important;
}

.table-pagination button:disabled,
.table-pagination button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1020px) {
    .table-js-tools.table-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-pagination {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .table-js-tools.table-toolbar {
        grid-template-columns: 1fr;
    }

    .table-pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        width: 100%;
    }

    .table-pagination .btn-small {
        width: 100%;
    }
}

/* Page Réactions : version communautaire */
.reactions-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid rgba(217, 177, 107, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(217, 177, 107, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(12, 50, 41, 0.96), rgba(5, 28, 23, 0.98));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.reactions-hero-content {
    display: grid;
    align-content: center;
    gap: 10px;
}

.reactions-hero-text {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
}

.reaction-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.reactions-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.reaction-stat-card {
    display: grid;
    gap: 5px;
    align-content: center;
    min-height: 104px;
    padding: 16px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
}

.reaction-stat-card span,
.reaction-stat-card small {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.reaction-stat-card strong {
    color: #f8e7b5;
    font-size: 1.9rem;
    line-height: 1.1;
}

.reaction-stat-card-wide {
    grid-column: 1 / -1;
}

.community-sort-tabs,
.admin-reaction-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}

.community-sort-tab,
.admin-reaction-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(217, 177, 107, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.community-sort-tab:hover,
.admin-reaction-filter:hover,
.community-sort-tab.is-active,
.admin-reaction-filter.is-active {
    transform: translateY(-1px);
    border-color: rgba(217, 177, 107, 0.64);
    background: rgba(217, 177, 107, 0.13);
    color: #f8e7b5;
}

.reaction-stars-inline .reaction-opinion-option {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.reaction-stars-inline .reaction-opinion-option:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 177, 107, 0.52);
}

.reaction-stars-inline .reaction-opinion-option input:focus-visible + .reaction-rating-stars-display {
    outline: 2px solid rgba(217, 177, 107, 0.8);
    outline-offset: 4px;
    border-radius: 6px;
}

.admin-reactions-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 12px;
    margin: 4px 0 16px;
}

.admin-reaction-stat {
    display: grid;
    gap: 5px;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.admin-reaction-stat span {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-reaction-stat strong {
    color: #f8e7b5;
    font-size: 1.55rem;
    line-height: 1;
}

@media (max-width: 1100px) {
    .reactions-hero-card {
        grid-template-columns: 1fr;
    }

    .facebook-feed-card {
        order: 1;
    }

    .facebook-composer-card {
        order: 2;
    }

    .admin-reactions-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reactions-hero-card {
        padding: 20px;
        border-radius: 22px;
    }

    .reactions-hero-stats,
    .admin-reactions-overview {
        grid-template-columns: 1fr;
    }

    .reaction-hero-actions .btn,
    .reaction-hero-actions .btn-ghost,
    .community-sort-tab,
    .admin-reaction-filter {
        width: 100%;
    }
}

/* Ajustements page Réactions demandés */
.reactions-facebook-page .reactions-hero-card {
    width: min(1380px, 100%);
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}

.reactions-facebook-page .reactions-hero-text {
    max-width: 860px;
}

/* Correctif menu Actions : ouverture en superposition sans agrandir le tableau */
.table-actions-cell,
.admin-dashboard-page .table-actions-cell {
    position: relative;
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    text-align: center;
    overflow: visible;
}

.table-actions-cell .action-menu,
.admin-dashboard-page .table-actions-cell .action-menu {
    position: relative;
    display: inline-block;
    width: 118px;
    max-width: 118px;
    overflow: visible;
}

.table-actions-cell .action-menu-toggle,
.admin-dashboard-page .table-actions-cell .action-menu-toggle {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    white-space: nowrap;
}

.table-actions-cell .action-menu-panel,
.admin-dashboard-page .table-actions-cell .action-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    width: 174px;
    min-width: 174px;
    max-width: 174px;
    margin-top: 0;
    box-sizing: border-box;
    text-align: center;
}

.table-actions-cell .action-menu-panel .action-btn,
.table-actions-cell .action-menu-panel .btn-danger,
.table-actions-cell .action-menu-panel .btn-ghost,
.admin-dashboard-page .table-actions-cell .action-menu-panel .action-btn,
.admin-dashboard-page .table-actions-cell .action-menu-panel .btn-danger,
.admin-dashboard-page .table-actions-cell .action-menu-panel .btn-ghost {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
}

.table-wrap,
.table-wrap-modern,
.table-card,
.admin-dashboard-page .table-wrap,
.table-card .table-wrap-modern,
.admin-dashboard-page .table-wrap.table-wrap-modern,
.results-table-card .table-wrap.table-wrap-modern {
    overflow-y: visible;
}

@media (max-width: 760px) {
    .table-actions-cell,
    .admin-dashboard-page .table-actions-cell {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .table-actions-cell .action-menu,
    .table-actions-cell .action-menu-toggle,
    .admin-dashboard-page .table-actions-cell .action-menu,
    .admin-dashboard-page .table-actions-cell .action-menu-toggle {
        width: 100%;
        max-width: none;
    }

    .table-actions-cell .action-menu-panel,
    .admin-dashboard-page .table-actions-cell .action-menu-panel {
        right: auto;
        left: 0;
        width: min(220px, 100%);
        min-width: min(220px, 100%);
        max-width: 100%;
    }
}

/* Correctif final : menu Actions flottant sans scrollbar ni déformation du tableau */
.table-actions-cell,
.admin-dashboard-page .table-actions-cell {
    position: relative;
    width: 136px;
    min-width: 136px;
    max-width: 136px;
    text-align: center;
    white-space: nowrap;
}

.table-actions-cell .action-menu,
.admin-dashboard-page .table-actions-cell .action-menu {
    position: static;
    display: inline-block;
    width: 118px;
    max-width: 118px;
    overflow: visible;
}

.table-actions-cell .action-menu-toggle,
.admin-dashboard-page .table-actions-cell .action-menu-toggle {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    white-space: nowrap;
}

.table-actions-cell .action-menu-panel,
.admin-dashboard-page .table-actions-cell .action-menu-panel {
    position: fixed !important;
    top: var(--action-menu-top, 0px);
    left: var(--action-menu-left, 0px);
    right: auto !important;
    z-index: 9999;
    display: none;
    width: 184px;
    min-width: 184px;
    max-width: 184px;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

.table-actions-cell .action-menu[open] .action-menu-panel,
.admin-dashboard-page .table-actions-cell .action-menu[open] .action-menu-panel {
    display: grid;
}

.table-actions-cell .action-menu-panel.is-positioning,
.admin-dashboard-page .table-actions-cell .action-menu-panel.is-positioning {
    visibility: hidden;
    pointer-events: none;
}

.table-actions-cell .action-menu-panel[data-open-direction="up"],
.admin-dashboard-page .table-actions-cell .action-menu-panel[data-open-direction="up"] {
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.22);
}

.table-actions-cell .action-menu-panel .action-btn,
.table-actions-cell .action-menu-panel .btn-danger,
.table-actions-cell .action-menu-panel .btn-ghost,
.admin-dashboard-page .table-actions-cell .action-menu-panel .action-btn,
.admin-dashboard-page .table-actions-cell .action-menu-panel .btn-danger,
.admin-dashboard-page .table-actions-cell .action-menu-panel .btn-ghost {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
}

.table-wrap.table-wrap-modern,
.admin-dashboard-page .table-wrap.table-wrap-modern,
.table-card .table-wrap-modern,
.results-table-card .table-wrap.table-wrap-modern {
    overflow-x: auto;
    overflow-y: hidden;
}

@media (max-width: 760px) {
    .table-actions-cell,
    .admin-dashboard-page .table-actions-cell {
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: left;
    }

    .table-actions-cell .action-menu,
    .table-actions-cell .action-menu-toggle,
    .admin-dashboard-page .table-actions-cell .action-menu,
    .admin-dashboard-page .table-actions-cell .action-menu-toggle {
        width: 100%;
        max-width: none;
    }

    .table-actions-cell .action-menu-panel,
    .admin-dashboard-page .table-actions-cell .action-menu-panel {
        width: min(240px, calc(100vw - 24px));
        min-width: min(240px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }

    .table-wrap.table-wrap-modern,
    .admin-dashboard-page .table-wrap.table-wrap-modern,
    .table-card .table-wrap-modern,
    .results-table-card .table-wrap.table-wrap-modern {
        overflow: visible;
    }
}

/* Correctif Actions + compatibilité mobile iPhone / Android */
.table-actions-cell,
.admin-dashboard-page .table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.table-actions-cell .action-menu,
.admin-dashboard-page .table-actions-cell .action-menu {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 118px;
    max-width: 118px;
    margin-inline: auto;
}

.table-actions-cell .action-menu-toggle,
.admin-dashboard-page .table-actions-cell .action-menu-toggle {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
}

html {
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    overflow-x: clip;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-font-smoothing: antialiased;
}

@supports not (overflow: clip) {
    body {
        overflow-x: hidden;
    }
}

a,
button,
summary,
.btn,
.btn-ghost,
.btn-danger,
.action-btn,
.nav-toggle,
.main-nav a,
.reaction-like-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

input,
select,
textarea {
    font-size: 16px;
}

.site-shell,
.site-header,
.page-content,
.site-footer,
.card,
.table-card,
.admin-form-card,
.dashboard-main,
.dashboard-layout,
.dashboard-split,
.grid-home,
.hero-page,
.home-bottom,
.login-layout,
.contact-layout,
.public-contact-layout,
.public-reactions-layout,
.public-results-page,
.member-space,
.member-grid,
.results-hero,
.reactions-hero-card,
.results-table-card,
.facebook-feed-card,
.facebook-composer-card,
.community-feed-card {
    min-width: 0;
    max-width: 100%;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

.form-field input,
.form-field select,
.form-field textarea,
.reaction-rating-select,
.table-js-tools input,
.table-js-tools select,
.results-js-tools input,
.results-js-tools select {
    width: 100%;
    min-width: 0;
}

.table-wrap,
.table-wrap-modern {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 860px) {
    body {
        min-height: 100svh;
    }

    .site-shell {
        width: calc(100% - 12px);
        margin: 6px auto max(6px, env(safe-area-inset-bottom));
        border-radius: 20px;
    }

    .site-header {
        padding: max(14px, env(safe-area-inset-top)) 14px 14px;
    }

    .site-title-link {
        left: 0;
        right: 54px;
        transform: translateY(-50%);
        max-width: none;
        justify-content: flex-start;
        text-align: left;
    }

    .site-title-brand {
        gap: 9px;
    }

    .site-title-text {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .main-nav a,
    .nav-login,
    .nav-user-btn,
    .nav-logout-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        border-radius: 14px;
    }

    .page-content {
        padding: 14px;
    }

    .dashboard-layout,
    .dashboard-layout-nosidebar,
    .dashboard-split,
    .grid-home,
    .hero-page,
    .home-bottom,
    .login-layout,
    .contact-layout,
    .reactions-facebook-layout,
    .public-reactions-layout,
    .member-grid,
    .member-grid-bottom,
    .admin-form-grid,
    .results-hero,
    .results-grid,
    .results-stats-grid,
    .reactions-hero-card,
    .admin-dashboard-grid,
    .admin-dashboard-grid-bottom {
        grid-template-columns: 1fr !important;
    }

    .admin-card-head,
    .table-card-head,
    .flex-between,
    .results-hero-actions,
    .member-hero-actions,
    .reaction-hero-actions,
    .admin-head-actions,
    .form-actions,
    .row-actions,
    .action-buttons,
    .admin-actions-grid,
    .reaction-auth-actions,
    .reaction-composer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-card-head > *,
    .table-card-head > *,
    .results-hero-actions > *,
    .member-hero-actions > *,
    .reaction-hero-actions > *,
    .admin-head-actions > *,
    .form-actions > *,
    .row-actions > *,
    .action-buttons > *,
    .admin-actions-grid > *,
    .reaction-auth-actions > *,
    .reaction-composer-actions > * {
        width: 100%;
    }

    .card,
    .card-pad,
    .table-card,
    .admin-form-card,
    .login-panel,
    .hero-copy,
    .feature-content,
    .public-hero-content,
    .facebook-feed-card,
    .facebook-composer-card,
    .community-feed-card,
    .results-table-card,
    .reactions-hero-card {
        padding: 18px;
        border-radius: 20px;
    }

    .page-heading,
    .hero-copy h1,
    .highlight-name,
    .result-heading,
    .login-panel h1 {
        font-size: clamp(1.65rem, 9vw, 2.25rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .section-kicker,
    .small-text,
    .analysis-text,
    .hero-copy p,
    .public-hero-text,
    .admin-page-subtitle,
    .reactions-hero-text {
        overflow-wrap: anywhere;
    }

    .table-js-tools.table-toolbar,
    .table-js-tools,
    .results-js-tools {
        grid-template-columns: 1fr !important;
        padding-inline: 0;
        gap: 12px;
    }

    .table-pagination {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .table-pagination .btn-small,
    .table-pagination .btn-ghost {
        width: 100%;
    }

    .site-footer {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 760px) {
    .table-card .site-table,
    .admin-dashboard-page .site-table,
    .results-table-card .site-table,
    .site-table,
    .table-enhanced {
        min-width: 0 !important;
        width: 100% !important;
    }

    .table-actions-cell,
    .admin-dashboard-page .table-actions-cell {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal !important;
    }

    .table-actions-cell::before,
    .admin-dashboard-page .table-actions-cell::before {
        justify-self: center;
        text-align: center;
        margin-bottom: 4px;
    }

    .table-actions-cell .action-menu,
    .admin-dashboard-page .table-actions-cell .action-menu {
        width: min(100%, 260px) !important;
        max-width: 260px !important;
    }

    .table-actions-cell .action-menu-toggle,
    .admin-dashboard-page .table-actions-cell .action-menu-toggle {
        width: 100% !important;
        max-width: 260px !important;
        min-width: 0 !important;
    }

    .table-actions-cell .action-menu-panel,
    .admin-dashboard-page .table-actions-cell .action-menu-panel {
        width: min(260px, calc(100vw - 24px)) !important;
        min-width: min(260px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .community-sort-tabs,
    .admin-reaction-filters,
    .member-profile-chips,
    .pagination-bar,
    .results-hero-actions,
    .reaction-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .community-sort-tab,
    .admin-reaction-filter,
    .pagination-link {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .site-shell {
        width: calc(100% - 8px);
        margin-top: 4px;
        border-radius: 16px;
    }

    .site-header,
    .site-footer,
    .page-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .site-title-text,
    .brand-text {
        font-size: 0.98rem;
        line-height: 1.08;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .card,
    .card-pad,
    .table-card,
    .admin-form-card,
    .login-panel,
    .hero-copy,
    .feature-content,
    .public-hero-content,
    .facebook-feed-card,
    .facebook-composer-card,
    .community-feed-card,
    .results-table-card,
    .reactions-hero-card {
        padding: 14px;
        border-radius: 18px;
    }

    .feature-card,
    .public-hero-card {
        min-height: 360px;
    }

    .btn,
    .btn-ghost,
    .btn-danger,
    .action-btn,
    .reaction-like-button,
    .form-field input,
    .form-field select,
    .form-field textarea,
    .reaction-rating-select {
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .site-title-brand {
        gap: 7px;
    }

    .site-title-text,
    .brand-text {
        font-size: 0.9rem;
    }

    .page-heading,
    .hero-copy h1,
    .highlight-name,
    .result-heading,
    .login-panel h1 {
        font-size: 1.55rem;
    }

    .section-kicker {
        font-size: 0.72rem;
    }
}

/* Correctif final : bouton Actions centré et recherche simple au-dessus des tableaux */
.table-actions-heading,
.site-table th.table-actions-heading,
.table th.table-actions-heading {
    text-align: center !important;
}

.table-actions-cell,
.admin-dashboard-page .table-actions-cell,
.site-table td.table-actions-cell,
.table td.table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.table-actions-cell .action-menu,
.admin-dashboard-page .table-actions-cell .action-menu,
.site-table td.table-actions-cell .action-menu,
.table td.table-actions-cell .action-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 118px !important;
    max-width: 118px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.table-actions-cell .action-menu-toggle,
.admin-dashboard-page .table-actions-cell .action-menu-toggle,
.site-table td.table-actions-cell .action-menu-toggle,
.table td.table-actions-cell .action-menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.action-menu-toggle::-webkit-details-marker {
    display: none;
}

.action-menu-toggle::marker {
    content: "";
}

.table-js-tools.table-toolbar {
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) auto !important;
    align-items: end !important;
    gap: 14px !important;
    margin: 0 0 14px !important;
    padding: 14px 16px !important;
}

.table-js-tools .table-search-field-simple {
    width: 100%;
}

.table-js-tools .table-count {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .table-actions-cell,
    .admin-dashboard-page .table-actions-cell,
    .site-table td.table-actions-cell,
    .table td.table-actions-cell {
        text-align: center !important;
    }

    .table-actions-cell .action-menu,
    .admin-dashboard-page .table-actions-cell .action-menu,
    .table-actions-cell .action-menu-toggle,
    .admin-dashboard-page .table-actions-cell .action-menu-toggle {
        width: min(220px, 100%) !important;
        max-width: 100% !important;
    }

    .table-js-tools.table-toolbar {
        grid-template-columns: 1fr !important;
        padding-inline: 14px !important;
    }

    .table-js-tools .table-count {
        justify-content: flex-start;
        white-space: normal;
    }
}

/* Page Réactions : calendrier de consultation et publication par date */
.reactions-calendar-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.reaction-date-filter {
    display: grid;
    gap: 8px;
    max-width: 560px;
    margin: 8px 0 0;
}

.reaction-date-filter label,
.reaction-publish-date-field label {
    color: #f8e7b5;
    font-weight: 800;
}

.reaction-date-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.reaction-date-input {
    flex: 1 1 210px;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(217, 177, 107, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font: inherit;
    font-weight: 800;
    color-scheme: dark;
}

.reaction-date-input:focus {
    outline: none;
    border-color: rgba(217, 177, 107, 0.75);
    box-shadow: 0 0 0 3px rgba(217, 177, 107, 0.14);
}

.reaction-feed-date-filter {
    max-width: 100%;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(217, 177, 107, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.reaction-publish-date-field .small-text {
    display: block;
    margin-top: 6px;
}

.reaction-date-context-bar {
    border-color: rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.08);
}

@media (max-width: 1100px) {
    .reactions-calendar-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reaction-date-filter-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reaction-date-filter-row .btn,
    .reaction-date-filter-row .btn-ghost,
    .reaction-date-input {
        width: 100%;
    }
}

/* Ajustements page Réactions : bloc date retiré du fil et titre réduit */
.reactions-hero-title {
    font-size: 2.0rem;
    line-height: 1.08;
    max-width: 780px;
}

@media (max-width: 640px) {
    .reactions-hero-title {
          font-size: 1.7rem;
    }
}

/* Dashboard : fermeture des commentaires par date */
.reaction-closure-card {
    margin: 22px 0;
}

.reaction-closure-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.reaction-closure-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 14px;
    align-items: stretch;
}

.reaction-closure-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(217, 177, 107, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.reaction-closure-form .form-field {
    margin: 0;
}

.reaction-closure-status {
    display: grid;
    gap: 5px;
    color: var(--text-soft);
}

.reaction-closure-status strong {
    color: #f8e7b5;
}

.reaction-closed-dates {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    color: var(--text-soft);
}

.reaction-closed-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reaction-closed-dates-empty {
    margin: 14px 0 0;
}

.reaction-closed-public-notice,
.reaction-closed-form-notice {
    border: 1px solid rgba(230, 172, 95, 0.26);
    border-radius: 18px;
    background: rgba(230, 172, 95, 0.1);
}

.reaction-closed-public-notice {
    display: grid;
    gap: 4px;
    max-width: 720px;
    padding: 13px 15px;
    color: var(--text-soft);
}

.reaction-closed-public-notice strong {
    color: #f8e7b5;
}

@media (max-width: 860px) {
    .reaction-closure-head,
    .reaction-closure-grid {
        grid-template-columns: 1fr;
    }

    .reaction-closure-head {
        display: grid;
    }
}

/* Réactions : compteur de likes placé juste à côté du bouton J’aime */
.reaction-actions-bar.community-actions-bar {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community-actions-bar .reaction-like-form {
    display: inline-flex;
    margin: 0;
}

.community-actions-bar .reaction-likes-count {
    order: 2;
    margin-left: 0 !important;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .reaction-actions-bar.community-actions-bar {
        gap: 8px;
    }

    .community-actions-bar .reaction-likes-count {
        min-height: 40px;
        font-size: 0.92rem;
    }
}


/* Correctif final : Gestion des réactions dynamique et sans débordement */
.admin-reactions-table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.admin-reactions-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.admin-reactions-table thead th,
.admin-reactions-table tbody td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.admin-reactions-table thead th:nth-child(1) {
    width: 15%;
}

.admin-reactions-table thead th:nth-child(2) {
    width: 14%;
}

.admin-reactions-table thead th:nth-child(3) {
    width: 14%;
}

.admin-reactions-table thead th:nth-child(4) {
    width: 14%;
}

.admin-reactions-table thead th:nth-child(5) {
    width: auto;
}

.admin-reactions-table thead th:nth-child(6) {
    width: 7%;
    text-align: center;
}

.admin-reactions-table thead th:nth-child(7) {
    width: 10%;
}

.admin-reactions-table thead th:nth-child(8),
.admin-reactions-table td.table-actions-cell {
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
}

.admin-reactions-table td:nth-child(6) {
    text-align: center;
}

.admin-reactions-table .admin-reaction-message-cell,
.admin-reactions-table .table-message-cell {
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    line-height: 1.48;
}

.admin-reactions-table .reaction-opinion-badge,
.admin-reactions-table .badge,
.admin-reactions-table .badge-soft {
    white-space: nowrap;
}

.admin-reactions-table .small-text {
    overflow-wrap: anywhere;
}

.admin-reactions-table .table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.admin-reactions-table .table-actions-cell .action-menu,
.admin-reactions-table .table-actions-cell .action-menu-toggle {
    margin-inline: auto !important;
}

.reaction-closed-feed-notice {
    max-width: 100%;
    margin: 14px 0 18px;
    padding: 14px 16px;
}

.reaction-closed-feed-notice span {
    line-height: 1.45;
}

@media (max-width: 1040px) {
    .admin-reactions-table-wrap {
        overflow: visible !important;
    }

    .admin-reactions-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto;
        border-spacing: 0 12px !important;
    }

    .admin-reactions-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .admin-reactions-table tbody,
    .admin-reactions-table tr,
    .admin-reactions-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .admin-reactions-table tbody tr {
        padding: 14px !important;
        border: 1px solid rgba(217, 177, 107, 0.18);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(4, 31, 26, 0.82), rgba(2, 18, 15, 0.48));
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    }

    .admin-reactions-table tbody td {
        display: grid !important;
        grid-template-columns: minmax(118px, 0.36fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 10px 0 !important;
        border-top: 1px solid rgba(217, 177, 107, 0.10) !important;
        background: transparent !important;
        text-align: left !important;
    }

    .admin-reactions-table tbody td:first-child {
        border-top: 0 !important;
        padding-top: 0 !important;
    }

    .admin-reactions-table tbody td::before {
        content: attr(data-label);
        color: rgba(217, 177, 107, 0.88);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .admin-reactions-table td.table-actions-cell {
        justify-items: stretch !important;
        text-align: left !important;
    }

    .admin-reactions-table td.table-actions-cell .action-menu,
    .admin-reactions-table td.table-actions-cell .action-menu-toggle {
        width: min(260px, 100%) !important;
        max-width: 260px !important;
    }
}

@media (max-width: 520px) {
    .admin-reactions-table tbody td {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admin-reactions-table tbody td::before {
        margin-bottom: 1px;
    }
}

/* Popup commentaires fermés + centrage définitif Actions */
.reaction-closed-popup {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.reaction-closed-popup.is-hidden {
    display: none !important;
}

.reaction-closed-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 13, 0.72);
    backdrop-filter: blur(8px);
}

.reaction-closed-popup-card {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    border: 1px solid rgba(230, 172, 95, 0.34);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(7, 47, 36, 0.98), rgba(1, 27, 21, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    padding: 28px;
    color: var(--text-soft);
}

.reaction-closed-popup-card .section-title {
    margin: 8px 0 10px;
    color: var(--cream);
}

.reaction-closed-popup-card p {
    margin: 0;
    line-height: 1.65;
}

.reaction-closed-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(230, 172, 95, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.reaction-closed-popup-close:hover,
.reaction-closed-popup-close:focus-visible {
    background: rgba(230, 172, 95, 0.18);
    outline: none;
}

.reaction-closed-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.table-actions-heading,
.site-table th.table-actions-heading,
.table th.table-actions-heading,
.admin-reactions-table th.table-actions-heading {
    text-align: center !important;
}

.table-actions-cell,
.admin-dashboard-page .table-actions-cell,
.site-table td.table-actions-cell,
.table td.table-actions-cell,
.admin-reactions-table td.table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.table-actions-cell > .action-menu,
.admin-dashboard-page .table-actions-cell > .action-menu,
.site-table td.table-actions-cell > .action-menu,
.table td.table-actions-cell > .action-menu,
.admin-reactions-table td.table-actions-cell > .action-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.table-actions-cell .action-menu-toggle,
.admin-dashboard-page .table-actions-cell .action-menu-toggle,
.site-table td.table-actions-cell .action-menu-toggle,
.table td.table-actions-cell .action-menu-toggle,
.admin-reactions-table td.table-actions-cell .action-menu-toggle {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 640px) {
    .reaction-closed-popup-card {
        padding: 24px 18px 20px;
        border-radius: 22px;
    }

    .reaction-closed-popup-actions > * {
        width: 100%;
        justify-content: center;
    }
}

/* Correctif dashboard Réactions : message en pop-up et Actions centrées */
.admin-reactions-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.admin-reactions-table th,
.admin-reactions-table td {
    overflow-wrap: anywhere;
}

.admin-reactions-table th:nth-child(1),
.admin-reactions-table td:nth-child(1) { width: 17%; }
.admin-reactions-table th:nth-child(2),
.admin-reactions-table td:nth-child(2) { width: 13%; }
.admin-reactions-table th:nth-child(3),
.admin-reactions-table td:nth-child(3) { width: 15%; }
.admin-reactions-table th:nth-child(4),
.admin-reactions-table td:nth-child(4) { width: 12%; }
.admin-reactions-table th:nth-child(5),
.admin-reactions-table td:nth-child(5) { width: 15%; }
.admin-reactions-table th:nth-child(6),
.admin-reactions-table td:nth-child(6) { width: 7%; }
.admin-reactions-table th:nth-child(7),
.admin-reactions-table td:nth-child(7) { width: 10%; }
.admin-reactions-table th:nth-child(8),
.admin-reactions-table td:nth-child(8) { width: 132px; }

.admin-reactions-table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.admin-reaction-message-popup-cell {
    max-width: none !important;
    min-width: 0 !important;
    white-space: normal;
}

.admin-reaction-message-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(244, 238, 223, 0.76);
    line-height: 1.35;
    margin-bottom: 9px;
}

.admin-comment-view-btn {
    width: 100%;
    max-width: 170px;
    min-height: 36px;
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.admin-reactions-table th.table-actions-heading,
.admin-reactions-table td.table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.admin-reactions-table td.table-actions-cell {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.admin-reactions-table td.table-actions-cell > .action-menu {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 118px !important;
    max-width: 118px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.admin-reactions-table td.table-actions-cell .action-menu-toggle {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    text-align: center !important;
}

.admin-comment-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.admin-comment-popup.is-hidden {
    display: none !important;
}

.admin-comment-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 13, 0.74);
    backdrop-filter: blur(8px);
}

.admin-comment-popup-card {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(78vh, 680px);
    overflow: auto;
    border: 1px solid rgba(230, 172, 95, 0.34);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(7, 47, 36, 0.98), rgba(1, 27, 21, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    padding: 28px;
    color: var(--text-soft);
}

.admin-comment-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(230, 172, 95, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.admin-comment-popup-close:hover,
.admin-comment-popup-close:focus-visible {
    background: rgba(230, 172, 95, 0.18);
    outline: none;
}

.admin-comment-popup-card .section-title {
    margin: 8px 44px 8px 0;
    color: var(--cream);
}

.admin-comment-popup-meta,
.admin-comment-popup-rating {
    margin: 0 0 12px;
    color: rgba(244, 238, 223, 0.70);
}

.admin-comment-popup-rating {
    font-weight: 800;
    color: #f8d486;
}

.admin-comment-popup-message {
    margin-top: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 249, 230, 0.92);
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-comment-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

body.has-open-popup {
    overflow: hidden;
}

@media (max-width: 980px) {
    .admin-reactions-table {
        table-layout: auto;
    }

    .admin-reactions-table-wrap {
        overflow-x: auto !important;
    }
}

@media (max-width: 760px) {
    .admin-reactions-table,
    .admin-reactions-table thead,
    .admin-reactions-table tbody,
    .admin-reactions-table tr,
    .admin-reactions-table th,
    .admin-reactions-table td {
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-reactions-table td.table-actions-cell {
        text-align: center !important;
    }

    .admin-reactions-table td.table-actions-cell > .action-menu,
    .admin-reactions-table td.table-actions-cell .action-menu-toggle {
        width: min(220px, 100%) !important;
        max-width: 220px !important;
    }

    .admin-comment-view-btn {
        max-width: 100%;
    }

    .admin-comment-popup-card {
        padding: 24px 18px 20px;
        border-radius: 22px;
    }

    .admin-comment-popup-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* Correctif final dashboard Réactions : commentaire compact + cheval seul */
.admin-reactions-table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.admin-reactions-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

.admin-reactions-table th,
.admin-reactions-table td {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

.admin-reactions-table th:nth-child(1),
.admin-reactions-table td:nth-child(1) { width: 16% !important; }
.admin-reactions-table th:nth-child(2),
.admin-reactions-table td:nth-child(2) { width: 15% !important; }
.admin-reactions-table th:nth-child(3),
.admin-reactions-table td:nth-child(3) { width: 13% !important; }
.admin-reactions-table th:nth-child(4),
.admin-reactions-table td:nth-child(4) { width: 12% !important; }
.admin-reactions-table th:nth-child(5),
.admin-reactions-table td:nth-child(5) { width: 15% !important; }
.admin-reactions-table th:nth-child(6),
.admin-reactions-table td:nth-child(6) { width: 7% !important; text-align: center !important; }
.admin-reactions-table th:nth-child(7),
.admin-reactions-table td:nth-child(7) { width: 10% !important; }
.admin-reactions-table th:nth-child(8),
.admin-reactions-table td:nth-child(8) { width: 132px !important; }

.admin-reactions-table .admin-reaction-message-popup-cell {
    text-align: center !important;
    vertical-align: middle !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.admin-reactions-table .admin-reaction-message-preview {
    display: none !important;
}

.admin-reactions-table .admin-comment-view-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 150px !important;
    max-width: 100% !important;
    min-height: 42px !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
    text-align: center !important;
}

.admin-reactions-table th.table-actions-heading,
.admin-reactions-table td.table-actions-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.admin-reactions-table td.table-actions-cell > .action-menu {
    width: 118px !important;
    max-width: 118px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
}

.admin-reactions-table td.table-actions-cell .action-menu-toggle {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    justify-content: center !important;
}

@media (max-width: 1040px) {
    .admin-reactions-table-wrap {
        overflow-x: visible !important;
    }

    .admin-reactions-table,
    .admin-reactions-table thead,
    .admin-reactions-table tbody,
    .admin-reactions-table tr,
    .admin-reactions-table th,
    .admin-reactions-table td {
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-reactions-table .admin-reaction-message-popup-cell {
        text-align: left !important;
    }

    .admin-reactions-table .admin-comment-view-btn {
        width: min(240px, 100%) !important;
        min-width: 0 !important;
    }
}

@media (max-width: 520px) {
    .admin-reactions-table .admin-comment-view-btn,
    .admin-reactions-table td.table-actions-cell > .action-menu,
    .admin-reactions-table td.table-actions-cell .action-menu-toggle {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Correctif tableau Gestion des pronostics : colonnes ordonnées et sans débordement */
.admin-predictions-table-wrap {
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.admin-predictions-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.admin-predictions-table thead th,
.admin-predictions-table tbody td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.admin-predictions-table thead th:nth-child(1) { width: 16%; }
.admin-predictions-table thead th:nth-child(2) { width: 8%; }
.admin-predictions-table thead th:nth-child(3) { width: 13%; }
.admin-predictions-table thead th:nth-child(4) { width: 14%; }
.admin-predictions-table thead th:nth-child(5) { width: 15%; }
.admin-predictions-table thead th:nth-child(6) { width: 8%; }
.admin-predictions-table thead th:nth-child(7) { width: 9%; }
.admin-predictions-table thead th:nth-child(8) { width: 12%; }
.admin-predictions-table thead th:nth-child(9),
.admin-predictions-table td.table-actions-cell {
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
}

.admin-predictions-table .prediction-course-code,
.admin-predictions-table .prediction-time-cell,
.admin-predictions-table .prediction-confidence-cell,
.admin-predictions-table .prediction-status-cell,
.admin-predictions-table td.table-actions-cell {
    text-align: center !important;
}

.admin-predictions-table .prediction-course-code strong,
.admin-predictions-table .prediction-horse-cell strong {
    color: #fff6dd;
}

.admin-predictions-table .prediction-race-name,
.admin-predictions-table .prediction-racecourse,
.admin-predictions-table .prediction-horse-cell {
    line-height: 1.35;
}

.admin-predictions-table .badge {
    max-width: 100%;
    justify-content: center;
    white-space: normal;
}

.admin-predictions-table td.table-actions-cell .action-menu,
.admin-predictions-table td.table-actions-cell .action-menu-toggle {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1040px) {
    .admin-predictions-table-wrap {
        overflow: visible !important;
    }

    .admin-predictions-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: auto;
        border-spacing: 0 12px !important;
    }

    .admin-predictions-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .admin-predictions-table tbody,
    .admin-predictions-table tr,
    .admin-predictions-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .admin-predictions-table tbody tr {
        padding: 14px !important;
        border: 1px solid rgba(217, 177, 107, 0.18);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(4, 31, 26, 0.82), rgba(2, 18, 15, 0.48));
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    }

    .admin-predictions-table tbody td {
        display: grid !important;
        grid-template-columns: minmax(118px, 0.36fr) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 10px 0 !important;
        border-top: 1px solid rgba(217, 177, 107, 0.10) !important;
        background: transparent !important;
        text-align: left !important;
    }

    .admin-predictions-table tbody td:first-child {
        border-top: 0 !important;
        padding-top: 0 !important;
    }

    .admin-predictions-table tbody td::before {
        content: attr(data-label);
        color: rgba(217, 177, 107, 0.88);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .admin-predictions-table td.table-actions-cell {
        justify-items: stretch !important;
        text-align: left !important;
    }

    .admin-predictions-table td.table-actions-cell .action-menu,
    .admin-predictions-table td.table-actions-cell .action-menu-toggle {
        width: min(260px, 100%) !important;
        max-width: 260px !important;
    }
}

@media (max-width: 520px) {
    .admin-predictions-table tbody td {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}


@media (max-width: 760px) {
    .feature-top-meta {
        top: 14px;
        right: 14px;
        left: 14px;
        max-width: none;
        justify-content: flex-end;
    }

    .feature-top-date,
    .feature-top-time,
    .feature-top-code {
        min-height: 30px;
        font-size: 0.68rem;
        letter-spacing: 0.035em;
    }

    .feature-top-date {
        padding: 7px 10px;
        max-width: calc(100% - 78px);
        white-space: normal;
        text-align: right;
    }

    .feature-top-time,
    .feature-top-code {
        padding: 7px 10px;
    }

    .feature-confidence-meta {
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .feature-title-meta {
        flex-wrap: wrap;
    }

    .feature-confidence-meta .feature-top-date {
        max-width: none;
        text-align: left;
    }
}

.admin-filter-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 12px;
}

.admin-filter-form .form-field {
    min-width: min(100%, 280px);
    margin: 0;
}

.badge-hidden {
    background: rgba(191, 96, 96, 0.22);
    color: #ffd6d6;
}


/* Mise en avant du cheval du jour et mention responsable */
.cheval-day-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: stretch;
}


.cheval-day-card {
    min-height: 460px;
}

.cheval-day-card::before {
    background:
        linear-gradient(90deg, rgba(4, 27, 23, 0.98) 0%, rgba(4, 27, 23, 0.90) 48%, rgba(4, 27, 23, 0.50) 76%, rgba(4, 27, 23, 0.16) 100%);
}

.cheval-day-content {
    width: min(66%, 620px);
    gap: 16px;
}

.cheval-day-main {
    width: min(100%, 560px);
    margin: 2px auto 0;
    padding: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cheval-day-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.daily-pick-label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(217, 177, 107, 0.20);
    color: var(--gold-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cheval-day-date {
    color: #fff2d6;
    font-size: 0.86rem;
    font-weight: 700;
}

.daily-pick-name {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 11px 16px;
    border: 1px solid rgba(217, 177, 107, 0.34);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(217, 177, 107, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: #fff7e8;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.cheval-day-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cheval-day-detail {
    display: grid;
    gap: 5px;
    min-height: 88px;
    padding: 13px 14px;
    border: 1px solid rgba(217, 177, 107, 0.25);
    border-radius: 18px;
    background: rgba(3, 30, 25, 0.72);
}

.cheval-day-detail-icon {
    font-size: 1rem;
    line-height: 1;
}

.cheval-day-detail-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cheval-day-detail strong {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.cheval-day-race-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cheval-day-race-box > div {
    padding: 13px 14px;
    border: 1px solid rgba(217, 177, 107, 0.25);
    border-radius: 18px;
    background: rgba(3, 30, 25, 0.72);
}

.cheval-day-race-box span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cheval-day-race-box strong {
    color: var(--text);
    line-height: 1.35;
}

.prediction-disclaimer {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    border-radius: 16px;
    background: rgba(217, 177, 107, 0.07);
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.prediction-disclaimer-hero {
    max-width: 60ch;
}

.confidence-reminder {
    display: grid;
    gap: 6px;
    margin: 22px 0 16px;
    padding: 14px 15px;
    border: 1px solid rgba(217, 177, 107, 0.20);
    border-radius: 16px;
    background: rgba(217, 177, 107, 0.06);
    color: var(--text-soft);
    line-height: 1.55;
}

.confidence-reminder strong {
    color: var(--gold-strong);
}

@media (max-width: 900px) {
    .cheval-day-layout {
        grid-template-columns: 1fr;
    }

    .cheval-day-content {
        width: min(100%, 620px);
    }

    .cheval-confidence-card {
        max-width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 760px) {
    .cheval-day-card {
        min-height: 0;
    }

    .cheval-day-content {
        width: 100%;
    }

    .cheval-day-main {
        padding: 0;
    }

    .daily-pick-name {
        font-size: clamp(1.22rem, 6.2vw, 1.55rem);
    }

    .cheval-day-details,
    .cheval-day-race-box {
        grid-template-columns: 1fr;
    }

    .cheval-day-detail {
        min-height: 0;
    }
}

/* Badge sobre du bloc "Le cheval du jour" */
.cheval-day-title-row.cheval-day-title-badge {
    position: relative;
    width: min(100%, 560px);
    margin: 0 auto 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(217, 177, 107, 0.30);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(217, 177, 107, 0.16), rgba(217, 177, 107, 0.055) 44%, rgba(3, 30, 25, 0.50)),
        rgba(4, 27, 23, 0.62);
    box-shadow:
        inset 4px 0 0 rgba(239, 200, 127, 0.82),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.20);
    color: #ffe2a4;
    text-transform: uppercase;
}

.cheval-day-title-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cheval-day-title-icon.kicker-box {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 224, 154, 0.42);
    border-radius: 12px;
    background: rgba(217, 177, 107, 0.13);
    color: var(--gold-strong);
    box-shadow: none;
    font-size: 0.82rem;
}

.cheval-day-title-text {
    min-width: 0;
    overflow: hidden;
    color: #fff3d2;
    font-size: clamp(0.82rem, 1.45vw, 0.95rem);
    font-weight: 950;
    letter-spacing: 0.075em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cheval-day-date-title {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    border-radius: 999px;
    background: rgba(3, 30, 25, 0.58);
    color: rgba(255, 242, 214, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .cheval-day-title-row.cheval-day-title-badge {
        width: 100%;
        margin: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        border-radius: 16px;
    }

    .cheval-day-date-title {
        align-self: flex-start;
        white-space: normal;
    }
}

/* Correctif accueil : lisibilité du bloc "Pourquoi nous suivre" */
@media (max-width: 860px) {
    .home-why-card .section-kicker,
    .home-why-card .value-list li > span:last-child {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .home-why-card .section-kicker .kicker-box {
        flex-basis: 18px;
    }

    .home-why-card .value-list li {
        gap: 12px;
    }
}


/* Gestion des pronostics : affichage en cartes lisibles au lieu d'un tableau large */
.admin-predictions-list {
    display: grid;
    gap: 16px;
    margin-top: 0;
}

.admin-prediction-card,
.admin-empty-state {
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(217, 177, 107, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(2, 22, 18, 0.58);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-prediction-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
}

.admin-prediction-main {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.admin-prediction-date,
.admin-prediction-horse,
.admin-prediction-info {
    min-width: 0;
}

.admin-prediction-date span,
.admin-prediction-horse span,
.admin-prediction-info span {
    display: block;
    margin-bottom: 5px;
    color: rgba(217, 177, 107, 0.86);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-prediction-date strong,
.admin-prediction-horse strong,
.admin-prediction-info strong {
    display: block;
    color: #fff6dd;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-prediction-date strong {
    color: rgba(244, 238, 223, 0.78);
    font-size: 0.95rem;
}

.admin-prediction-horse strong {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.admin-prediction-status {
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
}

.admin-prediction-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(217, 177, 107, 0.12);
}

.admin-prediction-info {
    padding: 12px 13px;
    border: 1px solid rgba(217, 177, 107, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.026);
}

.admin-prediction-info strong {
    color: rgba(244, 238, 223, 0.86);
    font-size: 0.95rem;
}

.admin-prediction-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 126px;
}

.admin-prediction-actions form {
    margin: 0;
}

.admin-prediction-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    border-radius: 13px;
    white-space: nowrap;
}

.admin-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px;
    color: rgba(244, 238, 223, 0.76);
}

.admin-empty-state strong {
    color: #fff6dd;
}

@media (max-width: 980px) {
    .admin-prediction-card {
        grid-template-columns: 1fr;
    }

    .admin-prediction-main {
        grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr) auto;
    }

    .admin-prediction-actions {
        flex-direction: row;
        justify-content: flex-start;
        min-width: 0;
    }

    .admin-prediction-actions form,
    .admin-prediction-actions .action-btn {
        width: auto;
    }

    .admin-prediction-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-prediction-card {
        padding: 15px;
        border-radius: 18px;
    }

    .admin-prediction-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-prediction-status {
        justify-content: flex-start;
        min-width: 0;
    }

    .admin-prediction-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-prediction-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-prediction-actions form,
    .admin-prediction-actions .action-btn {
        width: 100%;
    }
}

/* Gestion des pronostics : bouton Actions sur les cartes */
.admin-prediction-actions {
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.admin-card-action-menu {
    width: 132px;
    max-width: 132px;
}

.admin-card-action-menu .action-menu-toggle {
    min-height: 42px;
    border-color: rgba(217, 177, 107, 0.28);
    background: rgba(217, 177, 107, 0.08);
    color: #fff6dd;
    font-weight: 900;
}

.admin-card-action-menu[open] .action-menu-toggle,
.admin-card-action-menu .action-menu-toggle:hover {
    background: rgba(217, 177, 107, 0.16);
    border-color: rgba(217, 177, 107, 0.48);
}

.admin-card-action-menu .action-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    width: 176px;
    margin-top: 0;
}

.admin-card-action-menu .action-menu-panel .action-btn,
.admin-card-action-menu .action-menu-panel .btn-danger {
    min-height: 38px;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 980px) {
    .admin-prediction-actions {
        justify-content: flex-start;
    }

    .admin-card-action-menu .action-menu-panel {
        left: 0;
        right: auto;
    }
}

@media (max-width: 700px) {
    .admin-card-action-menu,
    .admin-card-action-menu .action-menu-toggle {
        width: 100%;
        max-width: 100%;
    }

    .admin-card-action-menu .action-menu-panel {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
}

/* Dashboard admin : affichage en cartes pour résultats, membres et réactions */
.admin-management-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.admin-management-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(217, 177, 107, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(217, 177, 107, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(2, 22, 18, 0.58);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-management-main {
    display: grid;
    grid-template-columns: minmax(145px, 0.34fr) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.admin-management-date,
.admin-management-title,
.admin-management-info {
    min-width: 0;
}

.admin-management-date span,
.admin-management-title span,
.admin-management-info span {
    display: block;
    margin-bottom: 5px;
    color: rgba(217, 177, 107, 0.86);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-management-date strong,
.admin-management-title strong,
.admin-management-info strong {
    display: block;
    color: #fff6dd;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.admin-management-date strong {
    color: rgba(244, 238, 223, 0.78);
    font-size: 0.95rem;
}

.admin-management-title strong {
    font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.admin-management-title small {
    display: block;
    margin-top: 4px;
    color: rgba(244, 238, 223, 0.64);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.admin-management-status {
    display: flex;
    justify-content: flex-end;
    min-width: max-content;
}

.admin-management-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(217, 177, 107, 0.12);
}

.admin-member-details,
.admin-reaction-details {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.admin-reaction-details {
    grid-template-columns: minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(260px, 2fr) minmax(90px, 0.45fr);
}

.admin-management-info {
    padding: 12px 13px;
    border: 1px solid rgba(217, 177, 107, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.026);
}

.admin-management-info strong {
    color: rgba(244, 238, 223, 0.86);
    font-size: 0.95rem;
}

.admin-management-message {
    display: grid;
    gap: 8px;
}

.admin-management-message .admin-comment-view-btn {
    width: fit-content;
}

.admin-management-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    position: relative;
    z-index: 2;
}

.admin-management-actions form {
    width: 100%;
    margin: 0;
}

.admin-management-actions .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
}

@media (max-width: 1100px) {
    .admin-management-details,
    .admin-member-details {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-reaction-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-management-message {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .admin-management-card {
        grid-template-columns: 1fr;
    }

    .admin-management-main {
        grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr) auto;
    }

    .admin-management-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media (max-width: 700px) {
    .admin-management-card {
        padding: 15px;
        border-radius: 18px;
    }

    .admin-management-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-management-status {
        justify-content: flex-start;
        min-width: 0;
    }

    .admin-management-details,
    .admin-member-details,
    .admin-reaction-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-management-actions,
    .admin-management-message .admin-comment-view-btn {
        width: 100%;
    }
}

/* Page resultats publique : affichage en blocs/cartes regulieres */
.public-results-grid-normal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 18px;
}

.public-result-card-normal {
    min-height: 340px;
    height: 100%;
    grid-template-rows: auto auto 1fr auto;
    overflow: hidden;
}

.public-result-card-normal .public-result-topline {
    min-height: 36px;
}

.public-result-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.public-result-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 10px;
	margin-bottom:10px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.26);
    background: rgba(217, 177, 107, 0.08);
    color: var(--gold-strong);
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}


.public-result-horse-line {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(217, 177, 107, 0.26);
    background: linear-gradient(135deg, rgba(217, 177, 107, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow: 0 10px 24px rgba(10, 18, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.public-result-horse-number {
    display: inline;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold-strong);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.public-result-horse-line h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding-top: 0;
    color: var(--text-color);
}

.public-result-card-normal h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.public-result-card-normal .public-result-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
}

.public-result-card-normal .public-result-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-result-odds-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
}

.public-result-odds-row .public-result-odd {
    display: grid;
    gap: 6px;
    align-content: center;
    min-height: 82px;
}

.public-result-odds-row .public-result-odd strong {
    word-break: break-word;
}

@media (max-width: 1180px) {
    .public-results-grid-normal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-results-grid-normal {
        grid-template-columns: 1fr;
    }

    .public-result-card-normal {
        min-height: 0;
    }

    .public-result-odds-row {
        grid-template-columns: 1fr;
    }
}

.comment-read-more {
    margin-top: 8px;
}

.comment-read-more summary,
.comment-read-more-link {
    color: var(--primary, #8b5a2b);
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    margin-top: 6px;
    text-decoration: none;
}

.comment-read-more summary:hover,
.comment-read-more-link:hover {
    text-decoration: underline;
}

.reaction-message-full {
    margin-top: 10px;
}

.reaction-facebook-card:target {
    outline: none;
    scroll-margin-top: 90px;
}

#community-feed .reaction-facebook-card:target,
#community-feed .community-reaction-card:target {
    background: rgba(217, 177, 107, 0.055);
}

#community-feed .reaction-facebook-card:target::after,
#community-feed .community-reaction-card:target::after {
    display: none;
}

/* Fil de la communauté : commentaires style X/Twitter harmonisé avec le site */
#community-feed .community-timeline {
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
}

#community-feed .community-reaction-card {
    position: relative;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(203, 164, 92, 0.14);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.012);
    box-shadow: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

#community-feed .community-reaction-card:last-child {
    border-bottom: 0;
}

#community-feed .community-reaction-card:hover {
    background: rgba(217, 177, 107, 0.045);
}

#community-feed .community-reaction-card::before {
    display: none;
}

#community-feed .reaction-facebook-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 20px 0;
}

#community-feed .reaction-avatar {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border: 1px solid rgba(239, 200, 127, 0.58);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 24%),
        linear-gradient(180deg, var(--gold-strong), #c7954d);
    color: #09251f;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

#community-feed .reaction-card-content {
    min-width: 0;
}

#community-feed .community-x-author-line {
    gap: 6px;
    margin-bottom: 0;
    line-height: 1.25;
}

#community-feed .reaction-author-name {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

#community-feed .reaction-author-handle,
#community-feed .reaction-author-city {
    color: rgba(244, 238, 223, 0.55);
    font-size: 0.9rem;
    font-weight: 600;
}

#community-feed .reaction-meta-row {
    gap: 7px;
    margin-top: 8px;
}

#community-feed .community-meta-chip {
    min-height: 26px;
    padding: 4px 9px;
    border-color: rgba(203, 164, 92, 0.16);
    background: rgba(255, 255, 255, 0.026);
    color: rgba(244, 238, 223, 0.66);
    font-size: 0.82rem;
    font-weight: 650;
}

#community-feed .community-horse-chip {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
    border-color: rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.065);
    color: rgba(244, 238, 223, 0.76);
}

#community-feed .reaction-rating-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    font-size: 0.78rem;
}

#community-feed .reaction-message-box {
    margin: 9px 20px 0 81px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#community-feed .reaction-message-box .reaction-message {
    color: rgba(244, 238, 223, 0.9);
    font-size: 1rem;
    line-height: 1.58;
}

#community-feed .comment-read-more summary {
    color: var(--gold-strong);
    font-size: 0.9rem;
}

#community-feed .community-actions-bar {
    margin: 10px 20px 0 81px;
    padding: 0 0 15px;
    border-top: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
}

#community-feed .community-actions-bar .reaction-like-form {
    display: inline-flex;
}

#community-feed .community-actions-bar .reaction-like-button {
    min-width: 0;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(244, 238, 223, 0.66);
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 800;
}

#community-feed .community-actions-bar .reaction-like-button:hover {
    border-color: rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.09);
    color: var(--gold-strong);
}

#community-feed .community-actions-bar .reaction-like-button.is-liked,
#community-feed .community-actions-bar .reaction-like-button:disabled {
    opacity: 1;
    border-color: rgba(217, 177, 107, 0.26);
    background: rgba(217, 177, 107, 0.11);
    color: var(--gold-strong);
}

#community-feed .community-actions-bar .reaction-likes-count {
    order: 2;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0 !important;
    padding: 0;
    color: rgba(244, 238, 223, 0.58);
    font-size: 0.9rem;
    font-weight: 750;
    white-space: nowrap;
}

#community-feed .community-actions-bar .reaction-likes-count span {
    color: var(--gold-strong);
}

@media (max-width: 720px) {
    #community-feed .community-timeline {
        border-radius: 16px;
    }

    #community-feed .reaction-facebook-head {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 11px;
        padding: 16px 15px 0;
    }

    #community-feed .reaction-avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 0.94rem;
    }

    #community-feed .reaction-message-box,
    #community-feed .community-actions-bar {
        margin-left: 70px;
        margin-right: 15px;
    }

    #community-feed .community-horse-chip {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #community-feed .reaction-facebook-head {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 15px 13px 0;
    }

    #community-feed .reaction-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 0.88rem;
    }

    #community-feed .reaction-author-handle,
    #community-feed .reaction-author-city {
        font-size: 0.84rem;
    }

    #community-feed .reaction-message-box,
    #community-feed .community-actions-bar {
        margin-left: 63px;
        margin-right: 13px;
    }

    #community-feed .community-actions-bar {
        gap: 10px;
        padding-bottom: 13px;
    }
}


/* Ajustements commentaires : note séparée du cheval + mini fil X harmonisé */
#community-feed .community-horse-chip {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

#community-feed .community-rating-chip {
    padding: 0;
    border-color: transparent;
    background: transparent;
}

#community-feed .community-rating-chip .reaction-rating-badge {
    min-height: 26px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.09);
}

.cheval-latest-timeline {
    gap: 14px;
}

.cheval-latest-comment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(203, 164, 92, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014));
    box-shadow: 0 14px 28px rgba(5, 24, 19, 0.16);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cheval-latest-comment-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 177, 107, 0.32);
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.055), rgba(255, 255, 255, 0.016));
}

.cheval-latest-comment-card::before {
    display: none;
}

.cheval-latest-comment-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 16px 0;
}

.cheval-latest-comment-head .reaction-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border: 1px solid rgba(239, 200, 127, 0.58);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), transparent 24%),
        linear-gradient(180deg, var(--gold-strong), #c7954d);
    color: #09251f;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.18);
}

.cheval-latest-comment-content {
    min-width: 0;
}

.cheval-latest-author-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    line-height: 1.25;
}

.cheval-latest-author-line .reaction-author-name {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 900;
}

.cheval-latest-author-line .reaction-author-handle,
.cheval-latest-author-line .reaction-author-city {
    color: rgba(244, 238, 223, 0.55);
    font-size: 0.88rem;
    font-weight: 650;
}

.cheval-latest-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.cheval-latest-meta-row .community-meta-chip {
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid rgba(203, 164, 92, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.026);
    color: rgba(244, 238, 223, 0.66);
    font-size: 0.8rem;
    font-weight: 650;
}

.cheval-latest-horse-chip {
    color: rgba(244, 238, 223, 0.76) !important;
    background: rgba(217, 177, 107, 0.065) !important;
    border-color: rgba(217, 177, 107, 0.22) !important;
}

.cheval-latest-rating-chip {
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
}

.cheval-latest-rating-chip .reaction-rating-badge {
    min-height: 25px;
    padding: 4px 8px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.09);
    font-size: 0.76rem;
}

.cheval-latest-message-box {
    margin: 10px 16px 0 74px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cheval-latest-message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: rgba(244, 238, 223, 0.9);
    font-size: 0.96rem;
    line-height: 1.5;
}

.cheval-latest-message-box .comment-read-more-link {
    margin-top: 7px;
    color: var(--gold-strong);
    font-size: 0.88rem;
}

.cheval-latest-actions-bar {
    margin: auto 16px 0 74px;
    padding: 11px 0 15px;
    border-top: 0;
    justify-content: flex-start;
}

.cheval-latest-actions-bar .reaction-likes-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0 !important;
    padding: 0;
    color: rgba(244, 238, 223, 0.58);
    font-size: 0.88rem;
    font-weight: 750;
}

.cheval-latest-actions-bar .reaction-likes-count span {
    color: var(--gold-strong);
}

@media (max-width: 720px) {
    .cheval-latest-comment-head {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 15px 14px 0;
    }

    .cheval-latest-comment-head .reaction-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 0.9rem;
    }

    .cheval-latest-message-box,
    .cheval-latest-actions-bar {
        margin-left: 66px;
        margin-right: 14px;
    }
}

@media (max-width: 480px) {
    .cheval-latest-meta-row .community-meta-chip {
        max-width: 100%;
    }

    .cheval-latest-message-box,
    .cheval-latest-actions-bar {
        margin-left: 14px;
    }
}

/* Ajustement demandé : plus de @ pseudo + pronostic/date alignés sous Cheval du jour */
#community-feed .community-comment-meta-stack,
.cheval-latest-meta-row.cheval-comment-meta-stack {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

#community-feed .community-comment-meta-line,
.cheval-comment-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

#community-feed .community-comment-horse-line,
.cheval-comment-horse-line {
    width: 100%;
}

#community-feed .community-comment-secondary-line,
.cheval-comment-secondary-line {
    width: 100%;
}

#community-feed .community-comment-secondary-line .community-pronostic-chip,
#community-feed .community-comment-secondary-line .community-date-chip,
.cheval-comment-secondary-line .cheval-latest-pronostic-chip,
.cheval-comment-secondary-line .cheval-latest-date-chip {
    white-space: nowrap;
}

#community-feed .community-horse-chip,
.cheval-latest-horse-chip {
    width: auto;
    max-width: 100%;
}

@media (max-width: 520px) {
    #community-feed .community-comment-secondary-line,
    .cheval-comment-secondary-line {
        align-items: flex-start;
        flex-direction: column;
    }

    #community-feed .community-comment-secondary-line .community-pronostic-chip,
    #community-feed .community-comment-secondary-line .community-date-chip,
    .cheval-comment-secondary-line .cheval-latest-pronostic-chip,
    .cheval-comment-secondary-line .cheval-latest-date-chip {
        white-space: normal;
    }
}

/* Ajustements finaux demandés : derniers commentaires propres + fil communauté mobile façon X/Twitter */
.cheval-community-row > .card.card-pad {
    overflow: hidden;
}

.cheval-comments-heading {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(203, 164, 92, 0.14);
}

.live-comments-wrapper {
    display: grid;
    gap: 14px;
}

.live-comments-status {
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(203, 164, 92, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.024);
    color: rgba(244, 238, 223, 0.58);
    font-size: 0.8rem;
    font-weight: 700;
}

.cheval-latest-timeline.cheval-latest-comments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cheval-latest-comment-card {
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.016));
    box-shadow: 0 12px 24px rgba(5, 24, 19, 0.14);
}

.cheval-latest-comment-card:hover {
    transform: translateY(-1px);
}

.cheval-latest-comment-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 0;
}

.cheval-latest-comment-head .reaction-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 0.9rem;
}

.cheval-latest-author-line {
    min-width: 0;
}

.cheval-latest-author-line .reaction-author-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cheval-latest-meta-row.cheval-comment-meta-stack {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.cheval-latest-meta-row .community-meta-chip {
    min-width: 0;
    min-height: 26px;
    border-radius: 999px;
}

.cheval-comment-horse-line,
.cheval-comment-secondary-line {
    width: 100%;
}

.cheval-latest-horse-chip {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    border-radius: 14px !important;
    white-space: normal;
}

.cheval-comment-secondary-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.cheval-comment-secondary-line .cheval-latest-pronostic-chip,
.cheval-comment-secondary-line .cheval-latest-date-chip {
    justify-content: center;
    text-align: center;
    white-space: normal;
}

.cheval-comment-secondary-line .cheval-latest-rating-chip {
    grid-column: 1 / -1;
    justify-self: start;
    width: fit-content;
}

.cheval-latest-message-box {
    margin: 10px 0 0 53px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 164, 92, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.cheval-latest-message {
    -webkit-line-clamp: 3;
    font-size: 0.94rem;
    line-height: 1.48;
}

.cheval-latest-actions-bar {
    margin: 9px 0 0 53px;
    padding: 0;
}

.cheval-latest-actions-bar .reaction-likes-count {
    min-height: 28px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    .cheval-comments-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .cheval-comments-add-btn {
        width: 100%;
        justify-content: center;
    }

    .cheval-latest-timeline.cheval-latest-comments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .cheval-latest-comment-card {
        padding: 13px;
        border-radius: 16px;
    }

    .cheval-latest-comment-head {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 0;
    }

    .cheval-latest-comment-head .reaction-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 0.84rem;
    }

    .cheval-comment-secondary-line {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        flex-direction: initial;
    }

    .cheval-comment-secondary-line .cheval-latest-pronostic-chip,
    .cheval-comment-secondary-line .cheval-latest-date-chip {
        white-space: normal;
    }

    .cheval-latest-message-box,
    .cheval-latest-actions-bar {
        margin-left: 48px;
        margin-right: 0;
    }
}

@media (max-width: 720px) {
    #community-feed .community-feed-header {
        align-items: flex-start;
        gap: 10px;
    }

    #community-feed .community-feed-count {
        align-self: flex-start;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    #community-feed .community-timeline {
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.012);
    }

    #community-feed .community-reaction-card {
        background: transparent;
    }

    #community-feed .reaction-facebook-head {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 14px 12px 0;
    }

    #community-feed .reaction-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 0.9rem;
    }

    #community-feed .community-x-author-line {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 5px;
    }

    #community-feed .reaction-author-name {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #community-feed .reaction-author-city {
        font-size: 0.82rem;
    }

    #community-feed .community-comment-meta-stack {
        display: grid;
        gap: 6px;
        margin-top: 7px;
    }

    #community-feed .community-comment-meta-line {
        min-width: 0;
    }

    #community-feed .community-horse-chip {
        display: flex;
        width: 100%;
        max-width: 100%;
        padding: 7px 9px;
        border-radius: 14px;
        white-space: normal;
    }

    #community-feed .community-comment-secondary-line {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        align-items: stretch;
        flex-direction: initial;
    }

    #community-feed .community-pronostic-chip,
    #community-feed .community-date-chip {
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    #community-feed .community-rating-chip {
        grid-column: 1 / -1;
        justify-self: start;
        width: fit-content;
    }

    #community-feed .reaction-message-box {
        margin: 9px 12px 0 64px;
    }

    #community-feed .reaction-message-box .reaction-message {
        font-size: 0.96rem;
        line-height: 1.52;
    }

    #community-feed .community-actions-bar {
        margin: 10px 12px 0 64px;
        padding-bottom: 14px;
    }

    #community-feed .community-actions-bar .reaction-like-button {
        min-height: 32px;
        padding: 6px 10px;
    }
}

@media (max-width: 430px) {
    #community-feed .reaction-facebook-head {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        padding: 13px 10px 0;
    }

    #community-feed .reaction-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 0.84rem;
    }

    #community-feed .community-meta-chip {
        padding: 5px 7px;
        font-size: 0.76rem;
    }

    #community-feed .reaction-message-box,
    #community-feed .community-actions-bar {
        margin-left: 57px;
        margin-right: 10px;
    }

    #community-feed .community-actions-bar {
        gap: 8px;
    }
}


/* Derniers commentaires de la page cheval du jour : reprise du style mobile X de la page réactions */
.cheval-latest-timeline.cheval-latest-comments-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.cheval-latest-comment-card.community-reaction-card {
    position: relative;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(217, 177, 107, 0.20);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.cheval-latest-comment-card.community-reaction-card::before {
    content: "";
    position: absolute;
    inset: 16px auto 16px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, var(--gold-strong), rgba(217, 177, 107, 0.15));
}

.cheval-latest-comment-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.cheval-latest-comment-head .reaction-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
    font-size: 0.88rem;
}

.cheval-latest-comment-content {
    min-width: 0;
}

.cheval-latest-author-line {
    gap: 8px;
    margin-bottom: 0;
}

.cheval-latest-author-line .reaction-author-name {
    font-size: 1rem;
    line-height: 1.25;
}

.cheval-latest-meta-row.cheval-comment-meta-stack {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.cheval-latest-meta-row .community-meta-chip {
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.cheval-comment-horse-line,
.cheval-comment-secondary-line {
    width: 100%;
}

.cheval-latest-horse-chip {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
    border-radius: 16px;
}

.cheval-comment-secondary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cheval-comment-secondary-line .cheval-latest-pronostic-chip,
.cheval-comment-secondary-line .cheval-latest-date-chip,
.cheval-comment-secondary-line .cheval-latest-rating-chip {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
}

.cheval-latest-rating-chip .reaction-rating-badge {
    border-radius: 999px;
}

.cheval-latest-message-box {
    margin: 14px 0 0;
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(217, 177, 107, 0.12);
    background: rgba(2, 20, 17, 0.24);
}

.cheval-latest-message {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cheval-latest-message-box .comment-read-more-link {
    display: inline-flex;
    margin-top: 10px;
}

.cheval-latest-actions-bar.community-actions-bar {
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cheval-latest-actions-bar .reaction-likes-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-weight: 700;
}

.cheval-latest-actions-bar .reaction-likes-count span {
    color: var(--accent);
}

@media (max-width: 640px) {
    .cheval-latest-comment-card.community-reaction-card {
        padding: 15px 14px;
        border-radius: 16px;
    }

    .cheval-latest-comment-head {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
    }

    .cheval-latest-comment-head .reaction-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        flex-basis: 38px;
        font-size: 0.82rem;
    }

    .cheval-latest-meta-row .community-meta-chip {
        width: fit-content;
        max-width: 100%;
    }

    .cheval-comment-secondary-line {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cheval-latest-message-box,
    .cheval-latest-actions-bar.community-actions-bar {
        margin-top: 12px;
    }
}


/* Derniers commentaires : popup "Plus d'info" pour alléger la carte */
.cheval-latest-comment-card.community-reaction-card {
    overflow: visible;
}

.cheval-author-with-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment-info-popover {
    position: relative;
    display: inline-flex;
    z-index: 4;
}

.comment-info-popover summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    background: rgba(217, 177, 107, 0.09);
    color: var(--gold-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.comment-info-popover summary::-webkit-details-marker {
    display: none;
}

.comment-info-popover summary::after {
    content: "›";
    transform: rotate(90deg);
    font-size: 0.92rem;
    line-height: 1;
}

.comment-info-popover[open] summary {
    background: rgba(217, 177, 107, 0.16);
    color: var(--text);
}

.comment-info-popover-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 9px);
    width: min(280px, calc(100vw - 42px));
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(217, 177, 107, 0.30);
    background:
        radial-gradient(circle at top right, rgba(217, 177, 107, 0.16), transparent 42%),
        rgba(8, 35, 29, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    color: var(--text);
}

.comment-info-title {
    color: var(--gold-strong);
    font-size: 0.86rem;
}

.comment-info-row {
    display: grid;
    gap: 4px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(217, 177, 107, 0.12);
}

.comment-info-row span:first-child {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-info-row strong {
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .comment-info-popover-panel {
        left: auto;
        right: 0;
        width: min(260px, calc(100vw - 32px));
    }

    .cheval-latest-message-box {
        margin-top: 13px;
    }
}


/* Fil de la communauté : popup "Plus d'info" comme sur la page cheval du jour */
.community-reaction-card {
    overflow: visible;
}

.community-author-with-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.community-reaction-card .reaction-message-box {
    margin-top: 14px;
}

@media (max-width: 720px) {
    .community-reaction-card .reaction-message-box,
    .community-reaction-card .community-actions-bar {
        margin-left: 0;
    }

    .community-author-with-info .comment-info-popover-panel {
        left: auto;
        right: 0;
    }
}


/* Correctif : popup Plus d'info non coupé + commentaires cheval du jour moins larges */
#community-feed,
#community-feed.community-feed-card,
#community-feed .community-timeline,
#community-feed .community-reaction-card,
.cheval-community-row > .card.card-pad,
.cheval-latest-timeline,
.cheval-latest-comment-card {
    overflow: visible !important;
}

#community-feed .community-timeline,
.cheval-latest-timeline {
    position: relative;
    z-index: 1;
}

#community-feed .community-reaction-card,
.cheval-latest-comment-card {
    position: relative;
    z-index: 1;
}

#community-feed .comment-info-popover,
.cheval-latest-comment-card .comment-info-popover {
    z-index: 80;
}

#community-feed .comment-info-popover[open],
.cheval-latest-comment-card .comment-info-popover[open] {
    z-index: 120;
}

#community-feed .comment-info-popover-panel,
.cheval-latest-comment-card .comment-info-popover-panel {
    z-index: 130;
    max-width: calc(100vw - 36px);
}

#community-feed .community-reaction-card:has(.comment-info-popover[open]),
.cheval-latest-comment-card:has(.comment-info-popover[open]) {
    z-index: 90;
}

.cheval-latest-timeline.cheval-latest-comments-grid {
    width: min(100%, 920px);
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
}

.cheval-latest-comment-card.community-reaction-card {
    max-width: 100%;
    padding: 14px !important;
}

.cheval-latest-message-box {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

@media (max-width: 860px) {
    .cheval-latest-timeline.cheval-latest-comments-grid {
        width: 100%;
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    #community-feed .community-author-with-info .comment-info-popover-panel,
    .cheval-author-with-info .comment-info-popover-panel {
        left: 0 !important;
        right: auto !important;
        width: min(260px, calc(100vw - 28px));
    }
}

@media (max-width: 430px) {
    #community-feed .community-author-with-info .comment-info-popover-panel,
    .cheval-author-with-info .comment-info-popover-panel {
        left: auto !important;
        right: 0 !important;
        width: min(248px, calc(100vw - 24px));
    }
}


/* Ajustement demandé : commentaires cheval du jour à gauche, sans like, et likes du fil sur une ligne mobile */
.cheval-latest-timeline.cheval-latest-comments-grid {
    width: min(100%, 860px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.cheval-latest-comment-card.community-reaction-card {
    max-width: 420px;
}

.cheval-latest-actions-bar {
    display: none !important;
}

@media (min-width: 861px) {
    .cheval-latest-timeline.cheval-latest-comments-grid {
        grid-template-columns: repeat(2, minmax(0, 420px)) !important;
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .cheval-latest-comment-card.community-reaction-card {
        max-width: 520px;
    }
}

/* Fil de la communauté mobile : bouton J'aime + compteur sur la même ligne */
@media (max-width: 640px) {
    #community-feed .community-actions-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    #community-feed .community-actions-bar .reaction-like-form {
        flex: 0 0 auto !important;
        min-width: 0;
    }

    #community-feed .community-actions-bar .reaction-like-button {
        width: auto !important;
        min-width: 0 !important;
        padding-inline: 12px;
        white-space: nowrap;
    }

    #community-feed .community-actions-bar .reaction-likes-count {
        flex: 0 1 auto !important;
        margin-left: 0 !important;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    #community-feed .community-actions-bar {
        gap: 7px !important;
    }

    #community-feed .community-actions-bar .reaction-like-button,
    #community-feed .community-actions-bar .reaction-likes-count {
        font-size: 0.82rem;
        padding-inline: 9px;
    }
}


/* Bloc de don placé au-dessus du titre "Laisser une réaction" */
.facebook-composer-card > .donation-slot {
    margin: 0 auto 22px;
}

.facebook-composer-card > .donation-slot-rectangle {
    max-width: 100%;
    min-height: 0;
    padding: 20px;
}

.facebook-composer-card > .donation-slot + .section-kicker {
    margin-top: 0;
}


/* Réorganisation du bloc "Réactions de la communauté" */
.reactions-community-hero.reactions-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: clamp(20px, 2.4vw, 28px);
}

.reactions-community-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 18px;
    align-items: stretch;
}

.reactions-community-top .reactions-hero-content {
    align-content: start;
    gap: 8px;
}

.reactions-community-hero .reactions-hero-title {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.reactions-community-hero .reactions-hero-text {
    max-width: 620px;
    font-size: 0.98rem;
}

.reaction-featured-horse-card {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 177, 107, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.reaction-featured-horse-card span,
.reaction-featured-horse-card small {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.reaction-featured-horse-card strong {
    color: #f8e7b5;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    line-height: 1.15;
}

.reaction-community-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(217, 177, 107, 0.15);
    border-radius: 20px;
    background: rgba(2, 20, 17, 0.22);
}

.reaction-date-filter-clean {
    max-width: none;
    margin: 0;
}

.reaction-date-filter-clean label {
    font-size: 0.88rem;
}

.reaction-hero-actions-clean {
    margin: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.reactions-hero-stats-clean {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.reactions-hero-stats-clean .reaction-stat-card {
    min-height: 0;
    padding: 13px 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reactions-hero-stats-clean .reaction-stat-card strong {
    font-size: clamp(1.25rem, 2.8vw, 1.7rem);
}

@media (max-width: 920px) {
    .reactions-community-top,
    .reaction-community-toolbar,
    .reactions-hero-stats-clean {
        grid-template-columns: 1fr;
    }

    .reaction-hero-actions-clean {
        justify-content: stretch;
    }

    .reaction-hero-actions-clean .btn,
    .reaction-hero-actions-clean .btn-ghost {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .reactions-community-hero.reactions-hero-card {
        gap: 14px;
    }

    .reaction-community-toolbar {
        padding: 12px;
    }

    .reaction-hero-actions-clean {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reactions-hero-stats-clean .reaction-stat-card {
        padding: 11px 12px;
    }
}


/* Réactions de la communauté : badges compacts alignés sur une seule ligne */
.reactions-hero-stats-clean {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.reactions-hero-stats-clean .reaction-stat-card {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 8px 11px !important;
    border-radius: 999px !important;
    gap: 7px;
    white-space: nowrap;
}

.reactions-hero-stats-clean .reaction-stat-card span {
    font-size: 0.78rem;
}

.reactions-hero-stats-clean .reaction-stat-card strong {
    font-size: 0.98rem !important;
    line-height: 1;
}

@media (max-width: 920px) {
    .reactions-hero-stats-clean {
        display: flex !important;
        grid-template-columns: none !important;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .reactions-hero-stats-clean {
        gap: 7px;
        margin-right: -6px;
        padding-right: 6px;
    }

    .reactions-hero-stats-clean .reaction-stat-card {
        padding: 7px 10px !important;
    }

    .reactions-hero-stats-clean .reaction-stat-card span {
        font-size: 0.74rem;
    }

    .reactions-hero-stats-clean .reaction-stat-card strong {
        font-size: 0.9rem !important;
    }
}


/* Espacement du bloc de dons sous le formulaire de réaction */
.facebook-composer-card > form + .donation-slot,
.facebook-composer-card > .reaction-composer-form + .donation-slot {
    margin-top: 26px !important;
}

.facebook-composer-card > form + .donation-slot::before,
.facebook-composer-card > .reaction-composer-form + .donation-slot::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -14px;
    height: 1px;
    background: rgba(217, 177, 107, 0.14);
}

@media (max-width: 640px) {
    .facebook-composer-card > form + .donation-slot,
    .facebook-composer-card > .reaction-composer-form + .donation-slot {
        margin-top: 22px !important;
    }
}


/* Cheval du jour : confiance en badge à côté du départ */
.cheval-confidence-badge-inline {
    border-color: rgba(217, 177, 107, 0.34);
    background: rgba(217, 177, 107, 0.10);
}

.cheval-confidence-badge-inline strong {
    color: var(--gold-strong);
}

.cheval-reminder-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
    height: auto;
    min-height: 0;
    gap: 16px;
}

.cheval-reminder-card .confidence-reminder {
    margin-top: 0;
}

.cheval-reminder-card .feature-side-actions {
    margin-top: 0;
}

/* Cheval du jour : colonne droite avec rappel + bloc de dons */
.cheval-side-column {
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: 16px;
    min-width: 0;
}

.cheval-side-column .cheval-reminder-card {
    width: 100%;
}

.cheval-side-column .donation-slot {
    width: 100%;
    margin: 0;
}

.cheval-side-column .donation-slot-rectangle {
    min-height: 0;
}

@media (max-width: 900px) {
    .cheval-side-column {
        width: 100%;
        justify-self: stretch;
    }
}


/* Likes : connexion obligatoire */
.reaction-like-login {
    text-decoration: none;
    white-space: nowrap;
}

/* Accueil : titre normal pour l'historique du cheval du jour */
.home-history-kicker {
    max-width: none;
    line-height: inherit;
    white-space: nowrap;
}

.home-history-kicker .kicker-box {
    flex: 0 0 20px;
}

/* Page réactions : bloc de dons sous le bloc "Laisser une réaction" */
.reaction-left-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.reaction-left-column > .donation-slot {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.reaction-left-column > .donation-slot-rectangle {
    min-height: 0;
    padding: 20px;
}


/* Amélioration page Cheval du jour : badge "Derniers commentaires" */
.cheval-comments-title-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(217, 177, 107, 0.28);
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 28%),
        linear-gradient(135deg, rgba(217, 177, 107, 0.20), rgba(255, 255, 255, 0.035));
    box-shadow: 0 12px 26px rgba(5, 24, 19, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f8e7b5;
    letter-spacing: 0.01em;
}

.cheval-comments-title-badge .kicker-box {
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid rgba(255, 229, 175, 0.42);
    background: linear-gradient(180deg, #f0c46f, #c7954d);
    color: #08251f;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.20);
}

.cheval-comments-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
    font-weight: 950;
}

.cheval-comments-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(248, 231, 181, 0.22);
    border-radius: 999px;
    background: rgba(2, 20, 17, 0.34);
    color: rgba(248, 231, 181, 0.86);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.cheval-latest-comment-card .comment-info-popover summary.comment-info-trigger {
    min-height: 28px;
    padding: 6px 10px;
    border-color: rgba(248, 231, 181, 0.28);
    background:
        linear-gradient(135deg, rgba(217, 177, 107, 0.18), rgba(255, 255, 255, 0.04));
    color: #f8e7b5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cheval-latest-comment-card .comment-info-popover summary.comment-info-trigger span[aria-hidden="true"] {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(248, 231, 181, 0.18);
    color: #f8e7b5;
    font-size: 0.72rem;
    font-weight: 900;
}

.cheval-latest-comment-card .comment-info-popover summary.comment-info-trigger::after {
    margin-left: 1px;
    transition: transform 0.16s ease;
}

.cheval-latest-comment-card .comment-info-popover[open] summary.comment-info-trigger::after {
    transform: rotate(-90deg);
}

.cheval-latest-comment-card .comment-info-popover summary.comment-info-trigger:hover,
.cheval-latest-comment-card .comment-info-popover summary.comment-info-trigger:focus-visible {
    border-color: rgba(248, 231, 181, 0.48);
    background: rgba(217, 177, 107, 0.22);
    outline: none;
}

@media (max-width: 520px) {
    .cheval-comments-title-badge {
        width: 100%;
        justify-content: flex-start;
        border-radius: 18px;
    }

    .cheval-comments-count-badge {
        margin-left: auto;
    }
}


/* Correctif admin Réactions : colonne Message plus stable et lisible */
.admin-reaction-card {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
}

.admin-reaction-card .admin-management-main,
.admin-reaction-card .admin-reaction-details,
.admin-reaction-card .admin-management-actions {
    grid-column: 1 / -1;
}

.admin-reaction-card .admin-management-main {
    grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr) auto;
}

.admin-reaction-card .admin-reaction-details {
    grid-template-columns: minmax(150px, 0.85fr) minmax(165px, 0.85fr) minmax(0, 2.2fr) minmax(86px, 0.42fr);
    align-items: stretch;
}

.admin-reaction-card .admin-management-info,
.admin-reaction-card .admin-management-message {
    min-width: 0;
    max-width: 100%;
}

.admin-reaction-card .admin-management-message-text {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-reaction-card .admin-management-message .admin-comment-view-btn {
    max-width: 100%;
}

.admin-reaction-card .admin-management-actions {
    justify-content: flex-end;
    min-width: 0;
    padding-top: 2px;
}

@media (max-width: 1100px) {
    .admin-reaction-card .admin-reaction-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-reaction-card .admin-management-message {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .admin-reaction-card .admin-management-main,
    .admin-reaction-card .admin-reaction-details {
        grid-template-columns: 1fr;
    }

    .admin-reaction-card .admin-management-actions,
    .admin-reaction-card .admin-management-actions .action-menu,
    .admin-reaction-card .admin-management-actions .action-menu-toggle,
    .admin-reaction-card .admin-management-message .admin-comment-view-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Admin Réactions : ne pas afficher le commentaire directement, lecture uniquement via le pop-up */
.admin-reaction-card .admin-management-message {
    align-content: center;
    justify-items: flex-start;
}

.admin-reaction-card .admin-management-message-text {
    display: none !important;
}

.admin-reaction-card .admin-management-message .admin-comment-view-btn {
    width: auto;
    min-width: 178px;
    margin-top: 2px;
}

@media (max-width: 760px) {
    .admin-reaction-card .admin-management-message .admin-comment-view-btn {
        width: 100%;
        min-width: 0;
    }
}


/* Badge sobre du titre "Derniers commentaires" harmonisé avec "Le cheval du jour" */
.cheval-comments-title-row.cheval-comments-title-badge {
    position: relative;
    width: min(100%, 420px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    padding: 8px 10px 8px 12px;
    border: 1px solid rgba(217, 177, 107, 0.30);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(217, 177, 107, 0.16), rgba(217, 177, 107, 0.055) 44%, rgba(3, 30, 25, 0.50)),
        rgba(4, 27, 23, 0.62);
    box-shadow:
        inset 4px 0 0 rgba(239, 200, 127, 0.82),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.20);
    color: #ffe2a4;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.cheval-comments-title-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cheval-comments-title-icon.kicker-box {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0;
    border: 1px solid rgba(255, 224, 154, 0.42);
    border-radius: 12px;
    background: rgba(217, 177, 107, 0.13);
    color: var(--gold-strong);
    box-shadow: none;
    font-size: 0.82rem;
}

.cheval-comments-title-row .cheval-comments-title-text {
    min-width: 0;
    overflow: hidden;
    color: #fff3d2;
    font-size: clamp(0.82rem, 1.45vw, 0.95rem);
    font-weight: 950;
    letter-spacing: 0.075em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cheval-comments-title-row .cheval-comments-count-badge {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 6px 10px;
    border: 1px solid rgba(217, 177, 107, 0.24);
    border-radius: 999px;
    background: rgba(3, 30, 25, 0.58);
    color: rgba(255, 242, 214, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .cheval-comments-title-row.cheval-comments-title-badge {
        width: 100%;
        align-items: center;
        flex-direction: row;
        gap: 10px;
        border-radius: 16px;
    }
}


/* =========================================================
   Version mobile type application (iPhone / Android)
   ========================================================= */
.public-area .mobile-app-nav {
    display: none;
}

@media (max-width: 760px) {
    body.public-area {
        background:
            radial-gradient(circle at top, rgba(217, 177, 107, 0.12), transparent 30%),
            radial-gradient(circle at bottom, rgba(19, 88, 72, 0.22), transparent 34%),
            linear-gradient(180deg, #031613 0%, #041b17 100%);
    }

    .public-area .site-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .public-area .site-header {
        position: sticky;
        top: 0;
        z-index: 40;
        padding: calc(10px + env(safe-area-inset-top)) 16px 12px;
        gap: 10px;
        background: rgba(3, 20, 17, 0.78);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(217, 177, 107, 0.14);
    }

    .public-area .site-header-top {
        min-height: 52px;
    }

    .public-area .site-title-link {
        position: static;
        transform: none;
        max-width: calc(100% - 64px);
        justify-content: flex-start;
        margin-right: auto;
    }

    .public-area .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .public-area .brand-text {
        font-size: 1.15rem;
        letter-spacing: 0.01em;
    }

    .public-area .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border-radius: 15px;
        border: 1px solid rgba(217, 177, 107, 0.2);
        background: rgba(217, 177, 107, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    }

    .public-area .main-nav {
        width: 100%;
        padding: 10px;
        border: 1px solid rgba(217, 177, 107, 0.18);
        border-radius: 22px;
        background: rgba(6, 32, 27, 0.94);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    }

    .public-area .main-nav a,
    .public-area .nav-login,
    .public-area .nav-user-btn,
    .public-area .nav-logout-btn {
        border-radius: 16px;
        min-height: 50px;
        justify-content: flex-start;
        padding: 12px 14px !important;
        font-size: 0.98rem;
    }

    .public-area .page-content {
        padding: 16px 14px calc(100px + env(safe-area-inset-bottom));
    }

    .public-area .hero-page,
    .public-area .home-bottom,
    .public-area .cheval-community-row {
        gap: 16px;
    }

    .public-area .card,
    .public-area .feature-card,
    .public-area .card-pad {
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    }

    .public-area .feature-card {
        overflow: hidden;
    }

    .public-area .feature-image {
        max-height: 240px;
        object-fit: cover;
    }

    .public-area .cheval-day-title-row,
    .public-area .cheval-comments-heading {
        gap: 12px;
    }

    .public-area .cheval-day-title-badge,
    .public-area .cheval-comments-title-badge {
        border-radius: 18px;
        padding: 12px 14px;
    }

    .public-area .cheval-day-date-title {
        margin-left: auto;
        white-space: nowrap;
    }

    .public-area .cheval-day-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .public-area .cheval-day-detail,
    .public-area .cheval-day-race-box,
    .public-area .confidence-reminder,
    .public-area .live-comments-status,
    .public-area .latest-comment-card,
    .public-area .comment-card,
    .public-area .result-card,
    .public-area .contact-panel,
    .public-area .stat-card {
        border-radius: 18px;
    }

    .public-area .btn,
    .public-area .btn-ghost,
    .public-area .btn-block,
    .public-area button,
    .public-area input,
    .public-area textarea,
    .public-area select {
        border-radius: 16px;
    }

    .public-area .site-footer {
        margin: 12px 14px calc(94px + env(safe-area-inset-bottom));
        padding: 18px 16px;
        border: 1px solid rgba(217, 177, 107, 0.16);
        border-radius: 22px;
        background: rgba(5, 29, 24, 0.92);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
        align-items: flex-start;
        gap: 14px;
    }

    .public-area .mobile-app-nav {
        position: fixed;
        left: 50%;
        bottom: calc(10px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 60;
        width: min(calc(100% - 18px), 460px);
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border: 1px solid rgba(217, 177, 107, 0.2);
        border-radius: 24px;
        background: rgba(4, 24, 20, 0.92);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    }

    .public-area .mobile-app-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 58px;
        padding: 6px 4px;
        border-radius: 18px;
        color: var(--text-soft);
        font-size: 0.7rem;
        text-align: center;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .public-area .mobile-app-nav a.is-active {
        color: var(--text);
        background: linear-gradient(180deg, rgba(217, 177, 107, 0.18), rgba(217, 177, 107, 0.08));
        box-shadow: inset 0 0 0 1px rgba(217, 177, 107, 0.24);
    }

    .public-area .mobile-app-nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        font-size: 1rem;
        border-radius: 10px;
        background: rgba(217, 177, 107, 0.08);
    }

    .public-area .mobile-app-nav a.is-active .mobile-app-nav-icon {
        background: rgba(217, 177, 107, 0.18);
    }

    .public-area .mobile-app-nav-label {
        line-height: 1.15;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 520px) {
    .public-area .page-content {
        padding: 14px 12px calc(98px + env(safe-area-inset-bottom));
    }

    .public-area .site-header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .public-area .site-title-brand {
        gap: 10px;
    }

    .public-area .brand-text {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .public-area .feature-image {
        max-height: 210px;
    }

    .public-area .cheval-day-title-row,
    .public-area .cheval-comments-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .public-area .cheval-day-title-badge,
    .public-area .cheval-comments-title-badge {
        width: 100%;
    }

    .public-area .cheval-day-date-title {
        margin-left: 0;
        align-self: flex-start;
    }

    .public-area .cheval-day-details {
        grid-template-columns: 1fr;
    }

    .public-area .mobile-app-nav {
        width: calc(100% - 14px);
        padding: 7px;
        gap: 4px;
        border-radius: 22px;
    }

    .public-area .mobile-app-nav a {
        min-height: 56px;
        padding: 6px 2px;
    }

    .public-area .mobile-app-nav-label {
        font-size: 0.64rem;
    }
}

/* Ajustements mobile public : logo centré, menu haut retiré, footer remonté */
@media (max-width: 760px) {
    .public-area .site-header {
        padding-bottom: 10px;
    }

    .public-area .site-header-top {
        justify-content: center;
    }

    .public-area .site-title-link {
        position: static;
        transform: none;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
        text-align: center;
    }

    .public-area .site-title-text {
        text-align: center;
    }

    .public-area .nav-toggle,
    .public-area .main-nav {
        display: none !important;
    }

    .public-area .page-content {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .public-area .site-footer {
        margin: 10px 14px calc(76px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    .public-area .page-content {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .public-area .site-footer {
        margin: 8px 12px calc(74px + env(safe-area-inset-bottom));
    }

    .public-area .brand-text {
        max-width: none;
    }
}

/* Correction footer mobile public d'après screenshot : plus compact et dégagé de la barre du bas */
@media (max-width: 760px) {
    .public-area .site-footer {
        margin: 6px 14px calc(112px + env(safe-area-inset-bottom)) !important;
        padding: 14px 12px !important;
        gap: 8px !important;
        border-radius: 20px !important;
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
    }

    .public-area .site-footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px !important;
        width: 100%;
    }

    .public-area .site-footer-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 7px 8px;
        border-radius: 12px;
        background: rgba(217, 177, 107, 0.05);
        border: 1px solid rgba(217, 177, 107, 0.10);
        font-size: 0.8rem;
    }

    .public-area .site-footer-warning {
        gap: 2px !important;
        margin-top: 2px !important;
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }

    .public-area .site-footer-meta {
        gap: 4px 12px !important;
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
    }

    .public-area .mobile-app-nav {
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 430px) {
    .public-area .site-footer {
        margin: 4px 12px calc(110px + env(safe-area-inset-bottom)) !important;
        padding: 12px 10px !important;
    }

    .public-area .site-footer-links {
        gap: 7px !important;
    }

    .public-area .site-footer-links a {
        min-height: 32px;
        padding: 6px 6px;
        font-size: 0.76rem;
    }
}

/* Correction ciblée footer mobile : supprime le grand vide avant le footer */
@media (max-width: 760px) {
    .public-area .page-content {
        padding-bottom: 10px !important;
    }

    .public-area .site-footer {
        margin-top: 0 !important;
        margin-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
        padding: 12px 10px !important;
        gap: 7px !important;
        transform: none !important;
    }

    .public-area .site-footer-links,
    .public-area .site-footer-warning,
    .public-area .site-footer-meta {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 430px) {
    .public-area .page-content {
        padding-bottom: 8px !important;
    }

    .public-area .site-footer {
        margin-top: 0 !important;
        margin-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
        padding: 10px 9px !important;
    }
}

/* Revue finale : bloc Cheval du jour public + commentaires harmonisés */
.cheval-public-hero {
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.58fr);
    gap: 20px;
}

.cheval-daily-card {
    min-height: 500px;
    border-color: rgba(239, 200, 127, 0.24);
}

.cheval-daily-card::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(217, 177, 107, 0.20), transparent 28%),
        linear-gradient(90deg, rgba(4, 27, 23, 0.98) 0%, rgba(4, 27, 23, 0.94) 46%, rgba(4, 27, 23, 0.58) 72%, rgba(4, 27, 23, 0.20) 100%);
}

.cheval-daily-content {
    width: min(68%, 660px);
    justify-content: center;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
}

.cheval-day-title-row.cheval-day-title-badge {
    width: min(100%, 590px);
    margin: 0;
}

.cheval-daily-main {
    width: min(100%, 590px);
    margin: 0;
    padding: clamp(18px, 2.4vw, 24px);
    border: 1px solid rgba(217, 177, 107, 0.22);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(4, 31, 26, 0.78), rgba(3, 20, 17, 0.52));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 44px rgba(0, 0, 0, 0.22);
}

.cheval-daily-overline {
    margin: 0 0 8px;
    color: var(--gold-strong);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cheval-daily-name.daily-pick-name {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff7e8;
    font-size: clamp(1.75rem, 3.6vw, 2.7rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.cheval-daily-subtitle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
    color: rgba(244, 238, 223, 0.78);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.cheval-daily-details.cheval-day-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.cheval-daily-detail.cheval-day-detail {
    min-height: 0;
    padding: 12px 13px;
    border-color: rgba(217, 177, 107, 0.18);
    background: rgba(255, 255, 255, 0.035);
}

.cheval-daily-detail .cheval-day-detail-label {
    color: rgba(244, 238, 223, 0.58);
    font-size: 0.72rem;
}

.cheval-daily-detail strong {
    color: #fff2d6;
    font-size: 1.04rem;
}

.cheval-daily-race-box.cheval-day-race-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.cheval-daily-race-box.cheval-day-race-box > div {
    min-width: 0;
    padding: 12px 13px;
    border-color: rgba(217, 177, 107, 0.16);
    background: rgba(255, 255, 255, 0.026);
}

.cheval-daily-race-box strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cheval-daily-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cheval-daily-actions .btn,
.cheval-daily-actions .btn-ghost {
    min-height: 42px;
    padding: 11px 16px;
    border-radius: 13px;
}

.cheval-reminder-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cheval-reminder-card .confidence-reminder {
    margin-top: 0;
}

.cheval-community-row > .card.card-pad {
    border-color: rgba(217, 177, 107, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014));
}

.cheval-comments-heading {
    gap: 12px;
}

.cheval-comments-title-badge,
.cheval-comments-title-row {
    min-width: 0;
}

/* Commentaires : une présentation unique dans le fil communauté et les derniers commentaires */
#community-feed .community-timeline,
.cheval-latest-timeline.cheval-latest-comments-grid {
    overflow: visible !important;
}

#community-feed .community-reaction-card,
.cheval-latest-comment-card.community-reaction-card {
    overflow: visible !important;
    border: 1px solid rgba(217, 177, 107, 0.17) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.016)) !important;
}

#community-feed .community-reaction-card:hover,
.cheval-latest-comment-card.community-reaction-card:hover {
    border-color: rgba(239, 200, 127, 0.30) !important;
    background: linear-gradient(180deg, rgba(217, 177, 107, 0.055), rgba(255, 255, 255, 0.016)) !important;
}

#community-feed .reaction-facebook-head,
.cheval-latest-comment-head {
    align-items: flex-start;
}

#community-feed .community-author-with-info,
.cheval-author-with-info {
    min-width: 0;
    gap: 8px;
}

#community-feed .reaction-author-name,
.cheval-latest-author-line .reaction-author-name {
    min-width: 0;
    max-width: min(100%, 280px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-info-popover summary.comment-info-trigger {
    min-height: 28px;
    padding: 6px 10px;
    border-color: rgba(217, 177, 107, 0.22);
    background: rgba(217, 177, 107, 0.075);
    color: rgba(239, 200, 127, 0.95);
    font-size: 0.76rem;
}

.comment-info-popover[open] summary.comment-info-trigger {
    background: rgba(217, 177, 107, 0.18);
    color: #fff2d6;
}

.comment-info-popover-panel {
    width: min(300px, calc(100vw - 36px));
    gap: 0;
    padding: 12px 13px;
}

.comment-info-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.comment-info-row .reaction-rating-badge {
    width: fit-content;
}

#community-feed .reaction-message-box,
.cheval-latest-message-box {
    padding: 13px 14px !important;
    border: 1px solid rgba(217, 177, 107, 0.12) !important;
    border-radius: 16px !important;
    background: rgba(2, 20, 17, 0.24) !important;
}

#community-feed .reaction-message-box {
    margin: 12px 20px 0 81px !important;
}

.cheval-latest-message-box {
    margin: 13px 0 0 !important;
}

#community-feed .reaction-message,
.cheval-latest-message {
    margin: 0;
    color: rgba(244, 238, 223, 0.9) !important;
    overflow-wrap: anywhere;
}

.cheval-comment-thread-link {
    color: var(--gold-strong) !important;
}

#community-feed .community-actions-bar {
    margin: 12px 20px 0 81px !important;
}

.cheval-latest-timeline.cheval-latest-comments-grid {
    width: 100% !important;
    max-width: 920px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: flex-start;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.cheval-latest-comment-card.community-reaction-card {
    max-width: none;
    padding: 15px !important;
}

@media (max-width: 980px) {
    .cheval-public-hero {
        grid-template-columns: 1fr;
    }

    .cheval-daily-content {
        width: min(100%, 660px);
    }
}

@media (max-width: 760px) {
    .cheval-daily-card {
        min-height: 0;
    }

    .cheval-daily-card::before {
        background: linear-gradient(180deg, rgba(4, 27, 23, 0.96), rgba(4, 27, 23, 0.84));
    }

    .cheval-daily-content {
        padding: 18px;
    }

    .cheval-day-title-row.cheval-day-title-badge {
        width: 100%;
    }

    .cheval-daily-details.cheval-day-details,
    .cheval-daily-race-box.cheval-day-race-box {
        grid-template-columns: 1fr;
    }

    .cheval-daily-actions .btn,
    .cheval-daily-actions .btn-ghost {
        width: 100%;
    }

    #community-feed .reaction-message-box,
    #community-feed .community-actions-bar {
        margin-left: 64px !important;
        margin-right: 12px !important;
    }

    .cheval-latest-timeline.cheval-latest-comments-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 520px) {
    .cheval-daily-main {
        padding: 16px;
        border-radius: 20px;
    }

    .cheval-daily-subtitle {
        font-size: 0.92rem;
    }

    #community-feed .reaction-message-box,
    #community-feed .community-actions-bar {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #community-feed .reaction-facebook-head {
        padding-left: 12px;
        padding-right: 12px;
    }

    #community-feed .community-actions-bar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cheval-latest-comment-card.community-reaction-card {
        padding: 14px !important;
    }

    .comment-info-popover-panel {
        left: auto !important;
        right: 0 !important;
        width: min(260px, calc(100vw - 28px));
    }
}
