/* ===================================================================
   ASSO HAÏTI - DESIGN SYSTEM ÉPURÉ & ULTRA-MODERNE
   Inspiré de GoFundMe, OpenCollective & Airbnb
   Cohérent, minimaliste, fond blanc & gris clair, typographie nette
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Nuances neutres & modernes */
  --bg-page: #FAFAFA;
  --bg-card: #FFFFFF;
  --border-light: #EAEAEA;
  --border-subtle: #F0F0F0;
  --border-focus: #0F172A;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-sub: #94A3B8;

  /* Accent principal (Impact vert discret) */
  --accent: #059669;
  --accent-light: #ECFDF5;
  --accent-hover: #047857;
  /* Alias historique utilisé dans plusieurs vues */
  --emerald: #059669;

  /* Accent secondaire sombre (Minimal chic) */
  --dark: #0F172A;
  --dark-hover: #1E293B;

  /* Badges & Paiements */
  --moncash: #E11D48;
  --natcash: #0284C7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.08);

  --transition: all 0.2s ease-in-out;
  --container: 1180px;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  /* clip (et non hidden) : préserve position: sticky des colonnes d'aperçu */
  overflow-x: clip;
  position: relative;
}

main, .app-main-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* clip (et non hidden) : évite de créer un conteneur de défilement
     qui casserait position: sticky des colonnes d'aperçu */
  overflow-x: clip;
  flex: 1 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ================= HEADER MINIMALISTE ================= */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .nav-container {
  max-width: 1360px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.3px;
  color: var(--dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
  font-weight: 650;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= SÉLECTEUR DE LANGUE DÉROULANT (FR / KR / EN) ================= */
.lang-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #F1F5F9;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-dropdown-toggle:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.lang-dropdown-globe {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lang-dropdown-current {
  letter-spacing: 0.3px;
}

.lang-dropdown-caret {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown-caret.is-open {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.16);
  padding: 6px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  transition: background 0.15s ease;
}

.lang-dropdown-item:hover {
  background: #F8FAFC;
}

.lang-dropdown-item.active {
  background: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 700;
}

.lang-dropdown-flag {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-dropdown-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-dropdown-code {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.lang-dropdown-item.active .lang-dropdown-code {
  color: var(--accent-hover);
}

.lang-dropdown-check {
  font-size: 0.72rem;
  color: var(--accent);
  flex-shrink: 0;
}

[x-cloak] {
  display: none !important;
}

/* ================= BOUTONS ÉPURÉS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-dark {
  background: var(--dark);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: var(--dark-hover);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-light);
  background: #FFFFFF;
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--dark);
  background: #FFFFFF;
}

/* Bouton contour sur fond sombre (CTA, sections dark) */
.cta-dark-btn {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-dark-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--dark);
  background: var(--border-subtle);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.90rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

/* ================= HERO SECTION AVEC IMAGE EN FOND (SANS GRADIENT) ================= */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem 0;
  background-color: #0F172A;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65); /* Filtre sombre uniforme pour lisibilité maximale - sans dégradé */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-wrapper {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-pill i {
  color: #34D399;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: #34D399;
}

.hero-desc {
  font-size: 1.18rem;
  font-weight: 500;
  color: #F1F5F9;
  line-height: 1.6;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3.5rem;
}

/* ================= BARRE DE RECHERCHE ================= */
.search-box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 34px -8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search-field input,
.search-field select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-family: inherit;
  color: #FFFFFF;
  background: transparent;
}

.search-field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-field select {
  cursor: pointer;
  color: #FFFFFF;
}

.search-field select option {
  color: var(--dark);
  background: #FFFFFF;
}

.search-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.3);
}

/* ================= SECTIONS & GRILLES ================= */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ================= CARTES PROJETS ULTRA-MODERNES (STYLE GOFUNDME / AIRBNB) ================= */
.card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
}

.card-media {
  height: 195px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #F1F5F9;
  overflow: hidden;
  display: block;
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.verified-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(5, 150, 105, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
  z-index: 2;
}

.card-payment-chips {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.payment-chip-micro {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.payment-chip-micro.moncash {
  background: rgba(225, 29, 72, 0.92);
}

.payment-chip-micro.natcash {
  background: rgba(2, 132, 199, 0.92);
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.card-title a:hover {
  color: var(--emerald);
}

.card-desc {
  font-size: 0.90rem;
  font-weight: 400;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Mention don libre sur les cartes */
.card-donation-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 5px 12px;
  margin-top: auto;
  margin-bottom: 1.15rem;
  align-self: flex-start;
}

.card-donation-note i {
  font-size: 0.85rem;
}

/* Bloc d'avancement des dons épuré & aérien */
.card-funding-box {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: auto;
  margin-bottom: 1.15rem;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.funding-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.funding-collected {
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--dark);
  letter-spacing: -0.2px;
}

.funding-target {
  font-size: 0.84rem;
  font-weight: 500;
  color: #94A3B8;
}

.funding-percent {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(5, 150, 105, 0.08);
  padding: 1px 7px;
  border-radius: 999px;
}

.funding-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #94A3B8;
}

.card-footer {
  display: flex;
  width: 100%;
  gap: 8px;
}

.card-footer .btn-card-primary {
  flex: 1 1 58%;
  width: auto;
}

.card-footer .btn-card-outline {
  flex: 1 1 42%;
  white-space: nowrap;
}

.btn-card-outline {
  flex: 1;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--dark);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.btn-card-outline:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-card-primary {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 650;
  border-radius: 12px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #FFFFFF;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-primary:hover {
  background: var(--dark-hover);
  border-color: var(--dark-hover);
  transform: translateY(-1px);
}

/* ================= SECTION QUI NOUS SOMMES ? ================= */
.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
  aspect-ratio: 4 / 3;
  background: #F1F5F9;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo:hover img {
  transform: scale(1.05);
}

.about-photo-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 12px;
}

.about-photo-caption i {
  color: #34D399;
  font-size: 0.74rem;
}

@media (max-width: 640px) {
  .about-photo { aspect-ratio: 4 / 3; border-radius: 16px; }
  .about-photo-caption { font-size: 0.72rem; padding: 5px 10px; left: 10px; bottom: 10px; }
}

/* ============================================================
   BACK-OFFICE ADMINISTRATION PLATEFORME
   ============================================================ */

.admin-container {
  padding-top: 1.25rem;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.ad {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* En-tête */
.ad-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--dark);
  border-radius: 14px;
  padding: 16px 18px;
  color: #FFF;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ad-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.ad-brand h1 {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.ad-brand p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.ad-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ad-head-actions .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFF;
}

.ad-head-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.ad-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
  font-size: 0.85rem;
  text-decoration: none;
}

.ad-logout:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Onglets */
.ad-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.ad-tabs::-webkit-scrollbar { display: none; }

.ad-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ad-tab:hover { border-color: #CBD5E1; color: var(--dark); }

.ad-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #FFF;
}

.ad-tab-badge {
  background: #EF4444;
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 17px;
  text-align: center;
}

/* Cartes de chiffres */
.ad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ad-stat {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 13px 15px;
}

.ad-stat.is-warn {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.ad-stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ad-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--dark);
  margin-top: 3px;
  line-height: 1.2;
}

.ad-stat small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-top: 2px;
}

