/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* VARIABLE COULEUR (IMPORTANT) */
:root {
  --main-blue: #0071e3;
  --blue-hover: #005bb5;
}

/* BODY */
body {
  background: linear-gradient(to bottom, #f5f7fa, #e4ecf5);
  color: #1d1d1f;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
}

.logo span {
  font-weight: 600;
}

/* NAV */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #1d1d1f;
}

nav a:hover {
  color: var(--main-blue);
}

/* HERO */
.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.8rem;
}

.hero p {
  margin-top: 15px;
  color: #6e6e73;
}

/* BOUTON */
.btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--main-blue);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--blue-hover);
}

/* 🔥 BOUTON RETOUR (FIX COMPLET) */
.back-btn {
  display: inline-block;
  margin: 20px 40px;
  padding: 10px 20px;
  background: var(--main-blue);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  z-index: 10;
  position: relative;
}

.back-btn:hover {
  background: var(--blue-hover);
}

/* 📦 SECTION CONTENU (FIX ALIGNEMENT) */
.section {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* TITRES */
.section h2 {
  margin-bottom: 20px;
  color: var(--main-blue);
}

/* LISTE PROPRE */
.section ul {
  list-style: none;
}

.section li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.section li:last-child {
  border-bottom: none;
}

/* CARDS PAGE ACCUEIL */
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 260px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-10px);
}

.icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  color: #6e6e73;
}
