/* ============================================================
   Alb's Events — Additions
   Nouveaux composants dans le même design que l'original.
   Police : Satoshi (déjà chargée). Fond : #efefef. Accent : #e28e2a
   ============================================================ */

:root {
  --ae-bg:          #efefef;
  --ae-surface:     #ffffff;
  --ae-surface-2:   #f6f5f2;
  --ae-border:      rgba(21,21,21,0.09);
  --ae-border-hov:  rgba(21,21,21,0.2);
  --ae-text:        #151515;
  --ae-text-2:      #5c5c5c;
  --ae-text-3:      #9b9690;
  --ae-accent:      #e28e2a;
  --ae-accent-h:    #c97a1f;
  --ae-accent-soft: rgba(226,142,42,0.1);
  --ae-success:     #2e7d52;
  --ae-danger:      #c0392b;
  --ae-shadow-sm:   0 1px 3px rgba(18,18,18,0.05), 0 1px 2px rgba(18,18,18,0.04);
  --ae-shadow:      0 4px 16px rgba(18,18,18,0.08);
  --ae-shadow-lg:   0 12px 40px rgba(18,18,18,0.14);
  --ae-r:           0.875rem;
  --ae-r-sm:        0.5rem;
  --ae-r-lg:        1.25rem;
  --ae-ease:        cubic-bezier(0.16,1,0.3,1);
}

/* Icône panier dans la nav */
.nav-cart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--ae-r-sm);
  color: var(--ae-text);
  transition: opacity 0.2s;
  text-decoration: none;
}
.nav-cart-wrap:hover { opacity: 0.65; }
.nav-cart-count {
  position: absolute;
  top: -5px; right: -6px;
  min-width: 17px; height: 17px;
  background: var(--ae-accent);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  opacity: 0; transform: scale(0);
  transition: opacity 0.2s var(--ae-ease), transform 0.2s var(--ae-ease);
}
.nav-cart-count.visible { opacity: 1; transform: scale(1); }

/* En-tête de page (bande titre sous la nav) */
.page-header {
  padding: 5rem 0 2.5rem;
  background: var(--ae-bg);
  border-bottom: 1px solid var(--ae-border);
}
.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.page-header-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.page-header-sub {
  font-size: 0.9rem;
  color: var(--ae-text-2);
}

/* Boutons additions */
.ae-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 500;
  border-radius: var(--ae-r-sm);
  transition: transform 0.2s var(--ae-ease), box-shadow 0.2s var(--ae-ease), background-color 0.2s;
  cursor: pointer; border: none; white-space: nowrap;
  font-family: Satoshi, sans-serif;
  text-decoration: none;
}
.ae-btn:active { transform: scale(0.98) !important; }
.ae-btn-primary { background: var(--ae-text); color: #fff; }
.ae-btn-primary:hover { background: #2c2c2c; transform: translateY(-1px); box-shadow: var(--ae-shadow); }
.ae-btn-accent  { background: var(--ae-accent); color: #fff; }
.ae-btn-accent:hover { background: var(--ae-accent-h); transform: translateY(-1px); box-shadow: var(--ae-shadow); }
.ae-btn-ghost   { background: transparent; color: var(--ae-text); border: 1px solid var(--ae-border-hov); }
.ae-btn-ghost:hover  { background: var(--ae-surface); transform: translateY(-1px); }
.ae-btn-danger  { background: var(--ae-danger); color: #fff; }
.ae-btn-danger:hover { background: #a5311f; }
.ae-btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.ae-btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.ae-btn-full { width: 100%; justify-content: center; }

/* Badge */
.ae-badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
}
.ae-badge-accent { background: var(--ae-accent-soft); color: var(--ae-accent); border-color: rgba(226,142,42,0.3); }
.ae-badge-gray   { background: rgba(21,21,21,0.05); color: var(--ae-text-2); border-color: var(--ae-border); }
.ae-badge-green  { background: rgba(46,125,82,0.08); color: var(--ae-success); border-color: rgba(46,125,82,0.25); }
.ae-badge-red    { background: rgba(192,57,43,0.08); color: var(--ae-danger); border-color: rgba(192,57,43,0.25); }

/* Carte standard (même look que .div-block) */
.ae-card {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-r);
  box-shadow: var(--ae-shadow-sm);
  overflow: hidden;
}
.ae-card-body { padding: 1.5rem; }
.ae-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: space-between;
}

/* Filtre catalogue */
.ae-filter-bar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ae-filter-btn {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem; font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ae-border);
  background: var(--ae-surface); color: var(--ae-text-2);
  cursor: pointer; transition: 0.2s;
  font-family: Satoshi, sans-serif;
}
.ae-filter-btn:hover { border-color: var(--ae-border-hov); color: var(--ae-text); }
.ae-filter-btn.active { background: var(--ae-text); color: #fff; border-color: var(--ae-text); }

/* Grille produits améliorée */
.ae-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ae-product-card {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-r);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--ae-shadow-sm);
  transition: transform 0.3s var(--ae-ease), box-shadow 0.3s var(--ae-ease), border-color 0.3s;
  display: flex; flex-direction: column;
}
.ae-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ae-shadow-lg);
  border-color: rgba(226,142,42,0.25);
}
.ae-product-card-img {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
  background: var(--ae-surface-2);
}
.ae-product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ae-ease);
}
.ae-product-card:hover .ae-product-card-img img { transform: scale(1.04); }
.ae-product-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.ae-product-card-body { padding: 1.125rem 1.25rem 0.5rem; flex: 1; }
.ae-product-card-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.ae-product-card-sub { font-size: 0.8rem; color: var(--ae-accent); font-weight: 500; }
.ae-product-card-footer {
  padding: 0.75rem 1.25rem 1.125rem;
  display: flex; align-items: center; justify-content: space-between;
}
.ae-product-card-price { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.ae-product-card-arrow {
  width: 1.75rem; height: 1.75rem;
  background: var(--ae-bg); border: 1px solid var(--ae-border);
  border-radius: 0.375rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-text-2);
  transition: 0.2s;
}
.ae-product-card:hover .ae-product-card-arrow {
  background: var(--ae-accent); border-color: var(--ae-accent); color: #fff;
}

