/* Reset et base */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #2b2b2b;
}

/* Hero Section */
.jobs-hero {
    background: url('hero-jobs.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.jobs-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.jobs-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1rem;
}

.jobs-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.jobs-hero-content p {
    font-size: 1.2rem;
}

/* Jobs Main */
.jobs-main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.jobs-main h2 {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.jobs-main .intro-text {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Jobs Container */
.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.job-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.job-card h3 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.job-card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}

/* Bouton Postuler */
.btn-apply {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: #d32f2f;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-apply:hover {
    background-color: #b71c1c;
}

/* Footer */
footer {
    background-color: #d32f2f;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .jobs-hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .jobs-hero-content h1 { font-size: 2rem; }
    .jobs-hero-content p { font-size: 1rem; }
    .jobs-container { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .jobs-hero-content h1 { font-size: 1.6rem; }
    .jobs-hero-content p { font-size: 0.9rem; }
}


/* BARE DE RECHERCHE*/

/* Conteneur de la barre de recherche */
.search-bar {
    width: 100%;
    max-width: 500px;
    margin: 30px auto; /* Centré horizontalement avec un peu d'espace en haut */
    position: relative;
}

/* Input de recherche */
#jobSearch {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px; /* espace pour l'icône de recherche */
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
}

/* Effet au focus */
#jobSearch:focus {
    border-color: #007BFF; /* couleur bleue au focus */
    box-shadow: 0 0 10px rgba(0,123,255,0.3);
}

/* Placeholder stylé */
#jobSearch::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Optionnel : ajout d’une icône de recherche */
.search-bar::after {
    content: "\1F50D"; /* Unicode loupe 🔍 */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #007BFF;
    pointer-events: none;
}

