/* ============================================================
   FORMULA EPF — Site web associatif
   Direction : sobre, technique, "fiche d'ingénierie".
   Palette : noir profond + rouge racing (cohérent avec logo officiel).
============================================================ */

:root {
  --bg:        #0A0A0B;
  --surface:   #131316;
  --surface-2: #1B1B1F;
  --line:      #2A2A2F;
  --line-soft: #1F1F23;
  --text:      #ECEAE3;
  --text-mute: #8A8A8E;
  --text-dim:  #5C5C60;
  --accent:    #E63946;   /* rouge motorsport, cohérent avec logo */
  --accent-dim:#A82731;
  --accent-soft:#F35968;
  --warn:      #FFB347;
  --ok:        #6EE7B7;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Familjen Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --pad:  clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- texture grille de fond ----------------------------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  position: relative;
  z-index: 1;
}

/* ---- typographies utilitaires --------------------------- */
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-mute); }
.mono--accent { color: var(--accent); }
.display { font-family: var(--font-display); font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; }

/* ============================================================
   NAVIGATION (commune à toutes les pages)
============================================================ */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
nav.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.logo-mark {
  display: inline-block;
  width: 14px; height: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}
.logo strong { color: var(--accent); font-weight: 700; }

nav.top ul {
  list-style: none;
  display: flex; gap: 2rem;
}
nav.top a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
nav.top a:hover, nav.top a.active { color: var(--accent); }
nav.top a.active { color: var(--text); }
nav.top a.active::before { content: "● "; color: var(--accent); }

.cta-nav {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
}
.cta-nav:hover { background: var(--accent); color: #fff; }

@media (max-width: 940px) {
  nav.top ul { display: none; }
}

/* ============================================================
   BOUTONS
============================================================ */
.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.6rem;
  text-decoration: none;
  border: 1px solid;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.7rem;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: transparent; color: var(--accent); }
.btn--ghost { color: var(--text); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   HERO (commun)
============================================================ */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-meta > div {
  background: var(--bg);
  padding: 1rem 1.2rem;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.hero-meta dd {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}
.hero-meta .live {
  color: var(--accent);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero-meta .live::before {
  content: ""; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-mini 1.8s ease-in-out infinite;
}
@keyframes pulse-mini { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 600; }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--text);
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-mute);
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.hero-lead strong { color: var(--text); font-weight: 500; }

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}

/* ============================================================
   SECTION GENERIC
============================================================ */
section.sec {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.sec-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  flex-wrap: wrap;
}
.sec-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sec-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-left: auto;
}

/* ============================================================
   GRILLES TEXTE GÉNÉRIQUES
============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.two-col p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}
.two-col p.muted { color: var(--text-mute); font-size: 1rem; }
.side-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.side-quote .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  display: block;
}
.side-quote blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ============================================================
   AVANCEMENT — checklist
============================================================ */
.advance-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.advance-list li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, padding 0.2s;
}
.advance-list li:hover { background: var(--surface); padding-left: 1rem; padding-right: 1rem; }
.advance-list .id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.advance-list .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: -0.01em;
}
.advance-list .label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text-mute);
  margin-top: 0.2rem;
  letter-spacing: 0;
}
.status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid;
  white-space: nowrap;
}
.status--done   { color: var(--ok);     border-color: var(--ok); }
.status--wip    { color: var(--accent); border-color: var(--accent); }
.status--todo   { color: var(--text-dim);border-color: var(--line); }
.status--planned{ color: var(--warn);   border-color: var(--warn); }

@media (max-width: 720px) {
  .advance-list li { grid-template-columns: 70px 1fr; }
  .advance-list .status { grid-column: 2; justify-self: start; }
}

