/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a5490;
    --terra-cotta: #C85A3C;
    --sand-beige: #F4E8D8;
    --dark-gray: #2C3E50;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;
    --text-primary: #2C3E50;
    --text-secondary: #6C757D;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-blue);
}

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

.hero::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 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26,84,144,0.2) 100%);
}

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

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

/* Search Box */
.search-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 25px;
    background: var(--white);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    color: var(--text-primary);
}

.search-btn {
    background: var(--terra-cotta);
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: #b34b31;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200,90,60,0.3);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tag {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    background: var(--sand-beige);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Jobs Section */
.jobs-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title-center {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.see-all-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.see-all-link:hover {
    color: var(--terra-cotta);
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.job-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.job-type {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-type.cdd {
    background: #FEF3C7;
    color: #92400E;
}

.job-type.cdi {
    background: #D1FAE5;
    color: #065F46;
}

.job-type.stage {
    background: #DBEAFE;
    color: #1E40AF;
}

.job-type.alternance {
    background: #E9D5FF;
    color: #6B21A8;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.job-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.job-location {
    font-size: 14px;
    color: var(--text-secondary);
}

.job-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.job-apply-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.job-apply-btn:hover {
    background: #15447a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,84,144,0.3);
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.why-card {
    text-align: center;
    padding: 30px;
}

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.why-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--primary-blue);
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-text {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.newsletter-btn {
    background: var(--terra-cotta);
    color: var(--white);
    border: none;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #b34b31;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-text {
    font-size: 14px;
    color: #B0B7C3;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #B0B7C3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    color: #B0B7C3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #B0B7C3;
    font-size: 14px;
}

/* CTA */
.cta-center {
    text-align: center;
    margin-top: 50px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #15447a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26,84,144,0.3);
}

/* Page Header */
.page-header {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Jobs Listing */
.jobs-listing {
    padding: 60px 0;
}

.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #E5E7EB;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.filter-checkbox input {
    margin-right: 10px;
    cursor: pointer;
}

.count {
    color: var(--text-secondary);
    font-size: 13px;
    margin-left: auto;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-reset {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.filter-reset:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Filter Scrollable */
.filter-scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-scrollable::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.filter-scrollable::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 3px;
}

.filter-scrollable::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

/* Period hierarchy */
.filter-main-period {
    margin-top: 12px;
}

.filter-main-period span {
    color: var(--primary-blue);
}

.filter-sub-period {
    margin-left: 8px;
}

.filter-subsub-period {
    margin-left: 16px;
    font-size: 13px;
}

.filter-subsub-period span {
    color: var(--text-secondary);
}

/* Jobs Main */
.jobs-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-box-small {
    flex: 1;
    max-width: 400px;
}

.search-box-small input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.sort-select {
    padding: 12px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-item {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.job-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

.job-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.job-item-company {
    font-size: 14px;
    color: var(--text-secondary);
}

.job-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-item-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--sand-beige);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.job-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #E5E7EB;
}

.job-item-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-btn {
    background: transparent;
    border: 1px solid #E5E7EB;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    background: transparent;
    border: 1px solid #E5E7EB;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 968px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .jobs-controls {
        flex-direction: column;
    }
    
    .search-box-small {
        max-width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
