﻿/* =============================================================================
   TournamentDesk - Thème Bleu-Gris Professionnel Style Bassmaster
   Version 3.0 - Layout Horizontal Sans Sidebar
   ============================================================================= */

/* Variables CSS - Palette Bleu-Gris Professionnelle */
:root {
    /* Couleurs Principales - Bleu-Gris */
    --primary-color: #4a90a4;
    --primary-dark: #2c5f6f;
    --primary-light: #6ba3b5;
    --secondary-color: #7a95a8;
    --accent-color: #b8c6d1;
    --accent-hover: #9bb0c0;
    
    /* Nuances de Gris */
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #1a1d20;
    
    /* Couleurs d'état */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Backgrounds */
    --bg-body: #f5f5f5;
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-100);
    --bg-dark: var(--gray-800);
    
    /* Texte */
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-light: var(--gray-500);
    --text-on-dark: #ffffff;
    
    /* Bordures & Rayons - MOINS ARRONDIS STYLE PROFESSIONNEL */
    --border-color: var(--gray-300);
    --border-radius: 4px;        /* Réduit de 10px à 4px */
    --border-radius-lg: 6px;     /* Réduit de 16px à 6px */
    --border-radius-sm: 2px;     /* Réduit de 6px à 2px */
    
    /* Ombres - Plus Subtiles */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   NAVIGATION PROFESSIONNELLE - Navbar Horizontal - Bleu-Gris Dégradé
   ============================================================================= */

.navbar-professional {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.navbar-logo {
    color: var(--text-on-dark);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.navbar-logo:hover {
    color: var(--primary-light);
    transform: translateY(-1px);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-weight: 800;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    cursor: pointer;
}

.toggle-icon {
    width: 25px;
    height: 3px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-menu.collapsed {
    display: flex;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-on-dark);
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-item:hover::before {
    width: 70%;
}

.nav-item.active {
    color: var(--text-on-dark);
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }
    
    .navbar-menu.expanded {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
    }
    
    .nav-item::before {
        left: 2rem;
        transform: translateX(0);
        bottom: 50%;
    }
    
    .nav-item:hover::before {
        width: 4px;
        height: 100%;
    }
}

/* =============================================================================
   FRONTDESK
   ============================================================================= */
.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.booking-card {
    border-radius: 14px;
}

.nav-pills .nav-link {
    border-radius: 999px;
}
 




.frontdesk-partner-logo {
    width: 118px;
    height: 118px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
    border: 1px solid #e1e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .frontdesk-partner-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.frontdesk-partner-logo-placeholder {
    color: #adb5bd;
    font-size: 1.75rem;
}
/* =============================================================================
   AVAILABILITY CALENDAR RANGE PICKER
   ============================================================================= */
.date-range-calendar-master-container {
    max-width:500px;
}
.availability-header {
    display: inline-block;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .1rem;
    flex-wrap: wrap;
}

.availability-title {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    min-width: 200px;
}

.availability-actions {
    display: grid;
    gap: .25rem;
    min-width: 220px;
    flex: 1;
    justify-items: end;
}

.availability-actions-hint {
    display: none;
}

/* ✅ New layout: calendar left, stay details right */
.availability-content {
    display: grid;
    font-size:xx-small;
    align-items: start;
}

.availability-side {
    margin-top:40px;
    top: 1rem;
    display:none !important;
}

.side-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    padding: .6rem .7rem;
    background: #fff;

}

.side-title {
    font-weight: 800;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #0d6efd;
    margin-bottom: .5rem;
}

.side-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    padding: .15rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.08);
    font-variant-numeric: tabular-nums;
}

    .side-row:last-child {
        border-bottom: none;
    }

    .side-row .k {
        font-size: .72rem;
        font-weight: 800;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .side-row .v {
        font-weight: 900;
        color: #212529;
    }

    .side-row.nights .v {
        font-size: 1.05rem;
        color: #198754;
    }

@@media (max-width: 768px) {
    .availability-content {
        grid-template-columns: 1fr;
    }

    .availability-side {
        position: static;
    }
}

@@media (max-width: 576px) {
    .availability-range-picker {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 212px;
        
        max-width: 620px;
        min-width: 620px;
    }

    .availability-header {
        align-items: stretch;
    }

    .availability-title {
        width: 100%;
    }

    .availability-actions {
        width: 100%;
        justify-items: stretch;
    }

    .availability-actions-hint {
        display: block;
        text-align: right;
        margin-top: -2px;
    }

    .availability-days-strip {
        grid-auto-columns: minmax(42px, 1fr);
        gap: .4rem;
    }

    .day-pill {
        border-radius: 10px;
        padding: .3rem .35rem;
        min-width: 42px;
    }

        .day-pill .count {
            font-size: .85rem;
        }
}

.availability-mini-legend {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .25rem;
    flex-wrap: wrap;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,.1);
}

    .legend-dot.ok {
        background: #198754;
    }

    .legend-dot.low {
        background: #ffc107;
    }

    .legend-dot.none {
        background: #adb5bd;
    }