/* Grille 2 colonnes */
.ad-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Blocs */
.ad-box {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 15px 16px;
}

.ad-box h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
}

.ad-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Recherche */
.ad-search {
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 0.84rem;
  font-family: inherit;
  color: var(--dark);
  width: 220px;
  outline: none;
}

.ad-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Filtres */
.ad-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ad-chip {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
}

.ad-chip.active {
  background: var(--accent-light);
  border-color: #A7F3D0;
  color: var(--accent);
}

/* Lignes */
.ad-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.ad-line:last-of-type { border-bottom: none; }

.ad-line-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ad-line-main strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--dark);
  line-height: 1.35;
}

.ad-line-main small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-line-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ad-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
}

.ad-init {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ad-money {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: #F1F5F9;
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
}

.ad-pill.ok {
  background: var(--accent-light);
  color: var(--accent);
  border-color: #A7F3D0;
}

.ad-pill.off {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.ad-pill.dark {
  background: var(--dark);
  color: #FFF;
}

.ad-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  cursor: pointer;
  font-size: 0.78rem;
}

.ad-danger:hover { background: #FEE2E2; }

.ad-none {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.ad-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 0.72rem;
  color: #F59E0B;
}

.ad-stars i.off {
  color: #E2E8F0;
}

.ad-error {
  display: block;
  font-size: 0.76rem;
  color: #E11D48;
  margin-top: 4px;
}

/* Lignes de réglage des frais */
.ad-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.ad-fee-row:last-of-type { border-bottom: none; }

.ad-fee-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  min-width: 130px;
}

.ad-fee-name i { font-size: 1rem; width: 18px; text-align: center; }

.ad-fee-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  flex: 1;
  max-width: 480px;
}

.ad-fee-inputs label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-fee-inputs label > span {
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ad-fee-inputs .form-input {
  padding: 7px 10px;
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .ad-fee-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .ad-fee-inputs { max-width: none; grid-template-columns: repeat(2, 1fr); }
}

/* Paires clé/valeur */
.ad-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ad-kv:last-of-type { border-bottom: none; }

.ad-kv strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}

/* Mini graphique */
.ad-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 130px;
  padding-top: 8px;
}

.ad-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 6px;
}

.ad-chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: #F8FAFC;
  border-radius: 6px;
  overflow: hidden;
}

.ad-chart-bar {
  width: 100%;
  background: linear-gradient(180deg, #34D399, #059669);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

.ad-chart-lbl {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-weight: 600;
  white-space: nowrap;
}

/* Toast */
.ad-toast {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 10000;
  background: var(--dark);
  color: #FFF;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 550;
  max-width: 92vw;
}

.ad-toast i { color: #34D399; }

.ad-toast button {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 2px;
}

/* Mobile */
@media (max-width: 900px) {
  .ad-grid-2 { grid-template-columns: 1fr; }
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ad-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ad-head-actions { width: 100%; justify-content: space-between; }
  .ad-brand h1 { font-size: 1rem; }
  .ad-stat { padding: 11px 12px; }
  .ad-stat strong { font-size: 1.15rem; }
  .ad-box { padding: 13px 12px; border-radius: 12px; }
  .ad-search { width: 100%; }
  .ad-box-head { flex-direction: column; align-items: stretch; }
  .ad-line { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ad-line-actions { width: 100%; justify-content: flex-start; }
  .ad-chart { height: 110px; gap: 4px; }
  .ad-chart-lbl { font-size: 0.62rem; }
  .ad-toast { right: 12px; left: 12px; max-width: none; font-size: 0.8rem; }
}

/* ============================================================
   FRAIS DE TRANSACTION (MODAL DE DON)
   ============================================================ */

.fee-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dark);
}

.fee-row > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fee-row small {
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 500;
}

.fee-row strong {
  font-weight: 700;
  white-space: nowrap;
}

.fee-row-muted {
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed #E2E8F0;
}

.fee-row-muted strong {
  color: #DC2626;
  font-weight: 650;
}

.fee-row-total {
  color: var(--accent);
}

.fee-row-total strong {
  font-size: 1.05rem;
  font-weight: 750;
}

.payment-tile-fee {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--text-sub);
  margin-top: 3px;
}

@media (max-width: 640px) {
  .fee-box { padding: 10px 12px; border-radius: 10px; }
  .fee-row { font-size: 0.82rem; }
  .fee-row-total strong { font-size: 0.98rem; }
}

/* ============================================================
   CARTES ÉVÉNEMENTS & FORMATIONS
   ============================================================ */
.event-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.03);
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
}

.event-media {
  height: 200px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #F1F5F9;
}

.event-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, transparent 40%, transparent 60%, rgba(15, 23, 42, 0.45) 100%);
}

.date-badge-box {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2;
  min-width: 50px;
}

.date-badge-month {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald);
  letter-spacing: 0.5px;
}

.date-badge-day {
  font-size: 1.30rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

/* ================= CARTES CATÉGORIES MINIMALISTES ================= */
.cat-pill-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.cat-pill-card:hover {
  border-color: var(--dark);
  transform: translateY(-2px);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
}

.cat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
}

.cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= ÉVÉNEMENTS & FORMATIONS ================= */
.event-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #D1D5DB;
}

.event-media {
  height: 170px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #E2E8F0;
}

.price-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-subtle);
}

.price-pill.free {
  background: var(--accent);
  color: #FFFFFF;
}

.price-pill.paid {
  background: var(--dark);
  color: #FFFFFF;
}

.event-date-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-type-label {
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 6px;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.event-info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.event-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===================================================================
   FORMULAIRES PAR BLOCS (FONCTIONNEMENT GOOGLE FORMS, DESIGN PLATEFORME)
   Style épuré, blanc & gris, contrastes sombres et verts
   =================================================================== */
.form-shell-center {
  max-width: 680px;
  margin: 3rem auto;
}

/* Conteneur du formulaire public (style Google Forms) */
.form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

/* Carte Header */
.form-header-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
  border-top: 4px solid var(--dark);
}

/* Bloc question (carte blanche) */
.form-block {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.form-block:focus-within {
  border-color: var(--dark);
  box-shadow: var(--shadow-card);
}

.form-block-question {
  font-size: 1rem;
  font-weight: 650;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

.form-block-required {
  color: #EF4444;
  font-weight: 700;
  margin-left: 2px;
}

.form-upload-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--text-sub);
  margin-bottom: 0.6rem;
}

.form-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.form-main-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.form-req-notice {
  font-size: 0.8rem;
  color: #E11D48;
  font-weight: 600;
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

/* Blocs Questions */
.form-question-block {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.form-question-block:focus-within,
.form-question-block.active {
  border-color: var(--dark);
  box-shadow: var(--shadow-hover);
}

.form-q-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-q-label .req {
  color: #E11D48;
}

.form-q-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Inputs dans les blocs */
.form-block-input {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--bg-page);
  outline: none;
  transition: var(--transition);
}

.form-block-input:focus {
  border-color: var(--dark);
  background: #FFFFFF;
}

/* Options radio & checkbox minimalistes */
.form-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.92rem;
}

.form-option-row:hover {
  background: var(--bg-page);
  border-color: var(--dark);
}

.form-option-row input[type="radio"],
.form-option-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--dark);
  cursor: pointer;
}

