
:root {
    --navy-950: #000000;
    --navy-900: #080808;
    --navy-850: #101010;
    --navy-800: #181818;

    --gold: #D4A656;
    --gold-light: #E5BE73;
    --gold-dark: #A97C32;

    --surface: #ffffff;
    --surface-soft: #f7f8fa;
    --page: #eef1f4;

    --text: #172033;
    --muted: #687386;
    --border: #dfe4ea;

    --green: #12a653;
    --blue: #1676db;
    --orange: #ee6d16;
    --red: #d32631;
    --purple: #6841c7;

    --shadow: 0 8px 28px rgba(8,17,31,.09);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    background: var(--page);
    color: var(--text);
    line-height: 1.45;
}

/* =========================
   HEADER
========================= */

header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            rgba(8,17,31,.98),
            rgba(13,25,41,.94)
        );
    color: white;
    padding: 25px 20px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

header::after {
    content: "🛼";
    position: absolute;
    right: 6%;
    top: -34px;
    font-size: 120px;
    opacity: .06;
    transform: rotate(-10deg);
}

header .container {
    max-width: 1180px;
    margin: auto;
    position: relative;
    z-index: 1;
}

header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.5px;
}

header h1::first-letter {
    color: var(--gold);
}

header p {
    margin: 5px 0 0;
    color: #c8d0dc;
    font-size: 14px;
}

/* =========================
   LAYOUT
========================= */

main {
    max-width: 1180px;
    margin: 28px auto 60px;
    padding: 0 20px;
}

.card {
    background: var(--surface);
    border: 1px solid rgba(18,32,51,.06);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 20px;
    color: var(--navy-900);
    font-size: 25px;
}

h2,
h3,
h4 {
    color: var(--navy-900);
}

h3 {
    margin-top: 12px;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

/* =========================
   FORMULAIRES
========================= */

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

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    margin-top: 7px;
    border-radius: 9px;
    border: 1px solid #ccd3dc;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(217,164,65,.18);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

label {
    display: block;
    margin-top: 9px;
    font-weight: 650;
    color: var(--navy-900);
}

form {
    margin-bottom: 10px;
}

/* =========================
   BOUTONS
========================= */

button {
    width: 100%;
    padding: 11px 15px;
    margin-top: 8px;
    border-radius: 9px;
    border: none;
    background: var(--navy-900);
    color: white;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

button:hover {
    background: var(--navy-800);
    box-shadow: 0 5px 14px rgba(8,17,31,.15);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background: #687386;
}

button.secondary:hover {
    background: #556070;
}

button.danger,
.danger {
    background: #a61b25;
}

button.success,
.success {
    background: #14783c;
}

/* =========================
   USER
========================= */

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

.user-info {
    font-size: 17px;
}

.user-info strong {
    font-size: 19px;
    color: var(--navy-900);
}

/* =========================
   TABLEAUX
========================= */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    color: var(--navy-900);
    font-weight: 750;
    background: #f6f7f9;
}

th,
td {
    padding: 12px 11px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

tbody tr {
    transition: background .15s ease;
}

tbody tr:hover {
    background: #faf8f2;
}

/* =========================
   BADGES
========================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8ebef;
    color: #263244;
    font-size: 12px;
    font-weight: 650;
}

/* Couleurs officielles des niveaux */

.level-debutant {
    background: #e3f7ea;
    color: #087c3b;
}

.level-initie {
    background: #e4f0ff;
    color: #075eaf;
}

.level-debrouille {
    background: #fff0e4;
    color: #bd4e09;
}

.level-confirme {
    background: #fde8e9;
    color: #ad1822;
}

.level-expert {
    background: #eee8ff;
    color: #5730b5;
}

/* =========================
   MESSAGES
========================= */

.hidden {
    display: none !important;
}

.message {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #eef3fb;
    border-left: 4px solid var(--gold);
}

.notice {
    padding: 13px;
    border-radius: 10px;
    background: #f5f6f8;
    border: 1px solid var(--border);
    margin: 10px 0;
}

/* =========================
   OUTILS / ACTIONS
========================= */

.role-section {
    margin-top: 20px;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 15px;
}

.toolbar > * {
    flex: 1 1 180px;
}

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

.actions button {
    width: auto;
    margin-top: 0;
    padding: 8px 12px;
}

.modal-panel {
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding-top: 20px;
}

pre {
    background: var(--navy-950);
    color: #dce3ec;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

/* =========================
   AUTH
========================= */

#authSection .card {
    border-top: 3px solid var(--gold);
}

#forgotPasswordButton {
    color: var(--gold-dark) !important;
    font-weight: 650;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 760px) {

    header {
        padding: 20px 16px;
    }

    header h1 {
        font-size: 25px;
    }

    main {
        margin-top: 18px;
        padding: 0 12px;
    }

    .card {
        padding: 18px;
        border-radius: 13px;
    }

    .user-box {
        flex-direction: column;
        align-items: stretch;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    th,
    td {
        padding: 10px 8px;
    }
}



/* =========================
   APPLICATION SHELL
========================= */

#appShell {
    min-height: 100vh;
}

#sidebar {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(
            180deg,
            #0b1727 0%,
            #102237 55%,
            #0a1625 100%
        );
    color: white;
    box-shadow: 8px 0 28px rgba(0,0,0,.12);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 20px 19px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-logo {
    font-size: 32px;
}

.sidebar-title {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.5px;
}

.sidebar-title span {
    color: var(--gold-light);
}

.sidebar-tagline {
    margin-top: 2px;
    color: #aeb9c7;
    font-size: 11px;
}

.sidebar-nav {
    flex: 1;
    padding: 18px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 3px 0;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #e6ebf2;
    text-align: left;
    font-weight: 600;
    box-shadow: none;
}

.nav-item span {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.nav-item:hover {
    background: rgba(255,255,255,.07);
    box-shadow: none;
    transform: none;
}

.nav-item.active {
    border-color: rgba(242,199,110,.55);
    background:
        linear-gradient(
            90deg,
            rgba(217,164,65,.33),
            rgba(217,164,65,.16)
        );
    color: #fff;
    box-shadow:
        inset 0 0 20px rgba(217,164,65,.08);
}

.nav-label {
    margin: 16px 10px 7px;
    color: #8494a8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.nav-separator {
    height: 1px;
    margin: 17px 9px 10px;
    background: rgba(255,255,255,.12);
}

.sidebar-footer {
    padding: 17px 20px 21px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #8f9daf;
    font-size: 12px;
}

.sidebar-footer small {
    color: var(--gold);
}

#appContent {
    min-height: 100vh;
    margin-left: 250px;
}

#appContent > header {
    min-height: 92px;
    padding: 18px 28px;
}

#appContent > header .container {
    display: flex;
    align-items: center;
    max-width: 1180px;
}

#appContent > header h1 {
    font-size: 27px;
}

#mobileMenuButton {
    display: none;
    width: auto;
    margin: 0 15px 0 0;
    padding: 8px 11px;
}

#sidebarOverlay {
    display: none;
}

/* =========================
   MOBILE SIDEBAR
========================= */

@media (max-width: 900px) {

    #sidebar {
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }

    #appContent {
        margin-left: 0;
    }

    #mobileMenuButton {
        display: block;
    }

    body.sidebar-open #sidebarOverlay {
        display: block;
        position: fixed;
        z-index: 900;
        inset: 0;
        background: rgba(3, 10, 20, .68);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
}



/* =========================
   SPA PAGES + DASHBOARD
========================= */

.app-page.page-inactive {
    display: none !important;
}

#userSection {
    margin-bottom: 22px;
}

.dashboard-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 150px;
    margin-bottom: 22px;
    padding: 28px 32px;
    border-radius: 18px;
    color: white;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217,164,65,.30),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            #0b1727,
            #162b43
        );
    box-shadow: var(--shadow);
}

.dashboard-kicker {
    margin-bottom: 5px;
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1.5px;
}

.dashboard-welcome h2 {
    margin: 0;
    color: white;
    font-size: 30px;
}

.dashboard-welcome p {
    margin: 7px 0 0;
    color: #cbd5e1;
}

.dashboard-roller {
    position: absolute;
    right: 35px;
    font-size: 82px;
    opacity: .18;
    transform: rotate(-8deg);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 110px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(217,164,65,.30);
    background: white;
    box-shadow: var(--shadow);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 13px;
    background: #fff7e8;
    font-size: 25px;
}

.stat-value {
    color: var(--navy-900);
    font-size: 25px;
    font-weight: 850;
    line-height: 1.1;
}

.stat-label {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
}

.dashboard-panel {
    overflow: hidden;
    min-height: 220px;
    border-radius: 16px;
    border: 1px solid rgba(18,32,51,.07);
    background: white;
    box-shadow: var(--shadow);
}

.panel-title {
    padding: 17px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--navy-900);
    font-size: 18px;
    font-weight: 800;
}

.panel-title span {
    margin-right: 7px;
}

.panel-content {
    padding: 20px;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .dashboard-stats,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        padding: 23px;
    }

    .dashboard-roller {
        right: 15px;
        font-size: 60px;
    }
}



/* Dashboard dynamique */

.empty-dashboard {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.empty-dashboard-icon {
    margin-bottom: 8px;
    font-size: 28px;
}

.empty-dashboard p {
    margin: 6px 0 14px;
    color: var(--muted);
}

.empty-dashboard button {
    width: auto;
}

.next-ride-date {
    color: var(--gold-dark);
    font-size: 18px;
    font-weight: 850;
    text-transform: capitalize;
}

.next-ride-place {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 700;
}

.next-ride-meta {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.next-ride-meta span,
.dashboard-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef1f4;
    font-size: 12px;
    font-weight: 650;
}

.next-ride-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.next-ride-action button {
    width: auto;
    margin: 0;
}

.dashboard-status.registered {
    background: #e3f7ea;
    color: #087c3b;
}

.my-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.my-stat {
    padding: 14px;
    border-radius: 11px;
    background: #f6f7f9;
}

.my-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.my-stat strong {
    display: block;
    margin-top: 3px;
    color: var(--navy-900);
    font-size: 20px;
}

.my-stat sup {
    font-size: 11px;
}

.dashboard-ranking-button {
    margin-top: 13px;
}

@media (max-width: 520px) {
    .my-stats-grid {
        grid-template-columns: 1fr;
    }
}



/* Classement FITRAH */

.ranking-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.ranking-tabs {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
    background: #edf0f3;
}

.ranking-tab {
    width: auto;
    min-width: 145px;
    margin: 0;
    padding: 10px 18px;
    background: transparent;
    color: var(--navy-900);
    border-radius: 9px;
    font-weight: 800;
}

.ranking-tab:hover {
    opacity: 1;
    background: rgba(255,255,255,.7);
}

.ranking-tab.active {
    background: var(--navy-900);
    color: white;
    box-shadow: 0 3px 9px rgba(8,17,31,.18);
}

.ranking-summary {
    color: var(--muted);
    font-size: 13px;
}

.ranking-summary strong {
    color: var(--navy-900);
}

.ranking-summary span {
    padding: 0 5px;
    color: var(--gold);
}

.ranking-table-wrapper,
.ranking-level-table-wrapper {
    overflow-x: auto;
}

.ranking-general-table th {
    color: #667085;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ranking-general-table tbody tr {
    transition: background .15s ease;
}

.ranking-general-table tbody tr:hover {
    background: #faf8f2;
}

.ranking-general-table .ranking-podium-row {
    background: #fffaf0;
}

.ranking-rank {
    width: 65px;
    font-weight: 800;
}

.ranking-km {
    font-weight: 850;
    white-space: nowrap;
}

.ranking-level-pill {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.ranking-level-pill.debutant {
    background: #dcfce7;
    color: #15803d;
}

.ranking-level-pill.initie {
    background: #dbeafe;
    color: #1d4ed8;
}

.ranking-level-pill.debrouille {
    background: #ffedd5;
    color: #c2410c;
}

.ranking-level-pill.confirme {
    background: #fee2e2;
    color: #b91c1c;
}

.ranking-level-pill.expert {
    background: #ede9fe;
    color: #6d28d9;
}

.ranking-level-pill.unknown {
    background: #e5e7eb;
    color: #4b5563;
}


/* Cartes par niveau */

.ranking-levels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.ranking-level-card {
    overflow: hidden;
    border: 1px solid #e2e5e9;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 18px rgba(8,17,31,.08);
}

.ranking-level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 61px;
    padding: 14px 17px;
    color: white;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .025em;
}

.ranking-level-header small {
    margin-left: auto;
    min-width: 29px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    text-align: center;
    font-size: 11px;
}

.ranking-level-icon {
    font-size: 24px;
}

.ranking-level-debutant .ranking-level-header {
    background: linear-gradient(
        135deg,
        #15803d,
        #22a653
    );
}

.ranking-level-initie .ranking-level-header {
    background: linear-gradient(
        135deg,
        #1d4ed8,
        #3182e8
    );
}

.ranking-level-debrouille .ranking-level-header {
    background: linear-gradient(
        135deg,
        #c2410c,
        #ea6a16
    );
}

.ranking-level-confirme .ranking-level-header {
    background: linear-gradient(
        135deg,
        #b91c1c,
        #dc3030
    );
}

.ranking-level-expert .ranking-level-header {
    background: linear-gradient(
        135deg,
        #5b21b6,
        #7c4bd1
    );
}

.ranking-level-unknown .ranking-level-header {
    background: linear-gradient(
        135deg,
        #4b5563,
        #697586
    );
}

.ranking-level-table {
    margin: 0;
}

.ranking-level-table th {
    padding: 10px 12px;
    background: #f6f7f9;
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
}

.ranking-level-table td {
    padding: 11px 12px;
    font-size: 14px;
}

.ranking-level-table tbody tr:last-child td {
    border-bottom: none;
}


/* Les Confirmés sont généralement les plus nombreux */
.ranking-level-confirme {
    grid-row: span 2;
}


/* Mobile */

@media (max-width: 850px) {

    .ranking-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ranking-tab {
        min-width: 0;
    }

    .ranking-levels-grid {
        grid-template-columns: 1fr;
    }

    .ranking-level-confirme {
        grid-row: auto;
    }
}

@media (max-width: 520px) {

    .ranking-summary {
        text-align: center;
    }

    .ranking-level-header {
        font-size: 16px;
    }

    .ranking-level-table th,
    .ranking-level-table td {
        padding: 9px 7px;
    }
}




/* Sidebar utilisateur */

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-user-avatar {
    display: flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(242,199,110,.13);
    font-size: 18px;
}

.sidebar-user-text {
    min-width: 0;
}

.sidebar-user-text strong {
    display: block;
    overflow: hidden;
    color: white;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-text small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sidebar-logout {
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.sidebar-logout:hover {
    background: rgba(255,255,255,.12);
    opacity: 1;
}




/* Ancienne carte utilisateur conservée pour compatibilité JS */
#userSection {
    display: none !important;
}




/* Bouton actualisation classement */
#rankingSection > button {
    width: auto;
    min-width: 0;
    padding: 8px 13px;
    margin: 0 0 12px auto;
    display: block;
    background: transparent;
    color: var(--navy-900);
    border: 1px solid #d8dde5;
    font-size: 12px;
}

#rankingSection > button:hover {
    background: #f6f7f9;
    opacity: 1;
}



/* =========================================================
   RANDONNEES - FIT'RAH UI
   ========================================================= */

.rides-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rides-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 4px 0 14px;
}

.rides-section-title h3 {
    margin: 0;
    color: var(--navy-950);
    font-size: 20px;
}

.rides-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff4df;
    color: #9a6410;
    font-weight: 800;
    font-size: 13px;
}

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

.ride-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    box-shadow: 0 5px 18px rgba(8,17,31,.07);
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.ride-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(8,17,31,.11);
}

.ride-card-top {
    height: 5px;
    background: linear-gradient(
        90deg,
        #d79b32,
        #f2c76e
    );
}

.ride-card.cancelled .ride-card-top {
    background: #9ca3af;
}

.ride-card.completed .ride-card-top {
    background: #cbd5e1;
}

.ride-card-body {
    padding: 18px;
}

.ride-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.ride-date {
    display: flex;
    gap: 12px;
    align-items: center;
}

.ride-date-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    background: #fff6e7;
    font-size: 23px;
}

.ride-date-main {
    color: var(--navy-950);
    font-size: 17px;
    font-weight: 900;
}

.ride-time {
    margin-top: 3px;
    color: #667085;
    font-size: 13px;
}

.ride-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.ride-status-planned {
    background: #e8f7ee;
    color: #18753a;
}

.ride-status-completed {
    background: #eef1f5;
    color: #596273;
}

.ride-status-cancelled {
    background: #feecec;
    color: #b42318;
}

.ride-location {
    margin-bottom: 15px;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.ride-location::before {
    content: "📍";
    margin-right: 7px;
}

.ride-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
    margin-bottom: 16px;
}

.ride-meta-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f7f9;
}

.ride-meta-label {
    display: block;
    margin-bottom: 3px;
    color: #667085;
    font-size: 11px;
}

.ride-meta-value {
    color: var(--navy-950);
    font-size: 14px;
    font-weight: 800;
}

.ride-level-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 5px;
    border-radius: 50%;
}

.ride-card-actions {
    padding-top: 14px;
    border-top: 1px solid #eaecf0;
}

.ride-card-actions button {
    margin-top: 0;
}

.rides-history {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.rides-history table {
    margin: 0;
}

.rides-history th {
    background: #f6f7f9;
    color: #667085;
    font-size: 11px;
    text-transform: uppercase;
}

.rides-history tr:last-child td {
    border-bottom: none;
}

.rides-empty {
    padding: 30px;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    color: #667085;
    text-align: center;
    background: #fafafa;
}

@media (max-width: 900px) {
    .rides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ride-card-heading {
        flex-direction: column;
    }

    .ride-meta {
        grid-template-columns: 1fr;
    }

    .rides-section-title {
        align-items: flex-start;
    }
}


/* Bouton actualisation Randonnées */
#ridesSection > button {
    width: auto;
    display: block;
    margin: 0 0 12px auto;
    padding: 9px 14px;
    background: white;
    color: var(--navy-950);
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

#ridesSection > button:hover {
    background: #f8fafc;
    opacity: 1;
}



/* =========================================================
   MON PROFIL - FIT'RAH UI
   ========================================================= */

#profileSection {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

/* En-tête du profil */

.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 28px 32px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(
            120deg,
            #08111f 0%,
            #10243a 72%,
            #3a3a34 100%
        );
    box-shadow: 0 10px 28px rgba(8,17,31,.12);
}

.profile-hero::after {
    content: "🛼";
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 74px;
    opacity: .12;
}

.profile-avatar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border: 2px solid rgba(242,199,110,.55);
    border-radius: 18px;
    font-size: 34px;
    background: rgba(255,255,255,.09);
}

.profile-hero-info {
    position: relative;
    z-index: 1;
}

.profile-kicker {
    margin-bottom: 5px;
    color: #f2c76e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.profile-hero h2 {
    margin: 0 0 5px;
    color: white;
    font-size: 28px;
}

.profile-hero-meta {
    color: rgba(255,255,255,.78);
    font-size: 14px;
}


/* Statistiques */

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgba(214,163,63,.35);
    border-radius: 15px;
    background: white;
    box-shadow: 0 7px 22px rgba(8,17,31,.06);
}

.profile-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 13px;
    font-size: 23px;
    background: #fff7e8;
}

.profile-stat strong {
    display: block;
    color: #081b35;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.profile-stat span {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}


/* Contenu */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.profile-panel {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 25px rgba(8,17,31,.06);
}

.profile-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    color: #081b35;
}

.profile-panel-title > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-panel-title strong {
    font-size: 17px;
}

.profile-panel-icon {
    font-size: 19px;
}

.profile-panel-hint {
    color: #98a2b3;
    font-size: 11px;
}


/* Formulaire */

#profileForm {
    padding: 22px;
    margin: 0;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.profile-form-grid label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.profile-form-grid input,
.profile-form-grid select {
    margin-top: 0;
    border: 1px solid #d0d5dd;
    background: #fff;
}

.profile-form-grid input:focus,
.profile-form-grid select:focus {
    outline: none;
    border-color: #d6a33f;
    box-shadow: 0 0 0 3px rgba(214,163,63,.13);
}

.profile-save {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eaecf0;
}

.profile-save button {
    width: auto;
    min-width: 230px;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

#profileMessage {
    margin: 0 22px 22px;
}


/* Compte */

.profile-account-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 20px;
    border-bottom: 1px solid #eaecf0;
}

.profile-account-row span {
    color: #667085;
    font-size: 13px;
}

.profile-account-row strong {
    max-width: 65%;
    color: #081b35;
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-security-note {
    margin: 18px;
    padding: 14px;
    border-radius: 10px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
    background: #f6f7f9;
}


/* Responsive */

@media (max-width: 1000px) {

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

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .profile-hero {
        padding: 22px;
    }

    .profile-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 27px;
    }

    .profile-hero h2 {
        font-size: 22px;
    }

    .profile-hero::after {
        display: none;
    }

    .profile-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .profile-stat {
        min-height: 82px;
        padding: 13px;
    }

    .profile-stat-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 19px;
    }

    .profile-stat strong {
        font-size: 18px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-save button {
        width: 100%;
    }
}




/* =========================================================
   ESPACE REFERENT - FIT'RAH UI
   ========================================================= */