.availability-days-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(46px, 1fr);
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.day-pill {
    border-radius: 10px;
    border: 1px solid #e9ecef;
    padding: .35rem .4rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    min-width: 46px;
    user-select: none;
    scroll-snap-align: start;
}

    .day-pill .day {
        font-size: .75rem;
        color: #6c757d;
        line-height: 1;
    }

    .day-pill .count {
        font-weight: 700;
        font-size: .9rem;
        line-height: 1.2;
    }

    .day-pill.ok {
        background: rgba(25,135,84,.10);
        border-color: rgba(25,135,84,.25);
        color: #198754;
    }

    .day-pill.low {
        background: rgba(255,193,7,.15);
        border-color: rgba(255,193,7,.35);
        color: #856404;
    }

    .day-pill.none {
        background: #f8f9fa;
        color: #6c757d;
        opacity: .85;
    }

/* =============================================================================
   PICKER
   ============================================================================= */




/* ✅ Compact mode by default */
.date-picker-container {
    background: white;
    border-radius: 12px;
    padding: .5rem;

}
..date-picker-calendar {
    width:400px !important;
}
.date-picker-header {
    gap: .5rem;
    margin-bottom: .35rem;
}

.month-title {
    font-weight: 700;
    font-size: .95rem;
    text-transform: capitalize;
}

.weekday {
    font-size: .65rem;
    padding: .25rem 0;
    text-align: center;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* ✅ Force both header and day cells to be a 7-column calendar grid */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.two-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    align-items: start;
}

.month-panel {
    min-width: 0;
}

@@media (max-width: 992px) {
    .two-months {
        grid-template-columns: 1fr;
    }
}

.calendar-day {
    border-radius: 12px;
    min-height: 44px;
    aspect-ratio: 1;
    user-select: none;
    position: relative;
}

.day-number {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
}

/* Price is displayed under the day number */
.day-price {
    position: absolute;
    left: 45%;
    top: 30%;
    transform: translateX(-50%);
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    color: #0f5132;
    background: rgba(255,255,255,.7);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.06);
    white-space: nowrap;
}

.calendar-day.unavailable .day-price {
    display: none;
}

.day-price.yield {
    color: #b02a37;
    font-weight: 900;
    border-color: rgba(176,42,55,.25);
}

.date-picker-instructions {
    border-radius: 12px;
    margin-bottom: .5rem;
    font-size: .8rem;
    padding: .5rem .65rem;
}

.date-picker-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid #4a90a4;
    margin-top: .8rem;
    padding-top: .8rem;
    font-size:medium;
}

.summary-dates {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.summary-date .label {
    display: block;
    font-size: .7rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.1;
}

.summary-date .value {
    display: block;
    font-weight: 800;
    line-height: 1.1;
}

.summary-nights .badge {
    font-weight: 800;
}

/* Visible availability colors */
.calendar-day.available:not(.checkin):not(.checkout):not(.in-range) {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    border-left: 4px solid #198754;
}

/* ✅ Range overlay (bluish) */
.calendar-day.in-range {
    background: rgba(13, 110, 253, 0.18) !important;
    border-left: 4px solid rgba(13, 110, 253, 0.7);
}

.calendar-day.checkin,
.calendar-day.checkout {
    background: rgba(13, 110, 253, 0.35) !important;
    border-left: 4px solid #0d6efd;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.65);
}

    .calendar-day.checkin .day-number,
    .calendar-day.checkout .day-number {
        color: #0b2f6b;
    }

.calendar-day.unavailable {
    background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%) !important;
    border-left: 4px solid #a71d2a;
}

    .calendar-day.unavailable .day-number,
    .calendar-day.unavailable .day-price {
        color: #fff;
        text-decoration: none;
    }

.calendar-day.other-month {
    opacity: .45;
    background: #f8f9fa;
    border-left: none;
}

/* Availability badge inside the calendar cell */
.day-avail {
    position: absolute;
    left: 6px;
    bottom: 6px;
    font-size: .62rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.12);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

    .day-avail.ok {
        color: #198754;
        border-color: rgba(25,135,84,.35);
    }

    .day-avail.low {
        color: #856404;
        border-color: rgba(255,193,7,.45);
    }

    .day-avail.none {
        color: #6c757d;
        opacity: .9;
    }

@@media (max-width: 576px) {
    .date-picker-container {
        padding: .45rem;
    }

    .calendar-weekdays,
    .calendar-days {
        gap: 4px;
    }

    .calendar-day {
        min-height: 40px;
        border-radius: 10px;
    }

    .day-number {
        font-size: .82rem;
    }

    .day-price {
        top: 10%;
        font-size: .32rem;
        padding: 1px 5px;
    }

    .day-avail {
        top: 38%;
        font-size: .32rem;
        padding: 1px 5px;
    } 

    .date-picker-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

.date-picker-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: .75rem;
    align-items: start;
}

.date-picker-right {
    margin-top: .25rem;
}

@@media (max-width: 768px) {
    .date-picker-layout {
        grid-template-columns: 1fr;
    }

    .date-picker-right {
        margin-top: 0;
    }
}

