:root {
  --apel-navy: #1e3a8a;
  --apel-navy-dark: #0f172a;
  --apel-blue: #0284c7;
  --apel-coral: #f97316;
  --apel-coral-hover: #ea580c;
  --apel-amber: #f59e0b;
  --apel-emerald: #10b981;
  --bg-slate: #f8fafc;
  --text-dark: #0f172a;
  --text-slate: #334155;
  --text-muted: #64748b;
  --border-color: #cbd5e1;
  --card-radius: 26px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-slate);
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* ========================================================
   1. BANDEAU SUPÉRIEUR D'ANNONCE
   ======================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 50%, #f43f5e 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.28);
}

.bounce-icon {
  font-size: 1.15rem;
  display: inline-block;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ========================================================
   2. EN-TÊTE & NAVIGATION BLANCHE (BUREAU)
   ======================================================== */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--apel-navy);
  letter-spacing: -0.6px;
  line-height: 1;
}

.brand-school-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.825rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(29, 78, 216, 0.25);
}

.brand-sub {
  font-size: 0.875rem;
  color: var(--text-slate);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-item {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: var(--apel-navy);
  background: #f1f5f9;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.icon-blue { color: var(--apel-blue); }
.icon-coral { color: var(--apel-coral); }
.icon-emerald { color: var(--apel-emerald); }

.btn-admin-pill {
  background: #e0e7ff;
  color: #3730a3;
  border: 1.5px solid #a5b4fc;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-admin-pill:hover {
  background: #c7d2fe;
}

.btn-admin-pill svg {
  width: 17px;
  height: 17px;
}

/* ========================================================
   3. SECTION HÉRO : BLEU NUIT PROFOND (BUREAU)
   ======================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 45%, #0f172a 100%);
  color: #ffffff;
  padding: 3.5rem 0 3.8rem;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-blue {
  top: -100px;
  right: -100px;
  background: rgba(59, 130, 246, 0.25);
}

.glow-amber {
  bottom: -100px;
  left: -80px;
  background: rgba(245, 158, 11, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-cta-hero {
  background: linear-gradient(135deg, var(--apel-coral) 0%, var(--apel-amber) 100%);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
}

.btn-cta-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease;
}

.btn-ghost-hero:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Encart Événements dans le héro */
.hero-summary-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.1rem;
}

.summary-subtitle {
  font-size: 0.725rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  display: block;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.summary-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.events-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.event-mini-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.event-mini-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.event-date-badge {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: 12px;
  min-width: 48px;
  padding: 0.4rem 0.45rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-date-badge.badge-amber {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
}

.event-date-badge.badge-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.event-badge-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.event-badge-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-details h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-details p {
  font-size: 0.775rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-details svg {
  width: 13px;
  height: 13px;
}

.event-tag-status {
  font-size: 0.7rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  white-space: nowrap;
}

.event-tag-status.tag-amber {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.4);
}

.event-tag-status.tag-blue {
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
}

.events-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.events-card-foot:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.events-card-foot svg {
  width: 16px;
  height: 16px;
}

/* ========================================================
   4. CATALOGUE, FILTRES & RECHERCHE (BUREAU)
   ======================================================== */
.main-content {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.catalogue-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .catalogue-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--apel-coral);
  margin-bottom: 0.35rem;
}

.catalogue-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.catalogue-subtitle {
  font-size: 0.9rem;
  color: var(--text-slate);
}

.filter-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: #e2e8f0;
  padding: 0.4rem;
  border-radius: 18px;
  border: 1px solid var(--border-color);
}

.filter-pill {
  background: transparent;
  border: none;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-slate);
  padding: 0.55rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: #ffffff;
  color: var(--apel-navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-bar-container {
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
  border-color: var(--apel-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

/* ========================================================
   5. CARTES DES VENTES (GRILLE GLOBALE)
   ======================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.85rem;
}

@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1060px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sale-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sale-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.card-banner {
  height: 130px;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.banner-vegetal { background: linear-gradient(135deg, #059669 0%, #064e3b 100%); }
.banner-terroir { background: linear-gradient(135deg, #0284c7 0%, #0f3e68 100%); }
.banner-creations { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }
.banner-fetes { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.banner-pratique { background: linear-gradient(135deg, #0d9488 0%, #115e59 100%); }
.banner-default { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); }

.card-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-icon-bubble svg {
  width: 22px;
  height: 22px;
}

.countdown-pill {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-sub {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.85rem;
  color: var(--text-slate);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
  white-space: pre-line;
}

.card-schedule-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.schedule-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.775rem;
}

.schedule-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-slate);
  font-weight: 600;
}

.schedule-label svg {
  width: 14px;
  height: 14px;
}

.schedule-val {
  color: var(--text-dark);
  font-weight: 700;
  text-align: right;
}

.card-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-actions-primary {
  display: flex;
  gap: 0.5rem;
}

.btn-cta-orange {
  background: linear-gradient(135deg, var(--apel-coral) 0%, var(--apel-amber) 100%);
  color: #ffffff;
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.32);
  transition: all 0.2s ease;
}

.btn-cta-orange:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-cta-disabled {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.btn-details-ghost {
  background: #ffffff;
  color: var(--text-slate);
  border: 1.5px solid #cbd5e1;
  padding: 0 0.95rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-details-ghost:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

.card-admin-row {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.btn-admin-edit, .btn-admin-del {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  justify-content: center;
}

.btn-admin-edit {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-admin-del {
  background: #fee2e2;
  color: #b91c1c;
}

/* ========================================================
   6. BANNIÈRE BÉNÉVOLAT
   ======================================================== */
.volunteer-banner {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border-radius: var(--card-radius);
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.15);
}

@media (min-width: 768px) {
  .volunteer-banner {
    flex-direction: row;
    text-align: left;
  }
}

.volunteer-banner-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 0.5rem;
}

.volunteer-banner-text p {
  color: #bfdbfe;
  font-size: 0.9rem;
  max-width: 600px;
  line-height: 1.5;
}

.btn-volunteer-action {
  background: #ffffff;
  color: var(--apel-navy);
  padding: 0.95rem 1.75rem;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-volunteer-action:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-volunteer-action svg {
  width: 20px;
  height: 20px;
}

/* ========================================================
   7. CALENDRIER DES RETRAITS & FAQ
   ======================================================== */
.section-block {
  margin-top: 3.5rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 2.25rem 1.85rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.block-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-amber-soft { background: #fef3c7; }
.bg-emerald-soft { background: #d1fae5; }
.bg-orange-soft { background: #ffedd5; }
.text-amber { color: #d97706; }
.text-emerald { color: #059669; }
.text-coral { color: var(--apel-coral); }

.block-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.block-sub {
  font-size: 0.85rem;
  color: var(--text-slate);
}

.distribution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 680px) {
  .distribution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.distrib-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.distrib-date-square {
  background: var(--apel-navy);
  color: #ffffff;
  border-radius: 14px;
  padding: 0.6rem 0.85rem;
  text-align: center;
  min-width: 60px;
  display: flex;
  flex-direction: column;
}

.distrib-day { font-size: 1.35rem; font-weight: 800; line-height: 1; }
.distrib-month { font-size: 0.725rem; text-transform: uppercase; font-weight: 700; }

.distrib-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.distrib-info p {
  font-size: 0.775rem;
  color: var(--text-slate);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem;
  background: #f8fafc;
}

.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  font-size: 0.825rem;
  color: var(--text-slate);
  line-height: 1.5;
}

/* ========================================================
   8. PIED DE PAGE
   ======================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2.5rem 0;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.footer-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: block;
}

.footer-desc {
  font-size: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
}

/* ========================================================
   9. MODALES & TIROIRS ADMIN
   ======================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-head-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.modal-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-category {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-slate);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  white-space: pre-line;
}

.dates-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.75rem;
}

.summary-box-label {
  display: block;
  font-size: 0.675rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.summary-box-val {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.info-strip {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.full-width { width: 100%; }

/* --- Écran verrouillé & Tiroir Bureau --- */
.lock-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e0e7ff;
  color: #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.auth-error-box {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.btn-logout {
  background: transparent;
  color: var(--text-slate);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-tab-switch {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.admin-switch-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-slate);
  padding: 0.5rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-switch-btn.active {
  background: #ffffff;
  color: var(--apel-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-section-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.admin-subhead {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--apel-navy);
  margin-bottom: 0.6rem;
}

.admin-sales-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 160px;
  overflow-y: auto;
}

.admin-sale-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-icon-edit, .btn-icon-danger {
  border: none;
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  display: inline-flex;
}

.btn-icon-edit { background: #e0f2fe; color: #0369a1; }
.btn-icon-danger { background: #fee2e2; color: #b91c1c; }

.form-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-cancel-edit {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-slate);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--apel-blue);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn-primary-blue {
  background: var(--apel-navy);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary-blue:hover {
  background: #172554;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

/* ========================================================
   10. OPTIMISATION SMARTPHONE UNIQUE & PARFAITEMENT CENTRÉE (< 768px)
   ======================================================== */
@media (max-width: 768px) {
  /* 1. Verrouillage strict de tout débordement latéral */
  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 2. Neutralisation des sphères lumineuses qui poussaient vers la droite */
  .glow-orb {
    display: none !important;
  }

  /* 3. Centrage parfait des conteneurs */
  .container {
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Bandeau supérieur */
  .announcement-bar {
    font-size: 0.72rem;
    padding: 0.45rem 0.65rem;
    line-height: 1.35;
    text-align: center;
  }

  /* 5. En-tête mobile épuré */
  .glass-header {
    position: relative;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  .nav-container {
    height: 62px;
    padding: 0 0.5rem;
  }

  .brand-group {
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-badge-row {
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
  }

  .brand-name {
    font-size: 1.15rem;
    line-height: 1;
  }

  .brand-school-badge {
    font-size: 0.52rem;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-sub, .nav-links {
    display: none !important;
  }

  /* 6. Section Héro & Encart Événements rigoureusement centrés (marges égales) */
  .hero-section {
    padding: 1.75rem 0 2rem !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    gap: 1.75rem !important;
    padding: 0 !important;
  }

  .hero-left,
  .hero-right {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    margin: 0 auto 0.75rem auto;
    max-width: 95%;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    letter-spacing: -0.4px;
    text-align: center;
  }

  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 auto 1.25rem auto;
    text-align: center;
  }

  .hero-actions {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
  }

  .btn-cta-hero,
  .btn-ghost-hero {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    justify-content: center;
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .hero-summary-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
  }

  .summary-title {
    font-size: 1.15rem;
  }

  .event-mini-item {
    padding: 0.6rem 0.75rem;
    gap: 0.65rem;
  }

  .event-date-badge {
    min-width: 44px;
    padding: 0.35rem 0.3rem;
  }

  .event-badge-day {
    font-size: 1.05rem;
  }

  .event-badge-month {
    font-size: 0.65rem;
  }

  .event-details h4 {
    font-size: 0.825rem;
  }

  /* 7. Catalogue & Filtres : aérés et élégants */
  .main-content {
    padding-top: 2.25rem !important;
    padding-bottom: 3rem !important;
    width: 100% !important;
  }

  .catalogue-header {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-align: left;
  }

  .section-tag {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .catalogue-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: var(--text-dark);
  }

  .catalogue-subtitle {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.25rem;
  }

  /* Filtres horizontaux détachés (style capsules iOS) */
  .filter-tabs-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 4px 2px;
    margin: 0.5rem 0 1.25rem 0 !important;
    background: transparent;
    border: none;
    width: 100% !important;
    box-sizing: border-box;
  }

  .filter-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: 100px;
    background: #ffffff;
    color: var(--text-slate);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    white-space: nowrap;
  }

  .filter-pill.active {
    background: var(--apel-navy);
    color: #ffffff;
    border-color: var(--apel-navy);
    box-shadow: 0 3px 10px rgba(30, 58, 138, 0.25);
  }

  /* Champ de recherche aéré */
  .search-bar-container {
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .search-box input {
    font-size: 0.85rem;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    width: 100%;
    box-sizing: border-box;
  }

  .search-icon {
    left: 0.9rem;
  }

  /* 8. Cartes de Ventes centrées */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    width: 100%;
  }

  .sale-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .card-banner {
    height: 110px;
  }

  .card-body {
    padding: 1.15rem;
  }

  .card-heading {
    font-size: 1.2rem;
  }

  .schedule-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .schedule-val {
    text-align: left;
    padding-left: 1.25rem;
  }

  .card-actions-primary {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-cta-orange {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .btn-details-ghost {
    padding: 0.75rem;
    justify-content: center;
  }

  /* 9. Bannière bénévole & Modales */
  .volunteer-banner {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .volunteer-banner-text h3 {
    font-size: 1.2rem;
  }

  .btn-volunteer-action {
    width: 100%;
    justify-content: center;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    max-height: 88vh;
    padding: 1.5rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
  }

  .dates-summary-grid {
    grid-template-columns: 1fr;
  }

  /* 10. Barre basse tactile fixe (Bottom Navigation) */
  .mobile-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-top: 1px solid #cbd5e1 !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12) !important;
  }

  .bottom-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    background: none;
    border: none;
    padding: 6px 0;
  }

  .bottom-bar-item svg {
    width: 20px;
    height: 20px;
  }

  .bottom-bar-item:hover,
  .bottom-bar-item.active {
    color: var(--apel-navy);
  }
}

/* Cache la barre basse sur écran large */
@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}
.card-banner {
  height: 130px;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Voile d'ombrage pour que les icônes et le compte à rebours restent visibles */
.card-banner.has-custom-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  pointer-events: none;
}

.card-banner > * {
  position: relative;
  z-index: 2;
}