/* Téléversement fichier propre */
.form-upload-zone {
  display: block;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  background: var(--bg-page);
  cursor: pointer;
  transition: var(--transition);
}

.form-upload-zone:hover {
  border-color: var(--dark);
  background: #FFFFFF;
}

/* ================= ONGLETS ================= */
.tab-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--dark);
}

/* ================= BANNIÈRE DE CONFIANCE ================= */
.trust-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.trust-item {
  display: flex;
  gap: 16px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.trust-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= MODAL UNIVERSEL ================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.98);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-head {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.8rem;
}

.preset-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 1.25rem;
}

.preset-chip {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.preset-chip:hover,
.preset-chip.active {
  border-color: var(--dark);
  background: var(--dark);
  color: #FFFFFF;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--dark);
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 1.25rem;
}

.payment-tile {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.payment-tile:hover,
.payment-tile.active {
  border-color: var(--dark);
  background: var(--bg-page);
}

.payment-tile-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

/* ================= PAGE CATALOGUE ================= */
.catalogue-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.5rem 0 2rem 0;
}

/* ================= BANNIÈRE CENTRÉE SANS GRADIENT & FILTRES RAPIDES ================= */
.page-hero-banner {
  background: #0F172A;
  color: #FFFFFF;
  padding: 2.75rem 1rem 3.75rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.page-hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  margin: 0 auto 0.35rem auto;
  text-align: center;
}

.page-hero-subtitle {
  font-size: 0.9rem;
  font-weight: 400;
  color: #94A3B8;
  margin: 0 auto 1.35rem auto;
  max-width: 520px;
  text-align: center;
  line-height: 1.5;
}

/* Centered search input inside banner */
.page-hero-search-wrap {
  position: relative;
  max-width: 540px;
  width: 100%;
  margin: 0 auto 1.25rem auto;
  box-sizing: border-box;
}

.page-hero-search-wrap .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  font-size: 0.95rem;
  pointer-events: none;
}

.page-hero-search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.page-hero-search-wrap input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.page-hero-search-wrap input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.page-hero-search-wrap .search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-search-wrap .search-clear-btn:hover {
  color: #0F172A;
}

/* Horizontal scrollable chips with icons */
.page-hero-chips-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 4px 6px 4px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-hero-chips-wrap::-webkit-scrollbar {
  display: none;
}

.page-hero-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #1E293B;
  color: #F8FAFC;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.page-hero-chip i {
  font-size: 0.88rem;
  color: #94A3B8;
}

.page-hero-chip:hover {
  background: #334155;
  border-color: #475569;
  color: #FFFFFF;
}

.page-hero-chip.active {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.page-hero-chip.active i {
  color: var(--emerald);
}

/* Overlapping flat sheet section (style page asso) */
.page-hero-overlap-section {
  position: relative;
  z-index: 10;
  margin-top: -24px;
  padding-bottom: 3.5rem;
}

.page-sheet-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}

.page-sheet-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.84rem;
}

.filter-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--dark);
  outline: none;
  cursor: pointer;
  max-width: 220px;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease;
}

.filter-pill-select:focus {
  border-color: var(--emerald);
}

.filter-count-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-filter-reset {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: #EF4444;
  cursor: pointer;
  font-weight: 600;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-filter-reset:hover {
  text-decoration: underline;
}

.sidebar-filters {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
  border: none;
  margin: 0;
  padding: 0;
}

.filter-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.filter-checkbox input {
  accent-color: var(--dark);
}

/* ================= PAGE DÉTAIL D'ASSOCIATION ================= */
.detail-hero-cover {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #E2E8F0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.detail-cover {
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #E2E8F0;
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  width: 100%;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.5rem;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  margin-bottom: 5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.detail-main {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.detail-header-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.detail-header-block {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.detail-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  object-fit: cover;
  flex-shrink: 0;
}

.detail-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.detail-tags-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.detail-info-row {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-info-row span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tab-nav-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 2rem;
}

.tab-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.tab-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  width: max-content;
  min-width: 100%;
}

.stats-3-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.stat-cell {
  min-width: 0;
  overflow: hidden;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sticky-donation-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
  height: fit-content;
}

/* ================= FORMULAIRE D'INSCRIPTION ================= */
.onboarding-card {
  max-width: 680px;
  margin: 3.5rem auto;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
}

/* ================= DASHBOARD ASSOCIATION (APPLE & TIKTOK SIMPLICITY) ================= */
.apple-dash-header {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.apple-dash-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apple-dash-avatar-box {
  position: relative;
  flex-shrink: 0;
}

.apple-dash-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.apple-dash-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  background: var(--emerald);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.apple-dash-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin: 0 0 2px 0;
}

.apple-dash-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Quick Actions 4-tile grid (Apple Shortcuts / TikTok style) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.quick-action-tile {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  touch-action: manipulation;
}

.quick-action-tile:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.quick-action-tile:active {
  transform: scale(0.97);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.quick-action-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--dark);
  line-height: 1.25;
}

.quick-action-sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
}

/* Segmented Control / Apple iOS Tabs */
.apple-dash-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px 2px;
  margin-bottom: 1.25rem;
  width: 100%;
}

.apple-dash-nav::-webkit-scrollbar {
  display: none;
}

.apple-dash-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  touch-action: manipulation;
}

.apple-dash-tab:hover {
  background: #F1F5F9;
  color: var(--dark);
}

.apple-dash-tab.active {
  background: var(--dark);
  color: #FFFFFF;
  border-color: var(--dark);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
  font-weight: 650;
}

.apple-dash-tab.active i {
  color: var(--emerald);
}

/* Apple iOS Summary Widgets */
.apple-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.apple-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

/* Apple Wallet Transaction Row */
.apple-tx-row {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0.9rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: background-color 0.15s;
}

.apple-tx-row:hover {
  background: #F8FAFC;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.dash-nav {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  height: fit-content;
}

