/* ============================================================
   AVLC - Pages de collecte personnalisees
   avlc-tribute.css  |  Design inspire de perseverance-ico.com
   ============================================================ */

/* -- Variables ------------------------------------------------- */
/* Charte graphique AVLC 2026                                   */
:root {
  /* Bleu principal */
  --avlc-purple:    #0068A4;
  --avlc-purple-dk: #1E5A89;
  --avlc-purple-lt: #e4f2f9;
  --avlc-purple-md: #BAD9E9;
  /* Rose (ruban / en mémoire) */
  --avlc-pink:      #ED6C9E;
  --avlc-pink-dk:   #C2477A;
  --avlc-pink-lt:   #F8DDE7;
  --avlc-pink-md:   #f3c0d5;
  /* Bleu ciel */
  --avlc-sky:       #47ABCE;
  /* Utilitaires */
  --avlc-gold:      #f9a825;
  --avlc-green:     #2e7d32;
  --avlc-text:      #24364E;
  --avlc-muted:     #6b7a8d;
  --avlc-border:    #d5e5f0;
  --avlc-bg:        #f4f8fb;
  --avlc-white:     #ffffff;
  --avlc-cream:     #f7f4f0;
  --avlc-radius:    12px;
  --avlc-radius-sm: 8px;
  --avlc-shadow:    0 2px 16px rgba(0,0,0,.07);
  --avlc-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

/* -- Reset leger ----------------------------------------------- */
.avlc-tribute-page *,
.avlc-tribute-form-wrap *,
.avlc-tribute-grid * {
  box-sizing: border-box;
}

/* =====================================================
   PAGE DE COLLECTE – conteneur global
   ===================================================== */
.avlc-tribute-page {
  font-family: inherit;
  color: var(--avlc-text);
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
  background: var(--avlc-cream);
  border-radius: var(--avlc-radius);
  overflow: hidden;
}

/* =====================================================
   ZONE PRINCIPALE – 2 colonnes
   ===================================================== */
.avlc-tribute-main {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 40px 36px 32px;
}

/* =====================================================
   BANNIÈRE HERO – page single
   ===================================================== */
.avlc-tribute-hero {
  position: relative;   /* ancrage du médaillon */
  overflow: visible;    /* le médaillon déborde vers le bas, ne doit pas être coupé */
  line-height: 0;       /* supprime l'espace sous l'image */
}

.avlc-tribute-hero__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.avlc-tribute-medallion {
  position: absolute;
  bottom: -60px;
  left: 24px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  background: var(--avlc-purple-lt);
  color: var(--avlc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.avlc-tribute-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-tribute-hero-content {
  padding: 76px 36px 32px;
}

@media (max-width: 640px) {
  .avlc-tribute-hero__img { height: 180px; }
  .avlc-tribute-medallion { width: 80px; height: 80px; font-size: 28px; bottom: -40px; left: 16px; }
  .avlc-tribute-hero-content { padding: 56px 20px 24px; }
}

/* -- Colonne gauche : photo / avatar ---------------------------- */
.avlc-tribute-photo-col {
  flex: 0 0 190px;
  text-align: center;
}

.avlc-tribute-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 5px solid var(--avlc-white);
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  background: linear-gradient(135deg, var(--avlc-sky) 0%, var(--avlc-purple) 100%);
}

.avlc-tribute-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-tribute-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
}

.avlc-tribute-creator {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--avlc-muted);
  line-height: 1.5;
}

/* -- Colonne droite : contenu ---------------------------------- */
.avlc-tribute-content {
  flex: 1;
  min-width: 0;
}

.avlc-tribute-title {
  font-family: inherit;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--avlc-text);
  margin: 0 0 10px;
  line-height: 1.25;
}

.avlc-tribute-memory {
  display: inline-block;
  background: var(--avlc-pink-lt);
  color: var(--avlc-pink-dk);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 14px;
  font-style: italic;
  margin: 0 0 16px;
}

/* =====================================================
   STATS CARD – montant, %, barre, CTA, partage
   ===================================================== */
.avlc-stats-card {
  background: var(--avlc-white);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--avlc-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--avlc-shadow);
}

