/**
 * Styles publics Front-End - Gestionnaire de fiches
 */

/* Cartes d'affichage des fiches */
.gdf-carte-fiche {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.gdf-carte-fiche:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gdf-carte-fiche-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.gdf-carte-fiche-corps {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gdf-carte-fiche-titre {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #0f172a;
}

.gdf-carte-fiche-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gdf-badge-revendique {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    width: fit-content;
}

/* Espace Professionnel / Shortcode [gdf_espace_pro] */
.gdf-dashboard-front {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.gdf-dashboard-tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #f1f5f9;
}

.gdf-dashboard-tabs li {
    margin-right: 20px;
}

.gdf-dashboard-tabs a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.gdf-dashboard-tabs a.actif,
.gdf-dashboard-tabs a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Modal et formulaires de revendication */
.gdf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.gdf-modal.ouvert {
    display: block;
}

.gdf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
}

.gdf-modal-container,
.gdf-modal-contenu {
    position: relative;
    max-width: 500px;
    width: 90%;
    margin: 60px auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.gdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.gdf-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.gdf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.gdf-modal-close:hover {
    color: #0f172a;
}

/* Onglets Connexion / Inscription dans la Modal */
.gdf-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.gdf-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.gdf-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.gdf-modal form p.form-row {
    margin-bottom: 12px;
}

.gdf-modal form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #334155;
}

.gdf-modal form input[type="text"],
.gdf-modal form input[type="email"],
.gdf-modal form input[type="password"],
.gdf-modal form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.gdf-modal form button[type="submit"] {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gdf-modal form button[type="submit"]:hover {
    background: #1d4ed8;
}