#referentSection {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Hero */

.referent-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 27px 30px;
    border-radius: 18px;
    color: white;
    background:
        linear-gradient(
            120deg,
            #08111f 0%,
            #10243a 72%,
            #393a35 100%
        );
    box-shadow: 0 10px 28px rgba(8,17,31,.12);
}

.referent-hero::after {
    content: "🛼";
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 78px;
    opacity: .11;
}

.referent-hero-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border: 2px solid rgba(242,199,110,.55);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    font-size: 32px;
}

.referent-hero > div:last-child {
    position: relative;
    z-index: 1;
}

.referent-kicker {
    margin-bottom: 5px;
    color: #f2c76e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
}

.referent-hero h2 {
    margin: 0 0 6px;
    color: white;
    font-size: 28px;
}

.referent-hero p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
}


/* Statistiques */

.referent-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

.referent-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 86px;
    padding: 16px 17px;
    border: 1px solid rgba(214,163,63,.30);
    border-radius: 15px;
    background: white;
    box-shadow: 0 7px 22px rgba(8,17,31,.055);
}

.referent-stat > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 12px;
    background: #fff7e8;
    font-size: 21px;
}

.referent-stat strong {
    display: block;
    color: #081b35;
    font-size: 22px;
    font-weight: 900;
}

.referent-stat small {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}


/* Layout principal */

.referent-main-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(300px, .85fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.referent-panel {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 25px rgba(8,17,31,.06);
}

.referent-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 62px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.referent-panel-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.referent-panel-header strong {
    color: #081b35;
    font-size: 17px;
}

.referent-panel-header small {
    color: #98a2b3;
    font-size: 11px;
}

.referent-panel-icon {
    font-size: 18px;
}


/* Création */

.referent-create-form {
    margin: 0;
    padding: 20px;
}

.referent-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 17px;
}

.referent-form-wide {
    grid-column: 1 / -1;
}

.referent-create-form label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.referent-create-form input,
.referent-create-form select,
.referent-create-form textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: white;
    font-family: inherit;
}

.referent-create-form textarea {
    padding: 11px;
    resize: vertical;
    font-size: 14px;
}

.referent-create-form input:focus,
.referent-create-form select:focus,
.referent-create-form textarea:focus {
    outline: none;
    border-color: #d6a33f;
    box-shadow: 0 0 0 3px rgba(214,163,63,.13);
}

.referent-distance-input {
    position: relative;
}

.referent-distance-input input {
    padding-right: 42px;
}

.referent-distance-input span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #667085;
    font-size: 12px;
    pointer-events: none;
}

.referent-create-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid #eaecf0;
}

.referent-create-actions button {
    width: auto;
    min-width: 205px;
    margin: 0;
}

#createRideMessage {
    margin: 0 20px 20px;
}


/* Randonneurs */

.referent-users-body {
    padding: 20px;
}

.referent-search {
    position: relative;
    margin-bottom: 15px;
}

.referent-search > span {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #667085;
    font-size: 20px;
}

.referent-search input {
    margin: 0;
    padding-left: 40px;
    border-color: #d0d5dd;
    background: #f9fafb;
}

#referentUsersContainer {
    max-height: 485px;
    overflow: auto;
}

#referentUsersContainer table {
    margin: 0;
    font-size: 13px;
}

#referentUsersContainer th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f7f9;
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
}


/* Mes randonnées */

.referent-rides-panel {
    margin-bottom: 20px;
}

.referent-refresh {
    width: auto;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: white;
    color: #081b35;
    font-size: 12px;
    font-weight: 800;
}

.referent-refresh:hover {
    background: #f8fafc;
    opacity: 1;
}

.referent-rides-container {
    padding: 0;
    overflow-x: auto;
}

.referent-rides-container table {
    margin: 0;
}

.referent-rides-container th {
    padding: 11px 15px;
    background: #f6f7f9;
    color: #667085;
    font-size: 10px;
    text-transform: uppercase;
}

.referent-rides-container td {
    padding: 13px 15px;
}


/* Gestion d'une randonnée */

#rideManager:not(.hidden) {
    margin: 18px;
    padding: 20px;
    border: 1px solid rgba(214,163,63,.38);
    border-radius: 14px;
    background: #fffbf4;
    box-shadow: none;
}

#rideManager h3 {
    margin-top: 0;
    color: #081b35;
}

#rideManager .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 15px 0;
}

#rideManager .actions button {
    width: auto;
    margin: 0;
}

#rideManagerBody {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eadfcb;
}


/* Responsive */

@media (max-width: 1050px) {

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

    .referent-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .referent-hero {
        padding: 21px;
    }

    .referent-hero-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 26px;
    }

    .referent-hero h2 {
        font-size: 22px;
    }

    .referent-hero::after {
        display: none;
    }

    .referent-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .referent-stat {
        padding: 12px;
    }

    .referent-stat > span {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 18px;
    }

    .referent-stat strong {
        font-size: 18px;
    }

    .referent-form-grid {
        grid-template-columns: 1fr;
    }

    .referent-form-wide {
        grid-column: auto;
    }

    .referent-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .referent-create-actions button,
    .referent-refresh {
        width: 100%;
    }
}




/* Tableau Mes randonnées - Espace référent */

.referent-rides-table {
    width: 100%;
    border-collapse: collapse;
}

.referent-rides-table tbody tr {
    transition: background .15s ease;
}

.referent-rides-table tbody tr:hover {
    background: #fbfcfd;
}

.referent-ride-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referent-ride-date strong {
    color: #081b35;
}

.referent-ride-time {
    color: #98a2b3;
    font-size: 11px;
}

.referent-ride-place {
    color: #081b35;
}

.referent-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .25px;
}

.referent-status-planned {
    color: #175cd3;
    background: #eff8ff;
}

.referent-status-completed {
    color: #027a48;
    background: #ecfdf3;
}

.referent-status-cancelled {
    color: #b42318;
    background: #fef3f2;
}

.referent-status-default {
    color: #475467;
    background: #f2f4f7;
}

.referent-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #344054;
    font-size: 12px;
}

.referent-level i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #98a2b3;
}

.referent-level-beginner i {
    background: #22c55e;
}

.referent-level-initiated i {
    background: #3b82f6;
}

.referent-level-intermediate i {
    background: #f59e0b;
}

.referent-level-confirmed i {
    background: #ef4444;
}

.referent-level-expert i {
    background: #8b5cf6;
}

.referent-manage-cell {
    text-align: right;
}

.referent-manage-button {
    width: auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 9px;
    background: #081b35;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.referent-manage-button:hover {
    opacity: .88;
}

.referent-empty {
    padding: 42px 20px;
    text-align: center;
    color: #667085;
}

.referent-empty > div {
    margin-bottom: 8px;
    font-size: 30px;
}

.referent-empty strong {
    display: block;
    margin-bottom: 5px;
    color: #081b35;
}

.referent-empty p {
    margin: 0;
    font-size: 12px;
}

.referent-load-error {
    margin: 15px;
    padding: 13px;
    border-radius: 9px;
    color: #b42318;
    background: #fef3f2;
}




/* Gestionnaire de randonnée FIT'RAH */

#rideManager:not(.hidden) {
    margin: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 15px;
    background: white;
}

.referent-manager-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 22px;
    background: #081b35;
    color: white;
}

.referent-manager-kicker {
    margin-bottom: 4px;
    color: #f2c76e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.referent-manager-header h3 {
    margin: 0 0 9px !important;
    color: white !important;
    font-size: 21px;
}

.referent-manager-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    color: #cbd5e1;
    font-size: 12px;
}

.referent-manager-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.referent-manager-close {
    width: 34px !important;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: white;
    font-size: 22px;
}

.referent-manager-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.referent-manager-button {
    width: auto;
    margin: 0;
    padding: 9px 14px;
}

.referent-manager-button.secondary {
    border: 1px solid #d0d5dd;
    background: white;
    color: #081b35;
}

.referent-manager-body {
    margin: 0 !important;
    padding: 20px !important;
    border: 0 !important;
}

.referent-manager-welcome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border-radius: 11px;
    background: #f8fafc;
}

.referent-manager-welcome > span {
    font-size: 27px;
}

.referent-manager-welcome strong {
    color: #081b35;
}

.referent-manager-welcome p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 12px;
}

.referent-manager-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.referent-manager-section-title strong,
.referent-manager-section-title small {
    display: block;
}

.referent-manager-section-title strong {
    color: #081b35;
}

.referent-manager-section-title small {
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}

.referent-participant-count {
    min-width: 30px;
    padding: 5px 9px;
    border-radius: 20px;
    background: #fff4d6;
    color: #8a5a00;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.referent-add-participant {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.referent-add-participant select,
.referent-add-participant button {
    margin: 0;
}

.referent-add-participant button {
    width: auto;
}

.referent-participant-list {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
}

.referent-participant-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 13px;
    border-bottom: 1px solid #eaecf0;
}

.referent-participant-row:last-child {
    border-bottom: 0;
}

.referent-attendance-person {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    font-weight: normal;
}

.referent-attendance-person input {
    width: auto;
    margin: 0;
}

.referent-participant-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #f2f4f7;
}

.referent-participant-name strong,
.referent-participant-name small {
    display: block;
}

.referent-participant-name strong {
    color: #081b35;
    font-size: 13px;
}

.referent-participant-name small {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}

.referent-remove-button {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #fecdca;
    background: #fff;
    color: #b42318;
    font-size: 11px;
}

.referent-info-note {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #eff8ff;
    color: #175cd3;
    font-size: 12px;
}

.referent-attendance-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.referent-attendance-actions button {
    width: auto;
    margin: 0;
}

/* Ajout rapide participant */

.referent-quick-add-action {
    margin-top: 14px;
}

.referent-quick-add-action button {
    width: auto;
    margin: 0;
}

.referent-quick-add-box {
    margin-top: 10px;
}

.referent-quick-add {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}

.referent-quick-add select,
.referent-quick-add button {
    margin: 0;
}

.referent-quick-add button {
    width: auto;
}


/* Gestion des présences */

.referent-attendance-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.referent-attendance-summary > div {
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.referent-attendance-summary strong,
.referent-attendance-summary span {
    display: block;
}

.referent-attendance-summary strong {
    color: #081b35;
    font-size: 20px;
}

.referent-attendance-summary span {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.referent-attendance-choice {
    display: flex;
    align-items: center;
    gap: 7px;
}

.attendance-choice {
    width: auto;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.attendance-choice.present.active {
    border-color: #75c69b;
    background: #ecfdf3;
    color: #067647;
}

.attendance-choice.absent.active {
    border-color: #fda29b;
    background: #fef3f2;
    color: #b42318;
}

.referent-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 20px;
    border-top: 1px solid #fecdca;
    background: #fff7f6;
}

.referent-danger-zone strong,
.referent-danger-zone small {
    display: block;
}

.referent-danger-zone strong {
    color: #b42318;
    font-size: 12px;
}

.referent-danger-zone small {
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}

.referent-danger-button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    background: #b42318;
    color: white;
    font-size: 11px;
}

.referent-loading {
    padding: 25px;
    color: #667085;
    text-align: center;
}

@media (max-width:600px) {

    .referent-manager-header {
        flex-direction: column;
    }

    .referent-manager-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .referent-add-participant {
        grid-template-columns: 1fr;
    }

    .referent-add-participant button {
        width: 100%;
    }

    .referent-quick-add-action button {
        width: 100%;
    }

    .referent-quick-add {
        grid-template-columns: 1fr;
    }

    .referent-quick-add button {
        width: 100%;
        min-height: 44px;
    }

    .referent-participant-row {
        align-items: stretch;
        flex-direction: column;
    }

    .referent-attendance-choice {
        width: 100%;
    }

    .attendance-choice {
        flex: 1;
        min-height: 44px;
    }

    .referent-attendance-choice .referent-remove-button {
        min-height: 44px;
    }

    .referent-attendance-actions button {
        width: 100%;
        min-height: 48px;
    }

    .referent-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .referent-danger-button {
        width: 100%;
    }
}




/* Participants historiques */

.referent-historical-label {
    color: #8a5a00 !important;
}

.referent-historical-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #f2d58a;
    border-radius: 20px;
    background: #fff8e8;
    color: #8a5a00;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .5px;
}




/* Edition d'une randonnée */

.referent-edit-form {
    margin-top: 4px;
}

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

.referent-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #0b1f38;
}

.referent-edit-grid input,
.referent-edit-grid textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    padding: 11px 12px;
    background: #fff;
    color: #0b1f38;
    font: inherit;
    font-weight: 500;
}

.referent-edit-grid input:focus,
.referent-edit-grid textarea:focus {
    outline: none;
    border-color: #d8a928;
    box-shadow: 0 0 0 3px rgba(216,169,40,.12);
}

.referent-edit-grid textarea {
    resize: vertical;
    min-height: 82px;
}

.referent-edit-wide {
    grid-column: 1 / -1;
}

.referent-distance-input {
    display: flex;
    align-items: center;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.referent-distance-input input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.referent-distance-input span {
    padding: 0 13px;
    color: #6b7280;
    font-weight: 800;
}

.referent-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

@media (max-width: 700px) {
    .referent-edit-grid {
        grid-template-columns: 1fr;
    }

    .referent-edit-wide {
        grid-column: auto;
    }

    .referent-edit-actions {
        flex-direction: column-reverse;
    }

    .referent-edit-actions button {
        width: 100%;
    }
}




/* Annulation d'une randonnée */

.referent-manager-button.referent-cancel-button {
    margin-left: auto;
    background: #fff;
    border-color: #f0b7b7;
    color: #b42318;
}

.referent-manager-button.referent-cancel-button:hover {
    background: #fff5f5;
    border-color: #e58c8c;
}

@media (max-width: 800px) {
    .referent-manager-button.referent-cancel-button {
        margin-left: 0;
    }
}




/* =========================
   ADMINISTRATION - FIT'RAH UI
   ========================= */

.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 28px 30px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #0b1f38;
    color: #fff;
}

.admin-kicker {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    color: #d8a928;
}

.admin-hero h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 28px;
}

.admin-hero p {
    margin: 0;
    max-width: 650px;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
}

.admin-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    font-size: 30px;
}


.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    background: #fff;
}

.admin-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f4f6f8;
    font-size: 20px;
}

.admin-stat-card strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    color: #0b1f38;
}

.admin-stat-card span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #788493;
}


.admin-users-panel {
    overflow: hidden;
    border: 1px solid #e4e8ee;
    border-radius: 14px;
    background: #fff;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f4;
}

.admin-panel-header h3 {
    margin: 0;
    color: #0b1f38;
    font-size: 18px;
}

.admin-panel-header p {
    margin: 4px 0 0;
    color: #7b8794;
    font-size: 13px;
}

.admin-refresh-button {
    width: auto;
    padding: 9px 13px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    color: #0b1f38;
    font-weight: 800;
}


.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px,1fr) repeat(4,minmax(140px,180px));
    gap: 12px;
    padding: 16px 22px;
    background: #fafbfc;
    border-bottom: 1px solid #edf0f4;
}

.admin-search-box {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    background: #fff;
}

.admin-search-box span {
    color: #8a95a3;
    font-size: 19px;
}

.admin-search-box input {
    width: 100%;
    margin: 0;
    padding: 11px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.admin-search-box input:focus {
    outline: none;
    box-shadow: none;
}

.admin-filters select {
    margin: 0;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    background: #fff;
}


.admin-table-wrapper {
    overflow-x: auto;
}

.admin-users-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.admin-users-table th {
    padding: 12px 18px;
    background: #fafbfc;
    border-bottom: 1px solid #e7ebef;
    color: #7b8794;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.admin-users-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

.admin-users-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-users-table tbody tr:hover {
    background: #fbfcfd;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 170px;
}

.admin-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0b1f38;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.admin-user-cell strong {
    color: #0b1f38;
}

.admin-user-id {
    display: block;
    margin-top: 2px;
    color: #9aa3ad;
    font-size: 11px;
}

.admin-role-badge,
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-profile-type {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-profile-inscrit {
    background: #e9f7ef;
    color: #257a48;
}

.admin-profile-enfant {
    background: #e9edff;
    color: #3949ab;
}

.admin-profile-non-inscrit {
    background: #eef2f6;
    color: #667085;
}

.admin-profile-historique {
    background: #fff4d8;
    color: #8a6200;
}

.admin-role-rando {
    background: #eef2f6;
    color: #455466;
}

.admin-role-referent {
    background: #fff4d8;
    color: #8a6200;
}

.admin-role-admin {
    background: #e9edff;
    color: #3949ab;
}

.admin-status-active {
    background: #e9f7ef;
    color: #257a48;
}

.admin-status-disabled {
    background: #fdecec;
    color: #b42318;
}

.admin-manage-button {
    width: auto;
    padding: 7px 11px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    background: #fff;
    color: #0b1f38;
    font-size: 12px;
    font-weight: 800;
}

#adminUsersMessage:not(.hidden) {
    margin: 18px 22px;
}


@media (max-width: 900px) {

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

}

@media (max-width: 650px) {

    .admin-hero {
        padding: 22px;
    }

    .admin-hero-icon {
        display: none;
    }

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

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-panel-header {
        align-items: flex-start;
    }

}




/* =========================
   FICHE UTILISATEUR ADMIN
   ========================= */

#adminUsersMessage {
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-user-detail {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-left: 3px solid #d8a928;
    border-radius: 11px;
    background: #fff;
}

.admin-detail-loading {
    padding: 25px;
    color: #7b8794;
    text-align: center;
}

.admin-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 22px;
    background: #f8fafc;
    border-bottom: 1px solid #e7ebef;
}

.admin-detail-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-detail-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0b1f38;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.admin-detail-kicker {
    margin-bottom: 3px;
    color: #8b96a3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.admin-detail-header h3 {
    margin: 0 0 7px;
    color: #0b1f38;
    font-size: 20px;
}

.admin-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-detail-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dce2e8;
    border-radius: 8px;
    background: #fff;
    color: #657180;
    font-size: 22px;
    line-height: 1;
}

.admin-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
    gap: 18px;
    padding: 20px 22px;
}

.admin-detail-main,
.admin-detail-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-detail-section,
.admin-activity-card,
.admin-account-actions {
    padding: 17px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
}

.admin-detail-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
}

.admin-detail-section-title > span {
    font-size: 18px;
}

.admin-detail-section-title strong {
    display: block;
    color: #0b1f38;
    font-size: 14px;
}

.admin-detail-section-title small {
    display: block;
    margin-top: 2px;
    color: #8a95a3;
    font-size: 11px;
}

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

.admin-info-item {
    padding: 11px 12px;
    border-radius: 8px;
    background: #f7f9fb;
}

.admin-info-item span {
    display: block;
    margin-bottom: 4px;
    color: #8a95a3;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-info-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0b1f38;
    font-size: 13px;
}

.admin-identities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-identity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f9fb;
}

.admin-identity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e1e6eb;
    color: #0b1f38;
    font-weight: 900;
}

.admin-identity-row strong {
    display: block;
    color: #0b1f38;
    font-size: 12px;
}

.admin-identity-row span {
    display: block;
    margin-top: 2px;
    color: #7b8794;
    font-size: 11px;
}

.admin-empty-identity {
    padding: 12px;
    border-radius: 8px;
    background: #f7f9fb;
    color: #7b8794;
    font-size: 12px;
}

.admin-activity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.admin-activity-stats > div {
    padding: 12px 6px;
    border-radius: 8px;
    background: #f7f9fb;
    text-align: center;
}

.admin-activity-stats strong {
    display: block;
    color: #0b1f38;
    font-size: 19px;
}

.admin-activity-stats span {
    display: block;
    margin-top: 3px;
    color: #7b8794;
    font-size: 9px;
    font-weight: 700;
}

.admin-account-actions {
    background: #fafbfc;
}

.admin-account-actions > strong {
    color: #0b1f38;
    font-size: 13px;
}

.admin-account-actions p {
    margin: 6px 0 13px;
    color: #7b8794;
    font-size: 11px;
    line-height: 1.5;
}

.admin-merge-button {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0b1f38;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 850px) {

    .admin-detail-content {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .admin-info-grid {
        grid-template-columns: 1fr;
    }

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

}




/* Gestion rôle et statut Admin */

.admin-account-field {
    margin: 14px 0;
}

.admin-account-field label {
    display: block;
    margin-bottom: 6px;
    color: #657180;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-account-field select {
    width: 100%;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    color: #0b1f38;
    font-size: 12px;
    font-weight: 700;
}

.admin-account-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 11px 12px;
    border-radius: 8px;
    background: #f4f6f8;
}

.admin-account-status strong {
    display: block;
    color: #0b1f38;
    font-size: 11px;
}

.admin-account-status small {
    display: block;
    margin-top: 2px;
    color: #8a95a3;
    font-size: 9px;
}

.admin-switch {
    position: relative;
    display: inline-block;
    flex: 0 0 40px;
    width: 40px;
    height: 22px;
}

.admin-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.admin-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #cbd2da;
    transition: .2s;
}

.admin-switch span::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
}

.admin-switch input:checked + span {
    background: #2e9d61;
}

.admin-switch input:checked + span::before {
    transform: translateX(18px);
}

.admin-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .55;
}

.admin-save-account-button {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #d8a928;
    color: #0b1f38;
    font-size: 11px;
    font-weight: 900;
}

