/* Page de collecte : même univers que l'accueil (crème, vert, Noto Sans avec les lettres du fon) */
@font-face { font-family: "Noto Sans OVCS"; font-weight: 400 900; font-display: swap;
  src: url(fonts/noto-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans OVCS"; font-weight: 400 900; font-display: swap;
  src: url(fonts/noto-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans OVCS"; font-weight: 400 900; font-display: swap;
  src: url(fonts/noto-sans-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --creme: #fbf3e4; --creme-f: #eedfc2; --encre: #2b2118; --texte-2: #4a3d30; --discret: #6b5a49;
  --vert: #3a8f6a; --vert-f: #24694b; --vert-clair: #d3ebdd; --jaune: #f1d27a;
  --rouge: #d8604c; --rouge-f: #a8442f;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100dvh; font-family: "Noto Sans OVCS", "Noto Sans", system-ui, sans-serif; color: var(--encre); background: var(--creme); }
.liseré { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--vert) 0 33.3%, var(--jaune) 33.3% 66.6%, var(--rouge) 66.6%); }

.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1000px; margin: 0 auto; padding: 22px 20px 0; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; }
.marque b { font-size: 1.05rem; letter-spacing: .2em; }
.retour { padding: 8px 0; font-size: .9rem; font-weight: 700; color: var(--vert-f); text-decoration: none; }
.retour:hover { text-decoration: underline; text-underline-offset: 4px; }

main { max-width: 1000px; margin: 0 auto; padding: 18px 20px 64px; }
.titre { margin-bottom: 18px; }
.surtitre { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--vert-f); }
h1 { margin: .25em 0 .3em; font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.chapeau { margin: 0; max-width: 40em; font-size: 1.02rem; line-height: 1.55; color: var(--texte-2); }

.etapes { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: e; }
.etapes li { counter-increment: e; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #ffffffa6;
  box-shadow: inset 0 0 0 1.5px var(--creme-f); font-size: .92rem; line-height: 1.35; }
.etapes li::before { content: counter(e); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--vert); color: #fff; font-weight: 800; font-size: .95rem; }

.grille { display: grid; gap: 16px; align-items: start; }
.colonne { display: grid; gap: 16px; }
.carte { padding: 18px; border-radius: 24px; background: #ffffffb8; box-shadow: inset 0 0 0 1.5px var(--creme-f), 0 18px 36px -28px #2b211866; }
.carte h2 { margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--discret); }

label { display: block; margin: 12px 0 5px; font-size: .9rem; font-weight: 700; }
.deux > div:first-child label, .carte label:first-of-type { margin-top: 0; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--creme-f); border-radius: 14px; background: var(--creme); color: var(--encre);
  font: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid #3a8f6a55; border-color: var(--vert); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; font-size: 1.1rem; }
select { appearance: none; padding-right: 38px; text-overflow: ellipsis;
  background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232b2118' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.deux { display: grid; gap: 0 12px; }

.progres-texte { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: var(--vert-f); }
.barre { height: 8px; border-radius: 999px; background: var(--creme-f); overflow: hidden; }
.barre i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--vert); transition: width .4s; }
.numero { display: inline-block; margin: 16px 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--vert-clair); color: var(--vert-f); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
#phrase-fr { margin: 0 0 4px; font-size: clamp(1.3rem, 4vw, 1.6rem); font-weight: 800; line-height: 1.3; }
.nav { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; margin-top: 14px; }

button { font: inherit; cursor: pointer; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--vert-f); color: #fff; font-size: 1.02rem; font-weight: 800; box-shadow: 0 10px 22px -14px #0008; }
.bouton:active:not(:disabled) { transform: scale(.97); }
.bouton.sec { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px #2b211833; }
.bouton.carre { padding: 0; border-radius: 14px; font-size: 1.1rem; }
.bouton svg { width: 20px; height: 20px; }
button:disabled { opacity: .4; cursor: default; }
.actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }

/* Le grand cercle : le même que l'accueil */
.zone-micro { position: relative; display: grid; place-items: center; width: 190px; height: 190px; margin: 4px auto 6px; }
.zone-micro::before, .zone-micro::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 2px solid var(--vert); opacity: 0; pointer-events: none; }
body[data-enreg="oui"] .zone-micro::before { animation: onde 1.8s ease-out infinite; border-color: var(--rouge); }
body[data-enreg="oui"] .zone-micro::after { animation: onde 1.8s .9s ease-out infinite; border-color: var(--rouge); }
@keyframes onde { 0% { transform: scale(.85); opacity: .5; } 100% { transform: scale(1.3); opacity: 0; } }
#micro { position: relative; display: grid; place-items: center; width: 140px; height: 140px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--vert);
  box-shadow: 0 18px 40px -12px #1f5a4180, inset 0 -8px 18px #0002; transition: transform .12s, background .3s; }
#micro::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 2px solid #ffffff38; pointer-events: none; }
#micro:active:not(:disabled) { transform: scale(.96); }
#micro svg { width: 44%; height: 44%; }
#micro.enregistre { background: var(--rouge); box-shadow: 0 18px 40px -12px #8a3a3280, inset 0 -8px 18px #0002; animation: pouls 1.1s ease-in-out infinite; }
@keyframes pouls { 50% { transform: scale(1.05); } }
#etat { min-height: 2.8em; margin: 0 0 10px; text-align: center; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--vert-f); }
#etat[data-ton="erreur"] { color: var(--rouge-f); }
audio { display: block; width: 100%; height: 44px; margin: 6px 0 12px; }
.aide { display: block; margin-top: 6px; font-size: .84rem; line-height: 1.4; color: var(--discret); }
.aide:empty { display: none; }

@media (min-width: 720px) {
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .deux { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
  .carte { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
