/* Pages "Laisser un témoignage" et "Relire un témoignage" (MMBT) */
body.page-avis { padding-top: 40px; }
.page-avis .idee { margin-top: 0; }
.idee select { font: inherit; font-weight: 400; color: var(--text); background: var(--card-bg, #000); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%; }
.idee label.accord { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); }
.idee label.accord input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--or); }
.idee .retour { text-align: center; margin: 18px 0 0; }
.idee .retour a { color: var(--or); }
.page-avis .avis { margin-bottom: 16px; }
.choix-avis { display: flex !important; gap: 10px; flex-wrap: wrap; }
.choix-avis button { flex: 1; }
.idee button.secondaire { background: transparent; color: #ef9a9a; border: 1px solid #ef9a9a55; }
.page-avis footer { margin-top: 30px; color: var(--muted); font-size: .85rem; }
.choix-avis > p, .choix-avis > label { flex: 1 1 100%; margin: 0; }
.choix-avis label a { color: var(--or); font-weight: 400; }
.choix-avis textarea, .choix-avis input:not([type=hidden]) { width: 100%; }

/* Note en étoiles du formulaire « Laisser un témoignage » */
.idee fieldset.etoiles { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.idee .etoiles legend { font-size: .92rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.etoiles-rang { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.etoiles-rang input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* « html body » devant : ces règles gagnent sur celles des thèmes (ex. thème clair qui colore tous les libellés en vert foncé). */
/* Étoile vide : gris très léger, lisible sur fond sombre comme sur fond clair. Étoile choisie : or. */
html body .idee .etoiles-rang label { display: block; font-size: 2.2rem; line-height: 1; color: color-mix(in srgb, var(--text) 18%, transparent); cursor: pointer; transition: color .15s, transform .15s; }
html body .etoiles-rang input:checked ~ label, html body .etoiles-rang label:hover, html body .etoiles-rang label:hover ~ label { color: #e2b93b; }
.etoiles-rang input:focus-visible + label { outline: 2px solid var(--or); outline-offset: 2px; border-radius: 6px; }
.etoiles-rang label:active { transform: scale(1.15); }
.etoiles-texte { color: var(--or); font-weight: 600; min-height: 1.2em; }
.etoiles .sr, .note-avis .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Liste « Quelle appli ? » : texte foncé sur fond blanc dans le thème clair (avant : texte foncé sur fond noir, illisible) */
html[data-theme="B"] .idee select { background: #fff; color: var(--text); }
