:root {
	--vert: #1a674e; --vert-fonce: #124a38; --fond: #fff6d9; --texte: #1b2b1f; --ocre: #d18c3f; --rouge: #a8362c; --gris: #6b7a6f; --carte: #ffffff;
	--rayon: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--texte); min-height: 100vh; }
.barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; padding-top: calc(.6rem + env(safe-area-inset-top)); background: var(--vert); color: #fff; }
.barre h1 { font-size: 1.15rem; margin: 0; flex: 1; font-weight: 600; }
.btn-icone { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; padding: 0 .4rem; min-width: 44px; min-height: 44px; }
.pastille { background: var(--ocre); color: #000; border-radius: 99px; padding: .1rem .6rem; font-size: .8rem; }
main { padding: 1rem .9rem 5rem; max-width: 40rem; margin: 0 auto; outline: none; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; color: var(--vert-fonce); }
p { margin: .5rem 0; }
.attente, .vide, .aide { color: var(--gris); }
.aide { font-size: .92rem; }
a { color: var(--vert); }

button, .bouton { font: inherit; border: 0; border-radius: var(--rayon); padding: .8rem 1.1rem; min-height: 48px; background: var(--vert); color: #fff; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; text-decoration: none; }
button:disabled { opacity: .5; }
button.secondaire, .bouton.secondaire { background: #e6efe9; color: var(--vert-fonce); }
button.danger { background: var(--rouge); }
button.doute { background: var(--ocre); color: #000; }
button.large { width: 100%; }
button.lien { background: none; color: var(--vert); padding: .3rem; min-height: 0; font-weight: 500; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.actions > * { flex: 1 1 8rem; }

label { display: block; font-weight: 600; margin-top: .9rem; }
input[type=text], input[type=email], input[type=search], textarea, select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid #b7c7bc; border-radius: 10px; background: #fff; color: inherit; margin-top: .25rem; }
textarea { min-height: 4.2rem; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid #f2b24d; outline-offset: 1px; }

.carte { background: var(--carte); border-radius: var(--rayon); padding: .8rem; margin: .8rem 0; box-shadow: 0 1px 3px #0003; }
.carte img.apercu, .carte video.apercu { width: 100%; max-height: 22rem; object-fit: contain; background: #111; border-radius: 8px; display: block; }
.carte .meta { color: var(--gris); font-size: .9rem; margin: .35rem 0; }
.carte .com { font-size: 1.02rem; margin: .4rem 0; }
.etat { display: inline-block; border-radius: 99px; padding: .05rem .7rem; font-size: .85rem; font-weight: 600; }
.etat.en_attente, .etat.envoi { background: #ffe9b8; }
.etat.approuve { background: #cdebd6; color: #0d4a2c; }
.etat.rejete { background: #f6d4d0; color: #7a1d15; }
.etat.erreur { background: #f6d4d0; color: #7a1d15; }

.vignette { display: flex; gap: .7rem; align-items: flex-start; }
.vignette .miniature { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: #ccd; flex: none; }
.vignette .corps { flex: 1; min-width: 0; }
progress { width: 100%; height: .6rem; accent-color: var(--vert); }

.menu { display: grid; gap: .7rem; margin-top: 1rem; }
.menu .bouton, .menu button { justify-content: space-between; text-align: left; }
.compteur { background: var(--ocre); color: #000; border-radius: 99px; padding: 0 .65rem; min-width: 1.8rem; text-align: center; }
.message { pointer-events: none; position: fixed; left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); background: #222; color: #fff; padding: .8rem 1rem; border-radius: 10px; z-index: 20; box-shadow: 0 2px 8px #0006; }
.message.erreur { background: var(--rouge); }
.code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
.bandeau { background: #e6efe9; border-radius: var(--rayon); padding: .7rem .9rem; margin: .8rem 0; }
.bandeau.alerte { background: #ffe9b8; }
details { margin-top: 1rem; }
summary { cursor: pointer; color: var(--vert-fonce); font-weight: 600; }
.cible { background: #eef5f0; border-radius: 8px; padding: .5rem .6rem; margin: .5rem 0; font-size: .95rem; }

.petit { font-size: .92rem; margin-top: .4rem; }
.bandeau.petit { padding: .4rem .6rem; font-size: .9rem; margin: .4rem 0; }
input[type=date] { width: auto; margin-left: .3rem; }
.vignette .corps label.petit { font-weight: 500; }

.cible select { width: 100%; font: inherit; padding: .6rem .5rem; border: 1.5px solid #b7c7bc; border-radius: 10px; background: #fff; margin: .25rem 0 .4rem; }
.cible label.petit { display: block; margin-top: .5rem; }
.cible input[type=date] { width: auto; }

.carte.doublon{opacity:.75}
.carte.doublon .miniature{filter:grayscale(1)}
