/* Page de collecte Boost Core : fidèle aux maquettes validées le 11/11/2026 */
:root {
  --fond: #F5F4F0;
  --carte: #FFFFFF;
  --texte: #1C1B19;
  --doux: #57534D;
  --bord: #E4E1DA;
  --champ: #C9C4BA;
  --vert: #0E5E5B;
  --vert-clair: #EEF5F4;
  --orange: #8A4B0F;
  --orange-clair: #FCEFD9;
  --bleu: #1F4E9C;
  --bleu-clair: #E3ECFA;
  --ok: #1F6B3A;
  --ok-clair: #E3F3E8;
  --violet: #5B3A9C;
  --violet-clair: #EFE8FA;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2978FB; outline-offset: 2px; }

.page { max-width: 560px; margin: 0 auto; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.chargement, .message { padding: 60px 24px; text-align: center; color: var(--doux); font-size: 16px; line-height: 1.5; }

/* En-tête */
.entete { background: var(--carte); padding: 28px 20px 22px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--bord); }
@media (min-width: 560px) { .entete { border: 1px solid var(--bord); border-top: 0; border-radius: 0 0 16px 16px; } }
.entete-titres { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.entete h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; }
.entete .sous-titre { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.entete .resume { margin: 0; font-size: 15px; line-height: 1.5; color: var(--doux); text-align: center; }
.dates { display: flex; flex-direction: column; gap: 8px; background: var(--vert-clair); border-radius: 12px; padding: 14px 16px; }
.date { display: flex; gap: 10px; align-items: baseline; font-size: 14px; line-height: 1.45; }
.date strong { color: var(--vert); min-width: 92px; }
.avancee { display: flex; flex-direction: column; gap: 6px; }
.avancee-ligne { display: flex; justify-content: space-between; font-size: 13px; color: var(--doux); }
.avancee-ligne span:last-child { font-weight: 600; color: var(--texte); }
.barre { height: 8px; background: var(--bord); border-radius: 4px; overflow: hidden; }
.barre div { height: 8px; background: var(--vert); transition: width .3s; }

/* Rubriques */
.rubrique { margin: 8px 20px 0; font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rubrique-intro { margin: -12px 20px 0; font-size: 13px; line-height: 1.5; font-style: italic; color: var(--doux); }

/* Blocs */
.bloc { margin: 0 16px; background: var(--carte); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--bord); }
.bloc-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bloc-titre { display: flex; align-items: center; gap: 10px; }
.bloc-titre h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pastille { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.p-avis { background: #FCEFD9; } .p-expert { background: #FFF4CC; } .p-story { background: #E3ECFA; }
.p-coeur { background: #FBE4E4; } .p-reserve { background: #EDE7F6; } .p-annexe { background: #E8F0EC; }
.etiquette { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.e-valider { color: var(--orange); background: var(--orange-clair); }
.e-raconter { color: var(--bleu); background: var(--bleu-clair); }
.e-correction { color: var(--violet); background: var(--violet-clair); }
.e-ok { color: var(--ok); background: var(--ok-clair); }
.bloc-compact { padding: 16px 18px; }

/* Posts */
.encart { background: var(--fond); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.encart-titre { font-size: 12px; font-weight: 700; color: var(--doux); }
.criteres { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.criteres li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.criteres svg { flex-shrink: 0; margin-top: 2px; }
.apercu { border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.apercu img { display: block; width: 100%; height: auto; }
.apercu-texte { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.demande { font-style: italic; font-size: 14px; line-height: 1.5; margin: 0; }

/* Boutons */
.boutons { display: flex; flex-direction: column; gap: 10px; }
.boutons-ligne { display: flex; gap: 10px; }
.btn { min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; }
.btn-plein { border: 0; background: var(--vert); color: #FFFFFF; font-size: 16px; }
.btn-plein:hover { background: #0A4644; }
.btn-ligne { border: 1.5px solid var(--champ); background: var(--carte); color: var(--texte); }
.btn-ecoute { border: 0; background: #C2410C; color: #FFFFFF; font-size: 15px; }
.ecoute { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: #9A3412; background: #FFF1E6; border-radius: 10px; padding: 10px 12px; }
.avancee-haut { display: flex; flex-direction: column; gap: 4px; }
.avancee-haut .avancee-ligne { font-size: 12px; }
.avancee-haut .barre, .avancee-haut .barre div { height: 5px; }
.envoye { margin: 0; font-size: 14px; line-height: 1.45; color: var(--vert); background: var(--vert-clair); border-radius: 10px; padding: 10px 12px; }
.confirme { margin: 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--vert); }
.avancee-bas { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 12px 14px; }
.btn-ligne:hover { border-color: var(--doux); }
.btn-grand { min-height: 52px; flex: 1 1 0; }
.btn-final { min-height: 56px; border-radius: 14px; font-size: 17px; font-weight: 700; }
.lien { align-self: flex-start; border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--vert); text-decoration: underline; text-align: left; line-height: 1.45; }
.choix { display: flex; gap: 8px; }
.choix button { flex: 1 1 0; min-height: 44px; border: 1.5px solid var(--champ); border-radius: 10px; background: var(--carte); color: var(--texte); font-size: 15px; font-weight: 500; }
.choix button[aria-pressed="true"] { border: 2px solid var(--vert); background: var(--vert-clair); color: var(--vert); font-weight: 600; }

/* Questions */
.question { font-size: 16px; font-weight: 600; line-height: 1.4; }
.exemple { margin: 0; font-size: 14px; line-height: 1.5; font-style: italic; color: var(--doux); white-space: pre-line; }
.legende { font-size: 14px; font-weight: 600; }
.petit { margin: 0; font-size: 13px; line-height: 1.45; color: var(--doux); }
textarea, input[type="text"], input[type="number"] { width: 100%; border: 1.5px solid var(--champ); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; background: var(--carte); color: var(--texte); }
textarea { min-height: 120px; resize: vertical; }
input[type="text"] { min-height: 46px; padding: 0 14px; border-radius: 10px; }
input[type="number"] { width: 130px; min-height: 48px; padding: 0 14px; border-radius: 10px; font-size: 17px; }
.etat-sauvegarde { font-size: 12px; color: var(--doux); min-height: 16px; }

/* Encadré « Le détail qui montre votre valeur » et étiquettes « Pensez à » */
.valeur { background: var(--vert-clair); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.valeur-titre { margin: 0; font-size: 13px; font-weight: 700; color: var(--vert); }
.groupe { font-size: 11px; font-weight: 700; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.puces { display: flex; flex-wrap: wrap; gap: 5px; }
.puce { font-size: 12px; font-weight: 500; color: var(--vert); background: var(--carte); border: 1px solid #A9CBC8; border-radius: 999px; padding: 3px 9px; }
.puce-pleine { font-size: 13px; font-weight: 600; color: var(--vert); background: var(--vert-clair); border: 0; padding: 6px 12px; }
.pensez { display: flex; flex-direction: column; gap: 8px; }
.pensez > span { font-size: 13px; font-weight: 600; color: var(--doux); }

/* Photo */
.photo-ok { display: flex; gap: 12px; align-items: center; background: var(--fond); border-radius: 12px; padding: 10px; }
.photo-ok img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.photo-ok span { font-size: 14px; font-weight: 600; }
.photo-actions { display: flex; gap: 16px; margin-top: 2px; }

/* Fin de page */
.fin { margin: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.fin p { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--doux); }
.rappel { display: flex; flex-direction: column; gap: 12px; background: var(--orange-clair); border-radius: 14px; padding: 16px; }
.rappel p { text-align: left; }
.rappel p:first-child { font-size: 15px; font-weight: 600; color: var(--texte); }
.merci { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; background: var(--ok-clair); border-radius: 14px; padding: 18px 16px; }
.merci strong { font-size: 18px; color: var(--ok); }
.merci p { color: var(--texte); }
.recu { margin: 12px 20px 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ok); text-align: center; }
.pied { margin: 8px 20px 0; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 13px; color: var(--doux); }
.pied span:first-child { display: flex; align-items: center; gap: 6px; }
.erreur { color: #B42318; font-size: 13px; }
[hidden] { display: none !important; }
