/**
 * RDConnect - UI Improvements (26 janvier 2026)
 * Corrections UX pour Contact, Blog, Emplois, Entreprises
 */

/* ========== CONTACT PAGE - CARTES MOBILE ========== */
/* Mettre les 3 cartes sur la même ligne en mobile */
@media (max-width: 767.98px) {
    /* Contact info cards - horizontal scroll on very small screens */
    .contact-cards-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .contact-cards-row > .col-lg-4,
    .contact-cards-row > .col-md-6 {
        flex: 0 0 auto !important;
        width: 260px !important;
        min-width: 260px !important;
    }
    
    .contact-cards-row .card {
        padding: 20px 16px !important;
    }
    
    .contact-cards-row .card .mb-3 > div {
        width: 50px !important;
        height: 50px !important;
    }
    
    .contact-cards-row .card .mb-3 i {
        font-size: 1.4rem !important;
    }
    
    .contact-cards-row .card h5 {
        font-size: 0.95rem !important;
    }
    
    .contact-cards-row .card p {
        font-size: 0.85rem !important;
    }
}

/* ========== FORMULAIRES - MEILLEUR CONTRASTE ========== */
/* Champs de formulaire avec fond blanc et bordure visible */
.form-control,
.input-group .form-control,
.contact-form .form-control,
.form-card-wrapper .form-control {
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    color: #1a1a2e;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus,
.input-group .form-control:focus {
    border-color: #0891b2 !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
    background: #ffffff !important;
}

/* Input group avec meilleur contraste */
.input-group-text {
    background: #f8fafc !important;
    border: 1.5px solid #d1d5db !important;
    border-right: none !important;
}

.input-group .form-control {
    border-left: none !important;
}

/* ========== CAPTCHA - ESPACEMENT ========== */
.captcha-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px !important;
    padding: 20px !important;
}

.captcha-section .captcha-question-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.captcha-section .captcha-input {
    width: 80px !important;
    text-align: center;
    font-weight: 600;
}

.captcha-section .robot-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 767.98px) {
    .captcha-section {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .captcha-section > * {
        width: 100%;
    }
}

/* ========== BLOG - ARTICLES POPULAIRES ========== */
/* Séparation icône/texte avec plus d'espace */
.popular-article-item {
    display: flex;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 16px 0 !important;
}

.popular-article-item .article-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.popular-article-item .article-content {
    flex: 1;
    min-width: 0;
}

.popular-article-item .article-content h6 {
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

/* ========== BLOG - TAGS MOBILE ========== */
@media (max-width: 767.98px) {
    .tags-cloud .badge,
    .card-body .d-flex.flex-wrap.gap-2 .badge {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .card-body .d-flex.flex-wrap.gap-2 {
        gap: 8px !important;
    }
}

/* ========== ENTREPRISES - ESPACEMENT CARTES ========== */
.service-card,
.advantage-item,
.testimonial-card {
    margin-bottom: 24px;
}

.services-section .row.g-4,
.advantages-section .row {
    row-gap: 30px !important;
}

/* Alignement des boutons hero entreprises */
.employers-hero .d-flex.flex-wrap.gap-3 {
    align-items: center;
}

.employers-hero .btn-rdconnect-light,
.employers-hero .btn-rdconnect-outline-light {
    min-width: 180px;
    text-align: center;
    padding: 14px 28px !important;
}

@media (max-width: 575.98px) {
    .employers-hero .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    
    .employers-hero .d-flex.flex-wrap.gap-3 > a {
        width: 100%;
    }
}

/* ========== JOBS PAGE - CARTES PLUS GRANDES ========== */
.form-card-wrapper {
    padding: 60px 50px !important;
    border-radius: 24px !important;
}

@media (max-width: 991.98px) {
    .form-card-wrapper {
        padding: 40px 30px !important;
    }
}

@media (max-width: 575.98px) {
    .form-card-wrapper {
        padding: 30px 20px !important;
        border-radius: 16px !important;
    }
}

/* Jobs search bar style like blog */
.jobs-search-box {
    background: #ffffff;
    border-radius: 60px;
    box-shadow: 0 8px 30px rgba(8, 145, 178, 0.12);
    padding: 8px;
}

.jobs-search-box .form-control {
    border: none !important;
    background: transparent !important;
    padding: 16px 20px 16px 50px;
}

.jobs-search-box .btn-search {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    background: #0891b2;
    color: white;
    border: none;
}

.jobs-search-box .btn-search:hover {
    background: #0e7490;
}

/* Quick filters for jobs */
.job-quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* Legacy btn-filter - redirected to standardized btn-rdconnect-filter */
.job-quick-filters .btn-filter,
.btn-filter {
    display: inline-block;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 145, 178, 0.2);
    cursor: pointer;
    white-space: nowrap;
}

.job-quick-filters .btn-filter:hover,
.btn-filter:hover,
.job-quick-filters .btn-filter.active,
.btn-filter.active {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

@media (max-width: 575.98px) {
    .job-quick-filters {
        gap: 8px;
    }
    
    .job-quick-filters .btn-filter,
    .btn-filter {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ========== JOB CARDS - MÊMES DIMENSIONS QUE AUTRES PAGES ========== */
.job-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #0891b2;
}

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

.job-card .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.job-card .company-logo i {
    font-size: 1.5rem;
    color: white;
}

.job-card .job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.job-card .job-company {
    color: #0891b2;
    font-weight: 500;
    font-size: 0.95rem;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 0.85rem;
}

.job-card .job-meta i {
    color: #0891b2;
}

.job-card .job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.job-card .job-tags .badge {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.job-card .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.job-card .job-salary {
    font-weight: 700;
    color: #10b981;
    font-size: 1rem;
}

.job-card .btn-apply {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    border: none;
}

.job-card .btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
}