.avlc-stats-card__amounts {
  margin-bottom: 16px;
}

.avlc-stats-card__raised {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: var(--avlc-purple);
  line-height: 1;
  letter-spacing: -1px;
}

.avlc-stats-card__meta {
  display: block;
  font-size: 14px;
  color: var(--avlc-muted);
  margin-top: 6px;
}

.avlc-stats-card__pct {
  display: inline-block;
  background: var(--avlc-purple-lt);
  color: var(--avlc-purple);
  border-radius: 12px;
  padding: 1px 9px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}

.avlc-stats-card__goal {
  display: block;
  font-size: 13px;
  color: var(--avlc-muted);
  margin-top: 4px;
}

.avlc-stats-card__secure {
  text-align: center;
  font-size: 12px;
  color: var(--avlc-muted);
  margin: 0 0 20px;
}

/* Barre de progression */
.avlc-progress-bar {
  height: 10px;
  background: var(--avlc-purple-lt);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.avlc-progress-bar--sm {
  height: 7px;
  margin: 10px 0 4px;
}

.avlc-progress-fill {
  height: 100%;
  background: var(--avlc-purple);
  border-radius: 5px;
  transition: width .9s ease;
}

.avlc-progress-fill--done { background: var(--avlc-green); }

.avlc-progress-done {
  font-size: 14px;
  color: var(--avlc-green);
  font-weight: 600;
  margin: 0 0 12px;
}

/* Bouton CTA principal */
.avlc-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--avlc-purple) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 30px !important;
  border-radius: 30px !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer;
  margin: 16px 0 10px;
  transition: background .2s, opacity .2s;
  line-height: 1.4 !important;
}

.avlc-cta-btn:hover,
.avlc-cta-btn:focus {
  background: var(--avlc-purple-dk) !important;
  color: #fff !important;
  text-decoration: none !important;
  opacity: 1;
}

/* Partage */
.avlc-share {
  border-top: 1px solid var(--avlc-border);
  padding-top: 16px;
}

.avlc-share__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--avlc-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.avlc-share__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avlc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid;
  cursor: pointer;
  background: var(--avlc-white);
  transition: background .18s, color .18s;
  font-family: inherit;
  line-height: 1;
}

.avlc-share-fb  { color: #1877f2; border-color: #1877f2; }
.avlc-share-fb:hover { background: #e7f0fd; color: #1877f2; }
.avlc-share-tw  { color: #1a1a1a; border-color: #1a1a1a; }
.avlc-share-tw:hover { background: #f0f0f0; color: #1a1a1a; }
.avlc-copy-link { color: var(--avlc-purple); border-color: var(--avlc-purple-md); }
.avlc-copy-link:hover { background: var(--avlc-purple-lt); }
.avlc-copy-link.copied { background: #e8f5e9; color: var(--avlc-green); border-color: var(--avlc-green); }

/* =====================================================
   MESSAGE
   ===================================================== */
.avlc-message {
  background: var(--avlc-white);
  border-left: 4px solid var(--avlc-purple);
  border-radius: 0 var(--avlc-radius-sm) var(--avlc-radius-sm) 0;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  box-shadow: var(--avlc-shadow);
}

.avlc-message p { margin: 0 0 1em; }
.avlc-message p:last-child { margin-bottom: 0; }
.avlc-message strong, .avlc-message b { font-weight: 700; }
.avlc-message em, .avlc-message i { font-style: italic; }
.avlc-message u { text-decoration: underline; }
.avlc-message ul, .avlc-message ol { padding-left: 1.5em; margin: 0 0 1em; }
.avlc-message ul { list-style: disc; }
.avlc-message ol { list-style: decimal; }
.avlc-message li { margin-bottom: 0.3em; }
.avlc-message a { color: var(--avlc-blue); text-decoration: underline; }
.avlc-message a:hover { opacity: 0.8; }

/* =====================================================
   DONATEURS
   ===================================================== */
.avlc-donors {
  background: var(--avlc-white);
  padding: 24px 36px;
  margin-bottom: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

.avlc-donors__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--avlc-purple);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avlc-donors__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--avlc-purple-lt);
  color: var(--avlc-purple);
  font-size: 13px;
  font-weight: 700;
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  padding: 0 8px;
}

.avlc-donor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.avlc-donor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--avlc-bg);
  border: 1px solid var(--avlc-border);
  border-radius: var(--avlc-radius-sm);
  padding: 12px 16px;
  transition: box-shadow .15s;
}

.avlc-donor-item:hover { box-shadow: var(--avlc-shadow); }

.avlc-donor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--avlc-purple-lt);
  color: var(--avlc-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.avlc-donor-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--avlc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avlc-donor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.avlc-donor-ago {
  font-size: 11px;
  color: var(--avlc-muted);
}

.avlc-donor-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--avlc-purple);
}