.admin-save-account-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.admin-self-protection {
    margin: 10px 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: #eef3f8;
    color: #526172;
    font-size: 10px;
    line-height: 1.4;
}

.admin-account-separator {
    height: 1px;
    margin: 16px 0 13px;
    background: #e3e7ec;
}




/* =========================
   FUSION DE COMPTES ADMIN
   ========================= */

.admin-merge {
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-left: 3px solid #d8a928;
    border-radius: 11px;
    background: #fff;
}

.admin-merge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #e7ebef;
    background: #f8fafc;
}

.admin-merge-header h3 {
    margin: 0 0 5px;
    color: #0b1f38;
    font-size: 20px;
}

.admin-merge-header p {
    margin: 0;
    color: #7b8794;
    font-size: 12px;
}

.admin-merge-warning,
.admin-merge-final-warning {
    display: flex;
    gap: 12px;
    margin: 18px 22px;
    padding: 13px 15px;
    border: 1px solid #f0d88e;
    border-radius: 9px;
    background: #fff9e8;
}

.admin-merge-warning > span,
.admin-merge-final-warning > span {
    font-size: 19px;
}

.admin-merge-warning strong,
.admin-merge-final-warning strong {
    display: block;
    color: #725600;
    font-size: 12px;
}

.admin-merge-warning p,
.admin-merge-final-warning p {
    margin: 4px 0 0;
    color: #7d6b32;
    font-size: 11px;
    line-height: 1.5;
}

.admin-merge-selector,
.admin-merge-preview {
    margin: 18px 22px;
}

.admin-merge-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-merge-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b1f38;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.admin-merge-step strong {
    display: block;
    color: #0b1f38;
    font-size: 13px;
}

.admin-merge-step small {
    display: block;
    margin-top: 2px;
    color: #8a95a3;
    font-size: 10px;
}

.admin-merge-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,.8fr);
    gap: 10px;
}

.admin-merge-search input,
.admin-merge-search select {
    width: 100%;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
}

.admin-merge-selector-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-merge-preview-button,
.admin-merge-cancel-button {
    width: auto;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.admin-merge-preview-button {
    background: #0b1f38;
    color: #fff;
}

.admin-merge-cancel-button {
    border: 1px solid #dfe4ea;
    background: #fff;
    color: #526172;
}

.admin-merge-comparison {
    display: grid;
    grid-template-columns: minmax(0,1fr) 55px minmax(0,1fr);
    gap: 12px;
    align-items: stretch;
}

.admin-merge-account {
    padding: 15px;
    border: 1px solid #e1e6eb;
    border-radius: 10px;
    background: #fff;
}

.admin-merge-primary {
    border-top: 3px solid #2e9d61;
}

.admin-merge-secondary {
    border-top: 3px solid #cf4a4a;
}

.admin-merge-account-label {
    margin-bottom: 13px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}

.admin-merge-primary .admin-merge-account-label {
    color: #278652;
}

.admin-merge-secondary .admin-merge-account-label {
    color: #b42318;
}

.admin-merge-account-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-merge-account-user .admin-detail-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 13px;
}

.admin-merge-account-user > div:last-child > strong {
    display: block;
    color: #0b1f38;
    font-size: 14px;
}

.admin-merge-account-user > div:last-child > span {
    display: block;
    margin-top: 2px;
    color: #8a95a3;
    font-size: 10px;
}

.admin-merge-account-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 13px;
}

.admin-merge-account-info > div {
    padding: 8px;
    border-radius: 7px;
    background: #f7f9fb;
}

.admin-merge-account-info span,
.admin-merge-connections > span {
    display: block;
    margin-bottom: 3px;
    color: #8a95a3;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-merge-account-info strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0b1f38;
    font-size: 10px;
}

.admin-merge-account-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 5px;
    margin-top: 9px;
}

.admin-merge-account-stats > div {
    padding: 8px 3px;
    border-radius: 7px;
    background: #f7f9fb;
    text-align: center;
}

.admin-merge-account-stats strong {
    display: block;
    color: #0b1f38;
    font-size: 14px;
}

.admin-merge-account-stats span {
    display: block;
    margin-top: 2px;
    color: #7b8794;
    font-size: 7px;
}

.admin-merge-connections {
    margin-top: 10px;
}

.admin-merge-identity,
.admin-merge-no-identity {
    display: inline-block;
    margin: 2px 3px 2px 0;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f4f7;
    color: #5f6c79;
    font-size: 9px;
}

.admin-merge-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d8a928;
    font-size: 27px;
    font-weight: 900;
}

.admin-merge-arrow small {
    margin-top: 3px;
    color: #8a95a3;
    font-size: 7px;
    letter-spacing: .08em;
}

.admin-merge-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0;
    padding: 12px;
    border-radius: 8px;
    background: #f7f9fb;
    color: #526172;
    font-size: 10px;
    line-height: 1.5;
}

.admin-merge-confirmation input {
    width: auto;
    margin: 2px 0 0;
}

.admin-merge-execute {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    background: #b42318;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.admin-merge-error {
    margin: 15px 22px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #fdecec;
    color: #a52820;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 850px) {

    .admin-merge-search {
        grid-template-columns: 1fr;
    }

    .admin-merge-comparison {
        grid-template-columns: 1fr;
    }

    .admin-merge-arrow {
        transform: rotate(-90deg);
        min-height: 35px;
    }

    .admin-merge-arrow small {
        display: none;
    }
}




/* =========================
   AUTHENTIFICATION FIT'RAH
   ========================= */

#authSection {
    margin: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: 330px minmax(0,1fr);
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-intro {
    position: relative;
    overflow: hidden;
    padding: 38px 30px;
    background:
        linear-gradient(
            145deg,
            var(--navy-950),
            var(--navy-800)
        );
    color: #fff;
}

.auth-intro::after {
    content: "🛼";
    position: absolute;
    right: -30px;
    bottom: -30px;
    font-size: 150px;
    opacity: .04;
    transform: rotate(-15deg);
}

.auth-intro-content {
    position: relative;
    z-index: 1;
}

.auth-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 13px;
    background: rgba(255,255,255,.06);
    font-size: 27px;
}

.auth-kicker {
    margin-bottom: 9px;
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.auth-intro h2 {
    margin: 0;
    color: #fff;
    font-size: 35px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.auth-intro h2 span {
    color: var(--gold);
}

.auth-intro > div > p {
    margin: 18px 0 27px;
    color: #c4ccd7;
    font-size: 12px;
    line-height: 1.65;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.auth-features > div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e3e8ee;
    font-size: 11px;
}

.auth-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(217,164,65,.15);
    color: var(--gold-light);
    font-size: 10px;
}

.auth-main {
    padding: 28px;
}

.auth-columns {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
}

.auth-panel {
    min-width: 0;
}

.auth-login-panel {
    padding-right: 24px;
    border-right: 1px solid #e5e9ee;
}

.auth-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    border-radius: 9px;
    background: #f2f4f7;
    font-size: 17px;
}

.auth-panel-heading h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 18px;
}

.auth-panel-heading p {
    margin: 2px 0 0;
    color: #87919e;
    font-size: 10px;
}

.auth-form {
    margin: 0;
}

.auth-form label {
    margin: 10px 0 4px;
    color: #596676;
    font-size: 10px;
    font-weight: 800;
}

.auth-form label:first-child {
    margin-top: 0;
}

.auth-form label small {
    color: #9aa3ae;
    font-weight: 500;
}

.auth-form input,
.auth-form select {
    margin: 0;
    padding: 10px 11px;
    border-radius: 8px;
    font-size: 12px;
}

.auth-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.auth-name-grid label {
    margin-top: 0;
}

.auth-primary-button,
.auth-register-button {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.auth-primary-button {
    background: var(--navy-900);
}

.auth-register-button {
    background: var(--gold);
    color: var(--navy-950);
}

.auth-register-button:hover {
    background: var(--gold-light);
}

#forgotPasswordButton.auth-forgot-button {
    width: auto;
    display: block;
    margin: 7px auto 0;
    padding: 4px 7px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #687386 !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

#forgotPasswordButton.auth-forgot-button:hover {
    color: var(--gold-dark) !important;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 12px;
    color: #9aa3ae;
    font-size: 9px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e9ee;
}

.auth-divider span {
    white-space: nowrap;
}

.auth-google {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.auth-subpanel {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid #e2e7ec;
    border-radius: 9px;
    background: #f8fafb;
}

.auth-subpanel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.auth-subpanel-title > span {
    font-size: 16px;
}

.auth-subpanel-title strong {
    display: block;
    color: var(--navy-900);
    font-size: 11px;
}

.auth-subpanel-title small {
    display: block;
    margin-top: 1px;
    color: #8a95a3;
    font-size: 9px;
}

.auth-subpanel input {
    margin: 0 0 7px;
    padding: 9px 10px;
    font-size: 11px;
}

.auth-subpanel button {
    margin: 0;
    padding: 9px 10px;
    font-size: 10px;
}

#authSection .message {
    font-size: 10px;
}

@media (max-width: 1000px) {

    .auth-shell {
        grid-template-columns: 260px minmax(0,1fr);
    }

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

    .auth-login-panel {
        padding: 0 0 22px;
        border-right: 0;
        border-bottom: 1px solid #e5e9ee;
    }
}

@media (max-width: 700px) {

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        padding: 25px 22px;
    }

    .auth-brand-icon,
    .auth-features {
        display: none;
    }

    .auth-intro h2 {
        font-size: 27px;
    }

    .auth-intro > div > p {
        margin: 10px 0 0;
    }

    .auth-main {
        padding: 20px;
    }

    .auth-name-grid {
        grid-template-columns: 1fr;
    }
}




/* =========================
   FINITIONS MOBILE TABLEAUX
   ========================= */

@media (max-width: 600px) {

    /* ----- Classement général ----- */

    .ranking-table-wrapper {
        overflow-x: visible;
    }

    .ranking-general-table {
        width: 100%;
        table-layout: fixed;
    }

    .ranking-general-table th,
    .ranking-general-table td {
        padding: 10px 4px;
        font-size: 12px;
        vertical-align: middle;
    }

    .ranking-general-table th {
        font-size: 9px;
        letter-spacing: 0;
    }

    .ranking-general-table th:nth-child(1),
    .ranking-general-table td:nth-child(1) {
        width: 11%;
        text-align: center;
    }

    .ranking-general-table th:nth-child(2),
    .ranking-general-table td:nth-child(2) {
        width: 31%;
    }

    .ranking-general-table th:nth-child(3),
    .ranking-general-table td:nth-child(3) {
        width: 27%;
    }

    .ranking-general-table th:nth-child(4),
    .ranking-general-table td:nth-child(4) {
        width: 17%;
        text-align: center;
    }

    .ranking-general-table th:nth-child(5),
    .ranking-general-table td:nth-child(5) {
        width: 14%;
        text-align: center;
    }

    .ranking-rank {
        width: auto;
    }

    .ranking-general-table td:nth-child(2) strong {
        display: block;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    .ranking-level-pill {
        max-width: 100%;
        padding: 4px 6px;
        font-size: 9px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .ranking-km {
        font-size: 12px;
    }


    /* ----- Randonnées passées ----- */

    .rides-history {
        overflow: visible;
    }

    .rides-history table,
    .rides-history thead,
    .rides-history tbody,
    .rides-history tr,
    .rides-history td {
        display: block;
        width: 100%;
    }

    .rides-history thead {
        display: none;
    }

    .rides-history tbody {
        display: grid;
        gap: 12px;
    }

    .rides-history tbody tr {
        position: relative;
        overflow: hidden;
        padding: 14px 15px;
        border: 1px solid var(--border);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(8,17,31,.05);
    }

    .rides-history tbody tr:hover {
        background: #fff;
    }

    .rides-history tbody td {
        display: grid;
        grid-template-columns: 85px minmax(0,1fr);
        gap: 8px;
        align-items: start;
        padding: 6px 0;
        border: 0;
        font-size: 12px;
    }

    .rides-history tbody td::before {
        color: #7a8595;
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .rides-history tbody td:nth-child(1)::before {
        content: "Date";
    }

    .rides-history tbody td:nth-child(2)::before {
        content: "Lieu";
    }

    .rides-history tbody td:nth-child(3)::before {
        content: "Niveau";
    }

    .rides-history tbody td:nth-child(4)::before {
        content: "Distance";
    }

    .rides-history tbody td:nth-child(5)::before {
        content: "Référent";
    }

    .rides-history tbody td:nth-child(6)::before {
        content: "Statut";
    }

    .rides-history tbody td:first-child {
        padding-top: 0;
    }

    .rides-history tbody td:last-child {
        padding-bottom: 0;
    }

    .rides-history tbody td:nth-child(1) strong {
        color: var(--navy-900);
        font-size: 13px;
    }
}




/* =========================
   REFERENT - MES RANDONNEES MOBILE
   ========================= */

@media (max-width: 600px) {

    #referentRidesContainer {
        overflow: visible;
    }

    .referent-rides-table,
    .referent-rides-table thead,
    .referent-rides-table tbody,
    .referent-rides-table tr,
    .referent-rides-table td {
        display: block;
        width: 100%;
    }

    .referent-rides-table thead {
        display: none;
    }

    .referent-rides-table tbody {
        display: grid;
        gap: 12px;
    }

    .referent-rides-table tbody tr {
        padding: 15px;
        border: 1px solid var(--border);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 3px 12px rgba(8,17,31,.05);
    }

    .referent-rides-table tbody tr:hover {
        background: #fff;
    }

    .referent-rides-table tbody td {
        display: grid;
        grid-template-columns: 82px minmax(0,1fr);
        gap: 9px;
        align-items: center;
        padding: 6px 0;
        border: 0;
        font-size: 12px;
    }

    .referent-rides-table tbody td::before {
        color: #7a8595;
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .referent-rides-table tbody td:nth-child(1)::before {
        content: "Date";
    }

    .referent-rides-table tbody td:nth-child(2)::before {
        content: "Lieu";
    }

    .referent-rides-table tbody td:nth-child(3)::before {
        content: "Niveau";
    }

    .referent-rides-table tbody td:nth-child(4)::before {
        content: "Distance";
    }

    .referent-rides-table tbody td:nth-child(5)::before {
        content: "Statut";
    }

    .referent-rides-table tbody td:nth-child(6)::before {
        content: "Gestion";
    }

    .referent-rides-table .referent-ride-place {
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .referent-rides-table .referent-manage-cell {
        margin-top: 5px;
        padding-top: 11px;
        border-top: 1px solid var(--border);
    }

    .referent-rides-table .referent-manage-button {
        width: 100%;
        margin: 0;
        padding: 10px 12px;
    }

    .referent-rides-table .referent-status,
    .referent-rides-table .referent-level {
        width: fit-content;
        max-width: 100%;
    }
}




/* Correction unité distance - cartes référent mobile */
@media (max-width: 600px) {
    .referent-rides-table tbody td:nth-child(4) {
        display: block;
        position: relative;
        padding-left: 91px;
        min-height: 28px;
        line-height: 1.4;
    }

    .referent-rides-table tbody td:nth-child(4)::before {
        content: "Distance";
        position: absolute;
        left: 0;
        top: 6px;
        width: 82px;
    }

    .referent-rides-table tbody td:nth-child(4) strong {
        display: inline;
    }
}



/* Découverte / Adhérent */
.membership-list-badge {
    margin-top: 5px;
}

.membership-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.membership-discovery {
    background: #eef3f8;
    color: #44566c;
}

.membership-adherent {
    background: #e9f7ef;
    color: #18733b;
}

.membership-pending {
    background: #fff1d6;
    color: #9a5b00;
}

.fitrah-sidebar-logo {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}


.sidebar-roller-art {
    flex: 0 0 auto;
    width: 100%;
    height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-roller-art img {
    display: block;
    width: 235px;
    max-width: 100%;
    height: auto;
    margin-left: -10px;
    margin-bottom: -4px;
    filter: drop-shadow(0 0 12px rgba(225, 160, 65, .18));
}

/* Évite que l'illustration gêne sur les écrans peu hauts */
@media (max-height: 720px) {
    .sidebar-roller-art {
        display: none;
    }
}


/* ==========================================================
   AIDE NIVEAUX ROLLER
   ========================================================== */

.level-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    padding: 0;
    border: 1px solid #94a3b8;
    border-radius: 50%;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.level-info-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.level-help-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
}

.level-help-modal.hidden {
    display: none;
}

.level-help-box {
    position: relative;
    width: min(680px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(212, 166, 86, 0.45);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right,
            rgba(212, 166, 86, 0.16),
            transparent 34%),
        linear-gradient(180deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.01)),
        #0b0b0f;
    box-shadow:
        0 24px 80px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.03) inset;
    color: #f8fafc;
}

.level-help-box h2 {
    margin: 0 48px 20px 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.level-help-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.level-help-close:hover {
    background: rgba(212, 166, 86, 0.18);
    border-color: rgba(212, 166, 86, 0.38);
    color: #ffffff;
}

.level-help-item {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.07);
    border-left: 4px solid rgba(212,166,86,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}

.level-help-item:last-child {
    margin-bottom: 0;
}

.level-help-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.level-help-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255,255,255,.08);
}

.level-help-title {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .01em;
    border: 1px solid rgba(255,255,255,.08);
}

.level-help-description {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.55;
}

/* Couleurs par niveau */
.level-help-beginner {
    border-left-color: #22c55e;
}
.level-help-beginner .level-help-dot {
    background: #22c55e;
}
.level-help-beginner .level-help-title {
    background: rgba(34, 197, 94, .14);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}

.level-help-initie {
    border-left-color: #4ade80;
}
.level-help-initie .level-help-dot {
    background: #4ade80;
}
.level-help-initie .level-help-title {
    background: rgba(74, 222, 128, .14);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, .32);
}

.level-help-debrouille {
    border-left-color: #3b82f6;
}
.level-help-debrouille .level-help-dot {
    background: #3b82f6;
}
.level-help-debrouille .level-help-title {
    background: rgba(59, 130, 246, .14);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, .35);
}

.level-help-intermediaire {
    border-left-color: #eab308;
}
.level-help-intermediaire .level-help-dot {
    background: #eab308;
}
.level-help-intermediaire .level-help-title {
    background: rgba(234, 179, 8, .14);
    color: #fde68a;
    border-color: rgba(234, 179, 8, .35);
}

.level-help-confirme {
    border-left-color: #f97316;
}
.level-help-confirme .level-help-dot {
    background: #f97316;
}
.level-help-confirme .level-help-title {
    background: rgba(249, 115, 22, .14);
    color: #fdba74;
    border-color: rgba(249, 115, 22, .35);
}

.level-help-expert {
    border-left-color: #ef4444;
}
.level-help-expert .level-help-dot {
    background: #ef4444;
}
.level-help-expert .level-help-title {
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

@media (max-width: 600px) {
    .level-help-modal {
        align-items: flex-end;
        padding: 0;
    }

    .level-help-box {
        width: 100%;
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
        padding: 22px 18px 18px;
    }

    .level-help-box h2 {
        font-size: 1.2rem;
        margin-right: 44px;
    }

    .level-help-item {
        padding: 14px;
    }

    .level-help-description {
        font-size: .93rem;
        line-height: 1.5;
    }
}


/* ==========================================================
   FAMILLE
   ========================================================== */

.family-panel {
    margin-top: 22px;
}

.family-intro {
    margin: 0 18px 18px;
    opacity: .78;
    line-height: 1.5;
}

.family-list {
    display: grid;
    gap: 0;
    margin: 0 18px 18px;
}

.family-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(128,128,128,.18);
    border-radius: 0;
}

.family-child:last-child {
    border-bottom: 0;
}

.family-child-main {
    min-width: 0;
}

.family-child-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.family-child-meta {
    font-size: .9rem;
    opacity: .72;
}

.family-child-actions {
    flex: 0 0 auto;
}

.family-child-actions button {
    width: auto;
    padding: 8px 14px;
}

.family-empty {
    padding: 18px;
    text-align: center;
    border: 1px dashed rgba(128,128,128,.35);
    border-radius: 12px;
    opacity: .75;
}

.family-add-button {
    width: auto;
    margin-left: 18px;
}

.family-editor {
    margin: 24px 18px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(128,128,128,.2);
}

.family-editor h3 {
    margin: 0 0 16px;
}

.family-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

.family-editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.family-editor-actions button {
    width: auto;
}

@media (max-width: 700px) {
    .family-form-grid {
        grid-template-columns: 1fr;
    }

    .family-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .family-child-actions {
        width: 100%;
    }

    .family-child-actions button {
        width: 100%;
    }

    .family-editor-actions {
        flex-direction: column;
    }

    .family-editor-actions button {
        width: 100%;
    }
}

