/* Verified client reviews (D306): the form, the reviews page, the verification page and Jade's private page.
   Brand: tokens and fonts from bubble-brand (Hanken Grotesk for UI, Spectral for running text, D18); same
   header, card, buttons and footer as the course questionnaire page (cours-questionnaire.html). */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: var(--serif); font-size: 1.1rem; line-height: 1.6; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 clamp(var(--page-pad-min), 5vw, var(--page-pad-max)); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: var(--r-focus); }
a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: .15em; }

.header { border-bottom: 1px solid var(--hair-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; color: var(--black); line-height: 0; }
.logo svg { height: 28px; width: auto; }
.header-link { font-family: var(--sans); font-size: .95rem; color: var(--ink); }

main { padding: clamp(var(--section-y-min), 9vw, 4.5rem) 0; }
.eyebrow { font-family: var(--sans); color: var(--violet-ink); font-size: .95rem; font-weight: 600; margin: 0 0 .6rem; }
h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
h2 { font-family: var(--sans); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 2rem 0 .6rem; }
.lede { color: var(--muted); margin: 0 0 2rem; }
.prose p, .prose li { max-width: var(--prose-max, 65ch); }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }

.card { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); box-shadow: var(--shadow-form); padding: var(--pad-card); }

/* Form */
.field { margin: 0 0 1.4rem; border: 0; padding: 0; }
.field > label, .field legend { display: block; font-family: var(--sans); font-weight: 600; font-size: 1rem; margin: 0 0 .45rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="url"], input[type="password"], input[type="month"], select, textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1px solid var(--faint); border-radius: var(--r-control); padding: .75rem 1rem; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); outline: none; }
.hint { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin: .4rem 0 0; }
.count { font-family: var(--sans); font-size: .8rem; color: var(--muted); text-align: right; margin: .25rem 0 0; font-variant-numeric: tabular-nums; }

.rating { display: flex; gap: .4rem; flex-wrap: wrap; }
.rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating label { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--faint); border-radius: var(--r-control); font-family: var(--sans); font-weight: 600; cursor: pointer; background: var(--card); }
.rating input:checked + label { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rating input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; }

.notice { background: var(--warm); border-radius: var(--r); padding: 1rem 1.2rem; font-family: var(--sans); font-size: .95rem; margin: 0 0 1.6rem; }
.notice ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-family: var(--sans); font-size: 1rem; }
.consent input { width: 22px; height: 22px; margin: .15rem 0 0; flex: none; accent-color: var(--ink); }
.rgpd { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.btn { font-family: var(--sans); font-size: 1rem; font-weight: 600; border-radius: var(--r-button); padding: .85rem 1.5rem; min-height: 48px; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-primary:hover, .btn-primary:active { background: var(--violet-ink); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[disabled]:hover { opacity: .55; cursor: wait; transform: none; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.status { font-family: var(--sans); font-size: .95rem; color: var(--muted); min-height: 1.5em; margin: .9rem 0 0; }
.status.error { color: var(--loss); }
.done-title { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; margin: 0 0 .5rem; }
.done-title:focus { outline: none; }

/* Reviews list (/avis) */
.avis-summary { font-family: var(--sans); font-size: 1.1rem; margin: 0 0 1.6rem; }
.avis-list { display: grid; gap: 1.1rem; }

/* Private page */
.out { margin-top: 1.4rem; }
.out textarea { min-height: 7rem; font-family: var(--sans); font-size: .95rem; }
.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; }
.table th, .table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--hair-soft); vertical-align: top; }

.footer { background: var(--ink); color: var(--white); padding: 2rem 0; font-family: var(--sans); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer .logo { color: var(--white); }
.footer .logo svg { height: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer a { color: var(--white); opacity: .8; padding: .4rem 0; text-decoration: none; }
.footer a:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
