/* Formulaires FJGZ — reprend les jetons du thème, avec repli si le thème change. */
.fjgz-form { --f-vert: var(--vert-nuit, #0E2A18); --f-citron: var(--citron, #D6F36A); --f-encre: var(--encre, #0B0F0C); --f-gris: var(--gris-texte, #565C57); --f-filet: var(--filet, #E2E5DF); --f-fond: var(--gris-clair, #F3F4F1); --f-erreur: #B42318;
  display: grid; gap: 22px; font-family: inherit; color: var(--f-encre); }
.fjgz-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fjgz-form legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.fjgz-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.fjgz-large { grid-column: 1 / -1; }
.fjgz-champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fjgz-champ > label { font-size: 14px; font-weight: 600; }
.fjgz-requis { color: var(--f-erreur); }
.fjgz-facultatif { font-weight: 400; color: var(--f-gris); font-size: 13px; }
.fjgz-form input[type="text"], .fjgz-form input[type="email"], .fjgz-form input[type="tel"], .fjgz-form input[type="number"], .fjgz-form select, .fjgz-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--f-encre); background: #fff;
  border: 1.5px solid var(--f-filet); border-radius: 12px; padding: 13px 15px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.fjgz-form select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.fjgz-form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.fjgz-form input:focus, .fjgz-form select:focus, .fjgz-form textarea:focus { outline: none; border-color: var(--f-vert); box-shadow: 0 0 0 4px rgba(14, 42, 24, .12); }
