/**
 * Retraide Agencies - Style Front-end Premium (Lumineux & Luxueux)
 */

:root {
    --ra-blue: #009bfe;
    --ra-blue-hover: #0083da;
    --ra-blue-deep: #0b2240;
    --ra-blue-light: #f0f8ff;
    --ra-gold: #fbbf24;
    --ra-gold-dark: #d97706;
    --ra-text-main: #0f172a;
    --ra-text-muted: #475569;
    --ra-card-bg: #ffffff;
    --ra-border-color: rgba(0, 155, 254, 0.08);
    --ra-shadow-sm: 0 4px 12px rgba(0, 155, 254, 0.02);
    --ra-shadow-md: 0 12px 30px rgba(7, 36, 86, 0.04);
    --ra-shadow-lg: 0 20px 40px rgba(7, 36, 86, 0.08);
}
.site-content:has(.retraide-agency-wrapper) {
    padding-top: 0;
}
.retraide-agency-wrapper {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7fafc;
    color: var(--ra-text-main);
    padding: 40px 0 80px 0;
    position: relative;
    overflow: hidden;
}

/* Arrière-plan lumineux avec halo bleu subtil */
.retraide-agency-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 155, 254, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.retraide-agency-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 155, 254, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.retraide-agency-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* En-tête Lumineux & Épuré */
.retraide-agency-profile-card {
    background: var(--ra-white, #ffffff);
    border: 1px solid var(--ra-border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--ra-shadow-md);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

.retraide-agency-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--ra-blue) 0%, #38bdf8 100%);
    border-radius: 24px 24px 0 0;
}

.retraide-agency-logo-container {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 155, 254, 0.12);
    border-radius: 20px;
    overflow: hidden;
    width: 140px;
    height: 140px;
    box-shadow: 0 10px 25px rgba(0, 155, 254, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.retraide-agency-logo-container:hover {
    transform: scale(1.02);
}

.retraide-agency-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retraide-agency-logo-placeholder {
    font-size: 54px;
    color: var(--ra-blue);
    line-height: 1;
}

.retraide-agency-profile-info {
    flex-grow: 1;
}

.retraide-agency-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.retraide-agency-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    color: var(--ra-blue-deep);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.retraide-agency-badge-group {
    background: var(--ra-blue-light);
    border: 1px solid rgba(0, 155, 254, 0.15);
    color: var(--ra-blue-hover);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.retraide-agency-profile-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.retraide-agency-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ra-text-muted);
}

.retraide-agency-meta-item a {
    color: var(--ra-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.retraide-agency-meta-item a:hover {
    color: var(--ra-blue-hover);
}

.retraide-agency-meta-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 155, 254, 0.1));
}

/* Layout 2 colonnes */
.retraide-agency-body {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
}

/* Sections */
.retraide-agency-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ra-blue-deep);
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.3px;
}

.retraide-agency-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--ra-blue) 0%, #38bdf8 100%);
    border-radius: 4px;
}

/* Grille des Annonces */
.retraide-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.retraide-listing-card {
    background: var(--ra-card-bg);
    border: 1px solid var(--ra-border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ra-shadow-sm);
    position: relative;
}

.retraide-listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ra-shadow-lg);
    border-color: rgba(0, 155, 254, 0.18);
}

.retraide-listing-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f8fafc;
}

.retraide-listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.retraide-listing-card:hover .retraide-listing-image {
    transform: scale(1.04);
}

.retraide-badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--ra-gold) 0%, var(--ra-gold-dark) 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
    text-transform: uppercase;
    z-index: 2;
}

.retraide-badge-pro {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #009bfe 0%, #0083da 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 155, 254, 0.2);
    z-index: 2;
}

.retraide-listing-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.retraide-listing-meta {
    font-size: 13px;
    color: var(--ra-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.retraide-listing-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ra-blue-deep);
    margin: 0 0 20px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    transition: color 0.2s;
}

.retraide-listing-card:hover .retraide-listing-title {
    color: var(--ra-blue);
}

.retraide-listing-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.retraide-price-pill {
    background: var(--ra-blue-light);
    border: 1px solid rgba(0, 155, 254, 0.12);
    color: var(--ra-blue-deep);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

.retraide-listing-date {
    font-size: 12px;
    color: var(--ra-text-muted);
}

/* Sidebar & Cards */
.retraide-agency-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.retraide-agency-card {
    background: var(--ra-card-bg);
    border: 1px solid var(--ra-border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--ra-shadow-sm);
    position: relative;
    overflow: hidden;
}

.retraide-agency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ra-blue) 0%, #38bdf8 100%);
    border-radius: 20px 20px 0 0;
}

.retraide-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ra-blue-deep);
    margin: 0 0 20px 0;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    letter-spacing: -0.2px;
}

/* Fiche légale */
.retraide-legal-table {
    width: 100%;
    border-collapse: collapse;
}

.retraide-legal-table tr {
    border-bottom: 1px solid #f8fafc;
}

.retraide-legal-table tr:last-child {
    border-bottom: none;
}

.retraide-legal-table td {
    padding: 12px 0;
    font-size: 13px;
    vertical-align: middle;
}

.retraide-legal-label {
    font-weight: 700;
    color: var(--ra-text-muted);
    width: 45%;
}

.retraide-legal-value {
    color: var(--ra-text-main);
    text-align: right;
    font-weight: 500;
}

.retraide-legal-value code {
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--ra-blue-deep);
}

/* Grille des Agents (Style Cartes) */
.retraide-sidebar-agents {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.retraide-agent-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 155, 254, 0.04);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.retraide-agent-row:hover {
    background: var(--ra-blue-light);
    border-color: var(--ra-border-color);
    transform: translateX(4px);
}

.retraide-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 155, 254, 0.1);
    background: #ffffff;
    flex-shrink: 0;
}

.retraide-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retraide-agent-info {
    flex-grow: 1;
}

.retraide-agent-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ra-blue-deep);
    margin: 0;
}

.retraide-agent-email {
    font-size: 11px;
    color: var(--ra-text-muted);
    margin: 2px 0 0 0;
    word-break: break-all;
}

/* Aucun résultat */
.retraide-no-listings {
    grid-column: span 2;
    background: var(--ra-card-bg);
    border: 2px dashed rgba(0, 155, 254, 0.15);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    color: var(--ra-text-muted);
    box-shadow: var(--ra-shadow-sm);
}

.retraide-no-listings-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 10px rgba(0, 155, 254, 0.1));
}

.retraide-no-listings-text {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .retraide-agency-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .retraide-agency-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .retraide-agency-title-row {
        justify-content: center;
    }
    .retraide-agency-profile-meta {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .retraide-listings-grid {
        grid-template-columns: 1fr;
    }
}
