/* ============================================================
   STRUCTURE GÉNÉRALE
   ============================================================ */

.ovr-bourse-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Inter", sans-serif;
}

.ovr-bourse-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.ovr-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}


.ovr-hidden {
    display: none;
}

.ovr-visible {
    display: block;
}

/* ============================================================
   ONGLET NAVIGATION
   ============================================================ */

.ovr-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ovr-tab-button {
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: #f7f7f7;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.ovr-tab-button:hover {
    background: #eee;
}

.ovr-tab-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.ovr-tab-content {
    display: none;
}

.ovr-tab-content.active {
    display: block;
}


/* ============================================================
   FORMULAIRES
   ============================================================ */

.ovr-form {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.ovr-form-section {
    margin-bottom: 20px;
}

.ovr-form-section h3,
.ovr-form-section h4 {
    margin-bottom: 10px;
}

.ovr-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.ovr-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.ovr-form-group select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.ovr-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.ovr-form-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


/* ============================================================
   BOUTONS
   ============================================================ */

.ovr-btn-primary {
    background: #0073aa;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.ovr-btn-primary:hover {
    background: #005f8d;
}

.ovr-btn-large {
    font-size: 16px;
    padding: 12px 22px;
}

.ovr-btn-secondary {
    background: #eee;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.2s;
}

.ovr-btn-secondary:hover {
    background: #ddd;
}

.ovr-btn-danger {
    background: #d9534f;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.ovr-btn-danger:hover {
    background: #c9302c;
}



/* ============================================================
   MESSAGES
   ============================================================ */

.ovr-info-success {
    color: #2e7d32;
    font-weight: 600;
}

.ovr-info-error {
    color: #c62828;
    font-weight: 600;
}

.ovr-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
}

.ovr-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.ovr-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}


/* =========================================================================
   MODALE DÉTAIL PROFANE (Bourse)
   Reproduit le design de ovr-gestion-profanes
   ========================================================================= */

/* Overlay */
.ovr-bourse-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    z-index: 999998 !important;
}

.ovr-bourse-modal-overlay.open {
    display: block !important;
}

/* Modale */
.ovr-bourse-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: none;
    z-index: 999999 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ovr-bourse-modal.open {
    display: inline-block !important;
}

/* Contenu */
.ovr-bourse-modal-content {
    position: relative;
    width: 520px;
    max-width: 90vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    animation: ovrBourseModalIn 0.18s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes ovrBourseModalIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header fixe */
.ovr-bourse-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: #fff;
}

.ovr-bourse-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Bouton fermeture X */
.ovr-bourse-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.ovr-bourse-modal-close:hover {
    color: #000;
}

/* Zone scrollable */
.ovr-bourse-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 26px;
}


/* ============================================================
   RÉSULTATS DE RECHERCHE
   ============================================================ */

.ovr-resultats {
    margin-top: 20px;
}

.ovr-resultats-liste {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ovr-resultat-item {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ovr-resultat-header {
    margin-bottom: 12px;
}

.ovr-resultat-nom {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ovr-resultat-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ovr-detail {
    display: flex;
    gap: 10px;
}

.ovr-label {
    font-weight: 600;
    width: 150px;
    color: #333;
}

.ovr-value {
    flex: 1;
    color: #555;
}

/* ============================================================
   Fiches résultats de recherche 
   ============================================================*/
.ovr-result-item {
    background: #ffffff;
    border: 1px solid #0073aa;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ovr-result-item:hover {
    border-color: #005f8d;
    box-shadow: 0 2px 10px rgba(0, 115, 170, 0.2);
}


/* Table détail profane (modale) */
.ovr-profane-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.ovr-profane-detail-table th {
    text-align: left;
    padding: 6px 12px;
    width: 160px;
    color: #333;
    font-weight: 600;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.ovr-profane-detail-table td {
    padding: 6px 12px;
    color: #555;
    border-bottom: 1px solid #eee;
}


/* ============================================================
   ALERTES
   ============================================================ */

.ovr-alertes-list {
    margin-top: 20px;
}

.ovr-alerte-card {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ovr-alerte-info p {
    margin: 4px 0;
}

.ovr-alerte-date {
    font-size: 12px;
    color: #777;
}

.ovr-alerte-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#modal-modifier-alerte { display: none !important; }
#modal-modifier-alerte.open { display: flex !important; }


/* ============================================================
   DON / PAYPAL
   ============================================================ */


.ovr-don-section {
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.ovr-don-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ovr-don-paypal {
    margin: 20px 0;
}

.ovr-don-info {
    margin-top: 15px;
    color: #555;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .ovr-alerte-card {
        flex-direction: column;
        gap: 10px;
    }

    .ovr-alerte-actions {
        flex-direction: row;
    }
}