@charset "UTF-8";
/* ==========================================
   STYLES PAGE RECHERCHE OREN - CADETS ST-JEAN
   ========================================== */
/* ==========================================
   HERO SECTION
   ========================================== */
.oren-hero {
  position: relative;
  padding: 6rem 0 4rem;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}
.oren-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.oren-hero .hero-background .hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oren-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #414833 50%, #0a4d6b 100%);
  opacity: 0.85;
  z-index: -1;
}
.oren-hero .hero-content {
  position: relative;
  z-index: 1;
}
.oren-hero .hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f8d73f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.oren-hero .hero-content .hero-description {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.625;
}

/* ==========================================
   LAYOUT PRINCIPAL
   ========================================== */
.oren-container {
  padding: 3rem 1rem;
}

.oren-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ==========================================
   SIDEBAR DE RECHERCHE
   ========================================== */
.search-sidebar {
  position: sticky;
  top: calc(80px + 1.5rem);
}
.search-sidebar .search-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 2px solid transparent;
  transition: 0.2s ease-in-out;
}
.search-sidebar .search-card:hover {
  border-color: #d5a837;
}
.search-sidebar .search-header {
  background: linear-gradient(135deg, #000000 0%, #414833 100%);
  color: #ffffff;
  padding: 1.5rem;
}
.search-sidebar .search-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-sidebar .search-header h2 .search-icon {
  font-size: 1.5rem;
}
.search-sidebar .search-form {
  padding: 1.5rem;
}

.search-field {
  margin-bottom: 1.5rem;
}
.search-field:last-child {
  margin-bottom: 0;
}
.search-field .search-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.search-field .search-label .label-icon {
  font-size: 1.125rem;
}
.search-field .search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: 0.2s ease-in-out;
}
.search-field .search-input:focus {
  outline: none;
  border-color: #d5a837;
  box-shadow: 0 0 0 3px rgba(213, 168, 55, 0.1);
}
.search-field .search-input::placeholder {
  color: #6b7280;
}
.search-field .field-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
  font-style: italic;
}

/* ==========================================
   NIVEAUX D'INSTRUCTION
   ========================================== */
.levels-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.levels-fieldset legend {
  border: none;
  padding: 0;
  width: auto;
}

.levels-grid {
  display: grid;
  gap: 0.5rem;
}

.level-item {
  display: flex;
  align-items: center;
}
.level-item .level-checkbox {
  margin: 0;
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: #d5a837;
  cursor: pointer;
}
.level-item .level-label {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.15s ease-in-out;
}
.level-item .level-label:hover {
  color: #000000;
}
.level-item .level-label .level-count {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
  background: #f3f4f6;
  padding: 2px 0.5rem;
  border-radius: 9999px;
}
.level-item .level-checkbox:checked + .level-label {
  color: #000000;
  font-weight: 500;
}
.level-item .level-checkbox:checked + .level-label .level-count {
  background: #d5a837;
  color: #ffffff;
}

/* ==========================================
   ACTIONS DE RECHERCHE
   ========================================== */
.search-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.search-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}
.search-actions .btn .btn-icon {
  font-size: 1.125rem;
}
.search-actions .btn.btn-search {
  background: #d5a837;
  color: white;
  border: 2px solid #d5a837;
}
.search-actions .btn.btn-search:hover {
  background: #f8d73f;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.search-actions .btn.btn-search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.search-actions .btn.btn-clear {
  background: transparent;
  color: #4b5563;
  border: 2px solid #d1d5db;
}
.search-actions .btn.btn-clear:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* ==========================================
   STATISTIQUES
   ========================================== */
.search-stats {
  margin-top: 1rem;
}
.search-stats .stats-content {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  border-left: 4px solid #d5a837;
}
.search-stats .stats-content .stats-icon {
  font-size: 1rem;
}

/* ==========================================
   ZONE PRINCIPALE DES RÉSULTATS
   ========================================== */
