/* PRDE Cartes cadeaux : pages du site (mobile d'abord) */
.prdec { max-width: 560px; margin: 0 auto; }
.prdec-titre { margin-bottom: .5em; }
.prdec-qui { opacity: .75; margin-top: 0; }
.prdec-form { margin: 1em 0 1.5em; }
.prdec-label { display: block; font-weight: 600; margin: 1em 0 .35em; }
.prdec-ligne { display: flex; gap: .5em; flex-wrap: wrap; }
.prdec-input { box-sizing: border-box; width: 100%; }
.prdec-ligne .prdec-input { flex: 1 1 220px; width: auto; }
.prdec-input-code { text-transform: uppercase; letter-spacing: .08em; }
.prdec-input-montant { font-size: 28px; font-weight: 600; text-align: right; height: auto; min-height: 56px; }
#prdec-motif-autre { margin-top: .5em; }
/* Boutons : ceux du thème (uk-button). Repli à spécificité nulle pour un site sans UIkit. */
.prdec-bouton { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
:where(.prdec-bouton:not(.uk-button)) { min-height: 52px; padding: .5em 1.25em; font: inherit; font-weight: 600; border: 0; border-radius: 6px;
	background: #2b2b2b; color: #fff; cursor: pointer; text-decoration: none; }
.prdec-bouton[disabled] { opacity: .45; cursor: not-allowed; }
.prdec .prdec-bouton-scan, .prdec .prdec-bouton-debit { width: 100%; margin-top: .75em; }
.prdec .prdec-liens .prdec-bouton { margin: 0; }
/* Téléphone : le bouton à côté du champ passe dessous et prend toute la largeur */
@media (max-width: 639px) { .prdec .prdec-ligne > .prdec-bouton { flex: 1 1 100%; } }
.prdec-alerte { padding: .75em 1em; border-radius: 6px; margin: 1em 0; }
.prdec-alerte-erreur { background: #fdecea; color: #8a1c13; }
.prdec-carte { border-radius: 12px; padding: 1.25em; margin: 1em 0; background: rgba(0,0,0,.035); border: 1px solid rgba(0,0,0,.08); text-align: center; }
.prdec-carte-code { letter-spacing: .08em; opacity: .8; }
.prdec-carte-solde { font-size: 2.6em; font-weight: 700; line-height: 1.2; margin: .15em 0; }
.prdec-carte-sur, .prdec-carte-nom { opacity: .75; }
.prdec-carte-infos { display: flex; gap: .75em; justify-content: center; flex-wrap: wrap; margin-top: .6em; align-items: center; }
:where(.prdec-badge:not(.uk-label)) { display: inline-block; padding: .15em .7em; border-radius: 99px; font-size: .85em; font-weight: 600; background: #2e7d32; color: #fff; }
.prdec-statut-epuisee .prdec-badge, .prdec-statut-expiree .prdec-badge, .prdec-statut-annulee .prdec-badge { background: #8a1c13; color: #fff; }
.prdec-statut-epuisee .prdec-carte-solde, .prdec-statut-expiree .prdec-carte-solde, .prdec-statut-annulee .prdec-carte-solde { opacity: .5; }
.prdec-sous-titre { font-size: 1.15em; margin: 1.5em 0 .5em; }
.prdec-liste { list-style: none; margin: 0; padding: 0; }
.prdec-liste li { display: flex; gap: .75em; padding: .55em 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.prdec-liste-date { flex: 0 0 6em; opacity: .7; }
.prdec-liste-libelle { flex: 1 1 auto; }
.prdec-liste-montant { font-weight: 600; white-space: nowrap; }
.prdec-moins { color: #8a1c13; }
.prdec-plus { color: #2e7d32; }
.prdec-vide { opacity: .7; }
.prdec-liens { display: flex; gap: .5em; flex-wrap: wrap; margin-top: 1.5em; }
.prdec-liens .prdec-bouton { flex: 1 1 140px; }
.prdec-personnel { margin-top: 1.5em; }
.prdec-camera { margin-top: .75em; text-align: center; }
.prdec-camera video { width: 100%; max-height: 60vh; border-radius: 8px; background: #000; object-fit: cover; }
.prdec-camera-aide { opacity: .75; }

/* « Mes cartes cadeaux » (0.6.0) : onglet de l'espace membre et page autonome.
   Styles de repli à spécificité nulle (:where) : les classes asso-* du site, si elles existent, gardent la main. */
:where(.prdec-mescartes) { margin-bottom: 2em; }
/* 0.8.6 : plus de largeur propre, la page suit le conteneur du thème (alignée sur les autres onglets) */
:where(.prdec-mc-grille) { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; }
:where(.prdec-mc-carte) { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid rgba(0,0,0,.12); border-radius: 12px; background: #fff; }
:where(.prdec-mc-ajout) { border-style: dashed; background: rgba(0,0,0,.025); }
:where(.prdec-mc-type) { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
:where(.prdec-mc-tete) { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
:where(.prdec-mc-solde, .prdec-mc-titre) { margin: 0; font-size: 21px; line-height: 1.2; }
:where(.prdec-mc-badge) { flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #e4f0cf; }
:where(.prdec-mc-ligne) { margin: 0; }
:where(.prdec-mc-actions, .prdec-mc-liens) { display: flex; flex-wrap: wrap; gap: 10px; }
.prdec-mc-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; white-space: nowrap; }
.prdec-statut-epuisee .prdec-mc-solde, .prdec-statut-expiree .prdec-mc-solde, .prdec-statut-annulee .prdec-mc-solde { opacity: .55; }
.prdec-mc-util { margin-top: 6px; font-size: 14px; }
.prdec-mc-util-titre { font-weight: 600; margin-bottom: 2px; }
.prdec-mc-util .prdec-liste li { padding: .35em 0; }
.prdec-mc-util .prdec-liste-date { flex-basis: 5.5em; }
.prdec-mc-util .prdec-vide { margin: 0; }
.prdec-mc-label { display: block; font-weight: 600; margin-top: 4px; }
.prdec-mc-input.prdec-input { min-height: 48px; font-size: 17px; }
.prdec-mescartes .prdec-alerte { margin: 0 0 20px; }
.prdec-alerte-ok { background: #e8f3dc; color: #2f4d16; }
.prdec-alerte-attention { background: #fff4e0; color: #6b4600; }