.fjgz-form [aria-invalid="true"] { border-color: var(--f-erreur) !important; }
.fjgz-erreur { margin: 0; font-size: 13px; color: var(--f-erreur); min-height: 0; }
.fjgz-erreur:empty { display: none; }
.fjgz-case label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--f-gris); font-weight: 400; cursor: pointer; }
.fjgz-case input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--f-vert); }
.fjgz-case a { color: var(--f-vert); font-weight: 600; }
.fjgz-pot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* fréquence : interrupteur à deux positions */
.fjgz-frequence { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--f-fond); border: 1px solid var(--f-filet); }
.fjgz-frequence legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fjgz-frequence label, .fjgz-puces label { position: relative; cursor: pointer; }
.fjgz-frequence input, .fjgz-puces input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fjgz-frequence span { display: block; text-align: center; padding: 12px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background-color .2s, color .2s; }
.fjgz-frequence input:checked + span { background: var(--f-vert); color: #fff; }
.fjgz-frequence input:focus-visible + span, .fjgz-puces input:focus-visible + span { outline: 3px solid var(--f-citron); outline-offset: 2px; }

/* montants */
.fjgz-puces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fjgz-puces span { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 8px; border-radius: 14px; border: 1.5px solid var(--f-filet); background: #fff;
  font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: all .2s; }
.fjgz-puces label:hover span { border-color: var(--f-vert); }
.fjgz-puces input:checked + span { background: var(--f-citron); border-color: var(--f-citron); color: var(--f-encre); box-shadow: 0 10px 24px -14px rgba(14, 42, 24, .6); }
.fjgz-autre { margin-top: 12px; }

/* bouton */
.fjgz-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.fjgz-bouton { display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
  background: var(--f-vert); color: #fff; border-radius: 999px; padding: 8px 8px 8px 26px; min-height: 54px; transition: background-color .25s, color .25s; }
.fjgz-bouton::after { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--f-citron) center / 17px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0F0C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); transition: transform .3s; }
.fjgz-bouton:hover { background: var(--f-encre); }
.fjgz-bouton:hover::after { transform: rotate(45deg); }
.fjgz-bouton[disabled] { opacity: .65; cursor: progress; }
.fjgz-bouton[disabled]::after { animation: fjgz-tourne 1s linear infinite; background-image: none; border: 3px solid var(--f-encre); border-top-color: transparent; width: 32px; height: 32px; margin: 3px; }
@keyframes fjgz-tourne { to { transform: rotate(360deg); } }
.fjgz-don .fjgz-bouton { width: 100%; justify-content: space-between; font-size: 17px; }
.fjgz-securite { margin: 0; font-size: 13px; color: var(--f-gris); padding-left: 24px; position: relative; }
.fjgz-securite::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--f-vert);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1v12H5V10zm2 0h8V8a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V8a6 6 0 1 1 12 0v2h1v12H5V10zm2 0h8V8a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* messages */
.fjgz-statut:empty { display: none; }
.fjgz-statut, .fjgz-info { padding: 16px 18px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.fjgz-statut.est-ok { background: #E9F7D2; color: #23400F; border: 1px solid #C8E89A; }
.fjgz-statut.est-erreur { background: #FDECEA; color: #8A1C12; border: 1px solid #F5C2BC; }
.fjgz-info { background: var(--gris-clair, #F3F4F1); margin-bottom: 18px; }
.fjgz-merci, .fjgz-indispo { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--vert-nuit, #0E2A18); color: #fff; display: grid; gap: 12px; }
.fjgz-merci p, .fjgz-indispo p { margin: 0; color: rgba(255, 255, 255, .82); }
.fjgz-merci .fjgz-merci-titre, .fjgz-indispo .fjgz-merci-titre { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.fjgz-merci-montant { font-size: clamp(34px, 4vw, 48px) !important; font-weight: 800; color: var(--citron, #D6F36A) !important; letter-spacing: -.03em; }
.fjgz-lien { display: inline-flex; color: var(--citron, #D6F36A) !important; font-weight: 700; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.fjgz-note-admin { font-size: 13px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.fjgz-note-admin a { color: var(--citron, #D6F36A); }
.carte-formulaire .fjgz-form h2 { margin: 0; }
@media (max-width: 640px) { .fjgz-grille { grid-template-columns: minmax(0, 1fr); } .fjgz-puces { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fjgz-puces span { font-size: 16px; } }
.fjgz-form [hidden] { display: none !important; }

/* Paiement intégré */
.fjgz-paiement { display: grid; gap: 16px; scroll-margin-top: 110px; }
.fjgz-paiement-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--filet, #E2E5DF); }
.fjgz-retour { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--vert-nuit, #0E2A18); cursor: pointer; }
.fjgz-retour:hover { text-decoration: underline; }
.fjgz-paiement-recap { margin: 0; font-size: 15px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--citron, #D6F36A); color: #0B0F0C; }
.fjgz-paiement-stripe { min-height: 320px; }
.fjgz-chargement { margin: 0; padding: 40px 0; text-align: center; color: var(--gris-texte, #565C57); }
.fjgz-bouton-pdf { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--citron, #D6F36A); color: #0B0F0C !important; font-weight: 700; text-decoration: none; }
.fjgz-bouton-pdf::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M4 17v3h16v-3' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v11m0 0 4-4m-4 4-4-4M4 17v3h16v-3' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* l’attribut hidden doit toujours l’emporter sur display */
.fjgz-form[hidden], .fjgz-paiement[hidden], .fjgz-form [hidden], .fjgz-paiement [hidden] { display: none !important; }

/* Section carte bancaire (champs Stripe Elements au style du site) */
.fjgz-carte-bancaire { padding: 20px; border-radius: 16px; background: var(--gris-clair, #F3F4F1); border: 1px solid var(--filet, #E2E5DF) !important; }
.fjgz-carte-bancaire legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; font-weight: 700; }
.fjgz-carte-bancaire legend::before { content: ""; width: 22px; height: 22px; background: var(--vert-nuit, #0E2A18); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2H2zm0 4h20v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm3 5v2h5v-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2H2zm0 4h20v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2zm3 5v2h5v-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fjgz-carte-bancaire .fjgz-grille { clear: both; }
.fjgz-carte-bancaire .fjgz-champ > label { cursor: pointer; }
.fjgz-stripe-champ { background: #fff; border: 1.5px solid var(--filet, #E2E5DF); border-radius: 12px; padding: 13px 15px; min-height: 52px; transition: border-color .2s, box-shadow .2s; }
.fjgz-stripe-champ.est-focus { border-color: var(--vert-nuit, #0E2A18); box-shadow: 0 0 0 4px rgba(14, 42, 24, .12); }
.fjgz-stripe-champ.est-invalide { border-color: #B42318; }
.fjgz-stripe-champ.est-complet:not(.est-focus) { border-color: #9BC27A; }
.fjgz-carte-bancaire #fjgz-carte-err:not(:empty) { margin-top: 12px; }
.fjgz-cartes-acceptees { margin: 12px 0 0; font-size: 13px; color: var(--gris-texte, #565C57); }
@media (max-width: 640px) { .fjgz-carte-bancaire { padding: 16px; } .fjgz-carte-bancaire .fjgz-grille { grid-template-columns: 1fr 1fr; } .fjgz-carte-bancaire .fjgz-large { grid-column: 1 / -1; } }

/* ===================== Formulaire de don optimisé (v1.4) ===================== */
.fjgz-don { gap: 0; }
.fjgz-etape { display: grid; gap: 14px; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--f-filet); }
.fjgz-etape-titre { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--f-encre); }
.fjgz-etape-titre > span:first-child { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--f-vert); color: var(--f-citron); font-size: 13px; font-weight: 800; flex: none; }
.fjgz-don .fjgz-frequence span { padding: 10px; font-size: 14px; }
.fjgz-don .fjgz-puces span { min-height: 50px; border-radius: 12px; }
.fjgz-don .fjgz-autre { margin-top: 2px; }
.fjgz-unite { position: relative; }
.fjgz-unite::after { content: attr(data-unite); position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--f-gris); pointer-events: none; }
.fjgz-unite input { padding-right: 70px !important; font-weight: 600; }
.fjgz-don .fjgz-grille { gap: 14px; }
.fjgz-don .fjgz-champ { gap: 6px; }
.fjgz-don .fjgz-champ > label { font-size: 13px; }
.fjgz-don input[type="text"], .fjgz-don input[type="email"], .fjgz-don input[type="tel"], .fjgz-don input[type="number"], .fjgz-don textarea { min-height: 48px; padding: 11px 14px; }
.fjgz-don textarea { min-height: 76px; }
.fjgz-form input:-webkit-autofill, .fjgz-form input:-webkit-autofill:hover, .fjgz-form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 60px #fff inset; -webkit-text-fill-color: var(--f-encre); caret-color: var(--f-encre); }

/* Étape paiement */
.fjgz-don .fjgz-carte-bancaire { padding: 18px; border-radius: 16px; background: var(--f-fond); border: 1px solid var(--f-filet) !important; margin-bottom: 20px; }
.fjgz-marques { display: inline-flex; gap: 6px; margin-left: auto; align-items: center; }
.fjgz-marques i { font-style: normal; display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 5px; background: #fff; border: 1px solid var(--f-filet); }
.fjgz-visa { font: italic 800 11px/1 Arial, sans-serif; color: #1A1F71; letter-spacing: .02em; }
.fjgz-mc { width: 36px; background: radial-gradient(circle at 62% 50%, rgba(247, 158, 27, .92) 0 6px, transparent 6.5px), radial-gradient(circle at 38% 50%, #EB001B 0 6px, transparent 6.5px), #fff !important; }
.fjgz-carte-ligne { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr); gap: 10px; }
.fjgz-stripe-champ { padding: 12px 14px; min-height: 48px; }
.fjgz-carte-bancaire #fjgz-carte-err:not(:empty) { margin-top: -2px; }

/* Bouton et mentions */
.fjgz-don .fjgz-case { margin-bottom: 16px; }
.fjgz-don .fjgz-actions { align-items: stretch; gap: 10px; }
.fjgz-don .fjgz-bouton { width: 100%; min-height: 58px; justify-content: space-between; font-size: 17px; padding-left: 24px; }
.fjgz-don .fjgz-securite { align-self: center; text-align: center; padding-left: 22px; }
@media (max-width: 640px) {
  .fjgz-carte-ligne { grid-template-columns: 1fr 1fr; }
  .fjgz-carte-numero { grid-column: 1 / -1; }
  .fjgz-don .fjgz-grille { grid-template-columns: 1fr; }
  .fjgz-don .fjgz-carte-bancaire { padding: 14px; }
  .fjgz-marques { display: none; }
}
