/* Page des avis et page d'administration des avis. Complète pages.css. */

.masque-visuel {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── bilan ── */
.bilan { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 0; }
.bilan-note {
  font-size: clamp(3rem, 8vw, 4.4rem); font-weight: 600; letter-spacing: -0.05em;
  line-height: 1; margin: 0; font-variant-numeric: tabular-nums;
}
.bilan-note small { font-size: .38em; color: var(--fg-dim); font-weight: 500; letter-spacing: 0; }
.bilan-total { margin: 4px 0 0; color: var(--fg-mute); font-size: 15px; }
.etoiles { margin: 0; font-size: 20px; letter-spacing: 4px; color: var(--fg); line-height: 1; }
.etoiles .vide-etoile { color: var(--fg-dim); opacity: .45; }

/* ── liste ── */
.liste-avis { display: grid; gap: 14px; }
.avis {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: clamp(20px, 3vw, 28px);
}
.avis-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.avis-qui { margin: 0; font-weight: 600; color: var(--fg); }
.avis-qui span { font-weight: 400; color: var(--fg-mute); }
.avis-date { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-dim); }
.avis-texte { margin: 12px 0 0; color: var(--fg-mute); white-space: pre-line; max-width: none; overflow-wrap: anywhere; }
.avis-reponse {
  margin: 18px 0 0; padding: 14px 0 0 16px; border-left: 2px solid var(--line);
  color: var(--fg-mute); font-size: 15.5px; white-space: pre-line;
}
.avis-reponse b { display: block; color: var(--fg); font-weight: 600; font-size: 13px;
  font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.vide { color: var(--fg-mute); border: 1px dashed var(--line); border-radius: 16px; padding: 26px; margin: 0; }

/* ── formulaire ── */
.depot {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(24px, 4vw, 40px) !important;
  background: var(--surface); border: 1px solid var(--fg); border-radius: 18px;
}
.depot h2 { margin-bottom: 8px; }
form { display: grid; gap: 20px; margin-top: 22px; }
form label { display: grid; gap: 8px; font-size: 14.5px; color: var(--fg-mute); }
.champs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
input[type="text"], input[type="password"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);   /* 16 px : sinon iOS zoome */
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 1px; border-color: transparent; }
::placeholder { color: var(--fg-dim); }

fieldset.notation { border: 0; padding: 0; margin: 0; }
fieldset.notation legend { font-size: 14.5px; color: var(--fg-mute); padding: 0; margin-bottom: 6px; }
/* Étoiles : rangées de 5 à 1 dans le HTML et affichées à l'envers, ce qui
   permet d'allumer « celle-ci et toutes celles avant » avec le seul sélecteur ~. */
.etoiles-choix { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.etoiles-choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-choix label {
  display: block; font-size: 38px; line-height: 1; cursor: pointer; padding: 2px 4px;
  color: var(--fg-dim); opacity: .4; transition: opacity .12s, transform .12s;
}
.etoiles-choix label:hover, .etoiles-choix label:hover ~ label,
.etoiles-choix input:checked ~ label { color: var(--fg); opacity: 1; }
.etoiles-choix label:active { transform: scale(.9); }
.etoiles-choix input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 6px; }

.accord { grid-template-columns: auto 1fr; align-items: start; gap: 12px !important; font-size: 14px !important; }
.accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fg); }
.miel { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erreur { margin: 0; color: #ff9d8a; font-size: 15px; }
button.bouton { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; margin-top: 0; }
button.bouton[disabled] { opacity: .5; cursor: progress; }

/* ── administration ── */
.admin-ligne { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.admin-ligne label { flex: 1 1 14rem; }
.lien-invitation {
  margin-top: 16px; padding: 14px 16px; background: var(--bg); border: 1px dashed var(--line);
  border-radius: 10px; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; color: var(--fg);
}
.petit { font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 999px;
  padding: 8px 14px; border: 1px solid var(--line); background: transparent; color: var(--fg); }
.petit:hover { border-color: var(--fg); }
.petit.plein { background: var(--fg); color: var(--bg-deep); border-color: var(--fg); }
.petit.danger { color: #ff9d8a; border-color: color-mix(in oklch, #ff9d8a 45%, transparent); }
.avis-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.etat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 10px; border: 1px solid var(--line); color: var(--fg-mute); }
.etat.publie { color: #8ee6b0; border-color: color-mix(in oklch, #8ee6b0 45%, transparent); }
.etat.attente { color: #ffd479; border-color: color-mix(in oklch, #ffd479 45%, transparent); }
.etat.refuse { color: #ff9d8a; border-color: color-mix(in oklch, #ff9d8a 45%, transparent); }
