/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════════════
   TOKENS — identiques à la homepage
═══════════════════════════════════════════════ */
:root {
  --night:      #0B1F2A;
  --deep:       #0A0F14;
  --light:      #F3F4F6;
  --white:      #FFFFFF;
  --text:       #111827;
  --mid:        #6B7280;
  --gold:       #C2A878;

  --b:          rgba(107,114,128,0.13);
  --b-dk:       rgba(255,255,255,0.065);
  --b-gold:     rgba(194,168,120,0.35);
  --b-gold-dim: rgba(194,168,120,0.15);

  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --s: 8rem;
}

/* ═══════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════ */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ═══════════════════════════════════════════════
   COMPOSANTS PARTAGÉS
═══════════════════════════════════════════════ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}
.label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.label.dim         { color: var(--mid); }
.label.dim::before { background: var(--mid); }

.h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}
.h2.on-dark  { color: var(--white); }
.h2.centered { text-align: center; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.6rem;
  border: 1px solid;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  cursor: pointer;
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.22);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.btn-outline-gold {
  border-color: var(--b-gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.btn-ghost {
  border-color: var(--b);
  color: var(--mid);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-dk {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.75);
  background: transparent;
}
.btn-dk:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: var(--white); }

/* ═══════════════════════════════════════════════
   NAV — identique homepage
═══════════════════════════════════════════════ */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  height: 62px;
  display: flex;
  align-items: center;
  background: rgba(10,15,20,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--b-dk);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-cta {
  color: var(--gold);
  border: 1px solid var(--b-gold);
  padding: 0.5rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover { background: var(--gold); color: var(--deep); }

/* ═══════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════ */
.breadcrumb {
  position: relative;
  z-index: 2;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3.5rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.18s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(194,168,120,0.35); font-size: 0.55rem; }
.breadcrumb .current { color: rgba(194,168,120,0.65); }

/* ═══════════════════════════════════════════════
   HERO — compact (pas full-height)
═══════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: var(--night);
  overflow: hidden;
  padding: 11rem 0 7rem;
}

/* Lignes verticales */
.page-hero-vlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
}
.page-hero-vlines span {
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(194,168,120,0.07);
}

.hero-bg-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.page-hero-ref {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(194,168,120,0.55);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.page-hero-ref::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--b-gold);
  display: block;
  flex-shrink: 0;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.page-hero h1 span { display: block; }
.page-hero h1 em { font-style: normal; color: var(--gold); }

.hero-rule { width: 48px; height: 1px; background: var(--gold); margin-bottom: 2rem; }

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  font-weight: 400;
  max-width: 600px;
}

/* ═══════════════════════════════════════════════
   SECTION — CADRAGE (fond gris clair)
═══════════════════════════════════════════════ */
.s-cadrage {
  background: var(--light);
  padding: 5rem 0;
  position: relative;
  border-bottom: 1px solid var(--b);
}
.cadrage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cadrage-text .h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1.5rem;
  margin-top: 0.75rem;
}
.cadrage-text p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.82;
  font-weight: 400;
}
.cadrage-text p + p { margin-top: 1rem; }

/* Bloc note positionnement */
.cadrage-note {
  border: 1px solid var(--b);
  background: var(--white);
  padding: 2.5rem 2.2rem;
  position: relative;
}
.cadrage-note::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 44px;
  background: var(--gold);
}
.cadrage-note-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.25rem;
}
.cadrage-note p {
  font-size: 0.97rem;
  color: #374151;
  line-height: 1.78;
  font-weight: 400;
}
.cadrage-note strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════
   SECTION — FORMATIONS (fond blanc)
═══════════════════════════════════════════════ */
.s-formations {
  background: var(--white);
  padding: var(--s) 0;
}
.formations-head {
  margin-bottom: 5rem;
}
.formations-head .h2 { max-width: 560px; }

/* Grille formations : 3 blocs */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b);
  border: 1px solid var(--b);
}

/* Bloc formation */
.formation-card {
  background: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Bandeau couleur en haut — premier bloc mis en avant */
.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--b);
}
.formation-card.featured::before {
  background: var(--gold);
}

