/* Thème minimaliste. Palette : rouge #C53030, corail #F56565, ardoise #2D3748, rose pâle #FFF5F5.
   Lisibilité : le corail (#F56565) n'a pas assez de contraste pour du texte sur fond clair,
   il ne sert qu'aux éléments décoratifs. Le texte utilise l'ardoise ou le rouge. */
:root {
  --red: #C53030;
  --red-dark: #9B2C2C;
  --coral: #F56565;
  --slate: #2D3748;
  --slate-soft: #4A5568;
  --blush: #FFF5F5;
  --white: #FFFFFF;
  --line: #F3D9D9;

  --font-title: "Fraunces", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1040px;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--blush);
  color: var(--slate);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--slate);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--slate);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus { top: 16px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 245, 245, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--slate);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--slate-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover { color: var(--red); }

/* ---------- Accueil ---------- */
.hero { padding: clamp(72px, 14vw, 160px) 0 clamp(64px, 10vw, 120px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--coral);
}

.hero__title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__lead {
  max-width: 38ch;
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.button {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.button:hover { background: var(--red-dark); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 10vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--coral);
  transform: translateY(-2px);
}

.card__index {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

/* Carte entièrement cliquable : le lien du titre s'étend sur toute la carte */
.card--link { position: relative; }

.card--link .card__title a {
  color: inherit;
  text-decoration: none;
}

.card--link .card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card__more {
  display: inline-block;
  margin-top: 20px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Pages de détail ---------- */
.nav a[aria-current="page"] { color: var(--red); }

.page-hero { padding: clamp(48px, 9vw, 104px) 0 clamp(56px, 8vw, 96px); }

.back-link {
  display: inline-block;
  color: var(--slate-soft);
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--red); }

.page-hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 24px;
}

.page-hero__lead {
  max-width: 52ch;
  font-size: 1.2rem;
  margin-bottom: 36px;
}

.page-hero__lead:last-child { margin-bottom: 0; }

/* Chiffres */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.stat--main {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.stat__value {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--slate-soft);
}

.stat--main .stat__label { color: var(--blush); }

.stats__heading {
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin: 0 0 16px;
}

.stats + .stats__heading,
.stats__note + .stats__heading { margin-top: 48px; }

.stats__note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--slate-soft);
}

/* Missions */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 48px;
}

.feature {
  border-top: 2px solid var(--coral);
  padding-top: 20px;
}

.feature__title,
.step__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Méthode */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 32px;
  max-width: 720px;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--red);
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.contact-list__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.contact-list a {
  font-family: var(--font-title);
  font-size: 1.35rem;
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

/* Formations */
.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}

.facts {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts li {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: var(--blush);
  border-radius: 10px;
  font-weight: 600;
}

.facts__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badges .badge { margin-bottom: 0; }

.badge--paused {
  background: var(--slate);
  color: var(--white);
}

.badge--soon {
  background: var(--blush);
  color: var(--red);
  border: 1px solid var(--line);
}

/* Boutons réseaux dans les tuiles blanches */
.stat {
  display: flex;
  flex-direction: column;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.stat__label + .social-button { margin-top: 20px; }

.social-button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.social-button:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Glow Up */
.prose { max-width: 62ch; margin-bottom: 56px; }

.prose__lead {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.35;
  margin-bottom: 20px;
}

.pillars {
  list-style: none;
  counter-reset: pillar;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.pillar {
  counter-increment: pillar;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  font-size: 1rem;
  color: var(--slate-soft);
}

.pillar::before {
  content: counter(pillar, decimal-leading-zero);
  display: block;
  font-family: var(--font-title);
  color: var(--red);
  margin-bottom: 10px;
}

.pillar__title {
  display: block;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 4px;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 32px;
}

.callout > div { flex: 1 1 360px; }

.callout__title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Partenaires */
.partner {
  display: flex;
  flex-direction: column;
}

.promo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  padding: 10px 10px 10px 16px;
  background: var(--blush);
  border: 1px dashed var(--coral);
  border-radius: 10px;
}

.promo__label {
  font-size: 0.85rem;
  color: var(--slate-soft);
}

.promo__code {
  flex: 1;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
}

.promo__copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--slate);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.promo__copy:hover { background: var(--red); }

.partner__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
}

.partner__link:hover { text-decoration: underline; }

.partner__note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--slate-soft);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.cta-row p {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.button--light {
  background: var(--white);
  color: var(--slate);
}

.button--light:hover {
  background: var(--blush);
  color: var(--red);
}

.section--dark p + .button { margin-top: 16px; }

.section--dark {
  background: var(--slate);
  color: var(--blush);
  border-top: 0;
}

.section--dark .section__title { color: var(--white); }

/* ---------- Champs à compléter ---------- */
.todo {
  color: var(--slate-soft);
  font-style: italic;
}

.section--dark .todo { color: #CBD5E0; }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--slate);
  color: #CBD5E0;
  font-size: 0.9rem;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sur mobile, les 4 liens passent sous le nom */
@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 4px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button { transition: none; }
  .card:hover { transform: none; }
  .card--link:hover { border-color: var(--coral); }
}
