
/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #ddad00;
    --navy: #1e284b;
    --navy-dark: #222e50;
    --secondary: #232d53;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--navy);
    color: #e2e8f0;
}

h1, h2, h3, h4, h5, h6, .font-montserrat { font-family: 'Montserrat', sans-serif; }

/* Scrollbar Custom */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

::selection { background: var(--gold); color: var(--navy); }

/* --- ANIMATIONS --- */
@keyframes pulse-slow {
    0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

.animate-pulse-slow {
    animation: pulse-slow 4s infinite ease-in-out;
}

/* --- SECTION TRANSITIONS (SVG) --- */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: var(--secondary);
}

.custom-shape-divider-bottom.fill-dark .shape-fill {
    fill: var(--navy);
}

.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-top .shape-fill {
    fill: var(--secondary);
}

/* --- Article Elements --- */
.reading-progress-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: var(--gold); z-index: 9999; transition: width 0.1s;
}

/* TOC: Hide Scrollbar but allow scroll */
.toc-sidebar {
    position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}
.toc-sidebar::-webkit-scrollbar { display: none; } /* Chrome */

.toc-link {
    display: block; padding: 8px 0 8px 16px; color: #94a3b8; font-size: 0.85rem;
    border-left: 2px solid #334155; transition: all 0.2s; text-decoration: none;
}
.toc-link:hover, .toc-link.active { color: var(--gold); border-left-color: var(--gold); }
.toc-link.active { font-weight: 600; color: white; }
.toc-link.toc-h3 { padding-left: 32px; font-size: 0.8rem; }

/* Rich Text */
.article-content h2 { color: white; font-weight: 700; font-size: 1.8rem; margin: 3rem 0 1.5rem; }
.article-content h3 { color: #e2e8f0; font-weight: 600; font-size: 1.4rem; margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #cbd5e1; font-size: 1.1rem; }
.article-content ul { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.article-content ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; color: #cbd5e1; }
.article-content ul li::before { content: '•'; color: var(--gold); font-weight: bold; font-size: 1.2em; position: absolute; left: 0; top: -2px; }

/* Tables Fix */
.article-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; background: var(--secondary); border-radius: 4px; overflow: hidden; }
.article-content th { background: var(--navy-dark); color: var(--gold); padding: 12px; text-align: left; border-bottom: 2px solid var(--gold); font-weight: 700; }
.article-content td { padding: 12px; border-bottom: 1px solid #374151; color: #e2e8f0; }
.article-content tr:last-child td { border-bottom: none; }

/* --- Netflix Slider --- */
.netflix-slider {
    display: flex; overflow-x: auto; gap: 2rem; padding-bottom: 2rem;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.netflix-slider::-webkit-scrollbar { display: none; }
.netflix-item { flex: 0 0 350px; scroll-snap-align: start; }

/* --- Parcours Timeline --- */
.parcours {
    padding: 100px 5%;
    background: var(--navy);
    position: relative;
    /* Subtil background texturé */
    background-image:
        radial-gradient(at 100% 0%, rgba(221, 173, 0, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(4, 187, 224, 0.05) 0px, transparent 50%);
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; position: relative; z-index: 10; }
.section-tag {
    display: inline-block; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(221, 173, 0, 0.3);
    color: var(--gold); padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; font-family: 'Poppins', sans-serif;
}
.section-title { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; margin-bottom: 1rem; }
.timeline { max-width: 1000px; margin: 0 auto; position: relative; z-index: 10; }
.timeline::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--gold), #04bbe0, #b834a0, #b2c404);
}
.timeline-item { display: flex; align-items: center; margin-bottom: 3rem; position: relative; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
    width: 45%; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 2rem; transition: all 0.4s;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}
.timeline-content:hover { background: rgba(255, 255, 255, 0.06); transform: scale(1.02); border-color: var(--gold); }
.timeline-dot {
    position: absolute; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; background: var(--gold);
    border-radius: 50%; border: 4px solid var(--navy); z-index: 2;
    box-shadow: 0 0 10px rgba(221, 173, 0, 0.5);
}
.timeline-step { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.timeline-content h3 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 0.8rem; }
.timeline-content p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

@media (max-width: 992px) {
    .timeline::before { left: 30px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; justify-content: flex-start; padding-left: 80px; }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 30px; }
}

/* Range Input Gold */
input[type=range].range-gold { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range].range-gold::-webkit-slider-thumb {
    -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--gold); cursor: pointer; margin-top: -6px;
}
input[type=range].range-gold::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #4b5563; border-radius: 2px;
}