.fc-header {
  padding: 2.6rem 2.4rem 2rem;
  border-bottom: 1px solid var(--b);
}
.fc-index {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.fc-index::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--b-gold-dim);
}
.fc-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.fc-subtitle {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.45;
}

/* Métadonnées format */
.fc-meta {
  padding: 1.6rem 2.4rem;
  border-bottom: 1px solid var(--b);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fc-meta-item {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.fc-meta-key {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  flex-shrink: 0;
  width: 6rem;
}
.fc-meta-val {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

/* Corps — objectif + description */
.fc-body {
  padding: 2rem 2.4rem;
  flex: 1;
  border-bottom: 1px solid var(--b);
}
.fc-obj-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.fc-obj {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}
.fc-rule {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.2rem;
}
.fc-desc {
  font-size: 0.93rem;
  color: #374151;
  line-height: 1.76;
  font-weight: 400;
}

/* Footer — CTA */
.fc-footer {
  padding: 1.8rem 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.fc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  border: 1px solid var(--b);
  padding: 0.7rem 1.2rem;
}
.fc-cta:hover { color: var(--text); border-color: rgba(107,114,128,0.3); }
.fc-cta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
/* CTA featured — couleur or */
.formation-card.featured .fc-cta {
  color: var(--gold);
  border-color: var(--b-gold);
}
.formation-card.featured .fc-cta:hover {
  background: var(--gold);
  color: var(--deep);
}

/* ═══════════════════════════════════════════════
   SECTION — SUR MESURE (fond bleu nuit)
═══════════════════════════════════════════════ */
.s-mesure {
  background: var(--night);
  padding: var(--s) 0;
  position: relative;
  overflow: hidden;
}
.mesure-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mesure-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.mesure-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.mesure-text .h2 { margin-bottom: 2rem; margin-top: 0.75rem; }

.mesure-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.82;
  font-weight: 400;
}
.mesure-text p + p { margin-top: 1rem; }

/* Liste de critères */
.mesure-criteria {
  margin-top: 2rem;
  border-top: 1px solid var(--b-dk);
}
.mesure-criterion {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--b-dk);
}
.mc-dash {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.mc-text {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  line-height: 1.55;
}

/* Bloc CTA droite */
.mesure-cta-bloc {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--b-dk);
  position: relative;
}
.mesure-cta-bloc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.mesure-cta-header {
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 1px solid var(--b-dk);
}
.mesure-cta-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(194,168,120,0.55);
  margin-bottom: 1.2rem;
}
.mesure-cta-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.mesure-cta-body {
  padding: 2rem 2.5rem;
}
.mesure-cta-body p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════
   RETOUR SITE — bandeau discret
═══════════════════════════════════════════════ */
.s-retour {
  background: var(--deep);
  padding: 2.5rem 0;
  border-top: 1px solid var(--b-dk);
}
.retour-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.retour-text {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--deep);
  border-top: 1px solid var(--b-dk);
  padding: 2.75rem 0;
  position: relative;
  overflow: hidden;
}
.footer-sig { position: absolute; inset: 0; pointer-events: none; }
.footer-sig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.footer-links { display: flex; gap: 2.5rem; }
.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════════ */
.btt {
  position: fixed;
  bottom: 2.2rem;
  right: 2.2rem;
  z-index: 400;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,20,0.88);
  border: 1px solid rgba(194,168,120,0.32);
  color: #C2A878;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s, border-color 0.2s;
}
.btt:hover { background: #C2A878; border-color: #C2A878; color: #0A0F14; }
.btt.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fup {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero-ref  { animation: fup 0.7s  ease both; }
.page-hero h1   { animation: fup 0.72s ease both 0.1s; }
.hero-rule      { animation: fup 0.7s  ease both 0.2s; }
.page-hero-sub  { animation: fup 0.7s  ease both 0.28s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 980px) {
  :root { --s: 6rem; }
  .cadrage-inner { grid-template-columns: 1fr; gap: 3rem; }
  .formations-grid { grid-template-columns: 1fr; }
  .mesure-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .retour-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}
@media (max-width: 640px) {
  :root { --s: 4.5rem; }
  .wrap { padding: 0 1.5rem; }
  .page-hero-vlines { display: none; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-row { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
}