.ride-deep-link-highlight {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
    border-radius: 10px;
    transition: outline-color .4s ease;
}
/* ===== THEME FITRAH NOIR & OR ===== */
body { background: #080808; color: #f5f5f5; }
#sidebar { background: linear-gradient(180deg, #000000 0%, #080808 55%, #000000 100%); }
#appContent > header { background: linear-gradient(115deg, #000000, #101010); }
.dashboard-welcome {
    background: radial-gradient(circle at 80% 20%, rgba(212,166,86,.28), transparent 30%), linear-gradient(120deg, #000000, #111111);
    border: 1px solid #D4A656;
}
.stat-card { background: #0d0d0d; border-color: rgba(212,166,86,.75); }
.stat-icon { background: rgba(212,166,86,.12); }
.stat-value { color: #ffffff; }
.stat-label { color: #b8b8b8; }
.dashboard-panel { background: #0d0d0d; border-color: rgba(212,166,86,.75); }
.panel-title { color: #ffffff; border-bottom-color: #303030; }
.panel-content { color: #f5f5f5; }

/* ===== ACCUEIL NOIR & OR - FINITIONS ===== */
.my-stat {
    background: #151515;
    border: 1px solid #292929;
}
.my-stat span { color: #b8b8b8; }
.my-stat strong { color: #ffffff; }
.next-ride-date { color: #D4A656; }
.next-ride-place { color: #ffffff; }
.next-ride-meta span {
    background: #181818;
    border: 1px solid #303030;
    color: #f5f5f5;
}
.dashboard-status:not(.registered) {
    background: rgba(212,166,86,.16);
    color: #E5BE73;
}
.next-ride-action button,
.dashboard-ranking-button {
    background: #D4A656;
    border-color: #D4A656;
    color: #000000;
}
.next-ride-action button:hover,
.dashboard-ranking-button:hover {
    background: #E5BE73;
    border-color: #E5BE73;
    color: #000000;
}

/* ===== RANDONNEES NOIR & OR ===== */
#ridesSection.card {
    background: #080808;
    border-color: rgba(212,166,86,.55);
}
#ridesSection.card > h2,
.rides-section-title h3 {
    color: #ffffff;
}
#ridesSection > button {
    background: #151515;
    border-color: #D4A656;
    color: #ffffff;
}
#ridesSection > button:hover {
    background: #D4A656;
    color: #000000;
}
.rides-count {
    background: rgba(212,166,86,.16);
    color: #D4A656;
}
.ride-card {
    background: #0d0d0d;
    border-color: rgba(212,166,86,.65);
    box-shadow: 0 5px 18px rgba(0,0,0,.30);
}
.ride-card:hover {
    box-shadow: 0 10px 28px rgba(212,166,86,.12);
}
.ride-card-top {
    background: #D4A656;
}
.ride-date-icon {
    background: rgba(212,166,86,.12);
}
.ride-date-main,
.ride-location,
.ride-meta-value {
    color: #ffffff;
}
.ride-time,
.ride-meta-label {
    color: #aeb4bd;
}
.ride-meta-item {
    background: #151515;
    border: 1px solid #292929;
}
.ride-card-body p {
    color: #b8b8b8;
}
.ride-card-body a {
    color: #D4A656;
}
.ride-card-actions {
    border-top-color: #303030;
}
.ride-card-actions button {
    background: #D4A656;
    border-color: #D4A656;
    color: #000000;
}
.ride-card-actions button:hover {
    background: #E5BE73;
    border-color: #E5BE73;
    color: #000000;
}
.rides-history {
    border-color: rgba(212,166,86,.55);
    background: #0d0d0d;
}
.rides-history table {
    background: #0d0d0d;
    color: #f5f5f5;
}
.rides-history th {
    background: #151515;
    color: #D4A656;
}
.rides-history td {
    border-color: #292929;
    color: #e5e5e5;
}
.rides-empty {
    border-color: #444444;
    color: #aeb4bd;
}

/* ===== RANDONNEES NOIR & OR - FINITIONS ===== */
.ride-card-body > p {
    color: #b8b8b8 !important;
}
@media (max-width: 700px) {
    .rides-history tbody tr,
    .rides-history tbody tr:hover {
        background: #0d0d0d;
        border-color: rgba(212,166,86,.45);
        box-shadow: 0 3px 12px rgba(0,0,0,.25);
    }
    .rides-history tbody td {
        color: #e5e5e5;
        border-color: #292929;
    }
    .rides-history tbody td::before {
        color: #D4A656;
    }
}

/* Historique randonnées : survol sombre */
.rides-history tbody tr {
    background: #0d0d0d;
}
.rides-history tbody tr:hover {
    background: #181818;
}

/* ===== CLASSEMENT NOIR & OR ===== */
#rankingSection.card {
    background: #080808;
    border-color: rgba(212,166,86,.55);
}
#rankingSection.card > h2 {
    color: #ffffff;
}
#rankingSection > button {
    background: #0d0d0d;
    color: #ffffff;
    border: 1px solid #D4A656;
}
#rankingSection > button:hover {
    background: #181818;
    border-color: #E5BE73;
}
#rankingSection .ranking-tabs {
    background: #151515;
    border: 1px solid #292929;
}
#rankingSection .ranking-tab {
    color: #d7d7d7;
}
#rankingSection .ranking-tab:hover {
    background: #202020;
    color: #ffffff;
}
#rankingSection .ranking-tab.active {
    background: #D4A656;
    color: #000000;
    box-shadow: none;
}
#rankingSection .ranking-summary {
    color: #b8b8b8;
}
#rankingSection .ranking-summary strong {
    color: #ffffff;
}
#rankingSection .ranking-summary span {
    color: #D4A656;
}
#rankingSection .ranking-general-table th {
    color: #D4A656;
    border-bottom-color: #444444;
}
#rankingSection .ranking-general-table td {
    color: #f5f5f5;
    border-bottom-color: #292929;
}
#rankingSection .ranking-general-table tbody tr {
    background: #0d0d0d;
}
#rankingSection .ranking-general-table tbody tr:hover {
    background: #181818;
}
#rankingSection .ranking-general-table .ranking-podium-row {
    background: rgba(212,166,86,.10);
}
#rankingSection .ranking-general-table .ranking-podium-row:hover {
    background: rgba(212,166,86,.17);
}
#rankingSection .ranking-km,
#rankingSection .ranking-rank {
    color: #ffffff;
}
#rankingSection .ranking-level-card {
    background: #0d0d0d;
    border-color: rgba(212,166,86,.45);
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
#rankingSection .ranking-level-table th {
    background: #151515;
    color: #D4A656;
    border-bottom-color: #303030;
}
#rankingSection .ranking-level-table td {
    color: #f5f5f5;
    border-bottom-color: #292929;
}
#rankingSection .ranking-level-table tbody tr {
    background: #0d0d0d;
}
#rankingSection .ranking-level-table tbody tr:hover {
    background: #181818;
}
#rankingSection .ranking-level-pill.intermediaire {
    background: #fef3c7;
    color: #a16207;
}
#rankingSection .ranking-level-intermediaire .ranking-level-header {
    background: linear-gradient(135deg,#ca8a04,#eab308);
    color: #000000;
}

/* ===== PROFIL NOIR & OR ===== */
#profileSection {
    color: #f5f5f5;
}
#profileSection .profile-hero {
    background: radial-gradient(circle at 82% 20%, rgba(212,166,86,.28), transparent 30%), linear-gradient(120deg,#000000,#111111);
    border: 1px solid #D4A656;
}
#profileSection .profile-kicker {
    color: #D4A656;
}
#profileSection .profile-hero h2 {
    color: #ffffff;
}
#profileSection .profile-hero-meta {
    color: #b8b8b8;
}
#profileSection .profile-avatar {
    background: rgba(212,166,86,.14);
    border-color: rgba(212,166,86,.55);
}
#profileSection .profile-stat {
    background: #0d0d0d;
    border-color: rgba(212,166,86,.55);
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
#profileSection .profile-stat-icon {
    background: rgba(212,166,86,.12);
}
#profileSection .profile-stat strong {
    color: #ffffff;
}
#profileSection .profile-stat span {
    color: #b8b8b8;
}
#profileSection .profile-panel {
    background: #0d0d0d;
    border-color: rgba(212,166,86,.45);
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}
#profileSection .profile-panel-title {
    border-bottom-color: #292929;
}
#profileSection .profile-panel-title strong,
#profileSection .family-editor h3 {
    color: #ffffff;
}
#profileSection .profile-panel-hint,
#profileSection .family-intro,
#profileSection .family-child-meta {
    color: #b8b8b8;
}
#profileSection label {
    color: #d7d7d7;
}
#profileSection input,
#profileSection select {
    background: #151515;
    color: #ffffff;
    border-color: #3a3a3a;
}
#profileSection input:focus,
#profileSection select:focus {
    border-color: #D4A656;
    box-shadow: 0 0 0 3px rgba(212,166,86,.14);
}
#profileSection .profile-save button,
#profileSection .family-add-button,
#profileSection .family-editor-actions button {
    background: #D4A656;
    border-color: #D4A656;
    color: #000000;
}
#profileSection .profile-save button:hover,
#profileSection .family-add-button:hover,
#profileSection .family-editor-actions button:hover {
    background: #E5BE73;
    border-color: #E5BE73;
    color: #000000;
}
#profileSection .profile-account-row {
    border-bottom-color: #292929;
}
#profileSection .profile-account-row span {
    color: #b8b8b8;
}
#profileSection .profile-account-row strong {
    color: #ffffff;
}
#profileSection .profile-security-note {
    background: #151515;
    border-color: #292929;
    color: #b8b8b8;
}
#profileSection .family-child {
    border-bottom-color: #292929;
}
#profileSection .family-child-name {
    color: #ffffff;
}
#profileSection .family-empty {
    border-color: rgba(212,166,86,.35);
    color: #b8b8b8;
}
#profileSection .family-editor {
    border-top-color: #292929;
}

#profileSection .family-child-actions button {
    background: #0d0d0d;
    color: #D4A656;
    border: 1px solid #D4A656;
}
#profileSection .family-child-actions button:hover {
    background: rgba(212,166,86,.12);
    color: #E5BE73;
    border-color: #E5BE73;
}
/* ===== ESPACE REFERENT NOIR & OR ===== */
#referentSection { color:#f5f5f5; }
#referentSection .referent-hero {
 background:radial-gradient(circle at 82% 20%,rgba(212,166,86,.28),transparent 30%),linear-gradient(120deg,#000,#111);
 border:1px solid #D4A656;
}
#referentSection .referent-kicker { color:#D4A656; }
#referentSection .referent-hero h2 { color:#fff; }
#referentSection .referent-hero p { color:#b8b8b8; }
#referentSection .referent-hero-icon {
 background:rgba(212,166,86,.14);
 border-color:rgba(212,166,86,.55);
}
#referentSection .referent-stat {
 background:#0d0d0d;
 border-color:rgba(212,166,86,.55);
 box-shadow:0 5px 18px rgba(0,0,0,.28);
}
#referentSection .referent-stat > span { background:rgba(212,166,86,.12); }
#referentSection .referent-stat strong { color:#fff; }
#referentSection .referent-stat small { color:#b8b8b8; }
#referentSection .referent-panel {
 background:#0d0d0d;
 border-color:rgba(212,166,86,.45);
 box-shadow:0 5px 18px rgba(0,0,0,.28);
}
#referentSection .referent-panel-header { border-bottom-color:#292929; }
#referentSection .referent-panel-header strong { color:#fff; }
#referentSection .referent-panel-header small { color:#b8b8b8; }
#referentSection label { color:#d7d7d7; }
#referentSection input,
#referentSection select,
#referentSection textarea {
 background:#151515;
 color:#fff;
 border-color:#3a3a3a;
}
#referentSection input:focus,
#referentSection select:focus,
#referentSection textarea:focus {
 border-color:#D4A656;
 box-shadow:0 0 0 3px rgba(212,166,86,.14);
}
#referentSection .referent-distance-input span {
 background:#1c1c1c;
 color:#b8b8b8;
 border-color:#3a3a3a;
}
#referentSection .referent-create-actions button {
 background:#D4A656;
 border-color:#D4A656;
 color:#000;
}
#referentSection .referent-create-actions button:hover {
 background:#E5BE73;
 border-color:#E5BE73;
}
#referentSection .referent-search {
 background:#151515;
 border-color:#3a3a3a;
}
#referentSection .referent-search input {
 background:transparent;
 color:#fff;
}
#referentSection .referent-refresh {
 background:#0d0d0d;
 color:#D4A656;
 border-color:#D4A656;
}
#referentSection .referent-refresh:hover {
 background:rgba(212,166,86,.12);
 color:#E5BE73;
}
#referentSection .referent-rides-container table { background:#0d0d0d; }
#referentSection .referent-rides-container th {
 background:#151515;
 color:#D4A656;
 border-color:#292929;
}
#referentSection .referent-rides-container td {
 color:#e8e8e8;
 border-color:#292929;
}
#referentSection .referent-rides-table tbody tr { background:#0d0d0d; }
#referentSection .referent-rides-table tbody tr:hover { background:#151515; }
#referentSection .referent-ride-date strong,
#referentSection .referent-ride-place { color:#fff; }
#referentSection .referent-ride-time { color:#b8b8b8; }
#referentSection .referent-manage-button {
 background:#0d0d0d;
 color:#D4A656;
 border-color:#D4A656;
}
#referentSection .referent-manage-button:hover {
 background:rgba(212,166,86,.12);
 color:#E5BE73;
}
#referentSection .referent-empty { color:#b8b8b8; }
#referentSection .referent-empty strong { color:#fff; }

/* ===== ESPACE REFERENT - FINITIONS ===== */
#referentUsersContainer table {
 width:100%;
 background:#0d0d0d;
 border-collapse:collapse;
}
#referentUsersContainer th {
 background:#151515;
 color:#D4A656;
 border-color:#292929;
}
#referentUsersContainer td {
 background:#0d0d0d;
 color:#fff;
 border-color:#292929;
}
#referentUsersContainer button {
 background:#0d0d0d;
 color:#D4A656;
 border:1px solid #D4A656;
}
#referentUsersContainer button:hover {
 background:rgba(212,166,86,.12);
 color:#E5BE73;
}
#referentSection .referent-level {
 color:#b8b8b8;
}
#referentSection .referent-manager-header {
 background:radial-gradient(circle at 85% 20%,rgba(212,166,86,.22),transparent 30%),linear-gradient(120deg,#000,#151515);
 border-color:#D4A656;
}
#referentSection .referent-manager-kicker {
 color:#D4A656;
}
#referentSection .referent-manager-header h3 {
 color:#fff;
}
#referentSection .referent-manager-meta {
 color:#b8b8b8;
}
#referentSection .referent-manager-close {
 background:#151515;
 color:#fff;
 border-color:#444;
}
#referentSection .referent-manager-actions {
 background:#0d0d0d;
 border-color:#292929;
}
#referentSection .referent-manager-button {
 background:#151515;
 color:#D4A656;
 border-color:#D4A656;
}
#referentSection .referent-manager-button.secondary {
 background:#151515;
 color:#D4A656;
 border-color:#D4A656;
}
#referentSection .referent-manager-body {
 background:#0d0d0d;
 color:#fff;
}
#referentSection .referent-manager-welcome {
 background:#151515;
 border-color:#292929;
}
#referentSection .referent-manager-welcome strong,
#referentSection .referent-manager-section-title strong {
 color:#fff;
}
#referentSection .referent-manager-welcome p,
#referentSection .referent-manager-section-title small {
 color:#b8b8b8;
}
#referentSection .referent-manager-section-title {
 border-color:#292929;
}
#referentSection .referent-participant-row {
 background:#151515;
 border-color:#292929;
}
#referentSection .referent-participant-name strong {
 color:#fff;
}
#referentSection .referent-participant-name small {
 color:#b8b8b8;
}
#referentSection .referent-add-participant select,
#referentSection .referent-quick-add select {
 background:#151515;
 color:#fff;
 border-color:#3a3a3a;
}
#referentSection .referent-add-participant button,
#referentSection .referent-quick-add button,
#referentSection .referent-attendance-actions button {
 background:#D4A656;
 color:#000;
 border-color:#D4A656;
}
#referentSection .referent-info-note,
#referentSection .referent-quick-add-box {
 background:#151515;
 color:#b8b8b8;
 border-color:#292929;
}
#referentSection .referent-attendance-summary > div {
 background:#151515;
 border-color:#292929;
}
#referentSection .referent-attendance-summary strong {
 color:#fff;
}
#referentSection .referent-attendance-summary span {
 color:#b8b8b8;
}
#referentSection .referent-edit-grid input,
#referentSection .referent-edit-grid textarea {
 background:#151515;
 color:#fff;
 border-color:#3a3a3a;
}
#referentSection .referent-danger-zone {
 background:#1a0d0d;
 border-color:#5a2020;
}

/* ===== REFERENT AJOUT PARTICIPANT ===== */
#referentSection .referent-quick-add {
    background:#151515;
    border-color:#3a3a3a;
}
#referentSection .referent-quick-add select {
    background:#0d0d0d;
    color:#ffffff;
    border-color:#3a3a3a;
}
/* ===== REFERENT DISTANCE - FINITION ===== */
#referentSection .referent-distance-input {
    border-color:#3a3a3a;
}
#referentSection .referent-distance-input input {
    border-color:#3a3a3a;
}
#referentSection .referent-distance-input span {
    background:#151515;
    color:#b8b8b8;
    border-color:#3a3a3a;
    border-left:1px solid #3a3a3a;
}
#referentSection .referent-distance-input {
    background:#151515;
}
#referentSection .referent-distance-input span {
    border:0 !important;
    background:transparent;
}
/* ===== DISTANCE SANS FLECHES ===== */
#rideDistance::-webkit-outer-spin-button,
#rideDistance::-webkit-inner-spin-button {
    -webkit-appearance:none;
    margin:0;
}
#rideDistance {
    appearance:textfield;
    -moz-appearance:textfield;
}
/* ===== PRESENCES - BOUTONS DARK ===== */
#referentSection .attendance-choice {
    background:#151515;
    color:#b8b8b8;
    border-color:#3a3a3a;
}
#referentSection .attendance-choice:hover {
    background:#202020;
    color:#ffffff;
    border-color:#666666;
}
#referentSection .attendance-choice.present.active {
    background:#0d2a1d;
    color:#6ee7a5;
    border-color:#2f9e63;
}
#referentSection .attendance-choice.absent.active {
    background:#321313;
    color:#ff8b82;
    border-color:#b9433b;
}
#referentSection .referent-remove-button {
    background:#251010;
    color:#ff827a;
    border:1px solid #71302d;
}
#referentSection .referent-remove-button:hover {
    background:#3a1515;
    color:#ffaaa4;
    border-color:#b9433b;
}
/* ===== ADMINISTRATION NOIR & OR ===== */
#adminSection {
    background:#080808;
    color:#f5f5f5;
    border-color:#292929;
}
#adminSection .admin-hero {
    background:radial-gradient(circle at 82% 20%,rgba(212,166,86,.28),transparent 30%),linear-gradient(120deg,#000,#111);
    border:1px solid #D4A656;
}
#adminSection .admin-kicker {
    color:#D4A656;
}
#adminSection .admin-hero h2 {
    color:#ffffff;
}
#adminSection .admin-hero p {
    color:#b8b8b8;
}
#adminSection .admin-hero-icon {
    background:rgba(212,166,86,.14);
    border-color:rgba(212,166,86,.55);
}
#adminSection .admin-stat-card {
    background:#0d0d0d;
    border-color:rgba(212,166,86,.55);
    box-shadow:0 5px 18px rgba(0,0,0,.28);
}
#adminSection .admin-stat-icon {
    background:rgba(212,166,86,.12);
}
#adminSection .admin-stat-card strong {
    color:#ffffff;
}
#adminSection .admin-stat-card span {
    color:#b8b8b8;
}
#adminSection .admin-users-panel {
    background:#0d0d0d;
    border-color:rgba(212,166,86,.45);
    box-shadow:0 5px 18px rgba(0,0,0,.28);
}
#adminSection .admin-panel-header {
    border-bottom-color:#292929;
}
#adminSection .admin-panel-header h3 {
    color:#ffffff;
}
#adminSection .admin-panel-header p {
    color:#b8b8b8;
}
#adminSection .admin-refresh-button {
    background:#0d0d0d;
    color:#D4A656;
    border-color:#D4A656;
}
#adminSection .admin-refresh-button:hover {
    background:rgba(212,166,86,.12);
    color:#E5BE73;
    border-color:#E5BE73;
}
#adminSection .admin-filters {
    border-color:#292929;
}
#adminSection .admin-search-box {
    background:#151515;
    border-color:#3a3a3a;
}
#adminSection .admin-search-box input {
    background:transparent;
    color:#ffffff;
}
#adminSection .admin-search-box input::placeholder {
    color:#888888;
}
#adminSection .admin-filters select {
    background:#151515;
    color:#ffffff;
    border-color:#3a3a3a;
}
#adminSection .admin-table-wrapper {
    border-color:#292929;
}
#adminSection .admin-users-table {
    background:#0d0d0d;
}
#adminSection .admin-users-table th {
    background:#151515;
    color:#D4A656;
    border-color:#292929;
}
#adminSection .admin-users-table td {
    background:#0d0d0d;
    color:#e8e8e8;
    border-color:#292929;
}
#adminSection .admin-users-table tbody tr:hover td {
    background:#151515;
}
#adminSection .admin-user-cell strong {
    color:#ffffff;
}
#adminSection .admin-user-id {
    color:#888888;
}
#adminSection .admin-manage-button {
    background:#0d0d0d;
    color:#D4A656;
    border-color:#D4A656;
}
#adminSection .admin-manage-button:hover {
    background:rgba(212,166,86,.12);
    color:#E5BE73;
}
#adminMembershipPendingPanel {
    background:#0d0d0d !important;
}
#adminMembershipPendingContainer {
    color:#ffffff;
}

