/* =========================================================================
   JERRY.MA — ANNUAIRE DES PROS
   Aligné sur la Renaissance v5.3.2 (Glassmorphism Immersif)
   ========================================================================= */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* --- HERO --- */
.hero-annuaire {
    background: transparent;
    color: var(--white);
    text-align: center;
    padding: 5vh var(--space-md) 4vh;
    position: relative;
    overflow: hidden;
}

.hero-annuaire h1 {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-annuaire h1 span {
    color: var(--burnt-orange);
}

.hero-annuaire p {
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 20px;
    opacity: 0.9;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

.certif-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

/* --- FILTRES (Glassmorphism) --- */
.filters-container {
    max-width: 1100px;
    margin: var(--space-md) auto;
    padding: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
    z-index: 10;
}

.filter-select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

.filter-select:focus {
    border-color: var(--burnt-orange);
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.2);
}

.filter-select option {
    background: var(--slate-blue);
    color: white;
}

/* --- GRILLE DES PROS --- */
.pros-grid {
    max-width: 1100px;
    margin: 0 auto var(--space-xl);
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

/* --- PRO CARD (Glassmorphism) --- */
.pro-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: var(--space-md);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pro-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.pro-card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

.pro-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pro-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.pro-info .category {
    color: var(--burnt-orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.pro-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-weight: 600;
}

/* Badges (spécialités) */
.pro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bio */
.pro-bio {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Tip / Citation */
.pro-tip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
    border-left: 4px solid var(--burnt-orange);
}

/* Actions */
.pro-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-contact {
    background-color: var(--slate-blue);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-contact:hover {
    background-color: #1a252f;
}

/* Badge certifié (coin supérieur droit) */
.badge-certified {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: help;
    border: 2px solid rgba(255,255,255,0.8);
    background: white;
    object-fit: cover;
    z-index: 2;
}

/* Bouton partage */
.btn-share-pro {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    width: 100%;
    font-family: inherit;
}

.btn-share-pro:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Bouton "Claim" (B2B) */
.btn-claim {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    animation: pulse-claim 2s infinite;
    font-family: inherit;
    cursor: pointer;
}

.btn-claim:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse-claim {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    50%  { transform: scale(1.02); box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.06); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Bouton "Ajouter mon Cabinet" */
.btn-add-pro {
    background-color: var(--burnt-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
    height: fit-content;
    align-self: center;
}

.btn-add-pro:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 84, 0, 0.4);
}

/* --- MODAL B2B CLAIM --- */
.claim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 23, 38, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.claim-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: var(--space-lg);
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.claim-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
}

.claim-modal-title {
    font-size: 1.5rem;
    color: var(--slate-blue);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.claim-modal-text {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-google-claim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    color: #4a5568;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-google-claim:hover {
    background: #f8f9fa;
}

/* --- BLOC UGC (Recommander / Rejoindre) --- */
.ugc-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.ugc-pro-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-align: center;
    transition: color 0.2s;
}

.ugc-pro-link:hover {
    color: var(--white);
}

/* --- MOBILE --- */
@media (max-width: 650px) {
    .hero-annuaire {
        padding: 4vh var(--space-md) 3vh;
    }

    .hero-annuaire h1 {
        font-size: 2rem;
        letter-spacing: -1.5px;
        margin-bottom: 15px;
    }

    .hero-annuaire p {
        font-size: 0.95rem;
    }

    .filters-container {
        margin: var(--space-sm) var(--space-md);
        flex-direction: column;
        gap: var(--space-xs);
    }

    .filter-select {
        width: 100%;
    }

    .pros-grid {
        padding: 0 var(--space-sm);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .claim-modal {
        padding: var(--space-md);
    }
}