/* ════════════════════════════════════════════════════════════
   PAGE 404 — Style Boturea
   ════════════════════════════════════════════════════════════ */

.b404-page {
  background: var(--gray);
  min-height: 60vh;
}

/* Masquer le fil d'ariane Astra natif éventuel sur cette page */
.error404 .ast-breadcrumbs-wrapper,
.error404 .entry-title {
  display: none !important;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.b404-hero {
  max-width: 620px;
  margin: 0 auto;
  padding: 100px 24px 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.b404-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 184, 217, 0.35);
}
.b404-badge svg { width: 28px; height: 28px; flex-shrink: 0; display: block; }

.b404-code {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--black) 30%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.b404-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: var(--weight-extrabold);
  color: var(--black);
  letter-spacing: -0.01em;
}

.b404-desc {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
}

/* ─── Recherche ──────────────────────────────────────────────── */
.b404-search {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease;
}
.b404-search:focus-within { border-color: var(--gold-dark); }

.b404-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--black);
}
.b404-search input::placeholder { color: var(--muted); }

.b404-search button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.b404-search button:hover { background: var(--gold-dark); }
/* flex-shrink:0 indispensable ici : ".b404-search button" (40x40, à
   peine plus grand que l'icône) est un flex container — sans ça, le
   svg se fait comprimer à 0 de large par l'algorithme flex (flex-shrink
   ne s'applique qu'à l'axe principal, donc seule la largeur s'effondre,
   la hauteur restant intacte — d'où une icône invisible malgré
   width/height corrects). */
.b404-search button svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }

/* ─── Boutons d'action ───────────────────────────────────────── */
.b404-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.b404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.b404-btn--primary {
  background: var(--black);
  color: var(--white);
}
.b404-btn--primary:hover { background: var(--gold-dark); }

.b404-btn--outline {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--border);
}
.b404-btn--outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* ─── Liens rapides ──────────────────────────────────────────── */
.b404-links {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 90px;
  text-align: center;
}

.b404-links__label {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.b404-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.b404-links__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--weight-medium);
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.b404-links__grid a:hover {
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.b404-links__grid a svg { width: 24px; height: 24px; color: var(--gold-dark); flex-shrink: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .b404-hero { padding: 64px 20px 48px; }
  .b404-links { padding: 0 20px 60px; }
  .b404-links__grid { grid-template-columns: repeat(2, 1fr); }
  .b404-actions { flex-direction: column; width: 100%; }
  .b404-btn { width: 100%; }
}