.avlc-donors__empty {
  text-align: center;
  color: var(--avlc-muted);
  font-style: italic;
  padding: 24px;
  padding-bottom: 24px !important;
  background: var(--avlc-purple-lt);
  border-radius: var(--avlc-radius-sm);
}

/* =====================================================
   FAQ – accordéon (remplace le footer)
   ===================================================== */
.avlc-faq {
  padding: 32px 36px 40px;
  border-top: 1px solid var(--avlc-border);
}

.avlc-faq__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--avlc-text);
  margin: 0 0 16px;
}

.avlc-faq__item {
  border: 1px solid var(--avlc-border);
  border-radius: var(--avlc-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

.avlc-faq__item[open] {
  border-color: var(--avlc-purple-md);
}

.avlc-faq__question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--avlc-text);
  cursor: pointer;
  background: var(--avlc-white);
  user-select: none;
  gap: 12px;
}

.avlc-faq__question::-webkit-details-marker { display: none; }

.avlc-faq__question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--avlc-purple);
  transition: transform .2s;
}

.avlc-faq__item[open] .avlc-faq__question::after {
  content: '−';
}

.avlc-faq__answer {
  padding: 0 16px 14px;
  font-size: 13.5px;
  color: var(--avlc-muted);
  line-height: 1.65;
  background: var(--avlc-white);
}

.avlc-faq__answer p { margin: 0; }

.avlc-faq__answer a { color: var(--avlc-purple); }

.avlc-faq__email-image {
  display: inline-block;
  width: auto;
  max-width: min(126px, 100%);
  height: 16px;
  margin: 0 2px;
  vertical-align: -4px;
}

@media (max-width: 640px) {
  .avlc-faq { padding: 24px 20px 32px; }
}

/* =====================================================
   LISTE DES CAGNOTTES  [avlc_tribute_list]
   ===================================================== */
.avlc-tribute-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 0;
}

.avlc-empty {
  color: var(--avlc-muted);
  font-style: italic;
  text-align: center;
  padding: 32px;
}

.avlc-card {
  background: var(--avlc-white);
  border: 1px solid var(--avlc-border);
  border-radius: var(--avlc-radius);
  box-shadow: var(--avlc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.avlc-card:hover {
  box-shadow: var(--avlc-shadow-lg);
  transform: translateY(-3px);
}

/* -- Bannière de carte ----------------------------------------- */
.avlc-card__banner {
  height: 150px;
  overflow: hidden;
  border-radius: var(--avlc-radius) var(--avlc-radius) 0 0;
  background: linear-gradient(135deg, var(--avlc-purple-lt), var(--avlc-purple-md));
}

.avlc-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 0;
}

.avlc-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avlc-sky) 0%, var(--avlc-purple) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -1px;
  overflow: hidden;
}

.avlc-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-card__meta { flex: 1; min-width: 0; }

.avlc-card__memory {
  display: block;
  font-size: 12px;
  color: var(--avlc-pink-dk);
  font-style: italic;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avlc-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.avlc-card__title a { color: var(--avlc-text); text-decoration: none; }
.avlc-card__title a:hover { color: var(--avlc-purple); }

.avlc-card__excerpt {
  padding: 10px 20px 0;
  font-size: 13.5px;
  color: var(--avlc-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.avlc-card__stats {
  padding: 16px 20px 0;
}

.avlc-card__raised {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--avlc-purple);
  line-height: 1;
}

.avlc-card__raised-label {
  display: block;
  font-size: 12px;
  color: var(--avlc-muted);
  margin-top: 2px;
  margin-bottom: 4px;
}

.avlc-card__pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--avlc-purple);
}

