:root {
  --color-accent: #0fb03f;
  --color-accent-hover: #0cb042;
  --border-radius: 8px;
  --transition: 0.2s ease;
  --content-bottom-gap: 56px;
  --anim-gap: 48px;          /* espace au-dessus et en dessous de l’animation */
  --train-anim-height: 140px;/* hauteur visible de l’animation */
  --stack-green: #94e21c;
  --stack-dark: #4a4a4a;
  --stack-light: #e9e9e9;

  /* Core palette */
  --bg-body: #0f172a;            /* deep slate */
  --text-primary: #111827;       /* near-black */
  --text-muted: #475569;         /* slate-500 */
  --surface: #ffffff;            /* cards/surfaces */
  --surface-muted: #f8fafc;      /* slate-50 */
  --border-color: #e5e7eb;       /* gray-200 */

  /* Accent (green) */
  --color-accent: #16a34a;       /* emerald-600 */
  --color-accent-hover: #22c55e; /* emerald-500 */

  /* Stacked buttons tints */
  --stack-primary: var(--color-accent);
  --stack-secondary: #374151;    /* slate-700 */
  --stack-tertiary: #e5e7eb;     /* gray-200 */
}

html {
  background-color: var(--bg-body);     
  min-height: 100%;
  overflow-x: hidden; /* éviter tout scroll horizontal global */
}

body {
  background: transparent;    
  color: var(--text-primary);
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden; /* ceinture + bretelles */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background-color: #222222;
  min-height: 72px;
  height: 72px;
}