.dash-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.dash-link:hover,
.dash-link.active {
  background: var(--bg-page);
  color: var(--dark);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

/* ================= FOOTER ================= */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2.5rem 0;
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= GRILLES RESPONSIVES & CLASSES UTILITAIRES ================= */
.grid-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stats-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Éléments Mobile cachés par défaut sur grand écran */
.mobile-bottom-nav {
  display: none;
}

.sheet-handle {
  display: none;
}

.mobile-sticky-cta {
  display: none;
}

/* ================= 1. BREAKPOINT TABLETTE / ÉCRANS MOYENS (<= 1024px) ================= */
@media (max-width: 1024px) {
  /* Réorganisation du Header pour éviter les chevauchements */
  .nav-links {
    display: none !important;
  }

  .nav-actions .btn-outline {
    display: none !important;
  }

  .nav-container {
    height: 60px;
  }

  /* Activation de la barre de navigation basse dès 1024px */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.06);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.70rem;
    font-weight: 550;
    letter-spacing: -0.2px;
    line-height: 1.1;
    transition: color 0.15s ease;
  }

  .bottom-nav-item span {
    font-size: 0.70rem;
    font-weight: 550;
    line-height: 1.1;
    letter-spacing: -0.2px;
    white-space: nowrap;
  }

  .bottom-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.15s ease, color 0.15s ease;
  }

  .bottom-nav-item.active {
    color: var(--dark);
    font-weight: 650;
  }

  .bottom-nav-item.active span {
    color: var(--dark);
    font-weight: 650;
  }

  .bottom-nav-item.active i {
    color: var(--emerald);
    transform: translateY(-1px);
  }

  /* Ajustements de grilles intermédiaires */
  .catalogue-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-top: -30px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detail-aside-desktop {
    display: none !important;
  }

  .mobile-funding-card {
    display: block !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ================= 2. BREAKPOINT SMARTPHONE & EXPÉRIENCE APP NATIVE (<= 768px) ================= */
@media (max-width: 768px) {
  html, body {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow-x: hidden;
  }

  .container {
    padding: 0 1rem;
  }

  /* Micro-interactions tactiles type application */
  .btn:active, 
  .card:active, 
  .bottom-nav-item:active, 
  .preset-chip:active, 
  .payment-tile:active,
  .dash-link:active,
  .cat-pill-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  /* Champs de saisie optimisés pour smartphone (sans zoom auto iOS) */
  .form-input, select.form-input, textarea.form-input, input[type="text"], input[type="email"], input[type="tel"], select {
    font-size: 16px !important;
  }

  /* Header compact */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-actions .btn-dark {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 999px;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 2.2rem 0 2.5rem 0;
  }

  .hero-pill {
    font-size: 0.86rem;
    padding: 4px 10px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    letter-spacing: -0.5px;
    margin-bottom: 0.9rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  /* Boutons du Hero en colonne fluide */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  /* Boîte de recherche type carte d'application mobile */
  .search-box {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.85rem;
    gap: 0.65rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.35);
  }

  .search-field {
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .search-field input, 
  .search-field select {
    width: 100%;
    font-size: 16px !important;
  }

  .search-divider {
    display: none !important;
  }

  .search-box .btn {
    width: 100%;
    padding: 0.85rem;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  /* Toutes les grilles passent en 1 colonne sur smartphone */
  .grid-3, 
  .grid-4, 
  .grid-members, 
  .cards-grid,
  .form-row,
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* Mobile Style Bannière & Overlap Plat */
  .page-hero-banner {
    background: #0F172A !important;
    padding: 2rem 0.85rem 3rem 0.85rem !important;
  }

  .page-hero-title {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
  }

  .page-hero-subtitle {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #94A3B8 !important;
    margin-bottom: 0.95rem !important;
  }

  .page-hero-search-wrap {
    margin-bottom: 0.85rem !important;
  }

  .page-hero-search-wrap input {
    height: 44px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0 40px 0 42px !important;
  }

  .page-hero-chips-wrap {
    justify-content: flex-start !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .page-hero-chip {
    padding: 6px 13px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
  }

  .page-hero-overlap-section {
    margin-top: -20px !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom)) !important;
  }

  .container:has(.page-sheet-card) {
    padding: 0 6px !important;
  }

  .page-sheet-card {
    padding: 0.85rem 0.65rem !important;
    border-radius: 18px !important;
  }

  .page-sheet-meta-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }

  .page-sheet-meta-bar .filter-controls-group {
    width: 100% !important;
    display: flex !important;
    gap: 6px !important;
  }

  .page-sheet-meta-bar .filter-pill-select {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 6px 8px !important;
  }

  .page-sheet-meta-bar .filter-count-badge {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  .sidebar-filters {
    display: none !important;
  }

  /* Mobile Dashboard Apple / TikTok Simplicity */
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 1rem !important;
  }

  .quick-action-tile {
    padding: 0.85rem 0.65rem !important;
    border-radius: 16px !important;
  }

  .quick-action-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
  }

  .quick-action-title {
    font-size: 0.9rem !important;
    font-weight: 650 !important;
  }

  .quick-action-sub {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
  }

  .apple-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 1rem !important;
  }

  .apple-stat-card {
    padding: 1.15rem 1rem !important;
    border-radius: 16px !important;
  }

  .apple-dash-header {
    padding: 1.1rem 1rem !important;
    border-radius: 18px !important;
    margin-bottom: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .apple-dash-name {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
  }

  .apple-dash-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
  }

  .apple-dash-nav {
    margin-bottom: 1rem !important;
    padding-bottom: 4px !important;
  }

  .apple-dash-tab {
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
  }

  .apple-tx-row {
    padding: 0.85rem 0.95rem !important;
    border-radius: 14px !important;
  }

  .dashboard-container {
    padding: 0.75rem 6px calc(80px + env(safe-area-inset-bottom)) 6px !important;
  }

  .stats-3-col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding: 1rem 0.5rem !important;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }

  .stat-val {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--dark);
    line-height: 1.1;
  }

  .stat-lbl {
    font-size: 0.84rem !important;
    color: var(--text-muted);
    margin-top: 3px;
  }

  .card-media {
    height: 180px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .cat-pill-card {
    padding: 1rem;
    gap: 12px;
  }

  /* Onglets coulissants avec défilement tactile horizontal */
  .tab-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 1.25rem;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light);
  }

  .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    font-size: 0.88rem;
    padding: 0.6rem 0;
  }

  /* Navigation Dashboard en pills horizontales coulissantes */
  .dash-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.5rem;
    scrollbar-width: none;
    background: transparent;
    border: none;
    padding: 0 0 0.5rem 0;
    margin-bottom: 1rem;
  }

  .dash-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-link {
    flex-shrink: 0;
    padding: 0.55rem 0.95rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 0.88rem;
  }

  .dash-link.active {
    background: var(--dark);
    color: #FFFFFF;
    border-color: var(--dark);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Modales en Bottom-Sheet coulissant depuis le bas */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .modal-content {
    max-width: 100%;
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    padding: 0 1.25rem calc(1.75rem + env(safe-area-inset-bottom)) 1.25rem;
  }

  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

  .sheet-handle {
    display: block;
    width: 42px;
    height: 4.5px;
    background: #CBD5E1;
    border-radius: 999px;
    margin: 12px auto 8px auto;
  }

  .preset-selector {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px;
  }

  .preset-chip {
    padding: 0.65rem 0.3rem;
    font-size: 0.85rem;
  }

  .payment-options {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  /* Barre d'action sticky mobile sur la page Association */
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: calc(62px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1.1rem;
    justify-content: space-between;
    align-items: center;
    z-index: 990;
  }

  .mobile-sticky-cta-info {
    display: flex;
    flex-direction: column;
  }

  .mobile-sticky-cta-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
  }

  .mobile-sticky-cta-sub {
    font-size: 0.84rem;
    color: var(--text-muted);
  }

  /* ================= PAGE ASSOCIATION SUR MOBILE (CONFINEMENT TOTAL SANS DÉBORDEMENT) ================= */
  .detail-hero-cover {
    height: 180px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .detail-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: -30px !important;
    padding: 0 !important;
    margin-bottom: calc(130px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .container:has(.detail-layout),
  .detail-layout-container {
    padding: 0 4px !important;
  }

  .detail-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.75rem 0.35rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-light) !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin-bottom: 1.5rem !important;
  }

  .detail-header-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .detail-header-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-avatar {
    width: 80px !important;
    height: 80px !important;
    margin: -45px auto 4px auto !important;
    border: 3px solid #FFFFFF !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
    flex-shrink: 0 !important;
  }

  .detail-title {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    color: var(--dark) !important;
    margin: 4px 0 8px 0 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .detail-tags-row {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .detail-info-row {
    display: flex !important;
    gap: 6px 12px !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .detail-info-row span {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  /* Onglets coulissants horizontaux avec wrapper hermétique */
  .tab-nav-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 2px !important;
    box-sizing: border-box !important;
  }

  .tab-nav-wrapper::-webkit-scrollbar {
    display: none !important;
  }

  .tab-nav {
    display: inline-flex !important;
    white-space: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    gap: 0.4rem !important;
    padding: 2px 2px 6px 2px !important;
    border-bottom: 1px solid var(--border-light) !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .tab-btn {
    flex-shrink: 0 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.8rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    white-space: nowrap !important;
  }

  .tab-btn.active {
    background: var(--dark) !important;
    color: #FFFFFF !important;
    border-color: var(--dark) !important;
  }

  /* Stats 3 colonnes hermétiques */
  .stats-3-col {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 0.35rem !important;
    box-sizing: border-box !important;
    background: var(--bg-page) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.5rem !important;
  }

  .stat-cell {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
    padding: 0 4px !important;
    overflow: hidden !important;
  }

  .stat-val {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .stat-lbl {
    font-size: 0.84rem !important;
    color: var(--text-muted) !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .tab-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .sticky-donation-card {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-sticky-cta {
    display: flex !important;
    position: fixed !important;
    bottom: calc(62px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 995 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid var(--border-light) !important;
    padding: 0.65rem 1rem !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Formulaires style Google Forms sur mobile */
  .form-container {
    padding: 0;
    margin: 0 auto;
  }

  .form-header-card, .form-block {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.85rem;
  }

  .form-block-question {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .form-choice-item {
    min-height: 48px;
    padding: 0.65rem 0.85rem;
  }

  .onboarding-card {
    margin: 1.25rem auto;
    padding: 1.35rem 1.15rem;
  }

  /* Footer compact */
  .footer {
    padding: 2.5rem 0 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ========================================================
   LINKEDIN-STYLE FEED & MEDIA GALLERY
   ======================================================== */
.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.linkedin-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.linkedin-post-card.pinned-post {
  border-left: 4px solid #EF4444;
}

.linkedin-post-header {
  padding: 1rem 1.25rem 0.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.linkedin-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.linkedin-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

.linkedin-author-details {
  min-width: 0;
  flex: 1;
}

.linkedin-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.linkedin-author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.linkedin-meta-time {
  font-size: 0.85rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.feed-badge {
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-badge.urgent {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.feed-badge.vlog {
  background: #EDE9FE;
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.feed-badge.gallery {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.feed-badge.blog {
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.feed-badge.communique {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.linkedin-post-content {
  padding: 0.5rem 1.25rem 0.85rem 1.25rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.linkedin-post-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.linkedin-post-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Media rendering */
.linkedin-media-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  background: #000;
}

.linkedin-single-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.linkedin-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: #0F172A;
  overflow: hidden;
}

.linkedin-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.linkedin-video-box:hover .linkedin-video-thumb {
  transform: scale(1.02);
  opacity: 0.95;
}

.linkedin-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.92);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding-left: 3px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.linkedin-video-box:hover .linkedin-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--emerald-dark);
}

.linkedin-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  color: #FFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Gallery Grid 2x2 */
.linkedin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 100%;
  background: #E2E8F0;
}

.linkedin-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F1F5F9;
}

.linkedin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.linkedin-gallery-item:hover img {
  transform: scale(1.04);
}

/* Blog Preview */
.linkedin-blog-card {
  margin: 0 1.25rem 0.85rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  padding: 1rem;
  display: flex;
  gap: 14px;
  align-items: center;
}

.linkedin-blog-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Stats engagement */
.linkedin-stats-bar {
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 6px;
}

.linkedin-reactions-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reaction-emojis {
  display: inline-flex;
  align-items: center;
}

.reaction-emojis span {
  font-size: 0.88rem;
  margin-right: -4px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* Action Buttons (Style LinkedIn) */
.linkedin-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.25rem 0.75rem;
}

.linkedin-action-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 42px;
}

.linkedin-action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--dark);
}

.linkedin-action-btn.active-like {
  color: #0A66C2;
}

.linkedin-action-btn.btn-donate-quick {
  color: var(--emerald-dark);
}

.linkedin-action-btn.btn-donate-quick:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Comments Section */
.linkedin-comments-drawer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  padding: 1rem 1.25rem;
}

.linkedin-comment-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
}

.linkedin-comment-input {
  flex: 1;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--dark);
  outline: none;
}

.linkedin-comment-input:focus {
  border-color: #0A66C2;
}

.linkedin-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.comment-bubble {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 12px;
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.comment-author {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--dark);
}

.comment-time {
  font-size: 0.84rem;
  color: var(--text-sub);
}

.comment-text {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}

/* Gallery tab styles */
.gallery-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-filter-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--dark);
  color: #FFF;
  border-color: var(--dark);
}

.gallery-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

.gallery-media-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1E293B;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.gallery-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-media-card:hover img {
  transform: scale(1.05);
}

.gallery-media-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #FFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .linkedin-post-header {
    padding: 0.85rem 1rem 0.4rem 1rem;
  }

  .linkedin-post-content {
    padding: 0.4rem 1rem 0.75rem 1rem;
  }

  .linkedin-actions-row {
    grid-template-columns: repeat(4, 1fr);
    padding: 0.15rem 0.25rem;
  }

  .linkedin-action-btn {
    font-size: 0.88rem;
    padding: 0.5rem 0.25rem;
    gap: 4px;
  }

  .linkedin-action-btn span {
    font-size: 0.86rem;
  }

  .gallery-media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .linkedin-action-btn span.btn-label-long {
    display: none;
  }
}

/* ========================================================
   FACEBOOK-STYLE CONDENSED TABS (ALL TABS VISIBLE ON MOBILE)
   ======================================================== */
.fb-tabs-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg-surface, #ffffff) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  border-radius: 14px !important;
  padding: 4px 2px !important;
  margin-bottom: 1.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.fb-tabs-nav {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 1fr !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  gap: 2px !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.fb-tabs-nav .tab-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 1px !important;
  min-height: 50px !important;
  border-radius: 10px !important;
  border: none !important;
  background: transparent !important;
  color: #64748B !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  position: relative !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.fb-tabs-nav .tab-btn i {
  font-size: 1.25rem !important;
  margin-bottom: 2px !important;
  display: block !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.fb-tabs-nav .tab-btn .tab-label {
  font-size: 0.80rem !important;
  line-height: 1.15 !important;
  font-weight: 650 !important;
  letter-spacing: -0.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-align: center !important;
  display: block !important;
  color: #475569 !important;
}

.tab-label-short {
  display: none !important;
}

.tab-label-full {
  display: inline !important;
}

.fb-tabs-nav .tab-btn .tab-badge-dot {
  position: absolute !important;
  top: 4px !important;
  right: calc(50% - 14px) !important;
  width: 8px !important;
  height: 8px !important;
  background: #10B981 !important;
  border-radius: 50% !important;
  border: 1.5px solid #fff !important;
}

.fb-tabs-nav .tab-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--dark) !important;
}

.fb-tabs-nav .tab-btn.active {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  font-weight: 800 !important;
}

.fb-tabs-nav .tab-btn.active i {
  color: #10B981 !important;
  transform: scale(1.1) !important;
}

.fb-tabs-nav .tab-btn.active .tab-label {
  color: #047857 !important;
}

.fb-tabs-nav .tab-btn.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 14% !important;
  right: 14% !important;
  height: 3px !important;
  background: #10B981 !important;
  border-radius: 3px !important;
}

@media (max-width: 768px) {
  .fb-tabs-wrapper {
    padding: 3px 2px !important;
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
  }
  .fb-tabs-nav {
    gap: 1px !important;
  }
  .fb-tabs-nav .tab-btn {
    padding: 6px 1px !important;
    min-height: 48px !important;
  }
  .fb-tabs-nav .tab-btn i {
    font-size: 1.12rem !important;
    margin-bottom: 2px !important;
  }
  .fb-tabs-nav .tab-btn .tab-label {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px !important;
  }
}

@media (max-width: 420px) {
  .tab-label-short {
    display: inline !important;
  }
  .tab-label-full {
    display: none !important;
  }
  .fb-tabs-nav .tab-btn {
    padding: 5px 1px !important;
    min-height: 44px !important;
  }
  .fb-tabs-nav .tab-btn i {
    font-size: 1.05rem !important;
    margin-bottom: 1px !important;
  }
  .fb-tabs-nav .tab-btn .tab-label {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.4px !important;
  }
  .bottom-nav-item {
    font-size: 0.65rem !important;
    gap: 1px !important;
  }
  .bottom-nav-item span {
    font-size: 0.65rem !important;
  }
  .bottom-nav-item i {
    font-size: 1.05rem !important;
  }
}

/* Organization Feed Posts (Focused, clean, not social-chat bloat) */
.org-post-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 1.15rem;
}

.org-post-card.urgent-border {
  border-left: 4px solid #EF4444;
}

.org-post-card.recruitment-border {
  border-left: 4px solid #10B981;
}

.org-post-header {
  padding: 0.85rem 0.85rem 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.org-post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.org-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.org-post-author-info {
  min-width: 0;
  flex: 1;
}

.org-post-author-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-post-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.org-post-body {
  padding: 0.35rem 0.85rem 0.85rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.org-post-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.org-post-text {
  font-size: 0.95rem;
  color: #1E293B;
  line-height: 1.6;
  word-break: break-word;
}

.org-recruitment-box {
  margin: 0.75rem 0 0.25rem 0;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.org-recruitment-box .rec-info {
  font-size: 0.84rem;
  color: #166534;
  font-weight: 600;
}

.org-post-footer {
  padding: 0.65rem 0.85rem;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.org-post-footer .views-tag {
  font-size: 0.86rem;
  color: var(--text-sub);
}

.org-post-footer .actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .org-post-header {
    padding: 0.75rem 0.65rem 0.4rem 0.65rem !important;
  }
  .org-post-body {
    padding: 0.35rem 0.65rem 0.75rem 0.65rem !important;
  }
  .org-post-title {
    font-size: 1.08rem !important;
    line-height: 1.35 !important;
  }
  .org-post-text {
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
  }
  .org-post-footer {
    padding: 0.65rem 0.65rem !important;
  }
}

.form-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .form-card-item {
    padding: 0.85rem 0.65rem !important;
  }
}

/* ========================================================
   MULTI-STEP ONBOARDING WIZARD (SUPER OPTIMIZED MOBILE & PC)
   ======================================================== */
.onboarding-wizard-wrapper {
  max-width: 780px;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.wizard-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
  padding: 2.25rem 2.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Stepper Desktop */
.wizard-stepper-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2.25rem;
  padding: 0 0.5rem;
}

.wizard-stepper-line {
  position: absolute;
  top: 18px;
  left: 35px;
  right: 35px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.wizard-stepper-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  transition: width 0.35s ease;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wizard-step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: #64748B;
  transition: all 0.25s ease;
}

.wizard-step-node.completed .wizard-step-bubble {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.wizard-step-node.active .wizard-step-bubble {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.25);
}

.wizard-step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--dark, #0f172a);
  font-weight: 800;
}

.wizard-step-node.completed .wizard-step-label {
  color: #047857;
}

/* Stepper Mobile */
.wizard-stepper-mobile {
  display: none;
  margin-bottom: 1.5rem;
}

.wizard-mobile-progress-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 0.75rem;
}

.wizard-progress-segment {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #E2E8F0;
  transition: background 0.3s ease;
}

.wizard-progress-segment.active,
.wizard-progress-segment.completed {
  background: #10B981;
}

/* Info Notice Box */
.wizard-notice-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.wizard-notice-box i {
  color: #10B981;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.wizard-notice-box p {
  font-size: 0.86rem;
  color: #166534;
  line-height: 1.45;
  margin: 0;
}

/* Form Sections within step */
.wizard-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark, #0f172a);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-section-divider {
  border: none;
  border-top: 1px solid var(--border-light, #e2e8f0);
  margin: 1.5rem 0;
}

/* Navigation Buttons */
.wizard-navigation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light, #e2e8f0);
}

