/* LUXE FREELANCE - Main Stylesheet */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #333;
    --background-light: #f9f9f9;
    --text-color: #333;
    --text-light: #777;
    --border-color: #ddd;
    --white: #fff;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    /*background-color: var(--background-light);*/
}

p {
    font-size: 17px;
}
/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.logo-link{
    text-decoration: none !important;
    color: black !important;
}

.login-section {
    display: flex;
    min-width: 300px;
}

.login-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    width: 200px; /* Fixe la largeur pour garantir l'alignement */
}

.form-group label {
    font-size: 12px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.form-control {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    width: 100%; /* Utilise toute la largeur du parent */
    height: 38px; /* Hauteur fixe pour aligner les inputs */
    box-sizing: border-box;
}

.forgot-link {
    font-size: 10px;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-top: 2px;
}

.login-form .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    height: 40px;
    margin-top: 25px;
}

.btn-success {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #3e8e41;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #3e8e41;
}

.btn-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #222;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    background-color: var(--white);
    margin-bottom: 30px;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
    align-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    /*background-color: #eee;*/
    min-height: 300px;
    text-align: center;
}

.hero-image img{
    width: 500px;
    height: 350px;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 50px 50px;
}

.cta-container{
    display: flex;
    gap: 30px;
    width: 100%;
}