.results-main {
  min-height: 500px;
}
.results-main .search-welcome {
  text-align: center;
  padding: 4rem 2rem;
}
.results-main .search-welcome .welcome-content {
  max-width: 500px;
  margin: 0 auto;
}
.results-main .search-welcome .welcome-content .welcome-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.results-main .search-welcome .welcome-content h3 {
  font-size: 1.875rem;
  color: #000000;
  margin-bottom: 1rem;
  font-weight: 700;
}
.results-main .search-welcome .welcome-content p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.625;
}
.results-main .quick-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.results-main .quick-stats .stat-item {
  text-align: center;
}
.results-main .quick-stats .stat-item .stat-number {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: #d5a837;
  margin-bottom: 0.25rem;
}
.results-main .quick-stats .stat-item .stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.results-main .search-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}
.results-main .search-loading .loading-content {
  text-align: center;
}
.results-main .search-loading .loading-content .loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e5e7eb;
  border-left: 4px solid #d5a837;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
.results-main .search-loading .loading-content p {
  color: #4b5563;
  font-size: 1.125rem;
}
.results-main .no-results {
  text-align: center;
  padding: 4rem 2rem;
}
.results-main .no-results .no-results-content {
  max-width: 400px;
  margin: 0 auto;
}
.results-main .no-results .no-results-content .no-results-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.results-main .no-results .no-results-content h3 {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 1rem;
  font-weight: 600;
}
.results-main .no-results .no-results-content p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.625;
}

/* ==========================================
   RÉSULTATS DE RECHERCHE
   ========================================== */
.search-results .results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}
.search-results .results-header h3 {
  font-size: 1.5rem;
  color: #000000;
  font-weight: 700;
  margin: 0;
}
.search-results .results-header .results-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search-results .results-header .sort-options .sort-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: #ffffff;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.search-results .results-header .sort-options .sort-select:focus {
  outline: none;
  border-color: #d5a837;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-item {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}
.result-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #d1d5db;
  transition: 0.2s ease-in-out;
}
.result-item:hover {
  border-color: #d5a837;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.result-item:hover::before {
  background: #d5a837;
}
.result-item:hover .result-link {
  color: #d5a837;
}
.result-item .result-header {
  margin-bottom: 0.75rem;
}
.result-item .result-header .result-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}
.result-item .result-header .result-title .result-link {
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}
.result-item .result-header .result-title .result-link:hover {
  text-decoration: underline;
}
.result-item .result-header .result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.result-item .result-excerpt {
  color: #4b5563;
  line-height: 1.625;
}
.result-item .result-excerpt p {
  margin: 0;
}

