

:root {
    --rec-green: #0f3d39;   
    --rec-primary: #168b3b; 
    --rec-gold: #cca43b;    
    --rec-bg: #f8fafc;      
    --font-title: 'Plane', sans-serif;
}

.page-recrutement-v2 {
    background-color: var(--rec-bg);
    font-family: 'Inter', sans-serif;
}


.recrutement-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -100px;
    padding-top: 100px;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 57, 0.6); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero-tag {
    display: inline-block;
    background: var(--rec-gold);
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 0 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

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


.btn-hero-primary, .btn-hero-outline {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-hero-primary {
    background: #fff;
    color: var(--rec-green);
    border: 2px solid #fff;
}
.btn-hero-primary:hover {
    background: transparent;
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-hero-outline:hover {
    background: #fff;
    color: var(--rec-green);
    border-color: #fff;
}


.recrutement-grid-section {
    padding: 60px 0 100px;
    position: relative;
    z-index: 4;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--rec-green);
    margin: 0 0 15px;
}

.title-separator {
    width: 60px;
    height: 4px;
    background: var(--rec-gold);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}


.job-card-v2 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.job-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.job-card-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--rec-primary);
    opacity: 0;
    transition: opacity 0.3s;
}
.job-card-v2:hover::before { opacity: 1; }

.card-header-badge {
    padding: 25px 25px 0;
    display: flex;
    justify-content: flex-end;
}

.badge-contract {
    background: #f0fdf4;
    color: var(--rec-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 10px 25px 25px;
    flex: 1;
}

.card-title {
    font-family: var(--font-title);
    color: #1e293b;
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.2;
}

.card-meta {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.meta-item { display: flex; align-items: center; gap: 6px; }

.card-excerpt {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 20px 25px;
    background: #fcfcfc;
    border-top: 1px solid #f1f5f9;
}

.btn-card-action {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: transparent;
    color: var(--rec-green);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-action:hover {
    background: var(--rec-green);
    color: #fff;
    border-color: var(--rec-green);
    text-decoration: none;
}

.no-jobs-card {
    grid-column: 1 / -1;
    background: #fff;
    padding: 60px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.icon-folder { font-size: 3rem; margin-bottom: 15px; display: block; }



.job-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s;
}

.job-modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.job-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 61, 57, 0.8);
    backdrop-filter: blur(4px);
}

.job-modal__container {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.job-modal.is-visible .job-modal__container {
    transform: translateY(0);
}

.job-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.job-modal__close:hover { background: #ef4444; color: #fff; }

.job-modal__header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-tags { display: flex; gap: 10px; margin-bottom: 15px; }
.modal-badge {
    font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.modal-badge.contract { background: var(--rec-gold); color: #fff; }
.modal-badge.location { background: #f1f5f9; color: #475569; }

.modal-title {
    font-family: var(--font-title);
    color: var(--rec-green);
    font-size: 2rem;
    margin: 0;
    line-height: 1.1;
}

.job-modal__scroll {
    overflow-y: auto;
    padding: 30px;
    flex: 1;
}

.wysiwyg-content { color: #334155; line-height: 1.7; font-size: 1rem; }
.wysiwyg-content h2, .wysiwyg-content h3 { color: var(--rec-green); margin-top: 25px; margin-bottom: 10px; font-weight: 700; }
.wysiwyg-content ul { padding-left: 20px; margin-bottom: 20px; }
.wysiwyg-content li { margin-bottom: 5px; }

.job-modal__footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    text-align: right;
}

.btn-modal-cta {
    display: inline-block;
    background: var(--rec-primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-modal-cta:hover { background: #14532d; }

@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .jobs-grid { grid-template-columns: 1fr; }
    .recrutement-hero { min-height: 350px; }
}



.page-gestion {
    background-color: #f1f5f9;
    padding: 3rem 0;
    min-height: 80vh;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.admin-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.admin-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.4rem;
}


.admin-form .form-group {
    margin-bottom: 1.2rem;
}

.admin-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 0.95rem;
}


.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box;
    color: #333;
}

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

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #168b3b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 139, 59, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.form-actions .button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 6px;
    flex: 1;
}

.form-actions .button--primary {
    background-color: #d97706;
    color: white;
}

.form-actions .button--outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    text-align: center;
    text-decoration: none;
    flex: 0 0 auto;
}


.admin-job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: #f8fafc;
    transition: all 0.2s;
}

.admin-job-item:hover {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.job-info {
    flex: 1;
    padding-right: 15px;
}

.job-info strong {
    display: block;
    color: #0f6a2c;
    font-size: 1rem;
    margin-bottom: 4px;
}

.job-info small {
    color: #64748b;
    font-size: 0.85rem;
}

.job-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
    height: 36px;
}

.btn-edit {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    gap: 6px;
}

.btn-edit:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-delete {
    background: #fff;
    border: 1px solid #fee2e2;
    color: #ef4444;
    width: 36px;
}

.btn-delete:hover {
    background: #fee2e2;
}


.msg-success {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.msg-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.password-protect-form {
    max-width: 500px;
    margin: 4rem auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}