:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { margin: 0; background: #0b0b0c; color: #fff; }

.topbar{
    position: sticky; top: 0; z-index: 10;
    display:flex; gap:12px; align-items:center; justify-content:space-between;
    padding: 12px 12px;
    background: rgba(20,20,22,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.title{ font-weight:700; font-size: 18px; }
.controls{ display:flex; gap:10px; align-items:center; }
select, button{
    background:#1a1a1e; color:#fff;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    padding:10px 12px;
    font-size:14px;
}
button{ cursor:pointer; }

main{ padding: 12px; }

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

.card{
    background:#141418;
    border:1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    overflow:hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.imgWrap{ width:100%; aspect-ratio: 1 / 1; background:#0f0f12; }
.imgWrap img{
    width:100%; height:100%;
    object-fit: cover;
    display:block;
}
.noimg{
    width:100%; height:100%;
    display:flex; align-items:center; justify-content:center;
    font-size:42px; opacity:.5;
}

.word{
    padding: 10px 12px 0;
    font-size: 16px;
    font-weight: 700;
}

.row{
    display:flex; align-items:center; justify-content:space-between;
    padding: 10px 12px 12px;
    gap: 10px;
}
.speakBtn{
    padding: 8px 10px;
    border-radius: 12px;
}
.cat{
    opacity:.75;
    font-size: 12px;
}

.footer{
    padding: 18px 12px 30px;
    text-align:center;
    opacity:.7;
}
.footer a{ color:#fff; }
.translation {
    font-size: 0.9em;
    opacity: 0.7;
}
.btnLink{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    background:#1a1a1e; color:#fff;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    padding:10px 12px;
    font-size:14px;
}

.quizWrap{ max-width: 760px; margin: 0 auto; }
.quizCard{
    background:#141418;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.quizTop{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.quizQ{ font-size:18px; font-weight:700; margin:10px 0; }
.quizChoices{ display:grid; gap:10px; }
.quizChoices button{ width:100%; text-align:left; }
.quizMedia{ width:100%; border-radius:14px; overflow:hidden; background:#0f0f12; }
.quizMedia img{ width:100%; height:auto; display:block; }
.small{ opacity:.75; font-size:12px; }

.quizChoices button.ok{
    border-color: rgba(80, 200, 120, .9);
    box-shadow: 0 0 0 2px rgba(80, 200, 120, .35) inset;
}

.quizChoices button.bad{
    border-color: rgba(240, 90, 90, .9);
    box-shadow: 0 0 0 2px rgba(240, 90, 90, .25) inset;
}

.quizChoices button:disabled{
    opacity: .9;
    cursor: default;
}
.choiceRow{
    display:flex;
    gap:10px;
    align-items:stretch;   /* mêmes hauteurs */
}

.choiceBtn{
    flex: 1;
    padding: 10px 12px;
    border-radius: 14px;
}

.choiceSpeak{
    flex: 0 0 44px;        /* largeur fixe */
    width: 44px;
    padding: 0 !important; /* enlève le padding global des buttons */
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 14px;
    line-height: 1;
}


.choiceRow.ok .choiceBtn{
    border-color: rgba(80, 200, 120, .95) !important;
    box-shadow: 0 0 0 2px rgba(80, 200, 120, .25) inset;
}

.choiceRow.bad .choiceBtn{
    border-color: rgba(240, 90, 90, .95) !important;
    box-shadow: 0 0 0 2px rgba(240, 90, 90, .18) inset;
}

.choiceBtn:disabled{
    opacity: .92;
    cursor: default;
}
.choiceRow{ display:flex; gap:10px; align-items:stretch; }
.choiceBtn{
    padding: 10px 12px;     /* garde confortable */
}
.choiceSpeak{ width:52px; }
/* ===========================
 *   🌸 PASTEL ROSE THEME
 *   =========================== */

body{
    background: #fff6fb;
    color: #4b2e3f;
}

.topbar{
    background: rgba(255, 214, 234, 0.9);
    border-bottom: 1px solid rgba(255, 170, 210, .4);
}

.card,
.quizCard{
    background: #fff;
    border: 1px solid rgba(255, 170, 210, .4);
    box-shadow: 0 8px 24px rgba(255, 160, 200, .15);
}

/* boutons généraux */
button,
.btnLink,
select{
    background: #ffe6f2;
    color: #4b2e3f;
    border: 1px solid rgba(255, 160, 200, .5);
}

button:hover{
    background: #ffd3ea;
}

/* choix quiz */
.choiceBtn{
    background: #fff0f8;
    border: 2px solid rgba(255, 170, 210, .5) !important;
}

.choiceSpeak{
    background: #ffd9ec;
    border: 2px solid rgba(255, 170, 210, .5) !important;
}

/* bonne réponse */
.choiceRow.ok .choiceBtn,
.choiceBtn.ok{
    border-color: #ff8fcf !important;
    box-shadow: 0 0 0 3px rgba(255, 143, 207, .3);
}

/* mauvaise réponse */
.choiceRow.bad .choiceBtn,
.choiceBtn.bad{
    border-color: #ff6fae !important;
    box-shadow: 0 0 0 3px rgba(255, 111, 174, .25);
}

/* score / feedback */
#feedback{
color: #d94f9d;
font-weight: 600;
}

/* petites touches cute */
.quizQ{
    font-weight: 700;
    color: #d94f9d;
}