.cta-card {
    flex: 1;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-card.candidat{
    display: flex;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.cta-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.cta-card p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.cta-card button {
    margin-top: auto;
    padding: 15px;
    font-size: 16px;
}

/* Freelancers Section */
.freelancers-section {
    padding: 50px;
    background-color: var(--white);
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.freelancer-carousel {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    position: relative;
    padding: 10px 0;
}

.freelancer-card {
    flex: 0 0 auto;
    width: calc(25% - 15px);
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.freelancer-card:hover {
    transform: translateY(-5px);
}

.freelancer-image {
    height: 200px;
    background-color: #eee;
}

.freelancer-image img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.freelancer-card h4 {
    padding: 15px;
    text-align: center;
}

.freelancer-card button {
    display: block;
    width: 80%;
    margin: 0 auto 15px;
    background: var(--text-color);
    padding: 5px;
    color: white !important;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-control {
    background: none;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* Brands Section */
.brands-section {
    padding: 50px;
    background-color: var(--background-light);
    margin-bottom: 30px;
}

.brands-container {
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*justify-content: center;*/
    /*gap: 30px;*/
    /*margin-top: 30px;*/
}

.brands-div{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin: 0 auto;
}

.brand-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.brand-logo:hover {
    background-color: rgba(169, 169, 169, 0.52);

    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Categories Section */
.categories-section {
    padding: 50px;
    background-color: var(--white);
    margin-bottom: 30px;
}

.categories-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.category-column {
    flex: 1;
}

.category-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.category-item:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 0;
}

.slide-in-left {
    transform: translateX(-50px);
    opacity: 0;
}

.slide-in-right {
    transform: translateX(50px);
    opacity: 0;
}

/* Styles modernes pour les cartes d'offres d'emploi */

.row.g-4 {
    padding:10px;
}

.recent-jobs-section {
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.recent-jobs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.recent-jobs-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.recent-jobs-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

.job-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #ffffff;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.job-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.job-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 82%;
}

.job-card .card-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.job-card .card-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.job-card .img-profile-container {
    border: 1px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 65px ;
    height: 65px ;
    padding: 3px;
}


.job-card .img-profile-container img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card .rounded-pill {
    font-weight: 600;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #dcf1e1, #ccecd4);
    color: #155724;
    border: 1px solid #c3e6cb;
    transition: all 0.3s ease;
    display: inline-block;
}


.job-card .ms-2 {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.job-card .ms-2 i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

.job-card .my-2 {
    font-size: 0.9rem;
    color: #495057;
}

.job-card .my-2 strong {
    color: #000000;
    font-weight: 700;
}


.job-card .text-muted {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.job-card .text-muted i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.job-card .btn-outline-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-card .btn-outline-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.job-card .btn-outline-secondary:hover i {
    transform: translateX(2px);
    transition: transform 0.3s ease;
}

/* Animation d'apparition */
.recent-jobs-section .animate-on-scroll {
    animation: slideInUp 0.8s ease-out forwards;
}

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

/* Responsive Design */
@media (max-width: 1399.98px) {
    .recent-jobs-section {
        padding: 50px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1199.98px) {
    .recent-jobs-section .section-title {
        font-size: 2rem;
    }
    
    .job-card .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 991.98px) {
    .recent-jobs-section {
        padding: 40px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.8rem;
    }
    
    .job-card {
        margin-bottom: 1.5rem;
    }
    
    .job-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .recent-jobs-section {
        padding: 30px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .job-card .card-title {
        font-size: 1rem;
    }
    
    .job-card .card-text {
        font-size: 0.9rem;
    }
    
    .job-card .img-profile-container {
        width: 60px ;
        height: 60px ;
        
    }
}

@media (max-width: 575.98px) {
    .recent-jobs-section {
        padding: 20px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.4rem;
    }
    
    .job-card .card-body {
        padding: 1rem;
    }
    
    .job-card .img-profile-container {
        width: 50px !important;
        height: 50px !important;
    }
    
    .job-card .card-title {
        font-size: 0.95rem;
    }
    
    .job-card .btn-outline-secondary {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 1399.98px) {
    .recent-jobs-section {
        padding: 60px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1199.98px) {
    .recent-jobs-section .section-title {
        font-size: 2rem;
    }
    
    .job-card .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .recent-jobs-section {
        padding: 50px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.8rem;
    }
    
    .recent-jobs-section .lead {
        font-size: 1.1rem;
    }
    
    .job-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .recent-jobs-section {
        padding: 40px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.6rem;
    }
    
    .recent-jobs-section .lead {
        font-size: 1rem;
    }
    
    .job-card .card-title {
        font-size: 1rem;
    }
    
    .job-card .card-text {
        font-size: 0.9rem;
    }
    
    .job-card .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .recent-jobs-section {
        padding: 30px 0;
    }
    
    .recent-jobs-section .section-title {
        font-size: 1.4rem;
    }
    
    .job-card .card-header {
        padding: 1rem;
    }
    
    .job-card .card-body {
        padding: 1rem;
    }
    
    .job-card .avatar-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .job-card .company-info h6 {
        font-size: 0.9rem;
    }
    
    .job-card .card-title {
        font-size: 0.95rem;
    }
    
    .job-card .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero, .cta-section, .categories-container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .freelancer-card {
        width: calc(33.33% - 15px);
    }

    header {
        padding: 20px 30px;
    }

    .login-form {
        gap: 10px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        align-items: stretch;
    }

    .logo {
        margin-bottom: 20px;
        text-align: center;
    }

    .login-section {
        width: 100%;
    }

    .login-form {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-group {
        width: calc(50% - 5px); /* Deux colonnes avec gap de 10px */
    }

    .login-form button[type="submit"] {
        margin-top: 10px;
        width: 100%;
        max-width: 300px;
    }

    .form-control {
        width: 100%;
    }

    .cta-section, .freelancer-carousel {
        padding: 0 20px;
    }

    .freelancer-card {
        width: calc(50% - 15px);
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 576px) {
    .freelancer-card {
        width: 100%;
    }

    .brands-container {
        gap: 15px;
    }

    .brand-logo {
        width: 80px;
        height: 60px;
        font-size: 12px;
    }

    .form-group {
        width: 100%; /* En mobile, chaque champ prend toute la largeur */
    }

    .login-form {
        gap: 8px;
    }

    header {
        padding: 15px;
    }

    .hero, .cta-section, .brands-section, .categories-section {
        padding: 30px 15px;
    }
}
