@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;600&display=swap");

body {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  background-color: #f0e4ff;
  color: #1a1025;
}

h1,
h2,
h3,
h4,
nav,
button {
  font-family: "Syne", sans-serif;
}

nav {
  display: flex;
  align-items: center;
  padding: 20px 36px;
  background-color: white;
  box-shadow: 0 4px 24px rgba(155, 89, 212, 0.1);
}

.navbar-brand {
  font-weight: 800;
  color: #9b59d4;
  margin: 0 40px 0 40px;
}

.nav {
  gap: 30px;
  font-size: 13px;
}

.nav-link {
  color: #6b5b7b !important;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #9b59d4 !important;
}

button.connexion {
  color: #9b59d4;
  font-size: 13px;
  border: 2px solid #9b59d4;
  background: transparent;
  margin-right: 15px;
  padding: 10px 22px;
  border-radius: 8px;
  transition: all 0.2s;
}

button.connexion:hover {
  background-color: #9b59d4;
  color: white;
}

footer {
  background-color: #1a1025;
  color: #6b5b7b;
  text-align: center;
  padding: 20px;
}

.bandeau-cours {
  background: linear-gradient(135deg, #f0e4ff 0%, #e8d5ff 50%, #fce4ec 100%);
  padding: 36px 60px;
  width: 100%;
}

.bandeau-contenu h1 {
  font-weight: 800;
  font-size: 32px;
  color: #1a1025;
  margin-bottom: 6px;
}

.bandeau-contenu p {
  font-size: 14px;
  color: #6b5b7b;
  margin: 0;
}

.zone-cours {
  padding: 32px 60px;
  background: #f9f4ff;
}

.filtres {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.filtre {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid #d8c0f0;
  background: transparent;
  color: #6b5b7b;
  cursor: pointer;
  transition: all 0.2s;
}

.filtre:hover {
  background: #f0e4ff;
  color: #9b59d4;
}

.filtre.actif {
  background: #9b59d4;
  color: white;
  border-color: #9b59d4;
}

.grille-liste-cours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.carte-cours {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(155, 89, 212, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.carte-cours:hover {
  box-shadow: 0 8px 28px rgba(155, 89, 212, 0.18);
  transform: translateY(-3px);
}

.carte-banniere {
  padding: 22px 24px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.carte-banniere h2 {
  font-family: "Syne", sans-serif;  a
  font-weight: 800;
  font-size: 26px;
  color: white;
  margin: 0;
}
.banniere-html {
  background: linear-gradient(135deg, #f857a6, #ff5858);
}
.banniere-css {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.banniere-php {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.banniere-sql {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}
.banniere-algo {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.banniere-reseaux {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.carte-corps {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.carte-corps p {
  font-size: 13px;
  color: #6b5b7b;
  line-height: 1.5;
  margin: 0;
}

.carte-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #ffd93d;
  font-size: 13px;
}

.lecons {
  font-size: 12px;
  color: #6b5b7b;
}

.duree {
  font-size: 12px;
  color: #6b5b7b;
}

.niveau {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content !important;
}

.niveau.facile {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.niveau.moyen {
  background-color: #fff8e1;
  color: #f57f17;
}

.niveau.difficile {
  background-color: #ffebee;
  color: #c62828;
}

button.commencer {
  font-size: 11px;
  background: transparent;
  color: #9b59d4;
  border: 1.5px solid #9b59d4;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  width: auto;  ← ajoute ça
}

button.commencer:hover {
  background-color: #9b59d4;
  color: white;
}
