/* =====================================================
   design.css — Paroisse L'Enfant Jésus de Prague
   Design moderne minimal (Option B)
   Toutes les pages publiques utilisent ce CSS
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C8102E;
  --red-dark:   #A00D24;
  --red-soft:   #FBEEEE;
  --navy:       #1D366E;
  --navy-dark:  #142950;
  --navy-light: #2E4F8C;
  --gold:       #F5C648;
  --gold-soft:  #FEF7E6;
  --bg:         #FAFAFA;
  --card:       #FFFFFF;
  --text:       #0F0F0F;
  --text-2:     #6B6B6B;
  --text-3:     #999999;
  --border:     #EEEEEE;
  --field-bg:   #F6F6F6;
  --green:      #1D9E75;
  --green-soft: #E1F5EE;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: transparent;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.footer-bottom {
  flex-shrink: 0;
}

html {
  background-image: url('../img/eglise.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay sombre par-dessus l'image pour lisibilité */
html::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(107,10,24,0.55) 0%, rgba(20,41,80,0.65) 100%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header (toutes pages sauf accueil) ── */
.topbar {
  background: rgba(200, 16, 46, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.topbar .logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar .name { flex: 1; min-width: 0; }
.topbar .name .t1 {
  font-size: 13px; font-weight: 700; color: var(--gold); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .name .t2 { font-size: 10px; color: rgba(255,255,255,0.85); margin-top: 2px; line-height: 1.3; }
.topbar .menu-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  padding: 0;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.topbar .menu-icon:hover,
.topbar .menu-icon:active { background: rgba(255,255,255,0.15); }

/* Menu dropdown */
.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  min-width: 220px;
  background: rgba(200, 16, 46, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 0.4rem;
  z-index: 100;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s;
}
.topbar { position: sticky; }
.topbar .menu-dropdown {
  position: absolute;
  top: 100%;
  right: 8px;
}
.menu-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.menu-dropdown .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s;
}
.menu-dropdown .menu-item:hover {
  background: rgba(255,255,255,0.15);
  color: var(--gold);
  text-decoration: none;
}
.menu-dropdown .menu-icn {
  font-size: 16px;
  width: 22px;
  text-align: center;
}

/* ── Container central ── */
.container {
  max-width: 460px;
  margin: 0 auto;
  padding: 16px 12px 16px;
}

/* ── Cartes ── */
.card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Carte ROUGE (formulaire d'inscription, paiement, confirmation) */
.card-red {
  background: linear-gradient(180deg, rgba(200,16,46,0.55) 0%, rgba(160,13,36,0.60) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.card-red .h-title { color: var(--gold); }
.card-red .h-sub   { color: rgba(255,255,255,0.92); }
.card-red .pill    { background: rgba(255,255,255,0.15); color: var(--gold); }
.card-red .field label { color: #fff; }
.card-red .field label .req { color: var(--gold); }

/* ═══════════════════════════════════════════════
   REÇU OFFICIEL — Design spécifique
   ═══════════════════════════════════════════════ */
.recu-officiel {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.20);
  margin-bottom: 1rem;
}

/* En-tête rouge avec logo + nom paroisse */
.recu-header {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--gold);
}
.recu-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.recu-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recu-logo-fallback {
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
}
.recu-paroisse { flex: 1; min-width: 0; }
.recu-paroisse-nom {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 3px;
}
.recu-paroisse-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  line-height: 1.35;
}

/* Bandeau OR avec N° reçu */
.recu-num-band {
  background: linear-gradient(180deg, var(--gold) 0%, #E5B636 100%);
  color: var(--red-dark);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--red);
}
.recu-num-band .num { font-size: 15px; letter-spacing: 0.5px; }
.recu-num-band .date { font-size: 12px; opacity: 0.85; font-weight: 500; }

/* Section avec barre rouge */
.recu-section { margin: 0; }
.recu-section-title {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.recu-section-body {
  background: #FAFAFA;
  padding: 0;
}
.recu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #ECECEC;
  font-size: 13.5px;
}
.recu-row:last-child { border-bottom: none; }
.recu-lbl { color: #6B6B6B; }
.recu-val { color: #0F0F0F; font-weight: 600; text-align: right; }
.recu-val-bold { font-weight: 700; }
.recu-val-red { color: var(--red); font-weight: 800; font-size: 14.5px; }

/* Encadré rose : Montant + Paiement validé */
.recu-montant-box {
  background: #FBEEEE;
  border: 2px solid var(--red);
  border-radius: 12px;
  margin: 12px 14px;
  padding: 14px;
  text-align: center;
}
.recu-montant-lbl {
  font-size: 11px;
  color: #6B6B6B;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.recu-montant-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  margin: 4px 0 8px;
}
.recu-validated {
  display: inline-block;
  background: #E1F5EE;
  color: #0F6E56;
  border: 1px solid #1D9E75;
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
}

/* Bandeau rouge : position et numéro de car */
.recu-position {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  margin: 12px 14px;
  border-radius: 10px;
}
.recu-position strong { color: var(--gold); font-weight: 700; }

/* Note officielle (crème) */
.recu-note {
  background: #FFF8E6;
  border: 1px solid #F5C648;
  border-radius: 10px;
  margin: 0 14px 14px;
  padding: 12px 14px;
  font-size: 12px;
  color: #6B5300;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   REÇU OFFICIEL — Responsive multi-écrans
   ═══════════════════════════════════════════════ */

/* Très petit mobile (< 360px) */
@media (max-width: 359px) {
  .recu-header { padding: 12px 13px; gap: 9px; }
  .recu-logo { width: 42px; height: 42px; }
  .recu-paroisse-nom { font-size: 13px; }
  .recu-paroisse-sub { font-size: 10px; }
  .recu-num-band { padding: 9px 12px; font-size: 12px; }
  .recu-num-band .num { font-size: 13px; }
  .recu-num-band .date { font-size: 10px; }
  .recu-section-title { padding: 6px 13px; font-size: 11px; letter-spacing: 1px; }
  .recu-row { padding: 8px 13px; font-size: 12px; }
  .recu-val-red { font-size: 13px; }
  .recu-montant-box { margin: 10px 11px; padding: 11px; }
  .recu-montant-val { font-size: 24px; }
  .recu-position { margin: 10px 11px; padding: 9px 11px; font-size: 12px; }
  .recu-note { margin: 0 11px 11px; padding: 10px 11px; font-size: 11px; }
}

/* Mobile standard 360-599px (par défaut, pas de override nécessaire) */

/* Tablette portrait & grande mobile (≥ 600px) */
@media (min-width: 600px) {
  .recu-header { padding: 18px 20px; gap: 14px; }
  .recu-logo { width: 58px; height: 58px; }
  .recu-paroisse-nom { font-size: 17px; }
  .recu-paroisse-sub { font-size: 12px; }
  .recu-num-band { padding: 14px 18px; font-size: 16px; }
  .recu-num-band .num { font-size: 17px; }
  .recu-num-band .date { font-size: 13px; }
  .recu-section-title { padding: 10px 20px; font-size: 13px; }
  .recu-row { padding: 13px 20px; font-size: 15px; }
  .recu-val-red { font-size: 16px; }
  .recu-montant-box { margin: 16px 18px; padding: 18px; }
  .recu-montant-lbl { font-size: 12px; }
  .recu-montant-val { font-size: 36px; margin: 6px 0 10px; }
  .recu-validated { padding: 7px 18px; font-size: 13px; }
  .recu-position { margin: 16px 18px; padding: 13px 18px; font-size: 15px; }
  .recu-note { margin: 0 18px 18px; padding: 15px 18px; font-size: 13px; }
}

/* Tablette paysage / Petit laptop (≥ 900px) */
@media (min-width: 900px) {
  .recu-officiel { border-radius: 22px; }
  .recu-header { padding: 22px 24px; gap: 16px; }
  .recu-logo { width: 64px; height: 64px; border-width: 3px; }
  .recu-paroisse-nom { font-size: 19px; }
  .recu-paroisse-sub { font-size: 13px; }
  .recu-num-band { padding: 16px 22px; font-size: 17px; }
  .recu-num-band .num { font-size: 19px; }
  .recu-num-band .date { font-size: 14px; }
  .recu-section-title { padding: 11px 24px; font-size: 14px; letter-spacing: 2px; }
  .recu-row { padding: 14px 24px; font-size: 16px; }
  .recu-val-red { font-size: 17px; }
  .recu-montant-box { margin: 18px 22px; padding: 22px; border-radius: 14px; }
  .recu-montant-lbl { font-size: 13px; }
  .recu-montant-val { font-size: 42px; margin: 8px 0 12px; }
  .recu-validated { padding: 8px 22px; font-size: 14px; }
  .recu-position { margin: 18px 22px; padding: 15px 22px; font-size: 16px; border-radius: 12px; }
  .recu-note { margin: 0 22px 22px; padding: 17px 22px; font-size: 14px; }
}

/* Desktop large (≥ 1200px) — grande lisibilité */
@media (min-width: 1200px) {
  .recu-header { padding: 26px 28px; }
  .recu-logo { width: 72px; height: 72px; }
  .recu-paroisse-nom { font-size: 21px; }
  .recu-paroisse-sub { font-size: 14px; }
  .recu-montant-val { font-size: 48px; }
}

.card-red .input,
.card-red select.input,
.card-red textarea.input {
  background-color: #fff;
  border-color: #fff;
  color: var(--text);
  outline: none !important;
}
.card-red .input:focus,
.card-red select.input:focus,
.card-red textarea.input:focus,
.card-red .input:active,
.card-red select.input:active,
.card-red textarea.input:active {
  outline: none !important;
  border-color: var(--gold);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 198, 72, 0.3);
}
.card-red .input::placeholder { color: var(--text-3); }
.card-red .input.error { border-color: var(--gold); background-color: #FFF8E6; }
.card-red .field .err { color: var(--gold); font-weight: 600; }
.card-red .legal { color: rgba(255,255,255,0.85); }
.card-red .legal a { color: var(--gold); }
.card-red .alert-warning { background: rgba(255,255,255,0.15); border-color: var(--gold); color: var(--gold); }
.card-red .alert-error   { background: rgba(255,255,255,0.95); border-color: #fff; color: #8B1A26; }

.card-red select.input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23C8102E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-color: #fff !important;
  padding-right: 34px;
}

/* Bouton spécial dans une card-red : OR sur rouge */
.card-red .btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
}
.card-red .btn-primary:hover { background: #FFD55E; }
.card-red .btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Bloc montant dans card-red */
.card-red .amount-box {
  background: rgba(255,255,255,0.95);
  border: 2px solid var(--gold);
}
.card-red .amount-box .lbl { color: var(--text-2); }
.card-red .amount-box .val { color: var(--red); }

/* Liste d'infos dans card-red */
.card-red .info-list {
  background: rgba(255,255,255,0.95);
}
.card-red .info-list .info-row { border-bottom-color: #f0e8e0; }
.card-red .info-list .info-row .lbl { color: var(--text-2); }
.card-red .info-list .info-row .val { color: #D4A017; font-weight: 700; }

/* Bloc étapes dans card-red */
.card-red .steps {
  background: rgba(255,255,255,0.95);
}
.card-red .steps h4 { color: var(--red); }
.card-red .steps ol { color: #4a4a4a; }
.card-red .steps strong { color: var(--text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red-soft);
  color: var(--red);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 0.9rem;
  letter-spacing: 0.2px;
}
.pill.gold  { background: var(--gold-soft); color: #6B5300; }
.pill.green { background: var(--green-soft); color: #0F6E56; }
.pill.navy  { background: #E8EDF5; color: var(--navy); }

.h-title {
  font-size: 24px; font-weight: 700; line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text);
}
.h-sub {
  font-size: 13.5px; color: var(--text-2); margin-bottom: 1.4rem;
}

/* ── Alerts ── */
.alert {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.alert-warning { background: var(--gold-soft); border: 1px solid var(--gold); color: #6B5300; }
.alert-error   { background: #FEEBED; border: 1px solid #F4C0C5; color: #8B1A26; }
.alert-success { background: var(--green-soft); border: 1px solid var(--green); color: #0F6E56; }
.alert-info    { background: #E8EDF5; border: 1px solid var(--navy); color: var(--navy-dark); }

/* ── Champs de formulaire ── */
.field { margin-bottom: 0.95rem; }
.field label {
  display: block;
  font-size: 12px; font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.field label .req { color: var(--red); margin-left: 2px; }

.input,
select.input,
textarea.input {
  width: 100%;
  background: var(--field-bg);
  border: 1.5px solid var(--field-bg);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none !important;
  outline-width: 0 !important;
  outline-style: none !important;
  outline-offset: 0 !important;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  text-decoration-style: solid;
  -webkit-text-decoration-line: none;
  -moz-text-decoration-line: none;
  text-decoration-line: none;
}
.input:focus,
select.input:focus,
textarea.input:focus,
.input:active,
select.input:active,
textarea.input:active,
.input:focus-visible,
select.input:focus-visible,
textarea.input:focus-visible {
  outline: none !important;
  outline-width: 0 !important;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 54, 110, 0.15);
}

/* Reset spécifique pour Samsung Internet et Chrome Android */
select.input::-ms-expand { display: none; }
select.input:-internal-list-box,
select.input:-webkit-list-box {
  border: none !important;
}
.input::placeholder { color: var(--text-3); }
.input.error { border-color: var(--red); background: #FFF8F8; }

select.input {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: solid !important;
  text-decoration-color: transparent !important;
  -webkit-text-decoration-line: none !important;
  text-shadow: none !important;
  background-color: var(--field-bg);
}

/* Spécifique : empêcher les caractères de fallback bizarres sur Samsung Internet */
select.input,
select.input option {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

.field .err {
  color: var(--red);
  font-size: 11.5px;
  margin-top: 5px;
  display: block;
}

/* ── Boutons ── */
.btn {
  display: block;
  width: 100%;
  background: var(--text);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  margin-top: 0.4rem;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.btn:active { transform: scale(0.99); opacity: 0.9; }
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }

.btn-wave { background: #003399; color: #fff; }
.btn-wave:hover { background: #0044BB; }

.btn-secondary {
  background: #fff; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-2); }

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}

/* ── Texte légal / footer ── */
.legal {
  text-align: center;
  margin-top: 1rem;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.legal a { color: var(--red); }

.footer-bottom {
  background: rgba(200, 16, 46, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 3px solid var(--gold);
  text-align: center;
  padding: 1.2rem 1rem;
  font-size: 11.5px;
  color: rgba(255,255,255,0.9);
  margin-top: 0;
}
.footer-bottom a { color: var(--gold); font-weight: 600; }
.footer-bottom a:hover { color: #FFD55E; }

/* ── Liste d'infos (recu, paiement) ── */
.info-list {
  background: var(--field-bg);
  border-radius: 10px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--text-2); }
.info-row .val { color: var(--text); font-weight: 600; text-align: right; }

/* ── Bloc montant centré ── */
.amount-box {
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
  margin: 0 0 1.2rem;
}
.amount-box .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin-bottom: 4px;
  font-weight: 600;
}
.amount-box .val {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
}

/* ── Bloc étapes (paiement) ── */
.steps {
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
}
.steps h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.steps ol {
  padding-left: 1.2rem;
  font-size: 13px;
  line-height: 1.7;
  color: #4a4a4a;
}
.steps ol li { margin-bottom: 0.15rem; }
.steps strong { color: var(--text); }

/* ── Bouton actions multiples ── */
.btn-stack { display: flex; flex-direction: column; gap: 10px; }

/* ── Page d'accueil (index.php) ── */
.home-hero {
  background: transparent;
  color: #fff;
  padding: 1.2rem 1.2rem 1.6rem;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.home-hero .subtitle {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.5px;
  margin-bottom: 1.4rem;
}

/* Affiche dans le hero rouge — format carré bien visible */
.hero-poster {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 14px;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  display: block;
}

/* Compte à rebours */
.countdown-label {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.countdown {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1rem;
}
.cd-cell {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 10px 6px;
  min-width: 60px;
}
.cd-cell .cd-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.cd-cell .cd-lbl {
  font-size: 9px;
  letter-spacing: 1px;
  opacity: 0.85;
  text-transform: uppercase;
}

.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(245, 198, 72, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 198, 72, 0.5);
  text-decoration: none;
}

/* État sans événement */
.no-event {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.no-event .icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 32px;
  color: var(--red);
}
.no-event h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.no-event p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.no-event .blessing {
  font-style: italic;
  color: var(--red);
  margin-top: 0.8rem;
  font-size: 12.5px;
}

/* Affiche événement */
.event-poster {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
}

/* Reçu officiel — adaptation pour impression */
.recu-card {
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
}
.recu-num {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.recu-num .date { font-size: 10px; opacity: 0.85; font-weight: 500; margin-top: 2px; }

@media print {
  /* Forcer l'impression des couleurs */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Cacher tout sauf le reçu */
  .btn, .btn-cta, .menu-icon, .menu-dropdown, .btn-stack,
  .footer-bottom, footer, .topbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Reset complet pour le PDF */
  html, body {
    background: #fff !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }
  html::before, body::before, body::after {
    display: none !important;
    content: none !important;
  }

  main, .container {
    flex: none !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* CADRE TÉLÉPHONE — taille agrandie pour remplir A4 */
  .recu-officiel {
    background: #fff !important;
    border: 12px solid #1a1a1a !important;
    border-radius: 36px !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 2px #2a2a2a, 0 12px 32px rgba(0,0,0,0.30) !important;
    margin: 0 auto !important;
    width: 480px !important;
    max-width: 480px !important;
    min-width: 0 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    position: relative !important;
    display: block !important;
    text-align: left !important;
    flex: none !important;
  }

  /* Encoche du téléphone */
  .recu-officiel::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 130px !important;
    height: 22px !important;
    background: #1a1a1a !important;
    border-radius: 0 0 16px 16px !important;
    z-index: 100 !important;
  }

  /* En-tête rouge avec logo */
  .recu-header {
    background: linear-gradient(180deg, #C8102E 0%, #A00D24 100%) !important;
    padding: 26px 18px 16px !important;
    border-bottom: 3px solid #F5C648 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .recu-logo {
    width: 56px !important;
    height: 56px !important;
    border: 2px solid #F5C648 !important;
    border-radius: 50% !important;
    background: #fff !important;
  }
  .recu-paroisse-nom { font-size: 16px !important; color: #F5C648 !important; line-height: 1.2 !important; font-weight: 700 !important; }
  .recu-paroisse-sub { font-size: 12px !important; color: rgba(255,255,255,0.95) !important; line-height: 1.35 !important; }

  /* Bandeau or N° reçu */
  .recu-num-band {
    background: linear-gradient(180deg, #F5C648 0%, #E5B636 100%) !important;
    color: #6B0A18 !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    border-bottom: 2px solid #C8102E !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .recu-num-band .num { font-size: 16px !important; font-weight: 700 !important; }
  .recu-num-band .date { font-size: 13px !important; }

  /* Sections */
  .recu-section-title {
    background: #C8102E !important;
    color: #fff !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }
  .recu-section-body { background: #FAFAFA !important; }
  .recu-row {
    padding: 11px 18px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #ECECEC !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  .recu-val { color: #0F0F0F !important; font-weight: 600 !important; }
  .recu-val-red { color: #C8102E !important; font-size: 15px !important; font-weight: 800 !important; }

  /* Encadré rose Montant */
  .recu-montant-box {
    background: #FBEEEE !important;
    border: 2px solid #C8102E !important;
    border-radius: 12px !important;
    margin: 14px 18px !important;
    padding: 18px !important;
    text-align: center !important;
  }
  .recu-montant-lbl { font-size: 12px !important; color: #6B6B6B !important; text-transform: uppercase !important; letter-spacing: 1.5px !important; font-weight: 600 !important; }
  .recu-montant-val { font-size: 36px !important; color: #C8102E !important; margin: 6px 0 10px !important; font-weight: 800 !important; }
  .recu-validated {
    background: #E1F5EE !important;
    color: #0F6E56 !important;
    border: 1px solid #1D9E75 !important;
    border-radius: 50px !important;
    padding: 6px 18px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-block !important;
  }

  /* Bandeau rouge Car */
  .recu-position {
    background: #C8102E !important;
    color: #fff !important;
    margin: 14px 18px !important;
    padding: 11px 18px !important;
    font-size: 14.5px !important;
    border-radius: 9px !important;
    text-align: center !important;
  }

  /* Note crème */
  .recu-note {
    background: #FFF8E6 !important;
    border: 1px solid #F5C648 !important;
    border-radius: 9px !important;
    margin: 0 18px 18px !important;
    padding: 12px 14px !important;
    font-size: 12px !important;
    color: #6B5300 !important;
    font-style: italic !important;
    text-align: center !important;
    line-height: 1.5 !important;
  }

  /* Mise en page A4 */
  @page {
    size: A4;
    margin: 1.5cm;
  }
}
}

/* ── Responsive desktop ── */
/* ═══════════════════════════════════════════════════
   RESPONSIVE — Stratégie mobile-first
   - Petit mobile : <360px (iPhone SE, vieux Android)
   - Mobile standard : 360-599px (par défaut)
   - Grande mobile / Tablette portrait : 600-899px
   - Tablette paysage / Petit laptop : 900-1199px
   - Desktop : 1200px+
   ═══════════════════════════════════════════════════ */

/* ── Petit mobile (< 360px) ── */
@media (max-width: 359px) {
  .topbar { padding: 12px 14px; gap: 8px; }
  .topbar .logo { width: 32px; height: 32px; }
  .topbar .name .t1 { font-size: 12px; }
  .topbar .name .t2 { font-size: 9px; }
  .topbar .menu-icon { width: 32px; height: 32px; font-size: 20px; }

  .container { padding: 12px 8px; }
  .card, .card-red { padding: 1.2rem 1rem; }

  .h-title { font-size: 20px; }
  .h-sub { font-size: 13px; }

  .hero-poster { max-width: 260px; }
  .home-hero { padding: 1rem 1rem 1.4rem; }

  .countdown { gap: 6px; }
  .cd-cell { min-width: 50px; padding: 8px 4px; }
  .cd-num { font-size: 20px; }
  .cd-lbl { font-size: 8px; }

  .btn, .btn-cta { padding: 12px 18px; font-size: 13px; }

  .info-list .info-row { padding: 7px 0; font-size: 13px; }
  .amount-box .val { font-size: 24px; }
}

/* ── Tablette portrait & grande mobile (≥ 600px) ── */
@media (min-width: 600px) {
  .topbar { padding: 16px 22px; }
  .topbar .name .t1 { font-size: 15px; }
  .topbar .name .t2 { font-size: 11px; }

  .container { padding: 24px 16px; max-width: 540px; }

  .card, .card-red { padding: 2rem 1.8rem; }

  .home-hero { padding: 1.8rem 1.8rem 2.2rem; }
  .h-title { font-size: 26px; }
  .hero-poster { max-width: 380px; }

  .countdown { gap: 12px; }
  .cd-cell { min-width: 70px; padding: 14px 8px; }
  .cd-num { font-size: 28px; }

  .btn, .btn-cta { padding: 16px 28px; font-size: 15px; }

  .info-list .info-row { font-size: 14.5px; padding: 11px 0; }
  .amount-box { padding: 1.4rem; }
  .amount-box .val { font-size: 32px; }
}

/* ── Tablette paysage / Petit laptop (≥ 900px) ── */
@media (min-width: 900px) {
  .topbar { padding: 18px 32px; }
  .topbar .logo { width: 42px; height: 42px; }
  .topbar .name .t1 { font-size: 16px; }
  .topbar .name .t2 { font-size: 12px; }

  .container { max-width: 620px; padding: 32px 20px; }

  .card, .card-red { padding: 2.4rem 2rem; border-radius: 20px; }

  .home-hero {
    padding: 2.4rem 2.4rem 2.8rem;
    border-radius: 22px;
  }
  .h-title { font-size: 30px; }
  .h-sub { font-size: 16px; }
  .hero-poster { max-width: 420px; }

  .menu-dropdown { min-width: 260px; }
  .menu-dropdown .menu-item { padding: 13px 16px; font-size: 15px; }
}

/* ── Desktop large (≥ 1200px) ── */
@media (min-width: 1200px) {
  .container { max-width: 680px; }
  .topbar { padding: 20px 40px; }
}

/* ═══════════════════════════════════════════════════
   ADMIN RESPONSIVE — pour les pages d'administration
   ═══════════════════════════════════════════════════ */
@media (max-width: 599px) {
  .admin-container,
  .admin-content {
    padding: 12px !important;
  }
  .admin-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .admin-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .admin-actions {
    flex-direction: column;
    gap: 8px;
  }
  .admin-actions .btn {
    width: 100%;
  }
}