/* ===== ADMIN FILTRES ET BADGES DARK ===== */
#adminSection .admin-filters {
    background:#0d0d0d !important;
    border-color:#292929 !important;
}
#adminSection .admin-search-box {
    background:#151515 !important;
    border-color:#3a3a3a !important;
}
#adminSection .admin-filters select {
    background:#151515 !important;
    color:#ffffff !important;
    border-color:#3a3a3a !important;
}
#adminSection .admin-role-badge {
    background:#171717;
    color:#d6d6d6;
    border:1px solid #444;
}
#adminSection .admin-role-rando {
    background:#15191d;
    color:#b9c7d5;
    border-color:#394550;
}
#adminSection .admin-role-referent {
    background:#29200e;
    color:#E5BE73;
    border-color:#80652d;
}
#adminSection .admin-role-admin {
    background:#24152c;
    color:#d6a8ea;
    border-color:#68447a;
}
#adminSection .admin-status-active {
    background:#10251a;
    color:#72d99b;
    border:1px solid #2e7049;
}
#adminSection .admin-status-disabled {
    background:#2b1515;
    color:#ef8b84;
    border:1px solid #743b37;
}

/* ===== ADMIN BADGE DECOUVERTE DARK ===== */
#adminSection .membership-discovery {
    background:#171717 !important;
    color:#b8b8b8 !important;
    border:1px solid #444444 !important;
}

/* ===== ADMIN TYPES DE PROFIL DARK ===== */
#adminSection .admin-profile-inscrit {
    background:#10251a !important;
    color:#72d99b !important;
    border:1px solid #2e7049 !important;
}
#adminSection .admin-profile-non-inscrit {
    background:#181818 !important;
    color:#b8b8b8 !important;
    border:1px solid #484848 !important;
}
#adminSection .admin-profile-enfant {
    background:#171b2c !important;
    color:#aebcff !important;
    border:1px solid #48558a !important;
}
#adminSection .admin-profile-historique {
    background:#29200e !important;
    color:#E5BE73 !important;
    border:1px solid #80652d !important;
}

/* ===== ADMIN FICHE UTILISATEUR NOIR & OR ===== */
#adminSection .admin-user-detail {
    background:#080808;
    color:#ffffff;
    border-color:#D4A656;
}
#adminSection .admin-detail-header {
    background:linear-gradient(120deg,#0a0a0a,#151515);
    border-bottom-color:#292929;
}
#adminSection .admin-detail-avatar {
    background:#10243d;
    color:#ffffff;
}
#adminSection .admin-detail-kicker {
    color:#D4A656;
}
#adminSection .admin-detail-header h3 {
    color:#ffffff;
}
#adminSection .admin-detail-close {
    background:#151515;
    color:#b8b8b8;
    border-color:#3a3a3a;
}
#adminSection .admin-detail-close:hover {
    background:#222222;
    color:#ffffff;
    border-color:#D4A656;
}
#adminSection .admin-detail-content {
    background:#080808;
}
#adminSection .admin-detail-section,
#adminSection .admin-activity-card,
#adminSection .admin-account-actions {
    background:#0d0d0d;
    border-color:#303030;
}
#adminSection .admin-detail-section-title strong,
#adminSection .admin-account-actions > strong {
    color:#ffffff;
}
#adminSection .admin-detail-section-title small,
#adminSection .admin-account-actions p {
    color:#888888;
}
#adminSection .admin-info-item {
    background:#151515;
    border-color:#292929;
}
#adminSection .admin-info-item span {
    color:#888888;
}
#adminSection .admin-info-item strong {
    color:#ffffff;
}
#adminSection .admin-empty-identity {
    background:#151515;
    color:#888888;
    border-color:#292929;
}
#adminSection .admin-identity-row {
    background:#151515;
    border-color:#292929;
}
#adminSection .admin-identity-row strong {
    color:#ffffff;
}
#adminSection .admin-identity-row span {
    color:#888888;
}
#adminSection .admin-activity-stats > div {
    background:#151515;
    border-color:#292929;
}
#adminSection .admin-activity-stats strong {
    color:#ffffff;
}
#adminSection .admin-activity-stats span {
    color:#888888;
}
#adminSection .admin-account-field label {
    color:#b8b8b8;
}
#adminSection .admin-account-field select {
    background:#151515;
    color:#ffffff;
    border-color:#3a3a3a;
}
#adminSection .admin-account-status {
    background:#151515;
    border-color:#292929;
}
#adminSection .admin-account-status strong {
    color:#ffffff;
}
#adminSection .admin-account-status small {
    color:#888888;
}
#adminSection .admin-save-account-button {
    background:#D4A656;
    color:#000000;
    border-color:#D4A656;
}
#adminSection .admin-save-account-button:hover {
    background:#E5BE73;
    border-color:#E5BE73;
}
#adminSection .admin-account-separator {
    border-color:#292929;
}
#adminSection .admin-merge-button {
    background:#151515;
    color:#D4A656;
    border:1px solid #80652d;
}
#adminSection .admin-merge-button:hover {
    background:rgba(212,166,86,.12);
    color:#E5BE73;
    border-color:#D4A656;
}

/* ===== ADMIN FUSION DE COMPTES NOIR & OR ===== */
#adminSection .admin-merge {
    background:#080808;
    color:#ffffff;
    border-color:#D4A656;
}
#adminSection .admin-merge-header {
    background:linear-gradient(120deg,#0a0a0a,#151515);
    border-bottom-color:#292929;
}
#adminSection .admin-merge-header h3 {
    color:#ffffff;
}
#adminSection .admin-merge-header p {
    color:#b8b8b8;
}
#adminSection .admin-merge-warning,
#adminSection .admin-merge-final-warning {
    background:#29200e;
    border-color:#80652d;
    color:#E5BE73;
}
#adminSection .admin-merge-warning strong,
#adminSection .admin-merge-final-warning strong {
    color:#E5BE73;
}
#adminSection .admin-merge-warning p,
#adminSection .admin-merge-final-warning p {
    color:#c7a968;
}
#adminSection .admin-merge-selector,
#adminSection .admin-merge-preview {
    background:#080808;
}
#adminSection .admin-merge-step > span {
    background:#10243d;
    color:#ffffff;
}
#adminSection .admin-merge-step strong {
    color:#ffffff;
}
#adminSection .admin-merge-step small {
    color:#888888;
}
#adminSection .admin-merge-search input,
#adminSection .admin-merge-search select {
    background:#151515;
    color:#ffffff;
    border-color:#3a3a3a;
}
#adminSection .admin-merge-search input::placeholder {
    color:#888888;
}
#adminSection .admin-merge-preview-button {
    background:#151515;
    color:#D4A656;
    border:1px solid #80652d;
}
#adminSection .admin-merge-preview-button:hover {
    background:rgba(212,166,86,.12);
    border-color:#D4A656;
}
#adminSection .admin-merge-cancel-button {
    background:#151515;
    color:#b8b8b8;
    border-color:#444444;
}
#adminSection .admin-merge-comparison {
    background:#080808;
}
#adminSection .admin-merge-account {
    background:#0d0d0d;
    border-color:#303030;
}
#adminSection .admin-merge-primary {
    border-top-color:#2f9e63;
}
#adminSection .admin-merge-secondary {
    border-top-color:#b9433b;
}
#adminSection .admin-merge-primary .admin-merge-account-label {
    color:#6ee7a5;
}
#adminSection .admin-merge-secondary .admin-merge-account-label {
    color:#ff8b82;
}
#adminSection .admin-merge-account-user > div:last-child > strong {
    color:#ffffff;
}
#adminSection .admin-merge-account-user > div:last-child > span {
    color:#888888;
}
#adminSection .admin-merge-account-info > div,
#adminSection .admin-merge-account-stats > div {
    background:#151515;
    border-color:#292929;
}
#adminSection .admin-merge-account-info span,
#adminSection .admin-merge-account-stats span,
#adminSection .admin-merge-connections > span {
    color:#888888;
}
#adminSection .admin-merge-account-info strong,
#adminSection .admin-merge-account-stats strong {
    color:#ffffff;
}
#adminSection .admin-merge-identity,
#adminSection .admin-merge-no-identity {
    background:#151515;
    color:#b8b8b8;
    border-color:#3a3a3a;
}
#adminSection .admin-merge-arrow {
    color:#D4A656;
}
#adminSection .admin-merge-arrow small {
    color:#888888;
}
#adminSection .admin-merge-confirmation {
    background:#151515;
    color:#d8d8d8;
    border-color:#303030;
}
#adminSection .admin-merge-execute {
    background:#8f211b;
    color:#ffffff;
    border-color:#b9433b;
}
#adminSection .admin-merge-execute:hover {
    background:#b52b23;
}
#adminSection .admin-merge-error {
    background:#321313;
    color:#ff8b82;
    border-color:#71302d;
}

/* ===== CLASSEMENT - COLONNES INDEPENDANTES ===== */
.ranking-levels-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    align-items:start;
}
.ranking-level-column {
    display:flex;
    flex-direction:column;
    gap:22px;
    min-width:0;
}
@media (max-width: 760px) {
    .ranking-levels-grid {
        grid-template-columns:1fr;
    }
    .ranking-level-column {
        display:contents;
    }
    .ranking-position-debutant { order:1; }
    .ranking-position-initie { order:2; }
    .ranking-position-debrouille { order:3; }
    .ranking-position-intermediaire { order:4; }
    .ranking-position-confirme { order:5; }
    .ranking-position-expert { order:6; }
    .ranking-position-unknown { order:7; }
}

/* ===== RANDONNEES - ESPACEMENT ACTIONS ===== */
.ride-card-actions {
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* ===== RANDONNEES - STATUTS DARK ===== */
.ride-status-completed {
    background:#181818;
    color:#b8b8b8;
    border:1px solid #484848;
}
.ride-status-cancelled {
    background:#321313;
    color:#ff8b82;
    border:1px solid #71302d;
}

/* ===== ACCUEIL - FINITIONS PREMIUM ===== */
.dashboard-welcome {
    padding:26px 32px;
}
.dashboard-welcome h2 {
    margin-top:6px;
    margin-bottom:8px;
}
.dashboard-stats {
    gap:16px;
}
.stat-card {
    min-height:112px;
    padding:20px;
}
.stat-card strong {
    font-size:27px;
    line-height:1.05;
}
.stat-card span {
    color:#b8b8b8;
}
.dashboard-grid {
    gap:20px;
}
.dashboard-panel {
    padding:20px;
}
.my-stat {
    background:#151515;
    border-color:#303030;
}
.next-ride-action button,
.dashboard-ranking-button {
    min-height:44px;
    padding:11px 18px;
    border-radius:9px;
}

/* ===== ACCUEIL - KM CUMULES SUR UNE LIGNE ===== */
#statParticipantKm {
    white-space:nowrap;
    font-size:24px;
}

/* ===== ACCUEIL - ACTION CLASSEMENT ===== */
.dashboard-ranking-button {
    display:block;
    width:auto;
    margin:13px 0 0 auto;
}

/* ===== AUTHENTIFICATION NOIR & OR ===== */
#authSection .auth-shell {
    background:#080808;
    border:1px solid rgba(212,166,86,.65);
    box-shadow:0 12px 35px rgba(0,0,0,.35);
}
#authSection .auth-main {
    background:#0d0d0d;
    color:#ffffff;
}
#authSection .auth-login-panel {
    border-right-color:#303030;
}
#authSection .auth-panel-icon {
    background:#181818;
    border:1px solid #292929;
}
#authSection .auth-panel-heading h2 {
    color:#ffffff;
}
#authSection .auth-panel-heading p {
    color:#9da3ad;
}
#authSection .auth-form label {
    color:#d0d0d0;
}
#authSection .auth-form label small {
    color:#888888;
}
#authSection .auth-form input,
#authSection .auth-form select {
    background:#151515;
    color:#ffffff;
    border:1px solid #3a3a3a;
}
#authSection .auth-form input::placeholder {
    color:#777777;
}
#authSection .auth-form input:focus,
#authSection .auth-form select:focus {
    border-color:#D4A656;
    box-shadow:0 0 0 2px rgba(212,166,86,.12);
}

/* ===== AUTHENTIFICATION - ACTIONS ET SOUS-PANNEAUX ===== */
#authSection .auth-primary-button,
#authSection .auth-register-button {
    background:#D4A656;
    color:#000000;
    border-color:#D4A656;
}
#authSection .auth-primary-button:hover,
#authSection .auth-register-button:hover {
    background:#E5BE73;
    border-color:#E5BE73;
    color:#000000;
}
#authSection #forgotPasswordButton.auth-forgot-button {
    color:#9da3ad !important;
}
#authSection #forgotPasswordButton.auth-forgot-button:hover {
    color:#D4A656 !important;
}
#authSection .auth-divider {
    color:#777777;
}
#authSection .auth-divider::before,
#authSection .auth-divider::after {
    background:#303030;
}
#authSection .auth-google {
    color:#ffffff;
}
#authSection .auth-subpanel {
    background:#151515;
    border-color:#303030;
}
#authSection .auth-subpanel-title strong {
    color:#ffffff;
}
#authSection .auth-subpanel-title small {
    color:#888888;
}
#authSection .auth-subpanel input {
    background:#0d0d0d;
    color:#ffffff;
    border-color:#3a3a3a;
}
#authSection .auth-subpanel button {
    background:#D4A656;
    color:#000000;
    border-color:#D4A656;
}

/* ===== AUTHENTIFICATION - AUTOFILL CHROME ===== */
#authSection input:-webkit-autofill,
#authSection input:-webkit-autofill:hover,
#authSection input:-webkit-autofill:focus {
    -webkit-text-fill-color:#ffffff !important;
    caret-color:#ffffff;
    -webkit-box-shadow:0 0 0 1000px #151515 inset !important;
    box-shadow:0 0 0 1000px #151515 inset !important;
    border-color:#3a3a3a !important;
    transition:background-color 9999s ease-out 0s;
}

/* ===== RANDONNEES - CARTE UNIQUE DESKTOP ===== */
@media (min-width: 901px) {
    .rides-grid > .ride-card:only-child {
        grid-column: 1 / -1;
        max-width: 700px;
    }
}



/* Icône participant - espace référent */
#referentSection .referent-participant-avatar {
    background: #D4A656;
    color: #000000;
    font-weight: 900;
}


/* Inscrits - panneau Prochaine randonnée */

.dashboard-ride-registrations {
    margin-top: 14px;
}

.dashboard-ride-registrations-button {
    width: 100%;
    border: 1px solid rgba(212, 166, 86, 0.45);
    background: rgba(212, 166, 86, 0.10);
    border-radius: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
}

.dashboard-ride-registrations-button:hover {
    background: rgba(212, 166, 86, 0.18);
}

.dashboard-registrations-arrow {
    float: right;
}

.dashboard-ride-registrations-list {
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-registration-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-registration-person:last-child {
    border-bottom: none;
}

.dashboard-registration-name {
    font-weight: 700;
}

.dashboard-registration-level {
    opacity: 0.75;
    font-size: 0.9em;
    text-align: right;
}

.dashboard-registration-empty {
    padding: 12px;
    opacity: 0.7;
}

@media (max-width: 600px) {

    .dashboard-registration-person {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .dashboard-registration-level {
        text-align: left;
    }
}



/* Liste des inscrits sur les cartes randonnée */

.ride-meta-registrations {
    cursor: pointer;
}

.ride-meta-registrations:hover {
    border-color: #D4A656;
}

.ride-registrations-list {
    margin: -2px 0 16px 0;
    padding: 4px 0;
    border: 1px solid rgba(212, 166, 86, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.ride-registration-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ride-registration-person:last-child {
    border-bottom: none;
}

.ride-registration-name {
    font-weight: 700;
}

.ride-registration-level {
    opacity: 0.75;
    font-size: 0.9em;
}

.ride-registrations-loading,
.ride-registrations-empty,
.ride-registrations-error {
    padding: 12px;
    opacity: 0.75;
}

@media (max-width: 600px) {

    .ride-registration-person {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
}




/* =========================================================
   INSCRITS - AMÉLIORATION VISUELLE
   ========================================================= */

/* ----- Carte "Randonnées à venir" ----- */

.ride-meta-registrations {
    cursor: pointer;
    transition: border-color .18s ease,
                transform .18s ease,
                background .18s ease,
                box-shadow .18s ease;
}

.ride-meta-registrations:hover {
    border-color: rgba(212, 166, 86, 0.95);
    background: #1a1a1a;
    box-shadow: 0 0 0 1px rgba(212,166,86,.12) inset;
    transform: translateY(-1px);
}

.ride-meta-registrations .ride-meta-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

[id^="rideRegistrationsArrow-"] {
    margin-left: auto;
    color: #D4A656;
    font-size: 11px;
    opacity: .9;
}

.ride-registrations-list {
    margin: 10px 0 16px 0;
    padding: 8px;
    border: 1px solid rgba(212,166,86,.35);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(212,166,86,.08),
            rgba(255,255,255,.015)
        );
}

.ride-registration-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(0,0,0,.18);
}

.ride-registration-person:last-child {
    margin-bottom: 0;
}

.ride-registration-name {
    color: #ffffff;
    font-weight: 750;
    line-height: 1.25;
}

.ride-registration-level {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(212,166,86,.30);
    border-radius: 999px;
    background: rgba(212,166,86,.12);
    color: #E5BE73;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.ride-registrations-loading,
.ride-registrations-empty,
.ride-registrations-error {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: #c9c9c9;
    font-size: 14px;
}

/* ----- Panneau "Prochaine randonnée" ----- */

.dashboard-ride-registrations {
    margin-top: 16px;
}

.dashboard-ride-registrations-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(212,166,86,.45);
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            rgba(212,166,86,.16),
            rgba(212,166,86,.05)
        );
    color: #f7f7f7;
    cursor: pointer;
    font-weight: 750;
    text-align: left;
    transition: background .18s ease,
                border-color .18s ease,
                transform .18s ease;
}

.dashboard-ride-registrations-button:hover {
    border-color: rgba(212,166,86,.8);
    background:
        linear-gradient(
            90deg,
            rgba(212,166,86,.22),
            rgba(212,166,86,.08)
        );
    transform: translateY(-1px);
}

.dashboard-registrations-arrow {
    color: #D4A656;
    font-size: 11px;
    margin-left: auto;
}

.dashboard-ride-registrations-list {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid rgba(212,166,86,.28);
    border-radius: 14px;
    background: rgba(255,255,255,.02);
}

.dashboard-registration-person {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(0,0,0,.16);
}

.dashboard-registration-person:last-child {
    margin-bottom: 0;
}

.dashboard-registration-name {
    color: #ffffff;
    font-weight: 750;
}

.dashboard-registration-level {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(212,166,86,.28);
    border-radius: 999px;
    background: rgba(212,166,86,.10);
    color: #E5BE73;
    font-size: 12px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}

.dashboard-registration-empty {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    color: #c9c9c9;
    font-size: 14px;
}

/* ----- Mobile ----- */

@media (max-width: 600px) {

    .ride-registration-person,
    .dashboard-registration-person {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ride-registration-level,
    .dashboard-registration-level {
        text-align: left;
    }
}




/* =========================================================
   INSCRITS - UI V2
   ========================================================= */

/* Ouverture animée */

.ride-registrations-list,
.dashboard-ride-registrations-list {
    display: block;
    overflow: hidden;
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height .28s ease,
        opacity .22s ease,
        transform .22s ease,
        margin .22s ease,
        padding .22s ease,
        border-width .22s ease;
}

.ride-registrations-list.hidden,
.dashboard-ride-registrations-list.hidden {
    display: block !important;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

/* Identité + avatar */

.ride-registration-identity,
.dashboard-registration-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ride-registration-avatar,
.dashboard-registration-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #D4A656,
            #8f6828
        );
    color: #000000;
    font-size: 14px;
    font-weight: 900;
    box-shadow:
        0 0 0 2px rgba(212,166,86,.15);
}

.ride-registration-name,
.dashboard-registration-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges niveau */

.ride-registration-level,
.dashboard-registration-level {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
}

.level-debutant {
    background: rgba(64, 180, 90, .15);
    border-color: rgba(64, 180, 90, .45);
    color: #82d995;
}

.level-initie {
    background: rgba(65, 140, 255, .15);
    border-color: rgba(65, 140, 255, .45);
    color: #8fb7ff;
}

.level-debrouille {
    background: rgba(65, 200, 210, .14);
    border-color: rgba(65, 200, 210, .42);
    color: #8fe2e8;
}

.level-intermediaire {
    background: rgba(212, 166, 86, .15);
    border-color: rgba(212, 166, 86, .45);
    color: #E5BE73;
}

.level-confirme {
    background: rgba(210, 120, 50, .16);
    border-color: rgba(210, 120, 50, .45);
    color: #efad6e;
}

.level-expert {
    background: rgba(180, 70, 80, .16);
    border-color: rgba(180, 70, 80, .45);
    color: #ef939b;
}

.level-default {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    color: #c8c8c8;
}

/* Lignes plus élégantes */

.ride-registration-person,
.dashboard-registration-person {
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.ride-registration-person:hover,
.dashboard-registration-person:hover {
    background: rgba(212,166,86,.045);
    border-color: rgba(212,166,86,.20);
}

/* Mobile */

@media (max-width: 600px) {

    .ride-registration-person,
    .dashboard-registration-person {
        flex-direction: row;
        align-items: center;
    }

    .ride-registration-level,
    .dashboard-registration-level {
        margin-left: auto;
        flex-shrink: 0;
    }

    .ride-registration-name,
    .dashboard-registration-name {
        max-width: 170px;
    }
}




/* =========================================================
   CLASSEMENT V2
   ========================================================= */

#rankingSection {
    color: #f5f5f5;
}

/* Barre du haut */

#rankingSection .ranking-toolbar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

#rankingSection .ranking-tabs {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    border: 1px solid #2f2f2f;
    border-radius: 14px;
    background: #111111;
}

#rankingSection .ranking-tab {
    min-width: 145px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #cfcfcf;
    font-weight: 800;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

#rankingSection .ranking-tab:hover {
    background: #1c1c1c;
    color: #ffffff;
}

