@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fredoka-v16-latin-regular.woff2') format('woff2');
  font-display: swap;
}

body {
    font-family: 'Fredoka', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to bottom, #ebf8ff, #ffffff);
    color: #2d3748;
    margin: 0;
    padding: 0;
  }
  a.surligne-dash {
    all: unset;
    text-decoration: none;
    color: #3b82f6 !important;
    font-weight: bold;
    border-bottom: 2px dashed #3b82f6 !important;
    cursor: help !important;
  }
  
  a.surligne-dash:hover {
    color: #1d4ed8 !important;
    border-bottom-color: #1d4ed8 !important;
  }
  
  header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .header-container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-container h1 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  nav a {
    margin-left: 1rem;
    color: #4b5563;
    text-decoration: none;
  }
  
  nav a:hover {
    color: #2563eb;
    text-decoration: underline;
  }
  
  .presentation {
    text-align: left;
    max-width: 800px;
    padding:0;
    margin: auto;
  }
  
  .presentation h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
  }
  
  .presentation p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  .presentation div {
    text-align:left;
  }
  .presentation-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: auto;
  }
  
  .presentation-text {
    flex: 1 1 300px;
  }
  
  .presentation-text h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 1rem;
  }
  
  .presentation-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #374151;
  }
  
  .presentation-image {
    flex: 1 1 300px;
    text-align: center;
  }
  
  .presentation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .start-button {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s;
  }
  
  .start-button:hover {
    background-color: #1e40af;
  }
  
  .matieres {
    background-color: white;
    padding: 2rem 1rem;
  }
  
  .matiere-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
  }
  
  .matiere-container h3 {
    font-size: 1.5rem;
    color: #2563eb;
    margin-bottom: 1.5rem;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  
  .matiere-card {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.3s;
  }
  
  .matiere-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  footer {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    padding: 2rem 1rem;
  }
  #classe::first-letter {
    text-transform: uppercase !important;
  }