/* Pollen : thème végétal, simple et sans dépendance. */
:root {
    --vert: #2f6b3f;
    --vert-fonce: #1f4a2b;
    --vert-clair: #e8f1ea;
    --miel: #e0a526;
    --fond: #f4f6f1;
    --carte: #ffffff;
    --texte: #22302a;
    --discret: #66726a;
    --bordure: #dde4dc;
    --rouge: #a12626;
    --rouge-clair: #fde8e8;
    --rayon: 12px;
    --ombre: 0 1px 2px rgba(31, 74, 43, .08), 0 4px 14px rgba(31, 74, 43, .06);
}

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; color: var(--texte); background: var(--fond); line-height: 1.5; }
a { color: var(--vert); }
a:hover { color: var(--vert-fonce); }
h1 { font-size: 1.7rem; margin: 0 0 1.5rem; color: var(--vert-fonce); }
h2 { font-size: 1.15rem; margin: 2rem 0 .8rem; color: var(--vert-fonce); }

/* Barre du haut */
.barre { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.5rem; background: var(--vert-fonce); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); flex-wrap: wrap; }
.barre .logo { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.25rem; letter-spacing: .02em; }
.logo-fleur { color: var(--miel); }
.menu { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; }
.menu a { color: #d6e6da; text-decoration: none; padding: .4rem .8rem; border-radius: 8px; font-size: .95rem; }
.menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
button.lien { background: none; color: #d6e6da; text-decoration: underline; padding: 0; border-radius: 0; font-size: .9rem; }
button.lien:hover { background: none; color: #fff; }

main { max-width: 52rem; margin: 2rem auto 4rem; padding: 0 1rem; }

/* Formulaires et boutons */
input[type="text"], input[type="password"], input[type="file"], textarea, select {
    width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; color: var(--texte);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--vert); outline-offset: 1px; border-color: var(--vert); }
textarea { resize: vertical; }
label { font-weight: 600; font-size: .95rem; }
button, .bouton {
    display: inline-block; font: inherit; font-weight: 600; padding: .6rem 1.1rem; border: 0; border-radius: 8px;
    background: var(--vert); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s;
}
button:hover, .bouton:hover { background: var(--vert-fonce); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
.formulaire { display: grid; gap: 1rem; }
.formulaire label { display: grid; gap: .35rem; }
fieldset { border: 1px solid var(--bordure); border-radius: 8px; padding: .6rem 1rem 1rem; margin: 1rem 0; background: #fff; }
legend { font-weight: 600; padding: 0 .4rem; }
fieldset label { font-weight: 500; margin-right: 1.2rem; }
input[type="checkbox"] { accent-color: var(--vert); width: 1.05rem; height: 1.05rem; vertical-align: middle; }

/* Messages */
.erreur { background: var(--rouge-clair); color: var(--rouge); padding: .75rem 1rem; border-radius: 8px; border-left: 4px solid var(--rouge); }
.succes { background: #e3f4e7; color: #1b5e2a; padding: .75rem 1rem; border-radius: 8px; border-left: 4px solid var(--vert); }

/* Page de connexion */
.page-publique { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #e8f1ea 0%, #f7f1dc 100%); }
.page-publique .barre { background: transparent; box-shadow: none; justify-content: center; }
.page-publique .barre .logo { color: var(--vert-fonce); font-size: 1.8rem; }
.page-publique main { width: 100%; max-width: 24rem; margin-top: 3vh; }
.page-publique main > h1 { text-align: center; font-size: 1.2rem; color: var(--discret); font-weight: 500; }
.page-publique .formulaire { background: var(--carte); padding: 1.5rem; border-radius: var(--rayon); box-shadow: var(--ombre); }

/* Statuts, historique, tableau de bord, réglages */
.badge { display: inline-block; padding: .1rem .65rem; border-radius: 1rem; font-size: .8rem; font-weight: 600; background: #e6e9e4; color: var(--texte); }
.badge-publie { background: #d8f0dd; color: #1d5a2b; }
.badge-echec { background: var(--rouge-clair); color: var(--rouge); }
.badge-en-attente { background: #e6eefc; color: #1f4a8a; }
.badge-sans-nouvelles { background: #fdf0d5; color: #8a5a00; }
.badge-brouillon { background: #eee; color: #555; }
.demande { display: flex; gap: 1.2rem; background: var(--carte); padding: 1.1rem; margin-bottom: 1rem; border-radius: var(--rayon); box-shadow: var(--ombre); }
.miniature { width: 7rem; height: 7rem; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.demande-contenu { flex: 1; min-width: 0; }
.demande-contenu p { margin: .25rem 0; }
.demande-date { color: var(--discret); font-size: .85rem; }
.canal { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0; padding-top: .5rem; border-top: 1px solid var(--bordure); }
.canal-erreur { color: var(--rouge); font-size: .9rem; }
.relance { margin: 0 0 0 auto; }
.relance button { padding: .25rem .7rem; font-size: .85rem; background: #fff; color: var(--vert); border: 1px solid var(--vert); }
.relance button:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.a-surveiller { background: #fff6e0; border-left: 4px solid var(--miel); padding: .2rem 1.2rem 1rem; margin: 0 0 1.5rem; border-radius: var(--rayon); }
.a-surveiller h2 { margin-top: 1rem; }
.a-surveiller .canal { border-top-color: #f0e0b0; }
.pagination { display: flex; justify-content: space-between; margin: 1.5rem 0; }
.incidents { padding-left: 1.2rem; color: var(--rouge); font-size: .9rem; }
section { margin-bottom: 2rem; }
.resultat-test { background: var(--carte); padding: .8rem 1.1rem; border-radius: 8px; border: 1px solid var(--bordure); }
.texte-long { white-space: pre-wrap; }
main > p:first-of-type .bouton { margin-right: .8rem; }
