/* ==========================================================================
   FLATCHR RECRUTEMENT - GROUPE MAURIN
   ========================================================================== */

.flatchr-section {
    position: relative;
    padding: 40px 0 70px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
}

.flatchr-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero / Header Banner --- */
.flatchr-hero {
    text-align: center;
    margin-bottom: 35px;
}

.flatchr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef7ee;
    color: #1b6339;
    border: 1px solid #cde8d4;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flatchr-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.25;
}

.flatchr-subtitle {
    font-size: 16px;
    color: #4b5563;
    max-width: 720px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}

.flatchr-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flatchr-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.flatchr-hero-btn-primary {
    background: #2a6d47;
    color: #ffffff;
    border: 1px solid #2a6d47;
}

.flatchr-hero-btn-primary:hover {
    background: #1f5436;
    color: #ffffff;
}

.flatchr-hero-btn-outline {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.flatchr-hero-btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

/* --- Filter Bar --- */
.flatchr-filter-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
}

.flatchr-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 991px) {
    .flatchr-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .flatchr-filter-grid {
        grid-template-columns: 1fr;
    }
}

.flatchr-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.flatchr-input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
}

.flatchr-input,
.flatchr-select {
    width: 100%;
    height: 44px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.flatchr-select {
    padding-left: 14px;
    cursor: pointer;
}

.flatchr-input:focus,
.flatchr-select:focus {
    border-color: #2a6d47;
    box-shadow: 0 0 0 3px rgba(42, 109, 71, 0.15);
}

.flatchr-btn-reset {
    height: 44px;
    padding: 0 16px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.flatchr-btn-reset:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Results counter & active tags */
.flatchr-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.flatchr-results-count {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

.flatchr-results-count strong {
    color: #111827;
    font-weight: 700;
}

/* --- Job Cards Grid --- */
.flatchr-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

@media (max-width: 991px) {
    .flatchr-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.flatchr-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.flatchr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.flatchr-card-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.flatchr-contract-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.flatchr-contract-cdi {
    background: #dcfce7;
    color: #15803d;
}

.flatchr-contract-cdd {
    background: #fef3c7;
    color: #b45309;
}

.flatchr-contract-alternance,
.flatchr-contract-stage {
    background: #e0f2fe;
    color: #0369a1;
}

.flatchr-card-city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.flatchr-card-city svg,
.flatchr-card-city::before {
    display: none !important;
}

.flatchr-card-ref {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

.flatchr-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 8px 0;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flatchr-card-company {
    font-size: 13px;
    color: #2a6d47;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flatchr-card-excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.flatchr-card-benefits {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.flatchr-benefit-pill {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.flatchr-card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.flatchr-btn-details {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.flatchr-btn-details:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.flatchr-btn-apply {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #2a6d47;
    color: #ffffff;
    border: 1px solid #2a6d47;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.flatchr-btn-apply:hover {
    background: #1f5436;
    color: #ffffff;
}

/* --- Empty State --- */
.flatchr-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    margin: 20px 0;
}

.flatchr-empty-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.flatchr-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.flatchr-empty-text {
    font-size: 14px;
    color: #6b7280;
    max-width: 450px;
    margin: 0 auto 16px auto;
}

/* --- Modal Job Details --- */
.flatchr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flatchr-modal-backdrop.is-active {
    display: flex;
}

.flatchr-modal-dialog {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: flatchrFadeIn 0.2s ease-out;
}

@keyframes flatchrFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.flatchr-modal-header {
    padding: 20px 24px 14px 24px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.flatchr-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.flatchr-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.flatchr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    padding-right: 40px;
    line-height: 1.35;
}

.flatchr-modal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}

.flatchr-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    line-height: 1.55;
    font-size: 13.5px;
    color: #374151;
}

.flatchr-modal-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 18px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flatchr-modal-section-title:first-child {
    margin-top: 0;
}

.flatchr-modal-content {
    margin-bottom: 18px;
}

.flatchr-modal-content h1,
.flatchr-modal-content h2,
.flatchr-modal-content h3 {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 14px 0 6px 0 !important;
    line-height: 1.35 !important;
}

.flatchr-modal-content h4,
.flatchr-modal-content h5,
.flatchr-modal-content h6 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 10px 0 4px 0 !important;
    line-height: 1.35 !important;
}

.flatchr-modal-content strong,
.flatchr-modal-content b {
    font-weight: 700;
    color: #111827;
}

.flatchr-modal-content p {
    font-size: 13.5px;
    margin-bottom: 10px;
}

.flatchr-modal-content ul {
    font-size: 13.5px;
    padding-left: 20px;
    margin-bottom: 12px;
}

.flatchr-modal-content li {
    font-size: 13.5px;
    margin-bottom: 6px;
}

.flatchr-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 14px 14px;
}

/* --- Dedicated HR Contact Form Section --- */
.flatchr-hr-section {
    margin-top: 50px;
    scroll-margin-top: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2a6d47;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#flatchr-offres {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .flatchr-hr-section {
        padding: 22px;
    }
}

.flatchr-hr-header {
    text-align: center;
    margin-bottom: 28px;
}

.flatchr-hr-badge {
    display: inline-block;
    background: #eef7ee;
    color: #1b6339;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.flatchr-hr-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.flatchr-hr-subtitle {
    font-size: 15px;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto;
}

.flatchr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .flatchr-form-grid {
        grid-template-columns: 1fr;
    }
}

.flatchr-form-col-full {
    grid-column: 1 / -1;
}

.flatchr-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flatchr-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.flatchr-form-label .required {
    color: #dc2626;
}

.flatchr-form-input,
.flatchr-form-select,
.flatchr-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.flatchr-form-input:focus,
.flatchr-form-select:focus,
.flatchr-form-textarea:focus {
    border-color: #2a6d47;
    box-shadow: 0 0 0 3px rgba(42, 109, 71, 0.15);
}

.flatchr-form-textarea {
    min-height: 110px;
    resize: vertical;
}

.flatchr-file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
}

.flatchr-file-upload:hover {
    border-color: #2a6d47;
    background: #f0fdf4;
}

.flatchr-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.flatchr-file-upload-label {
    font-size: 13px;
    color: #4b5563;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.flatchr-file-upload-label svg {
    color: #2a6d47;
}

.flatchr-file-name-display {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-top: 6px;
}

.flatchr-form-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 6px;
}

.flatchr-form-rgpd input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #2a6d47;
    cursor: pointer;
}

.flatchr-btn-submit {
    background: #2a6d47;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flatchr-btn-submit:hover:not(:disabled) {
    background: #1f5436;
    box-shadow: 0 4px 12px rgba(42, 109, 71, 0.3);
}

.flatchr-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alert notifications */
.flatchr-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flatchr-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.flatchr-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Iframe container mode */
.flatchr-iframe-container {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.flatchr-iframe-container iframe {
    display: block;
    width: 100%;
    border: none;
}
