@charset "UTF-8";
/* ==========================================
   STYLES PAGE RESSOURCES - CADETS ST-JEAN
   ========================================== */
/* ==========================================
   VARIABLES SPÉCIFIQUES AUX RESSOURCES
   ========================================== */
/* ==========================================
   PAGE PRINCIPALE
   ========================================== */
.resources-page {
  min-height: 100vh;
  background-color: #ffffff;
}

/* ==========================================
   HERO SECTION RESSOURCES
   ========================================== */
.resources-hero {
  position: relative;
  padding: 4rem 0 2rem;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(65, 72, 51, 0.8) 50%, rgba(10, 77, 107, 0.85) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8d73f;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.875rem;
  }
}
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
}
.hero-content .hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.625;
}
@media (max-width: 768px) {
  .hero-content .hero-subtitle {
    font-size: 1rem;
  }
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */
.resources-container {
  padding: 3rem 1rem;
}
@media (max-width: 768px) {
  .resources-container {
    padding: 2rem 0.5rem;
  }
}

/* ==========================================
   GRILLE DES RESSOURCES
   ========================================== */
.resources-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ==========================================
   CATÉGORIES DE RESSOURCES
   ========================================== */
.resource-category {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.2s ease-in-out;
}
.resource-category:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-header {
  background: linear-gradient(135deg, #000000 0%, #414833 100%);
  color: #ffffff;
  padding: 2rem;
  position: relative;
}
.category-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #d5a837;
}

.category-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .category-title {
    font-size: 1.5rem;
  }
}
@media (max-width: 640px) {
  .category-title {
    font-size: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

.category-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
@media (max-width: 640px) {
  .category-icon {
    font-size: 1.5rem;
  }
}

.category-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.625;
}
@media (max-width: 768px) {
  .category-description {
    font-size: 1rem;
  }
}

/* ==========================================
   LISTE DES RESSOURCES
   ========================================== */
.resources-list {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .resources-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .resources-list {
    padding: 1.5rem;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .resources-list {
    padding: 1rem;
  }
}

/* ==========================================
   CARTES DE RESSOURCES
   ========================================== */
.resource-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #d5a837;
  background: #ffffff;
}
.resource-card:hover .resource-thumbnail img {
  transform: scale(1.05);
}
.resource-card:hover .btn-primary {
  background: #f8d73f;
  transform: translateX(2px);
}
@media (max-width: 640px) {
  .resource-card:hover {
    transform: none;
  }
}

.resource-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-header {
  margin-bottom: 1rem;
}

.resource-title {
  margin: 0 0 0.75rem 0;
}
.resource-title .resource-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  transition: 0.2s ease-in-out;
}
.resource-title .resource-link:hover {
  color: #d5a837;
}
.resource-title .resource-link:focus {
  outline: 2px solid #f8d73f;
  outline-offset: 2px;
  border-radius: 0.25rem;
}
@media (max-width: 640px) {
  .resource-title .resource-link {
    font-size: 1.125rem;
  }
}

.resource-excerpt {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.resource-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}
@media (max-width: 640px) {
  .resource-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
}

.resource-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
@media (max-width: 640px) {
  .resource-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.resource-date {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
}

.resource-type {
  background: #d5a837;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  align-self: flex-start;
}

/* ==========================================
   MINIATURES DES RESSOURCES
   ========================================== */
.resource-thumbnail {
  height: 120px;
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}
.resource-thumbnail .thumbnail-link {
  display: block;
  width: 100%;
  height: 100%;
}
.resource-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}
.resource-thumbnail.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a4d6b 0%, #347c94 100%);
  color: #ffffff;
}
.resource-thumbnail.placeholder .placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.7;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.btn-icon {
  font-size: 0.875rem;
  transition: transform 0.2s ease-in-out;
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

/* ==========================================
   ÉTAT VIDE - AUCUNE RESSOURCE
   ========================================== */
.no-resources {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 3rem;
}

.no-resources-content {
  max-width: 500px;
}
.no-resources-content .no-resources-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}
.no-resources-content h2 {
  font-size: 1.875rem;
  color: #000000;
  margin-bottom: 1rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .no-resources-content h2 {
    font-size: 1.5rem;
  }
}
.no-resources-content p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.625;
}
@media (max-width: 640px) {
  .no-resources-content p {
    font-size: 1rem;
  }
}

/* ==========================================
   SECTION D'AIDE
   ========================================== */
.resources-help {
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .resources-help {
    margin-top: 2rem;
  }
}

.help-card {
  background: linear-gradient(135deg, #f3f4f6 0%, #ccd1d1 100%);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
  .help-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}
@media (max-width: 640px) {
  .help-card {
    padding: 1rem;
  }
}

.help-content {
  flex-grow: 1;
}
.help-content h3 {
  font-size: 1.5rem;
  color: #000000;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .help-content h3 {
    font-size: 1.25rem;
  }
}
.help-content p {
  color: #374151;
  margin-bottom: 1rem;
  line-height: 1.625;
}

.help-actions {
  display: flex;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .help-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.help-icon {
  font-size: 4rem;
  color: #d5a837;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .help-icon {
    font-size: 3rem;
  }
}

/* ==========================================
   ANIMATIONS ET INTERACTIONS
   ========================================== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.resource-category {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.resource-category:nth-child(1) {
  animation-delay: 0s;
}

.resource-category:nth-child(2) {
  animation-delay: 0.1s;
}

.resource-category:nth-child(3) {
  animation-delay: 0.2s;
}

.resource-category:nth-child(4) {
  animation-delay: 0.3s;
}

.resource-category:nth-child(5) {
  animation-delay: 0.4s;
}

.resource-category:nth-child(6) {
  animation-delay: 0.5s;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
/* Tablettes */
@media (max-width: 768px) {
  .resources-hero {
    padding: 3rem 0 1.5rem;
    min-height: 300px;
  }

  .category-header {
    padding: 1.5rem;
  }

  .resource-card {
    min-height: auto;
  }
}
/* Mobiles */
@media (max-width: 640px) {
  .resources-hero {
    padding: 2rem 0 1rem;
    min-height: 250px;
  }

  .resources-grid {
    gap: 1.5rem;
  }

  .category-header {
    padding: 1rem;
  }

  .resource-content {
    padding: 1rem;
  }

  .help-card {
    gap: 1rem;
  }
}
/* ==========================================
   ACCESSIBILITÉ
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  .resource-card,
.category-title,
.hero-content h1 {
    animation: none !important;
    transition: none !important;
  }

  .resource-card:hover {
    transform: none;
  }

  .resource-thumbnail img {
    transition: none !important;
  }
}
/* Mode sombre (si supporté) */
@media (prefers-color-scheme: dark) {
  .resource-card {
    background: #eaedf1;
  }
  .resource-card:hover {
    background: #ffffff;
  }

  .help-card {
    background: #eaecef;
  }
}
/* Styles d'impression */
@media print {
  .resources-hero,
.help-card {
    background: none !important;
    color: #000000 !important;
  }

  .resource-card {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .btn {
    display: none !important;
  }

  .resource-thumbnail {
    display: none !important;
  }
}

/*# sourceMappingURL=ressources.css.map */
