/* Feuille commune des portails (section 3.6) : seulement des variables CSS pour la charte. Les valeurs de chaque marque
   viennent de /marque.css, produite par le code depuis brand_themes. Aucune police ni ressource externe. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--hf-fond); color: var(--hf-texte); font-family: var(--hf-police-texte); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--hf-police-titres); line-height: 1.25; }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: .5rem 0 .25rem; }
a { color: var(--hf-lien); }
code { font-family: ui-monospace, Consolas, monospace; }

.entete { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: .75rem 1.5rem; background: var(--hf-secondaire); color: #fff; }
.entete a { color: #fff; text-decoration: none; }
.entete a:hover { text-decoration: underline; }
.logo { font-family: var(--hf-police-titres); font-weight: 700; font-size: 1.2rem; }
.logo img { max-height: 40px; display: block; }
.menu { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1; }
.outils { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.outils form { margin: 0; }
.langue button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); padding: .1rem .4rem; font-size: .8rem; }
.langue button:disabled { background: var(--hf-primaire); border-color: var(--hf-primaire); opacity: 1; cursor: default; }
.deconnexion button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); padding: .2rem .6rem; }

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.pied { max-width: 1100px; margin: 2rem auto 0; padding: 1rem 1.5rem 2rem; border-top: 1px solid #d6d3ce; font-size: .9rem; }
.pied a { margin-right: 1rem; }
.sous-titre { margin-top: -.5rem; color: #57534e; }

.carte { border: 1px solid #d6d3ce; border-radius: 6px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; background: #fff; }
.etroite { max-width: 460px; }
label { display: block; margin: 0 0 .75rem; font-weight: 600; }
label.case { display: inline-block; margin-right: 1rem; font-weight: 400; }
input, select, textarea { display: block; width: 100%; max-width: 100%; margin-top: .25rem; padding: .45rem .55rem; border: 1px solid #a8a29e; border-radius: 4px; font: inherit; color: inherit; background: #fff; }
input[type=checkbox] { display: inline; width: auto; margin: 0 .25rem 0 0; }
fieldset { border: 1px solid #d6d3ce; border-radius: 4px; margin: 0 0 .75rem; }
button, .bouton { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--hf-primaire); border-radius: 4px; background: var(--hf-primaire); color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
button.secondaire, .bouton.secondaire { background: transparent; color: var(--hf-primaire); }
button.danger { background: var(--hf-alerte); border-color: var(--hf-alerte); }
form.en-ligne { display: inline-block; margin: 0 .5rem .5rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #e7e5e4; vertical-align: top; }
th.m, td.m { text-align: right; white-space: nowrap; }
td form { margin: 0; }
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1.25rem; }
.fiche dt { font-weight: 600; }
.fiche dd { margin: 0; }

.avis { padding: .6rem .8rem; border-radius: 4px; border-left: 4px solid var(--hf-accent); background: #fafaf9; }
.avis-ok { border-left-color: #15803d; }
.avis-erreur { border-left-color: var(--hf-alerte); }
.avis-alerte { border-left-color: var(--hf-accent); }
.etiquette { display: inline-block; padding: 0 .4rem; border: 1px solid #a8a29e; border-radius: 3px; font-size: .8rem; }
.etiquette.ok { border-color: #15803d; color: #15803d; }
.etiquette.alerte { border-color: var(--hf-alerte); color: var(--hf-alerte); }
.petit { font-size: .85rem; color: #57534e; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.message { border-left: 3px solid #d6d3ce; padding: .5rem 1rem; margin: 0 0 1rem; }
.message-admin { border-left-color: var(--hf-primaire); background: #fafaf9; }
.message header { margin-bottom: .35rem; }
.pieces { margin: .5rem 0 0; }
.qr svg { width: 220px; height: 220px; }
.codes { columns: 2; font-size: 1.1rem; }
.liste-comptes { list-style: none; padding: 0; }
.liste-comptes li { margin: 0 0 .5rem; }
.filtres { display: flex; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.filtres label { margin: 0; }
.pagination a { margin-right: 1rem; }
.annonce ul { padding-left: 1.25rem; }
