/* Styles for Nous Recrutons Template */

:root {
    --primary-color: #37726E; /* Couleur principale (vert foncé) */
    --secondary-color: #F2FC32; /* Couleur secondaire (jaune vif) */
    --accent-color: #7EC7A8; /* Couleur accent (vert clair) */
    --light-color: #FFFFFF; /* Blanc */
    --dark-color: #343a40; /* Couleur texte foncé */
    --border-radius: 8px;
}

/* General styles (Consider moving to main.css if not already there) */
.recruitment-page-content * { /* Scope to avoid conflicts if needed */
    /* margin: 0; */ /* Usually handled globally */
    /* padding: 0; */ /* Usually handled globally */
    /* box-sizing: border-box; */ /* Usually handled globally */
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */ /* Usually handled globally */
}

.recruitment-page-content { /* Specific container for this page */
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

.recruitment-page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.recruitment-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.recruitment-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Update this path if needed */
    background-image: url('../images/image-optimized/cleaning-team.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px; /* Adjusted from inline style */
}

/* Buttons (Consider moving general .btn styles to main.css) */
.recruitment-page-content .btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: bold;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.recruitment-page-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.recruitment-page-content .btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color); /* Default outline color */
}

.recruitment-page-content .btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* Specific Hero Outline Button */
.hero-content .btn-outline {
    background-color: transparent; /* From inline style */
    border: 2px solid var(--secondary-color); /* From inline style */
    color: white; /* From inline style */
}

.hero-content .btn-outline:hover {
    background-color: var(--secondary-color); /* From inline style */
    color: var(--dark-color); /* From inline style */
}


/* Section Styling */
.recruitment-page-content .section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Why Join Us Section */
.why-join-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */ /* Overridden below */
    gap: 40px; /* Overridden below */
    margin-top: 50px;
    /* Grid columns defined in separate style block */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* From second style block */
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(55, 114, 110, 0.15);
    border-bottom: 3px solid var(--accent-color);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: inline-block;
}

.benefit-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-desc {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Career Path Section */
.career-path-section { /* Added from inline style */
    background-color: rgba(242, 252, 50, 0.1);
}

.career-path {
    /* background-color: rgba(242, 252, 50, 0.1); */ /* Moved to section */
    border-radius: var(--border-radius);
    padding: 50px;
    margin-top: 50px;
}

.career-path-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.career-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.career-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

.career-step {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.career-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    background-color: var(--secondary-color);
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.step-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.step-desc {
    color: #555;
}

/* Open Positions Section */
.open-positions {
    background-color: white;
    /* padding: 80px 0; */ /* Handled by .section */
}

.positions-container {
    /* display: flex; */ /* Overridden by grid */
    /* flex-wrap: wrap; */ /* Overridden by grid */
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
    /* Grid styles from separate style block */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.position-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;
    /* max-width: 350px; */ /* Removed due to grid */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Added for uniform height */
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.position-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 25px 20px; /* From second style block */
    color: white;
    text-align: center;
    position: relative; /* Added for key tag positioning */
    /* Added for uniform height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: height 0.3s ease; /* Added from JS interaction style */
}

.position-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    /* Added for uniform height */
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    transition: transform 0.3s ease; /* Added from JS interaction style */
}

.position-type {
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 5px;
}

.position-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%; /* From second style block */
}

.position-desc {
    margin-bottom: 15px; /* Adjusted from 20px */
    flex-grow: 1;
    color: #555;
}

.position-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.position-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(126, 199, 168, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.feature-text {
    font-size: 0.9rem;
    color: #555;
}

.position-footer {
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    text-align: center;
}

.featured-position {
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.key-position-tag {
    position: absolute;
    top: -10px; /* Adjusted from 10px */
    right: 20px; /* Adjusted from 10px */
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px; /* Adjusted from 4px 10px */
    border-radius: 20px;
    z-index: 5; /* Adjusted from 1 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Added */
}

/* Application Section */
.application-section {
    background-color: rgba(126, 199, 168, 0.15);
    /* padding: 80px 0; */ /* Handled by .section */
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.application-step {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.application-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.application-step-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.application-desc {
    color: #666;
}

/* Testimonials Section */
.testimonials-section {
    /* padding: 80px 0; */ /* Handled by .section */
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.7}
    to {opacity: 1}
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
}

.testimonial-container::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.2rem;
    color: #444;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-position {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

.testimonial-arrows {
    display: flex;
    gap: 15px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333; /* Added default color */
}

.arrow:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    /* padding: 80px 0; */ /* Handled by .section */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Update this path if needed */
    background: url('../images/image-optimized/cleaning-pattern.webp');
    background-size: cover;
    opacity: 0.05;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* JS Added Styles */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.active-position {
    /* border-left: 4px solid var(--secondary-color); */ /* Already defined in .featured-position, maybe intended for non-featured? */
    /* If intended for all cards when active: */
    box-shadow: 0 10px 25px rgba(55, 114, 110, 0.2); /* Example active style */
}
.active-position .btn {
    animation: pulse 2s infinite;
}


/* Media Queries */
@media (max-width: 992px) {
    .why-join-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .recruitment-page-content .section {
        padding: 60px 0;
    }

    .career-path {
        padding: 30px;
    }

    .why-join-grid {
        gap: 20px;
        grid-template-columns: 1fr; /* From second style block */
    }

    .benefit-card, .position-card {
        max-width: 100%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .positions-container {
        grid-template-columns: 1fr; /* From second style block */
    }

    .position-title {
        min-height: auto; /* From second style block */
    }
}
