:root {
  --navy: #10243a;
  --blue: #245b82;
  --sky: #eaf5fb;
  --mint: #d8f2e7;
  --gold: #f3bd59;
  --ink: #172a3a;
  --muted: #5c6c79;
  --paper: #fbfcfd;
  --line: #dce5eb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(16, 36, 58, 0.10);
  --radius: 22px;
  --max: 1120px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: #145c88;
  text-underline-offset: 3px;
}

a:hover {
  color: #0b3856;
}

img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

/* Accessibilité */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  padding: 0.7rem;
  z-index: 9;
}

/* Barre supérieure */
.topbar {
  background: var(--navy);
  color: #eaf5fb;
  font-size: 0.9rem;
}

.topbar .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar a {
  color: #fff;
}

/* Navigation */
.bar-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
}

.bar-navigation a {
  display: block;
  flex: 0 0 auto;
  padding: 9px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.bar-navigation a:hover,
.bar-navigation a:focus {
  background: #fff;
  color: var(--navy);
  outline: none;
}

/* Hero : en-tête principal */
header.hero {
  background: var(--navy);
  color: white;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-inner > div {
  text-align: left;
}

.hero-inner img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #f7ca75;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin: 0.8rem 0 1.2rem;
  max-width: 720px;
}

.hero p {
  font-size: 1.12rem;
  color: #e2edf4;
  max-width: 620px;
}

.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  background: var(--gold);
  color: #14283b;
  text-decoration: none;
  font-weight: 800;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
}

.hero .cta:hover {
  background: #ffcf78;
}

.hero-art {
  width: 100%;
  max-width: 500px;
  justify-self: center;
  filter: drop-shadow(0 18px 25px rgba(0, 0, 0, 0.18));
}

/* Contenu principal */
main {
  max-width: var(--max);
  margin: auto;
  padding: 0 1.25rem 4rem;
}

/* Statistiques */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: -1.5rem;
  position: relative;
}

.stat {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 1.25rem;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 1.75rem;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections et titres */
section {
  padding-top: 4.25rem;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  margin: 0.55rem 0 1rem;
  color: var(--navy);
}

.intro {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.06rem;
}

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 8px 28px rgba(16, 36, 58, 0.045);
}

.icon {
  width: 54px;
  height: 54px;
  background: var(--sky);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.icon svg {
  width: 32px;
  height: 32px;
}

h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.65rem;
  color: var(--navy);
}

.card p {
  margin: 0.3rem 0;
  color: var(--muted);
}

/* Mise en page en deux colonnes */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.art-panel {
  background: linear-gradient(145deg, #eaf5fb, #d8f2e7);
  border-radius: var(--radius);
  padding: 1.2rem;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.art-panel svg {
  width: 100%;
  max-width: 430px;
  height: auto;
}

/* Liste de vérification */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0;
}

.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--mint);
  color: #145a43;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* Programme par semaine */
.plan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.week {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
}

.week:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold);
}

.week .number {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 850;
}

.week h3 {
  margin: 0.55rem 0;
}

.week p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Routine */
.routine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.routine-item {
  padding: 1rem;
  border-radius: 16px;
  background: var(--navy);
  color: white;
}

.routine-item b {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
}

.routine-item span {
  font-size: 0.92rem;
  color: #e2edf4;
}

/* Matières */
.subjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.subject {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.subject b {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.subject span {
  display: block;
  color: var(--muted);
  font-size: 0.87rem;
  margin-top: 0.25rem;
}

/* Encadré d'information */
.callout {
  margin-top: 1.5rem;
  background: #fff7e7;
  border: 1px solid #f2d89d;
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
}

.callout strong {
  color: #664710;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

summary {
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

details p {
  color: var(--muted);
  margin: 0.8rem 0 0.1rem;
}

/* Sources */
.sources {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Pied de page */
footer {
  background: var(--navy);
  color: #e2edf4;
  padding: 2.5rem 1.25rem;
}

footer .inner {
  max-width: var(--max);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

footer a {
  color: #f7ca75;
}

.fine {
  font-size: 0.86rem;
  color: #b9cbd8;
  max-width: 700px;
}

/* Tablettes */
@media (max-width: 800px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 3.5rem;
  }

  .hero-art {
    max-width: 390px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan,
  .routine {
    grid-template-columns: repeat(2, 1fr);
  }

  .subjects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobiles */
@media (max-width: 520px) {
  .stats,
  .cards,
  .plan,
  .routine,
  .subjects {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 1rem;
  }

  .hero-inner {
    padding: 3rem 1rem;
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section {
    padding-top: 3rem;
  }
}

/* Respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}