/* ==========================================================================
   IFD Oran — Institut Formation Divers
   Système de design « plan technique »
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Couleurs de marque conservées */
  --navy: #1c1d59;
  --navy-deep: #101034;
  --blue: #495dba;
  /* Accent : le cyan du trait de plan */
  --cyan: #5fd4e4;
  --cyan-dim: #2ea6b8;

  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #14152e;
  --muted: #5a5d82;
  --muted-light: #8b8ea8;

  --line: rgba(28, 29, 89, 0.12);
  --line-strong: rgba(28, 29, 89, 0.24);
  --line-light: rgba(255, 255, 255, 0.14);

  --wa: #25d366;
  --wa-dark: #1da851;

  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Échelle typographique fluide */
  --t--1: 0.8125rem;
  --t-0: 1rem;
  --t-1: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --t-2: clamp(1.25rem, 0.9vw + 1.05rem, 1.5rem);
  --t-3: clamp(1.5rem, 1.8vw + 1.1rem, 2.125rem);
  --t-4: clamp(2rem, 3.4vw + 1.1rem, 3.25rem);
  --t-5: clamp(2.375rem, 5.2vw + 1rem, 4.5rem);

  /* Espacement */
  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 7rem;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 52, 0.06);
  --shadow: 0 4px 20px -6px rgba(16, 16, 52, 0.14);
  --shadow-lg: 0 18px 44px -14px rgba(16, 16, 52, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- 2. Reset ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video,
iframe { display: block; max-width: 100%; }

img,
video { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Accessibilité : focus toujours visible */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: var(--t--1);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- 3. Primitives de mise en page -------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

.band { padding-block: var(--s-6); }
.band-tight { padding-block: var(--s-5); }

.band-paper { background: var(--paper); }
.band-white { background: var(--white); }

.band-navy {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.86);
}
.band-navy h2,
.band-navy h3 { color: var(--white); }

/* Trame de plan technique — le substrat de la direction artistique */
.grid-bg {
  position: relative;
  isolation: isolate;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(95, 212, 228, 0.22) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 35%, transparent 100%);
}

/* --- 4. Étiquettes et filets ------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin: 0 0 var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow-light { color: var(--cyan); }

.lede {
  font-size: var(--t-1);
  color: var(--muted);
  max-width: 62ch;
}
.band-navy .lede { color: rgba(255, 255, 255, 0.72); }

.head { max-width: 40ch; }
.head-block { margin-bottom: var(--s-5); }

/* --- 5. Boutons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  --btn-bd: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  min-height: 50px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  font-family: var(--body);
  font-size: var(--t-0);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover { --btn-bd: var(--navy); }

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line-light);
}
.btn-ghost-light:hover {
  --btn-bd: var(--cyan);
  --btn-fg: var(--cyan);
}

.btn-cyan {
  --btn-bg: var(--cyan);
  --btn-fg: var(--navy-deep);
  --btn-bd: var(--cyan);
}

.btn-wa {
  --btn-bg: var(--wa);
  --btn-fg: #fff;
  --btn-bd: var(--wa);
}
.btn-wa:hover {
  --btn-bg: var(--wa-dark);
  --btn-bd: var(--wa-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.btn-ico { width: 19px; height: 19px; flex: none; fill: currentColor; }

/* --- 6. En-tête --------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 16, 52, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--white);
}

/* Le logo de l'institut est un JPEG à fond blanc, alors que l'en-tête et le
   pied de page sont bleu nuit. On le pose donc sur une pastille blanche, qui
   isole au passage sa palette or / vert / bleu de la charte bleu-cyan du
   site au lieu de la faire cohabiter de force. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 3px;
  background: var(--white);
  border-radius: 11px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.nav-link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(95, 212, 228, 0.12);
}

.hdr-cta { display: none; }

.burger {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line-light);
  border-radius: 11px;
  cursor: pointer;
}
.burger-bar {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}
.burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  display: none;
  padding: var(--s-2) 0 var(--s-4);
  border-top: 1px solid var(--line-light);
}
.drawer.is-open { display: block; }

.drawer-link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--t-1);
  font-weight: 500;
  text-decoration: none;
}
.drawer-link[aria-current="page"] { color: var(--cyan); }

.drawer-actions {
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-3);
}

/* --- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--s-6) var(--s-5);
}
.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  width: min(900px, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(73, 93, 186, 0.34) 0%, transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 2; }

.hero-title {
  font-size: var(--t-5);
  max-width: 22ch;
  margin-bottom: var(--s-3);
}
.hero-title em {
  font-style: normal;
  color: var(--cyan);
}

.hero-lede {
  font-size: var(--t-1);
  color: rgba(255, 255, 255, 0.74);
  max-width: 56ch;
  margin-bottom: var(--s-4);
}

/* Le « réglet » : l'amplitude réelle des durées du catalogue.
   Remplace la rangée de gros chiffres génériques. */
