/* =============================================
   ASKIM - Carrières
   Même style que le reste du site
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

.cr-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.cr-intro {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.cr-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cr-intro h2 span,
.cr-hero h1 span {
    background: linear-gradient(45deg, #e74c3c, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cr-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.75;
}

.cr-section {
    padding: 100px 0;
    background: #fff;
    scroll-margin-top: 70px;
}

.cr-section-alt {
    background: #f8f7f5;
}

/* Boutons */
.cr-btn-primary,
.cr-btn-outline,
.cr-btn-ghost,
.cr-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    border-radius: 50px;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cr-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 10px 25px rgba(231,76,60,0.35);
}

.cr-btn-primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(231,76,60,0.5);
}

.cr-btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.85);
    color: #fff;
}

.cr-btn-outline:hover {
    background: #fff;
    color: #c0392b;
}

.cr-btn-ghost {
    background: #fff;
    border-color: #e6e6e6;
    color: #222;
}

.cr-btn-ghost:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    text-decoration: none;
}

.cr-btn-light {
    background: #fff;
    color: #c0392b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.cr-btn-light:hover {
    color: #a93226;
    transform: translateY(-2px);
}

.cr-btn-small {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

/* ============================================
   HERO
   ============================================ */
.cr-hero {
    position: relative;
    overflow: hidden;
    background: #000;
    padding: 150px 5% 90px;
    color: #fff;
}

.cr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://image.noelshack.com/fichiers/2026/37/4/1789030416-hf-20260910-083424-dd8ace74-4842-4810-8adf-86e4c0f59a55.jpg') center 30%/cover;
    filter: brightness(0.5);
}

.cr-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.2) 100%),
        radial-gradient(circle at 85% 50%, rgba(231,76,60,0.3) 0%, rgba(231,76,60,0) 45%);
}

.cr-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.cr-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.8rem;
}

.cr-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
}

.cr-lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2rem;
}

.cr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.cr-hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 1.8rem;
}

.cr-hero-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.cr-hero-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cr-hero-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.5;
}

.cr-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   VALEURS ET AVANTAGES
   ============================================ */
.cr-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.cr-value {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    padding: 2rem 1.7rem;
    text-align: center;
}

.cr-value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(231,76,60,0.1);
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-value h3 {
    color: #222;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cr-value p {
    color: #666;
    font-size: 0.97rem;
    line-height: 1.7;
}

.cr-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.cr-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 1.4rem;
}

.cr-benefit-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fdf2f1;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-benefit h3 {
    color: #222;
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cr-benefit p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   POSTES
   ============================================ */
.cr-jobs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.cr-job {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-job:hover {
    border-color: rgba(231,76,60,0.35);
    box-shadow: 0 14px 36px rgba(231,76,60,0.08);
}

.cr-job.is-featured {
    border: 2px solid #e74c3c;
}

.cr-job-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.cr-job-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fdf2f1;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-job-heading h3 {
    color: #111;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cr-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #f3f3f3;
    color: #555;
}

.cr-tag-tech,
.cr-tag-marketing,
.cr-tag-red {
    background: #fdecea;
    color: #c0392b;
}

.cr-tag-design,
.cr-tag-green {
    background: #e8f7ee;
    color: #1e8449;
}

.cr-tag-support,
.cr-tag-purple {
    background: #f3eafa;
    color: #7d3c98;
}

.cr-tag-blue {
    background: #e8f1fb;
    color: #2471a3;
}

.cr-tag-salary {
    background: #e8f7ee;
    color: #1e8449;
}

.cr-tag-featured {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.cr-job-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.cr-job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.cr-empty {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: #f8f7f5;
    border-radius: 24px;
    padding: 3rem 2rem;
}

.cr-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cr-empty-icon svg {
    width: 30px;
    height: 30px;
}

.cr-empty h3 {
    color: #111;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.cr-empty p {
    color: #666;
}

.cr-spontaneous {
    max-width: 900px;
    margin: 2.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 24px;
    padding: 1.8rem 2rem;
    color: #fff;
}

.cr-spontaneous h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.cr-spontaneous p {
    color: rgba(255,255,255,0.9);
    font-size: 0.97rem;
    line-height: 1.6;
}

/* ============================================
   FENÊTRE DE CANDIDATURE
   ============================================ */
.apply-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
    background: rgba(0,0,0,0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.apply-modal-overlay.active {
    display: flex;
}

.apply-modal {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 1rem auto;
    background: #fff;
    color: #222;
    border-radius: 26px;
    padding: 2.4rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    animation: crModalIn 0.3s ease;
}

@keyframes crModalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.apply-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f3f3;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.apply-modal-close svg {
    width: 18px;
    height: 18px;
}

.apply-modal-close:hover {
    background: #e74c3c;
    color: #fff;
}

.apply-modal h2 {
    color: #111;
    font-size: 1.7rem;
    font-weight: 800;
    padding-right: 3rem;
    margin-bottom: 0.4rem;
}

.apply-modal-subtitle {
    color: #777;
    margin-bottom: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: #222;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-label .required {
    color: #e74c3c;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #eee;
    border-radius: 14px;
    background: #fafafa;
    color: #111;
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #e74c3c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

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

.form-file-wrapper {
    position: relative;
    border: 2px dashed #e2e2e2;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
}

.form-file-wrapper:hover {
    border-color: #e74c3c;
    background: #fdf2f1;
}

.form-file-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.92rem;
}

.form-file-label svg {
    width: 26px;
    height: 26px;
    color: #e74c3c;
}

.form-file-label .filename {
    color: #1e8449;
    font-weight: 700;
}

.form-privacy {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 0.3rem;
}

.form-privacy a {
    color: #e74c3c;
    font-weight: 600;
}

.form-submit-wrapper {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.form-cancel {
    background: #fff;
    border: 2px solid #e6e6e6;
    color: #444;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.form-cancel:hover {
    border-color: #ccc;
}

.form-submit {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(231,76,60,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(231,76,60,0.45);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    display: none;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background: #e8f7ee;
    color: #1e8449;
}

.form-message.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
}

.form-errors {
    display: none;
    background: #fdecea;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}

.form-errors.show {
    display: block;
}

.form-errors ul {
    list-style: none;
}

.form-errors li {
    color: #c0392b;
    font-size: 0.88rem;
    padding: 0.15rem 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .cr-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cr-intro h2 {
        font-size: 2rem;
    }

    .cr-intro p {
        font-size: 1rem;
    }

    .cr-spontaneous {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .cr-hero {
        padding: 120px 5% 60px;
    }

    .cr-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .cr-lead {
        font-size: 1rem;
    }

    .cr-hero-actions {
        flex-direction: column;
    }

    .cr-hero-actions .cr-btn-primary,
    .cr-hero-actions .cr-btn-outline {
        width: 100%;
    }

    .cr-section {
        padding: 70px 0;
    }

    .cr-benefits-grid {
        grid-template-columns: 1fr;
    }

    .cr-job {
        padding: 1.3rem;
    }

    .cr-job-heading h3 {
        font-size: 1.15rem;
    }

    .cr-job-actions .cr-btn-small {
        flex: 1;
    }

    .cr-btn-light {
        width: 100%;
        white-space: normal;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .apply-modal {
        padding: 1.6rem 1.3rem;
        border-radius: 22px;
    }

    .apply-modal h2 {
        font-size: 1.4rem;
    }
}

/* Arabe : bouton de fermeture à gauche */
html[dir="rtl"] .apply-modal-close {
    right: auto;
    left: 1rem;
}

html[dir="rtl"] .apply-modal h2 {
    padding-right: 0;
    padding-left: 3rem;
}