.avlc-card__actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 20px;
  margin-top: auto;
}

.avlc-card__btn-view,
.avlc-card__btn-donate {
  flex: 1;
  text-align: center;
  padding: 9px 14px !important;
  border-radius: 30px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background .18s, color .18s, opacity .18s;
  line-height: 1.4;
  border: none !important;
}

.avlc-card__btn-view {
  background: var(--avlc-purple-lt) !important;
  color: var(--avlc-purple) !important;
  outline: 1.5px solid var(--avlc-purple-md);
}

.avlc-card__btn-view:hover {
  background: var(--avlc-purple-md) !important;
  color: var(--avlc-purple-dk) !important;
}

.avlc-card__btn-donate {
  background: var(--avlc-purple) !important;
  color: #fff !important;
}

.avlc-card__btn-donate:hover {
  background: var(--avlc-purple-dk) !important;
  color: #fff !important;
}

/* =====================================================
   FORMULAIRE DE CREATION  [avlc_create_tribute]
   ===================================================== */
.avlc-tribute-form-wrap {
  font-family: inherit;
  color: var(--avlc-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* =====================================================
   STEPPER – indicateur d'étapes
   ===================================================== */
.avlc-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 0;
}

.avlc-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.avlc-stepper__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--avlc-border);
  background: var(--avlc-white);
  color: var(--avlc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: background .25s, border-color .25s, color .25s;
}

.avlc-stepper__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--avlc-muted);
  white-space: nowrap;
  transition: color .25s;
}

.avlc-stepper__sep {
  flex: 1;
  height: 2.5px;
  background: var(--avlc-border);
  margin: 0 6px;
  margin-bottom: 22px;
  max-width: 80px;
  min-width: 24px;
  transition: background .25s;
}

/* État actif */
.avlc-stepper__step.active .avlc-stepper__num {
  background: var(--avlc-purple);
  border-color: var(--avlc-purple);
  color: #fff;
}
.avlc-stepper__step.active .avlc-stepper__label { color: var(--avlc-purple); }

/* État complété */
.avlc-stepper__step.done .avlc-stepper__num {
  background: var(--avlc-purple-lt);
  border-color: var(--avlc-purple);
  color: var(--avlc-purple);
}
.avlc-stepper__step.done .avlc-stepper__label { color: var(--avlc-purple); }
.avlc-stepper__sep.done { background: var(--avlc-purple); }

/* ── Étapes du formulaire ──────────────────────────── */
.avlc-form-step { display: none; }
.avlc-form-step.active { display: block; }

.avlc-edit-tribute-wrap {
  margin-top: 48px;
  margin-bottom: 64px;
}

.avlc-edit-tribute-wrap .avlc-form-nav {
  margin-top: 24px;
  margin-bottom: 12px;
}

.avlc-edit-tribute-wrap .avlc-btn--primary {
  background: var(--avlc-purple) !important;
  color: #fff !important;
  border: 0 !important;
}

.avlc-edit-tribute-wrap .avlc-btn--primary:hover,
.avlc-edit-tribute-wrap .avlc-btn--primary:focus {
  background: var(--avlc-purple-dk) !important;
  color: #fff !important;
}

/* ── Navigation ────────────────────────────────────── */
.avlc-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  gap: 12px;
}

.avlc-btn--ghost {
  background: transparent;
  color: var(--avlc-muted);
  border: 1.5px solid var(--avlc-border);
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--avlc-radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .18s, color .18s;
}

.avlc-btn--ghost:hover {
  background: var(--avlc-bg);
  color: var(--avlc-text);
}

/* ── Récapitulatif ──────────────────────────────────── */
.avlc-form-section--summary {
  background: var(--avlc-purple-lt);
  border-color: var(--avlc-purple-md);
}

.avlc-summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avlc-summary-warning {
  margin: -4px 0 16px;
  color: #c62828;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.avlc-captcha-section input[type="text"] {
  max-width: 220px;
}

.avlc-hp-field {
  display: none;
}