.ruler {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-light);
}
.ruler-cap {
  font-family: var(--mono);
  font-size: var(--t--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--s-4);
}
.ruler-track {
  position: relative;
  height: 46px;
  border-bottom: 1px solid rgba(95, 212, 228, 0.45);
}
.ruler-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 11px;
  background: rgba(95, 212, 228, 0.5);
}
.ruler-tick[data-major] {
  height: 24px;
  width: 1.5px;
  background: var(--cyan);
}
.ruler-val {
  position: absolute;
  bottom: 30px;
  left: 0;
  font-family: var(--mono);
  font-size: var(--t-2);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  white-space: nowrap;
}
.ruler-tick[data-align="end"] .ruler-val {
  left: auto;
  right: 0;
}
.ruler-legend {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  color: rgba(255, 255, 255, 0.5);
}
.ruler-legend span:last-child { text-align: right; }

/* --- 8. Catalogue ------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--s-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  min-height: 42px;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease),
    color 0.16s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.chip-n {
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

.cards {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.card.is-hidden { display: none; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}

.card-cat {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 0.2rem;
}

/* La signature : le badge d'heures */
.hours {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  flex: none;
  padding: 0.4rem 0.7rem;
  background: var(--navy);
  border-radius: 9px;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  line-height: 1;
}
.hours-n { font-size: 1.0625rem; }
.hours-u { font-size: 0.75rem; opacity: 0.8; }

.hours-tbd {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--muted-light);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.6rem;
}