#rankingSection .ranking-tab.active {
    background: linear-gradient(
        135deg,
        #D4A656,
        #E7BF72
    );
    color: #050505;
    box-shadow:
        0 5px 16px rgba(212,166,86,.14);
}

#rankingSection .ranking-summary {
    justify-self: end;
    padding: 9px 13px;
    border: 1px solid #292929;
    border-radius: 999px;
    background: #101010;
    color: #aeb4bd;
    font-size: 13px;
}

#rankingSection .ranking-summary strong {
    color: #ffffff;
}

#rankingSection .ranking-summary span {
    padding: 0 6px;
    color: #D4A656;
}

/* Tableau principal */

#rankingSection .ranking-table-wrapper {
    overflow: visible;
}

#rankingSection .ranking-general-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 7px;
    background: transparent;
}

#rankingSection .ranking-general-table thead th {
    padding: 8px 14px 10px;
    border: 0;
    background: transparent;
    color: #8d949d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#rankingSection .ranking-general-table tbody tr {
    position: relative;
    background: #101010;
    transition:
        transform .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

#rankingSection .ranking-general-table tbody tr:hover {
    background: #171717;
    transform: translateY(-1px);
    box-shadow:
        0 5px 16px rgba(0,0,0,.20);
}

#rankingSection .ranking-general-table td {
    padding: 14px;
    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
    color: #eeeeee;
}

#rankingSection .ranking-general-table td:first-child {
    border-left: 1px solid #292929;
    border-radius: 12px 0 0 12px;
}

#rankingSection .ranking-general-table td:last-child {
    border-right: 1px solid #292929;
    border-radius: 0 12px 12px 0;
}

/* Podium */

#rankingSection .ranking-general-table .ranking-podium-row {
    background:
        linear-gradient(
            90deg,
            rgba(212,166,86,.15),
            #111111 32%
        );
}

#rankingSection .ranking-general-table .ranking-podium-row:hover {
    background:
        linear-gradient(
            90deg,
            rgba(212,166,86,.22),
            #171717 35%
        );
}

#rankingSection .ranking-general-table
tbody tr:nth-child(1) td:first-child {
    border-left: 3px solid #f2c94c;
}

#rankingSection .ranking-general-table
tbody tr:nth-child(2) td:first-child {
    border-left: 3px solid #bfc5cc;
}

#rankingSection .ranking-general-table
tbody tr:nth-child(3) td:first-child {
    border-left: 3px solid #c8874d;
}

#rankingSection .ranking-rank {
    width: 58px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

#rankingSection .ranking-general-table td:nth-child(2) strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
}

#rankingSection .ranking-km {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

/* Badges niveaux */

#rankingSection .ranking-level-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

#rankingSection .ranking-level-pill.debutant {
    background: rgba(46,160,85,.13);
    border-color: rgba(46,160,85,.35);
    color: #7bd897;
}

#rankingSection .ranking-level-pill.initie {
    background: rgba(70,130,230,.14);
    border-color: rgba(70,130,230,.36);
    color: #91b7ff;
}

#rankingSection .ranking-level-pill.debrouille {
    background: rgba(229,125,45,.14);
    border-color: rgba(229,125,45,.36);
    color: #f2a668;
}

#rankingSection .ranking-level-pill.intermediaire {
    background: rgba(212,166,86,.14);
    border-color: rgba(212,166,86,.38);
    color: #E5BE73;
}

#rankingSection .ranking-level-pill.confirme {
    background: rgba(212,75,75,.14);
    border-color: rgba(212,75,75,.36);
    color: #f09b9b;
}

#rankingSection .ranking-level-pill.expert {
    background: rgba(135,85,225,.16);
    border-color: rgba(135,85,225,.38);
    color: #bca0ff;
}

#rankingSection .ranking-level-pill.unknown {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #bfc4ca;
}

/* Classement par niveau */

#rankingSection .ranking-level-card {
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 16px;
    background: #0f0f0f;
    box-shadow:
        0 6px 20px rgba(0,0,0,.20);
}

#rankingSection .ranking-level-header {
    min-height: 58px;
    padding: 13px 16px;
    font-size: 16px;
    font-weight: 900;
}

#rankingSection .ranking-level-header small {
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.14);
}

#rankingSection .ranking-level-table {
    border-collapse: collapse;
}

#rankingSection .ranking-level-table th {
    background: #141414;
    color: #8d949d;
    border-bottom: 1px solid #292929;
    font-size: 10px;
}

#rankingSection .ranking-level-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #242424;
    color: #f0f0f0;
}

#rankingSection .ranking-level-table tbody tr {
    background: transparent;
}

#rankingSection .ranking-level-table tbody tr:hover {
    background: rgba(255,255,255,.025);
}

/* Mobile */

@media (max-width: 700px) {

    #rankingSection .ranking-toolbar {
        grid-template-columns: 1fr;
    }

    #rankingSection .ranking-summary {
        justify-self: stretch;
        text-align: center;
        border-radius: 12px;
    }

    #rankingSection .ranking-tabs {
        width: 100%;
    }

    #rankingSection .ranking-tab {
        min-width: 0;
        padding: 10px 8px;
    }

    #rankingSection .ranking-general-table thead {
        display: none;
    }

    #rankingSection .ranking-general-table,
    #rankingSection .ranking-general-table tbody {
        display: block;
    }

    #rankingSection .ranking-general-table tbody tr {
        display: grid;
        grid-template-columns: 42px 1fr auto;
        grid-template-areas:
            "rank name km"
            "rank level randos";
        gap: 5px 10px;
        margin-bottom: 9px;
        padding: 12px;
        border: 1px solid #292929;
        border-radius: 14px;
    }

    #rankingSection .ranking-general-table td {
        display: block;
        padding: 0;
        border: 0 !important;
    }

    #rankingSection .ranking-general-table td:nth-child(1) {
        grid-area: rank;
        align-self: center;
        font-size: 17px;
    }

    #rankingSection .ranking-general-table td:nth-child(2) {
        grid-area: name;
    }

    #rankingSection .ranking-general-table td:nth-child(3) {
        grid-area: level;
    }

    #rankingSection .ranking-general-table td:nth-child(4) {
        grid-area: km;
        align-self: start;
        text-align: right;
    }

    #rankingSection .ranking-general-table td:nth-child(5) {
        grid-area: randos;
        text-align: right;
        color: #9ca3aa;
        font-size: 12px;
    }

    #rankingSection .ranking-general-table td:nth-child(5)::after {
        content: " randos";
    }
}




/* =========================================================
   CLASSEMENT - PODIUM / MOBILE / MON RANG
   ========================================================= */

#rankingSection .ranking-highlight-grid {
    display: grid;
    grid-template-columns: minmax(280px, 330px) 1fr;
    gap: 18px;
    margin-bottom: 24px;
    align-items: stretch;
}

#rankingSection .ranking-highlight-grid > *:only-child {
    grid-column: 1 / -1;
}

/* Votre position */

#rankingSection .ranking-my-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(212,166,86,.40);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(212,166,86,.15),
            transparent 35%
        ),
        linear-gradient(135deg, #101010, #0a0a0a);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

#rankingSection .ranking-my-spotlight-kicker {
    color: #D4A656;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#rankingSection .ranking-my-spotlight-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

#rankingSection .ranking-my-rank-badge {
    display: flex;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #D4A656, #E8C57B);
    color: #000000;
    font-size: 22px;
    font-weight: 900;
}

#rankingSection .ranking-my-identity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#rankingSection .ranking-my-identity strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

#rankingSection .ranking-my-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#rankingSection .ranking-my-stat {
    padding: 12px;
    border: 1px solid #262626;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

#rankingSection .ranking-my-stat span {
    display: block;
    color: #9ea4ab;
    font-size: 12px;
}

#rankingSection .ranking-my-stat strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

/* Podium */

#rankingSection .ranking-podium {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-height: 100%;
}

#rankingSection .ranking-podium-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 16px;
    border: 1px solid #2b2b2b;
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.015)
        );
    text-align: center;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

#rankingSection .ranking-podium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.20);
}

#rankingSection .ranking-podium-card.place-1 {
    order: 2;
    min-height: 220px;
    border-color: rgba(242,201,76,.55);
    background:
        radial-gradient(
            circle at 50% 8%,
            rgba(242,201,76,.16),
            transparent 33%
        ),
        linear-gradient(
            180deg,
            rgba(242,201,76,.08),
            rgba(255,255,255,.02)
        );
}

#rankingSection .ranking-podium-card.place-2 {
    order: 1;
    min-height: 190px;
    border-color: rgba(191,197,204,.45);
}

#rankingSection .ranking-podium-card.place-3 {
    order: 3;
    min-height: 175px;
    border-color: rgba(200,135,77,.45);
}

#rankingSection .ranking-podium-place {
    font-size: 28px;
    line-height: 1;
}

#rankingSection .ranking-podium-rank {
    color: #D4A656;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
}

#rankingSection .ranking-podium-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

#rankingSection .ranking-podium-km {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

#rankingSection .ranking-podium-rides {
    color: #9ca3aa;
    font-size: 12px;
}

/* Ligne de l'utilisateur connecté */

#rankingSection .ranking-current-user-row {
    box-shadow:
        0 0 0 1px rgba(212,166,86,.22);
}

#rankingSection .ranking-current-user-row td {
    background:
        linear-gradient(
            90deg,
            rgba(212,166,86,.10),
            rgba(212,166,86,.03)
        );
}

#rankingSection .ranking-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#rankingSection .ranking-you-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(212,166,86,.35);
    border-radius: 999px;
    background: rgba(212,166,86,.12);
    color: #E5BE73;
    font-size: 11px;
    font-weight: 800;
}

/* Responsive */

@media (max-width: 920px) {

    #rankingSection .ranking-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    #rankingSection .ranking-podium {
        flex-direction: column;
        align-items: stretch;
    }

    #rankingSection .ranking-podium-card.place-1,
    #rankingSection .ranking-podium-card.place-2,
    #rankingSection .ranking-podium-card.place-3 {
        min-height: auto;
    }

    #rankingSection .ranking-podium-card.place-1 {
        order: 1;
    }

    #rankingSection .ranking-podium-card.place-2 {
        order: 2;
    }

    #rankingSection .ranking-podium-card.place-3 {
        order: 3;
    }

    #rankingSection .ranking-my-stats {
        grid-template-columns: 1fr 1fr;
    }

    #rankingSection .ranking-general-table tbody tr {
        gap: 6px 10px;
    }

    #rankingSection .ranking-general-table td:nth-child(2) strong {
        font-size: 16px;
    }

    #rankingSection .ranking-km {
        font-size: 15px;
    }

    #rankingSection .ranking-general-table td:nth-child(5)::before {
        content: "🛼 ";
    }
}

@media (max-width: 520px) {

    #rankingSection .ranking-my-spotlight {
        padding: 15px;
    }

    #rankingSection .ranking-my-rank-badge {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 20px;
        border-radius: 15px;
    }

    #rankingSection .ranking-my-identity strong {
        font-size: 18px;
    }

    #rankingSection .ranking-my-stats {
        grid-template-columns: 1fr;
    }

    #rankingSection .ranking-podium-name {
        font-size: 16px;
    }

    #rankingSection .ranking-podium-km {
        font-size: 18px;
    }
}




/* =========================================================
   CLASSEMENT - FINITION PODIUM
   ========================================================= */

#rankingSection .ranking-podium {
    align-items: flex-end;
    gap: 16px;
}

/* Avatar podium */

#rankingSection .ranking-podium-avatar {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(212,166,86,.35);
    background:
        linear-gradient(
            135deg,
            #D4A656,
            #8b672d
        );
    color: #050505;
    font-size: 20px;
    font-weight: 950;
    box-shadow:
        0 5px 14px rgba(0,0,0,.24);
}

/* Le premier doit vraiment dominer */

#rankingSection .ranking-podium-card.place-1 {
    transform: translateY(-10px);
    min-height: 235px;
    padding-top: 18px;
    border-width: 2px;
    box-shadow:
        0 12px 30px rgba(212,166,86,.10);
}

#rankingSection .ranking-podium-card.place-1:hover {
    transform: translateY(-13px);
}

#rankingSection .ranking-podium-card.place-1
.ranking-podium-avatar {
    width: 66px;
    height: 66px;
    border-color: rgba(242,201,76,.65);
    background:
        linear-gradient(
            135deg,
            #F2C94C,
            #D4A656
        );
    font-size: 24px;
}

#rankingSection .ranking-podium-card.place-1
.ranking-podium-name {
    font-size: 20px;
}

#rankingSection .ranking-podium-card.place-1
.ranking-podium-km {
    font-size: 23px;
}

/* Deuxième et troisième un peu plus compacts */

#rankingSection .ranking-podium-card.place-2 {
    min-height: 185px;
    transform: translateY(0);
}

#rankingSection .ranking-podium-card.place-3 {
    min-height: 170px;
    transform: translateY(4px);
}

#rankingSection .ranking-podium-card.place-2
.ranking-podium-avatar,
#rankingSection .ranking-podium-card.place-3
.ranking-podium-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

#rankingSection .ranking-podium-card.place-2
.ranking-podium-name,
#rankingSection .ranking-podium-card.place-3
.ranking-podium-name {
    font-size: 16px;
}

/* Mobile */

@media (max-width: 700px) {

    #rankingSection .ranking-podium-card.place-1,
    #rankingSection .ranking-podium-card.place-2,
    #rankingSection .ranking-podium-card.place-3 {
        transform: none;
        min-height: auto;
    }

    #rankingSection .ranking-podium-card.place-1:hover {
        transform: translateY(-2px);
    }

    #rankingSection .ranking-podium-card.place-1
    .ranking-podium-avatar {
        width: 56px;
        height: 56px;
        font-size: 21px;
    }
}




@media (max-width: 700px) {

    /* =========================================
       ENSEMBLE DU HAUT DU CLASSEMENT
       ========================================= */

    #rankingSection .ranking-highlight-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 20px;
    }


    /* =========================================
       MA POSITION : VERSION COMPACTE
       ========================================= */

    #rankingSection .ranking-my-spotlight {
        padding: 14px;
        gap: 12px;
        border-radius: 15px;
    }

    #rankingSection .ranking-my-spotlight-kicker {
        font-size: 11px;
    }

    #rankingSection .ranking-my-spotlight-main {
        gap: 11px;
    }

    #rankingSection .ranking-my-rank-badge {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 13px;
        font-size: 18px;
    }

    #rankingSection .ranking-my-identity {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
    }

    #rankingSection .ranking-my-identity strong {
        font-size: 17px;
    }

    #rankingSection .ranking-my-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #rankingSection .ranking-my-stat {
        padding: 9px 11px;
    }

    #rankingSection .ranking-my-stat span {
        font-size: 10px;
    }

    #rankingSection .ranking-my-stat strong {
        margin-top: 2px;
        font-size: 15px;
    }


    /* =========================================
       PODIUM MOBILE SUR UNE SEULE LIGNE
       ========================================= */

    #rankingSection .ranking-podium {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.12fr)
            minmax(0, 1fr);

        align-items: end;
        gap: 6px;

        width: 100%;
        min-height: 0;
        padding-top: 14px;
    }


    /* ordre : 2 - 1 - 3 */

    #rankingSection .ranking-podium-card.place-2 {
        order: 1;
        grid-column: 1;
    }

    #rankingSection .ranking-podium-card.place-1 {
        order: 2;
        grid-column: 2;
    }

    #rankingSection .ranking-podium-card.place-3 {
        order: 3;
        grid-column: 3;
    }


    /* Toutes les cartes */

    #rankingSection .ranking-podium-card,
    #rankingSection .ranking-podium-card.place-1,
    #rankingSection .ranking-podium-card.place-2,
    #rankingSection .ranking-podium-card.place-3 {

        min-width: 0;
        min-height: 0;

        padding: 10px 4px 11px;

        gap: 5px;

        border-radius: 14px;

        transform: none;
    }


    /* Le champion reste légèrement plus haut */

    #rankingSection .ranking-podium-card.place-1 {
        padding-top: 12px;
        padding-bottom: 14px;

        transform: translateY(-10px);
    }

    #rankingSection .ranking-podium-card.place-1:hover {
        transform: translateY(-10px);
    }


    /* Médailles */

    #rankingSection .ranking-podium-place {
        font-size: 21px;
    }


    /* Avatars */

    #rankingSection .ranking-podium-avatar,
    #rankingSection .ranking-podium-card.place-2
        .ranking-podium-avatar,
    #rankingSection .ranking-podium-card.place-3
        .ranking-podium-avatar {

        width: 38px;
        height: 38px;

        font-size: 15px;
    }

    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-avatar {

        width: 46px;
        height: 46px;

        font-size: 18px;
    }


    /* Numéro */

    #rankingSection .ranking-podium-rank {
        font-size: 10px;
    }


    /* Nom */

    #rankingSection .ranking-podium-name,
    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-name,
    #rankingSection .ranking-podium-card.place-2
        .ranking-podium-name,
    #rankingSection .ranking-podium-card.place-3
        .ranking-podium-name {

        width: 100%;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        font-size: 12px;

        text-align: center;
    }

    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-name {

        font-size: 13px;
    }


    /* Badge niveau */

    #rankingSection .ranking-podium
        .ranking-level-pill {

        max-width: 100%;

        padding: 3px 6px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        font-size: 8px;
    }


    /* Kilomètres */

    #rankingSection .ranking-podium-km,
    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-km {

        font-size: 14px;
        white-space: nowrap;
    }

    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-km {

        font-size: 16px;
    }


    /* Nombre de randonnées */

    #rankingSection .ranking-podium-rides {
        font-size: 9px;
    }


    /* =========================================
       TABLEAU MOBILE
       ========================================= */

    #rankingSection .ranking-general-table tbody tr {
        margin-bottom: 7px;
        padding: 10px;
        border-radius: 12px;
    }

    #rankingSection .ranking-general-table
        td:nth-child(2) strong {

        font-size: 14px;
    }

    #rankingSection .ranking-level-pill {
        font-size: 9px;
        padding: 4px 7px;
    }

    #rankingSection .ranking-km {
        font-size: 14px;
    }

}


/* Très petits téléphones */

@media (max-width: 390px) {

    #rankingSection .ranking-podium {
        gap: 4px;
    }

    #rankingSection .ranking-podium-card,
    #rankingSection .ranking-podium-card.place-1,
    #rankingSection .ranking-podium-card.place-2,
    #rankingSection .ranking-podium-card.place-3 {

        padding-left: 2px;
        padding-right: 2px;
    }

    #rankingSection .ranking-podium-name,
    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-name {

        font-size: 11px;
    }

    #rankingSection .ranking-podium-km {
        font-size: 12px;
    }

    #rankingSection .ranking-podium-card.place-1
        .ranking-podium-km {

        font-size: 14px;
    }
}




@media (max-width: 700px) {

    /* ==========================================
       LIGNES DU CLASSEMENT MOBILE
       ========================================== */

    #rankingSection .ranking-general-table {
        border-spacing: 0;
    }

    #rankingSection .ranking-general-table tbody {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    #rankingSection .ranking-general-table tbody tr {
        display: grid;

        grid-template-columns:
            34px
            minmax(0, 1fr)
            auto;

        grid-template-areas:
            "rank name km"
            "rank level randos";

        column-gap: 10px;
        row-gap: 5px;

        width: 100%;
        min-height: 72px;

        margin: 0;
        padding: 11px 12px;

        align-items: center;

        border: 1px solid #292929;
        border-radius: 14px;

        background: #111111;

        box-sizing: border-box;
    }


    /* Rang / médaille */

    #rankingSection .ranking-general-table
        td:nth-child(1) {

        grid-area: rank;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 34px;

        font-size: 14px;
        font-weight: 900;
    }


    /* Nom */

    #rankingSection .ranking-general-table
        td:nth-child(2) {

        grid-area: name;

        min-width: 0;

        display: flex;
        align-items: center;
    }

    #rankingSection .ranking-name-cell {
        min-width: 0;
        width: 100%;

        display: flex;
        align-items: center;
        gap: 6px;

        flex-wrap: nowrap;
    }

    #rankingSection .ranking-general-table
        td:nth-child(2) strong {

        display: block;

        min-width: 0;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        font-size: 15px;
        line-height: 1.2;
    }


    /* Niveau */

    #rankingSection .ranking-general-table
        td:nth-child(3) {

        grid-area: level;

        min-width: 0;
    }

    #rankingSection .ranking-general-table
        td:nth-child(3)
        .ranking-level-pill {

        max-width: 100%;

        padding: 3px 7px;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        font-size: 9px;
    }


    /* Kilomètres */

    #rankingSection .ranking-general-table
        td:nth-child(4) {

        grid-area: km;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        min-width: 72px;

        font-size: 16px;
        font-weight: 900;

        white-space: nowrap;
    }

    #rankingSection .ranking-general-table
        td:nth-child(4)::after {

        content: " km";

        margin-left: 3px;

        color: #9da3aa;

        font-size: 10px;
        font-weight: 600;
    }


    /* Randonnées */

    #rankingSection .ranking-general-table
        td:nth-child(5) {

        grid-area: randos;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        min-width: 72px;

        color: #9da3aa;

        font-size: 11px;

        white-space: nowrap;
    }

    /* On neutralise les anciens pseudo-éléments */

    #rankingSection .ranking-general-table
        td:nth-child(5)::before {

        content: "";
    }

    #rankingSection .ranking-general-table
        td:nth-child(5)::after {

        content: " randos";
        margin-left: 3px;
    }


    /* Ligne utilisateur connecté */

    #rankingSection
        .ranking-current-user-row {

        border-color:
            rgba(212,166,86,.55);

        background:
            linear-gradient(
                90deg,
                rgba(212,166,86,.11),
                #111111 45%
            );
    }


    /* Podium : conserver le rendu actuel */

    #rankingSection
        .ranking-podium-row {

        min-height: 72px;
    }

}