.avlc-summary-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.avlc-summary-row dt {
  width: 130px;
  flex-shrink: 0;
  color: var(--avlc-muted);
  font-weight: 600;
}

.avlc-summary-row dd {
  margin: 0;
  color: var(--avlc-text);
  font-weight: 500;
  word-break: break-word;
}

.avlc-notice {
  padding: 16px 20px;
  border-radius: var(--avlc-radius-sm);
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.6;
}

.avlc-notice-error {
  background: #fdecea;
  border-left: 4px solid #c62828;
  color: #b71c1c;
}

.avlc-notice-success {
  background: #e8f5e9;
  border-left: 4px solid var(--avlc-green);
  color: #1b5e20;
}

.avlc-notice ul { margin: 8px 0 0; padding-left: 20px; }
.avlc-notice li { margin: 4px 0; }

.avlc-form-section {
  background: var(--avlc-white);
  border: 1px solid var(--avlc-border);
  border-radius: var(--avlc-radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--avlc-shadow);
}

.avlc-form-section h3 {
  font-family: inherit;
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--avlc-purple);
  border-bottom: 2px solid var(--avlc-purple-lt);
  padding-bottom: 12px;
}

.avlc-form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 540px) {
  .avlc-form-row--half { grid-template-columns: 1fr; }
}

.avlc-form-group { margin-bottom: 20px; }
.avlc-form-group:last-child { margin-bottom: 0; }

.avlc-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
  color: var(--avlc-text);
}

.avlc-form-group label .required { color: #c62828; }

.avlc-form-group input[type="text"],
.avlc-form-group input[type="email"],
.avlc-form-group input[type="number"],
.avlc-form-group textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--avlc-border);
  border-radius: var(--avlc-radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--avlc-bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
  box-sizing: border-box;
}

.avlc-form-group input:focus,
.avlc-form-group textarea:focus {
  outline: none;
  border-color: var(--avlc-purple);
  background: var(--avlc-white);
  box-shadow: 0 0 0 3px rgba(0,104,164,.1);
}

.avlc-form-group textarea { resize: vertical; }

.avlc-help-text,
.avlc-char-count {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--avlc-muted);
}

.avlc-input-prefix { position: relative; }
.avlc-input-prefix input { padding-right: 42px; }
.avlc-input-prefix .prefix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--avlc-purple);
  pointer-events: none;
}

/* Photo upload */
.avlc-photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avlc-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--avlc-border);
  background: var(--avlc-purple-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--avlc-purple);
}

.avlc-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avlc-photo-upload-info { flex: 1; }

.avlc-btn-upload {
  display: inline-block;
  background: var(--avlc-purple-lt);
  color: var(--avlc-purple);
  border: 1.5px solid var(--avlc-purple-md);
  padding: 9px 18px;
  border-radius: var(--avlc-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  margin-bottom: 6px;
}

.avlc-btn-upload:hover { background: var(--avlc-purple-md); }

.avlc-legal {
  background: var(--avlc-purple-lt);
  border-color: var(--avlc-purple-md);
}

.avlc-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  cursor: pointer;
  line-height: 1.5;
}

.avlc-checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--avlc-purple); }
.avlc-checkbox-label a { color: var(--avlc-purple); font-weight: 600; }

.avlc-form-submit { text-align: center; padding-top: 4px; }

.avlc-btn--primary {
  display: inline-block;
  background: var(--avlc-purple);
  color: #fff !important;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, opacity .2s;
}

.avlc-btn--primary:hover {
  background: var(--avlc-purple-dk);
  color: #fff !important;
}

.avlc-btn--primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* =====================================================
   MODALE DON HELLOASSO
   ===================================================== */
.avlc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.avlc-modal.open {
  display: flex;
}

.avlc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
}

.avlc-modal__container {
  position: relative;
  z-index: 1;
  background: var(--avlc-white);
  border-radius: var(--avlc-radius);
  box-shadow: 0 16px 64px rgba(0,0,0,.28);
  width: min(1200px, 95vw);
  height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.avlc-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--avlc-text);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s, transform .15s;
}

.avlc-modal__close:hover {
  background: #fff;
  transform: scale(1.1);
}

.avlc-modal__iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0 0 var(--avlc-radius) var(--avlc-radius);
}

