/* LUXE FREELANCE - Projects Modern Styles */

/* Variables CSS pour les projets */
:root {
    --projects-primary: #4caf50;
    --projects-secondary: #000000;
    --projects-accent: #10b981;
    --projects-warning: #f59e0b;
    --projects-danger: #ef4444;
    --projects-dark: #1f2937;
    --projects-light: #f8fafc;
    --projects-gradient: linear-gradient(135deg, var(--projects-primary) 0%, var(--projects-secondary) 100%);
    --projects-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --projects-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header moderne pour les projets */
.projects-header,
.jobs-header-section,
.job-detail-header-section {
    background: var(--projects-gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    margin-bottom: 60px;
}

.projects-header::before,
.jobs-header-section::before,
.job-detail-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M30 0L60 30L30 60L0 30L30 0Z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px 60px;
    opacity: 0.3;
}

.projects-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.projects-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Section filtres */
.filters-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--projects-shadow);
    margin-bottom: 40px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--projects-dark);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.filter-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--projects-transition);
    background: white;
}

.filter-input:focus {
    outline: none;
    border-color: var(--projects-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--projects-transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--projects-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-btn {
    padding: 12px 24px;
    background: var(--projects-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--projects-transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Cartes d'offres d'emploi modernes */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.job-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--projects-transition);
    border: 1px solid #f3f4f6;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

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

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--projects-shadow);
    border-color: var(--projects-accent);
}

.job-card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.job-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--projects-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.company-info h6 {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.company-name {
    font-weight: 600;
    color: var(--projects-dark);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--projects-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.job-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.job-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--projects-accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.location-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--projects-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.job-budget {
    font-size: 1rem;
    font-weight: 600;
    color: var(--projects-dark);
    margin-bottom: 16px;
}

.job-footer {
    padding: 16px 24px;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-date {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-action-btn {
    padding: 8px 16px;
    background: var(--projects-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--projects-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

/* Pagination moderne */
.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--projects-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--projects-transition);
    font-weight: 500;
    text-decoration: none;
}

.pagination-btn:hover {
    border-color: var(--projects-primary);
    color: var(--projects-primary);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--projects-gradient);
    color: white;
    border-color: transparent;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Page de détail moderne */
.job-detail-header {
    background: var(--projects-gradient);
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    margin-bottom: 60px;
}

.job-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M30 0L60 30L30 60L0 30L30 0Z'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.job-detail-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.job-detail-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.job-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.job-detail-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.job-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.job-info-card h4 {
    color: var(--projects-dark);
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 600;
}

.job-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.job-info-item:last-child {
    border-bottom: none;
}

.job-info-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.job-info-value {
    color: var(--projects-dark);
    font-weight: 600;
    font-size: 0.875rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.skill-tag {
    border: 1px solid var(--projects-primary);
    color: var(--projects-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--projects-transition);
}


.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: var(--projects-transition);
}

.attachment-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: var(--projects-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.application-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.application-card h3 {
    color: var(--projects-dark);
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--projects-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--projects-transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--projects-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--projects-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--projects-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.tips-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.tips-card h4 {
    color: #92400e;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 600;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 8px 0;
    color: #92400e;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tips-list li::before {
    content: '💡';
    flex-shrink: 0;
}

/* Messages flash */
.alert {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--projects-accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--projects-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .projects-header p {
        font-size: 1rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .job-detail-title {
        font-size: 1.75rem;
    }
    
    .job-detail-meta {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .projects-header {
        padding: 60px 0 40px;
    }
    
    .filters-section {
        padding: 20px;
    }
    
    .job-card {
        margin: 0 10px;
    }
    
    .job-detail-section {
        padding: 24px;
    }
    
    .application-card {
        padding: 24px;
    }
}

/* Animations au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* État vide */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--projects-dark);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 24px;
}

/* Nouveaux styles pour la page de liste des offres */

.filter-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
}

/* Nouveaux styles pour la page de détail de l'offre */

.job-detail-card {
    border: none !important;
    border-radius: 12px;
}

.job-detail-card .card-title-section {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--projects-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.job-description-content {
    line-height: 1.8;
    color: #4b5563;
}


 .sticky-top .action-card {
    border-radius: 12px;
    border: 1px solid var(--projects-primary);
    background: var(--projects-light);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item-grid {
    text-align: start;
}

.info-item-grid .icon {
    font-size: 1.5rem;
    color: var(--projects-primary);
    margin-bottom: 0.5rem;
}

.info-item-grid .label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
}

.info-item-grid .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--projects-dark);
}

.application-form-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 1rem;
}

/* Styles pour les nouvelles sections de la page de détail */

.budget-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--projects-primary);
    margin-bottom: 0.5rem;
}

.budget-display .amount {
    font-size: 1.5rem;
    margin-right: 0.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}



.info-icon {
    width: 40px;
    height: 40px;
    opacity: 0.6;
    background: var(--projects-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-content h6 {
    margin-bottom: 0.25rem;
    color: var(--projects-dark);
    font-weight: 600;
}

.info-content p {
    margin-bottom: 0;
    color: #6b7280;
}

.deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--projects-primary);
    transition: all 0.3s ease;
}

.deliverable-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.application-form .form-label {
    font-weight: 600;
    color: var(--projects-dark);
    margin-bottom: 0.5rem;
}

.application-form .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.application-form .form-control:focus {
    border-color: var(--projects-primary);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.application-form .input-group-text {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Style pour le logo de l'entreprise dans le banner */
.company-logo-container img {
    border-radius: 10%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Style pour le logo dans la colonne latérale */
.sticky-top .company-logo-container img {
    border-radius: 12px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--projects-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--projects-transition);
}

.sticky-top .company-logo-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Style pour la liste d'informations ligne par ligne */
.info-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-line {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}



.info-label {
    font-weight: 600;
   color: var(--projects-dark);
    font-size: 0.9rem;
}

.info-value {
    font-weight: normal;
    font-size: 0.9rem;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .budget-display {
        font-size: 1.5rem;
    }
    
    .budget-display .amount {
        font-size: 1.2rem;
    }
    
  
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .company-logo-container img {
        width: 60px;
        height: 60px;
    }
    
    .sticky-top .company-logo-container img {
        width: 80px;
        height: 80px;
    }
    

}

/* Styles supplémentaires pour un design moderne */

/* Amélioration des cartes */
.job-detail-card {
    transition: var(--projects-transition);
    border: 1px solid #e5e7eb;
}


/* Amélioration des titres de section */
.card-title-section {
    position: relative;
    padding-left: 1rem;
}

.card-title-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--projects-primary);
    border-radius: 2px;
}

/* Amélioration des animations */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Styles pour les boutons modernes */
.btn-primary {
    background: var(--projects-accent);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--projects-transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}


/* Styles pour les alertes modernes */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-warning {
    display: flex;
    flex-wrap: wrap ; 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .budget-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .budget-display p {
        margin-bottom: 0;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .info-line {
        padding: 0.5rem 0.75rem;
    }
    
    .info-label,
    .info-value {
        font-size: 0.85rem;
    }
}
