/* ============================================================
   Kadiwaku Emplois — Feuille de style v1.0.0
   Couleurs thème: --kf-blue: #29ABE2, --kf-red: #ED1C24, --kf-yellow: #FFC20E
============================================================ */

/* ============================================================
   HERO
============================================================ */
.ke-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d3b55 50%, #1a1a2e 100%);
    padding: 80px 0 60px;
    overflow: hidden;
    position: relative;
}
.ke-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41,171,226,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.ke-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,194,14,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.ke-hero .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}
.ke-hero-content .label {
    margin-bottom: 20px;
}
.ke-hero-content h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}
.ke-hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.ke-scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ke-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ke-stat-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 20px 28px;
    text-align: center;
    min-width: 140px;
    transition: transform 0.2s;
}
.ke-stat-card:hover { transform: scale(1.03); }
.ke-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #29ABE2;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: 6px;
}
.ke-stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================================
   FILTRES
============================================================ */
.ke-filters-bar {
    background: #fff;
    padding: 28px 0;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.ke-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}
.ke-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.ke-search-input-wrap > .fa-search {
    position: absolute;
    left: 16px;
    color: #aaa;
    font-size: 1rem;
    pointer-events: none;
}
.ke-search-input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 46px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #fafafa;
}
.ke-search-input-wrap input:focus {
    border-color: #29ABE2;
    box-shadow: 0 0 0 3px rgba(41,171,226,0.15);
    background: #fff;
}
.ke-clear-search {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 1rem;
    padding: 4px 8px;
    display: none;
}
.ke-clear-search.visible { display: block; }
.ke-clear-search:hover { color: #ED1C24; }

.ke-btn-search {
    white-space: nowrap;
    border-radius: 50px;
    padding: 12px 28px;
}

.ke-filters-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.ke-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ke-filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ke-filter-group select,
.ke-filter-group input {
    padding: 9px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    min-width: 160px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.ke-filter-group select:focus,
.ke-filter-group input:focus {
    border-color: #29ABE2;
}
.ke-btn-reset {
    margin-left: auto;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 9px 18px;
}

.ke-results-info {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}
.ke-results-info #ke-results-count {
    font-weight: 700;
    color: #29ABE2;
    font-style: normal;
}

/* ============================================================
   GRILLE DES OFFRES
============================================================ */
.ke-offres-section { padding: 60px 0 80px; }
.ke-offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ============================================================
   CARTE OFFRE
============================================================ */
.ke-offre-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.ke-offre-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    border-color: #29ABE2;
}
.ke-offre-featured {
    border-color: #FFC20E;
    box-shadow: 0 4px 20px rgba(255,194,14,0.15);
}
.ke-offre-featured:hover {
    border-color: #FFC20E;
    box-shadow: 0 16px 40px rgba(255,194,14,0.2);
}
.ke-offre-expired {
    opacity: 0.6;
}
.ke-featured-banner {
    background: linear-gradient(90deg, #FFC20E, #f0a800);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ke-offre-card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

/* Badges */
.ke-offre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ke-badge-contrat {
    display: inline-block;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}
.ke-badge-teletravail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ke-remote-total   { background: #e8f9f0; color: #1e8449; }
.ke-remote-partial { background: #eaf4fb; color: #1a6b8e; }
.ke-badge-handicap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff4e6;
    color: #d68910;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}
.ke-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}
.ke-badge-urgent  { background: #fdf3e7; color: #e67e22; }
.ke-badge-expired { background: #fef0f0; color: #c0392b; }

/* Titre */
.ke-offre-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.ke-offre-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}
.ke-offre-title a:hover { color: #29ABE2; }

.ke-offre-dept {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Méta */
.ke-offre-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}
.ke-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #555;
}
.ke-meta-item i { color: #29ABE2; width: 14px; }

/* Extrait */
.ke-offre-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

/* Footer carte */
.ke-offre-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    flex-wrap: wrap;
}
.ke-offre-deadline { display: flex; align-items: center; gap: 6px; }
.ke-date-text { font-size: 0.82rem; color: #888; display: flex; align-items: center; gap: 5px; }
.ke-date-text i { color: #aaa; }
.ke-offre-actions { display: flex; gap: 8px; }

/* ============================================================
   LOADING
============================================================ */
.ke-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.ke-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #eee;
    border-top-color: #29ABE2;
    border-radius: 50%;
    animation: ke-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes ke-spin { to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
============================================================ */
.ke-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.ke-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #29ABE2, #1a8ab5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.ke-empty-icon i { font-size: 2rem; color: #fff; }
.ke-empty h3 { color: #333; margin-bottom: 12px; }
.ke-empty p { max-width: 480px; margin: 0 auto 24px; font-size: 0.95rem; }

/* ============================================================
   BREADCRUMB
============================================================ */
.ke-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
}
.ke-breadcrumb a { color: rgba(255,255,255,0.7); }
.ke-breadcrumb a:hover { color: #fff; }

/* ============================================================
   POURQUOI NOUS REJOINDRE
============================================================ */
.ke-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ke-why-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.ke-why-card:hover { transform: translateY(-4px); }
.ke-why-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.ke-why-icon i { font-size: 1.6rem; color: #fff; }
.ke-why-card h4 { margin-bottom: 12px; font-size: 1rem; }
.ke-why-card p { font-size: 0.88rem; color: #666; line-height: 1.6; margin: 0; }

/* ============================================================
   PROCESSUS
============================================================ */
.ke-process-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}
.ke-step {
    text-align: center;
    flex: 1;
    max-width: 220px;
    padding: 0 20px;
}
.ke-step-arrow {
    color: #29ABE2;
    font-size: 1.5rem;
    padding-top: 60px;
    opacity: 0.5;
}
.ke-step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(41,171,226,0.12);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
    margin-bottom: -12px;
    position: relative;
    z-index: 0;
}
.ke-step-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #29ABE2, #1a8ab5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(41,171,226,0.25);
}
.ke-step-icon i { font-size: 1.6rem; color: #fff; }
.ke-step h4 { margin-bottom: 10px; font-size: 0.95rem; }
.ke-step p { font-size: 0.83rem; color: #666; }

/* ============================================================
   CTA SECTION
============================================================ */
.ke-cta-section {
    background: linear-gradient(135deg, #1a1a2e, #0d3b55);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.ke-cta-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2329ABE2' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.ke-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.ke-cta-text h2 { color: #fff; margin-bottom: 12px; }
.ke-cta-text p { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0; }
.ke-cta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }
.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

/* ============================================================
   MODAL
============================================================ */
.ke-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ke-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.ke-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 540px;
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: ke-modal-in 0.25s ease;
}
@keyframes ke-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ke-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ke-modal-close:hover { background: #ED1C24; color: #fff; }
.ke-modal-header { text-align: center; margin-bottom: 28px; }
.ke-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #29ABE2, #1a8ab5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.ke-modal-icon i { font-size: 1.6rem; color: #fff; }
.ke-modal-header h3 { margin-bottom: 8px; }
.ke-modal-header p { color: #777; font-size: 0.9rem; margin: 0; }

.ke-modal-form { display: flex; flex-direction: column; gap: 16px; }
.ke-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ke-form-group { display: flex; flex-direction: column; gap: 6px; }
.ke-form-group label { font-size: 0.85rem; font-weight: 600; color: #333; }
.ke-form-group input,
.ke-form-group textarea,
.ke-form-group select {
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.ke-form-group input:focus,
.ke-form-group textarea:focus {
    border-color: #29ABE2;
    box-shadow: 0 0 0 3px rgba(41,171,226,0.12);
}
.ke-form-group input.error,
.ke-form-group textarea.error {
    border-color: #ED1C24;
}
.ke-form-feedback {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.ke-form-feedback.success { background: #e8f8f0; color: #1e8449; }
.ke-form-feedback.error   { background: #fef0f0; color: #c0392b; }
.ke-form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ============================================================
   BUTTONS (suppléments thème)
============================================================ */
.btn-lg {
    padding: 14px 30px !important;
    font-size: 1rem !important;
}
.btn-sm {
    padding: 7px 16px !important;
    font-size: 0.8rem !important;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .ke-why-grid { grid-template-columns: repeat(2, 1fr); }
    .ke-hero .container { grid-template-columns: 1fr; }
    .ke-hero-stats { flex-direction: row; justify-content: center; }
}

@media (max-width: 768px) {
    .ke-offres-grid { grid-template-columns: 1fr; }
    .ke-why-grid { grid-template-columns: 1fr; }
    .ke-process-steps { flex-direction: column; align-items: center; }
    .ke-step-arrow { display: none; }
    .ke-cta-content { flex-direction: column; text-align: center; }
    .ke-cta-actions { justify-content: center; }
    .ke-filters-row { flex-direction: column; }
    .ke-filter-group select,
    .ke-filter-group input { min-width: 100%; }
    .ke-modal-content { padding: 28px 20px; }
    .ke-form-row { grid-template-columns: 1fr; }
    .ke-hero-stats { flex-wrap: wrap; gap: 8px; }
    .ke-stat-card { padding: 14px 20px; min-width: 120px; }
}