/* Bouton CTA en mode button (popup) */
.avlc-cta-btn--popup {
  font-family: inherit;
  font-size: 17px;
  width: 100%;
  cursor: pointer;
}

@media (max-width: 480px) {
  .avlc-modal__container {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .avlc-modal__close {
    top: 8px;
    right: 8px;
  }
}

/* =====================================================
   CAROUSEL D'IMAGES
   ===================================================== */
.avlc-carousel {
  position: relative;
  width: 170px;
  margin: 20px auto;
  border-radius: var(--avlc-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.14);
  border: 5px solid var(--avlc-white);
}

.avlc-carousel--single {
  border-radius: 50%;
}

.avlc-carousel__track {
  width: 100%;
  height: 160px;
  position: relative;
}

.avlc-carousel__slide {
  display: none;
  width: 100%;
  height: 100%;
}

.avlc-carousel__slide.active { display: block; }

.avlc-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-carousel--single .avlc-carousel__track { height: 160px; }

.avlc-carousel__prev,
.avlc-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.82);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--avlc-purple);
  padding: 0;
  transition: background .15s;
}

.avlc-carousel__prev { left: 5px; }
.avlc-carousel__next { right: 5px; }
.avlc-carousel__prev:hover,
.avlc-carousel__next:hover { background: #fff; }

.avlc-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 5px 0 4px;
  background: rgba(0,0,0,.28);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.avlc-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .15s;
}

.avlc-carousel__dot.active { background: #fff; }

/* =====================================================
   GALERIE - PREVISUALISATION FORMULAIRE
   ===================================================== */
.avlc-gallery-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 80px;
}

.avlc-gallery-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--avlc-radius-sm);
  overflow: hidden;
  border: 2px solid var(--avlc-border);
  flex-shrink: 0;
}

.avlc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-gallery-thumb__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,.58);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s;
}

.avlc-gallery-thumb__remove:hover { background: #c62828; }

.avlc-gallery-add-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--avlc-radius-sm);
  border: 2px dashed var(--avlc-purple-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--avlc-purple);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
  background: transparent;
}

.avlc-gallery-add-btn:hover {
  background: var(--avlc-purple-lt);
  border-color: var(--avlc-purple);
}

/* ── Bannière – prévisualisation formulaire ─────────────────── */
.avlc-banner-preview {
  width: 100%;
  min-height: 90px;
}

.avlc-banner-add-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  border: 2px dashed var(--avlc-border);
  border-radius: var(--avlc-radius-sm);
  cursor: pointer;
  color: var(--avlc-muted);
  transition: background .15s, border-color .15s;
  background: transparent;
}

.avlc-banner-add-btn:hover {
  background: var(--avlc-purple-lt);
  border-color: var(--avlc-purple);
}

.avlc-banner-thumb {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: var(--avlc-radius-sm);
  overflow: hidden;
}

.avlc-banner-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avlc-banner-thumb__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.avlc-banner-thumb__remove:hover { background: #c62828; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
  .avlc-stepper__label { display: none; }
  .avlc-stepper__sep { max-width: 40px; }
  .avlc-stepper__num { width: 32px; height: 32px; font-size: 13px; }
  .avlc-summary-row dt { width: 100px; }
}

@media (max-width: 640px) {
  .avlc-tribute-main {
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    gap: 20px;
  }
  .avlc-tribute-photo-col {
    flex: none;
    width: 100%;
  }
  .avlc-tribute-photo {
    width: 130px;
    height: 130px;
  }
  .avlc-tribute-photo--initials {
    font-size: 40px;
  }
  .avlc-tribute-title {
    text-align: center;
  }
  .avlc-tribute-memory {
    display: block;
    text-align: center;
  }
  .avlc-stats-card { padding: 18px 16px; }
  .avlc-stats-card__raised { font-size: 32px; }
  .avlc-share__btns { justify-content: center; }
  .avlc-donors { padding: 20px 20px; }
  .avlc-tribute-grid { grid-template-columns: 1fr; }
  .avlc-form-section { padding: 20px 16px; }
  .avlc-photo-upload-wrap { flex-direction: column; text-align: center; }
}
