/* BASE.CSS — reset + layout minimal (ne porte pas de thème) */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin:0;
  font-family:"Marcellus", serif;
  line-height:1.55; font-size:16px;
  color: var(--text-primary);
  background: var(--surface-body);
  /* le header fixe du thème fait 80px par défaut */
  padding-top: var(--header-h, 80px);
}

img,video{ max-width:100%; height:auto; display:block; }

/* Layout générique */
.container{ width:min(var(--container, 1200px), 100% - 32px); margin-inline:auto; }
.stack{ display:grid; gap:var(--gap-3, 24px); }
.grid{ display:grid; gap:var(--gap-3, 24px); grid-template-columns:repeat(12,1fr); }
.row{ display:flex; gap:var(--gap-2, 14px); align-items:center; }
.center{ display:grid; place-items:center; text-align:center; }

@media (max-width:768px){ .grid{ grid-template-columns:repeat(6,1fr);} }
@media (max-width:520px){ .grid{ grid-template-columns:repeat(4,1fr);} }

/* ===================== Header — bloc avatar ===================== */
.dropdown-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background .15s;
}
.dropdown-profile:hover { background: rgba(255,255,255,.07); }

.dropdown-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(234,217,172,.35);
  flex-shrink: 0;
}

.dropdown-username {
  font-size: 15px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

/* ===================== Toasts ===================== */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Marcellus", serif;
  box-shadow: 0 4px 20px rgba(0,0,0,.45);
  transform: translateX(24px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: auto;
  max-width: 300px;
  cursor: pointer;
}
.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.toast--success {
  background: #0f2010;
  border: 1px solid rgba(80,190,80,.35);
  color: #8fdb8f;
}
.toast--error {
  background: #210f0f;
  border: 1px solid rgba(210,70,70,.35);
  color: #e88;
}
.toast--info {
  background: var(--card-bg, #0a1318);
  border: 1px solid rgba(234,217,172,.2);
  color: var(--text-primary, #eaf1f4);
}

@media (max-width:520px) {
  .toast-wrap { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }
}