/* Détail produit */
.ae-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.ae-product-img-wrap {
  position: sticky; top: 6rem;
  aspect-ratio: 1/1; border-radius: var(--ae-r-lg);
  overflow: hidden; background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  box-shadow: var(--ae-shadow);
}
.ae-product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ae-product-content {}
.ae-product-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.ae-product-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 0.35rem;
}
.ae-product-subtitle { font-size: 0.9rem; color: var(--ae-text-2); margin-bottom: 1.25rem; }
.ae-product-price {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.ae-product-price span { font-size: 0.9rem; font-weight: 400; color: var(--ae-text-2); margin-left: 0.2rem; }
.ae-product-desc { font-size: 0.9rem; color: var(--ae-text-2); line-height: 1.75; margin-bottom: 1.5rem; }
.ae-product-divider { border: none; border-top: 1px solid var(--ae-border); margin: 1.5rem 0; }

/* specs grid */
.ae-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm);
  overflow: hidden; margin-bottom: 1.5rem;
}
.ae-spec-cell {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ae-border);
  border-right: 1px solid var(--ae-border);
}
.ae-spec-cell:nth-child(even) { border-right: none; }
.ae-spec-cell:nth-last-child(-n+2) { border-bottom: none; }
.ae-spec-key { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ae-text-3); margin-bottom: 0.15rem; }
.ae-spec-val { font-size: 0.85rem; font-weight: 600; color: var(--ae-text); }

/* note */
.ae-product-note {
  padding: 0.75rem 1rem;
  background: var(--ae-accent-soft);
  border: 1px solid rgba(226,142,42,0.25);
  border-radius: var(--ae-r-sm);
  font-size: 0.82rem; color: var(--ae-text-2);
  margin-bottom: 1.25rem;
}

/* qty */
.ae-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ae-qty-ctrl { display: flex; align-items: center; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); overflow: hidden; }
.ae-qty-btn {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ae-surface-2); color: var(--ae-text-2); font-size: 1rem;
  transition: 0.15s; cursor: pointer;
}
.ae-qty-btn:hover { background: var(--ae-bg); color: var(--ae-text); }
.ae-qty-val {
  width: 2.75rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.9rem;
  border-left: 1px solid var(--ae-border); border-right: 1px solid var(--ae-border);
}

