/* ===== VARIABLES MATHÉMATIQUES ===== */
var {
  font-style: italic;
  font-family: "STIX Two Text", "Cambria Math", "Latin Modern Math", Georgia, serif;
  font-size: 1.05em;
  font-weight: inherit;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

.subtitle {
    font-size: 18px;
    color: #86868b;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 20px 20px 120px;
}

header {
    margin-bottom: 40px;
}

/* ===== LOGIN & AUTH ===== */
.login-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 60px;
}

.login-header h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 40px;
}

.login-footer {
    position: fixed;
    bottom: 12px;
    right: 16px;
    text-align: right;
    color: #86868b;
    font-size: 12px;
    z-index: 10;
}

.error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== INPUT FIELDS ===== */
.input-container {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    background: #fff;
    border: 1.5px solid #d1d1d1;
    border-radius: 12px;
    padding: 20px 65px 20px 20px;
    transition: all 0.3s;
}

.input-wrapper.focused {
    border-color: #0071e3;
    border-width: 2px;
    padding: 19px 64px 19px 19px;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 17px;
    color: #000;
    background: transparent;
    padding-top: 8px;
}

.input-wrapper input::placeholder {
    color: transparent;
}

.input-wrapper label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
    font-size: 17px;
    pointer-events: none;
    transition: all 0.3s;
    background: #fff;
    padding: 0 4px;
}

.input-wrapper.focused label,
.input-wrapper.has-value label {
    top: 14px;
    font-size: 13px;
    font-weight: 500;
}

.submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 2px solid #d1d1d1;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #f5f5f7;
}

.arrow::before {
    content: '→';
    font-size: 20px;
    color: #666;
    font-weight: bold;
}

.helper-text {
    margin-top: 16px;
    font-size: 14px;
    color: #86868b;
    text-align: center;
}

.helper-text a {
    color: #0071e3;
}

/* ===== STATS CARDS ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: #86868b;
}

/* ===== MOTIVATION CARD ===== */
.motivation {
    margin: 40px 0;
}

.motivation-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(68, 160, 141, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.motivation-card h3 {
    margin-bottom: 12px;
}

.quote {
    font-size: 20px;
    font-style: italic;
    margin: 16px 0;
}

.author {
    color: #86868b;
    font-size: 14px;
}

/* ===== SUBJECTS GRID ===== */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.subject-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
}

.subject-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    border-color: var(--color);
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.subject-header .icon {
    font-size: 32px;
}

/* ===== PROGRESS BARS ===== */
.progress {
    margin: 16px 0;
}

.progress span {
    font-size: 14px;
    color: #86868b;
}

.progress .bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress .bar div {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    transition: width 0.3s;
}