.logo {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  height: 54px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0; 
  align-items: stretch; 
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Mobile burger base (hidden desktop) */
.burger-toggle { display:none; background:transparent; border:none; color:#fff; font-size:28px; cursor:pointer; align-items:center; justify-content:center; padding:0 4px; }
.burger-toggle:focus { outline:2px solid var(--brand-violet); outline-offset:2px; }

@media (max-width: 820px) {
  .burger-toggle { display:flex; }
  .navbar { position:relative; }
  .nav-links { position:absolute; top:72px; right:0; left:0; flex-direction:column; background:#2e0a55; max-height:0; overflow:hidden; transition:max-height .25s ease; border-top:2px solid var(--brand-violet); z-index:1000; }
  .nav-links.open { max-height:520px; }
  .nav-links li { width:100%; display:block; height:auto; }
  .nav-links a { height:54px; padding:0 20px; border-top:1px solid rgba(255,255,255,0.06); width:100%; box-sizing:border-box; }
  .nav-links a.sango-btn { height:54px; }
}

.nav-links li {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 22px;
  color: #fff !important;
  font-weight: 400;
  transition: color 0.2s, background 0.2s;
  border-radius: 0;
  background: none;
  box-sizing: border-box;
}

.nav-links a:hover {
  color: var(--color-accent);
  background: #18181b;
}

.sango-btn {
  background: #F6784F;
  color: #fff !important;
  border: none;
  border-radius: 0;
  height: 72px;
  padding: 0 28px;
  font-weight: 600;
  font-size: 1em;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sango-btn:hover,
.sango-btn:focus {
  background: #d96a2c;
  color: #fff !important;
}

.nav-links a.sango-btn {
  background: #F6784F !important;
  color: #fff !important;
  border-radius: 0;
}

.nav-links a.sango-btn:hover,
.nav-links a.sango-btn:focus {
  background: #d96a2c !important;
  color: #fff !important;
}

.hero {
  background: transparent; 
  padding: 48px 20px 32px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #282828;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.1em;
  color: #ccc; 
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #000;
}

.site-footer {
  background: #18181b;
  color: #aaa;
  text-align: center;
  font-size: 0.97em;
  padding: 18px 0 12px 0;
  border-top: 1px solid #232325;
  margin-top: 0;
}

.main-wrapper {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 32px 36px 40px 36px;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
  border: 1px solid #d3d3d3;
}

/* Dark wrapper variant for Livrées and subpages */
.livrees-dark .main-wrapper {
  background: #261635;      /* lighter near-black for the big frame */
  border: 1px solid #333333; /* slightly lighter border */
  box-shadow: none;
  color: #e5e7eb;
}
.livrees-dark { background: var(--bg-body); }
.livrees-dark .main-wrapper h1,
.livrees-dark .main-wrapper h2,
.livrees-dark .main-wrapper h3,
.livrees-dark .main-wrapper .page-title,
.livrees-dark .main-wrapper p,
.livrees-dark .main-wrapper li { color: #e5e7eb; }

/* Pager buttons on dark pages */
.livrees-dark .page-nav a { border-color: #4a4a4a; box-shadow: none; }
.livrees-dark .page-nav a.nav-prev { background: #2f2f2f; color: #e5e7eb; }
.livrees-dark .page-nav a.nav-next { border-color: #4a4a4a; }

.page-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 28px;
  color: #222;
  text-align: left;
}

.category-box h2 {
  font-size: 1.25em;
  color: #222;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}
.category-box h3 {
  font-size: 1.08em;
  color: #444;
  margin-bottom: 10px;
  font-weight: 500;
}

.category-box-int .category-box {
  background: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}

ul {
  margin: 10px 0 18px 32px;
  padding: 0;
}
li {
  margin-bottom: 7px;
  line-height: 1.6;
  color: #222;
}

.main-wrapper p,
.content-section p,
.category-box-int p,
.category-box p {
  text-indent: 2em;
  margin-bottom: 1em;
}

.intro-text.minimalist-intro {
  background: #f6f6f6;
  color: #222;
  padding: 24px 8vw 18px 8vw;
  border: 1px solid #d3d3d3;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.06);
  margin: 32px auto 0 auto;
  border-radius: 0;
  max-width: 1400px;         
  font-size: 1em;
  text-align: center;
}

.intro-text.minimalist-intro p {
  text-indent: 0;
  margin-bottom: 1em;
  color: #222;
}

.intro-text.minimalist-intro .intro-note {
  display: block;
  margin-top: 18px;
  font-style: italic;
  font-size: 0.98em;
  color: #222;
  text-align: center;
}

.histoire-highlight {
  background: #eaf4fb;
  border: 1px solid #b3d6f2;
  color: #174a6c;
  padding: 12px 50px;
  border-radius: 6px;
  margin-bottom: 22px;
  font-size: 0.9em;
  text-align: left;
}

.histoire-highlight p {
  margin-bottom: 10px;
}

.histoire-wrapper,
.histoire-wrapper p {
  text-align: justify;
}

.histoire-wrapper {
  max-width: 1200px;
  padding: 32px 36px 40px 36px; 
  font-size: 1.08em;
  margin-top: 0;
}

.histoire-wrapper ul,
.histoire-wrapper li {
  line-height: 1.3;
}

.main-wrapper,
.intro-text.minimalist-intro,
.histoire-wrapper {
  padding-top: 0px; 
}

main,
.main-wrapper,
.histoire-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Animation: pas de scroll horizontal + écart uniforme */
#train-animation-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--train-anim-height);
  margin: var(--anim-gap) auto; /* même écart au-dessus et en dessous */
}

/* Neutraliser les marges des blocs voisins sur la page d’accueil */
.hero .intro-text { margin-bottom: 0; }
.hero .hero-livery-image { margin-top: 0; }
.hero .hero-livery-image img { margin-top: 0 !important; display: block; }

/* Sécuriser l’image de rail */
#rail-img { width: 100%; height: auto; display: block; }

@media (max-width: 700px) {
  .main-wrapper {
    max-width: 98vw;
    padding: 0 4vw 24px 4vw;
  }
  .page-title {
    font-size: 1.2em;
  }
  .intro-text.minimalist-intro {
    padding: 12px 2vw 8px 2vw;
    font-size: 1em;
    max-width: 98vw;
  }
}

/* === Ajustements supplémentaires très petits écrans (<=480px) === */
@media (max-width: 480px) {
  .navbar { padding: 0 12px; }
  .nav-links a { padding: 0 12px; font-size: 0.9em; }
  .hero h1 { font-size: 2.1em; }
  .intro-text.minimalist-intro h1 { font-size: 1.4em; }
  .main-wrapper { padding: 0 3vw 28px 3vw; }
  .stacked-buttons .stack-btn { font-size: 0.95em; padding: 14px 14px; }
}

.compagnies-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.compagnie-card {
  background: #c7c7c7;
  border: 1px solid #d3e2ef;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 16px auto; 
}

.compagnie-img {
  width: 100%;
  margin-bottom: 8px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.08);
}

.compagnie-info {
  font-size: 1.07em;
  color: #222;
  text-align: justify;
}

.projets-etapes {
  margin: 32px 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.etape-projet {
  display: flex;
  align-items: flex-start;
  background: #f3f7fa;
  border-left: 5px solid #0fb03f;
  padding: 16px 18px;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.04);
}

.etape-numero {
  font-size: 1.5em;
  font-weight: bold;
  color: #0fb03f;
  margin-right: 18px;
  min-width: 32px;
  text-align: center;
  line-height: 1;
}

.etape-texte {
  font-size: 1.07em;
  color: #222;
}

.disclaimer-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #eaf4fb;
  border: 1px solid #b3d6f2;
  border-radius: 8px;
  padding: 18px 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
  font-style: italic;
}

.disclaimer-text {
  font-size: 1.08em;
  color: #174a6c;
  text-align: left;
  line-height: 1.5;
}

.expansion-title {
  margin-top: 36px;
  margin-bottom: 18px;
  text-align: center;
  color: #0fb03f;
  font-size: 1.25em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.mltc-timeline {
  border-left: 4px solid #0fb03f;
  margin: 0 0 32px 18px;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mltc-timeline-item {
  position: relative;
  padding-bottom: 4px;
}

.mltc-timeline-date {
  position: absolute;
  left: -64px;
  top: 0;
  font-size: 1.1em;
  font-weight: bold;
  color: #1eb828;
  background: #f3f7fa;
  padding: 2px 10px;
  min-width: 48px;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(59,176,224,0.07);
}

.mltc-timeline-content {
  background: #f8fafc;
  padding: 12px 18px;
  border: 1px solid #e0eaf2;
  box-shadow: 0 1px 6px 0 rgba(0,0,0,0.03);
  font-size: 1.05em;
  color: #222;
}

.maj-apparte {
  margin-top: 32px;
  font-size: 0.98em;
  color: #174a6c;
  background: #eaf4fb;
  border: 1px solid #b3d6f2;
  padding: 8px 18px;
  text-align: right;
  max-width: 550px;
  margin-left: auto;
}

/* Additional UI elements: stacked buttons and page navigation */
.stacked-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.stacked-buttons .stack-btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  font-size: 1.12em;
  font-weight: 700;
  border-radius: 0; /* no rounded corners */
  border: 1px solid transparent;
  box-shadow: none;              /* flat style: no shadow */
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-indent: 0;
  box-sizing: border-box;
  min-height: 56px;              /* larger tap target */
  position: relative;            /* for chevron animation */
}

/* offset look without overflow */
.stacked-buttons .stack-btn:nth-child(1) {
  background: var(--stack-green);
  color: #141414;
  border-color: #81cc1a;
}
.stacked-buttons .stack-btn:nth-child(2) {
  background: var(--stack-dark);
  color: #fff;
  border-color: #3e3e3e;
  margin-left: 18px;
  width: calc(100% - 18px);
}
.stacked-buttons .stack-btn:nth-child(3) {
  background: var(--stack-light);
  color: #222;
  border-color: #d0d0d0;
  margin-left: 0;              /* brick pattern: back to left edge */
  width: 100%;
}

.stacked-buttons .stack-btn:hover {
  transform: none;                 /* no movement on hover */
  box-shadow: none;                /* no shadow on hover */
  filter: brightness(1.06) saturate(1.04); /* stronger highlight without color change */
  outline: 2px solid rgba(79,8,137,0.25);  /* subtle violet outline */
  outline-offset: 0;
}

/* Chevron indicator and motion */
.stacked-buttons .stack-btn::after {
  content: "\203A"; /* › */
  display: inline-block;
  margin-left: 10px;
  font-weight: 800;
  transition: transform 0.12s ease;
}
/* Keep chevron static to avoid perceived movement */
.stacked-buttons .stack-btn:hover::after,
.stacked-buttons .stack-btn:focus-visible::after { transform: none; }

/* Focus-visible ring for keyboard users */
.stacked-buttons .stack-btn:focus { outline: none; }
.stacked-buttons .stack-btn:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-violet);
}

/* Pressed state */
.stacked-buttons .stack-btn:active {
  transform: none;                 /* no movement on click */
  box-shadow: none;                /* no shadow on active */
}

/* Group hover: gently de-emphasize non-hovered buttons */


/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .stacked-buttons .stack-btn,
  .stacked-buttons .stack-btn::after { transition: none; }
  .stacked-buttons .stack-btn:hover,
  .stacked-buttons .stack-btn:active { transform: none; }
}

/* Bottom pager for history subpages */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left slot (prev), right slot (next) */
  gap: 12px;
  align-items: stretch;
  margin-top: 24px;
}
.page-nav a {
  justify-self: start; /* default for prev */
  width: fit-content;
  text-align: center;
  padding: 12px 16px;
  border-radius: 0; /* no rounded corners */
  border: 1px solid #d3d3d3;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  text-indent: 0;
}
.page-nav a.nav-prev { background: #f1f1f1; color: #222; grid-column: 1; }
.page-nav a.nav-next { background: var(--color-accent); color: #000; border-color: #0cb042; grid-column: 2; justify-self: end; }

.page-nav a:hover { filter: brightness(1.03); box-shadow: 0 3px 10px rgba(0,0,0,0.1); }

@media (max-width: 700px) {
  .main-wrapper {
    max-width: 98vw;
    padding: 0 4vw 24px 4vw;
  }
  .page-title {
    font-size: 1.2em;
  }
  .intro-text.minimalist-intro {
    padding: 12px 2vw 8px 2vw;
    font-size: 1em;
    max-width: 98vw;
  }
  .stacked-buttons .stack-btn:nth-child(2),
  .stacked-buttons .stack-btn:nth-child(3) {
    margin-left: 0;
    width: 100%;
  }
  .page-nav { gap: 8px; }
}

/* ==== Theme refresh: cohesive palette (keeps SanGo! orange) ==== */
:root {
  /* Core palette */
  --bg-body: #0f172a;            /* deep slate */
  --text-primary: #111827;       /* near-black */
  --text-muted: #475569;         /* slate-500 */
  --surface: #ffffff;            /* cards/surfaces */
  --surface-muted: #f8fafc;      /* slate-50 */
  --border-color: #e5e7eb;       /* gray-200 */

  /* Accent (green) */
  --color-accent: #16a34a;       /* emerald-600 */
  --color-accent-hover: #22c55e; /* emerald-500 */

  /* Stacked buttons tints */
  --stack-primary: var(--color-accent);
  --stack-secondary: #374151;    /* slate-700 */
  --stack-tertiary: #e5e7eb;     /* gray-200 */
}

/* Global surfaces */
html { background-color: var(--bg-body); }
body { color: var(--text-primary); }
.main-wrapper { background: var(--surface); border-color: var(--border-color); }

/* Top sections */
.navbar { background-color: #0f172a; }
.logo { color: var(--color-accent); }
.nav-links a:hover { background: #111827; color: var(--color-accent); }
.hero h1 { color: var(--text-primary); }
.hero p { color: var(--text-muted); }

/* Intro card */
.intro-text.minimalist-intro { background: var(--surface-muted); border-color: var(--border-color); color: var(--text-primary); }
.intro-text.minimalist-intro p { color: var(--text-primary); }

/* Highlight / Disclaimer */
.histoire-highlight, .disclaimer-block {
  background: #ecfdf5;  /* emerald-50 */
  border: 1px solid #a7f3d0; /* emerald-200 */
  color: #065f46; /* emerald-800 */
}

/* Lists/cards */
.compagnie-card { background: var(--surface-muted); border-color: var(--border-color); }
.compagnie-info { color: var(--text-primary); }

/* Timeline */
.mltc-timeline { border-left: 4px solid var(--color-accent); }
.mltc-timeline-date { color: var(--color-accent); background: #f0fdf4; }
.mltc-timeline-content { background: var(--surface-muted); border-color: var(--border-color); color: var(--text-primary); }

/* Publication box */
.maj-apparte { background: #f0fdf4; border-color: #bbf7d0; color: #065f46; }

/* Stacked buttons palette */
.stacked-buttons .stack-btn:nth-child(1) { background: var(--stack-primary); color: #072b16; border-color: #16a34a; }
.stacked-buttons .stack-btn:nth-child(2) { background: var(--stack-secondary); color: #fff; border-color: #2b3342; }
.stacked-buttons .stack-btn:nth-child(3) { background: var(--stack-tertiary); color: #111827; border-color: #d1d5db; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; }

/* ==== Violet theme harmonization (MLTC) ==== */
:root {
  /* Core palette (keep surfaces readable) */
  --bg-body: #0b1020;            /* deep indigo/violet */
  --text-primary: #111827;
  --text-muted: #475569;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border-color: #e5e7eb;

  /* Accent (violet) */
  --color-accent: #7c3aed;       /* violet-600 */
  --color-accent-hover: #8b5cf6; /* violet-500 */

  /* Stacked buttons tints */
  --stack-primary: var(--color-accent);
  --stack-secondary: #2a1f44;    /* deep violet */
  --stack-tertiary: #ede9fe;     /* violet-50 */
}

/* Distinct navbar on dark bg */
.navbar { background-color: #1d1140; }
.nav-links a:hover { background: #261552; color: var(--color-accent); }
.logo { color: var(--color-accent); }

/* Cards & text already use variables */
.main-wrapper { background: var(--surface); border-color: var(--border-color); }
.hero h1 { color: var(--text-primary); }
.hero p { color: var(--text-muted); }

/* Highlights -> violet */
.histoire-highlight, .disclaimer-block {
  background: #f5f3ff;   /* violet-50 */
  border: 1px solid #ddd6fe; /* violet-200 */
  color: #3730a3; /* indigo-800 */
}

/* Timeline -> violet */
.mltc-timeline { border-left: 4px solid var(--color-accent); }
.mltc-timeline-date { color: var(--color-accent); background: #faf5ff; }
.mltc-timeline-content { background: var(--surface-muted); border-color: var(--border-color); color: var(--text-primary); }

/* Publication pill -> violet */
.maj-apparte { background: #faf5ff; border-color: #ddd6fe; color: #3730a3; }

/* Stacked buttons recolor (and keep square corners from earlier rule) */
.stacked-buttons .stack-btn:nth-child(1) { background: var(--stack-primary); color: #ffffff; border-color: #6d28d9; }
.stacked-buttons .stack-btn:nth-child(2) { background: var(--stack-secondary); color: #ffffff; border-color: #211838; }
.stacked-buttons .stack-btn:nth-child(3) { background: var(--stack-tertiary); color: #312e81; border-color: #c7d2fe; }

/* Footer harmonized */
.site-footer { background: #1d1140; color: #c4b5fd; }

/* ==== MLTC brand: dominant violet (#4F0889), no green accents ==== */
:root {
  --brand-violet: #4F0889;
  --brand-violet-50: #f4e8ff;
  --brand-violet-200: #e2c8ff;
  --brand-violet-800: #3a0a67;

  /* green removed intentionally */

  /* set primary accent to violet */
  --color-accent: var(--brand-violet);
  --color-accent-hover: #6a19c0;
}

/* Distinct navbar remains on dark violet */
.navbar { background-color: #2e0a55; }
.nav-links a:hover { background: #3a0a67; color: var(--color-accent); }
/* Navbar brand: Lemon Milk Bold (fallbacks), white and larger */
.logo, .logo a {
  color: #ffffff;
  font-family: "LEMON MILK","Franklin Gothic Medium","Franklin Gothic","ITC Franklin Gothic","Arial Narrow",Arial,sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
/* Ensure logo aligns within the 72px navbar */
.logo { height: 72px; }

/* Subtle violet accent line on main content */
.main-wrapper { border-top: 3px solid var(--brand-violet); }

/* Highlights use violet family */
.histoire-highlight, .disclaimer-block {
  background: var(--brand-violet-50);
  border: 1px solid var(--brand-violet-200);
  color: var(--brand-violet-800);
}

/* Timeline: violet spine and light violet date tag */
.mltc-timeline { border-left: 4px solid var(--brand-violet); }
.mltc-timeline-date { color: var(--brand-violet); background: var(--brand-violet-50); }

/* Publication: violet background with a thin violet accent on the left */
.maj-apparte {
  background: var(--brand-violet-50);
  border: 1px solid var(--brand-violet-200);
  border-left: 4px solid var(--brand-violet-200);
  color: var(--brand-violet-800);
}

/* Stacked buttons: 1=violet, 2=deep violet, 3=light violet */
.stacked-buttons .stack-btn:nth-child(1) { background: var(--brand-violet); color: #ffffff; border-color: #3f076d; border-left: 4px solid #3f076d; }
.stacked-buttons .stack-btn:nth-child(2) { background: #2a1f44; color: #ffffff; border-color: #211838; border-left: 4px solid #211838; }
/* Darker tint for Services (3rd button) */
.stacked-buttons .stack-btn:nth-child(3) { background: var(--brand-violet-200); color: var(--brand-violet-800); border-color: var(--brand-violet-200); border-left: 4px solid var(--brand-violet); }

/* Page nav: keep next in violet, prev neutral */
.page-nav a.nav-next { background: var(--brand-violet); color: #fff; border-color: #3f076d; }
/* Slightly darker neutral for previous-page buttons */
.page-nav a.nav-prev { background: #e7e7e7; color: #222; border-color: #cfcfcf; }

/* Remove remaining green accents for steps and section headings */
.expansion-title { color: var(--brand-violet); }
.etape-projet { border-left-color: var(--brand-violet); }
.etape-numero { color: var(--brand-violet); }

/* Small universal gap before footer */
main, .main-wrapper, .histoire-wrapper { padding-bottom: 16px !important; margin-bottom: 16px !important; }

/* Unified logo size across all pages */
