:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --primary-light: #e6eef5;
    --accent-color: #ffd700;
    --text-color: #1f2937;
    --text-light: #f3f4f6;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
  }

  header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .search-container {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    max-width: 600px;
  }

  .search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
  }

  .search-container input:focus {
    border-color: var(--primary-color);
  }

  .search-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
  }

  .search-container button:hover {
    background-color: var(--primary-dark);
  }

  .breadcrumbs {
    display: flex;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
  }

  .breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 0.5rem;
  }

  .breadcrumbs span {
    margin-right: 0.5rem;
  }

  .section-title {
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 0.5rem;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
  }

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

  .card-description {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.875rem;
  }

  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: var(--transition);
  }

  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }

  .btn-primary:hover {
    background-color: var(--primary-dark);
  }

  .semester-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 0.5rem;
  }

  .semester-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }

  .semester-btn.active {
    background-color: var(--primary-color);
    color: var(--accent-color);
  }

  .semester-btn:hover {
    background-color: var(--primary-dark);
    color: var(--accent-color);
  }

  footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
  }

  /* Ajouts spécifiques pour les nouvelles couleurs */
  .card:hover .card-header {
    background-color: var(--primary-dark);
  }

  .btn-primary {
    border: 1px solid var(--accent-color);
  }

  .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
  }

  /* Animation pour l'accent doré */
  @keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
  }

  .card:hover {
    border: 1px solid var(--accent-color);
    animation: goldPulse 2s infinite;
  }

  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
    
    .cards-grid {
      grid-template-columns: 1fr;
    }
    
    .search-container {
      flex-direction: column;
    }
    
    .search-container input,
    .search-container button {
      width: 100%;
      border-radius: 0.5rem;
      margin-bottom: 0.5rem;
    }
  }