/* ============================================================
   PAGE RÉSULTATS DE STANDS
============================================================ */
.resultat-stand-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 80vh;
    padding: 70px 0;
}

/* ---- En-tête de page ---- */
.rs-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.rs-page-title {
    color: #2E7D32;
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.rs-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 2px;
}

.rs-page-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    margin-top: 22px;
}

/* ---- Carte de recherche ---- */
.rs-search-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 28px 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.rs-search-label {
    font-weight: 700;
    color: #2E7D32;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rs-search-input {
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: border-color 0.2s;
    width: 100%;
    background-color: #fff;
    color: #2E2E2E;
}

.rs-search-input:focus {
    border-color: #2E7D32;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.18);
}

.rs-btn-search {
    background: linear-gradient(135deg, #2E7D32 0%, #245E27 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.rs-btn-search:hover {
    background: linear-gradient(135deg, #245E27 0%, #1E4A20 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.28);
    color: #fff;
}

.rs-btn-reset {
    background: #fff;
    color: #6c757d;
    border: 2px solid #cbd5e0;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.rs-btn-reset:hover {
    border-color: #2E7D32;
    color: #2E7D32;
    text-decoration: none;
}

.rs-search-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
}

.rs-search-info strong {
    color: #2E7D32;
}

/* ---- Tableau de résultats ---- */
.rs-table-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.rs-table-header {
    background: linear-gradient(135deg, #2E7D32 0%, #245E27 100%);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rs-table-header-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rs-table-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.rs-table thead th {
    background: #f8fdf8;
    color: #2E7D32;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    border-bottom: 2px solid rgba(46, 125, 50, 0.12);
    white-space: nowrap;
}

.rs-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.15s;
}

.rs-table tbody tr:hover {
    background: #f0faf0;
}

.rs-table tbody tr:last-child {
    border-bottom: none;
}

.rs-table td {
    padding: 14px 18px;
    vertical-align: middle;
    font-size: 0.93rem;
    color: #374151;
}

.rs-reference-badge {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-block;
}

.rs-name {
    font-weight: 600;
    color: #1a202c;
}

.rs-email {
    color: #4a5568;
    font-size: 0.88rem;
}

.rs-btn-suivre {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.rs-btn-suivre:hover {
    background: linear-gradient(135deg, #245E27 0%, #388E3C 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    text-decoration: none;
}

/* ---- État vide ---- */
.rs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.rs-empty-icon {
    font-size: 3.5rem;
    color: #cbd5e0;
    margin-bottom: 18px;
}

.rs-empty-text {
    font-size: 1.05rem;
    margin: 0;
}

/* ---- Pagination ---- */
.rs-pagination-wrapper {
    padding: 20px 28px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #fafafa;
}

.rs-pagination-info {
    color: #6c757d;
    font-size: 0.88rem;
}

.rs-pagination-wrapper .pagination .page-link {
    border-radius: 8px;
    border: 2px solid #dee2e6;
    color: #2E7D32;
    font-weight: 600;
    padding: 6px 14px;
    transition: all 0.2s;
}

.rs-pagination-wrapper .pagination .page-item.active .page-link {
    background: #2E7D32;
    border-color: #2E7D32;
    color: #fff;
}

.rs-pagination-wrapper .pagination .page-link:hover {
    background: #e8f5e9;
    border-color: #2E7D32;
    color: #2E7D32;
}

/* ---- Modale vérification ---- */
.rs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .5);
    align-items: center;
    justify-content: center;
}

.rs-modal-overlay.rs-modal-visible {
    display: flex;
}

.rs-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.rs-modal-title {
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #1a2340;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rs-modal-title i {
    color: #e67e22;
}

.rs-modal-field {
    margin-bottom: 1rem;
}

.rs-modal-label {
    display: block;
    font-weight: 600;
    margin-bottom: .4rem;
    font-size: .9rem;
}

.rs-modal-input-readonly {
    background: #f4f6fa;
    font-weight: 600;
    color: #1a2340;
}

.rs-modal-hint {
    color: #6c757d;
    font-size: .8rem;
    margin-top: .3rem;
    display: block;
}

.rs-modal-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.rs-modal-btn-cancel {
    padding: .55rem 1.2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all .2s;
}

.rs-modal-btn-cancel:hover {
    border-color: #adb5bd;
    color: #495057;
}

.rs-modal-btn-submit {
    padding: .55rem 1.4rem;
    border: none;
    border-radius: 8px;
    background: #e67e22;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .2s;
}

.rs-modal-btn-submit:hover {
    background: #cf6d17;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .rs-table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rs-page-title {
        font-size: 1.5rem;
    }

    .rs-search-card {
        padding: 20px;
    }
}
