@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;600&family=JetBrains+Mono&display=swap");

body {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  background-color: #f0e4ff;
  color: #1a1025;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

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;
}

section {
  background: linear-gradient(135deg, #f0e4ff 0%, #e8d5ff 50%, #fce4ec 100%);
  width: 100%;
}

.container {
  padding: 80px 60px;
}

.container h1 {
  font-weight: 800;
  color: #1a1025;
  margin-bottom: 16px;
  line-height: 1.3;
}

.container p {
  color: #6b5b7b;
  margin-bottom: 32px;
}

.bouttons {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

button.inscrire {
  background-color: #9b59d4;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(155, 89, 212, 0.3);
  transition: all 0.2s;
}

button.inscrire:hover {
  background-color: #7d3db8;
  box-shadow: 0 8px 40px rgba(155, 89, 212, 0.18);
}

button.decouvrir {
  background: transparent;
  color: #9b59d4;
  border: 2px solid #9b59d4;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

button.decouvrir:hover {
  background-color: #f0e4ff;
}

.feature-icons {
  display: flex;
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(155, 89, 212, 0.1);
  flex: 1;
}

.icone-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.icone-cours {
  background-color: #f0e4ff;
  color: #9b59d4;
  font-size: 25px;
}

.icone-defis {
  background-color: #ffe0e0;
  color: #ff6b6b;
  font-size: 25px;
}

.icone-badges {
  background-color: #fff8d6;
  color: #ffd93d;
  font-size: 25px;
}

.feature-icons h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.feature-icons p {
  font-size: 12px;
  color: #6b5b7b;
  margin: 0;
}

.cours-carte {
  background-color: #fdf6ff;
  padding: 50px 60px;
}

.cours-carte h3 {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b5b7b;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.grille-cours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.carte {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(155, 89, 212, 0.07);
  transition: box-shadow 0.2s;
}

.carte:hover {
  box-shadow: 0 6px 24px rgba(155, 89, 212, 0.15);
}

.carte-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.carte-header h4 {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge.facile {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge.moyen {
  background-color: #fff8e1;
  color: #f57f17;
}

.badge.difficile {
  background-color: #ffebee;
  color: #c62828;
}

.carte-info {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.stars {
  color: #ffd93d;
  font-size: 13px;
}

.lecons {
  font-size: 12px;
  color: #6b5b7b;
}

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;
}

button.commencer:hover {
  background-color: #9b59d4;
  color: white;
}

.username-nav {
  font-size: 13px;
  color: #9b59d4;
  font-weight: 600;
  margin-right: 12px;
}

footer {
  background-color: #1a1025;
  color: #6b5b7b;
  text-align: center;
  padding: 20px;
}

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: white;
  box-shadow: 0 2px 16px rgba(155, 89, 212, 0.08);
  z-index: 10;
}

.entete .logo {
  font-weight: 800;
  font-size: 22px;
  color: #9b59d4;
  text-decoration: none;
}

.entete .bouton-sinscire {
  font-size: 13px;
  font-weight: 700;
  background: #9b59d4;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.entete .bouton-sinscire:hover {
  background: #7d3db8;
}

.conteneur-double {
  flex: 1;
  display: flex;
}

.panneau-gauche {
  width: 50%;
  min-height: 100vh;
  background: linear-gradient(
    145deg,
    #1a0533 0%,
    #2d1060 40%,
    #3d1a80 70%,
    #1a0a3d 100%
  );
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 56px 52px;
  overflow: hidden;
}

.panneau-gauche::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 5%;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(155, 89, 212, 0.35) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.panneau-gauche::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 200, 255, 0.15);
  pointer-events: none;
}

.contenu-gauche {
  position: relative;
  z-index: 1;
}

.contenu-gauche .logo-hero {
  font-weight: 800;
  font-size: 28px;
  color: white;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.contenu-gauche h2 {
  font-weight: 800;
  font-size: 28px;
  color: white;
  line-height: 1.25;
  margin-bottom: 14px;
}

.contenu-gauche .description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
  line-height: 1.6;
}

.description-gauche {
  font-weight: 800;
  font-size: 28px;
  color: white;
  line-height: 1.25;
  margin-bottom: 14px;
}

.panneau-gauche h1,
.panneau-gauche h2,
.panneau-gauche p,
.panneau-gauche strong {
  color: white;
}

.panneau-gauche span {
  color: rgba(255, 255, 255, 0.6);
}

.contenu-gauche ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contenu-gauche ul li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contenu-gauche ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b59d4;
  flex-shrink: 0;
}

.etapes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.etape {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rond-icone {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #9b59d4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.panneau-droit {
  flex: 1;
  min-height: 100vh;
  background: #f9f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.boite-formulaire {
  width: 100%;
  max-width: 400px;
}

.boite-formulaire h1 {
  font-weight: 800;
  font-size: 26px;
  color: #1a1025;
  margin-bottom: 6px;
  line-height: 1.2;
}

.boite-formulaire .sous-titre {
  font-size: 13px;
  color: #6b5b7b;
  margin-bottom: 28px;
}

.boite-formulaire .sous-titre a {
  color: #9b59d4;
  text-decoration: none;
  font-weight: 600;
}

.boite-formulaire label {
  font-size: 12px;
  font-weight: 600;
  color: #4a3a5a;
  margin-bottom: 6px;
  display: block;
}

.boite-formulaire input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0d0f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1a1025;
  background: white;
  margin-bottom: 18px;
  outline: none;
  transition: border-color 0.2s;
}

.boite-formulaire input:focus {
  border-color: #9b59d4;
}

.prenom-nom {
  display: flex;
  gap: 14px;
}

.prenom-nom .groupe-champ {
  flex: 1;
}

.lien-oubli {
  font-size: 12px;
  color: #9b59d4;
  text-align: right;
  display: block;
  margin-top: -12px;
  margin-bottom: 22px;
  text-decoration: none;
}

.bouton-connexion {
  width: 100%;
  padding: 13px;
  background: #9b59d4;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.bouton-connexion:hover {
  background: #7d3db8;
  box-shadow: 0 6px 20px rgba(155, 89, 212, 0.3);
}

.cgu {
  font-size: 11px;
  color: #9b8aaa;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.cgu a {
  color: #9b59d4;
  text-decoration: none;
}

.puzzle-grille {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 2px;
  width: 306px;
  margin: 10px 0;
}

.morceau-puzzle {
  width: 100px;
  height: 100px;
  cursor: pointer;
  border: 1px solid #ccc;
}

.morceau-puzzle.selectionne {
  border: 2px solid purple;
}

.puzzle-grille.resolu {
  border: 2px solid green;
}