.card-name {
  font-size: var(--t-1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.card-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.card-go svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.18s var(--ease);
}
.card-go:hover { color: var(--blue); }
.card-go:hover svg { transform: translateX(3px); }

.empty {
  display: none;
  padding: var(--s-5) var(--s-3);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.empty.is-shown { display: block; }

/* --- 9. Atouts --------------------------------------------------------- */
.perks {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 1fr;
}

.perk {
  padding: var(--s-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.perk-ico {
  width: 26px; height: 26px;
  margin-bottom: var(--s-2);
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perk-title {
  font-size: var(--t-1);
  margin-bottom: 0.35rem;
}
.perk-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

/* --- 10. Contact ------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}

.info-list { display: grid; gap: var(--s-1); }

.info {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.info:hover {
  border-color: var(--blue);
  transform: translateX(2px);
}
.info-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--paper);
  border-radius: 11px;
}
.info-ico svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.info-v {
  font-size: var(--t-0);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hours-table {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row span:first-child { color: var(--muted); }
.hours-row span:last-child {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.slot {
  display: grid;
  place-items: center;
  padding: var(--s-5) var(--s-3);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--t--1);
  line-height: 1.7;
}

/* --- 11. Formulaire ---------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 0.4rem; }
.field-2 { grid-column: 1 / -1; }

.label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.label-req { color: var(--cyan-dim); }
.hint {
  font-size: 0.8125rem;
  color: var(--muted-light);
}

.input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: var(--t-0);
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.input:hover { border-color: var(--line-strong); }
.input:focus {
  background: var(--white);
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(73, 93, 186, 0.16);
}
textarea.input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235A5D82' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.radio-set {
  display: grid;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.radio-legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.2rem;
}
.radio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: border-color 0.16s var(--ease);
}
.radio:hover { border-color: var(--line-strong); }
.radio input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.radio:has(input:checked) {
  border-color: var(--blue);
  background: var(--white);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Retour après envoi */
.form-done {
  display: none;
  grid-column: 1 / -1;
  padding: var(--s-3);
  background: rgba(37, 211, 102, 0.09);
  border: 1.5px solid rgba(37, 211, 102, 0.42);
  border-radius: 11px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.form-done.is-shown { display: block; }

/* --- 11b. Étapes (une vraie séquence : la numérotation informe) --------- */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 0 var(--s-4) var(--s-4);
  border-left: 1px solid var(--line-strong);
  counter-increment: step;
}
.step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.15rem;
  left: 0;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: var(--cyan);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.step-title {
  font-size: var(--t-1);
  margin: 0.3rem 0 0.35rem;
}
.step-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Encadré latéral */
.aside-card {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-h {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin: 0 0 var(--s-2);
}

/* --- 11c. Prose (à propos, politique) ---------------------------------- */
.prose {
  max-width: 68ch;
  font-size: var(--t-1);
  line-height: 1.72;
  color: var(--muted);
}
.prose > * + * { margin-top: var(--s-3); }
.prose h2 {
  font-size: var(--t-3);
  color: var(--ink);
  margin-top: var(--s-5);
}
.prose h3 {
  font-size: var(--t-2);
  color: var(--ink);
  margin-top: var(--s-4);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul {
  display: grid;
  gap: 0.6rem;
  padding-left: 0;
}
.prose li {
  position: relative;
  padding-left: 1.4rem;
}
.prose li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0.15rem;
  width: 6px; height: 6px;
  background: var(--cyan-dim);
  border-radius: 50%;
}

/* Chiffres clés */
.stats {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-n {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  line-height: 1;
}
.stat-k {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

/* --- 12. Pied de page -------------------------------------------------- */
.ftr {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.66);
  padding-block: var(--s-5) var(--s-3);
  font-size: 0.9375rem;
}
.ftr-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-light);
}
.ftr-h {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 var(--s-2);
}
.ftr-list { display: grid; gap: 0.55rem; }
.ftr-list a,
.ftr a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.ftr-list a:hover,
.ftr a:hover {
  color: var(--white);
  text-decoration: underline;
}

.social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--s-2);
}
.social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 11px;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.social a:hover {
  border-color: var(--cyan);
  background: rgba(95, 212, 228, 0.1);
}
.social svg { width: 18px; height: 18px; fill: rgba(255, 255, 255, 0.8); }

.ftr-btm {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  justify-content: space-between;
  padding-top: var(--s-3);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- 13. Barre d'action mobile ---------------------------------------- */
.dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem var(--s-3) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.dock .btn {
  min-height: 48px;
  padding-inline: 0.9rem;
  font-size: 0.9375rem;
}
body { padding-bottom: 5.25rem; }

/* --- 14. Points de rupture -------------------------------------------- */
.split { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .field-1 { grid-column: span 1; }
}

@media (min-width: 900px) {
  :root { --s-6: 5.5rem; }
  .wrap { padding-inline: var(--s-4); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .split { grid-template-columns: 1fr 1.45fr; gap: var(--s-5); align-items: start; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .dock { display: none; }
  body { padding-bottom: 0; }
  .hero { padding-block: var(--s-7) var(--s-6); }
}

/* La nav compte 6 entrées : « Institut Formation Divers » (247 px) plus les
   liens (611 px) demandent 1083 px avec le bouton S'inscrire. On bascule donc
   la nav horizontale à 1024 px, et le bouton n'apparaît qu'une fois le
   conteneur à sa largeur maximale. En dessous, le menu déroulant prend le
   relais : il contient déjà S'inscrire et WhatsApp. */
@media (min-width: 1024px) {
  .nav { display: block; }
  .burger { display: none; }
  .drawer { display: none !important; }
}

@media (min-width: 1100px) {
  .cards { gap: var(--s-3); }
}

@media (min-width: 1180px) {
  .hdr-cta { display: inline-flex; }
}

[dir="rtl"] { direction: rtl; }
[dir="rtl"] .nav-list { flex-direction: row-reverse; justify-content: flex-start; }
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .btn-row { flex-direction: row-reverse; justify-content: center; }
[dir="rtl"] .ruler-track { direction: ltr; }
