/* Archétype: classic — CSS structurel.
 *
 * NOTE: l'archétype "classic" porte encore l'essentiel de son style en
 * inline dans les blades (héritage). Ce fichier est le point d'extraction :
 * au fur et à mesure, déplacer ici les styles structurels et remplacer les
 * couleurs codées en dur par les tokens var(--one) / rgba(var(--one-shadow-rgb), .x).
 *
 * Les NOUVEAUX archétypes doivent au contraire être tokenisés dès le départ
 * (aucune couleur en dur), pour que la palette les pilote intégralement.
 */

/* =====================================================================
 * Add-on: Search bar + Sort + Filter chips + Search results page
 * All classes prefixed "classic-" to avoid any overlap.
 * Colors via palette tokens only (var(--one) / rgba(var(--one-shadow-rgb))).
 * ===================================================================== */

/* ---------- Navbar search bar ---------- */
.classic-search {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 4px 2px 16px;
  transition: all 0.3s ease;
  max-width: 320px;
  width: 100%;
}

.classic-search:focus-within {
  background: #fff;
  border-color: var(--one);
  box-shadow: 0 0 0 4px rgba(var(--one-shadow-rgb), .12);
}

.classic-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: #2d3748;
  padding: 8px 6px;
}

.classic-search input::placeholder {
  color: #94a3b8;
}

.classic-search button {
  border: none;
  cursor: pointer;
  background: var(--one);
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.classic-search button:hover {
  background: var(--one-hover);
  transform: scale(1.05);
}

/* ---------- Toolbar (count + sort) ---------- */
.classic-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.classic-count {
  font-weight: 700;
  color: #2d3748;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.classic-count i {
  color: var(--one);
}

.classic-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-bottom: 0;
}

.classic-sort label {
  font-weight: 600;
  color: #718096;
  font-size: 0.85rem;
  margin: 0;
}

.classic-sort select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 34px 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s ease;
}

.classic-sort select:hover {
  border-color: var(--one);
}

.classic-sort select:focus {
  outline: none;
  border-color: var(--one);
  box-shadow: 0 0 0 4px rgba(var(--one-shadow-rgb), .12);
}

/* ---------- Filter chips ---------- */
.classic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.classic-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
}

.classic-chip:hover {
  border-color: var(--one);
  color: var(--one);
  transform: translateY(-2px);
}

.classic-chip.is-active {
  background: var(--one);
  border-color: var(--one);
  color: #fff;
}

.classic-chip.is-active:hover {
  background: var(--one-hover);
  border-color: var(--one-hover);
  color: #fff;
}

.classic-chip i {
  font-size: 0.8rem;
}

/* ---------- Search results page ---------- */
.classic-search-page {
  padding: 10px 0 40px;
}

.classic-search-head {
  background: linear-gradient(135deg, rgba(var(--one-shadow-rgb), .13) 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 44px 36px;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.classic-search-head::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -8%;
  width: 260px;
  height: 260px;
  background: var(--one);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(60px);
}

.classic-search-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #2d3748;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.classic-search-title i {
  color: var(--one);
}

.classic-search-sub {
  color: #718096;
  font-size: 1rem;
  margin: 0 0 24px;
  position: relative;
  z-index: 2;
}

.classic-search-head .classic-search {
  max-width: 540px;
  background: #fff;
  position: relative;
  z-index: 2;
}

.classic-results-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 36px;
}

.classic-empty {
  text-align: center;
  padding: 70px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 36px;
}

.classic-empty i {
  font-size: 4.5rem;
  color: rgba(var(--one-shadow-rgb), .25);
  margin-bottom: 18px;
}

.classic-empty h3 {
  font-size: 1.4rem;
  color: #4a5568;
  font-weight: 700;
  margin-bottom: 10px;
}

.classic-empty p {
  color: #718096;
  font-size: 1rem;
  margin: 0;
}

/* ---------- Custom pagination (search page) ---------- */
.classic-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.classic-pagination a,
.classic-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  color: var(--one);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.classic-pagination a:hover {
  background: var(--one);
  color: #fff;
  border-color: var(--one);
  transform: translateY(-2px);
}

.classic-pagination .is-current {
  background: var(--one);
  color: #fff;
  border-color: var(--one);
}

.classic-pagination .is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .classic-search { max-width: 100%; margin-top: 10px; }
  .classic-sort { margin-left: 0; width: 100%; }
  .classic-sort select { flex: 1; }
  .classic-search-title { font-size: 1.6rem; }
  .classic-search-head { padding: 32px 22px; }
}
