:root {
  --fond: #ffffff;
  --alt: #f3f6f9;
  --texte: #262b30;
  --discret: #5b646d;
  --accent: #0b4a6f;
  --accent-clair: #e3edf4;
  --trait: #d5dde4;
  --lien: #1a5fd0;
  --police: "Roboto", "Segoe UI", Arial, sans-serif;
  --titres: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Menu fixe ---------- */
.entete {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 12px 40px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--trait);
}

.marque {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: 2px; }

nav a {
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--texte);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
nav a:hover { background: var(--accent-clair); }
nav a.actif { background: var(--accent); color: #fff; }
a:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }

/* ---------- Structure ---------- */
.section { padding: 96px 40px; }
.section.alt { background: var(--alt); }
.conteneur { max-width: 1100px; margin: 0 auto; }
.conteneur.etroit { max-width: 780px; }

h1, h2, h3 { font-family: var(--titres); color: var(--accent); line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 22px; }
h2 { font-size: 40px; margin-bottom: 36px; }
h3 { font-size: 21px; margin-bottom: 4px; }

p { text-align: justify; hyphens: auto; }
.meta { color: var(--discret); font-size: 15px; margin-bottom: 8px; text-align: left; }

/* ---------- Accueil ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 110px; }

.hero-grille {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: center;
}

.presentation p { margin-bottom: 12px; font-size: 16px; }
.presentation p:last-child { margin-bottom: 0; }

.carte-stage {
  padding: 36px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}
.carte-stage .grand {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
  text-align: left;
}
.carte-stage .detail { margin-bottom: 20px; text-align: left; color: #d8e8f2; }
.carte-stage .detail strong { color: #fff; font-size: 20px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips li {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  font-size: 14px;
}

.bouton {
  display: inline-block;
  padding: 11px 24px;
  background: #fff;
  color: var(--accent);
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
}
.bouton:hover { background: var(--accent-clair); }

/* ---------- Frise (formations, expériences) ---------- */
.frise { list-style: none; display: grid; gap: 22px; }

.frise li {
  display: grid;
  grid-template-columns: 150px 64px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: 8px;
}
.alt .frise li { border-color: transparent; }

.date {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  padding-top: 4px;
}

.logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--accent-clair);
  color: var(--accent);
  border-radius: 8px;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 20px;
  object-fit: contain;
}

.puces { margin: 10px 0 0 20px; }

/* ---------- Mindmap ---------- */
.mindmap {
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
}
.cote { display: grid; gap: 18px; }

.branche {
  position: relative;
  padding: 14px 18px;
  background: var(--alt);
  border: 1px solid var(--trait);
  border-radius: 8px;
}
.branche h3 { font-size: 19px; }
.branche p { text-align: left; font-size: 15px; }

.gauche .branche { margin-right: 52px; }
.droite .branche { margin-left: 52px; }
.gauche .branche::after, .droite .branche::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 52px;
  border-top: 2px solid var(--accent);
}
.gauche .branche::after { left: 100%; }
.droite .branche::before { right: 100%; }

.centre {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
}

/* ---------- Réalisations ---------- */
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.carte {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--alt);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
}
.carte .puces { margin-bottom: 14px; }

.preuve { margin-top: auto; color: var(--lien); font-weight: 500; }
.carte img.preuve { display: block; width: 110px; height: auto; }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: #fff; }
.contact h2 { color: #fff; }
.intro-contact { max-width: 620px; margin-bottom: 26px; color: #d8e8f2; }

.contacts { list-style: none; border-top: 1px solid rgba(255, 255, 255, .3); }
.contacts li {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}
.contacts span { color: #b7d0e1; }
.contacts a { color: #fff; }

/* ---------- Apparition progressive ---------- */
.anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.anim .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Écrans étroits ---------- */
@media (max-width: 900px) {
  .entete { padding: 10px 20px; }
  .section { padding: 80px 20px 56px; }
  .hero-grille { grid-template-columns: 1fr; gap: 32px; }
  .cartes { grid-template-columns: 1fr; }
  .mindmap { grid-template-columns: 1fr; gap: 18px; }
  .centre { order: -1; width: 150px; height: 150px; font-size: 20px; }
  .gauche .branche, .droite .branche { margin: 0; }
  .gauche .branche::after, .droite .branche::before { display: none; }
  .frise li { grid-template-columns: 64px 1fr; }
  .frise .date { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  h2 { font-size: 32px; }
  .contacts li { grid-template-columns: 1fr; }
}