/* ===========================================
   ATYPIKIA WIKI - CSS GLOBAL SECTIONS
   Sections communes pour tous les guides Wiki
   ========================================== */

/* Variables CSS communes */
:root {
    --primary-color: #6B7280;
    --secondary-color: #374151;
    --accent-color: #9CA3AF;
    --light-color: #F3F4F6;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
}

/* Section wrapper commune */
.article-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.article-section h2 i {
    color: var(--primary-color);
}

/* Table des matières */
.table-of-contents {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-of-contents h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.toc-item {
    background: linear-gradient(135deg, var(--light-color), #ffffff);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.toc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.15);
}

.toc-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc-item a:hover {
    color: var(--primary-color);
}

.toc-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Section Definition */
.definition-box {
    background: linear-gradient(135deg, var(--light-color), #ffffff);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.definition-box h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.definition-box p {
    color: var(--secondary-color);
    line-height: 1.6;
}

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

.criterion-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.criterion-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.criterion-card i {
    color: var(--primary-color);
}

.criterion-card ul {
    list-style: none;
    padding: 0;
}

.criterion-card li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.criterion-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Historique */
.timeline-clean {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-event {
    position: relative;
    margin: 3rem 0;
    padding: 0 2rem;
    width: 50%;
}

.timeline-event.left {
    left: 0;
    text-align: right;
}

.timeline-event.right {
    left: 50%;
    text-align: left;
}

.event-marker {
    position: absolute;
    top: 0;
    width: 80px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-event.left .event-marker {
    right: -65px;
}

.timeline-event.right .event-marker {
    left: -65px;
}

.event-marker.pioneer { background: #8B5CF6; }
.event-marker.breakthrough { background: #10B981; }
.event-marker.official { background: #3B82F6; }
.event-marker.evolution { background: #F59E0B; }
.event-marker.current { background: #EF4444; }
.event-marker.recent { background: #6366F1; }

.event-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.event-content h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-content i {
    color: var(--primary-color);
}

.event-content p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-tag.pioneer {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.event-tag.breakthrough {
    background: linear-gradient(135deg, #10B981, #059669);
}

.event-tag.official {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.event-tag.evolution {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.event-tag.current {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.event-tag.recent {
    background: linear-gradient(135deg, #6366F1, #5B21B6);
}

.timeline-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Section Personnalités */
.personalities-showcase {
    margin-top: 2rem;
}

.showcase-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-intro p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.personalities-carousel {
    margin: 2rem 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: white;
    height: 600px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 600px;
    overflow-y: auto;
}

.carousel-slide.active {
    display: block;
}

.slide-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.personality-portrait {
    flex: 0 0 300px;
    text-align: center;
}

.portrait-image {
    margin-bottom: 1rem;
}

.portrait-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
}

.portrait-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.portrait-info h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.portrait-info h3 a:hover {
    color: var(--primary-color);
}

.profession {
    color: var(--secondary-color);
    font-style: italic;
    display: block;
    margin-bottom: 1rem;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.personality-story {
    flex: 1;
    padding-left: 2rem;
    overflow-y: auto;
    max-height: 520px;
}

.personality-story h4 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.personality-story p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.personality-story blockquote {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

.success-factors {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.success-factors h5 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.success-factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.success-factors li {
    padding: 0.15rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
    font-size: 0.9rem;
}

.success-factors li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.carousel-navigation {
    margin: 2rem auto 4rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

.carousel-btn.pause {
    background: linear-gradient(135deg, #059669, #047857);
}

.carousel-btn.pause:hover {
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: black;
    transform: scale(1.2);
}

/* Section Symptômes */
.symptoms-tabs {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--light-color);
}

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

.tab-content {
    display: none;
}

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

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.symptom-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.symptom-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symptom-card i {
    color: var(--primary-color);
}

.symptom-card ul {
    list-style: none;
    padding: 0;
}

.symptom-card li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.symptom-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Différences Genre */
.gender-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gender-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.gender-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.gender-card.male h3 i {
    color: #3B82F6;
}

.gender-card.female h3 i {
    color: #EC4899;
}

.characteristics h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.characteristics ul {
    list-style: none;
    padding: 0;
}

.characteristics li {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.characteristics li::before {
    content: "→";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Différences Âge */
.age-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.age-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.age-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.age-card.child h3 i {
    color: #10B981;
}

.age-card.adult h3 i {
    color: #F59E0B;
}

/* Section Diagnostic - Grille intelligente */
.diagnostic-process {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* Adaptation automatique : max 4 par ligne, centrage intelligent */
.diagnostic-process .process-step {
    flex: 1 1 calc(25% - 1.5rem); /* 4 par ligne par défaut */
    min-width: 250px;
    max-width: 300px;
}

/* Si moins de 4 éléments sur la dernière ligne, on les centre */
@supports (selector(:has())) {
    .diagnostic-process:has(.process-step:nth-child(4n+1):last-child) .process-step:nth-child(4n+1):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
    
    .diagnostic-process:has(.process-step:nth-child(4n+2):last-child) .process-step:nth-child(4n+1):nth-last-child(2),
    .diagnostic-process:has(.process-step:nth-child(4n+2):last-child) .process-step:nth-child(4n+2):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
    
    .diagnostic-process:has(.process-step:nth-child(4n+3):last-child) .process-step:nth-child(4n+1):nth-last-child(3),
    .diagnostic-process:has(.process-step:nth-child(4n+3):last-child) .process-step:nth-child(4n+2):nth-last-child(2),
    .diagnostic-process:has(.process-step:nth-child(4n+3):last-child) .process-step:nth-child(4n+3):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
}

.process-step {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-content h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Section Comorbidités - Grille intelligente */
.comorbidities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

/* Adaptation automatique : max 4 par ligne, centrage intelligent */
.comorbidities-grid .comorbidity-card {
    flex: 1 1 calc(25% - 1.5rem); /* 4 par ligne par défaut */
    min-width: 250px;
    max-width: 300px;
}

/* Si moins de 4 éléments sur la dernière ligne, on les centre */
@supports (selector(:has())) {
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+1):last-child) .comorbidity-card:nth-child(4n+1):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
    
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+2):last-child) .comorbidity-card:nth-child(4n+1):nth-last-child(2),
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+2):last-child) .comorbidity-card:nth-child(4n+2):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
    
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+3):last-child) .comorbidity-card:nth-child(4n+1):nth-last-child(3),
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+3):last-child) .comorbidity-card:nth-child(4n+2):nth-last-child(2),
    .comorbidities-grid:has(.comorbidity-card:nth-child(4n+3):last-child) .comorbidity-card:nth-child(4n+3):last-child {
        margin: 0 auto;
        flex: 0 1 300px;
    }
}

.comorbidity-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.comorbidity-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.comorbidity-card i {
    color: var(--primary-color);
}

.comorbidity-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Section Experts/Chercheurs */
.researchers-section {
    margin-top: 2rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.researchers-grid, .experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.researcher-card, .expert-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.researcher-card.french-expert {
    border: 2px solid #0055A4;
}

.researcher-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.expert-icon-wrapper {
    position: relative;
    display: inline-block;
}

.expert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expert-flag {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.researcher-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.researcher-info h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.researcher-info h4 a:hover {
    color: var(--primary-color);
}

.researcher-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.researcher-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.researcher-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.expertise-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.researcher-bio {
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Section Accompagnement */
.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.support-card h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.support-card.medical i { color: #EF4444; }
.support-card.psychological i { color: #8B5CF6; }
.support-card.social i { color: #10B981; }
.support-card.educational i { color: #F59E0B; }

.support-card ul {
    list-style: none;
    padding: 0;
}

.support-card li {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.support-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Section Consultation */
.consultation-info {
    margin-top: 2rem;
}

.info-box {
    background: linear-gradient(135deg, var(--light-color), #ffffff);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-box h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.info-box i {
    color: var(--primary-color);
}

.info-box p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.specialist-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.specialist-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.specialist-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.specialist-card i {
    color: var(--primary-color);
}

.specialist-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.consultation-actions, .consultation-cta {
    margin-top: 3rem;
}

.consultation-actions h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.consultation-actions h3 i {
    color: var(--primary-color);
}

.appointment-options, .appointment-booking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.appointment-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card-header h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.3rem;
}

.appointment-card p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--light-color), #ffffff);
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.consultation-tips {
    margin-top: 3rem;
}

.consultation-tips h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.consultation-tips h3 i {
    color: var(--primary-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: linear-gradient(135deg, #ffffff, var(--light-color));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.tip-card i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tip-card li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive design pour toutes les sections */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-event {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 80px;
    }
    
    .timeline-event.right {
        left: 0;
    }
    
    .timeline-event .event-marker {
        left: 0 !important;
        right: auto !important;
    }
    
    .carousel-container {
        height: 700px;
    }
    
    .slide-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .personality-portrait {
        flex: none;
    }
    
    .personality-story {
        padding-left: 0;
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-top: 1rem;
    }
    
    .carousel-navigation {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }
    
    .researchers-grid, .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-flag {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

/* ===========================================
   BIBLIOGRAPHIE ET CITATION BOXES (GEO)
   ========================================== */

.bibliography {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--light-color);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.bibliography h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.bibliography h2 i {
    color: var(--primary-color);
}

.citation-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.citation-box i.fa-quote-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.citation-box .stat {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.citation-box cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: block;
}

.references {
    list-style: decimal;
    padding-left: 1.5rem;
}

.references li {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.references li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.references li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

[data-theme="dark"] .bibliography {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-theme="dark"] .citation-box {
    background: var(--gray-900);
    color: var(--gray-100);
}

[data-theme="dark"] .citation-box .stat {
    color: var(--gray-100);
}