.wizard-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border-light, #cbd5e1);
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.wizard-btn-prev:hover {
  background: #F8FAFC;
  color: var(--dark);
}

.wizard-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  background: var(--dark, #0f172a);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.wizard-btn-next:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.wizard-btn-submit {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFF;
  border: none;
  padding: 0.85rem 1.85rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  min-height: 48px;
}

.wizard-btn-submit:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* Summary Card on Step 4 */
.wizard-summary-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #EDF2F7;
  font-size: 0.88rem;
}

.wizard-summary-row:last-child {
  border-bottom: none;
}

.wizard-summary-lbl {
  color: var(--text-muted);
  font-weight: 500;
}

.wizard-summary-val {
  color: var(--dark);
  font-weight: 700;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .onboarding-wizard-wrapper {
    padding: 0 0.35rem;
    margin: 1rem auto 2.5rem auto;
  }

  .wizard-card {
    padding: 1.25rem 0.85rem;
    border-radius: 16px;
  }

  .wizard-stepper-desktop {
    display: none;
  }

  .wizard-stepper-mobile {
    display: block;
  }

  .wizard-navigation-row {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .wizard-btn-prev,
  .wizard-btn-next,
  .wizard-btn-submit {
    width: 100%;
    justify-content: center;
  }
}








/* ==========================================================================
   CENTRE DE NOTIFICATIONS (APPLE NOTIFICATION CENTER STYLE)
   ========================================================================== */
.notif-bell-btn {
  position: relative;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
}

.notif-bell-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.notif-badge-pill {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 20px;
  height: 19px;
  border-radius: 999px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

.notif-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1050;
  display: none;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  z-index: 1060;
  overflow: hidden;
  animation: notifSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-panel-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-action-btn {
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--emerald);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.notif-action-btn:hover {
  background: rgba(16, 185, 129, 0.08);
}

.notif-close-btn {
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  padding: 2px 6px;
}

.notif-tabs {
  display: flex;
  padding: 8px 1.15rem;
  gap: 8px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
}

.notif-tab {
  background: none;
  border: none;
  font-size: 0.84rem;
  font-weight: 550;
  color: #64748B;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-tab.active {
  background: #FFFFFF;
  color: var(--dark);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notif-item {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.15s ease;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #F8FAFC;
}

.notif-item.unread {
  background: #F8FAFC;
}

.notif-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.notif-panel-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border-light);
  background: #F8FAFC;
  text-align: center;
}

@media (max-width: 640px) {
  .notif-backdrop {
    display: block;
  }

  .notif-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 24px 24px 0 0;
    max-height: 80vh;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.2);
    animation: notifSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes notifSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .notif-list {
    max-height: 55vh;
  }
}


