:root {
    --teal: #009CB5;
    --navy: #1B2A4A;
    --orange: #E85D2C;
    --green: #00A88E;
    --light-bg: #F5F7FA;
    --white: #FFFFFF;
    --text-color: #1B2A4A;
    --border-color: #E1E4E8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header & Navigation */
.main-header {
    background-color: var(--navy);
    color: var(--white);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--teal);
    opacity: 1;
}

/* Page Sections */
.page-section {
    padding: 3rem 0;
}

h1, h2, h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.hero {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 3rem;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.25rem;
}

.info-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

/* Calendar & Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 4px solid var(--teal);
    border-radius: 50%;
}

.timeline-date {
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-teal { background: var(--teal); color: var(--white); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-orange { background: var(--orange); color: var(--white); }
.badge-green { background: var(--green); color: var(--white); }

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Candidate Cards */
.candidate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.candidate-grade {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 42, 74, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--navy);
}

.modal-header {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* Tabs */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 1rem 1.75rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    position: relative;
    transition: all 0.2s;
    white-space: nowrap;
    opacity: 0.7;
    flex: 1 1 auto;
    min-width: fit-content;
}

.tab-btn:hover {
    opacity: 1;
    background: var(--light-bg);
}

.tab-btn.active {
    color: var(--teal);
    opacity: 1;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
}

/* Responsive tabs pour mobile */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }
    
    .tab-btn {
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
        width: 100%;
    }
    
    .tab-btn.active {
        background: var(--light-bg);
        border-left: 4px solid var(--teal);
    }
    
    .tab-btn.active::after {
        display: none;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h3 {
    border-left: 4px solid var(--teal);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.resume-section p,
.resume-section ul,
.resume-section ol {
    text-align: justify;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.resume-section ul,
.resume-section ol {
    padding-left: 2rem;
}

.resume-section li {
    margin-bottom: 0.75rem;
}

.resume-section strong {
    color: var(--navy);
    font-weight: 700;
}

/* Sections avec fond pour plus d'aération */
.content-block {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--teal);
}

.content-block h4 {
    color: var(--teal);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Q&A Blocks */
.qa-block {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--teal);
    border-radius: 0 8px 8px 0;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.qa-block:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.qa-question {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.qa-num {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.qa-answer {
    color: #4a5568;
    padding-left: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.75rem;
    line-height: 1.8;
    text-align: justify;
}

.qa-arrow {
    color: var(--green);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--teal);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--navy);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: var(--navy);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1.25rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal responsive */
    .modal-content {
        padding: 2rem 1.5rem;
        max-height: 95vh;
        width: 98%;
    }
    
    .close-modal {
        top: 1rem;
        right: 1rem;
        font-size: 1.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
    
    /* iframes PDF responsive */
    .resume-section iframe {
        height: 400px !important;
        min-height: 400px;
    }
    
    /* Q&A responsive */
    .qa-block {
        padding: 1.25rem 1.5rem;
    }
    
    .qa-question {
        font-size: 0.95rem;
    }
    
    /* Content blocks responsive */
    .content-block {
        padding: 1.25rem;
    }
    
    .resume-section h3 {
        font-size: 1.1rem;
    }
}

/* Tablette (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 750px;
        padding: 2.5rem;
    }
    
    .resume-section iframe {
        height: 500px !important;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 45%;
    }
}