/* ============================================================
   GRILLE DE CARTES (démarche, modules formation, etc.)
============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}
.card {
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.card:hover { background: var(--surface); }
.card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-mute);
  line-height: 1.55;
}
.card ul {
  list-style: none;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
}
.card ul li {
  padding: 0.35rem 0;
  border-top: 1px dashed var(--line);
}
.card ul li::before { content: "→ "; color: var(--accent); }

/* ============================================================
   PROJETS — cards de l'accueil
============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  min-height: 380px;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.project-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 50px; height: 4px;
  background: var(--accent);
}
.project-card .pc-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 1.5rem 1.8rem 0;
}
.project-card .pc-status .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.pc-status.live .dot { background: var(--ok); animation: pulse-mini 2s ease-in-out infinite; }
.pc-status.wip .dot  { background: var(--accent); animation: pulse-mini 2s ease-in-out infinite; }
.pc-status.early .dot{ background: var(--warn); }

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1;
  padding: 1rem 1.8rem 0.5rem;
}
.project-card .pc-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 1.8rem;
  margin-bottom: 1rem;
}
.project-card p {
  padding: 0 1.8rem;
  font-size: 0.96rem;
  color: var(--text-mute);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.project-card .pc-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.project-card:hover .pc-link {
  background: var(--accent);
  color: #fff;
}
.project-card .pc-link .arr { transition: transform 0.2s; }
.project-card:hover .pc-link .arr { transform: translateX(4px); }

/* ============================================================
   PÔLES (équipe)
============================================================ */
.poles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pole {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}
.pole::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--accent);
}
.pole .pole-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  display: block;
}
.pole h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.pole p {
  font-size: 0.93rem;
  color: var(--text-mute);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.pole .scope {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   BLOCS DESTACÉS
============================================================ */
.feature-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.feature-block::after {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(230,57,70,0.08), transparent 70%);
  pointer-events: none;
}
.feature-block .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}
.feature-block .big em { color: var(--accent); font-style: normal; }
.feature-block p {
  color: var(--text-mute);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.65;
}
.feature-block-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.feature-block-meta div .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.3rem;
}
.feature-block-meta div .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   SPONSORS — tiers
============================================================ */
.sponsor-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) { .sponsor-intro { grid-template-columns: 1fr; } }
.sponsor-intro p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}
.sponsor-intro p.muted { color: var(--text-mute); }
.sponsor-intro strong.hl { color: var(--accent); }

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.tier {
  border: 1px solid var(--line);
  padding: 2rem;
  position: relative;
  background: var(--bg);
  transition: all 0.25s;
}
.tier:hover { border-color: var(--accent); transform: translateY(-3px); }
.tier.featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tier .tier-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.tier h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.tier ul {
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.6;
}
.tier ul li {
  padding: 0.5rem 0;
  border-top: 1px solid currentColor;
  border-color: var(--line);
  opacity: 0.85;
}
.tier.featured ul li { border-color: rgba(255,255,255,0.2); opacity: 1; }
.tier ul li::before {
  content: "+ ";
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}
.tier.featured ul li::before { color: #fff; }

.why {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
}
.why h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.why-grid div .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
}
.why-grid div h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.why-grid div p {
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.contact h2 em { color: var(--accent); font-style: italic; font-weight: 600; }
.contact p { color: var(--text-mute); font-size: 1.05rem; max-width: 480px; }

.contact-list { list-style: none; }
.contact-list li {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  align-items: center;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .ckey {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.2rem;
  transition: all 0.2s;
}
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   FORMATION (formulaire d'inscription / modalités)
============================================================ */
.formation-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 3rem;
}
.formation-modal > div {
  background: var(--bg);
  padding: 1.6rem;
}
.formation-modal .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  display: block;
}
.formation-modal .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.formation-modal .sub {
  font-size: 0.9rem;
  color: var(--text-mute);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
footer .foot-block .ftitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  display: block;
}
footer .foot-block ul {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.8;
}
footer .foot-block a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 0.2s;
}
footer .foot-block a:hover { color: var(--accent); }
footer .legal {
  flex-basis: 100%;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .legal .mono { font-size: 0.7rem; color: var(--text-dim); }

/* ============================================================
   ANIMATIONS REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   THÈMES PAR PROJET
   La couleur d'accent par défaut (rouge motorsport) reste sur la
   page d'accueil. Chaque page projet active sa propre teinte via
   une classe sur <body>, ce qui repaint tout le site (CTA, badges,
   bordures, statuts, séparateurs, dot du logo, etc.) en une seule
   variable.
============================================================ */

/* Formula Student — Hi-vis chartreuse (course / sécurité / F1) */
body.theme-fs {
  --accent:     #D8FF3A;
  --accent-dim: #8AA024;
  --accent-soft:#E8FF73;
}

/* Caisse à savon — Orange route (descente / atelier / DIY) */
body.theme-caisse {
  --accent:     #FF7A45;
  --accent-dim: #B3522E;
  --accent-soft:#FF9C73;
}

/* Formation CAO — Cyan blueprint (CAO / technique / UI logiciel) */
body.theme-cao {
  --accent:     #3AD8FF;
  --accent-dim: #2796B3;
  --accent-soft:#73E3FF;
}

/* --- Ajustements lisibilité texte sur fond accent ------------
   Les boutons primaires utilisent du blanc sur l'accent rouge, mais
   le jaune et le cyan sont trop clairs : il faut du texte sombre.
   L'orange est entre les deux, on garde le blanc pour la cohérence.
============================================================ */
body.theme-fs  .btn--primary,
body.theme-fs  .btn--primary:hover,
body.theme-cao .btn--primary,
body.theme-cao .btn--primary:hover {
  color: #0A0A0B;
}
body.theme-fs  .btn--primary:hover,
body.theme-cao .btn--primary:hover {
  color: var(--accent);
}
body.theme-fs  .cta-nav:hover,
body.theme-cao .cta-nav:hover {
  color: #0A0A0B;
}
