/* ======== REFERENCES PAGE STYLES ======== */
/* Ce fichier contient uniquement des styles pour la page references.html
   Toutes les classes sont préfixées par "ref-" pour éviter les conflits */

/* ======== VARIABLES ======== */
:root {
  /* Color Palette */
  --ref-primary: #1a365d;
  --ref-primary-light: #2c5282;
  --ref-secondary: #0d9488;
  --ref-accent: #f59e0b;
  --ref-accent-light: #fbbf24;
  --ref-bg-light: #f7fafc;
  --ref-bg-dark: #1a202c;
  --ref-text: #2d3748;
  --ref-text-light: #718096;
  --ref-white: #ffffff;
  
  /* Gradients */
  --ref-gradient-primary: linear-gradient(135deg, var(--ref-primary), var(--ref-primary-light));
  --ref-gradient-accent: linear-gradient(135deg, var(--ref-secondary), var(--ref-accent));
  
  /* Shadows */
  --ref-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --ref-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --ref-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  
  /* Borders */
  --ref-radius-sm: 0.25rem;
  --ref-radius-md: 0.5rem;
  --ref-radius-lg: 1rem;
  --ref-radius-full: 9999px;
  
  /* Transitions */
  --ref-transition: all 0.3s ease;
}

/* ======== CONTAINER ======== */
.ref-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: 'Poppins', sans-serif;
}

/* ======== PAGE HEADER ======== */
.ref-page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.ref-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ref-primary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.ref-page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--ref-gradient-accent);
  margin: 0.75rem auto 0;
  border-radius: var(--ref-radius-full);
}

.ref-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ref-text-light);
  font-size: 0.9rem;
}

.ref-breadcrumb a {
  color: var(--ref-secondary);
  transition: var(--ref-transition);
}

.ref-breadcrumb a:hover {
  color: var(--ref-accent);
}

/* ======== HERO SECTION ======== */
.ref-hero-section {
  background: var(--ref-gradient-primary);
  color: var(--ref-white);
  border-radius: var(--ref-radius-lg);
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ref-shadow-lg);
}

.ref-hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h4v4H0zM6 0h4v4H6zM12 0h4v4h-4zM18 0h2v4h-2zM0 6h4v4H0zM12 6h4v4h-4zM18 6h2v4h-2zM0 12h4v4H0zM6 12h4v4H6zM12 12h4v4h-4zM18 12h2v4h-2zM0 18h4v2H0zM6 18h4v2H6zM12 18h4v2h-4zM18 18h2v2h-2z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.ref-hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.ref-hero-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.ref-highlight-text {
  position: relative;
  display: inline-block;
}

.ref-highlight-text::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 30%;
  background-color: rgba(245, 158, 11, 0.3);
  bottom: 0;
  left: 0;
  z-index: -1;
  border-radius: 2px;
}

.ref-intro-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0.9;
}

.ref-info-box-container {
  margin-top: 2rem;
}

.ref-info-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--ref-radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ref-info-box-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--ref-accent-light);
}

.ref-info-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--ref-white);
}

.ref-resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.ref-resource-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.ref-resource-list li i {
  color: var(--ref-accent-light);
  font-size: 0.85rem;
}

/* ======== CONTENT SECTIONS ======== */
.ref-content-section {
  background: var(--ref-white);
  border-radius: var(--ref-radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--ref-shadow-md);
  position: relative;
  overflow: hidden;
}

.ref-section-header {
  margin-bottom: 2.5rem;
  position: relative;
}

.ref-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ref-primary);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.ref-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--ref-gradient-accent);
  border-radius: var(--ref-radius-full);
}

.ref-section-description {
  color: var(--ref-text-light);
  font-size: 1.1rem;
  max-width: 650px;
}

/* ======== REFERENCE GRID ======== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.ref-item {
  background-color: var(--ref-bg-light);
  border-radius: var(--ref-radius-md);
  padding: 2rem;
  transition: var(--ref-transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--ref-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ref-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--ref-gradient-accent);
  opacity: 0;
  transition: var(--ref-transition);
}

.ref-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--ref-shadow-lg);
}

.ref-item:hover::before {
  opacity: 1;
}

/* Animation de flottement pour les items */
@keyframes ref-float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.ref-item:nth-child(1) { animation: ref-float 6s ease-in-out infinite; }
.ref-item:nth-child(2) { animation: ref-float 6s ease-in-out infinite 1s; }
.ref-item:nth-child(3) { animation: ref-float 6s ease-in-out infinite 2s; }
.ref-item:nth-child(4) { animation: ref-float 6s ease-in-out infinite 3s; }

.ref-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--ref-primary-light);
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(44, 82, 130, 0.1);
  border-radius: 50%;
  z-index: -1;
}

.ref-content {
  flex: 1;
}

.ref-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--ref-primary);
}

.ref-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: var(--ref-transition);
}

.ref-content h3 a:hover {
  color: var(--ref-secondary);
}

.ref-content p {
  color: var(--ref-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.ref-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ref-text-light);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ref-type {
  font-weight: 500;
}

/* ======== CTA BOX ======== */
.ref-cta-box {
  background: var(--ref-gradient-accent);
  color: var(--ref-white);
  padding: 3rem;
  border-radius: var(--ref-radius-md);
  text-align: center;
  box-shadow: var(--ref-shadow-lg);
  position: relative;
  overflow: hidden;
}

.ref-cta-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 0h4v4H0zM6 0h4v4H6zM12 0h4v4h-4zM18 0h2v4h-2zM0 6h4v4H0zM12 6h4v4h-4zM18 6h2v4h-2zM0 12h4v4H0zM6 12h4v4H6zM12 12h4v4h-4zM18 12h2v4h-2zM0 18h4v2H0zM6 18h4v2H6zM12 18h4v2h-4zM18 18h2v2h-2z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.ref-cta-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.ref-cta-box p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.ref-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--ref-white);
  color: var(--ref-primary);
  font-weight: 600;
  padding: 0.9rem 2.5rem;
  border-radius: var(--ref-radius-full);
  transition: var(--ref-transition);
  font-size: 1rem;
  box-shadow: var(--ref-shadow-md);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.ref-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--ref-shadow-lg);
  background-color: rgba(255, 255, 255, 0.9);
}

.ref-cta-button i {
  transition: transform 0.3s ease;
}

.ref-cta-button:hover i {
  transform: translateX(4px);
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1024px) {
  .ref-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .ref-page-title {
    font-size: 2rem;
  }
  
  .ref-hero-section {
    padding: 2.5rem 1.5rem;
  }
  
  .ref-hero-content h2 {
    font-size: 1.8rem;
  }
  
  .ref-content-section {
    padding: 2rem 1.5rem;
  }
  
  .ref-resource-list {
    grid-template-columns: 1fr;
  }
  
  .ref-cta-box {
    padding: 2.5rem 1.5rem;
  }
  
  .ref-section-header h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 576px) {
  .ref-page-title {
    font-size: 1.7rem;
  }
  
  .ref-grid {
    grid-template-columns: 1fr;
  }
  
  .ref-item {
    padding: 1.5rem;
  }
  
  .ref-cta-box h3 {
    font-size: 1.5rem;
  }
  
  .ref-section-header h2::after {
    width: 40px;
  }
} 