/* ==========================================================================
   PAGE DÉDIÉE FORM BUILDER (CRÉATEUR DE FORMULAIRE INTERACTIF)
   ========================================================================== */

/* Barre supérieure : retour + nom asso + switch + publier */
.fb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fb-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fb-back {
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.fb-asso {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fb-asso i { color: var(--accent); flex-shrink: 0; }

.fb-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fb-switch {
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  padding: 3px;
  border-radius: 999px;
}

.fb-switch-btn {
  border: none;
  background: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  color: #64748B;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.fb-switch-btn.on {
  background: #FFFFFF;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.fb-publish {
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  white-space: nowrap;
}

/* Le switch Éditeur/Aperçu ne sert que sur mobile */
.mobile-only { display: none !important; }

@media (max-width: 991px) {
  .mobile-only { display: flex !important; }
}

@media (max-width: 640px) {
  .fb-topbar {
    gap: 10px;
    margin-bottom: 1.1rem;
  }

  .fb-topbar-left {
    flex: 1 1 100%;
    gap: 8px;
  }

  .fb-back {
    font-size: 0.82rem;
    padding: 0.42rem 0.8rem;
  }

  .fb-asso {
    font-size: 0.78rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .fb-topbar-right {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .fb-switch { flex-shrink: 0; }

  .fb-switch-btn {
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
  }

  .fb-publish {
    flex: 1;
    justify-content: center;
    font-size: 0.86rem;
    padding: 0.5rem 1rem;
  }
}

.builder-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

/* Sur desktop, les deux colonnes sont toujours visibles */
.builder-editor-col.is-hidden { display: block; }

/* La colonne aperçu doit s'étirer pour que le sticky fonctionne */
.builder-preview-col { align-self: stretch; }

.sticky-preview-box {
  position: sticky;
  top: 85px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 105px);
}

/* En-tête de l'aperçu (barre type navigateur) */
.fb-preview-head {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.fb-preview-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-preview-count {
  font-size: 0.85rem;
  background: #E2E8F0;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Corps défilant de l'aperçu */
.fb-preview-body {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 0 0 20px 20px;
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991px) {
  .builder-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Sur mobile, le switch Éditeur/Aperçu pilote l'affichage */
  .builder-editor-col.is-hidden { display: none; }
  .builder-preview-col.is-hidden-mobile { display: none; }

  /* Les champs intitulé/type passent l'un sous l'autre */
  .builder-q-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ================= TÉMOIGNAGES (REVIEWS & CONFIANCE) ================= */
.testimonials-section {
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 4.5rem 0;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #F59E0B;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.testimonial-quote i.quote-icon {
  font-size: 1.2rem;
  color: #CBD5E1;
  margin-right: 6px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.testimonial-role {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* ================= FAQ (ACCORDÉON MODERNE) ================= */
.faq-section {
  background: #FFFFFF;
  padding: 4.5rem 0;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #059669;
  box-shadow: 0 6px 20px -4px rgba(5, 150, 105, 0.08);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-q-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.faq-chevron {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.4rem 1.35rem 3.9rem;
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

@media (max-width: 768px) {
  .faq-answer {
    padding-left: 1.4rem;
  }
}

/* ==========================================================================
   SUBTLE SOCIAL MANAGEMENT BUTTONS & MODALS + FULL RESPONSIVE HARMONY
   ========================================================================== */

/* Header top bar inside association card */
.detail-header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  width: 100%;
}

.detail-header-top-bar .detail-tags-row {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

/* Section header with subtle action button */
.section-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  width: 100%;
}

.section-action-bar h2,
.section-action-bar h3 {
  min-width: 0;
  flex: 1 1 auto;
}

.social-subtle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.social-subtle-btn:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.social-subtle-btn i {
  font-size: 0.75rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #CBD5E1;
}

.social-icon-btn.text-danger {
  color: #94A3B8;
}

.social-icon-btn.text-danger:hover {
  background: #FEF2F2;
  color: #EF4444;
  border-color: #FECACA;
}

/* COMPOSER BAR (STYLE LINKEDIN / FACEBOOK) */
.social-composer-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md, 14px);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.social-composer-bar:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.social-composer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
}

.social-composer-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
  color: #64748B;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.composer-placeholder-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  flex: 1;
  min-width: 0;
}

.social-composer-bar:hover .social-composer-input {
  background: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
}

.social-subtle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.social-subtle-pill:hover {
  background: var(--accent, #2563EB);
  transform: translateY(-1px);
}

/* POST HEADER RIGHT ACTIONS */
.org-post-header {
  flex-wrap: wrap;
}

.org-post-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.org-post-admin-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}

/* CARDS IN TABS (MEMBERS, EVENTS, FORMS) */
.grid-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.member-card-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.event-card-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.card-inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* GALLERY BADGE & DELETE BUTTON (NO OVERLAP) */
.gallery-media-type-badge {
  left: 10px !important;
  right: auto !important;
}

.gallery-subtle-del-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.gallery-media-card:hover .gallery-subtle-del-btn {
  opacity: 1;
}

.gallery-subtle-del-btn:hover {
  background: #EF4444;
  transform: scale(1.1);
}

/* MODALS & RESPONSIVE MODAL GRID */
.social-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: modalFadeIn 0.2s ease;
}

.social-modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg, 18px);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.social-modal-head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FAFAFA;
}

.social-modal-head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
}

.social-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.social-modal-close:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.social-modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.social-modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1rem;
}

.social-modal-foot {
  padding: 0.95rem 1.35rem;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (LAPTOP, TABLET, SMARTPHONE)
   ========================================================================== */

/* Intermediate desktop navbar (1025px - 1300px) so 6 links + actions never stack */
@media (max-width: 1300px) and (min-width: 1025px) {
  .header .nav-container {
    gap: 0.75rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 4px 2px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-sm {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}

/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .sticky-donation-card {
    position: static !important;
  }
  .gallery-subtle-del-btn {
    opacity: 0.9;
  }
}

/* Smartphone (<= 768px) */
@media (max-width: 768px) {
  .detail-main {
    overflow: visible !important;
    padding: 1rem 0.75rem !important;
  }

  .detail-header-card {
    overflow: visible !important;
  }

  .detail-header-top-bar {
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .detail-header-top-bar .detail-tags-row {
    width: auto !important;
    flex: 0 1 auto !important;
    justify-content: center !important;
  }

  .social-composer-bar {
    padding: 0.6rem 0.75rem;
    gap: 0.55rem;
  }

  .social-composer-avatar {
    width: 34px;
    height: 34px;
  }

  .social-composer-input {
    font-size: 0.82rem;
    padding: 0.48rem 0.75rem;
  }

  .org-post-header {
    gap: 8px !important;
  }

  .org-post-header-right {
    gap: 6px;
  }

  .org-post-header-right .feed-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .social-icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.74rem;
  }
}

/* Small Smartphone (<= 560px) */
@media (max-width: 560px) {
  /* Modal 2-col grids become 1-col so inputs never squash */
  .social-modal-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .social-modal-box {
    max-height: 92vh;
    border-radius: 14px;
  }

  .social-modal-foot .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Composer bar stays on 1 clean line */
  .composer-pill-label {
    display: none;
  }

  .social-subtle-pill {
    padding: 0.5rem 0.7rem;
  }

  /* Post header: keep author + action icons on row 1, or compact badge */
  .org-post-header {
    align-items: flex-start !important;
  }

  .org-post-header-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px dashed #F1F5F9;
    margin-top: 2px;
  }

  /* Cards action row full width on small screens */
  .card-inline-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
  }

  /* Header navbar compact on small screens */
  .header .nav-container {
    gap: 0.5rem;
  }

  .lang-dropdown-toggle {
    padding: 5px 8px;
    font-size: 0.78rem;
    gap: 5px;
  }
}

/* Libellés courts masqués par défaut (affichés uniquement sur petits écrans) */
.nav-btn-label-short {
  display: none;
}

/* Très petits écrans : libellés courts pour éviter le débordement */
@media (max-width: 480px) {
  .nav-actions {
    gap: 5px;
    flex-shrink: 0;
  }

  .nav-btn-label-full {
    display: none;
  }

  .nav-btn-label-short {
    display: inline;
  }

  .nav-actions .btn-sm {
    padding: 0.45rem 0.65rem !important;
    gap: 5px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }

  .lang-dropdown-toggle {
    padding: 5px 7px;
    font-size: 0.74rem;
    gap: 4px;
  }

  .lang-dropdown-globe {
    display: none !important;
  }

  .lang-dropdown-menu {
    min-width: 190px;
    right: -8px;
  }
}



/* ============================================================
   TABLEAU DE BORD ASSOCIATION — version simple
   ============================================================ */

.dash {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* En-tête */
.dash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 16px;
}

.dash-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.dash-head-text {
  flex: 1;
  min-width: 0;
}

/* Bouton d'ajout dans l'en-tête des pages liste */
.dash-head-add {
  flex-shrink: 0;
  white-space: nowrap;
}

.dash-head-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

.dash-head-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Chiffres */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-stat {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 14px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.dash-stat:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

a.dash-stat:active { transform: translateY(0); }

.dash-stat span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dash-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 2px;
}

/* Blocs */
.dash-box {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
}

.dash-box h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.dash-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.dash-box-head h2 { margin-bottom: 0; }

/* Lignes */
.dash-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.dash-line:last-of-type { border-bottom: none; }

.dash-line strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
}