/* Mise en page du panier */
.ae-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}
.ae-cart-box {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-r);
  overflow: hidden;
  box-shadow: var(--ae-shadow-sm);
}
.ae-cart-box-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: space-between;
}
.ae-cart-box-title { font-size: 0.875rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ae-text-2); }
.ae-cart-item {
  display: grid; grid-template-columns: 5rem 1fr auto;
  gap: 1.25rem; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ae-border);
  transition: background 0.15s;
}
.ae-cart-item:last-child { border-bottom: none; }
.ae-cart-item:hover { background: #fafaf8; }
.ae-cart-item-img {
  width: 5rem; height: 5rem; border-radius: var(--ae-r-sm);
  overflow: hidden; background: var(--ae-surface-2); flex-shrink: 0;
}
.ae-cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ae-cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.ae-cart-item-sub  { font-size: 0.78rem; color: var(--ae-text-2); margin-bottom: 0.3rem; }
.ae-cart-item-price { font-size: 0.85rem; font-weight: 700; color: var(--ae-accent); }
.ae-cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.ae-cart-remove {
  width: 1.75rem; height: 1.75rem;
  background: var(--ae-surface-2); border: 1px solid var(--ae-border);
  border-radius: var(--ae-r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-text-3); cursor: pointer;
  transition: 0.15s;
}
.ae-cart-remove:hover { color: var(--ae-danger); border-color: rgba(192,57,43,0.3); }
.ae-cart-empty { text-align: center; padding: 4rem 1.5rem; color: var(--ae-text-2); }

/* résumé commande (sidebar) */
.ae-summary {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border);
  border-radius: var(--ae-r);
  overflow: hidden;
  box-shadow: var(--ae-shadow-sm);
  position: sticky; top: 5.5rem;
}
.ae-summary-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--ae-border); }
.ae-summary-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ae-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.ae-summary-row .lbl { color: var(--ae-text-2); }
.ae-summary-total { border-top: 1px solid var(--ae-border); padding-top: 0.875rem; margin-top: 0.25rem; }
.ae-summary-total .lbl { font-weight: 700; font-size: 0.95rem; color: var(--ae-text); }
.ae-summary-total .val { font-size: 1.1rem; font-weight: 700; color: var(--ae-accent); }

/* Sélecteur de dates */
.ae-datepicker { border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm); overflow: hidden; background: var(--ae-surface); }
.ae-dp-header {
  padding: 0.75rem 1rem;
  background: var(--ae-surface-2); border-bottom: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: space-between;
}
.ae-dp-nav {
  width: 1.75rem; height: 1.75rem; border-radius: var(--ae-r-sm);
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-text-2); cursor: pointer; transition: 0.15s;
}
.ae-dp-nav:hover { border-color: var(--ae-border-hov); color: var(--ae-text); }
.ae-dp-month { font-size: 0.85rem; font-weight: 600; }
.ae-dp-grid { display: grid; grid-template-columns: repeat(7,1fr); padding: 0.5rem; gap: 2px; }
.ae-dp-dow  { text-align: center; padding: 0.4rem 0; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ae-text-3); }
.ae-dp-day  {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; cursor: pointer; border-radius: var(--ae-r-sm);
  transition: background 0.12s;
}
.ae-dp-day:hover:not(.past):not(.empty):not(.unavail) { background: var(--ae-surface-2); }
.ae-dp-day.start, .ae-dp-day.end { background: var(--ae-accent); color: #fff; font-weight: 700; border-radius: var(--ae-r-sm); }
.ae-dp-day.in-range { background: var(--ae-accent-soft); border-radius: 0; }
.ae-dp-day.start { border-radius: var(--ae-r-sm) 0 0 var(--ae-r-sm); }
.ae-dp-day.end   { border-radius: 0 var(--ae-r-sm) var(--ae-r-sm) 0; }
.ae-dp-day.start.end { border-radius: var(--ae-r-sm); }
.ae-dp-day.past, .ae-dp-day.unavail { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.ae-dp-day.today { outline: 1.5px solid var(--ae-accent); outline-offset: -1px; }
.ae-dp-selected {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ae-border);
}
.ae-dp-cell { padding: 0.65rem 1rem; background: var(--ae-surface); }
.ae-dp-cell + .ae-dp-cell { border-left: 1px solid var(--ae-border); }
.ae-dp-cell-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ae-text-3); margin-bottom: 0.1rem; }
.ae-dp-cell-val { font-size: 0.8rem; font-weight: 600; }