/* Téléphones très étroits */

@media (max-width: 390px) {

    #rankingSection .ranking-general-table
        tbody tr {

        grid-template-columns:
            30px
            minmax(0, 1fr)
            auto;

        column-gap: 7px;

        padding: 10px 9px;
    }

    #rankingSection .ranking-general-table
        td:nth-child(2) strong {

        font-size: 14px;
    }

    #rankingSection .ranking-general-table
        td:nth-child(4) {

        min-width: 64px;
        font-size: 14px;
    }

    #rankingSection .ranking-general-table
        td:nth-child(5) {

        min-width: 64px;
        font-size: 10px;
    }
}




@media (max-width: 700px) {

    /* Carte complète */
    #rankingSection .ranking-general-table tbody tr {
        display: grid;

        grid-template-columns: 38px minmax(0, 1fr) 92px;

        grid-template-areas:
            "rank name  km"
            "rank level randos";

        column-gap: 10px;
        row-gap: 7px;

        width: 100%;
        min-height: 78px;

        padding: 12px 14px;
        margin: 0;

        align-items: center;

        overflow: visible;

        box-sizing: border-box;
    }


    /* Rang */
    #rankingSection .ranking-general-table td:nth-child(1) {
        grid-area: rank;

        width: auto;
        min-width: 0;

        display: flex;
        justify-content: center;
        align-items: center;

        padding: 0;

        font-size: 15px;
    }


    /* Nom */
    #rankingSection .ranking-general-table td:nth-child(2) {
        grid-area: name;

        width: auto;
        min-width: 0;

        padding: 0;
    }

    #rankingSection .ranking-name-cell {
        width: 100%;
        min-width: 0;

        display: flex;
        align-items: center;
        gap: 6px;
    }

    #rankingSection .ranking-general-table
    td:nth-child(2) strong {

        display: block;

        width: auto;
        max-width: 100%;

        overflow: visible;
        text-overflow: clip;
        white-space: normal;

        word-break: normal;
        overflow-wrap: normal;

        font-size: 15px;
        line-height: 1.15;
    }


    /* Niveau */
    #rankingSection .ranking-general-table td:nth-child(3) {
        grid-area: level;

        width: auto;
        min-width: 0;

        padding: 0;
    }

    #rankingSection .ranking-general-table
    td:nth-child(3) .ranking-level-pill {

        display: inline-flex;

        width: auto;
        max-width: 100%;

        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;

        padding: 4px 7px;

        font-size: 9px;
    }


    /* KM */
    #rankingSection .ranking-general-table td:nth-child(4) {
        grid-area: km;

        width: auto;
        min-width: 0;

        display: flex;
        justify-content: flex-end;
        align-items: baseline;

        padding: 0;

        white-space: nowrap;

        font-size: 16px;
        font-weight: 900;
    }


    /* Randonnées */
    #rankingSection .ranking-general-table td:nth-child(5) {
        grid-area: randos;

        width: auto;
        min-width: 0;

        display: flex;
        justify-content: flex-end;
        align-items: center;

        padding: 0;

        white-space: nowrap;

        font-size: 11px;
    }


    /* Pas de débordement caché dans les cellules */
    #rankingSection .ranking-general-table td {
        overflow: visible;
    }

}


/* Petits écrans */
@media (max-width: 390px) {

    #rankingSection .ranking-general-table tbody tr {
        grid-template-columns: 32px minmax(0, 1fr) 82px;

        column-gap: 8px;

        padding-left: 10px;
        padding-right: 10px;
    }

    #rankingSection .ranking-general-table
    td:nth-child(2) strong {
        font-size: 14px;
    }

    #rankingSection .ranking-general-table
    td:nth-child(4) {
        font-size: 14px;
    }

}



/* ===== CLASSEMENT : 3 ONGLETS ===== */

#rankingSection .ranking-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
    gap: 5px;
}

#rankingSection .ranking-tab {
    flex: 0 0 auto;
    min-width: 160px;
    white-space: nowrap;
}

/* Tablettes */
@media (max-width: 950px) {

    #rankingSection .ranking-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #rankingSection .ranking-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    #rankingSection .ranking-tab {
        min-width: 0;
    }
}

/* Téléphones */
@media (max-width: 650px) {

    #rankingSection .ranking-tabs {
        grid-template-columns: 1fr;
    }
}



/* ===== MA PARTICIPATION AUX RANDONNEES PASSEES ===== */

.rides-history .ride-history-status {
    vertical-align: middle;
}

.rides-history .ride-participation {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.rides-history .ride-participation-yes {
    color: #86efac;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .40);
}

.rides-history .ride-participation-no {
    color: #aeb4bd;
    background: #151515;
    border: 1px solid #303030;
}

@media (max-width: 600px) {

    .rides-history .ride-participation {
        margin-top: 5px;
    }
}




/* ==========================================================
   HISTORIQUE RANDONNEES - LISIBILITE V2
   ========================================================== */

.rides-history table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.rides-history th {
    padding: 13px 11px;
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
}

.rides-history td {
    padding: 15px 11px;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.45;
}

/* Largeurs des colonnes */
.rides-history th:nth-child(1),
.rides-history td:nth-child(1) {
    width: 10%;
}

.rides-history th:nth-child(2),
.rides-history td:nth-child(2) {
    width: 41%;
}

.rides-history th:nth-child(3),
.rides-history td:nth-child(3) {
    width: 13%;
}

.rides-history th:nth-child(4),
.rides-history td:nth-child(4) {
    width: 8%;
}

.rides-history th:nth-child(5),
.rides-history td:nth-child(5) {
    width: 12%;
}

.rides-history th:nth-child(6),
.rides-history td:nth-child(6) {
    width: 16%;
}


/* Date */
.rides-history td:nth-child(1) strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}


/* Lieu */
.rides-history td:nth-child(2) {
    color: #f3f3f3;
    line-height: 1.5;
}


/* Niveau */
.rides-history td:nth-child(3) {
    white-space: normal;
}


/* Distance */
.rides-history td:nth-child(4) {
    white-space: nowrap;
    font-weight: 800;
}


/* Référent */
.rides-history td:nth-child(5) {
    line-height: 1.35;
}


/* Statut + participation */
.rides-history .ride-history-status {
    white-space: normal;
}

.rides-history .ride-history-status .ride-status {
    display: inline-flex;
    margin-bottom: 7px;
}

.rides-history .ride-participation {
    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    min-width: 102px;

    margin: 0;
    padding: 5px 9px;

    font-size: 10px;
    line-height: 1.1;
}


/* Participation positive beaucoup plus identifiable */
.rides-history .ride-participation-yes {
    color: #9af0b5;
    background: rgba(34, 197, 94, .14);
    border-color: rgba(34, 197, 94, .55);
}


/* Non participation : volontairement discrète */
.rides-history .ride-participation-no {
    color: #949ba5;
    background: #111111;
    border-color: #303030;
}


/* Ligne correspondant à une randonnée effectuée */
.rides-history tbody tr.ride-history-participated {
    background:
        linear-gradient(
            90deg,
            rgba(34, 197, 94, .09) 0,
            rgba(34, 197, 94, .025) 90px,
            #0d0d0d 240px
        );

    box-shadow:
        inset 4px 0 0 #22c55e;
}

.rides-history tbody tr.ride-history-participated:hover {
    background:
        linear-gradient(
            90deg,
            rgba(34, 197, 94, .13) 0,
            rgba(34, 197, 94, .04) 100px,
            #181818 260px
        );
}


/* Séparation plus visible entre les randonnées */
.rides-history tbody td {
    border-bottom-color: #292929;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .rides-history table {
        table-layout: auto;
    }

    .rides-history tbody tr {
        padding: 15px 16px;
    }

    .rides-history tbody tr.ride-history-participated {
        box-shadow:
            inset 4px 0 0 #22c55e;
    }

    .rides-history tbody td {
        font-size: 13px;
    }

    .rides-history tbody td::before {
        width: auto;
    }

    .rides-history tbody td:nth-child(6)::before {
        content: "Statut / Moi";
    }

    .rides-history .ride-participation {
        min-width: 0;
    }
}




/* ==========================================================
   RANDONNEES PASSEES - MOBILE V3
   ========================================================== */

@media (max-width: 700px) {

    .rides-history {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .rides-history table,
    .rides-history tbody {
        display: block;
        width: 100%;
    }

    .rides-history thead {
        display: none;
    }

    .rides-history tbody {
        display: grid;
        gap: 14px;
    }

    .rides-history tbody tr {
        display: block;
        width: 100% !important;
        box-sizing: border-box;

        padding: 16px 16px 16px 22px;

        border: 1px solid rgba(212,166,86,.45);
        border-radius: 16px;

        background: #0d0d0d;
        overflow: hidden;
    }

    /*
     * IMPORTANT :
     * annule toutes les largeurs desktop
     * 10%, 41%, 13%, etc.
     */
    .rides-history tbody td,
    .rides-history tbody td:nth-child(1),
    .rides-history tbody td:nth-child(2),
    .rides-history tbody td:nth-child(3),
    .rides-history tbody td:nth-child(4),
    .rides-history tbody td:nth-child(5),
    .rides-history tbody td:nth-child(6) {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: start;
        gap: 12px;

        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;

        padding: 7px 0;
        border: 0;

        font-size: 14px;
        line-height: 1.4;

        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .rides-history tbody td::before {
        display: block;

        color: #D4A656;
        font-size: 11px;
        font-weight: 900;
        line-height: 1.4;

        text-transform: uppercase;
        letter-spacing: .035em;
    }

    .rides-history tbody td:nth-child(1)::before {
        content: "Date";
    }

    .rides-history tbody td:nth-child(2)::before {
        content: "Lieu";
    }

    .rides-history tbody td:nth-child(3)::before {
        content: "Niveau";
    }

    .rides-history tbody td:nth-child(4)::before {
        content: "Distance";
    }

    .rides-history tbody td:nth-child(5)::before {
        content: "Référent";
    }

    .rides-history tbody td:nth-child(6)::before {
        content: "Statut / Moi";
    }


    /* Date */
    .rides-history tbody td:nth-child(1) strong {
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 900;
        white-space: nowrap;
    }


    /* Lieu : surtout ne pas couper mot par mot */
    .rides-history tbody td:nth-child(2) {
        line-height: 1.45;
    }


    /* Niveau */
    .rides-history tbody td:nth-child(3) {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .rides-history tbody td:nth-child(3)::before {
        flex: 0 0 112px;
    }

    .rides-history tbody td:nth-child(3) .ride-level-dot {
        flex: 0 0 auto;
        margin: 5px 0 0 0;
    }


    /* Distance */
    .rides-history tbody td:nth-child(4) {
        font-weight: 800;
    }


    /* Statut */
    .rides-history .ride-history-status {
        display: grid;
        grid-template-columns: 112px minmax(0,1fr);
        gap: 8px 12px;
        align-items: center;
    }

    .rides-history .ride-history-status::before {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .rides-history .ride-history-status .ride-status {
        grid-column: 2;
        width: fit-content;
        margin: 0;
    }

    .rides-history .ride-history-status .ride-participation {
        grid-column: 2;
        width: fit-content;
        min-width: 0;
        margin: 0;
    }


    /* Randonnée effectuée */
    .rides-history tbody tr.ride-history-participated {
        background:
            linear-gradient(
                90deg,
                rgba(34,197,94,.12) 0,
                rgba(34,197,94,.035) 95px,
                #0d0d0d 260px
            );

        box-shadow:
            inset 5px 0 0 #22c55e;
    }
}


/* Très petits écrans */
@media (max-width: 390px) {

    .rides-history tbody tr {
        padding-left: 18px;
        padding-right: 13px;
    }

    .rides-history tbody td,
    .rides-history .ride-history-status {
        grid-template-columns: 96px minmax(0,1fr);
        gap: 9px;
    }

    .rides-history tbody td:nth-child(3)::before {
        flex-basis: 96px;
    }
}




/* ==========================================================
   BADGE ENCADRANT DANS LE CLASSEMENT
   ========================================================== */

.ranking-role-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    margin-left: 8px;
    padding: 0 6px;

    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, .65);

    background: rgba(37, 99, 235, .16);
    color: #93c5fd;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
}

.ranking-table .ranking-role-tag,
.ranking-card .ranking-role-tag,
.ranking-podium-card .ranking-role-tag,
.ranking-spotlight-card .ranking-role-tag {
    position: relative;
    top: -1px;
}




/* ==========================================================
   CLASSEMENT - 4 ONGLETS
   ========================================================== */

#rankingSection .ranking-tabs {
    display: inline-grid;
    grid-template-columns: repeat(4, max-content);
    gap: 6px;
    width: max-content;
    max-width: 100%;
}

#rankingSection .ranking-tab {
    min-width: 165px;
    white-space: nowrap;
}

/* Ecrans intermédiaires */
@media (max-width: 1180px) {

    #rankingSection .ranking-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #rankingSection .ranking-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    #rankingSection .ranking-tab {
        min-width: 0;
    }
}

/* Téléphones */
@media (max-width: 650px) {

    #rankingSection .ranking-tabs {
        grid-template-columns: 1fr;
    }
}




/* ==========================================================
   NIVEAUX ROLLER - PREMIUM V2
   ========================================================== */

.level-help-box {
    width: min(720px, 100%);
    padding: 30px;
}

.level-help-box h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
    letter-spacing: .015em;
}

.level-help-intro {
    max-width: 580px;
    margin: 0 0 20px;
    color: #aeb4bd;
    font-size: .95rem;
    line-height: 1.55;
}


/* Barre de progression */

.level-help-scale {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;

    margin: 0 0 22px;
    padding: 12px 14px;

    border: 1px solid rgba(212,166,86,.18);
    border-radius: 14px;

    background: rgba(212,166,86,.045);

    color: #9ca3af;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.level-help-scale-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-help-scale-line::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);

    background:
        linear-gradient(
            90deg,
            #22c55e 0%,
            #4ade80 18%,
            #3b82f6 36%,
            #eab308 56%,
            #f97316 76%,
            #ef4444 100%
        );

    opacity: .65;
}

.level-help-scale-line i {
    position: relative;
    z-index: 1;

    width: 9px;
    height: 9px;
    border-radius: 50%;

    background: #0b0b0f;
    border: 2px solid #D4A656;
}


/* Cartes */

.level-help-item {
    position: relative;
    margin-bottom: 12px;
    padding: 15px 16px 15px 18px;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.level-help-item:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.11);
}

.level-help-heading {
    gap: 9px;
    margin-bottom: 7px;
}

.level-help-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;
    flex: 0 0 26px;

    border-radius: 9px;

    color: #0b0b0f;
    background: #D4A656;

    font-size: 11px;
    font-weight: 950;
    line-height: 1;

    box-shadow:
        0 4px 12px rgba(212,166,86,.16);
}

.level-help-dot {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
}

.level-help-title {
    min-height: 28px;
    padding: 3px 11px;
    font-size: .94rem;
}

.level-help-description {
    padding-left: 45px;
    color: #c8cdd4;
    font-size: .94rem;
    line-height: 1.55;
}


/* Petit accent de fond par carte */

.level-help-item::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 10px;

    width: 55px;
    height: 55px;

    border-radius: 50%;
    filter: blur(26px);
    opacity: .08;

    pointer-events: none;
}

.level-help-beginner::after {
    background: #22c55e;
}

.level-help-initie::after {
    background: #4ade80;
}

.level-help-debrouille::after {
    background: #3b82f6;
}

.level-help-intermediaire::after {
    background: #eab308;
}

.level-help-confirme::after {
    background: #f97316;
}

.level-help-expert::after {
    background: #ef4444;
}


/* Scrollbar discrète */

.level-help-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(212,166,86,.5) transparent;
}

.level-help-box::-webkit-scrollbar {
    width: 7px;
}

.level-help-box::-webkit-scrollbar-track {
    background: transparent;
}

.level-help-box::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(212,166,86,.42);
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    .level-help-box {
        padding: 22px 16px 18px;
    }

    .level-help-box h2 {
        font-size: 1.18rem;
    }

    .level-help-intro {
        margin-right: 36px;
        font-size: .9rem;
        line-height: 1.45;
    }

    .level-help-scale {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 11px 12px;
    }

    .level-help-scale > span {
        display: none;
    }

    .level-help-scale-line {
        min-height: 12px;
    }

    .level-help-item {
        padding: 13px 13px 13px 14px;
    }

    .level-help-step {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .level-help-description {
        padding-left: 0;
        margin-top: 7px;
        font-size: .91rem;
        line-height: 1.48;
    }

    .level-help-title {
        font-size: .9rem;
    }
}




/* ==========================================================
   NIVEAUX ROLLER V3 - TOUT VISIBLE SANS SCROLL
   ========================================================== */

.level-help-modal {
    padding: 12px;
}

.level-help-box {
    width: min(860px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;

    padding: 22px 24px;

    display: block;
}

.level-help-box h2 {
    margin: 0 48px 5px 0;
    font-size: 1.35rem;
}

.level-help-intro {
    max-width: none;
    margin: 0 50px 12px 0;

    font-size: .88rem;
    line-height: 1.4;
}


/* Progression plus compacte */

.level-help-scale {
    margin: 0 0 14px;
    padding: 8px 12px;

    border-radius: 12px;

    font-size: 9px;
}


/* ==========================================================
   GRILLE 2 x 3
   ========================================================== */

.level-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.level-help-item {
    height: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 11px 13px;

    border-radius: 14px;
}

.level-help-heading {
    margin-bottom: 5px;
    gap: 7px;
}

.level-help-step {
    width: 23px;
    height: 23px;
    flex-basis: 23px;

    border-radius: 8px;

    font-size: 10px;
}

.level-help-dot {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
}

.level-help-title {
    min-height: 25px;
    padding: 2px 10px;

    font-size: .86rem;
}

.level-help-description {
    padding-left: 39px;

    font-size: .82rem;
    line-height: 1.38;
}


/* Bouton fermer légèrement réduit */

.level-help-close {
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    font-size: 21px;
}


/* ==========================================================
   ÉCRANS MOINS HAUTS
   ========================================================== */

@media (max-height: 760px) and (min-width: 651px) {

    .level-help-box {
        padding: 16px 20px;
    }

    .level-help-box h2 {
        font-size: 1.2rem;
    }

    .level-help-intro {
        margin-bottom: 8px;
        font-size: .82rem;
    }

    .level-help-scale {
        margin-bottom: 9px;
        padding: 6px 10px;
    }

    .level-help-grid {
        gap: 7px 10px;
    }

    .level-help-item {
        padding: 8px 11px;
    }

    .level-help-description {
        font-size: .77rem;
        line-height: 1.3;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .level-help-modal {
        align-items: center;
        padding: 8px;
    }

    .level-help-box {
        width: 100%;
        max-height: calc(100vh - 16px);

        overflow-y: auto;

        padding: 16px 14px;

        border-radius: 18px;
    }

    .level-help-box h2 {
        margin-right: 40px;
        font-size: 1.08rem;
    }

    .level-help-intro {
        margin: 4px 35px 8px 0;

        font-size: .78rem;
        line-height: 1.3;
    }

    .level-help-scale {
        margin-bottom: 8px;
        padding: 6px 9px;
    }

    .level-help-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .level-help-item {
        padding: 8px 10px;
    }

    .level-help-heading {
        margin-bottom: 3px;
    }

    .level-help-step {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .level-help-title {
        min-height: 22px;

        padding: 2px 8px;

        font-size: .8rem;
    }

    .level-help-description {
        margin: 0;
        padding-left: 36px;

        font-size: .75rem;
        line-height: 1.28;
    }

    .level-help-close {
        width: 32px;
        height: 32px;

        top: 10px;
        right: 10px;
    }
}



/* ==========================================================
   NIVEAUX ROLLER - COULEURS SYNCHRONISÉES AVEC LE CLASSEMENT
   ========================================================== */

/* Barre de progression */
.level-help-scale-line::before {
    background: linear-gradient(
        90deg,
        #22c55e 0%,   /* Débutant */
        #3b82f6 20%,  /* Initié */
        #f97316 40%,  /* Débrouillé */
        #facc15 60%,  /* Intermédiaire */
        #ef4444 80%,  /* Confirmé */
        #8b5cf6 100%  /* Expert */
    );
    opacity: .72;
}

.level-help-scale-line i:nth-child(1) { border-color: #22c55e; }
.level-help-scale-line i:nth-child(2) { border-color: #3b82f6; }
.level-help-scale-line i:nth-child(3) { border-color: #f97316; }
.level-help-scale-line i:nth-child(4) { border-color: #facc15; }
.level-help-scale-line i:nth-child(5) { border-color: #ef4444; }
.level-help-scale-line i:nth-child(6) { border-color: #8b5cf6; }

/* Débutant = vert */
.level-help-beginner {
    border-left-color: #22c55e;
}
.level-help-beginner .level-help-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .10);
}
.level-help-beginner .level-help-title {
    background: rgba(34, 197, 94, .14);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, .38);
}
.level-help-beginner::after {
    background: #22c55e;
}

/* Initié = bleu */
.level-help-initie {
    border-left-color: #3b82f6;
}
.level-help-initie .level-help-dot {
    background: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}
.level-help-initie .level-help-title {
    background: rgba(59, 130, 246, .14);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, .38);
}
.level-help-initie::after {
    background: #3b82f6;
}

/* Débrouillé = orange */
.level-help-debrouille {
    border-left-color: #f97316;
}
.level-help-debrouille .level-help-dot {
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, .10);
}
.level-help-debrouille .level-help-title {
    background: rgba(249, 115, 22, .14);
    color: #fdba74;
    border-color: rgba(249, 115, 22, .38);
}
.level-help-debrouille::after {
    background: #f97316;
}

/* Intermédiaire = jaune */
.level-help-intermediaire {
    border-left-color: #facc15;
}
.level-help-intermediaire .level-help-dot {
    background: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .10);
}
.level-help-intermediaire .level-help-title {
    background: rgba(250, 204, 21, .14);
    color: #fde68a;
    border-color: rgba(250, 204, 21, .38);
}
.level-help-intermediaire::after {
    background: #facc15;
}

/* Confirmé = rouge */
.level-help-confirme {
    border-left-color: #ef4444;
}
.level-help-confirme .level-help-dot {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .10);
}
.level-help-confirme .level-help-title {
    background: rgba(239, 68, 68, .14);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .38);
}
.level-help-confirme::after {
    background: #ef4444;
}

/* Expert = violet */
.level-help-expert {
    border-left-color: #8b5cf6;
}
.level-help-expert .level-help-dot {
    background: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .10);
}
.level-help-expert .level-help-title {
    background: rgba(139, 92, 246, .14);
    color: #ddd6fe;
    border-color: rgba(139, 92, 246, .38);
}
.level-help-expert::after {
    background: #8b5cf6;
}



