/* assets/css/styles.css */

/* Styles généraux */
body {
    background-color: #f4f6f9;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    padding-top: 70px; /* Pour éviter que le contenu ne soit caché derrière la navbar fixe */
}

/* Navbar */
.navbar .navbar-brand img.logo {
    height: 50px;
    transition: height 0.3s;
}

.navbar .navbar-brand img.logo:hover {
    height: 45px;
}

.nav-link {
    color: #ffffff !important;
    margin-left: 15px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #3F8EFC !important;
}

/* Hero Section */
.hero {
    background: url('https://source.unsplash.com/1600x900/?career,office') no-repeat center center;
    background-size: cover;
    height: 60vh; /* Ajustez la hauteur selon vos besoins */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 42, 56, 0.5); /* Ajustez l'opacité selon vos préférences */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.1rem;
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content .btn {
    background-color: #3F8EFC;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    padding: 12px 25px;
    font-size: 1rem;
}

.hero-content .btn:hover {
    background-color: #1E2A38;
    transform: scale(1.05);
}

/* Animations Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar */
.search-bar {
    max-width: 900px;
    margin: -30px auto 50px;
    z-index: 2;
    position: relative;
}

.search-bar .form-control,
.search-bar .form-select {
    height: 50px;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.search-bar .form-control:focus,
.search-bar .form-select:focus {
    box-shadow: 0 0 0 3px rgba(63, 142, 252, 0.5);
}

.search-bar .btn {
    height: 50px;
    border-radius: 0.5rem;
    background-color: #3F8EFC;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 0.9rem;
}

.search-bar .btn:hover {
    background-color: #1E2A38;
    transform: scale(1.05);
}

/* Categories */
.categories {
    margin: 60px 0;
}

.categories .btn {
    margin: 0.5rem;
    font-weight: 500;
    border-color: #3F8EFC;
    color: #1E2A38;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.categories .btn i {
    margin-right: 5px;
}

.categories .btn:hover {
    background-color: #3F8EFC;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Job Cards */
.job-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1E2A38;
}

.card-text strong {
    color: #3F8EFC;
}

.card-text {
    font-size: 0.95rem;
}

/* Boutons */
.btn-primary {
    background-color: #3F8EFC;
    border: none;
}

.btn-primary:hover {
    background-color: #1E2A38;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Footer */
.footer {
    background-color: #1E2A38;
    color: #FFFFFF;
    padding: 40px 0;
}

.footer a {
    color: #FFFFFF;
    transition: color 0.3s;
}

.footer a:hover {
    color: #3F8EFC;
}

/* Publicités */
.ads-container {
    margin: 40px 0;
}

.ads-container ins.adsbygoogle {
    display: block;
    text-align: center;
}

/* Job Details */
.job-details {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.job-details h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1E2A38;
}

.job-details p {
    font-size: 1rem;
    color: #333333;
}

.job-details .btn-postuler {
    background-color: #3F8EFC;
    color: #FFFFFF;
    border: none;
    transition: background-color 0.3s, transform 0.3s;
    padding: 10px 20px;
    font-size: 1rem;
}

.job-details .btn-postuler:hover {
    background-color: #1E2A38;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .search-bar {
        margin: -20px auto 30px;
    }
}
