/* ============================================================
   FICHES CLUBS - FRONT-END STYLES
   ============================================================ */

/* Container principal */
#fc-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ---- BANDEAU ADMIN ---- */
#fc-admin-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* ---- MODALE ---- */
.fc-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fc-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.fc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 1;
}
.fc-modal-content.fc-modal-large {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}
.fc-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #2c3e50;
}

/* ---- FORMULAIRE ---- */
.fc-form-group {
    margin-bottom: 15px;
}
.fc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #34495e;
    font-size: 14px;
}
.fc-form-group input,
.fc-form-group select,
.fc-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.fc-form-group input:focus,
.fc-form-group select:focus,
.fc-form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* ---- BOUTONS ---- */
.fc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.fc-btn-primary {
    background: #3498db;
    color: white;
}
.fc-btn-primary:hover {
    background: #2980b9;
}
.fc-btn-secondary {
    background: #95a5a6;
    color: white;
}
.fc-btn-secondary:hover {
    background: #7f8c8d;
}
.fc-btn-edit {
    background: #f39c12;
    color: white;
}
.fc-btn-edit:hover {
    background: #e67e22;
}
.fc-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ---- BARRE DE RECHERCHE ---- */
.fc-search-bar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}
.fc-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.fc-search-row input[type="text"] {
    flex: 2;
    min-width: 200px;
    padding: 10px 14px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
}
.fc-search-row select {
    flex: 1;
    min-width: 180px;
    padding: 10px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
}
.fc-search-row input:focus,
.fc-search-row select:focus {
    border-color: #3498db;
    outline: none;
}

/* ---- CARTES / FICHES ---- */
.fc-fiche-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    border: 1px solid #e9ecef;
}
.fc-fiche-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.fc-fiche-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}
.fc-fiche-logo {
    flex-shrink: 0;
}
.fc-fiche-logo img {
    width: 100px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
    border: 1px solid #dee2e6;
}
.fc-fiche-title h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #2c3e50;
}
.fc-fiche-dept-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.fc-badge-pending {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}
.fc-fiche-body {
    padding: 20px;
}
.fc-fiche-field {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
    color: #495057;
}
.fc-fiche-field:last-child {
    border-bottom: none;
}
.fc-fiche-field .fc-label {
    font-weight: 600;
    color: #343a40;
    min-width: 110px;
    display: inline-block;
}
.fc-fiche-field a {
    color: #3498db;
    text-decoration: none;
}
.fc-fiche-field a:hover {
    text-decoration: underline;
}
.fc-fiche-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}
.fc-fiche-map {
    padding: 0 20px 20px 20px;
}

/* ---- MESSAGES ---- */
.fc-error {
    color: #e74c3c;
    background: #fdf0ef;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}
.fc-success {
    color: #27ae60;
    background: #eafaf1;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}

/* ---- FOOTER / LIENS ---- */
.fc-footer {
    text-align: center;
    padding: 30px 0 10px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}
.fc-link-discreet {
    color: #adb5bd;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.fc-link-discreet:hover {
    color: #6c757d;
    text-decoration: underline;
}

/* ---- LOADING ---- */
#fc-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}
.fc-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e9ecef;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: fc-spin 0.7s linear infinite;
    margin-bottom: 10px;
}
@keyframes fc-spin {
    to { transform: rotate(360deg); }
}

#fc-no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .fc-search-row {
        flex-direction: column;
    }
    .fc-fiche-header {
        flex-direction: column;
        text-align: center;
    }
    .fc-modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* ---- FICHE EN ATTENTE (jaune) - visible en mode admin ---- */
.fc-fiche-card-pending {
    border-color: #f39c12 !important;
    border-width: 2px !important;
}
.fc-fiche-card-pending .fc-fiche-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ---- LIGNE MODIFIÉE (jaune par champ) ---- */
.fc-field-modified {
    background: #fff8e1 !important;
    border-left: 3px solid #f39c12 !important;
}
.fc-fiche-field.fc-field-modified {
    padding-left: 12px;
}
.fc-fiche-header.fc-field-modified {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border-left: 3px solid #f39c12;
}

/* ---- HINT SOUS LES CHAMPS ---- */
.fc-form-hint {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* ---- VALEUR PROPOSÉE (sous la valeur actuelle) ---- */
.fc-proposed-value {
    margin-top: 5px;
    padding: 6px 10px;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 13px;
    color: #856404;
}
.fc-proposed-value strong {
    color: #e67e22;
}