/* Options de livraison (sélecteur) */
.ae-delivery-list { display: flex; flex-direction: column; gap: 0.6rem; }
.ae-delivery-opt {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm);
  cursor: pointer; transition: 0.2s; position: relative;
  background: var(--ae-surface);
}
.ae-delivery-opt:hover { border-color: var(--ae-border-hov); }
.ae-delivery-opt.selected { border-color: var(--ae-accent); background: var(--ae-accent-soft); }
.ae-delivery-opt input { position: absolute; opacity: 0; }
.ae-radio { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--ae-border-hov); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: 0.15s; }
.ae-delivery-opt.selected .ae-radio { border-color: var(--ae-accent); }
.ae-radio-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--ae-accent); opacity: 0; transition: 0.15s; }
.ae-delivery-opt.selected .ae-radio-dot { opacity: 1; }
.ae-delivery-info { flex: 1; }
.ae-delivery-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.1rem; }
.ae-delivery-desc { font-size: 0.75rem; color: var(--ae-text-2); }
.ae-delivery-price { font-size: 0.875rem; font-weight: 700; }
.ae-delivery-free  { color: var(--ae-success); }

/* Formulaires */
.ae-form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.ae-label { font-size: 0.8rem; font-weight: 600; color: var(--ae-text-2); }
.ae-input {
  padding: 0.75rem 0.875rem;
  background: var(--ae-surface);
  border: 1px solid var(--ae-border-hov);
  border-radius: var(--ae-r-sm);
  font-size: 0.9rem; color: var(--ae-text);
  font-family: Satoshi, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ae-input:focus { outline: none; border-color: var(--ae-accent); box-shadow: 0 0 0 3px var(--ae-accent-soft); }
.ae-input::placeholder { color: var(--ae-text-3); }
.ae-textarea {
  padding: 0.75rem 0.875rem;
  background: var(--ae-surface);
  border: 1px solid var(--ae-border-hov);
  border-radius: var(--ae-r-sm);
  font-size: 0.9rem; color: var(--ae-text);
  font-family: Satoshi, sans-serif;
  resize: vertical; min-height: 90px;
  transition: border-color 0.2s;
}
.ae-textarea:focus { outline: none; border-color: var(--ae-accent); box-shadow: 0 0 0 3px var(--ae-accent-soft); }
.ae-field-error { font-size: 0.75rem; color: var(--ae-danger); display: none; }
.ae-field-error.show { display: block; }

/* Modale de capture email */
.ae-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(21,21,21,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ae-modal-overlay.open { opacity: 1; pointer-events: all; }
.ae-modal {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border-hov);
  border-radius: var(--ae-r-lg);
  padding: 2.5rem;
  max-width: 420px; width: 100%;
  box-shadow: var(--ae-shadow-lg);
  transform: translateY(10px);
  transition: transform 0.3s var(--ae-ease);
  position: relative;
}
.ae-modal-overlay.open .ae-modal { transform: translateY(0); }
.ae-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ae-surface-2); color: var(--ae-text-2);
  cursor: pointer; border: 1px solid var(--ae-border);
  transition: 0.15s;
}
.ae-modal-close:hover { color: var(--ae-text); border-color: var(--ae-border-hov); }
.ae-modal-icon {
  width: 3rem; height: 3rem;
  background: var(--ae-accent-soft); border-radius: var(--ae-r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-accent); margin-bottom: 1.25rem;
}
.ae-modal-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.ae-modal-sub   { font-size: 0.875rem; color: var(--ae-text-2); line-height: 1.6; margin-bottom: 1.5rem; }
.ae-modal-note  { font-size: 0.72rem; color: var(--ae-text-3); text-align: center; margin-top: 0.75rem; }

/* Toast */
.ae-toast-wrap { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; }
.ae-toast {
  background: var(--ae-surface);
  border: 1px solid var(--ae-border-hov);
  border-radius: var(--ae-r);
  padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--ae-shadow);
  transform: translateX(120px); opacity: 0;
  transition: transform 0.3s var(--ae-ease), opacity 0.3s;
  max-width: 300px;
}
.ae-toast.show { transform: translateX(0); opacity: 1; }

