/* ============joinus====================== */
#joinus {

    --color-dark-green:   #053333;
    --color-sage:         #677c69;
    --color-terracotta:   #944F24;
    --color-beige:        #d9d5ca;
    --color-cream:        #F7F5F0;
    --color-ink:          #1a1a1a;
    --color-muted:        #7a7a72;
    --font-display: 'Chronicle Display', 'RecklessNeue', Georgia, serif;
    --font-body:    'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, sans-serif;

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-body);
    font-weight: normal;
}

#joinus .fullscreen-content {
    display: block;
    padding: 100px 0px 0px;
}

.joinus-wrapper {
    min-height: 100vh;
     width: 100%;
}

/* Main Content Wrapper */
.joinus-main-content {
    display: block;
    padding-top: 5%;
}

/* Hero Section */
.joinus-hero {
    text-align: center;
    margin-bottom: 114px;
}

.joinus-hero-logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #1E3F35;
    margin-bottom: 40px;
}

.joinus-hero-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    color: #1E3F35;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.joinus-hero-description {
    font-size: 1rem;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Vacancies Section */
.joinus-vacancies {
    margin-bottom: 10%;
    padding: 20px 40px;
}

.joinus-vacancies-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1E3F35;
    margin-bottom: 30px;
}

.joinus-vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Grande image du bureau */
.joinus-office-image {
    width: 100%;
    margin: 80px 0 0;
    overflow: hidden;
 }

.joinus-office-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.vacancy-card {
    background: white;
    padding: 40px 30px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.vacancy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #1E3F35;
}

.vacancy-card.active {
    background: #1E3F35;
    border-color: #1E3F35;
}

.vacancy-card.active .vacancy-title,
.vacancy-card.active .vacancy-type {
    color: white;
}

.vacancy-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1E3F35;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.vacancy-type {
    font-size: 0.875rem;
    color: #999;
    transition: color 0.3s ease;
}

/* Job Detail Section - HIDDEN BY DEFAULT */
.job-detail-section {
    display: none !important;
    animation: fadeInUp 0.5s ease;
    position: relative;
}

.job-detail-section.active {
    display: block !important;
}

/* Application Form Section */
.job-detail-apply-now {
    display: none !important;
    animation: fadeInUp 0.5s ease;
}

.job-detail-apply-now.active {
    display: block !important;
}

.apply-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

.apply-form-left {
    background: #1E3F35;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
}

.apply-form-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.apply-form-right {
    background: #677b69;
    padding: 80px 60px;
    overflow-y: auto;
    min-height: 100vh;
}

.apply-form-header {
    margin-bottom: 50px;
}

.apply-form-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #1E3F35;
    margin-bottom: 30px;
}

.apply-form-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: white;
    margin-bottom: 15px;
}

.apply-form-subtitle {
    font-size: 0.875rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Form Sections */
.application-form .form-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 20px;
    margin-bottom: 24px;
}

/* Titre de section sur toute la largeur */
.application-form .form-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
    grid-column: 1 / -1;
}
 

.apply-form-wrapper .form-group {
    margin-bottom: 0;
}

/* Champs full width */
.application-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Textarea toujours full width */
.application-form .form-group:has(textarea) {
    grid-column: 1 / -1;
}

.application-form textarea {
    min-height: 140px;
}

/* Upload CV et portfolio full width */
.application-form .form-group:has(.form-file-input) {
    grid-column: 1 / 1;
}

/* Checkbox + bouton */
.form-checkbox-group,
.form-submit-btn {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1E3F35;
    margin-bottom: 8px;
}

.form-label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: #fff;
    display: block;
    margin-top: 4px;
}

.form-file-input,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E0E0E0;
    background: white;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1E3F35;
    box-shadow: 0 0 0 3px rgba(30, 63, 53, 0.1);
}

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

.form-file-input {
}

.form-file-label {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    border: 2px dashed #E0E0E0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
}

.form-file-label:hover {
    border-color: #1E3F35;
    background: #F9F9F9;
}

.form-file-label.has-file {
    border-style: solid;
    border-color: #1E3F35;
    background: #F0F5F4;
    color: #1E3F35;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

/* Checkbox */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 30px 0;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: #fff;
    line-height: 1.6;
    cursor: pointer;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: #1E3F35;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background: #944F24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(148, 79, 36, 0.3);
}

.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Back button for apply form */
.apply-back-button {
    position: fixed;
    top: 120px;
    left: 40px;
    z-index: 90;
    background: white;
    color: #1E3F35;
    border: 1px solid #E0E0E0;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.apply-back-button:hover {
    background: #1E3F35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 63, 53, 0.3);
}

.apply-back-button svg {
    width: 20px;
    height: 20px;
}

/* Back Button - Fixed Position */
.job-back-button {
    position: fixed;
    margin-top:50px;
    left: 40px;
    z-index: 90;
    background: #1E3F35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 63, 53, 0.2);
}

.job-back-button:hover {
    background: #944F24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 79, 36, 0.3);
}

.job-back-button svg {
    width: 20px;
    height: 20px;
}

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

.job-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 0;
}

.job-detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.job-detail-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #1E3F35;
    margin-bottom: 40px;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1E3F35;
    margin-bottom: 15px;
}