.progress-large {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-large div {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    transition: width 0.3s;
}

.progress-label {
    color: #86868b;
    font-size: 14px;
}

/* ===== EXERCISES LIST ===== */
.exercises-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.exercise-link {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.exercise-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.exercises-list-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.exercise-card-detail {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    cursor: pointer;
}

.exercise-card-detail:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.exercise-completed {
    border-color: rgba(0, 208, 132, 0.4);
}

/* ===== EXERCISE PAGE ===== */
.exercise-page {
    padding-bottom: 20px;
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.back {
    color: #fff;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.2s;
}

.back:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== SUBJECT SWITCHER BAR ===== */
.subject-switcher {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 0 0.75rem;
    margin-bottom: 0.5rem;
}
.subject-switcher::-webkit-scrollbar { display: none; }
.subject-switcher-btn {
    flex-shrink: 0;
    padding: 0.38rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    color: #aaa;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.15s;
    white-space: nowrap;
}
.subject-switcher-btn:hover {
    color: var(--sw-color);
    border-color: var(--sw-color);
    background: color-mix(in srgb, var(--sw-color) 12%, transparent);
}
.subject-switcher-btn.active {
    color: var(--sw-color);
    border-color: var(--sw-color);
    background: color-mix(in srgb, var(--sw-color) 18%, transparent);
}

.timer {
    font-size: 18px;
    font-weight: 600;
}

.ex-title {
    margin-bottom: 32px;
}

.tags {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
}

.completed-banner {
    background: rgba(0, 208, 132, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    color: #00D084;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* ===== ÉNONCÉ COMMUN ===== */
.exercise-statement {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

.exercise-statement h2 {
    color: #4ECDC4;
    font-size: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.exercise-statement h2::before {
    content: '📋';
    font-size: 28px;
}

.exercise-statement p {
    font-size: 17px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 0;
}

/* ===== QUESTIONS ===== */
.questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.question {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.q-num {
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    color: #fff;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.q-text {
    font-size: 16px;
    margin-bottom: 16px;
}

.show-answer {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.show-answer:hover {
    background: rgba(255, 255, 255, 0.05);
}

.answer {
    margin-top: 16px;
    padding: 16px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
}

.answer-section {
    margin-top: 16px;
}

.btn-report {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: rgba(255, 59, 48, 0.7);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-report:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.5);
}

.report-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-popup {
    background: #1c1c1e;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
}

.report-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-popup-header h3 {
    font-size: 17px;
    font-weight: 600;
}

.report-popup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-popup-body label {
    font-size: 14px;
    color: #86868b;
}

.report-popup-body select,
.report-popup-body textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.report-popup-body select option {
    background: #1c1c1e;
}

.btn-report-send {
    margin-top: 6px;
    padding: 10px;
    background: #ff3b30;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-report-send:hover {
    background: #e0342b;
}

.report-confirm {
    text-align: center;
    color: #ff3b30;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 0;
}

/* ===== IMAGES ===== */
.statement-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.statement-img:hover {
    border-color: #FF6B6B;
    transform: scale(1.02);
}

.question-img,
.answer-img {
    width: 300px;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.question-img:hover,
.answer-img:hover {
    border-color: #FF6B6B;
    transform: scale(1.02);
}

/* ===== IMAGE POPUP ===== */
.image-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.popup-controls {
    display: flex;
    gap: 10px;
}

.popup-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s;
}

.popup-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.popup-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.popup-close:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.popup-content {
    width: 90vw;
    height: 80vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupImage {
    width: auto;
    height: auto;
    min-width: min(600px, 85vw);
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: grab;
}

#popupImage:active {
    cursor: grabbing;
}

/* ===== COMPLETION ===== */
.completion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.completion label {
    font-weight: 500;
}

.completion input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    width: 100px;
}

.btn-complete {
    padding: 12px 24px;
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-complete:hover {
    transform: scale(1.05);
}

/* ===== STATS PAGE ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-big {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 3px solid var(--accent, rgba(255,255,255,0.1));
    transition: transform 0.2s, background 0.2s;
}

.stat-big:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-big-icon {
    font-size: 40px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-big h2 {
    font-size: 32px;
    margin-bottom: 2px;
}

.stat-big p {
    color: #86868b;
    font-size: 13px;
}

/* ===== BADGES ===== */
.badges-section {
    margin-bottom: 32px;
}

.badges-section h2 {
    margin-bottom: 16px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.badge-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.badge-card.unlocked {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.badge-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.badge-desc {
    color: #86868b;
    font-size: 11px;
}

/* ===== WEEK SECTION ===== */
.week-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
}

.week-section h2 {
    margin-bottom: 4px;
}

.week-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.week-stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.week-stats span {
    color: #86868b;
    font-size: 13px;
}

.week-stats strong {
    font-size: 26px;
    font-weight: 700;
}

.progress-label {
    color: #86868b;
    font-size: 13px;
    margin-top: 8px;
}

/* ===== SUBJECT STATS ===== */
.subject-stats {
    margin-bottom: 32px;
}

.subject-stats h2 {
    margin-bottom: 20px;
}

.subjects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.subject-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border-top: 3px solid var(--color);
    transition: transform 0.2s;
}

.subject-stat:hover {
    transform: translateY(-2px);
}

.subject-stat h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subject-stat-count {
    color: #86868b;
    font-size: 12px;
}

.stat-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.stat-circle svg {
    width: 100%;
    height: 100%;
}

.stat-circle-progress {
    animation: circleIn 1s ease-out forwards;
    transform-origin: center;
}

@keyframes circleIn {
    from { stroke-dasharray: 0, 100; }
}

/* ===== STATS EMPTY ===== */
.stats-empty {
    text-align: center;
    padding: 48px 20px;
    color: #86868b;
}

.stats-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stats-empty p {
    font-size: 15px;
}

/* ===== STATS SECTIONS ===== */
.stat-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.stat-section h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-section-meta {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 14px;
}

.stacked-bar {
    height: 18px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    gap: 2px;
}

.stacked-bar-seg {
    height: 100%;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
    min-width: 0;
}

.stat-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    overflow: hidden;
    margin: 14px 0 10px;
}

.stat-progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.9s cubic-bezier(.4,0,.2,1);
}

.stat-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.stat-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #86868b;
}

.stat-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-row-label {
    width: 140px;
    flex-shrink: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-row-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-row-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
}

.stat-row-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

.stat-row-count {
    font-size: 12px;
    color: #86868b;
    width: 48px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.qcm-pill {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== ACCORDION ===== */
.accordion-row {
    cursor: pointer;
    user-select: none;
}

.accordion-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.25s ease;
}

.accordion-row.open .accordion-chevron {
    transform: rotate(90deg);
    opacity: 0.7;
}

.accordion-detail {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0 2px 17px;
    border-left: 2px solid rgba(255,255,255,0.08);
    margin-left: 4px;
}

.accordion-row.open + .accordion-detail {
    display: flex;
}

.total-pct-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.total-pct-unit {
    font-size: 18px;
    color: #86868b;
    font-weight: 600;
}

@media (max-width: 600px) {
    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-big {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .stat-big h2 {
        font-size: 24px;
    }
    .stat-row-label {
        width: 110px;
    }
}

/* ===== PROFILE PAGE ===== */
.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h2 {
    margin-bottom: 4px;
}

.profile-info p {
    color: #86868b;
    font-size: 14px;
}

.member {
    font-size: 13px;
}

.btn-logout {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    color: #ff3b30;
}

.btn-admin {
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFB020, #FF6B6B);
    border: 1px solid rgba(255, 176, 32, 0.5);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    margin-left: 12px;
}

/* ===== PROFILE FORM ===== */
.profile-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
}

.profile-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.profile-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-input::placeholder {
    color: #86868b;
}

.profile-btn {
    padding: 14px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-btn:hover {
    transform: scale(1.02);
}

.profile-msg {
    font-size: 13px;
    margin-top: 8px;
    min-height: 20px;
}

.profile-msg.success {
    color: #00D084;
}

.profile-msg.error {
    color: #FF6B6B;
}

/* ===== SUGGESTIONS (ADMIN) ===== */
.suggestions-section {
    margin-bottom: 32px;
}

.suggestions-section h2 {
    margin-bottom: 16px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFB020;
    border-radius: 14px;
    padding: 20px;
    transition: background 0.2s;
}

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

.suggestion-header strong {
    font-size: 14px;
}

.suggestion-date {
    color: #86868b;
    font-size: 12px;
}

.suggestion-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 12px;
}

.suggestion-report {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-left: 4px solid #ff3b30;
}

.suggestion-report .suggestion-text {
    color: #ff3b30;
    font-weight: 600;
}

.suggestion-done {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(46, 204, 113, 0.4);
    border-radius: 8px;
    color: #2ecc71;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-done:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.suggestion-delete {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    color: #ff3b30;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-delete:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
}

/* ===== MANUAL EXERCISES ===== */
.manual-section {
    margin-top: 32px;
}

.manual-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.manual-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.manual-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.manual-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.manual-page {
    color: #86868b;
    font-size: 13px;
}

.manual-info {
    flex: 1;
}

.manual-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.manual-complete {
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-score {
    width: 60px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.manual-btn-done {
    padding: 6px 14px;
    background: linear-gradient(135deg, #4ECDC4, #2BAF9E);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.manual-btn-done:hover {
    transform: scale(1.05);
}

.manual-done {
    border-color: rgba(0, 208, 132, 0.3);
    background: rgba(0, 208, 132, 0.05);
}

.badge-done {
    background: rgba(0, 208, 132, 0.2);
    color: #00D084;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.manual-toggle {
    cursor: pointer;
    transition: opacity 0.2s;
}

.manual-toggle:hover {
    opacity: 0.5;
}

.manual-empty {
    color: #86868b;
    font-size: 14px;
}

/* ===== ADMIN MANUAL ===== */
.admin-manual-section {
    margin-bottom: 32px;
}

.admin-manual-section h2 {
    margin-bottom: 16px;
}

.admin-manual-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-manual-form select,
.admin-manual-form input {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.admin-manual-form select {
    min-width: 180px;
}

.admin-manual-form input {
    flex: 1;
    min-width: 120px;
}

.admin-manual-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ECDC4, #2BAF9E);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-manual-form button:hover {
    transform: scale(1.02);
}

.manual-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manual-admin-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* ===== ADMIN PANEL ===== */

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #86868b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-tab.active {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
    color: #fff;
}

.admin-tab-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.admin-tab.active .admin-tab-badge {
    background: rgba(255, 107, 107, 0.3);
}

.admin-tab-badge-warn {
    background: rgba(255, 176, 32, 0.2);
    color: #FFB020;
}

.light-theme .admin-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #6e6e73;
}

.light-theme .admin-tab:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

.light-theme .admin-tab.active {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.25);
    color: #1d1d1f;
}

/* Form layout: 2 columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .admin-tabs {
        gap: 6px;
    }
    .admin-tab {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Section divider */
.admin-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
}

.admin-section-divider::before,
.admin-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .admin-section-divider::before,
.light-theme .admin-section-divider::after {
    background: rgba(0, 0, 0, 0.1);
}

.admin-section-divider span {
    font-size: 16px;
    font-weight: 700;
    color: #4ECDC4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Question block header with remove button */
.question-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.question-block-header h3 {
    margin-bottom: 0;
}

.question-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.question-remove-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    border-color: #ff3b30;
}

/* Search bar */
.admin-search-bar {
    margin-bottom: 20px;
}

.admin-search-bar input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.admin-search-bar input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-search-bar input::placeholder {
    color: #86868b;
}

.light-theme .admin-search-bar input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .admin-search-bar input:focus {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.admin-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin: 24px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: rgba(255, 107, 107, 0.3);
}

.question-block {
    background: rgba(78, 205, 196, 0.05);
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin: 24px 0;
    position: relative;
}

.question-block h3 {
    color: #4ECDC4;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-block h3::before {
    content: '❓';
    font-size: 24px;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin: 8px 8px 8px 0;
    transition: all 0.2s;
}

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

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin: 8px 8px 8px 0;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.exercises-admin {
    margin-top: 40px;
}

.exercise-admin-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ex-info h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.ex-info p {
    color: #86868b;
    font-size: 14px;
}

.ex-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-edit {
    padding: 10px 20px;
    background: rgba(0, 113, 227, 0.2);
    border: 1px solid rgba(0, 113, 227, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit:hover {
    background: rgba(0, 113, 227, 0.3);
}

.btn-delete {
    padding: 10px 20px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.5);
    border-radius: 8px;
    color: #ff3b30;
    cursor: pointer;
    border: 1px solid rgba(255, 59, 48, 0.5);
    transition: all 0.2s;
}

.btn-delete:hover {
    background: rgba(255, 59, 48, 0.3);
}

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

.ex-header h3 {
    font-size: 18px;
}

.ex-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #86868b;
}

.difficulty-facile {
    color: #00D084;
}

.difficulty-moyen {
    color: #FFB020;
}

.difficulty-difficile {
    color: #FF6B6B;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-top: 40px;
}

.empty-state p {
    color: #86868b;
    margin: 12px 0;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #86868b;
    transition: all 0.3s;
    padding: 10px 16px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    font-size: 12px;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #EE5A6F);
    border-radius: 2px;
}

.nav-icon {
    width: 26px;
    height: 26px;
}

.icon-routine {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>') center/contain no-repeat;
}

.icon-exercices {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><path d="M6.5 6.5h11"/><path d="M6.5 17.5h11"/><path d="M6.5 12h11"/><circle cx="3.5" cy="6.5" r="1"/><circle cx="3.5" cy="12" r="1"/><circle cx="3.5" cy="17.5" r="1"/></svg>') center/contain no-repeat;
}

.icon-stats {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><path d="M3 3v18h18"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/></svg>') center/contain no-repeat;
}

.icon-profil {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>') center/contain no-repeat;
}

.icon-admin {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><path d="M12 15v2"/><path d="M6 10V7a6 6 0 0 1 12 0v3"/><rect x="4" y="10" width="16" height="12" rx="2"/></svg>') center/contain no-repeat;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        width: calc(100% - 32px);
        padding: 0 8px;
        height: 70px;
    }

    .nav-item {
        padding: 8px 8px;
        font-size: 10px;
        gap: 4px;
    }

    .nav-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        width: calc(100% - 24px);
        padding: 0 4px;
        height: 62px;
    }

    .nav-item {
        padding: 6px 4px;
        gap: 3px;
        font-size: 9px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        display: none;
    }
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .exercise-admin-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ex-actions {
        width: 100%;
    }
}
.statement-text {
    white-space: pre-wrap; 
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}
/* Préserver le formatage pour tous les textes */
.statement-text,
.q-text,
.answer-text,
.explanation-text {
    white-space: pre-wrap; /* Préserve les retours à la ligne et espaces */
    line-height: 1.8;
    font-size: 1rem;
}

/* Espacement pour les sections de réponse */
.answer-content,
.explanation-content {
    margin-bottom: 1em;
}

.answer-content strong,
.explanation-content strong {
    display: block;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

/* Style pour les formules MathJax dans les réponses */
.answer-text .MJX-TEX,
.explanation-text .MJX-TEX,
.statement-text .MJX-TEX,
.q-text .MJX-TEX {
    font-size: 1.1em;
}

/* ===== LIGHT THEME ===== */
body.light-theme {
    background: #f5f5f7;
    color: #1d1d1f;
}

.light-theme .subtitle {
    color: #6e6e73;
}

.light-theme .stat-card,
.light-theme .subject-card,
.light-theme .exercise-card-detail,
.light-theme .question,
.light-theme .completion,
.light-theme .profile-card,
.light-theme .badge,
.light-theme .pref-card,
.light-theme .admin-form,
.light-theme .exercise-admin-card,
.light-theme .empty-state,
.light-theme .stat-big,
.light-theme .week-section,
.light-theme .subject-stat,
.light-theme .stat-section,
.light-theme .exercise-header {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .stacked-bar,
.light-theme .stat-progress-bar,
.light-theme .stat-row-bar-wrap {
    background: rgba(0, 0, 0, 0.07);
}

.light-theme .stat-card:hover,
.light-theme .subject-card:hover,
.light-theme .exercise-card-detail:hover {
    background: rgba(0, 0, 0, 0.06);
}

.light-theme .bottom-nav {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.light-theme .nav-item {
    color: #6e6e73;
}

.light-theme .nav-item:hover {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .nav-item.active {
    color: #1d1d1f;
}

.light-theme .back {
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .back:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .tag {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .show-answer {
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .show-answer:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .answer {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.light-theme .btn-report {
    border-color: rgba(255, 59, 48, 0.3);
    color: rgba(255, 59, 48, 0.7);
}

.light-theme .btn-report:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.light-theme .report-popup {
    background: #f5f5f7;
}

.light-theme .report-popup-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.light-theme .report-popup-header h3 {
    color: #1d1d1f;
}

.light-theme .report-popup-body select,
.light-theme .report-popup-body textarea {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1d1d1f;
}

.light-theme .report-popup-body select option {
    background: #f5f5f7;
}

.light-theme .completion input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .btn-logout {
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .progress .bar,
.light-theme .progress-large {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .theme-btns button {
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .theme-btns button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme input[type="range"] {
    background: rgba(0, 0, 0, 0.1);
}

.light-theme .form-group input,
.light-theme .form-group select,
.light-theme .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .form-group label {
    color: #1d1d1f;
}

.light-theme .motivation-card {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.15), rgba(68, 160, 141, 0.15));
}

.light-theme .exercise-statement {
    background: rgba(78, 205, 196, 0.08);
}

.light-theme .exercise-statement p {
    color: #1d1d1f;
}

.light-theme .stat-info p,
.light-theme .progress span,
.light-theme .member,
.light-theme .ex-meta,
.light-theme .badge p,
.light-theme .author {
    color: #6e6e73;
}

/* ===== ADMIN NAV ===== */
.admin-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    transition: all 0.3s;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.light-theme .admin-nav-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .admin-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.admin-nav-icon {
    font-size: 24px;
}

/* ===== POMODORO SECTION ===== */
.pomodoro-section {
    margin-bottom: 40px;
}

.pomodoro-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
}

.pomodoro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.pomodoro-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.pomodoro-config {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #86868b;
}

.pomodoro-config select {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}

.pomodoro-config select option {
    background: #1a1a1a;
    color: #fff;
}

.pomo-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pomo-custom-input {
    width: 60px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
}

.pomo-custom-input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.pomo-custom-input::placeholder {
    color: #666;
}

.pomodoro-display {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pomodoro-ring {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pomodoro-ring svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: #FF6B6B;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.pomodoro-ring.on-work .ring-progress {
    stroke: #FF6B6B;
}

.pomodoro-ring.on-break .ring-progress {
    stroke: #4ECDC4;
}

.pomodoro-ring.done .ring-progress {
    stroke: #00D084;
}

.pomodoro-time {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 1;
}

.pomodoro-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #86868b;
    z-index: 1;
    margin-top: 4px;
}

.pomodoro-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.pomo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pomo-stat-num {
    font-size: 28px;
    font-weight: 700;
}

.pomo-stat-label {
    font-size: 12px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pomo-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.pomo-start {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: #fff;
}

.pomo-start:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.pomo-pause {
    background: linear-gradient(135deg, #FFB020, #FF8C00);
    color: #fff;
}

.pomo-pause:hover {
    transform: scale(1.05);
}

.pomo-reset {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pomo-reset:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ===== POMODORO POPUP ===== */
.pomo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.pomo-popup-overlay.visible {
    opacity: 1;
}

.pomo-popup {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pomo-popup-overlay.visible .pomo-popup {
    transform: scale(1);
}

.pomo-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.pomo-popup-msg {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 28px;
    line-height: 1.5;
}

.pomo-popup-btn {
    padding: 14px 36px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4ECDC4, #44B8A8);
    color: #fff;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pomo-popup-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

.badge-no-exam {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #ff3b30;
    border: 2px solid #ff3b30;
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ===== SHUFFLE ===== */
.shuffle-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shuffle-btn {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.shuffle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .shuffle-section {
        flex-direction: column;
        gap: 6px;
        padding: 0 10px;
    }
    .shuffle-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===== DAY TABS ===== */
.day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-tab {
    flex: 1;
    min-width: 48px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #86868b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.day-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.day-tab.active {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: #fff;
    border-color: transparent;
}

/* ===== DAY PANELS ===== */
.day-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.day-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== CHAPTER GRID ===== */
.chapter-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    transition: all 0.3s;
}

.chapter-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
}

.chapter-card.checked {
    opacity: 0.5;
    background: rgba(0, 208, 132, 0.05);
    border-left-color: #00D084;
}

.chapter-card.checked .chapter-name {
    text-decoration: line-through;
}

.chapter-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.chapter-check:hover {
    border-color: #00D084;
    background: rgba(0, 208, 132, 0.1);
}

.chapter-check.done {
    background: #00D084;
    border-color: #00D084;
}

.chapter-check.done::after {
    content: '\2713';
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.chapter-body {
    flex: 1;
}

.chapter-subject {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.chapter-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.3s;
}

.chapter-details {
    font-size: 13px;
    color: #86868b;
    line-height: 1.5;
}

.chapter-fiche-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent, #86868b);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.15s;
}
.chapter-fiche-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== QCM BADGE ON CHAPTER CARDS ===== */
.chapter-qcm-badge {
    display: inline-block;
    margin-top: 8px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: default;
}
.chapter-qcm-badge.qcm-badge-partial {
    background: rgba(255,176,32,0.15);
    color: #FFB020;
    border-color: rgba(255,176,32,0.3);
}
.chapter-qcm-badge.qcm-badge-done {
    background: rgba(78,205,196,0.15);
    color: #4ECDC4;
    border-color: rgba(78,205,196,0.3);
}

/* ===== CUSTOMIZE CARD HIDE BUTTON ===== */
.customize-card {
    position: relative;
}

.customize-card-hide {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #86868b;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.customize-card:hover .customize-card-hide {
    opacity: 1;
}

.customize-card-hide:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #FF6B6B;
}

@media (max-width: 768px) {
    .customize-card-hide {
        opacity: 0.7;
    }
}

/* ===== EXCLUDED CHAPTERS BUTTON (header) ===== */
.excluded-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    color: #FF6B6B;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.excluded-header-btn:hover {
    background: rgba(255, 107, 107, 0.22);
}
.light-theme .excluded-header-btn {
    background: rgba(255, 107, 107, 0.08);
}

/* ===== EXCLUDED CHAPTERS SECTION ===== */
.excluded-section {
    margin-top: 24px;
}

.excluded-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #86868b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.excluded-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.excluded-count {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.excluded-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.excluded-grid {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.excluded-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent, #86868b);
    border-radius: 10px;
    font-size: 13px;
}

.excluded-card-subject {
    font-weight: 700;
    font-size: 12px;
}

.excluded-card-name {
    color: #ccc;
    flex: 1;
}

.excluded-restore-btn {
    padding: 4px 12px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.excluded-restore-btn:hover {
    background: rgba(76, 175, 80, 0.25);
}

/* Light theme */
.light-theme .customize-card-hide {
    background: rgba(0, 0, 0, 0.05);
    color: #aaa;
}

.light-theme .customize-card-hide:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
}

.light-theme .excluded-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .excluded-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .excluded-card-name {
    color: #555;
}

/* ===== PLANNING PROGRESS ===== */
.planning-progress {
    margin-top: 32px;
}

.planning-progress-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.planning-progress-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.planning-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.planning-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #00D084);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.planning-bar-text {
    margin-top: 10px;
    font-size: 14px;
    color: #86868b;
}

/* ===== PLANNING LIGHT THEME ===== */
.light-theme .pomodoro-card,
.light-theme .planning-progress-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .pomodoro-config select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.light-theme .pomodoro-config select option {
    background: #fff;
    color: #1d1d1f;
}

.light-theme .ring-bg {
    stroke: rgba(0, 0, 0, 0.08);
}

.light-theme .day-tab {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #6e6e73;
}

.light-theme .day-tab:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
}

.light-theme .day-tab.active {
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    color: #fff;
    border-color: transparent;
}

.light-theme .chapter-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    border-left-color: var(--accent);
}

.light-theme .chapter-card:hover {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .chapter-card.checked {
    background: rgba(0, 208, 132, 0.05);
    border-left-color: #00D084;
}

.light-theme .chapter-check {
    border-color: rgba(0, 0, 0, 0.2);
}

.light-theme .chapter-details {
    color: #6e6e73;
}

.light-theme .pomo-reset {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .planning-bar {
    background: rgba(0, 0, 0, 0.08);
}

.light-theme .planning-bar-text,
.light-theme .pomo-stat-label,
.light-theme .pomodoro-label,
.light-theme .pomodoro-config {
    color: #6e6e73;
}

.light-theme .pomo-stat-num,
.light-theme .pomodoro-time {
    color: #1d1d1f;
}

.light-theme .pomo-custom-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1d1d1f;
}

.light-theme .pomo-popup {
    background: linear-gradient(135deg, #f5f5f7, #e8e8ed);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .pomo-popup-title {
    color: #1d1d1f;
}

.light-theme .pomo-popup-msg {
    color: #6e6e73;
}

/* ===== PLANNING RESPONSIVE ===== */
@media (max-width: 768px) {
    .pomodoro-info {
        gap: 20px;
    }

    .pomo-stat-num {
        font-size: 22px;
    }

    .pomodoro-ring {
        width: 160px;
        height: 160px;
    }

    .pomodoro-time {
        font-size: 36px;
    }

    .pomodoro-config {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pomodoro-config select {
        padding: 6px 10px;
        font-size: 13px;
    }

    .day-tab {
        padding: 12px 6px;
        font-size: 13px;
    }
}

/* ===== FICHES NAV ICON ===== */
.icon-fiches {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>') center/contain no-repeat;
}

/* ===== FICHES LIST PAGE ===== */
.fiches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.fiches-subject-section {
    margin-bottom: 36px;
}

.fiches-subject-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--subject-color, rgba(255,255,255,0.1));
}

.fiches-subject-icon {
    font-size: 28px;
}

.fiches-subject-header h2 {
    font-size: 22px;
    flex: 1;
}

.fiches-subject-count {
    font-size: 13px;
    color: #86868b;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.fiches-theme-group {
    margin-bottom: 28px;
}

.fiches-theme-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--subject-color, #86868b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    margin-top: 20px;
    padding-left: 10px;
    border-left: 3px solid var(--subject-color, #86868b);
}

.fiches-theme-group .fiches-grid {
    margin-top: 0;
}

.fiche-card:hover {
    border-color: var(--subject-color, #FF6B6B);
}

.fiche-card-link {
    text-decoration: none;
}

.fiche-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.fiche-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.fiche-card-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.fiche-card h3 {
    font-size: 18px;
    font-weight: 600;
}

/* ===== FICHE REVISION PAGE ===== */
.fiche-page header {
    margin-bottom: 32px;
}

.fiche-memo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
}

.fiche-memo h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.memo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.memo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.memo-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.memo-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 8px;
}

.memo-card code {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #FFB020;
    background: rgba(255, 176, 32, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.fiche-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fiche-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.fiche-section-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.fiche-section-header h2 {
    font-size: 22px;
}

.fiche-enonce {
    background: rgba(78, 205, 196, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.fiche-enonce p {
    font-size: 15px;
    line-height: 1.7;
}

.fiche-figure {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    max-width: 100%;
}

.fiche-svg {
    width: 100%;
    max-width: 680px;
    height: auto;
}

.fiche-demo {
    margin-top: 20px;
}

.fiche-instruments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.fiche-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.fiche-schema-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* ── Grandeurs mobile cards ── */
.grandeurs-mobile {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.grandeur-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid var(--gc);
    border-radius: 12px;
    padding: 14px 12px;
}

.gc-letter {
    font-size: 38px;
    font-weight: 700;
    color: var(--gc);
    line-height: 1;
    min-width: 32px;
    text-align: center;
}

.gc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gc-info strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.gc-info span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

.light-theme .grandeur-chip {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.light-theme .gc-info strong { color: #1d1d1f; }
.light-theme .gc-info span { color: #6e6e73; }

.fiche-deroulant {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.fiche-deroulant summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 16px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    color: #FFB020;
    font-size: 15px;
}

.fiche-deroulant summary::-webkit-details-marker { display: none; }

.fiche-deroulant summary::after {
    content: "▸";
    margin-left: auto;
    transition: transform 0.2s;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.fiche-deroulant[open] summary::after {
    transform: rotate(90deg);
}

.fiche-deroulant-body {
    padding: 0 16px 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

.light-theme .fiche-deroulant {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

.light-theme .fiche-deroulant-body {
    color: #3d3d3f;
}

.fiche-methode-banner {
    background: rgba(255, 176, 32, 0.08);
    border: 2px solid rgba(255, 176, 32, 0.3);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

.fiche-methode-banner h2 {
    font-size: 22px;
    font-weight: 700;
    color: #FFB020;
    margin-bottom: 12px;
}

.fiche-methode-banner p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.light-theme .fiche-methode-banner p {
    color: #1d1d1f;
}

.fiche-demo > p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.fiche-steps {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.fiche-steps li {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 6px;
    font-size: 15px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    border-radius: 0 8px 8px 0;
}

.fiche-steps li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.fiche-result {
    border-left-color: #00D084 !important;
    background: rgba(0, 208, 132, 0.08) !important;
    font-weight: 700;
}

.fiche-note {
    font-size: 12px;
    color: #86868b;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.fiche-calcul {
    background: rgba(255, 176, 32, 0.05);
    border: 1px solid rgba(255, 176, 32, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

.fiche-calcul p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #FFB020;
    font-weight: 600;
}

.fiche-conclusion {
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.fiche-conclusion p {
    font-size: 15px;
    line-height: 1.7;
}

.fiche-conclusion-ok {
    background: rgba(0, 208, 132, 0.08);
    border: 1px solid rgba(0, 208, 132, 0.3);
}

.fiche-conclusion-ko {
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.3);
}

/* ===== FICHE SUBSECTIONS & TABLES ===== */
.fiche-subsection {
    margin: 20px 0;
}

.fiche-subsection h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.light-theme .fiche-subsection h3 {
    color: #1d1d1f;
}

.fiche-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 8px;
}

.fiche-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 13px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fiche-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    line-height: 1.6;
}

.fiche-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fiche-table em {
    color: rgba(255, 255, 255, 0.7);
}

.fiche-table u {
    text-decoration-color: #FFB020;
}

.light-theme .fiche-table thead th {
    background: rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.15);
}

.light-theme .fiche-table tbody td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.light-theme .fiche-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

.light-theme .fiche-table em {
    color: #6e6e73;
}

@media (max-width: 768px) {
    .fiche-table {
        font-size: 13px;
    }

    .fiche-table thead th,
    .fiche-table tbody td {
        padding: 8px 10px;
    }
}

/* ===== FICHE BUTTONS ON EXERCISES ===== */
.ex-fiches-btns {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-fiche {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 176, 32, 0.12);
    border: 1px solid rgba(255, 176, 32, 0.3);
    border-radius: 8px;
    color: #FFB020;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-fiche:hover {
    background: rgba(255, 176, 32, 0.2);
    transform: scale(1.03);
}

.exercise-fiches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.btn-fiche-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 176, 32, 0.12);
    border: 1px solid rgba(255, 176, 32, 0.3);
    border-radius: 12px;
    color: #FFB020;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-fiche-large:hover {
    background: rgba(255, 176, 32, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 176, 32, 0.2);
}

/* ===== FICHES SELECT IN ADMIN ===== */
.fiches-select {
    min-height: 100px;
}

/* ===== FICHES LIGHT THEME ===== */
.light-theme .fiches-subject-count {
    background: rgba(0, 0, 0, 0.05);
    color: #6e6e73;
}

.light-theme .fiche-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .fiche-card:hover {
    background: rgba(0, 0, 0, 0.06);
}

.light-theme .fiche-memo,
.light-theme .fiche-section {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .memo-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

.light-theme .memo-card p {
    color: #6e6e73;
}

.light-theme .fiche-steps li {
    background: rgba(0, 0, 0, 0.02);
    border-left-color: rgba(0, 0, 0, 0.15);
}

.light-theme .fiche-steps li:hover {
    background: rgba(0, 0, 0, 0.04);
}

.light-theme .fiche-note {
    color: #6e6e73;
}

.light-theme .fiche-enonce {
    background: rgba(78, 205, 196, 0.08);
}

@media (max-width: 768px) {
    /* ── Page header ── */
    .fiche-page header h1 { font-size: 26px; }

    /* ── Mémo rapide ── */
    .fiche-memo {
        padding: 18px 14px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .fiche-memo h2 { font-size: 16px; margin-bottom: 14px; }

    .memo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .memo-card {
        padding: 14px 12px;
        border-radius: 12px;
    }

    /* Formule en grand, label en petit */
    .memo-card h3 {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: rgba(255,255,255,0.45);
        margin-bottom: 8px;
    }

    .memo-card p {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #fff;
    }

    .memo-card code {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* ── Sections ── */
    .fiche-section {
        padding: 18px 14px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .fiche-section-header { gap: 10px; margin-bottom: 16px; }
    .fiche-section-header h2 { font-size: 18px; }
    .fiche-section-num { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }

    /* ── Grandeurs : cartes au lieu du tableau ── */
    .grandeurs-table-wrap { display: none; }
    .grandeurs-mobile { display: grid; }

    /* ── Triangles ── */
    .fiche-figure .fig { max-width: 220px !important; }

    /* ── Formules steps ── */
    .fiche-subsection h3 { font-size: 16px; margin-bottom: 14px; }

    .fiche-steps li {
        font-size: 14px;
        padding: 10px 12px;
        line-height: 1.5;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* ── Énoncés / conclusions ── */
    .fiche-enonce { padding: 14px; }
    .fiche-enonce p { font-size: 14px; line-height: 1.65; }
    .fiche-conclusion p { font-size: 14px; }

    /* ── Schéma Joule : s'adapte à la largeur ── */
    .fiche-figure {
        justify-content: center;
    }

    .fiche-figure .fig.joule { min-width: unset; width: 100%; }

    /* ── Schéma circuit : s'adapte à la largeur ── */
    .fiche-schema-scroll svg { min-width: unset; width: 100%; }

    /* ── Grilles instruments : 1 colonne ── */
    .fiche-instruments-grid { grid-template-columns: 1fr; gap: 12px; }

    /* ── Tableau branchement : masqué, info dans les cartes ── */
    .branchement-table-wrap { display: none; }

    /* ── Liste fiches ── */
    .fiches-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .memo-grid { grid-template-columns: 1fr; }
    .memo-card p { font-size: 20px; }

    .fiche-section { padding: 14px 12px; }

    .container.fiche-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fiche-page header h1 { font-size: 22px; }
}

/* Vecteur : flèche au-dessus de la lettre */
.vec {
    position: relative;
    display: inline-block;
    padding-top: 0.35em;
    font-weight: bold;
}
.vec::before {
    content: '\2192';
    position: absolute;
    top: -0.15em;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.65em;
    line-height: 1;
}

/* ===== CUSTOMIZE VIEW (drag & drop planning) ===== */
.shuffle-btn-custom {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.shuffle-btn-custom:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.customize-view {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.customize-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.customize-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.customize-actions {
    display: flex;
    gap: 10px;
}

.customize-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.customize-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
}
.customize-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.customize-btn-save {
    background: linear-gradient(135deg, #4ECDC4, #2BAF9E);
    color: #fff;
}
.customize-btn-save:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

.customize-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 16px;
    flex: 1;
    overflow: hidden;
}

.customize-column {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.customize-col-header {
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.customize-dropzone {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    min-height: 60px;
    transition: background 0.2s;
}

.customize-dropzone.drag-over {
    background: rgba(255, 107, 107, 0.08);
}

.customize-card {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent, #888);
    border-radius: 12px;
    cursor: grab;
    transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.customize-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

.customize-card:active {
    cursor: grabbing;
}

.customize-card.dragging {
    opacity: 0.3;
    transform: scale(0.95);
}

.customize-card-subject {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.customize-card-name {
    font-size: 13px;
    color: #ddd;
    font-weight: 500;
}

.customize-card-floating {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    transform: scale(1.05) rotate(2deg);
}

.drop-indicator {
    height: 3px;
    background: linear-gradient(90deg, #4ECDC4, #00D084);
    border-radius: 3px;
    margin: 2px 0;
    animation: dropPulse 0.8s ease infinite alternate;
    flex-shrink: 0;
}

@keyframes dropPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Light theme */
.light-theme .customize-view {
    background: #f5f5f7;
}
.light-theme .customize-header {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
.light-theme .customize-header h2 {
    color: #1d1d1f;
}
.light-theme .customize-btn-cancel {
    background: rgba(0, 0, 0, 0.05);
    color: #6e6e73;
}
.light-theme .customize-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}
.light-theme .customize-column {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .customize-col-header {
    color: #1d1d1f;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}
.light-theme .customize-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .customize-card:hover {
    background: #f0f0f2;
}
.light-theme .customize-card-name {
    color: #1d1d1f;
}
.light-theme .customize-dropzone.drag-over {
    background: rgba(78, 205, 196, 0.08);
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .customize-header {
        padding: 10px 14px;
        gap: 0;
        position: sticky;
        top: 0;
        z-index: 10;
        background: #000;
    }
    .light-theme .customize-header {
        background: #f5f5f7;
    }
    .customize-header h2 {
        font-size: 16px;
        flex: 1;
    }
    .customize-actions {
        gap: 8px;
    }
    .customize-btn {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    .customize-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow-y: auto;
    }
    .customize-column {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .customize-col-header {
        padding: 14px 16px;
        text-align: left;
        font-size: 15px;
        position: sticky;
        top: 0;
        z-index: 5;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .customize-col-header::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255, 255, 255, 0.4);
        border-bottom: 2px solid rgba(255, 255, 255, 0.4);
        transform: rotate(45deg);
        transition: transform 0.2s;
        flex-shrink: 0;
    }
    .customize-column.collapsed .customize-col-header::after {
        transform: rotate(-45deg);
    }
    .customize-column.collapsed .customize-dropzone {
        display: none;
    }
    .light-theme .customize-col-header {
        background: rgba(245, 245, 247, 0.95);
    }
    .light-theme .customize-col-header::after {
        border-color: rgba(0, 0, 0, 0.3);
    }
    .light-theme .customize-column {
        border-color: rgba(0, 0, 0, 0.06);
    }
    .customize-dropzone {
        padding: 10px 12px;
        gap: 8px;
        min-height: 50px;
    }
    .customize-card {
        padding: 12px 14px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .customize-card-subject {
        font-size: 11px;
        white-space: nowrap;
    }
    .customize-card-name {
        font-size: 14px;
        flex: 1;
    }
    .customize-card::after {
        content: '\2630';
        color: rgba(255, 255, 255, 0.25);
        font-size: 16px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .light-theme .customize-card::after {
        color: rgba(0, 0, 0, 0.2);
    }

    /* Count badge on collapsed columns */
    .customize-col-count {
        font-size: 12px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.4);
        margin-right: 8px;
    }
    .light-theme .customize-col-count {
        color: rgba(0, 0, 0, 0.35);
    }
}

/* ===== FICHE TOC SIDEBAR ===== */
.fiche-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.fiche-toc {
    position: sticky;
    top: 20px;
    width: 240px;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.fiche-toc-title {
    font-size: 13px;
    font-weight: 700;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fiche-toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    transition: background 0.2s, color 0.2s;
}

.fiche-toc a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.fiche-toc a.active {
    background: rgba(255, 107, 107, 0.12);
    color: #fff;
    font-weight: 600;
}

.fiche-toc-num {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
}

.fiche-content {
    flex: 1;
    min-width: 0;
}

/* Mobile TOC toggle */
.fiche-toc-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    text-align: left;
}

.fiche-toc-toggle::after {
    content: '▼';
    float: right;
    font-size: 10px;
    transition: transform 0.3s;
}

.fiche-toc-toggle.open::after {
    transform: rotate(180deg);
}

/* Light theme */
.light-theme .fiche-toc {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .fiche-toc-title {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.light-theme .fiche-toc a {
    color: #555;
}

.light-theme .fiche-toc a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #222;
}

.light-theme .fiche-toc a.active {
    background: rgba(255, 107, 107, 0.1);
    color: #222;
}

.light-theme .fiche-toc-toggle {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #555;
}

@media (max-width: 1024px) {
    .fiche-layout {
        flex-direction: column;
    }

    .fiche-toc {
        position: static;
        width: 100%;
        min-width: 0;
        display: none;
        margin-bottom: 8px;
    }

    .fiche-toc.open {
        display: block;
    }

    .fiche-toc-toggle {
        display: block;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 16px 20px 120px;
    font-size: 13px;
    color: #86868b;
    letter-spacing: 0.3px;
}

.site-footer span {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== QCM NAV ICON ===== */
.icon-qcm {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6b6b" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>') center/contain no-repeat;
}

/* ===== QCM FICHE BUTTON ===== */
.fiche-qcm-cta {
    text-align: center;
    margin: 40px 0 20px;
    padding: 28px 16px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.btn-qcm {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, oklch(0.72 0.14 250), oklch(0.6 0.16 280));
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-size: 1em;
    font-weight: 700;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(100,130,255,.3);
    max-width: 500px;
    width: 100%;
    justify-content: space-between;
}
.btn-qcm:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(100,130,255,.45);
}
.btn-qcm-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 2px;
}
.btn-qcm-label {
    font-size: .8em;
    opacity: .85;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.btn-qcm-title {
    font-size: 1em;
    font-weight: 700;
}
.btn-qcm-arrow { font-size: 1.1em; opacity: .8; }

/* ===== QCM ADMIN CORRECT SELECTOR ===== */
.qcm-correct-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.qcm-correct-opt {
    cursor: pointer;
}
.qcm-correct-opt input[type=radio] { display: none; }
.qcm-correct-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.2);
    font-weight: 700;
    font-size: 1em;
    background: rgba(255,255,255,.05);
    transition: border-color .15s, background .15s, color .15s;
}
.qcm-correct-opt input[type=radio]:checked + span {
    border-color: #4ECDC4;
    background: rgba(78,205,196,.18);
    color: #4ECDC4;
}

/* ===== FICHE TOP BAR & PRINT BUTTON ===== */
.fiche-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.fiche-top-bar .back {
    margin-bottom: 0;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.print-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.light-theme .print-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.6);
}

.light-theme .print-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* ===== IMPRESSION ===== */
@media print {
    @page {
        margin: 1.5cm;
        size: A4;
    }

    /* Masquer l'interface */
    .bottom-nav,
    .site-footer,
    .fiche-qcm-cta,
    .print-btn,
    .fiche-toc,
    .fiche-toc-toggle,
    .fiche-top-bar .back {
        display: none !important;
    }

    /* Fond et couleur de base */
    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
    }

    /* Conteneur */
    .container.fiche-page {
        max-width: 100% !important;
        padding: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Layout : passer en colonne unique */
    .fiche-layout {
        display: block !important;
    }

    .fiche-content {
        max-width: 100% !important;
    }

    /* En-tête */
    .fiche-page > header,
    .fiche-top-bar {
        margin-bottom: 20px !important;
    }

    .fiche-page header h1 {
        font-size: 20pt !important;
        color: #111 !important;
    }

    .fiche-page header .subtitle {
        color: #555 !important;
    }

    /* Mémo rapide */
    .fiche-memo {
        background: #f8f8f8 !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .fiche-memo h2 {
        color: #111 !important;
    }

    .memo-card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .memo-card h3,
    .memo-card p {
        color: #111 !important;
    }

    .memo-card code {
        background: #fff3cd !important;
        color: #7a5800 !important;
        border: 1px solid #f0c040 !important;
    }

    /* Sections */
    .fiche-section {
        background: #fff !important;
        border: 1px solid #bbb !important;
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 16px !important;
        padding: 20px !important;
    }

    .fiche-section-num {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .fiche-section-header h2 {
        color: #111 !important;
    }

    /* Énoncés */
    .fiche-enonce {
        background: #f0fafa !important;
        border: 1px solid #b0ddd9 !important;
    }

    .fiche-enonce p,
    .fiche-enonce li {
        color: #111 !important;
    }

    /* Blocs démo / steps */
    .fiche-demo,
    .fiche-subsection {
        background: #fafafa !important;
        border: 1px solid #ddd !important;
    }

    .fiche-demo p,
    .fiche-steps li,
    .fiche-steps li.fiche-result {
        color: #111 !important;
    }

    /* Conclusions */
    .fiche-conclusion {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .fiche-conclusion p {
        color: #111 !important;
    }

    .fiche-conclusion.fiche-conclusion-ok {
        background: #e8faf0 !important;
        border-color: #5cb87a !important;
    }

    .fiche-conclusion.fiche-conclusion-warn {
        background: #fff8e6 !important;
        border-color: #e6a817 !important;
    }

    /* Tableaux */
    .fiche-table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    .fiche-table th,
    .fiche-table td {
        border: 1px solid #bbb !important;
        color: #111 !important;
        background: #fff !important;
        padding: 6px 10px !important;
    }

    .fiche-table th {
        background: #f0f0f0 !important;
        font-weight: 700;
    }

    /* SVG : forcer l'impression couleur */
    .fiche-figure {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .fiche-svg,
    svg {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        max-width: 100% !important;
    }
}

/* ===== EXERCICES LIST PAGE (REDESIGN) ===== */

.exlist-page {
    --subject-color: #86868b;
}

/* Header */
.exlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.exlist-header-info h1 {
    margin-bottom: 6px;
}

/* Score ring */
.exlist-score-badge {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.exlist-score-ring {
    width: 72px;
    height: 72px;
}

.exlist-score-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--subject-color);
}

/* Progress bar */
.exlist-progress-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.exlist-progress-fill {
    height: 100%;
    background: var(--subject-color);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Section */
.ex-section {
    margin-bottom: 36px;
}

.ex-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ex-section-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--diff-color, #86868b);
    flex-shrink: 0;
}

.ex-section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--diff-color, #86868b);
}

.ex-section-count {
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.07);
    color: #86868b;
    padding: 2px 10px;
    border-radius: 20px;
}

.ex-section-done {
    margin-left: auto;
    font-size: 12px;
    color: #86868b;
}

/* Cards grid */
.ex-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.ex-card-link {
    text-decoration: none;
    display: block;
}

.ex-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 22px;
    transition: all 0.25s;
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ex-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--subject-color);
    opacity: 0;
    border-radius: 18px 0 0 18px;
    transition: opacity 0.25s;
}

.ex-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.ex-card:hover::before {
    opacity: 1;
}

.ex-card-done {
    border-color: rgba(0, 208, 132, 0.25);
    background: rgba(0, 208, 132, 0.04);
}

.ex-card-done::before {
    background: #00D084 !important;
    opacity: 1 !important;
}

.ex-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ex-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.ex-done-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 208, 132, 0.15);
    border: 1.5px solid rgba(0, 208, 132, 0.5);
    color: #00D084;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.ex-done-btn:hover {
    background: rgba(0, 208, 132, 0.28);
    transform: scale(1.1);
}

.ex-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ex-diff-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
}

.difficulty-facile.ex-diff-pill {
    background: rgba(0, 208, 132, 0.12);
    color: #00D084;
    border: 1px solid rgba(0, 208, 132, 0.25);
}

.difficulty-moyen.ex-diff-pill {
    background: rgba(255, 176, 32, 0.12);
    color: #FFB020;
    border: 1px solid rgba(255, 176, 32, 0.25);
}

.difficulty-difficile.ex-diff-pill {
    background: rgba(255, 107, 107, 0.12);
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.ex-meta-item {
    font-size: 13px;
    color: #86868b;
}

/* Manuel cards */
.manual-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manual-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.2s;
}

.manual-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

.manual-card-done {
    border-color: rgba(0, 208, 132, 0.2);
    background: rgba(0, 208, 132, 0.03);
}

.manual-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.manual-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.manual-card-label {
    font-size: 13px;
    color: #86868b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-card-page {
    background: rgba(255,255,255,0.07);
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #aeaeb2;
}

.manual-card-action {
    flex-shrink: 0;
}

.manual-card-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.manual-card-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.03);
}

.ex-empty {
    color: #86868b;
    font-size: 14px;
    padding: 20px 0;
}

/* Light theme */
.light-theme .ex-card {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.light-theme .ex-card:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.14);
}

.light-theme .ex-card-done {
    background: rgba(0, 208, 132, 0.05);
    border-color: rgba(0, 208, 132, 0.2);
}

.light-theme .ex-card-title {
    color: #1d1d1f;
}

.light-theme .ex-section-header {
    border-bottom-color: rgba(0,0,0,0.07);
}

.light-theme .ex-section-count {
    background: rgba(0,0,0,0.05);
}

.light-theme .manual-card {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.light-theme .manual-card:hover {
    background: rgba(0,0,0,0.05);
}

.light-theme .manual-card-done {
    background: rgba(0, 208, 132, 0.04);
    border-color: rgba(0, 208, 132, 0.18);
}

.light-theme .manual-card-title {
    color: #1d1d1f;
}

.light-theme .manual-card-btn {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #1d1d1f;
}

.light-theme .manual-card-btn:hover {
    background: rgba(0,0,0,0.09);
}

.light-theme .exlist-progress-wrap {
    background: rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 600px) {
    .ex-cards-grid {
        grid-template-columns: 1fr;
    }
    .exlist-header {
        align-items: flex-start;
    }
    .exlist-score-badge {
        width: 56px;
        height: 56px;
    }
    .exlist-score-ring {
        width: 56px;
        height: 56px;
    }
    .exlist-score-pct {
        font-size: 12px;
    }
}

/* Notification toast suggestions admin */
.notif-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #2a2a4a;
    border: 1px solid #ff6b6b;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    animation: notif-slide-in 0.35s cubic-bezier(.22,1,.36,1);
    max-width: 320px;
}
@keyframes notif-slide-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notif-icon { font-size: 20px; flex-shrink: 0; }
.notif-text { color: #e0e0e0; font-size: 14px; flex: 1; }
.notif-link {
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #ff6b6b;
    border-radius: 6px;
}
.notif-link:hover { background: #ff6b6b22; }
.notif-close {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
}
.notif-close:hover { color: #ccc; }
