/* Feuille de style de l'application : mêmes couleurs et polices que le site public. */
/* L'espace fine insécable des montants (« 293 127,33 € », U+202F) est vide dans Montserrat
   gras : les grands chiffres des tuiles se lisaient « 293127,33 € ». Ce seul caractère est
   dessiné par une police système, le reste du texte reste en Montserrat. */
@font-face { font-family: 'Espace fine'; src: local('Helvetica Neue'), local('Arial'), local('Helvetica'); unicode-range: U+202F; }
:root {
  /* Charte du site (site-beldefi/css/styles.css) : mêmes valeurs, décision du 2026-10-12. */
  --rouge: #FF0300; --rouge-texte: #D40200; --rouge-profond: #B30200; --rouge-doux: #FFEAE8;
  --encre: #1A1A1A; --encre-douce: #333333; --texte: #5C6470; --discret: #5C6470;
  --ligne: #E8EAED; --fond: #F7F8F9; --surface: #FFFFFF; --succes: #1A7A3C;
  --titre: 'Espace fine', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --corps: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 17px/1.6 var(--corps); }
a { color: var(--rouge-texte); }
.entete { background: var(--surface); border-top: 6px solid var(--rouge); border-bottom: 1px solid var(--ligne); }
.entete-in { max-width: 860px; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.marque { font: 800 18px/1 var(--titre); letter-spacing: .08em; text-transform: uppercase; color: var(--encre); text-decoration: none; }
.marque span { color: var(--rouge); }
main { max-width: 860px; margin: 0 auto; padding: 28px 16px 64px; }
h1 { font: 800 clamp(26px, 4vw, 36px)/1.15 var(--titre); color: var(--encre); margin: 8px 0 12px; }
h2 { font: 700 20px/1.3 var(--titre); color: var(--encre); margin: 28px 0 10px; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 22px; margin: 18px 0; }
table.recap { width: 100%; border-collapse: collapse; }
table.recap td { padding: 8px 0; border-bottom: 1px solid var(--ligne); }
table.recap td:last-child { text-align: right; font-weight: 600; color: var(--encre); white-space: nowrap; }
.tag { display: inline-block; font-size: 13px; padding: 1px 8px; border-radius: 99px; background: var(--rouge-doux); color: var(--rouge-texte); margin-left: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font: 700 17px/1.3 var(--titre); color: var(--encre); margin-bottom: 8px; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grille .large { grid-column: 1 / -1; }
label { display: block; font-weight: 600; color: var(--encre); font-size: 15px; }
input[type=text], input[type=email], input[type=date], select {
  width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--encre);
  border: 1.5px solid var(--ligne); border-radius: 9px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texte); margin: 10px 0; }
.case input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--rouge); flex: none; }
.aide { font-size: 14px; color: var(--discret); font-weight: 400; }
.erreur { color: var(--rouge-texte); font-size: 14px; font-weight: 600; margin-top: 4px; }
.alerte { background: var(--rouge-doux); border-left: 4px solid var(--rouge); padding: 12px 14px; border-radius: 8px; color: var(--encre); }
.bouton { display: inline-block; border: 0; cursor: pointer; background: var(--rouge); color: #fff; font: 700 17px/1 var(--titre);
  padding: 16px 26px; border-radius: 999px; text-decoration: none; text-align: center; }