/* Panneau coulissant (checkout) */
.ae-panel-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(21,21,21,0.3);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ae-panel-overlay.open { opacity: 1; pointer-events: all; }
.ae-panel {
  position: fixed; top: 0; right: -100%; bottom: 0; z-index: 151;
  width: min(480px, 100vw);
  background: var(--ae-surface);
  border-left: 1px solid var(--ae-border);
  padding: 2rem;
  overflow-y: auto;
  transition: right 0.4s var(--ae-ease);
  box-shadow: -8px 0 40px rgba(18,18,18,0.14);
}
.ae-panel.open { right: 0; }
.ae-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.ae-panel-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.ae-panel-close {
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--ae-surface-2); border: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-text-2); cursor: pointer; transition: 0.15s;
}
.ae-panel-close:hover { color: var(--ae-text); }

/* Étapes (comment ça marche) */
.ae-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--ae-border);
  border: 1px solid var(--ae-border); border-radius: var(--ae-r-lg);
  overflow: hidden;
}
.ae-step {
  background: var(--ae-surface); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  transition: background 0.2s;
}
.ae-step:hover { background: #fafaf8; }
.ae-step-num { font-size: 0.65rem; font-weight: 700; color: var(--ae-accent); text-transform: uppercase; letter-spacing: 0.1em; }
.ae-step-icon { width: 2.5rem; height: 2.5rem; background: var(--ae-accent-soft); border-radius: var(--ae-r-sm); display: flex; align-items: center; justify-content: center; color: var(--ae-accent); }
.ae-step-title { font-size: 0.9rem; font-weight: 700; }
.ae-step-desc  { font-size: 0.82rem; color: var(--ae-text-2); line-height: 1.65; }

/* Cartes livraison (accueil) */
.ae-delivery-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.ae-delivery-card {
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-radius: var(--ae-r-lg); padding: 2.25rem 2rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  box-shadow: var(--ae-shadow-sm);
  transition: transform 0.3s var(--ae-ease), box-shadow 0.3s;
}
.ae-delivery-card:hover { transform: translateY(-2px); box-shadow: var(--ae-shadow); }
.ae-delivery-card.featured { border-color: rgba(226,142,42,0.35); background: linear-gradient(145deg, rgba(226,142,42,0.04) 0%, #fff 60%); }
.ae-delivery-card-icon { width: 3rem; height: 3rem; background: var(--ae-accent-soft); border-radius: var(--ae-r-sm); display: flex; align-items: center; justify-content: center; color: var(--ae-accent); }
.ae-delivery-card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.ae-delivery-card-desc  { font-size: 0.85rem; color: var(--ae-text-2); line-height: 1.65; }
.ae-delivery-card-price { font-size: 1rem; font-weight: 700; }
.ae-delivery-card-free  { color: var(--ae-success); }

/* Admin */
.ae-admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
.ae-admin-sidebar {
  background: var(--ae-surface); border-right: 1px solid var(--ae-border);
  padding: 1.5rem 0; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.ae-admin-logo { padding: 0 1.25rem 1.25rem; border-bottom: 1px solid var(--ae-border); margin-bottom: 0.5rem; }
.ae-admin-logo img { height: 24px; }
.ae-admin-nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.625rem 1rem; margin: 0 0.5rem;
  border-radius: var(--ae-r-sm); font-size: 0.85rem; font-weight: 500;
  color: var(--ae-text-2); cursor: pointer; transition: 0.15s;
  font-family: Satoshi, sans-serif;
}
.ae-admin-nav-link:hover { background: var(--ae-surface-2); color: var(--ae-text); }
.ae-admin-nav-link.active { background: var(--ae-accent-soft); color: var(--ae-accent); }
.ae-admin-main { background: var(--ae-bg); }
.ae-admin-topbar {
  height: 3.75rem; background: var(--ae-surface);
  border-bottom: 1px solid var(--ae-border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.ae-admin-page { padding: 2rem; }
.ae-admin-page-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.25rem; }
.ae-admin-page-sub   { font-size: 0.875rem; color: var(--ae-text-2); margin-bottom: 2rem; }
.ae-admin-panel { display: none; }
.ae-admin-panel.active { display: block; }

/* admin stats */
.ae-admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.ae-admin-stat {
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-radius: var(--ae-r); padding: 1.25rem 1.5rem;
  box-shadow: var(--ae-shadow-sm);
}
.ae-admin-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ae-text-3); margin-bottom: 0.4rem; }
.ae-admin-stat-val { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.ae-admin-stat-delta { font-size: 0.75rem; color: var(--ae-success); margin-top: 0.1rem; }

/* admin table */
.ae-table-wrap { background: var(--ae-surface); border: 1px solid var(--ae-border); border-radius: var(--ae-r-lg); overflow: hidden; box-shadow: var(--ae-shadow-sm); }
.ae-table { width: 100%; border-collapse: collapse; }
.ae-table thead { background: var(--ae-surface-2); }
.ae-table th { padding: 0.75rem 1.25rem; text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ae-text-2); }
.ae-table td { padding: 0.875rem 1.25rem; border-top: 1px solid var(--ae-border); font-size: 0.875rem; vertical-align: middle; }
.ae-table tr:hover td { background: #fafaf8; }
.ae-table-img { width: 2.5rem; height: 2.5rem; border-radius: var(--ae-r-sm); object-fit: cover; }
.ae-table-name { font-weight: 600; }
.ae-table-sub { font-size: 0.75rem; color: var(--ae-text-2); }
.ae-table-actions { display: flex; gap: 0.5rem; }
.ae-table-btn {
  width: 1.875rem; height: 1.875rem; border-radius: var(--ae-r-sm);
  background: var(--ae-surface-2); border: 1px solid var(--ae-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ae-text-2); cursor: pointer; transition: 0.15s;
}
.ae-table-btn:hover { color: var(--ae-text); border-color: var(--ae-border-hov); }
.ae-table-btn.del:hover { color: var(--ae-danger); border-color: rgba(192,57,43,0.3); }

/* admin avail calendar */
.ae-avail-prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.ae-avail-prod-btn {
  padding: 0.75rem; border: 1px solid var(--ae-border); border-radius: var(--ae-r-sm);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  cursor: pointer; transition: 0.15s; background: var(--ae-surface);
  font-family: Satoshi, sans-serif;
}
.ae-avail-prod-btn:hover { border-color: var(--ae-border-hov); }
.ae-avail-prod-btn.active { border-color: var(--ae-accent); background: var(--ae-accent-soft); }
.ae-avail-prod-btn img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 0.25rem; }
.ae-avail-prod-btn-name { font-size: 0.7rem; color: var(--ae-text-2); text-align: center; font-weight: 500; }
.ae-avail-day.blocked { background: rgba(192,57,43,0.1); color: var(--ae-danger); border: 1px solid rgba(192,57,43,0.2); border-radius: var(--ae-r-sm); }

/* admin login */
.ae-admin-login {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: var(--ae-bg); padding: 1.5rem;
}
.ae-admin-login-box {
  background: var(--ae-surface); border: 1px solid var(--ae-border);
  border-radius: var(--ae-r-lg); padding: 3rem 2.5rem;
  width: 100%; max-width: 380px;
  box-shadow: var(--ae-shadow);
}

/* Apparition au scroll */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ae-ease), transform 0.6s var(--ae-ease);
}
[data-reveal].in-view { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .ae-product-grid { grid-template-columns: repeat(2,1fr); }
  .ae-steps { grid-template-columns: repeat(2,1fr); }
  .ae-delivery-cards { grid-template-columns: 1fr; gap: 0.875rem; }
  .ae-admin-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .ae-product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .ae-product-img-wrap { position: relative; top: 0; }
  .ae-cart-layout { grid-template-columns: 1fr; }
  .ae-summary { position: relative; top: 0; }
  .ae-admin-wrap { grid-template-columns: 1fr; }
  .ae-admin-sidebar { display: none; }
}
@media (max-width: 767px) {
  .ae-product-grid { grid-template-columns: repeat(2,1fr); gap: 0.875rem; }
  .ae-steps { grid-template-columns: 1fr; }
  .ae-cart-item { grid-template-columns: 4rem 1fr auto; gap: 0.875rem; }
}
@media (max-width: 479px) {
  .ae-product-grid { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .ae-modal { padding: 1.75rem 1.25rem; }
}

/* ============================================================
   Styles pour les éléments générés par store.js
   (modal email, toasts, date picker, boutons)
   ============================================================ */

/* Fond de modale (EmailModal) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(21,21,21,0.45);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.visible { opacity: 1; pointer-events: all; }
.modal {
  background: #fff;
  border: 1px solid rgba(21,21,21,0.12);
  border-radius: 1.25rem;
  padding: 2.5rem;
  max-width: 420px; width: 100%;
  box-shadow: 0 12px 40px rgba(18,18,18,0.14);
  transform: translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.modal-overlay.visible .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #f6f5f2; color: #5c5c5c;
  cursor: pointer; border: 1px solid rgba(21,21,21,0.09);
  transition: 0.15s;
}
.modal-close:hover { color: #151515; border-color: rgba(21,21,21,0.2); }
.modal-icon {
  width: 3rem; height: 3rem;
  background: rgba(226,142,42,0.1); border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center;
  color: #e28e2a; margin-bottom: 1.25rem;
}
.modal-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.4rem; color: #151515; }
.modal-sub   { font-size: 0.875rem; color: #5c5c5c; line-height: 1.6; margin-bottom: 1.5rem; }
.modal-note  { font-size: 0.72rem; color: #9b9690; text-align: center; margin-top: 0.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: #5c5c5c; }
.form-input {
  padding: 0.75rem 0.875rem;
  background: #fff; border: 1px solid rgba(21,21,21,0.2);
  border-radius: 0.5rem; font-size: 0.9rem; color: #151515;
  font-family: Satoshi, -apple-system, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%; box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #e28e2a; box-shadow: 0 0 0 3px rgba(226,142,42,0.1); }
.form-input::placeholder { color: #9b9690; }
.form-error { font-size: 0.75rem; color: #c0392b; display: none; margin-top: 0.2rem; }
.form-error.visible { display: block; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; cursor: pointer; border: none; font-family: Satoshi, -apple-system, sans-serif; transition: 0.2s; }
.btn-primary { background: #151515; color: #fff; }
.btn-primary:hover { background: #2c2c2c; }
.btn-full { width: 100%; }

/* Conteneur des toasts */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9998; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: #fff; border: 1px solid rgba(21,21,21,0.12);
  border-radius: 0.875rem; padding: 0.875rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: #151515;
  box-shadow: 0 4px 16px rgba(18,18,18,0.08);
  transform: translateX(120px); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  max-width: 300px; font-family: Satoshi, -apple-system, sans-serif;
}
.toast.show { transform: translateX(0); opacity: 1; }

