/* Cartes cadeaux (carte-cadeau.php) : le choix des prestations, puis la carte à imprimer. */
.cc{ max-width:720px; }
.cc-sous-titre{ margin:2px 0 0; }

/* Le choix des prestations */
.cc-choix{ border:0; margin:6px 0 0; padding:0; display:grid; gap:10px; }
.cc-choix legend{ font-weight:700; color:var(--encre); margin-bottom:10px; font-size:.95rem; }
.cc-presta{ display:grid !important; grid-template-columns:22px minmax(0,1fr) auto; gap:12px !important; align-items:center; padding:14px 16px;
  border-radius:var(--r2); border:1px solid var(--trait-2); background:var(--surface); cursor:pointer;
  transition:border-color var(--d1), background var(--d1); color:var(--encre) !important; font-size:.92rem !important; }
.cc-presta:hover{ border-color:var(--trait-3); }
.cc-presta:has(input:checked){ border-color:rgba(107,162,255,.75); background:var(--accent-doux); }
.cc-form .cc-presta input{ width:20px !important; height:20px; min-height:0 !important; padding:0; margin:0; accent-color:var(--accent); }
.cc-presta-texte b{ display:block; font-weight:600; }
.cc-presta-texte small{ display:block; color:var(--encre-2); font-size:.8rem; line-height:1.4; margin-top:2px; }
.cc-presta-prix{ font-weight:800; color:var(--encre); white-space:nowrap; }
.cc-total{ margin:4px 0 0; font-size:1rem; color:var(--encre-2); text-align:right; }
.cc-total b{ color:var(--encre); font-size:1.25rem; }
.cc-champs{ display:grid; grid-template-columns:1fr; gap:14px; }
.cc-champs .field{ display:grid; gap:6px; }
.cc-champs .field label{ display:block; }
.cc-payer{ justify-self:stretch !important; text-align:center; }
.cc-payer[disabled]{ opacity:.5; cursor:not-allowed; }

/* Récapitulatif avant paiement */
.cc-recap{ list-style:none; margin:0 0 18px; padding:0; border-top:1px solid var(--trait); }
.cc-recap li{ display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--trait); }
.cc-recap-total{ font-weight:800; }

/* La carte */
.cc-carte{ position:relative; overflow:hidden; margin:8px 0 18px; padding:28px; border-radius:22px; color:#F2F4F7;
  background:radial-gradient(120% 90% at 100% 0%, rgba(47,123,255,.45), transparent 60%), linear-gradient(160deg, #161B24, #0B0D10);
  border:1px solid rgba(255,255,255,.12); box-shadow:0 30px 70px -30px rgba(0,0,0,.9); }
.cc-carte::after{ content:""; position:absolute; right:-60px; bottom:-60px; width:220px; height:220px; border-radius:50%; border:28px solid rgba(255,255,255,.04); }
.cc-carte-tete{ display:flex; gap:16px; align-items:center; margin-bottom:18px; }
.cc-carte-logo{ width:72px; height:72px; border-radius:18px; object-fit:contain; background:#fff; padding:6px; flex-shrink:0; }
.cc-carte-sur{ margin:0; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:700; color:#6BA2FF; }
.cc-carte h1{ margin:2px 0 0; font-size:1.6rem; line-height:1.15; }
.cc-carte-ville{ margin:2px 0 0; color:#A3ACB9; font-size:.88rem; }
.cc-carte-pour{ margin:0 0 10px; font-size:1.02rem; }
.cc-carte-message{ margin:0 0 16px; padding:12px 16px; border-left:3px solid #6BA2FF; background:rgba(255,255,255,.05); border-radius:0 12px 12px 0; font-style:italic; color:#D5DAE1; }
.cc-carte-prestations{ list-style:none; margin:0 0 18px; padding:0; display:grid; gap:8px; }
.cc-carte-prestations li{ display:flex; justify-content:space-between; gap:12px; padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.06); font-weight:600; }
.cc-carte-prestations li::before{ content:"🎁"; margin-right:8px; }
.cc-carte-prestations li span{ flex:1; }
.cc-carte-prestations li.est-faite{ opacity:.55; text-decoration:line-through; }
.cc-carte-prestations small{ font-weight:400; color:#A3ACB9; text-decoration:none; }
.cc-carte-code{ display:flex; align-items:baseline; gap:14px; padding:14px 18px; border-radius:14px; border:1.5px dashed rgba(255,255,255,.3); margin-bottom:14px; }
.cc-carte-code span{ text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; color:#A3ACB9; }
.cc-carte-code b{ font:800 1.7rem/1 'Archivo', 'Inter', sans-serif; letter-spacing:.12em; }
.cc-carte-validite{ margin:0 0 6px; font-weight:600; }
.cc-carte-mode{ margin:0; color:#A3ACB9; font-size:.86rem; }
.cc-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* À l'impression : la carte seule, en couleurs. */
@media print{
  .an-entete, .an-pied, .cc-sans-impression, .an-annonce{ display:none !important; }
  body{ background:#fff !important; }
  .cc{ margin:0 auto; padding:0; }
  .cc-carte{ -webkit-print-color-adjust:exact; print-color-adjust:exact; box-shadow:none; break-inside:avoid; }
}