.bouton:hover { background: var(--rouge-texte); }
.bouton.secondaire { background: transparent; color: var(--rouge-texte); border: 2px solid var(--rouge); }
.moyens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.moyen { border: 1.5px solid var(--ligne); border-radius: 12px; padding: 14px; display: flex; gap: 10px; cursor: pointer; font-weight: 400; align-items: flex-start; }
/* Le bouton radio face à la première ligne du libellé (et non au milieu d'un texte de trois lignes). */
.moyen input { accent-color: var(--rouge); margin-top: 6px; flex: none; }
.moyen:has(input:checked) { border-color: var(--rouge); background: var(--rouge-doux); }
.virement { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.virement dt { color: var(--discret); font-size: 14px; }
.virement dd { margin: 0 0 12px; font: 700 20px/1.3 var(--titre); color: var(--encre); word-break: break-all; }
/* Les QR codes ont un viewBox (segno omitsize=True) : la largeur CSS les réduit sans les couper. */
.qr svg { width: 200px; height: auto; display: block; }
.partage { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.qr.qr-petit svg { width: 96px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; font-size: 14px; color: var(--discret); border-top: 1px solid var(--ligne); }
@media (max-width: 640px) {
  .grille, .moyens, .virement { grid-template-columns: minmax(0, 1fr); }
  .qr svg { width: 180px; }
  .virement .qr { justify-self: center; }
}
/* Menu de l'espace donateur, compact sur une ligne, « Se déconnecter » à droite
   (variante B, choix de Carlos du 20/10/2026). */
.nav-espace { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ligne); }
.nav-espace a { text-decoration: none; font-weight: 600; }
.nav-espace a, .nav-espace form { font-size: 14px; } /* le bouton hérite de son formulaire (button.lien : font: inherit) */
.nav-espace form { margin-left: auto; }
/* Sélecteur de langue FR | NL (en-tête) */
.entete-droite { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; justify-content: flex-end; }
.entete-droite > a { white-space: nowrap; }
@media (max-width: 420px) { .entete-droite { gap: 4px 10px; } .entete-droite > a { font-size: 15px; } }
.langues { display: flex; align-items: center; gap: 6px; font: 700 14px/1 var(--titre); color: var(--discret); }
.langues a { color: var(--discret); text-decoration: none; padding: 6px 4px; }
.langues a:hover { color: var(--rouge-texte); text-decoration: underline; }
.langues a[aria-current] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Accessibilité : focus clavier bien visible, lien d'évitement visible au premier Tab */
:focus-visible { outline: 3px solid var(--rouge-texte); outline-offset: 2px; }
.lien-evitement { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 9px; font: 700 15px/1.2 var(--titre); text-decoration: none; }
.lien-evitement:focus { top: 12px; }
/* Texte d'aide sur la teinte rouge d'un choix coché : gris plus foncé (contraste 4,5:1) */
.moyen:has(input:checked) .aide { color: var(--texte); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.insecable { white-space: nowrap; }
.inline { display: inline; }
button.lien { background: none; border: 0; color: var(--rouge-texte); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.succes { background: var(--surface); border-left: 4px solid var(--succes); padding: 12px 14px; border-radius: 8px; }
.montant { font: 800 30px/1.2 var(--titre); color: var(--encre); margin: 4px 0; }
input.champ, input[type=password] { width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; border: 1.5px solid var(--ligne); border-radius: 9px; }
.bouton.petit { padding: 9px 16px; font-size: 15px; }
/* Bouton « ← Retour » en tête de page (demande de Carlos du 17/10/2026), comme au back-office. */
.barre-retour { margin: 0 0 14px; }
.retour { display: inline-block; border: 1px solid #D5D9DE; border-radius: 999px; padding: 7px 15px; font: 600 15px/1.2 var(--titre);
  color: var(--encre-douce); background: var(--surface); text-decoration: none; }
.retour:hover { border-color: var(--rouge); color: var(--rouge-texte); background: var(--rouge-doux); }
/* Mes données (RGPD) */
.actions-donnees { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.carte h3 { font: 700 17px/1.3 var(--titre); color: var(--encre); margin: 18px 0 6px; }
.carte h2:first-child, .carte h3:first-child { margin-top: 0; }
dl.fiche { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 6px 16px; margin: 0 0 12px; }
dl.fiche dt { color: var(--discret); font-size: 15px; }
dl.fiche dd { margin: 0; color: var(--encre); overflow-wrap: anywhere; }
details.retrait summary { cursor: pointer; color: var(--rouge-texte); font-weight: 600; }
details.retrait[open] { border-left: 4px solid var(--rouge); padding-left: 12px; }
textarea.champ { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; color: var(--encre); border: 1.5px solid var(--ligne); border-radius: 9px; resize: vertical; }
ul.liste-demandes { list-style: none; margin: 0; padding: 0; }
ul.liste-demandes li { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
textarea:focus { outline: 2px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
@media (max-width: 640px) { dl.fiche { grid-template-columns: minmax(0, 1fr); gap: 0; } dl.fiche dd { margin-bottom: 8px; } }
/* Champs selon « Vous êtes » (champs-donateur.js, demande de Carlos du 20/10/2026) :
   un bloc masqué l'est vraiment, même s'il porte un display (.case est en flex). */
[hidden] { display: none !important; }
/* Rangée de boutons : espacés, à la ligne au besoin ; un libellé sur deux lignes reste lisible
   (interligne 1,25 au lieu de 1, même hauteur sur une ligne : 14 px de marge au lieu de 16). */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 0; }
.actions .bouton { line-height: 1.25; padding-top: 14px; padding-bottom: 14px; max-width: 100%; }
/* Pages de remerciement : contenu centré (demande de Carlos du 20/10/2026), sur une
   colonne de lecture de 640 px ; les boutons sont centrés. */
.page-fin { max-width: 640px; margin: 0 auto; text-align: center; }
.page-fin h1 { margin-top: 16px; }
.page-fin .carte { padding: 24px 22px; }
.page-fin .carte h2 { margin-top: 0; }
.page-fin .actions { justify-content: center; margin-top: 22px; }
.page-fin .carte .actions { margin-top: 18px; }
@media (max-width: 420px) {
  .page-fin .carte { padding: 20px 16px; }
  .page-fin .actions .bouton { padding-left: 20px; padding-right: 20px; }
}
/* Carte dont le titre suit le jeton CSRF (formulaire de connexion) : pas de marge en tête,
   comme les autres cartes, pour que les titres de deux cartes voisines soient alignés. */
.carte > input[type="hidden"]:first-child + h2 { margin-top: 0; }