.job-detail-meta {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Job Content Sections */
.job-content-section {
    margin-bottom: 50px;
}

.job-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1E3F35;
    margin-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 10px;
}

form.application-form .form-group label {
    color: white;
    font-size: 0.7rem;
}
 

form.application-form label.upload-box {
    padding: 10px 15px;
    border-radius: 14px;
    line-height: 16px;
    background: #f7f9ff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

form.application-form label.upload-box strong {
    color: #677b69;
}

form.application-form label.upload-box span {
    display: block;
    font-size: 13px;
    color: #555;
}

form.application-form  .form-file-input {
    display: none;
}



.job-section-content {
    color: #333;
    line-height: 1.8;
}

.job-section-content p {
    margin-bottom: 15px;
}

.job-section-content ul {
    list-style: none;
    padding: 0;
}

.job-section-content ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.job-section-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #944F24;
}

/* Job Images Grid */
.job-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 60px 0;
}

.job-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
}

/* About Section */
.job-about-section {
    background: white;
    padding: 40px;
    margin: 60px 0;
}

.job-about-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1E3F35;
    margin-bottom: 20px;
}

.job-about-content {
    color: #333;
    line-height: 1.8;
}

/* CTA Section */
.job-cta-section {
    text-align: center;
    padding: 60px 0;
}

.job-cta-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 30px;
}

.job-apply-button {
    display: inline-block;
    background: #1E3F35;
    color: white;
    padding: 18px 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.job-apply-button:hover {
    background: #944F24;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(148, 79, 36, 0.3);
}

/* Footer Section */
.joinus-footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid #E0E0E0;
}

.joinus-footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #1E3F35;
    margin-bottom: 20px;
}

.joinus-footer-tagline {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 20px;
}

.joinus-footer-website {
    display: inline-block;
    color: #944F24;
    text-decoration: none;
    font-size: 0.875rem;
    padding-bottom: 2px;
    border-bottom: 1px solid #944F24;
    transition: all 0.3s ease;
}

.joinus-footer-website:hover {
    color: #1E3F35;
    border-bottom-color: #1E3F35;
}

.joinus-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    
}  
/* 
.social-icon-link {
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    border-color: #1E3F35;
    color: #1E3F35;
    transform: translateY(-2px);
} */

/* ========================================
   RESPONSIVE - TABLETTE
   ======================================== */
@media (max-width: 1023px) {
    #joinus .fullscreen-content {
        padding: 100px 30px 60px;
    }

    .joinus-hero-title {
        font-size: 1.7rem;
    }

    .job-detail-title {
        font-size: 1.7rem;
    }

    .joinus-vacancies {
        padding: 20px 20px;
    }

    .joinus-vacancies-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }

    .vacancy-card {
        padding: 30px 20px;
    }

    .job-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .job-about-section {
        padding: 30px;
    }

    .job-back-button {
        top: 80px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .joinus-office-image {
        margin: 60px 0 0;
    }

    .joinus-office-image img {
        max-height: 450px;
    }

    .apply-form-wrapper {
        grid-template-columns: 1fr;
    }

    .apply-form-left {
        min-height: 300px;
        position: relative;
        height: 300px;
    }

    .apply-form-right {
        padding: 60px 40px;
        min-height: auto;
    }

    .apply-back-button {
        top: 100px;
        left: 20px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    /* Form grid responsive */
    .application-form .form-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 767px) {
    #joinus .fullscreen-content {
        padding: 90px 0px 50px;
    }

    .joinus-hero {
        margin-bottom: 60px;
    }

    .joinus-hero-title {
        font-size: 1.5rem;
    }

    .job-detail-title {
        font-size: 1.5rem;
    }

    .joinus-vacancies {
        padding: 20px 30px;
    }

    .joinus-vacancies-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vacancy-card {
        padding: 25px 20px;
    }

    .vacancy-title {
        font-size: 1rem;
    }

    .job-images-grid {
        margin: 40px 0;
    }

    .job-image {
        height: 220px;
    }

    .job-about-section {
        padding: 25px;
        margin: 40px 0;
    }

    .job-cta-section {
        padding: 40px 0;
    }

    .job-apply-button {
        padding: 16px 40px;
        font-size: 0.8rem;
    }

    .joinus-footer {
        padding: 40px 0 30px;
    }

    .joinus-social-links {
        gap: 12px;
    }

    .social-icon-link {
        width: 36px;
        height: 36px;
    }

    .job-back-button {
        top: 70px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .job-back-button svg {
        width: 16px;
        height: 16px;
    }

    .joinus-office-image {
        margin: 40px 0 0;
    }

    .joinus-office-image img {
        max-height: 350px;
    }

    .apply-form-left {
        min-height: 250px;
        position: relative;
        height: 250px;
    }

    .apply-form-right {
        padding: 40px 20px;
        min-height: auto;
    }

    .apply-form-title {
        font-size: 1.3rem;
    }

    .apply-back-button {
        top: 70px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .apply-back-button svg {
        width: 16px;
        height: 16px;
    }

    /* Form grid responsive */
    .application-form .form-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 479px) {
    .joinus-hero-title {
        font-size: 1rem;
    }

    .job-detail-title {
        font-size: 1rem;
    }

    .job-image {
        height: 180px;
    }

    .application-form .form-section {
        gap: 18px;
    }
}