/* ==========================================================
   NIVEAUX ROLLER - PREMIUM V4
   ========================================================== */

/* Cadre général */
.level-help-box {
    background:
        radial-gradient(
            circle at 92% 5%,
            rgba(212,166,86,.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 5% 95%,
            rgba(212,166,86,.05),
            transparent 30%
        ),
        #090a0e;

    border-color: rgba(212,166,86,.52);

    box-shadow:
        0 28px 90px rgba(0,0,0,.72),
        0 0 0 1px rgba(255,255,255,.025) inset;
}


/* Titre */
.level-help-box h2 {
    text-shadow:
        0 2px 12px rgba(0,0,0,.45);
}


/* Barre de progression */
.level-help-scale {
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.018),
            rgba(212,166,86,.07),
            rgba(255,255,255,.018)
        );

    border-color: rgba(212,166,86,.26);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035);
}


/* ==========================================================
   CARTES
   ========================================================== */

.level-help-item {
    isolation: isolate;
    overflow: hidden;

    border-top-color: rgba(255,255,255,.08);
    border-right-color: rgba(255,255,255,.07);
    border-bottom-color: rgba(255,255,255,.08);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        ),
        #0d0e13;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.level-help-item:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.052),
            rgba(255,255,255,.018)
        ),
        #101116;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 12px 28px rgba(0,0,0,.28);
}


/* Halo coloré discret */
.level-help-item::after {
    content: "";
    position: absolute;

    width: 120px;
    height: 120px;

    right: -45px;
    top: -52px;

    border-radius: 50%;

    filter: blur(34px);
    opacity: .16;

    pointer-events: none;
    z-index: -1;
}


/* ==========================================================
   ICONE A DROITE
   ========================================================== */

.level-help-heading::after {
    margin-left: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 10px;

    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);

    font-size: 15px;
    line-height: 1;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035);
}


/* Icônes identiques à la logique du classement */
.level-help-beginner .level-help-heading::after {
    content: "🌿";
}

.level-help-initie .level-help-heading::after {
    content: "📶";
}

.level-help-debrouille .level-help-heading::after {
    content: "🛞";
}

.level-help-intermediaire .level-help-heading::after {
    content: "🟡";
}

.level-help-confirme .level-help-heading::after {
    content: "🔥";
}

.level-help-expert .level-help-heading::after {
    content: "⚡";
}


/* ==========================================================
   NUMERO
   ========================================================== */

.level-help-step {
    color: #090909;

    background:
        linear-gradient(
            145deg,
            #e8bd6c,
            #c9953e
        );

    border: 1px solid rgba(255,220,150,.45);

    box-shadow:
        0 4px 14px rgba(212,166,86,.20),
        inset 0 1px 0 rgba(255,255,255,.34);
}


/* ==========================================================
   DEBUTANT
   ========================================================== */

.level-help-beginner {
    border-left-color: #22c55e;

    box-shadow:
        inset 4px 0 0 #22c55e,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);
}

.level-help-beginner::after {
    background: #22c55e;
}


/* ==========================================================
   INITIE
   ========================================================== */

.level-help-initie {
    border-left-color: #3b82f6;

    box-shadow:
        inset 4px 0 0 #3b82f6,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);
}

.level-help-initie::after {
    background: #3b82f6;
}


/* ==========================================================
   DEBROUILLE
   ========================================================== */

.level-help-debrouille {
    border-left-color: #f97316;

    background:
        linear-gradient(
            135deg,
            rgba(249,115,22,.105),
            rgba(249,115,22,.025) 38%,
            rgba(255,255,255,.012)
        ),
        #0d0e13;

    box-shadow:
        inset 4px 0 0 #f97316,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 24px rgba(249,115,22,.07);
}

.level-help-debrouille::after {
    background: #f97316;
}


/* ==========================================================
   INTERMEDIAIRE
   ========================================================== */

.level-help-intermediaire {
    border-left-color: #facc15;

    box-shadow:
        inset 4px 0 0 #facc15,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);
}

.level-help-intermediaire::after {
    background: #facc15;
}


/* ==========================================================
   CONFIRME
   ========================================================== */

.level-help-confirme {
    border-left-color: #ef4444;

    box-shadow:
        inset 4px 0 0 #ef4444,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);
}

.level-help-confirme::after {
    background: #ef4444;
}


/* ==========================================================
   EXPERT
   ========================================================== */

.level-help-expert {
    border-left-color: #8b5cf6;

    box-shadow:
        inset 4px 0 0 #8b5cf6,
        inset 0 1px 0 rgba(255,255,255,.035),
        0 8px 22px rgba(0,0,0,.18);
}

.level-help-expert::after {
    background: #8b5cf6;
}


/* ==========================================================
   BADGES NIVEAU
   ========================================================== */

.level-help-title {
    font-weight: 850;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.045);
}


/* Texte */
.level-help-description {
    position: relative;
    z-index: 1;

    color: #d3d7de;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .level-help-heading::after {
        width: 26px;
        height: 26px;

        border-radius: 8px;

        font-size: 13px;
    }

    .level-help-item {
        box-shadow:
            inset 4px 0 0 currentColor,
            inset 0 1px 0 rgba(255,255,255,.025);
    }

    .level-help-item:hover {
        transform: none;
    }
}




/* ==========================================================
   NIVEAUX ROLLER - FINITION LUXE V5
   ========================================================== */

/* Fenêtre générale */
.level-help-box {
    padding: 20px 22px;
}

/* Titre */
.level-help-box h2 {
    margin-bottom: 4px;
    font-size: 1.32rem;
}

/* Intro */
.level-help-intro {
    margin-bottom: 10px;
    color: #b8bec6;
    font-size: .84rem;
    line-height: 1.35;
}

/* Barre de progression plus discrète */
.level-help-scale {
    margin-bottom: 11px;
    padding: 6px 10px;
    background: rgba(212,166,86,.035);
    border-color: rgba(212,166,86,.20);
    box-shadow: none;
    font-size: 8px;
}

.level-help-scale-line::before {
    height: 1px;
    opacity: .58;
}

.level-help-scale-line i {
    width: 7px;
    height: 7px;
    border-width: 1.5px;
}

/* Grille */
.level-help-grid {
    gap: 8px 10px;
}

/* Cartes plus compactes */
.level-help-item {
    min-height: 0;
    padding: 10px 12px;
    border-radius: 13px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 6px 16px rgba(0,0,0,.16);
}

.level-help-item:hover {
    transform: translateY(-1px);
}

/* Réduction des halos */
.level-help-item::after {
    width: 95px;
    height: 95px;
    right: -38px;
    top: -40px;
    filter: blur(30px);
    opacity: .11;
}

/* Ligne titre carte */
.level-help-heading {
    gap: 6px;
    margin-bottom: 4px;
}

/* Numéro */
.level-help-step {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 7px;
    font-size: 9px;
}

/* Point couleur */
.level-help-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    box-shadow: none !important;
}

/* Badge niveau */
.level-help-title {
    min-height: 23px;
    padding: 2px 9px;
    font-size: .82rem;
    font-weight: 850;
}

/* Description légèrement plus claire */
.level-help-description {
    padding-left: 36px;
    color: #dde1e6;
    font-size: .80rem;
    line-height: 1.32;
}

/* Icône droite uniformisée */
.level-help-heading::after {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    border-radius: 8px;

    font-size: 13px;

    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.065);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}

/* Accent gauche légèrement plus fin */
.level-help-beginner,
.level-help-initie,
.level-help-debrouille,
.level-help-intermediaire,
.level-help-confirme,
.level-help-expert {
    border-left-width: 3px;
}

/* Ombres par couleur plus discrètes */
.level-help-beginner {
    box-shadow:
        inset 3px 0 0 #22c55e,
        0 6px 16px rgba(0,0,0,.16);
}

.level-help-initie {
    box-shadow:
        inset 3px 0 0 #3b82f6,
        0 6px 16px rgba(0,0,0,.16);
}

.level-help-debrouille {
    box-shadow:
        inset 3px 0 0 #f97316,
        0 6px 18px rgba(249,115,22,.05);
}

.level-help-intermediaire {
    box-shadow:
        inset 3px 0 0 #facc15,
        0 6px 16px rgba(0,0,0,.16);
}

.level-help-confirme {
    box-shadow:
        inset 3px 0 0 #ef4444,
        0 6px 16px rgba(0,0,0,.16);
}

.level-help-expert {
    box-shadow:
        inset 3px 0 0 #8b5cf6,
        0 6px 16px rgba(0,0,0,.16);
}

/* Bouton fermeture légèrement plus fin */
.level-help-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
    background: rgba(255,255,255,.08);
}

/* Mobile */
@media (max-width: 650px) {

    .level-help-box {
        padding: 14px 12px;
    }

    .level-help-box h2 {
        font-size: 1.05rem;
    }

    .level-help-intro {
        font-size: .76rem;
        margin-bottom: 7px;
    }

    .level-help-scale {
        margin-bottom: 6px;
    }

    .level-help-grid {
        gap: 5px;
    }

    .level-help-item {
        padding: 8px 9px;
    }

    .level-help-step {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .level-help-title {
        font-size: .76rem;
    }

    .level-help-description {
        padding-left: 32px;
        font-size: .72rem;
        line-height: 1.25;
    }

    .level-help-heading::after {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 12px;
    }
}




/* Barre de progression un peu plus courte et aérée */
.level-help-scale {
    width: calc(100% - 70px);
    margin-left: auto;
    margin-right: auto;
}

/* Mobile : on garde presque toute la largeur */
@media (max-width: 650px) {
    .level-help-scale {
        width: calc(100% - 20px);
    }
}




/* ==========================================================
   AUTHENTIFICATION - MESSAGES LISIBLES NOIR / OR
   ========================================================== */

#authSection .message {
    box-sizing: border-box;
    width: 100%;

    margin-top: 12px;
    padding: 11px 13px;

    border: 1px solid rgba(212,166,86,.30);
    border-left: 4px solid #D4A656;
    border-radius: 9px;

    background: #151515;

    color: #f5f5f5 !important;

    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* Erreur de connexion */
#loginMessage {
    border-color: rgba(239,68,68,.34);
    border-left-color: #ef4444;

    background:
        linear-gradient(
            90deg,
            rgba(239,68,68,.13),
            rgba(239,68,68,.035)
        ),
        #111111;

    color: #fecaca !important;
}


/* Sous-panneaux mot de passe */
#forgotPasswordMessage,
#resetPasswordMessage {
    color: #f5f5f5 !important;
}


/* Message création de compte */
#registerMessage {
    color: #f5f5f5 !important;
}


/* Mobile */
@media (max-width: 650px) {

    #authSection .message {
        padding: 10px 11px;
        font-size: 11px;
    }
}




/* Annuler une validation de présences */

.referent-reopen-button {
    color: #f6d68a !important;

    border:
        1px solid rgba(212,166,86,.48) !important;

    background:
        linear-gradient(
            180deg,
            rgba(212,166,86,.12),
            rgba(212,166,86,.055)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035);
}

.referent-reopen-button:hover {
    color: #ffe5a6 !important;

    border-color:
        rgba(212,166,86,.78) !important;

    background:
        linear-gradient(
            180deg,
            rgba(212,166,86,.20),
            rgba(212,166,86,.09)
        ) !important;
}

.referent-reopen-button:disabled {
    opacity: .55;
    cursor: wait;
}




/* ==========================================================
   CRÉATION RANDONNÉE - MESSAGE DE RÉSULTAT
   ========================================================== */

#createRideMessage {
    box-sizing: border-box;

    margin-top: 18px;
    padding: 13px 15px;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}


/* Création réussie */
#createRideMessage.create-ride-success {
    color: #dcfce7 !important;

    background:
        linear-gradient(
            90deg,
            rgba(34,197,94,.16),
            rgba(34,197,94,.055)
        ),
        #111512;

    border:
        1px solid rgba(34,197,94,.32);

    border-left:
        4px solid #22c55e;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* Erreur */
#createRideMessage.create-ride-error {
    color: #fecaca !important;

    background:
        linear-gradient(
            90deg,
            rgba(239,68,68,.15),
            rgba(239,68,68,.04)
        ),
        #151111;

    border:
        1px solid rgba(239,68,68,.32);

    border-left:
        4px solid #ef4444;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}




/* ==========================================================
   CLASSEMENT - CLUB
   volontairement très discret
   ========================================================== */

.ranking-club-tag {
    display: inline-flex;
    align-items: center;

    margin-left: 6px;
    padding: 1px 5px;

    border-radius: 5px;

    border: 1px solid rgba(148,163,184,.16);
    background: rgba(148,163,184,.055);

    color: rgba(203,213,225,.68);

    font-size: .62em;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .01em;

    vertical-align: middle;

    white-space: nowrap;

    box-shadow: none;
}

/* Encore plus discret sur le podium */
.ranking-podium .ranking-club-tag,
.podium-card .ranking-club-tag {
    opacity: .72;
}

/* Mobile */
@media (max-width: 650px) {
    .ranking-club-tag {
        margin-left: 4px;
        padding: 1px 4px;
        font-size: .58em;
    }
}




#profileMessage {
    color: #f8fafc !important;
    background: #151515;
    border: 1px solid rgba(212,166,86,.28);
    border-left: 4px solid #d4a656;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

/* Message contenant une erreur */
#profileMessage:not(.hidden) {
    font-size: 13px;
    font-weight: 650;
}



.welcome-survey { margin: 24px 0; padding: 18px; border: 1px solid #70572e;
    border-radius: 12px; background: #15130f; color: #eee; }
.welcome-survey h3 { margin: 0 0 6px; font-size: 18px; }
.welcome-survey h3, .welcome-survey label, .welcome-survey legend { color: #f3eee5; }
.welcome-survey select { background: #171717; color: #fff; border: 1px solid #685632; }
#regSurvey.welcome-survey > label, #profileSurvey.welcome-survey > label { font-size: 14px; line-height: 1.6; }
.welcome-survey .survey-check span { font-size: 14px; }
.survey-hint { font-size: 13px; line-height: 1.55; color: #b9b6af; margin: 6px 0 12px; }
.survey-interests { min-width: 0; margin: 22px 0 0; padding: 0; border: 0; }
.survey-interests legend { font-weight: 650; padding: 0; line-height: 1.5; }
.welcome-survey .survey-check { display: flex; align-items: center; gap: 12px;
    min-height: 44px; margin: 8px 0 0; padding: 8px 10px; border: 1px solid #494136;
    border-radius: 8px; cursor: pointer; font-weight: 500; }
.welcome-survey .survey-check input[type="checkbox"] { width: 19px !important;
    height: 19px; min-height: 19px; flex: 0 0 19px; margin: 0; padding: 0;
    accent-color: #d4a656; box-shadow: none; }
.welcome-survey :focus-visible, .sidebar-about-link:focus-visible, .about-join:focus-visible {
    outline: 3px solid #e5be73; outline-offset: 3px; }
#aboutSection { max-width: 1100px; margin: auto; color: #e7e3da; }
#aboutSection .card { padding: clamp(20px, 4vw, 34px); background: #101010;
    border: 1px solid #393128; }
#aboutSection h2 { color: #f7f2e9; font-size: clamp(22px, 3.5vw, 28px); line-height: 1.25; }
#aboutSection h3 { color: #ead3ac; font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
#aboutSection p { line-height: 1.75; }
.about-kicker { display: block; color: #d4a656; font-size: 12px; letter-spacing: .12em;
    font-weight: 800; margin-bottom: 16px; }
.about-values, .about-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px; margin-top: 24px; }
.about-values > div, .about-stat-panel { min-width: 0; background: #191714;
    border: 1px solid #41372b; border-radius: 12px; padding: 22px; }
.about-values strong { color: #e5be73; }
.about-values p { margin: 8px 0 0; }
.about-join { display: inline-flex; justify-content: center; align-items: center;
    min-height: 46px; width: auto; max-width: 100%; margin-top: 8px;
    padding: 12px 20px; border-radius: 9px; background: #d4a656; color: #111;
    text-decoration: none; font-weight: 750; text-align: center; border: 1px solid #e5be73; }
.about-join:hover { background: #e5be73; color: #111; }
.survey-stat-row { margin: 20px 0; }
.survey-stat-label { display: flex; align-items: baseline; justify-content: space-between;
    gap: 14px; font-size: 14px; }
.survey-stat-label > span { min-width: 0; overflow-wrap: anywhere; }
.survey-stat-label strong { color: #f6e7cf; white-space: nowrap; font-size: 15px; }
.survey-stat-label small { color: #bab4a9; font-weight: 500; }
.survey-stat-track { height: 7px; background: #373027; border-radius: 20px; margin-top: 9px; overflow: hidden; }
.survey-stat-track span { display: block; height: 100%; background: #d4a656; border-radius: inherit; }
.survey-stat-note { border-top: 1px solid #41372b; padding-top: 14px; }
.about-stat-footnote { margin: 22px 0 0; }
@media (max-width: 650px) {
    .about-values, .about-stat-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-values > div, .about-stat-panel { padding: 18px; }
    .welcome-survey { padding: 15px; }
    .about-join { width: 100%; }
}


.about-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.about-poster { display: block; min-width: 0; color: #f2dfbe; text-decoration: none; background: #080808;
    border: 1px solid #494030; border-radius: 12px; overflow: hidden; transition: border-color .18s ease; }
.about-poster:hover { border-color: #e5be73; color: #fff1d8; }
.about-poster:focus-visible { outline: 3px solid #e5be73; outline-offset: 4px; }
.about-poster figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.about-poster img { display: block; width: 100%; height: 330px; object-fit: contain; background: #050505; }
.about-poster figcaption { display: flex; justify-content: space-between; gap: 12px;
    padding: 16px; font-size: 14px; line-height: 1.5; border-top: 1px solid #393128; }
.about-poster figcaption span { color: #e5be73; }
@media (max-width: 650px) {
    .about-gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .about-poster img { height: auto; }
}


#referentSection .referent-participant-phone { display: block; width: fit-content;
    max-width: 100%; margin-top: 6px; padding: 4px 0; color: #e5be73;
    font-size: 14px; line-height: 1.5; text-decoration: underline; overflow-wrap: anywhere; }
#referentSection .referent-participant-phone:focus-visible { outline: 2px solid #e5be73; outline-offset: 3px; }
#referentSection .referent-participant-phone-missing,
#referentSection .referent-participant-phone-text { margin-top: 6px; overflow-wrap: anywhere; }
