:root {
  --fond: #faf8f3; --surface: #fff; --texte: #1f2420; --doux: #66706a; --bord: #e2ddd2;
  --vert: #1d6b47; --vert-fonce: #134d33; --or: #f2c230; --rouge: #b3261e; --orange: #c75b12;
  --rayon: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #151a17; --surface: #1e2420; --texte: #e8ebe8; --doux: #9aa59e; --bord: #323a35;
          --vert: #4caf80; --vert-fonce: #7fd1a8; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
       background: var(--fond); color: var(--texte); display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--vert); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: .4em 0; }
h2 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.doux { color: var(--doux); }
.entete { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem 1rem;
          background: var(--vert); color: #fff; }
.entete a { color: #fff; text-decoration: none; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: .05em; }
.logo::before { content: "☀"; color: var(--or); margin-right: .3em; }
.recherche-entete { flex: 1 1 12rem; }
.recherche-entete input { width: 100%; padding: .45rem .7rem; border-radius: 999px; border: 0; font-size: 1rem; }
.menu { display: flex; gap: .9rem; flex-wrap: wrap; }
.langues { display: flex; gap: .2rem; }
.langues button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 6px;
                  padding: .15rem .4rem; cursor: pointer; font-size: .8rem; }
.langues button[aria-current] { background: #fff; color: var(--vert); }
main.page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1rem; flex: 1; }
main.plein { flex: 1; position: relative; display: flex; }
.pied { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: 1rem; font-size: .85rem; color: var(--doux);
        border-top: 1px solid var(--bord); justify-content: center; }
.pied a { color: var(--doux); }
.messages { max-width: 1100px; margin: .6rem auto 0; padding: 0 1rem; width: 100%; }
.message { padding: .6rem .9rem; border-radius: var(--rayon); background: #e6f3ec; color: #134d33; margin: .3rem 0; }
.message.error { background: #fbe9e7; color: #8c1d18; }
.message.warning { background: #fff4d6; color: #6b4f00; }
.bandeau { text-align: center; padding: 1.5rem 0 1rem; }
.bandeau h1 { font-size: 2.2rem; }
.recherche-grande { display: flex; gap: .5rem; max-width: 40rem; margin: 1rem auto; }
.recherche-grande input { flex: 1; min-width: 0; padding: .75rem 1rem; font-size: 1.1rem; border: 2px solid var(--vert);
                          border-radius: var(--rayon); background: var(--surface); color: var(--texte); }
button, .bouton { display: inline-block; background: var(--vert); color: #fff; border: 0; border-radius: var(--rayon);
                  padding: .65rem 1.1rem; font-size: 1rem; cursor: pointer; text-decoration: none; }
button.secondaire, .bouton.secondaire { background: transparent; color: var(--vert); border: 1.5px solid var(--vert); }
button.danger, a.danger { color: var(--rouge); }
button.danger { background: transparent; border: 1.5px solid var(--rouge); }
button.lien { background: none; color: var(--doux); padding: 0; font-size: .85rem; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: inherit; align-items: center; }
.bandeau .actions { justify-content: center; }
.chiffres { color: var(--doux); }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .deux-colonnes { grid-template-columns: 1fr; gap: 0; } }
ul.liste-provinces, ul.resultats, ul.fil { list-style: none; padding: 0; margin: 0; }
.liste-provinces li { padding: .35rem 0; border-bottom: 1px solid var(--bord); display: flex; gap: .5rem; align-items: baseline; }
.liste-provinces .compte { margin-left: auto; color: var(--doux); font-size: .85rem; }
.resultat { padding: .6rem 0; border-bottom: 1px solid var(--bord); }
.resultat a { text-decoration: none; font-size: 1.05rem; }
.resultat > .doux { display: block; font-size: .9rem; }
.fil li { padding: .4rem 0; border-bottom: 1px solid var(--bord); }
.fil li.nouveau { animation: flash 2s ease-out; }
@keyframes flash { from { background: #fff4d6; } to { background: transparent; } }
.pastille { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle;
            background: #fff4d6; color: #6b4f00; font-weight: 600; }
.pastille.ok { background: #e6f3ec; color: #134d33; }
.sous-titre { color: var(--doux); margin-top: -.3em; }
.fil-ariane { font-size: .9rem; color: var(--doux); margin: 0; }
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 760px) { .fiche { grid-template-columns: 1fr; } }
dl.noms { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
dl.noms dt { color: var(--doux); }
dl.noms dd { margin: 0; }
.texte-libre { white-space: normal; }
.carte-fiche { height: 340px; border-radius: var(--rayon); }
.carte-moyenne { height: 380px; border-radius: var(--rayon); margin: 1rem 0; }
.carte-pleine { flex: 1; min-height: 70vh; }
.bouton.flottant { position: absolute; bottom: 1.2rem; right: 1rem; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.photos figcaption { font-size: .85rem; }
details.ajout { margin: .8rem 0; }
details.ajout summary { cursor: pointer; color: var(--vert); font-weight: 600; }
.formulaire { display: flex; flex-direction: column; gap: .8rem; max-width: 46rem; }
.formulaire label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .95rem; }
.formulaire label.case { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
.formulaire label.case small { flex-basis: 100%; }
.formulaire small { font-weight: 400; color: var(--doux); }
.formulaire input:not([type=checkbox]):not([type=file]), .formulaire select, .formulaire textarea {
  font: inherit; font-weight: 400; padding: .55rem .7rem; border: 1px solid var(--bord); border-radius: 8px;
  background: var(--surface); color: var(--texte); width: 100%; }
.formulaire.edition .champs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.formulaire.edition .champs .large, .formulaire.edition .champs .case { grid-column: 1 / -1; }
@media (max-width: 640px) { .formulaire.edition .champs { grid-template-columns: 1fr; } }
.en-conflit input, .en-conflit textarea { border: 2px solid var(--orange) !important; }
fieldset { border: 1px solid var(--bord); border-radius: var(--rayon); }
.boite-etroite { max-width: 30rem; margin: 0 auto; }
form.en-ligne { display: inline; }
.revision { border-bottom: 1px solid var(--bord); padding: .4rem 0 .8rem; }
.revision h3 { font-size: 1rem; margin: .4rem 0; }
table.changements { border-collapse: collapse; font-size: .92rem; }
table.changements th { text-align: left; font-weight: 600; padding: .2rem .8rem .2rem 0; vertical-align: top; }
table.changements td { padding: .2rem .4rem; vertical-align: top; }
td.avant { color: var(--rouge); text-decoration: line-through; }
td.apres { color: var(--vert); }
.filtres { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.filtres a { padding: .2rem .7rem; border: 1px solid var(--bord); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.filtres a[aria-current] { background: var(--vert); color: #fff; border-color: var(--vert); }
.texte { max-width: 46rem; }
.vignette { max-width: 200px; border-radius: 8px; }
.pages { text-align: center; }

@media (max-width: 640px) {
  .entete { gap: .4rem .8rem; padding: .5rem .8rem; }
  .menu { gap: .7rem; font-size: .95rem; }
  .langues { margin-left: auto; }
  .bandeau h1 { font-size: 1.7rem; }
}