.dash-line small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.dash-line-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dash-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-person img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.dash-money {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dash-del {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.82rem;
  padding: 5px;
  cursor: pointer;
  border-radius: 6px;
}

.dash-del:hover {
  color: #E11D48;
  background: #FEF2F2;
}

.dash-none {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 6px 0 14px;
}

/* Formulaire réglages */
.dash-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

.dash-error {
  display: block;
  font-size: 0.76rem;
  color: #E11D48;
  margin: -8px 0 10px;
}

/* ============================================================
   STATISTIQUES DE FORMULAIRE
   ============================================================ */

.fs-q {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.fs-q:last-of-type { border-bottom: none; padding-bottom: 0; }

.fs-q-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.fs-q-head strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
}

.fs-q-head small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.fs-rate {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 3px 10px;
}

.fs-choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fs-choice-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.fs-choice-top span:last-child {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.fs-bar {
  height: 7px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}

.fs-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fs-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fs-texts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-texts li {
  font-size: 0.82rem;
  color: var(--dark);
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.45;
}

/* Réponses individuelles */
.fs-resp {
  border-bottom: 1px solid var(--border-subtle);
}

.fs-resp:last-of-type { border-bottom: none; }

.fs-resp-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 11px 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.fs-resp-head strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.fs-resp-head small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.fs-resp-head i {
  color: var(--text-sub);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.fs-resp-body {
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fs-answer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 11px;
}

.fs-answer-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fs-answer-value {
  font-size: 0.86rem;
  color: var(--dark);
  line-height: 1.45;
  word-break: break-word;
}

a.fs-answer-value {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

a.fs-answer-value:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .fs-q { padding: 12px 0; }
  .fs-q-head strong { font-size: 0.88rem; }
  .fs-choice-top { font-size: 0.78rem; }
  .fs-answer-value { font-size: 0.82rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .dash { gap: 12px; }

  .dash-head { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .dash-head-text { order: 3; flex-basis: 100%; }
  .dash-logo { width: 44px; height: 44px; border-radius: 10px; }
  .dash-head-text h1 { font-size: 1rem; }
  .dash-head-text p { font-size: 0.78rem; }
  .dash-head .btn { padding: 0.4rem 0.7rem !important; font-size: 0.78rem !important; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-stat { padding: 10px 12px; border-radius: 10px; }
  .dash-stat span { font-size: 0.7rem; }
  .dash-stat strong { font-size: 1.2rem; }

  .dash-box { padding: 14px 12px; border-radius: 12px; }
}

/* ============================================================
   ZONE DE TÉLÉVERSEMENT (GLISSER-DÉPOSER)
   ============================================================ */

.dz-field { margin-bottom: 1rem; }

.dz {
  position: relative;
  display: block;
  width: 100%;
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  overflow: hidden;
}

.dz:hover {
  border-color: var(--accent);
  background: #F0FDF4;
}

.dz.is-over {
  border-color: var(--accent);
  background: #ECFDF5;
  transform: scale(1.01);
}

/* L'input natif est masqué mais reste accessible au clavier */
.dz-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* --- État vide --- */
.dz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}

.dz-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 6px;
  transition: transform 0.15s ease;
}

.dz:hover .dz-icon,
.dz.is-over .dz-icon { transform: translateY(-2px); }

.dz-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--dark);
}

.dz-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dz-hint {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 4px;
}

/* --- État rempli --- */
.dz-filled {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.dz-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
}

.dz-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.dz-filled-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.dz-filename {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dz-filesize {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dz-change {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Voile de chargement --- */
.dz-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  z-index: 2;
}

.dz-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #E2E8F0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dz-spin 0.7s linear infinite;
}

@keyframes dz-spin {
  to { transform: rotate(360deg); }
}

.dz-error {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #EF4444;
  margin-top: 6px;
}

/* --- Variante avatar (compacte) --- */
.dz-avatar {
  padding: 1rem;
}

.dz-avatar .dz-empty {
  flex-direction: row;
  gap: 10px;
  text-align: left;
}

.dz-avatar .dz-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
  margin-bottom: 0;
}

.dz-avatar .dz-empty > span:not(.dz-icon) {
  display: block;
}

.dz-avatar .dz-title { font-size: 0.86rem; }
.dz-avatar .dz-sub { font-size: 0.78rem; }

@media (max-width: 480px) {
  .dz { padding: 1.15rem 0.85rem; }
  .dz-preview { width: 56px; height: 56px; }
  .dz-preview-avatar { width: 52px; height: 52px; }
  .dz-title { font-size: 0.86rem; }
  .dz-sub { font-size: 0.78rem; }
  .dz-change { display: none; }
}