/* Sélecteur de dates (classe DatePicker), version compacte */
.date-picker-wrap { border: 1px solid rgba(21,21,21,0.09); border-radius: 0.5rem; overflow: hidden; background: #fff; max-width: 19rem; }
.date-picker-header {
  padding: 0.4rem 0.55rem; background: #f6f5f2;
  border-bottom: 1px solid rgba(21,21,21,0.09);
  display: flex; align-items: center; justify-content: space-between;
}
.date-picker-nav {
  width: 1.4rem; height: 1.4rem; border-radius: 0.4rem;
  background: #fff; border: 1px solid rgba(21,21,21,0.09);
  display: flex; align-items: center; justify-content: center;
  color: #5c5c5c; cursor: pointer; transition: 0.15s;
}
.date-picker-nav svg { width: 10px; height: 10px; }
.date-picker-nav:hover { border-color: rgba(21,21,21,0.2); color: #151515; }
.date-picker-month-label { font-size: 0.74rem; font-weight: 600; color: #151515; }
.date-picker-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; padding: 5px; }
.date-picker-dow { text-align: center; padding: 0.2rem 0; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #9b9690; }
.date-picker-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 0.68rem; cursor: pointer; border-radius: 0.35rem; transition: background 0.12s; color: #151515; }
.date-picker-day:hover:not(.past):not(.empty):not(.unavailable) { background: #f6f5f2; }
.date-picker-day.start, .date-picker-day.end { background: #e28e2a; color: #fff; font-weight: 700; }
.date-picker-day.in-range { background: rgba(226,142,42,0.1); border-radius: 0; }
.date-picker-day.start { border-radius: 0.35rem 0 0 0.35rem; }
.date-picker-day.end   { border-radius: 0 0.35rem 0.35rem 0; }
.date-picker-day.start.end { border-radius: 0.35rem; }
.date-picker-day.past, .date-picker-day.unavailable { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.date-picker-selected-display { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(21,21,21,0.09); }
.date-display-cell { padding: 0.4rem 0.6rem; background: #fff; }
.date-display-cell + .date-display-cell { border-left: 1px solid rgba(21,21,21,0.09); }
.date-display-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9b9690; margin-bottom: 0.05rem; }
.date-display-val { font-size: 0.72rem; font-weight: 600; color: #151515; }
