/* BASE & TYPOGRAPHY */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1F2937;
    background-color: #F8FAF9;
}

/* UTILITIES */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* CUSTOM SCROLLBAR FOR NAV (To fix usability issue) */
.nav-scroll {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 #F1F5F9;
}
.nav-scroll::-webkit-scrollbar {
    height: 6px;
}
.nav-scroll::-webkit-scrollbar-track {
    background: #F1F5F9;
}
.nav-scroll::-webkit-scrollbar-thumb {
    background-color: #CBD5E1;
    border-radius: 3px;
}
.nav-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #94A3B8;
}

/* BUTTONS */
.btn-premium {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-premium:hover {
    filter: brightness(110%);
}

.tab-button.active {
    color: #1D4ED8;
    border-bottom-color: #1D4ED8;
}

/* SECTIONS */
.content-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    
    /* --- CORRECTION DU SCROLL --- */
    /* Crée une marge invisible au-dessus de la section quand on clique sur un lien */
    scroll-margin-top: 120px; 
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* CARDS & STATS */
.stat-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 140px;
    border: 1px solid #F3F4F6;
}

/* REVIEWS CARD */
.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.review-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}
.review-footer {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.75rem;
    border-top: 1px solid #F3F4F6;
}

/* HIDDEN CONTENT (Reviews & Interview) */
.hidden-review, .hidden-interview {
    display: none !important;
}

/* FICHES / RESUMES */
.resume-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    background: white;
    transition: all 0.2s;
}
.resume-filter-btn:hover {
    border-color: #BFDBFE;
    background-color: #F9FAFB;
}
.resume-filter-btn.active {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}
.sheet-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #F3F4F6;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sheet-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sheet-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ACCORDION */
.accordion-item {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #F3F4F6;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1F2937;
    text-align: left;
    transition: background-color 0.2s;
}
.accordion-header:hover {
    background-color: #F9FAFB;
}
.accordion-arrow {
    transition: transform 0.3s;
    color: #3B82F6;
}
.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    color: #4B5563;
    line-height: 1.6;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-item.active .accordion-content {
    max-height: 500px; /* Arbitrary large value */
    padding-bottom: 1.25rem;
}

/* DYNAMIC BUTTONS (Examens) */
.dynamic-btn {
    width: 100%;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}
.dynamic-btn:hover {
    border-color: #3B82F6;
    color: #2563EB;
    background-color: #EFF6FF;
}

.unavailable-exam {
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #F3F4F6;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-style: italic;
    border: 1px dashed #D1D5DB;
}

/* FORM SUCCESS */
#form-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

/* MATH KATEX FIX */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0;
}