:root {
  --primary: #05668d;
  --accent: #02c39a;
  --light: #f8f9fa;
  --dark: #343a40;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: var(--light);
  color: var(--dark);
}

header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.search-bar {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.search-bar input {
  width: 80%;
  max-width: 600px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.category-filter {
  text-align: center;
  padding-bottom: 1rem;
}

.category-filter button {
  margin: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  background-color: var(--accent);
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.category-filter button.active,
.category-filter button:hover {
  background-color: #028b74;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  color: #555;
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: #f0f0f0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: bold;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.hidden {
  display: none;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem;
  background-color: var(--primary);
  color: white;
  flex-wrap: wrap;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 50px;
  filter: brightness(0) invert(1); /* rend le logo blanc */
}
