/* ================================================
   Speak & Check - main.css
   Sidebar espresso fixe gauche, fond crème, corail.
   Footer toujours collé en bas (sticky flex pattern).
   Police : Arial natif (pas de CDN Google Fonts).
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* body = flex colonne pleine hauteur
   → permet au footer de toujours coller en bas même
     quand le contenu est court */
body {
    font-family: Arial, sans-serif;
    background-color: #FDF8F2;
    color: #2C1A0E;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

/* ================================================
   SIDEBAR - barre verticale gauche sur desktop
   Hidden sur login et quiz via classe .hidden
   ================================================ */

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 60px;
    background-color: #2C1A0E;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    z-index: 200;
}

.sidebar.hidden { display: none; }

/* Avatar rond = initiale du pseudo */
.sidebar-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background-color: #E8603C;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    margin-bottom: 24px;
    flex-shrink: 0;
    border: none;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.sidebar-link {
    width: 100%; height: 44px;
    display: flex; justify-content: center; align-items: center;
    background: none; border: none;
    cursor: pointer;
    color: #5A3A28;
    font-size: 18px;
}

.sidebar-link:hover  { background-color: #3A2210; color: #E8A070; }
.sidebar-link.active { background-color: #3A2210; color: #E8A070; }

.sidebar-logout {
    width: 100%; height: 44px;
    display: flex; justify-content: center; align-items: center;
    background: none; border: none;
    cursor: pointer;
    color: #5A3A28; font-size: 18px;
    margin-top: auto;
}
.sidebar-logout:hover { color: #E8A070; }

/* ================================================
   MAIN WRAPPER - tout sauf sidebar
   flex:1 + flex-direction:column → footer collé bas
   ================================================ */

.main-wrapper {
    margin-left: 60px;   /* = largeur sidebar */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Quand sidebar cachée (login, quiz) */
.main-wrapper.no-sidebar { margin-left: 0; }

/* #app est le conteneur des vues injectées par router.js.
   Il doit aussi être flex pour ne pas casser la chaîne :
   body → .main-wrapper → #app → hero + page-content + footer
   Sans ça, le footer ne sait pas qu'il doit aller en bas. */
#app {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ================================================
   HERO BANNER - bande espresso en haut de chaque page
   ================================================ */

.hero-banner {
    background-color: #2C1A0E;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.hero-greeting { font-size: 20px; font-weight: 700; color: #F5E8D4; }
.hero-sub      { font-size: 12px; color: #806050; margin-top: 2px; }

.hero-right {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.hero-stats { display: flex; gap: 20px; }
.hero-stat-number { font-size: 20px; font-weight: 700; color: #E8A070; text-align: center; }
.hero-stat-label  { font-size: 10px; color: #806050; text-align: center; }

/* Select dans le hero (page progression) */
.hero-select {
    padding: 7px 10px;
    border: 1px solid #5A3A28;
    border-radius: 6px;
    font-family: Arial, sans-serif; font-size: 13px;
    background-color: #3A2210; color: #F5E8D4;
    cursor: pointer;
}

/* ================================================
   CONTENU DE PAGE
   flex:1 → pousse le footer vers le bas
   ================================================ */

.page-content {
    flex: 1;          /* prend tout l'espace dispo */
    padding: 22px 28px;
}

/* ================================================
   FOOTER - toujours en bas grâce au flex parent
   Sur desktop il reste collé en bas même si peu de contenu.
   Sur mobile il suit le contenu normalement.
   ================================================ */

.footer {
    background-color: #F5EDE0;
    border-top: 0.5px solid #E8D8C4;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #A08060;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;   /* ne rétrécit jamais */
}

.footer a { color: #E8603C; text-decoration: none; }

/* ================================================
   DEUX COLONNES Private / Public
   ================================================ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 0.5px solid #E8D8C4;
    border-radius: 12px;
    overflow: hidden;
    background-color: #FDF8F2;
}

.two-col-left  { padding: 16px 18px; border-right: 0.5px solid #E8D8C4; }
.two-col-right { padding: 16px 18px; }

.section-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: #A08060;
    text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 10px;
}

/* ================================================
   CARTES DE LISTES - rectangles horizontaux
   ================================================ */

.list-row { display: flex; flex-direction: column; gap: 7px; }

.list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background-color: #fff;
    border: 0.5px solid #E8D8C4;
    border-radius: 10px;
}

.list-item.public { border-color: #C8E0B8; }

/* Carré icône à gauche */
.list-item-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background-color: #FDE8E0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px; color: #C04020;
}

.list-item.public .list-item-icon { background-color: #E0F0D0; color: #3A6A10; }

.list-item-info  { flex: 1; min-width: 0; }
.list-item-title { font-size: 13px; font-weight: 700; color: #2C1A0E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-meta  { font-size: 11px; color: #A08060; margin-top: 1px; }

.list-item-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* Bouton icône (edit, delete) */
.btn-icon {
    width: 28px; height: 28px; border-radius: 6px;
    border: 0.5px solid #E8D8C4;
    background: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 12px; color: #A08060;
}
.btn-icon:hover        { border-color: #E8603C; color: #E8603C; }
.btn-icon.danger:hover { border-color: #C04020; color: #C04020; }

/* Placeholder pointillé */
.list-item-placeholder {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 13px;
    border: 0.5px dashed #C8E0B8;
    border-radius: 10px;
    font-size: 12px; color: #90B880;
    cursor: pointer;
}
.list-item-placeholder:hover { background-color: #F0F8EC; }

/* ================================================
   BOUTONS
   ================================================ */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none; border-radius: 20px;
    font-family: Arial, sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background-color: #E8603C; color: #fff; }
.btn-primary:hover:not(:disabled) { background-color: #D05030; }

.btn-outline { background: transparent; color: #E8603C; border: 1.5px solid #F0C0A8; }
.btn-outline:hover:not(:disabled) { background-color: #FDE8E0; border-color: #E8603C; }

.btn-ghost { background-color: #FDF8F2; color: #A08060; border: 0.5px solid #E8D8C4; }
.btn-ghost:hover:not(:disabled) { border-color: #E8603C; color: #2C1A0E; }

.btn-success { background-color: #E0F0D0; color: #3A6A10; border: none; }
.btn-success:hover:not(:disabled) { background-color: #C8E0B8; }

.btn-danger { background-color: #FDE8E0; color: #993C1D; border: none; }
.btn-danger:hover:not(:disabled) { background-color: #F8D0C0; }

.btn-sm   { padding: 5px 13px; font-size: 12px; }
.btn-full { width: 100%; margin-top: 6px; }

/* ================================================
   PAGE LOGIN - pas de sidebar, pleine page
   ================================================ */

.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background-color: #FDF8F2; padding: 20px;
    flex: 1;
}

.auth-box {
    display: flex;
    background-color: #fff;
    border: 0.5px solid #E8D8C4;
    border-radius: 14px;
    overflow: hidden;
    width: 100%; max-width: 780px; min-height: 440px;
}

/* Panneau gauche espresso */
.auth-left {
    width: 38%; background-color: #2C1A0E;
    padding: 32px 28px;
    display: flex; flex-direction: column;
}

.auth-left-logo { display: flex; align-items: center; gap: 10px; margin-bottom: auto; }

.auth-left-logo-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background-color: #E8603C;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}

.auth-left-logo-name { font-size: 17px; font-weight: 700; color: #F5E8D4; }
.auth-left-title     { font-size: 18px; font-weight: 700; color: #F5E8D4; margin-bottom: 8px; line-height: 1.4; }
.auth-left-sub       { font-size: 13px; color: #A08060; line-height: 1.6; }
.auth-left-dots      { display: flex; gap: 6px; margin-top: 18px; }
.auth-dot     { width: 8px;  height: 8px;  border-radius: 50%; background-color: #5A3A28; }
.auth-dot.big { width: 12px; height: 12px; background-color: #E8603C; }

/* Panneau droit formulaire */
.auth-right {
    flex: 1; padding: 32px 28px;
    display: flex; flex-direction: column; justify-content: center;
}

.tab-row {
    display: flex; background-color: #F0E8DC;
    border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 20px;
}

.tab-btn {
    flex: 1; padding: 8px; border: none; background: transparent;
    font-family: Arial, sans-serif; font-size: 13px; color: #A08060;
    cursor: pointer; border-radius: 8px;
}
.tab-btn.active { background-color: #fff; color: #E8603C; font-weight: 700; }

.form-section         { display: none; }
.form-section.visible { display: block; }

/* ================================================
   FORMULAIRES
   ================================================ */

.form-group { margin-bottom: 13px; }

.form-label {
    display: block; font-size: 11px; font-weight: 700; color: #A08060;
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em;
}

.form-input {
    width: 100%; padding: 8px 11px;
    border: 1px solid #E8D8C4; border-radius: 7px;
    font-family: Arial, sans-serif; font-size: 14px;
    background-color: #FDF8F2; color: #2C1A0E;
}
.form-input:focus { outline: none; border-color: #E8603C; background-color: #fff; }

.form-select {
    width: 100%; padding: 8px 11px;
    border: 1px solid #E8D8C4; border-radius: 7px;
    font-family: Arial, sans-serif; font-size: 14px;
    background-color: #FDF8F2; color: #2C1A0E; cursor: pointer;
}

.form-error {
    background-color: #FDE8E0;
    border-left: 3px solid #E8603C;
    padding: 8px 12px; font-size: 13px; color: #993C1D;
    margin-bottom: 12px; border-radius: 0 7px 7px 0;
    display: none;
}

/* ================================================
   CARD générique
   ================================================ */

.card {
    background-color: #fff;
    border: 0.5px solid #E8D8C4;
    border-radius: 12px; padding: 20px;
}

.divider { border: none; border-top: 0.5px solid #E8D8C4; margin: 14px 0; }

/* ================================================
   ÉDITEUR DE LISTE
   ================================================ */

.editor-meta-row {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px; align-items: flex-end;
}
.editor-meta-row .form-group { flex: 1; min-width: 120px; margin-bottom: 0; }

.word-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }

.word-table th {
    text-align: left; font-size: 10px; font-weight: 700; color: #A08060;
    padding: 0 7px 8px;
    border-bottom: 0.5px solid #E8D8C4;
    text-transform: uppercase; letter-spacing: .05em;
}
.word-table td { padding: 3px 4px; border-bottom: 0.5px solid #F8F0E8; }

.word-cell-input {
    width: 100%; padding: 5px 8px;
    border: 1px solid transparent; border-radius: 4px;
    font-family: Arial, sans-serif; font-size: 13px;
    background-color: #FDF8F2; color: #2C1A0E;
}
.word-cell-input:focus { outline: none; border-color: #E8603C; background-color: #fff; }

.add-word-row { display: flex; gap: 8px; margin-bottom: 14px; }
.add-word-row .form-input { flex: 1; }

/* ================================================
   CHOIX DE MODE
   ================================================ */

.mode-list { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }

.mode-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    background-color: #fff;
    border: 0.5px solid #E8D8C4;
    border-radius: 12px; cursor: pointer;
}
.mode-item:hover { border-color: #E8603C; background-color: #FDF0EA; }

.mode-item.disabled { opacity: 0.5; cursor: not-allowed; background-color: #F8F4F0; }
.mode-item.disabled:hover { border-color: #E8D8C4; background-color: #F8F4F0; }

.mode-item.oral { background-color: #2C1A0E; border-color: #2C1A0E; }
.mode-item.oral:hover { background-color: #3A2210; border-color: #3A2210; }

.mode-item-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background-color: #FDE8E0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 17px; color: #C04020;
}
.mode-item.oral .mode-item-icon     { background-color: #3D1A0A; color: #E8A070; }
.mode-item.disabled .mode-item-icon { background-color: #F0E8E0; color: #C0A890; }

.mode-item-info  { flex: 1; }
.mode-item-title { font-size: 14px; font-weight: 700; color: #2C1A0E; }
.mode-item.oral .mode-item-title { color: #F5E8D4; }
.mode-item-desc  { font-size: 11px; color: #A08060; margin-top: 1px; }
.mode-item.oral .mode-item-desc { color: #806050; }
.mode-item-arrow { font-size: 13px; color: #C0A890; flex-shrink: 0; }

.coming-soon-badge {
    font-size: 10px; font-weight: 700; color: #C0A890;
    background-color: #F0E8E0;
    padding: 2px 9px; border-radius: 20px;
}

.failed-banner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding: 13px 16px;
    background-color: #FDE8E0;
    border: 0.5px solid #F0C0A0;
    border-radius: 12px; margin-bottom: 14px;
}
.failed-banner-title { font-size: 13px; font-weight: 700; color: #993C1D; }
.failed-banner-sub   { font-size: 11px; color: #C08060; margin-top: 2px; }

/* ================================================
   QUIZ - pleine hauteur, centré
   ================================================ */

/* Bouton quitter fixe en haut à droite pendant le quiz */
.quiz-quit-btn {
    position: fixed; top: 14px; right: 18px;
    background-color: #FDE8E0; color: #993C1D;
    border: none; border-radius: 8px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; z-index: 300;
}
.quiz-quit-btn:hover { background-color: #F8D0C0; }

.quiz-wrapper {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 24px 20px 40px;
    background-color: #FDF8F2;
}

.quiz-panel {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 540px; gap: 14px;
}

/* quiz-topbar = div partagé HORS des panneaux, toujours dans le DOM */
#quiz-topbar {
    width: 100%; max-width: 540px;
    margin-bottom: 14px;
}

.quiz-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}

/* Rétrocompat - au cas où le JS cherche .quiz-topbar */
.quiz-topbar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 540px; margin-bottom: 2px;
}

.quiz-mode-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 13px;
    background-color: #FDE8E0; color: #C04020;
    border-radius: 20px; font-size: 11px; font-weight: 700;
}

.quiz-counter { font-size: 12px; color: #A08060; font-weight: 700; }

.progress-track {
    width: 100%; max-width: 540px;
    height: 5px; background-color: #F0E4D4;
    border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; background-color: #E8603C;
    border-radius: 3px; transition: width 0.3s ease;
}

/* Carte centrale quiz */
.quiz-card {
    background-color: #fff;
    border: 0.5px solid #E8D8C4;
    border-radius: 14px; padding: 30px 24px;
    text-align: center;
    width: 100%; max-width: 540px;
}
.quiz-card.clickable { cursor: pointer; }
.quiz-card.clickable:hover { border-color: #E8603C; }

.quiz-card-lang {
    font-size: 10px; font-weight: 700; color: #C0A890;
    text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px;
}
.quiz-card-word {
    font-size: 38px; font-weight: 700; color: #2C1A0E;
    margin-bottom: 8px; line-height: 1.2;
}
.quiz-card-hint    { font-size: 12px; color: #C0A890; font-style: italic; }
.quiz-card-divider { border: none; border-top: 0.5px solid #F0E4D4; margin: 16px 0; }
.quiz-card-answer-lang { font-size: 10px; color: #C0A890; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.quiz-card-answer  { font-size: 24px; font-weight: 700; color: #E8603C; }

.rating-row { display: flex; gap: 10px; width: 100%; max-width: 540px; }
.rating-row .btn { flex: 1; padding: 12px; font-size: 13px; }

/* Mode écriture */
.write-input-row {
    display: flex; gap: 8px;
    max-width: 340px; margin: 14px auto 0;
}
.write-answer-input {
    flex: 1; padding: 8px 12px;
    border: 1.5px solid #E8D8C4; border-radius: 8px;
    font-family: Arial, sans-serif; font-size: 14px;
    background-color: #FDF8F2; color: #2C1A0E;
}
.write-answer-input:focus   { outline: none; border-color: #E8603C; }
.write-answer-input.correct { border-color: #4A8A1A; }
.write-answer-input.wrong   { border-color: #C04020; }

.write-feedback {
    display: none; align-items: center; gap: 8px;
    margin-top: 12px; padding: 9px 14px;
    border-radius: 8px; font-size: 13px; font-weight: 700;
}
.write-feedback.correct { display: inline-flex; background-color: #E0F0D0; color: #3A6A10; }
.write-feedback.wrong   { display: inline-flex; background-color: #FDE8E0; color: #993C1D; }

.write-next-row {
    display: flex; justify-content: flex-end;
    width: 100%; max-width: 540px; margin-top: 6px;
}

/* Mode oral */
.oral-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 540px; }

.oral-step {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    background-color: #fff;
    border: 0.5px solid #E8D8C4; border-radius: 10px;
}
.oral-step-number {
    width: 26px; height: 26px; border-radius: 50%;
    background-color: #E8603C; color: #fff;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.oral-step-text { font-size: 13px; color: #2C1A0E; flex: 1; }

.recording-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background-color: #E8603C;
    margin-right: 6px; animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.1; } }

.score-section {
    background-color: #fff; border: 0.5px solid #E8D8C4;
    border-radius: 12px; padding: 16px;
    width: 100%; max-width: 540px;
    display: flex; gap: 16px; align-items: center;
}
.score-ring {
    width: 58px; height: 58px; border-radius: 50%;
    border: 4px solid #E8603C;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: #E8603C; flex-shrink: 0;
}
.score-ring.good   { border-color: #4A8A1A; color: #4A8A1A; }
.score-ring.medium { border-color: #C88A20; color: #C88A20; }
.score-ring.poor   { border-color: #E8603C; color: #E8603C; }

.score-detail        { font-size: 12px; color: #A08060; line-height: 2; }
.score-detail strong { color: #2C1A0E; }
.word-error          { font-size: 11px; color: #993C1D; }

.audio-playback-row { display: flex; gap: 7px; width: 100%; max-width: 540px; flex-wrap: wrap; }

/* Écran de fin */
.complete-screen {
    text-align: center; padding: 40px 20px;
    max-width: 440px; width: 100%;
}
.complete-icon    { font-size: 52px; color: #E8603C; margin-bottom: 14px; }
.complete-title   { font-size: 22px; font-weight: 700; color: #2C1A0E; margin-bottom: 6px; }
.complete-score   { font-size: 46px; font-weight: 700; color: #E8603C; margin: 10px 0; }
.complete-sub     { font-size: 13px; color: #A08060; margin-bottom: 24px; }
.complete-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ================================================
   TABLEAU PROGRESSION
   ================================================ */

.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.history-table th {
    text-align: left; font-size: 10px; font-weight: 700; color: #A08060;
    padding: 0 12px 10px;
    border-bottom: 0.5px solid #E8D8C4;
    text-transform: uppercase; letter-spacing: .05em;
}
.history-table td { padding: 10px 12px; border-bottom: 0.5px solid #F8F0E8; color: #2C1A0E; }
.history-table td.muted { color: #A08060; }

.rate-pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.rate-high { background-color: #E0F0D0; color: #3A6A10; }
.rate-mid  { background-color: #FEF0DC; color: #8A5A10; }
.rate-low  { background-color: #FDE8E0; color: #993C1D; }

/* ================================================
   ÉTAT VIDE
   ================================================ */

.empty-state       { text-align: center; padding: 36px 16px; color: #A08060; }
.empty-state-icon  { font-size: 34px; color: #E8D8C4; margin-bottom: 12px; }
.empty-state-title { font-size: 15px; font-weight: 700; color: #C0A890; margin-bottom: 6px; }
.empty-state-sub   { font-size: 12px; margin-bottom: 14px; }

/* ================================================
   UTILITAIRES
   ================================================ */

.hidden      { display: none !important; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.mt-16       { margin-top: 16px; }
.text-center { text-align: center; }

/* ================================================
   RESPONSIVE MOBILE ≤ 640px
   Sidebar → barre du bas
   Footer → fin du contenu (pas fixed)
   ================================================ */

@media (max-width: 640px) {

    .sidebar {
        top: auto; bottom: 0; left: 0; right: 0;
        width: 100%; height: 56px;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;    /* ← ajoute ça */
        padding: 0;
        border-top: 0.5px solid #3A2210;
    }
    .sidebar-avatar   { margin-bottom: 0; width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
    .sidebar-links    { flex-direction: row; flex: none; }
    .sidebar-link     { height: 56px; width: 52px; flex-shrink: 0; }
    .sidebar-logout   { height: 56px; width: 52px; margin-top: 0; flex-shrink: 0; }  /* ← flex-shrink: 0 */

    /* Espace en bas pour éviter le chevauchement avec la barre */
    .main-wrapper     { margin-left: 0; margin-bottom: 56px; }

    /* Sur mobile le footer est juste à la fin du contenu,
       pas besoin d'être sticky (l'utilisateur scroll de toute façon) */
    .footer { flex-direction: column; text-align: center; padding: 10px; }

    /* Contenu */
    .hero-banner      { padding: 12px 16px; }
    .hero-greeting    { font-size: 17px; }
    .hero-stats       { gap: 12px; }
    .hero-stat-number { font-size: 17px; }
    .page-content     { padding: 14px; }

    /* Deux colonnes → une seule */
    .two-col          { grid-template-columns: 1fr; }
    .two-col-left     { border-right: none; border-bottom: 0.5px solid #E8D8C4; }

    /* Éditeur */
    .editor-meta-row  { flex-direction: column; }

    /* Quiz */
    .rating-row       { flex-direction: column; }
    .score-section    { flex-direction: column; text-align: center; }
    .quiz-card-word   { font-size: 28px; }

    /* Login : cacher le panneau gauche décoratif */
    .auth-left        { display: none; }
    .auth-right       { width: 100%; padding: 24px 20px; }

    /* Modes */
    .mode-list        { max-width: 100%; }
}