.level-badge {
  display: inline-block;
  background: #d5a837;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pagination .page-link {
  background: #ffffff;
  border: 2px solid #d1d5db;
  color: #374151;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}
.pagination .page-link:hover:not(.disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #000000;
}
.pagination .page-link.active {
  background: #d5a837;
  color: #000000;
  border-color: #d5a837;
  font-weight: 700;
}
.pagination .page-link.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}
.pagination .page-link.page-prev, .pagination .page-link.page-next {
  font-weight: 600;
  padding: 0.5rem 1rem;
}
.pagination .page-ellipsis {
  padding: 0.5rem;
  color: #6b7280;
  font-weight: 500;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.result-item {
  animation: fadeIn 0.3s ease-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
/* Tablettes et écrans moyens */
@media (max-width: 1024px) {
  .oren-layout {
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
  }

  .search-sidebar .search-card .search-header {
    padding: 1.25rem;
  }
  .search-sidebar .search-card .search-header h2 {
    font-size: 1.125rem;
  }
  .search-sidebar .search-card .search-form {
    padding: 1.25rem;
  }

  .oren-hero {
    padding: 4rem 0 3rem;
  }
  .oren-hero .hero-content h1 {
    font-size: 2.25rem;
  }
  .oren-hero .hero-description {
    font-size: 1.125rem;
  }
}
/* Tablettes */
@media (max-width: 768px) {
  .oren-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .search-sidebar {
    position: static;
    order: -1;
  }
  .search-sidebar .search-card .search-header {
    padding: 1rem;
  }
  .search-sidebar .search-card .search-header h2 {
    font-size: 1rem;
  }
  .search-sidebar .search-card .search-form {
    padding: 1rem;
  }

  .search-field {
    margin-bottom: 1rem;
  }

  .levels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .search-actions .btn {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .results-main .search-welcome {
    padding: 2.5rem 1rem;
  }
  .results-main .search-welcome .welcome-content h3 {
    font-size: 1.5rem;
  }
  .results-main .search-welcome .welcome-content p {
    font-size: 1rem;
  }
  .results-main .search-welcome .quick-stats {
    gap: 1.5rem;
  }
  .results-main .search-welcome .quick-stats .stat-item .stat-number {
    font-size: 1.5rem;
  }
  .results-main .search-loading {
    padding: 2.5rem;
  }
  .results-main .no-results {
    padding: 2.5rem 1rem;
  }

  .search-results .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .search-results .results-header h3 {
    font-size: 1.25rem;
  }

  .result-item {
    padding: 1rem;
  }
  .result-item .result-header .result-title {
    font-size: 1.125rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .pagination .page-link {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  .pagination .page-link.page-prev, .pagination .page-link.page-next {
    padding: 0.5rem 0.75rem;
  }

  .oren-hero {
    padding: 3rem 0 2rem;
  }
  .oren-hero .hero-content h1 {
    font-size: 1.875rem;
  }
  .oren-hero .hero-description {
    font-size: 1rem;
  }
}
/* Mobiles */
@media (max-width: 640px) {
  .oren-container {
    padding: 2rem 0.5rem;
  }

  .search-sidebar .search-card .search-header {
    padding: 0.75rem;
  }
  .search-sidebar .search-card .search-form {
    padding: 0.75rem;
  }

  .levels-grid {
    grid-template-columns: 1fr;
  }

  .search-actions {
    flex-direction: column;
  }
  .search-actions .btn {
    width: 100%;
  }

  .results-main .search-welcome {
    padding: 2rem 0.5rem;
  }
  .results-main .search-welcome .welcome-content .welcome-icon {
    font-size: 3rem;
  }
  .results-main .search-welcome .welcome-content h3 {
    font-size: 1.25rem;
  }
  .results-main .search-welcome .quick-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .result-item .result-header .result-meta {
    margin-top: 0.5rem;
  }

  .pagination {
    justify-content: center;
  }
  .pagination .page-link {
    min-width: 40px;
    text-align: center;
  }
  .pagination .page-ellipsis {
    display: none;
  }

  .oren-hero {
    padding: 2rem 0;
  }
  .oren-hero .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .oren-hero .hero-content .hero-description {
    font-size: 0.875rem;
  }
}
/* ==========================================
   ÉTATS DE FOCUS ET ACCESSIBILITÉ
   ========================================== */
.search-input:focus,
.level-checkbox:focus,
.sort-select:focus,
.page-link:focus,
.btn:focus {
  outline: 2px solid #f8d73f;
  outline-offset: 2px;
}

.level-label:focus-within {
  background: #f3f4f6;
  border-radius: 0.25rem;
}

.result-link:focus {
  outline: 2px solid #f8d73f;
  outline-offset: 2px;
  border-radius: 0.125rem;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .search-sidebar,
.pagination-nav,
.search-loading,
.search-welcome,
.no-results {
    display: none !important;
  }

  .oren-layout {
    grid-template-columns: 1fr;
  }

  .result-item {
    border: 1px solid #9ca3af !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
  .result-item:hover {
    transform: none !important;
  }

  .result-link {
    color: #000000 !important;
    text-decoration: underline !important;
  }

  .level-badge {
    border: 1px solid #9ca3af;
    background: transparent !important;
    color: #000000 !important;
  }
}
/* ==========================================
   DARK MODE SUPPORT (OPTIONNEL)
   ========================================== */
@media (prefers-color-scheme: dark) {
  .search-card {
    background: #f2f2f2;
    border-color: #abb2bf;
  }

  .result-item {
    background: #f7f7f7;
    border-color: #babfca;
  }
}
/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loading-spinner {
    animation: none !important;
    border: 4px solid #d5a837;
  }

  .result-item {
    animation: none !important;
  }
}

/*# sourceMappingURL=oren-search.css.map */