.date-picker-legend {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .5rem;
    font-size: .85rem;
}

    .date-picker-legend .legend-item {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .date-picker-legend .legend-dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        display: inline-block;
        border: 1px solid rgba(0,0,0,.12);
    }

        .date-picker-legend .legend-dot.available {
            background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
            border-color: rgba(25,135,84,.35);
        }

        .date-picker-legend .legend-dot.unavailable {
            background: linear-gradient(135deg, #dc3545 0%, #e35d6a 100%);
            border-color: rgba(167,29,42,.35);
        }

        .date-picker-legend .legend-dot.selected {
            background: rgba(13, 110, 253, 0.35);
            border-color: rgba(13,110,253,.5);
        }
/* =============================================================================
   LEADERBOARD AVANCÉ - Nouveau Design Moderne
   ============================================================================= */

.leaderboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
    padding: 2rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leaderboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.leaderboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.leaderboard-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tournament-status {
    position: relative;
    z-index: 1;
}

.controls-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.empty-state {
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

/* =============================================================================
   PODIUM SECTION
   ============================================================================= */

.podium-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.podium-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.podium-card.position-1 {
    border-color: #ffd700;
    transform: scale(1.05);
}

.podium-card.position-2 {
    border-color: #c0c0c0;
}

.podium-card.position-3 {
    border-color: #cd7f32;
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.podium-card.position-1:hover {
    transform: scale(1.05) translateY(-5px);
}

.podium-rank {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-md);
}

.position-1 .podium-rank {
    background: #ffd700;
    color: #000;
}

.position-2 .podium-rank {
    background: #c0c0c0;
}

.position-3 .podium-rank {
    background: #cd7f32;
}

.podium-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ffd700;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.podium-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 2rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.podium-card h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.podium-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.podium-stat {
    text-align: center;
}

.podium-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.podium-stat small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Grille de statistiques pour podium - Layout 2x2 */
.podium-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.podium-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.podium-stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.podium-stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.podium-stat-item .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive pour les stats du podium */
@media (max-width: 767px) {
    .podium-stats-grid {
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .podium-stat-item {
        padding: 0.5rem;
    }
    
    .podium-stat-item .stat-value {
        font-size: 1.25rem;
    }
    
    .podium-stat-item .stat-label {
        font-size: 0.7rem;
    }
}

/* =============================================================================
   TABLEAU DE CLASSEMENT MODERNE
   ============================================================================= */

.leaderboard-table-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.leaderboard-table thead tr {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    color: var(--text-on-dark);
}

.leaderboard-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.leaderboard-table th.text-center {
    text-align: center;
}

.leaderboard-row {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.leaderboard-row:hover {
    background: var(--gray-50);
    transform: translateX(5px);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row.winner-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    border-left: 4px solid #ffd700;
}

.leaderboard-row.podium-row {
    background: linear-gradient(90deg, rgba(74, 144, 164, 0.05) 0%, transparent 100%);
    border-left: 4px solid var(--primary-color);
}

.leaderboard-table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.leaderboard-table td.text-center {
    text-align: center;
}

.rank-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 50px;
}

.rank-display.rank-gold {
    color: #ffd700;
    font-size: 1.8rem;
}

.rank-display.rank-silver {
    color: #c0c0c0;
    font-size: 1.7rem;
}

.rank-display.rank-bronze {
    color: #cd7f32;
    font-size: 1.6rem;
}

.participant-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.category-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.points-display strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.points-display small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 2px;
}

.fish-length strong {
    color: var(--success-color);
    font-size: 1.1rem;
}

.fish-length small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 2px;
}

.weight-display {
    color: var(--text-primary);
    font-weight: 500;
}

.catches-count {
    background: var(--primary-color);
    color: var(--text-on-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* =============================================================================
   SECTION DES MEILLEURES PRISES
   ============================================================================= */

.top-catches-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.top-catch-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
    height: 300px;
    background: var(--bg-primary);
}

.top-catch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.catch-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}
/*PARTNER DETAIL PAGE*/
.partner-header {
    background: linear-gradient(135deg, #4a90a4 0%, #7a95a8 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.partner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.partner-owner {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.partner-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    opacity: 0.95;
}

.partner-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.gallery-image-main {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.gallery-image-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

    .gallery-image-thumb:hover {
        transform: scale(1.05);
    }

.partner-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

/* ? NOUVEAUX STYLES: Carte de localisation */
.location-map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .contact-item:last-child {
        border-bottom: none;
    }

    .contact-item i {
        font-size: 1.5rem;
        color: #4a90a4;
        width: 30px;
        flex-shrink: 0;
    }

    .contact-item strong {
        display: block;
        color: #6c757d;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }

    .contact-item p {
        margin: 0;
        color: #2c3e50;
    }

    .contact-item a {
        color: #4a90a4;
        text-decoration: none;
    }

        .contact-item a:hover {
            text-decoration: underline;
        }

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .info-item:last-child {
        border-bottom: none;
    }

    .info-item i {
        color: #4a90a4;
        width: 20px;
    }

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.sidebar-sticky-container {
    position: sticky;
    top: 100px;
    z-index: 100;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 5px;
}

    .sidebar-sticky-container::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-sticky-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }

    .sidebar-sticky-container::-webkit-scrollbar-thumb {
        background: #4a90a4;
        border-radius: 10px;
    }

@media (max-width: 991px) {
    .sidebar-sticky-container {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Gallery Modal - Same as Guide */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

.gallery-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(90vh - 150px);
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

    .gallery-nav:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow-x: auto;
    max-width: 100%;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
    flex-shrink: 0;
}

    .gallery-thumbnail:hover {
        transform: scale(1.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .gallery-thumbnail.active {
        border-color: white;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }

@media (max-width: 768px) {
    .partner-title {
        font-size: 1.75rem;
    }

    .gallery-nav {
        width: 50px;
        height: 50px;
    }

    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
}
/* ✅ Bannière hero */
.hero-banner-section {
    position: relative;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

    .hero-banner-section .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    }

    .hero-banner-section .hero-content {
        z-index: 1;
        position: relative;
    }

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.success-icon {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-banner-section {
        min-height: 120px;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }
}

@media print {
    .btn {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }

    .hero-banner-section {
        display: none !important;
    }
}
.top-catch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.top-catch-card:hover .top-catch-image {
    transform: scale(1.05);
}

.catch-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    padding: 1.5rem;
    transform: translateY(50%);
    transition: var(--transition-normal);
}

.top-catch-card:hover .catch-overlay {
    transform: translateY(0);
}

.catch-info h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.catch-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.catch-stats span {
    font-size: 0.9rem;
    font-weight: 600;
}

.catch-date {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =============================================================================
   MODALS POUR CAPTURES
   ============================================================================= */

.participant-catch-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

.participant-catch-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.participant-catch-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.participant-catch-details {
    padding: 1rem;
}

.catch-species {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.catch-measurements {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.catch-measurements span {
    color: var(--text-primary);
}

.catch-points {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.catch-detail-stats {
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item label {
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-item span {
    color: var(--text-primary);
}

/* =============================================================================
   TABLES ADMINISTRATIVES PROFESSIONNELLES
   ============================================================================= */

.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.tournament-admin-table {
    width: 100%;
    background: var(--bg-primary);
    border-collapse: collapse;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    table-layout: fixed;
}

.tournament-admin-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
    padding: 1rem 1.25rem;
    font-weight: 600;
    text-align: left;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tournament-admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-primary);
}

.tournament-admin-table tbody tr {
    transition: var(--transition-fast);
}

.tournament-admin-table tbody tr:hover {
    background: var(--gray-50);
}

.tournament-admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Styles spécifiques pour les cellules de données */
.participant-info {
    line-height: 1.4;
}

.participant-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.participant-city {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.1rem 0.4rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-style: italic;
}

.participant-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.participant-phone {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.category-info {
    line-height: 1.4;
}

.category-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-prize {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-info {
    line-height: 1.4;
}

.waiver-signed {
    font-size: 0.8rem;
    color: var(--success-color);
    margin-top: 4px;
}

.payment-info {
    line-height: 1.4;
}

.payment-status {
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-status.paid {
    color: var(--success-color);
}

.payment-status.pending {
    color: var(--warning-color);
}

.btn-assign {
    background: var(--info-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-assign:hover {
    background: #138496;
}

.btn-revoke {
    background: var(--danger-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-revoke:hover {
    background: #c82333;
}

.assignment-info {
    line-height: 1.4;
    text-align: center;
}

.starting-number {
    font-weight: 600;
    margin-bottom: 2px;
}

.starting-number.unassigned {
    color: var(--text-light);
    font-weight: normal;
}

.zone-assigned {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.zone-assigned.unassigned {
    color: var(--text-light);
}

.registration-info {
    line-height: 1.4;
}

.registration-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.license-number {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Groupes de boutons pour tables */
.btn-group-custom {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group-vertical-custom {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
}

/* Boutons taille small pour tables */
.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.btn-info {
    background: var(--info-color);
    color: var(--text-on-dark);
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--gray-800);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-on-dark);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: var(--text-on-dark);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background: var(--gray-500);
    color: var(--text-on-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.btn-secondary-custom:hover {
    background: var(--gray-600);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-on-dark);
    transform: translateY(-1px);
}

/* Status d'inscription spéciaux */
.registration-badge {
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.registration-badge.pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.registration-badge.approved {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.registration-badge.waitlisted {
    background: rgba(23, 162, 184, 0.15);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.registration-badge.rejected {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.registration-badge.cancelled {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Status de tournoi */
.tournament-badge.draft {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.tournament-badge.open {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.tournament-badge.in-progress {
    background: rgba(23, 162, 184, 0.15);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.tournament-badge.finished {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.tournament-badge.cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* =============================================================================
   BOUTONS - Professionnels Bleu-Gris
   ============================================================================= */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-dark);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-on-dark);
}

.btn-success-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--text-on-dark);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-success-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
}

.btn-accent-custom {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.btn-accent-custom:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%);
    color: var(--text-on-dark);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: var(--text-on-dark);
}

/* =============================================================================
   CARDS - Style Professionnel
   ============================================================================= */

.tournament-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--border-color); 
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative; /* Pour le positionnement absolu du badge LIVE */
}

.tournament-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.tournament-card-header {
    position: relative;
    overflow: hidden;
}

.tournament-card-image {
    width: 100%;
    height: 100%;
     position:center;
     object-fit: fill;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}
.tournament-gallery-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
}

    .tournament-gallery-badge .gallery-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        background: #ff4757;
        color: #fff;
        font-size: 11px;
        font-weight: 600;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px #000;
    }

/* Badge galerie inline - sous Places dans le body de la carte */
.tournament-gallery-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.1) 0%, rgba(122, 149, 168, 0.1) 100%);
    border: 1px solid rgba(74, 144, 164, 0.3);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tournament-gallery-badge-inline:hover {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.15) 0%, rgba(122, 149, 168, 0.15) 100%);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.tournament-gallery-badge-inline i {
    font-size: 1rem;
    color: var(--primary-color);
}

.tournament-gallery-badge-inline .gallery-count {
    font-weight: 700;
    color: var(--primary-color);
}

.tournament-gallery-badge-inline .gallery-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Badge LIVE EN DIRECT */
.live-badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    z-index: 10;
    animation: live-pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

.live-dot {
    font-size: 0.5rem;
    animation: live-blink 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    }
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Badge STARTING SOON - En bas à droite de l'image */
.starting-soon-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212529;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    z-index: 10;
    animation: starting-soon-pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

.starting-soon-badge i {
    animation: clock-tick 1.5s ease-in-out infinite;
}

@keyframes starting-soon-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    }
}

@keyframes clock-tick {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.tournament-card-body {
    padding: 1.5rem;
}

/* =============================================================================
   BADGES - Style Professionnel
   ============================================================================= */

.tournament-badge {
    padding: 6px 14px;
    border-radius: 3px; /* Moins arrondi */
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-draft {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.badge-open {
    background: var(--success-color);
    color: var(--text-on-dark);
}

.badge-in-progress {
    background: var(--info-color);
    color: var(--text-on-dark);
}

.badge-completed {
    background: var(--gray-500);
    color: var(--text-on-dark);
}

.badge-cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* =============================================================================
   ALERTES
   ============================================================================= */

.alert-custom {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    border-left: 3px solid;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.08);
    border-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.08);
    border-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: var(--danger-color);
    color: #721c24;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.08);
    border-color: var(--info-color);
    color: #0c5460;
}
/* ============================================
   BADGE "POWERED BY OPENAI" - DISCRET
   ============================================ */
.powered-by-ai {
    position: absolute;
    bottom: 12px;
    right: 16px;
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 5;
    pointer-events: none;
}

    .powered-by-ai img {
        height: 200px;
        width: auto;
        filter: grayscale(100%) brightness(0.5);
    }
/*
.tournaments-hero-section:hover .powered-by-ai {
    opacity: 0.18;
    pointer-events: auto;
}

.powered-by-ai:hover {
    opacity: 0.35;
}
*/
@media (max-width: 768px) {
    .powered-by-ai {
        bottom: 8px;
        right: 12px;
        opacity: 0.36;
    }

        .powered-by-ai img {
            height: 300px;
        }
}
/* =============================================================================
   FORMULAIRES
   ============================================================================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.08);
}

.form-control-custom::placeholder {
    color: var(--text-light);
}

/* =============================================================================
   TIMELINE
   ============================================================================= */

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.timeline-dot {
    position: absolute;
    left: -40px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 14px;
    bottom: -14px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

/* =============================================================================
   MAPS
   ============================================================================= */

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    margin-top: 1rem;
}

.map-preview iframe,
.map-container iframe {
    border: none;
}

/* =============================================================================
   FORMS & REGISTRATION
   ============================================================================= */

.registration-form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Mobile responsive pour registration-form */
@media (max-width: 768px) {
    .registration-form {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 576px) {
    .registration-form {
        padding: 1rem;
    }
}

/* =============================================================================
   PROGRESS BARS
   ============================================================================= */

.progress {
    background-color: var(--gray-200);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 24px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

/* =============================================================================
   LOADING SPINNER
   ============================================================================= */

.loading-spinner {
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   LEADERBOARD
   ============================================================================= */

.leaderboard-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
    background: var(--bg-primary);
}

.leaderboard-item:hover {
    background: var(--gray-50);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.leaderboard-rank-1 {
    color: #ffd700;
    font-size: 1.6rem;
}

.leaderboard-rank-2 {
    color: #c0c0c0;
    font-size: 1.5rem;
}

.leaderboard-rank-3 {
    color: #cd7f32;
    font-size: 1.4rem;
}

/* =============================================================================
   CATCH CARDS
   ============================================================================= */

.catch-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.catch-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.catch-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}

.catch-details {
    padding: 1.25rem;
}

.catch-stat {
    display: inline-block;
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.catch-stat-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.catch-stat-value {
    color: var(--primary-color);
    font-weight: 700;
}

/* =============================================================================
   SECTIONS DE TOURNOIS - Style Minimal
   ============================================================================= */

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    margin-right: 0.5rem;
}

/* =============================================================================
   HERO SECTION TOURNAMENTS - Style Intégré avec Statistiques
   ============================================================================= */

.tournaments-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
    padding: 35px 30px; /* Réduits de 100px à 70px (-30%) */
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.tournaments-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 164, 0.85) 0%, 
        rgba(44, 95, 111, 0.9) 50%,
        rgba(74, 144, 164, 0.85) 100%);
    pointer-events: none;
}

    .tournaments-hero-section .container {
        position: relative;
        z-index: 2;
     }

.tournaments-hero-section h1 {
    font-size: 2.8rem; /* Réduits de 3.5rem à 2.8rem */
    font-weight: 800;
    margin-bottom: 1rem; /* Réduits de 1.5rem à 1rem */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem; /* Réduit de 1.3rem à 1.1rem */
    margin-bottom: 1.5rem; /* Réduit de 2rem à 1.5rem */
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.4;
}

.hero-btn {
    margin-top: 0.5rem; /* Réduit de 1rem à 0.5rem */
    padding: 12px 28px; /* Réduits de 15px 35px à 12px 28px */
    font-size: 1rem; /* Réduit de 1.1rem à 1rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistiques Hero Intégrées */
.hero-stats-grid {
    display: grid;
    gap: 0.8rem; /* Réduits de moitié */
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes horizontales au lieu de 1 */
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.8rem; /* Réduits de moitié de 1.2rem à 0.8rem */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column; /* Colonne pour compacter */
    align-items: center;
    text-align: center;
    gap: 0.3rem; /* Très réduit */
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px); /* Réduit l'effet hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-stat-icon {
    font-size: 1.7rem; /* Réduit de moitié de 2rem à 1.2rem */
    opacity: 0.9;
}

.hero-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: 1.4rem; /* Réduits de moitié de 2.2rem à 1.4rem */
    font-weight: 800;
    color: var(--text-on-dark);
    line-height: 1;
    margin-bottom: 0.1rem;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6rem; /* Réduit de moitié de 0.8rem à 0.6rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive pour Hero Tournaments */
@media (min-width: 992px) {
    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur desktop */
        gap: 0.8rem;
    }
}

@media (max-width: 991px) {
    .tournaments-hero-section {
        padding: 20px 20px;
        text-align: center;
    }
    
    .tournaments-hero-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats-grid {
        margin-top: 1.5rem;
        grid-template-columns: repeat(3, 1fr); /* Garde 3 colonnes sur tablette */
        gap: 0.6rem;
    }
    
    .hero-stat-item {
        padding: 0.6rem; /* Encore plus petit sur tablette */
    }
    
    .hero-stat-value {
        font-size: 1.4rem; /* Réduit sur tablette */
    }
    
    .hero-stat-icon {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 767px) {
    .tournaments-hero-section {
        padding: 30px 20px;
    }
    
    .tournaments-hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(3, 1fr); /* Même sur mobile, garde 3 colonnes */
        gap: 0.5rem;
    }
    
    .hero-stat-item {
        padding: 0.5rem; /* Très compact sur mobile */
    }
    
    .hero-stat-value {
        font-size: 1.2rem;
    }
    
    .hero-stat-icon {
        font-size: 1.9rem;
    }
    
    .hero-stat-label {
        font-size: 0.5rem;
        line-height: 1.2;
    }
}

/* =============================================================================
   HERO SECTION - PARTICIPATION GUIDE
   ============================================================================= */

.participation-hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--text-on-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.participation-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 1.5rem;

}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-animation {
    font-size: 8rem;
    color: var(--accent-color);
    animation: trophy-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes trophy-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-badge {
    position: absolute;
    background: var(--accent-color);
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-badge.badge-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Motivation Section */
.motivation-section {
    padding: 3rem 0;
}

.motivation-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    height: 100%;
}

.motivation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.motivation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-on-dark);
    margin: 0 auto 1.5rem;
}

.motivation-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Testimonials */
.testimonials-section {
    background: var(--gray-50);
    padding: 3rem 0;
    border-radius: var(--border-radius-xl);
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: var(--transition-fast);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.author-info strong {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
}

.author-info span {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Step Cards */
.section-header {
    margin-bottom: 3rem;
}

.step-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition-fast);
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-on-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.step-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.step-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item i {
    color: var(--success-color);
}

.btn-step-action {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--text-on-dark);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-step-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-on-dark);
    text-decoration: none;
}

/* Tournament Types */
.tournament-types {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tournament-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 150px;
}

.type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.type-badge.bronze {
    background: #cd7f32;
    color: white;
}

.type-badge.silver {
    background: #c0c0c0;
    color: #333;
}

.type-badge.gold {
    background: #ffd700;
    color: #333;
}

/* Competition Tips */
.competition-tips {
    background: var(--info-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
    margin-bottom: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tip-item i {
    color: var(--info-color);
}

.pro-tip {
    background: var(--warning-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--warning-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-tip i {
    color: var(--warning-color);
    font-size: 1.2rem;
}

/* Rewards Showcase */
.rewards-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.reward-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.reward-icon.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.reward-icon.silver {
    background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
    color: #333;
}

.reward-icon.bronze {
    background: linear-gradient(135deg, #cd7f32, #d4904b);
    color: white;
}

.reward-details strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.reward-details span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Call to Action Final */
.cta-final {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-on-dark);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1)"/></svg>');
    animation: sparkle 10s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-urgency {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    animation: urgent-pulse 2s ease-in-out infinite;
}

@keyframes urgent-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-primary {
    background: var(--accent-color);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-lg);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--text-on-dark);
    text-decoration: none;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--text-on-dark);
    text-decoration: none;
}

/* =============================================================================
   NOT AUTHORIZED COMPONENT STYLES
   ============================================================================= */

/* ============================================================================
   PAGINATION - STYLES PROFESSIONNELS
   ============================================================================ */

.pagination-custom {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.pagination-custom li {
    display: inline-block;
}

.pagination-custom li button {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-width: 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-custom li button:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-custom li.active button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-on-dark);
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.pagination-custom li.disabled button {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-secondary);
}

.pagination-custom li.disabled button:hover {
    transform: none;
    box-shadow: none;
    background: var(--gray-100);
    border-color: var(--gray-300);
}

/* Pagination compacte pour mobile */
@media (max-width: 767px) {
    .pagination-custom {
        gap: 4px;
    }
    
    .pagination-custom li button {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 38px;
    }
}

/* =============================================================================
   SPONSOR LIBRARY - STYLES
   ============================================================================= */

.sponsor-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.sponsor-library-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.sponsor-library-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.sponsor-library-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.sponsor-library-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-library-content {
    padding: 1.5rem;
    flex: 1;
}

.sponsor-library-content h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sponsor-library-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    max-height: 120px;
    overflow: hidden;
    position: relative;
}

/* Gradient fade pour les descriptions longues */
.sponsor-library-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--bg-primary));
}

/* Liens dans les descriptions - DÉSACTIVER le style de lien */
.sponsor-library-description a {
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Forcer le style hérité même au hover */
.sponsor-library-description a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.sponsor-library-website {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.sponsor-library-website:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.sponsor-library-stats {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.sponsor-library-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* =============================================================================
   SPONSOR DESCRIPTIONS - HTML CONTENT STYLING
   ============================================================================= */

/* Styles pour les descriptions des sponsors avec HTML */
.sponsor-description,
.sponsor-description-premium,
.sponsor-description-standard {
    line-height: 1.5;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Titres dans les descriptions */
.sponsor-description h1,
.sponsor-description h2,
.sponsor-description h3,
.sponsor-description h4,
.sponsor-description-premium h1,
.sponsor-description-premium h2,
.sponsor-description-premium h3,
.sponsor-description-premium h4,
.sponsor-description-standard h1,
.sponsor-description-standard h2,
.sponsor-description-standard h3,
.sponsor-description-standard h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.3;
}

/* Paragraphes */
.sponsor-description p,
.sponsor-description-premium p,
.sponsor-description-standard p {
    margin: 0.25rem 0;
}

/* Listes */
.sponsor-description ul,
.sponsor-description ol,
.sponsor-description-premium ul,
sponsor-description-premium ol,
.sponsor-description-standard ul,
.sponsor-description-standard ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.sponsor-description li,
.sponsor-description-premium li,
.sponsor-description-standard li {
    margin: 0.125rem 0;
}

/* Texte en gras */
.sponsor-description strong,
.sponsor-description-premium strong,
.sponsor-description-standard strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Texte en italique */
.sponsor-description em,
.sponsor-description-premium em,
.sponsor-description-standard em {
    font-style: italic;
}

/* Liens dans les descriptions - DÉSACTIVER le style de lien */
.sponsor-description a,
.sponsor-description-premium a,
.sponsor-description-standard a {
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Forcer le style hérité même au hover */
.sponsor-description a:hover,
.sponsor-description-premium a:hover,
.sponsor-description-standard a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Citations */
.sponsor-description blockquote,
.sponsor-description-premium blockquote,
.sponsor-description-standard blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 0.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Code inline */
.sponsor-description code,
.sponsor-description-premium code,
.sponsor-description-standard code {
    background: var(--gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* S'assurer que le conteneur de lien principal ne change pas l'apparence du texte */
.sponsor-card-link {
    color: inherit;
    text-decoration: none;
}

.sponsor-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
    .sponsor-library-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsor-library-logo {
        height: 120px;
    }
    
    .sponsor-library-description {
        max-height: 100px;
    }
}

/* =============================================================================
   SPONSORS SIDEBAR - SIMPLE & CLEAN DESIGN
   ============================================================================= */

.sponsors-sidebar {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.sponsors-sidebar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sponsors-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sponsors-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sponsors-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sponsors-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sponsors-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 2px solid var(--gray-200);
}

.sponsors-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding-left: 0.5rem;
    border-left: 5px solid var(--primary-color);
    border-top: 2px solid var(--primary-color);
}

.sponsor-item {
    display: block;
    border-bottom: 1px solid var(--gray-200);

}

.sponsor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    position: relative;
}

.sponsor-link:hover {
    background: var(--gray-50);
    transform: translateX(2px);
}

.sponsor-logo-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.sponsor-logo-image-right {
    width: 260px;
    height: auto;
    object-fit: fill;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
}
.sponsor-details {
    flex: 1;
    min-width: 0;
}

.sponsor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sponsor-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Désactiver les liens dans les descriptions */
.sponsor-desc a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
}

.sponsor-desc p {
    margin: 0;
}

.sponsor-desc strong {
    font-weight: 600;
}

.sponsor-external-icon {
    color: var(--primary-color);
    font-size: 0.75rem;
    opacity: 0;
    transition: all var(--transition-fast);
}

.sponsor-link:hover .sponsor-external-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .sponsors-sidebar {
        padding: 1rem;
    }
    
    .sponsor-logo-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .sponsor-name {
        font-size: 0.9rem;
    }
    
    .sponsor-desc {
        font-size: 0.75rem;
    }
}

/* =============================================================================
   TOURNAMENT LEVEL BADGES - STYLES PROFESSIONNELS
   ============================================================================= */

.tournament-level-badge {
    padding: 6px 14px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-beginner {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge-intermediate {
    background: rgba(33, 150, 243, 0.15);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.badge-family {
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-expert {
    background: rgba(233, 30, 99, 0.15);
    color: #ad1457;
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.badge-open {
    background: rgba(156, 39, 176, 0.15);
    color: #6a1b9a;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

/* Badges pour les cartes de tournois */
.tournament-level-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* Couleurs des icônes selon le niveau */
.level-icon-beginner {
    color: #4caf50;
}

.level-icon-intermediate {
    color: #2196f3;
}

.level-icon-family {
    color: #ff9800;
}

.level-icon-expert {
    color: #e91e63;
}

.level-icon-open {
    color: #9c27b0;
}

/* Pour les cartes de tournois principales */
.tournament-level-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.tournament-level-section .level-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* =============================================================================
   STAT CARDS - STYLES MANQUANTS
   ============================================================================= */

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.stat-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.stat-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Stat value standalone */
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 0.5rem;
}

/* Pro-Staff Small Card Styling */
.pro-staff-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid #ffc107;
}

.pro-staff-card .stat-icon i {
    color: #ffc107;
}

.pro-staff-card h2 {
    color: #f0ad4e;
}

.pro-staff-card h3 {
    color: #f0ad4e;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #f0ad4e 100%);
    color: #212529;
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #f0ad4e 0%, #ffc107 100%);
    color: #212529;
}

/* =============================================================================
   WYSIWYG CONTENT - FORMATAGE HTML ENRICHI
   ============================================================================= */

.wysiwyg-content {
    line-height: 1.8;
    white-space: normal; /* Respecte les balises HTML <p>, <br>, etc. */
}

.wysiwyg-content p {
    margin-bottom: 1rem;
}

.wysiwyg-content ul,
.wysiwyg-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.wysiwyg-content ul {
    list-style: disc;
}

.wysiwyg-content ol {
    list-style: decimal;
}

.wysiwyg-content li {
    margin: 0.5rem 0;
}

.wysiwyg-content h1,
.wysiwyg-content h2,
.wysiwyg-content h3,
.wysiwyg-content h4,
.wysiwyg-content h5,
.wysiwyg-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.wysiwyg-content strong,
.wysiwyg-content b {
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
}

.wysiwyg-content em,
.wysiwyg-content i {
    font-style: italic;
}

.wysiwyg-content a {
    color: var(--primary-color, #4a90a4);
    text-decoration: underline;
}

.wysiwyg-content a:hover {
    color: var(--primary-dark, #3d7a8a);
}

.wysiwyg-content br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.wysiwyg-content blockquote {
    border-left: 4px solid var(--primary-color, #4a90a4);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary, #666);
}

.wysiwyg-content code {
    background: #f5f5f5;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.wysiwyg-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.wysiwyg-content pre code {
    background: none;
    padding: 0;
}

.wysiwyg-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

/* Tables dans le contenu wysiwyg */
.wysiwyg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.wysiwyg-content th,
.wysiwyg-content td {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.wysiwyg-content th {
    background: #f5f5f5;
    font-weight: 700;
}

.wysiwyg-content tbody tr:nth-child(even) {
    background: #fafafa;
}

/* =============================================================================
   TOOLTIP PERSONNALISÉ - HÉBERGEMENT BUTTON
   ============================================================================= */

.tooltip-inner {
    background-color: var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    max-width: 350px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--primary-light);
}

.tooltip.show {
    opacity: 1;
    animation: tooltip-fade-in 0.3s ease-in-out;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before {
    border-color: var(--primary-color);
}

/* =============================================================================
   GUIDE CARDS - STYLES POUR PAGE GUIDES
   ============================================================================= */

/* Cards Desktop */
.guide-card {
    background: var(--bg-primary);
    border-radius: 16px;  /* ✅ Harmonisé avec partner-card (était var(--border-radius-lg) = 6px) */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.guide-card.featured-card {
    border: 3px solid #ffc107;
}

.guide-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .guide-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: radial-gradient( circle at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 30%, var(--gray-400) 90% );
    }

.guide-card-placeholder {
    color: var(--gray-400);
}

/* ✅ Badge Vedette / Featured */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.featured-badge i {
    font-size: 0.8rem;
}

.guide-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guide-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.guide-card-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.guide-card-description {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.guide-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.guide-card-tags .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.guide-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Cards Mobile */
.guide-card-mobile {
    background: var(--bg-primary);
    border-radius: 12px;  /* ✅ Harmonisé (était var(--border-radius) = 4px) */
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.guide-card-mobile.featured-card-mobile {
    border: 2px solid #ffc107;
}

.guide-card-mobile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem;
    color: var(--text-on-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guide-mobile-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;  /* ✅ Harmonisé */
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
}

.guide-mobile-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;  /* ✅ Harmonisé */
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
}

.guide-mobile-info {
    flex: 1;
    min-width: 0;
}

.guide-mobile-info h6 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
    line-height: 1.3;
}

.guide-mobile-info small {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
    color: rgba(255,255,255,0.9);
}

.guide-card-mobile-body {
    padding: 1rem;
}

.guide-mobile-description {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.guide-mobile-tags strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.guide-mobile-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.guide-mobile-stat i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.guide-mobile-stat span {
    flex: 1;
    color: var(--text-secondary);
}

.guide-mobile-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-card-mobile-actions {
    padding: 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
}
