:root {
  --color-primary: #8e001c;
  --color-primary-dark: #6b0015;
  --color-secondary: #867866;
  --color-secondary-dark: #5e5447; /* 7:1 on white, for small text */
  --color-text: #1f1b17;
  --color-muted-bg: #f6f3f0;
  --color-bg: #ffffff;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 0.5rem;
  --container: 70rem;
  --gutter: 1rem;
}
@media (min-width: 48rem) {
  :root { --gutter: 1.5rem; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-wrap: break-word;
}

img, picture { max-width: 100%; height: auto; }

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

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

h1, h2 { line-height: 1.25; color: var(--color-primary); text-wrap: balance; }
h3 { text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.15rem, 3vw, 1.35rem); }

.lead { font-size: clamp(1.05rem, 2.5vw, 1.2rem); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Header and navigation */
/* Header bottom edge: a slim gradient rule, burgundy to rosé, gold and warm grey (echoes the home hero). */
.site-header { position: relative; }
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 3px;
  background: linear-gradient(90deg, #6b0015 0%, #8e001c 35%, #e0567a 62%, #d9b38c 80%, #867866 100%);
  z-index: 2;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo img { display: block; height: 56px; width: auto; }
.site-logo__name {
  position: relative;
  padding: 0.35rem 0 0.45rem 0.9rem;
  border-left: 1px solid #d8d0c7;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}
/* Thin rosé-to-gold accent under the name, echoing the header rule. */
.site-logo__name::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.22em;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #8e001c, #e0567a 60%, #d9b38c);
}
.site-logo:hover .site-logo__name { color: var(--color-primary-dark); }
@media (min-width: 48rem) { .site-logo__name { font-size: 1.6rem; } }
.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem; /* 44px tap target */
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { background: var(--color-muted-bg); color: var(--color-primary); }
.site-nav a[aria-current="page"] { background: var(--color-primary); color: #fff; }

/* Phones: the menu items as a 3-column grid under the logo. */
@media (max-width: 47.99rem) {
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
  .site-nav a { padding: 0.25rem; font-size: 0.95rem; background: var(--color-muted-bg); }
}
@media (min-width: 48rem) {
  .site-logo img { height: 64px; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem; }
}

.site-main { padding-top: 1.5rem; padding-bottom: 3rem; }
@media (min-width: 48rem) {
  .site-main { padding-top: 2.5rem; }
}

/* Home hero: deep burgundy with layered, slowly drifting SVG waves (templates/partials/hero-waves.html).
   Full-bleed: breaks out of the centred container. */
html { overflow-x: clip; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -1.5rem calc(50% - 50vw) 0;
  padding: 3.5rem var(--gutter) 7.5rem;
  background:
    radial-gradient(120% 90% at 85% 15%, #b3122f 0%, rgba(179, 18, 47, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, #4a0614 0%, rgba(74, 6, 20, 0) 60%),
    linear-gradient(160deg, #6b0015 0%, #8e001c 45%, #3b0410 100%);
  color: #fff;
}
@media (min-width: 48rem) {
  .hero { margin-top: -2.5rem; padding: 6rem var(--gutter) 10rem; }
}
.hero__content { position: relative; z-index: 1; max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.hero h1 {
  max-width: 16ch;
  margin: 0.25rem 0 1rem;
  color: #fff;
  font-size: clamp(2.3rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 span { display: block; color: #f3d9c9; }
.hero__lead { max-width: 38rem; font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: rgba(255, 255, 255, 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
/* Home hero: brand line above the title. */
.hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
  margin: 0 0 0.75rem;
  color: #f3d9c9;
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hero__brand-name { color: #fff; font-size: 1.25em; font-weight: 800; letter-spacing: 0.2em; }
/* The comma stays for screen readers and copy-paste; sighted users see a gold bar instead. */
.hero__brand-sep { display: inline-block; width: 2px; height: 1.3em; overflow: hidden; color: transparent; background: #d9b38c; border-radius: 1px; }

.hero__waves { position: absolute; inset: auto 0 -2px 0; height: 42%; z-index: 0; pointer-events: none; }
@media (min-width: 48rem) { .hero__waves { height: 62%; } }

/* Layer = parallax wrapper. --d is its depth: back layers move least. The shore stays put so the edge never gaps. */
.wave-layer {
  --d: 0;
  position: absolute;
  inset: 0;
  translate: calc(var(--mx, 0) * var(--d) * 2px) calc(var(--my, 0) * var(--d) * 1px);
  transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wave-layer--glow { --d: 6; }
.wave-layer--rose { --d: 10; }
.wave-layer--lines { --d: 16; top: -15%; }
.wave-layer--grey { --d: 22; }

/* Drift: each svg is two periods wide and slides by one period. */
.wave { position: absolute; left: 0; bottom: 0; width: 400%; height: 100%; animation: wave-drift 36s linear infinite; }
@media (min-width: 48rem) { .wave { width: 200%; } }
.wave-layer--glow .wave { animation-duration: 48s; }
.wave-layer--rose .wave { animation-duration: 40s; animation-direction: reverse; }
.wave-layer--lines .wave { animation-duration: 60s; animation-direction: reverse; }
.wave-layer--grey .wave { animation-duration: 30s; }
@keyframes wave-drift { to { translate: -50% 0; } }

.hero__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Live hero (js/hero.js): the canvas fills the hero; a soft shade on the left keeps the text readable. */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.hero--live .hero__waves { display: none; }
.hero--live::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(35, 2, 9, 0.55) 0%, rgba(35, 2, 9, 0.2) 50%, rgba(35, 2, 9, 0) 75%);
}
@media (max-width: 47.99rem) {
  .hero--live::after { background: linear-gradient(180deg, rgba(35, 2, 9, 0.35) 0%, rgba(35, 2, 9, 0.5) 60%, rgba(35, 2, 9, 0.2) 100%); }
}
.hero__shore { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 3rem; z-index: 2; pointer-events: none; }
@media (min-width: 48rem) { .hero__shore { height: 4.5rem; } }
.hero--live { min-height: 36rem; }
@media (min-width: 48rem) { .hero--live { min-height: 44rem; } }

/* Scroll parallax: layers sink at different speeds as the page scrolls. */
@supports (animation-timeline: scroll()) {
  .wave-layer:not(.wave-layer--shore) {
    animation: wave-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
}
@keyframes wave-parallax { to { transform: translateY(calc(var(--d) * 4px)); } }

/* Headline: one light sweep across « pour la finance » after the entrance. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    background: linear-gradient(100deg, #f3d9c9 0%, #f3d9c9 40%, #fffaf3 50%, #f3d9c9 60%, #f3d9c9 100%);
    background-size: 250% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2.4s 0.9s cubic-bezier(0.3, 0.6, 0.3, 1) both;
  }
}
@keyframes shimmer { from { background-position: 100% 0; } }

/* Hero entrance */
.hero__content > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.16s; }
.hero__content > :nth-child(4) { animation-delay: 0.24s; }
.hero__content > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid #fff;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--color-muted-bg); }
.button--secondary { background: transparent; color: #fff; }
.button--secondary:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.hero .button:focus-visible { outline-color: #fff; }

/* Page intro: title and lead text, with a photo beside them (stacked on phones). */
.page-intro {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}
.page-intro > div > :last-child { margin-bottom: 0; }
.page-intro__media,
.page-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.page-intro__media { box-shadow: 0 0.25rem 1rem rgba(31, 27, 23, 0.15); }
.page-intro__media--small { width: 100%; max-width: 26rem; height: auto; box-shadow: none; }
@media (min-width: 48rem) {
  .page-intro { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .page-intro__media--small { justify-self: end; }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 40rem) {
  .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  padding: 1.5rem;
  border: 1px solid #ece6e0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 27, 23, 0.04), 0 8px 24px rgba(31, 27, 23, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #e3c9cf; box-shadow: 0 2px 4px rgba(142, 0, 28, 0.06), 0 18px 40px rgba(142, 0, 28, 0.12); }
.card .icon { margin-bottom: 0.25rem; }
.card h2 { margin-top: 0.75rem; font-size: 1.3rem; }
.card > :last-child { margin-bottom: 0; }
.card address { font-style: normal; }

.motto { color: var(--color-secondary-dark); font-style: italic; }

.checklist { padding-left: 1.25rem; }
.checklist li { margin: 0.35rem 0; }
.checklist li::marker { color: var(--color-primary); }

.cta {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: radial-gradient(100% 120% at 100% 0%, #b3122f 0%, rgba(179, 18, 47, 0) 60%), linear-gradient(140deg, #6b0015, #8e001c);
  color: #fff;
}
@media (min-width: 48rem) { .cta { padding: 2.25rem 2.5rem; } }
.cta h2 { margin-top: 0; color: #fff; }
.cta a:not(.button) { color: #fff; }
.cta .button--secondary { color: #fff; }
.cta a:focus-visible { outline-color: #fff; }
.cta > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #e9e4de;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer address { font-style: normal; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer__copy { align-self: flex-end; margin: 0; }
.site-footer__meta { align-self: flex-end; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }

/* Long-form text pages (legal, 404, confirmations) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }

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

.button--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.button--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
button.button { font: inherit; font-weight: 600; cursor: pointer; }

/* Contact form */
.contact-form {
  margin-top: 2.5rem;
  padding: 1.5rem var(--gutter);
  border-top: 4px solid var(--color-primary);
  border-radius: 1.25rem;
  background: var(--color-muted-bg);
}
.contact-form h2 { margin-top: 0; }
.form-note { color: var(--color-secondary-dark); font-size: 0.95rem; }
.form-grid { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
@media (max-width: 39.99rem) {
  .field--spacer { display: none; }
}
.field label { display: block; margin-bottom: 0.3rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #8a8076; /* 3.5:1 against the field background */
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font: inherit; /* 16px+ so iOS doesn't zoom on focus */
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--color-primary); }
.field--check { display: flex; gap: 0.75rem; align-items: flex-start; }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0.2rem 0 0; flex: none; accent-color: var(--color-primary); }
.field--check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Language switch (Français / English) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
}
.lang-switch:hover { border-color: var(--color-primary); color: var(--color-primary); }
@media (max-width: 47.99rem) {
  /* Phones: logo and language switch on the first line, menu grid below. */
  .lang-switch { order: 2; }
  .site-nav { order: 3; }
}

/* ---------- Home page sections ---------- */
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-secondary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow--light { color: #f3d9c9; }


.home-block { margin-top: 4.5rem; }
.home-block__head { margin-bottom: 1.75rem; }
.home-block__head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.home-block__more { margin: 1.5rem 0 0; }

.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #ece6e0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 27, 23, 0.04), 0 8px 24px rgba(31, 27, 23, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: #e3c9cf; box-shadow: 0 2px 4px rgba(142, 0, 28, 0.06), 0 18px 40px rgba(142, 0, 28, 0.12); }
.feature h3 { margin: 1rem 0 0.5rem; color: var(--color-primary); font-size: 1.2rem; }
.feature p { margin: 0; }
.icon {
  width: 3rem; height: 3rem; padding: 0.7rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #8e001c, #b3122f);
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: "→"; display: inline-block; margin-left: 0.35em; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* Sectors: full-bleed burgundy band */
.sectors {
  margin: 4.5rem calc(50% - 50vw) 0;
  padding: 3.5rem var(--gutter);
  background: linear-gradient(120deg, #6b0015 0%, #8e001c 60%, #a10a28 100%);
  color: #fff;
}
.sectors h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.sectors__inner { display: grid; gap: 1.5rem; max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; align-items: center; }
@media (min-width: 48rem) {
  .sectors__inner { grid-template-columns: 1fr 2fr; gap: 2.5rem; }
}
.sectors__list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .sectors__list { grid-template-columns: repeat(3, 1fr); } }
.sectors__list li {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.1rem;
  font-weight: 600;
}
.sectors__num { display: block; margin-bottom: 0.35rem; color: #f3d9c9; font-size: 0.85rem; letter-spacing: 0.1em; }

.home-cta {
  position: relative;
  overflow: hidden;
  margin-top: 4.5rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  background: radial-gradient(100% 120% at 100% 0%, #b3122f 0%, rgba(179, 18, 47, 0) 60%), linear-gradient(140deg, #6b0015, #8e001c);
  color: #fff;
}
@media (min-width: 48rem) { .home-cta { padding: 3rem; } }
.home-cta h2 { margin: 0 0 0.75rem; color: #fff; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.home-cta a:not(.button) { color: #fff; }
.home-cta .button:focus-visible, .sectors a:focus-visible { outline-color: #fff; }

/* Scroll reveals (CSS scroll-driven animations; browsers without support just show the content). */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(2rem); } }

@media (prefers-reduced-motion: reduce) {
  .wave, .wave-layer, .hero__content > *, .hero h1 span, .reveal { animation: none !important; }
  .wave-layer { translate: none; transition: none; }
  .sparks { display: none; }
  .feature, .link-arrow::after { transition: none; }
}

/* Inner pages: cards and closing call-to-action rise in as they scroll into view (movement only, no fade,
   so text keeps full contrast). */
@supports (animation-timeline: view()) {
  .card, .cta {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}
@keyframes rise-in { from { transform: translateY(1.75rem) scale(0.985); } }
@media (prefers-reduced-motion: reduce) {
  .card, .cta { animation: none !important; transition: none; }
}

/* ---------- Le Lab (content/lab.html, content/en/lab.html) ---------- */
.button--primary { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.button--primary:hover { border-color: #6b0015; background: #6b0015; color: #fff; }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.lab-visual { justify-self: center; }
.page-intro .eyebrow { margin-bottom: 0.25rem; }

/* Numbered steps: stacked on phones, one row of five on wide screens. */
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step;
  padding: 1.25rem;
  border: 1px solid #ece6e0;
  border-top: 4px solid var(--color-primary);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 27, 23, 0.04), 0 8px 24px rgba(31, 27, 23, 0.05);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.steps p { margin: 0; font-size: 0.97rem; }

.card h3 { margin: 0.75rem 0 0.5rem; color: var(--color-primary); font-size: 1.2rem; }
.lab-duration { margin: -0.25rem 0 0.5rem; color: var(--color-secondary-dark); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }

.sectors__inner--wide { align-items: start; }
.lab-ideas { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .lab-ideas { grid-template-columns: repeat(2, 1fr); } }
.lab-ideas li {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

/* Home teaser for the Lab */
.lab-teaser { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .lab-teaser { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.lab-teaser h2 { margin: 0 0 0.75rem; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.lab-teaser img { width: 100%; height: auto; }

/* Phones: seven menu items in a 3-column grid; the last one spans the row. */
@media (max-width: 47.99rem) {
  .site-nav li:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Home hero: short announcement pill linking to the Lab. */
.hero__news { margin: 0 0 1.25rem; }
.hero__news a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem 0.3rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(35, 2, 9, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero__news a::after { content: "→"; transition: transform 0.2s ease; }
.hero__news a:hover { background: rgba(35, 2, 9, 0.55); border-color: rgba(255, 255, 255, 0.55); }
.hero__news a:hover::after { transform: translateX(3px); }
.hero__news a:focus-visible { outline-color: #fff; }
.hero__news-tag {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #d9b38c;
  color: #3b0410;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__content > :nth-child(6) { animation-delay: 0.4s; }
@media (max-width: 39.99rem) { .hero__news a { font-size: 0.85rem; gap: 0.45rem; } }

/* ---------- Expertise page ---------- */
/* Featured MiFID block: wide card, two-column checklist on large screens. */
.card--feature { border-top: 4px solid var(--color-primary); }
.card--feature .lead { margin-top: 0; }
.card--feature h3 { margin-top: 1.5rem; }
@media (min-width: 48rem) { .checklist--cols { columns: 2; column-gap: 2.5rem; } .checklist--cols li { break-inside: avoid; } }

/* Regulations: compact tiles. */
.reg-grid { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .reg-grid { grid-template-columns: repeat(3, 1fr); } }
.reg-grid li { padding: 1rem 1.25rem; border: 1px solid #ece6e0; border-left: 4px solid var(--color-primary); border-radius: 0.75rem; background: #fff; }
.reg-grid strong { display: block; color: var(--color-primary); }
.reg-grid span { font-size: 0.95rem; }

/* Technology catalogue: groups of chips. */
.tech-groups { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .tech-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tech-groups { grid-template-columns: repeat(3, 1fr); } }
.tech-groups .card h3 { margin-top: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 0.3rem 0.75rem; border: 1px solid #d9d0c6; border-radius: 999px; background: var(--color-muted-bg); color: var(--color-secondary-dark); font-size: 0.88rem; font-weight: 600; }
.lab-note { padding: 0.75rem 1rem; border-left: 3px solid #d9b38c; border-radius: 0 0.5rem 0.5rem 0; background: #fffaf0; font-style: italic; color: #3d3630; }
.cta + .contact-form { margin-top: 2rem; }
@media (min-width: 40rem) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Agents opérés (content/agents-operes.html, content/en/managed-agents.html) ---------- */
@media (min-width: 64rem) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.agent-human { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #e3d6c8; color: var(--color-secondary-dark); font-size: 0.92rem; font-weight: 600; }

/* ---------- Offres group: sub-navigation on every offer page (partials/offers-nav.html) ---------- */
.offers-nav { margin: -0.5rem 0 2rem; }
.offers-nav ul { display: flex; gap: 0.4rem; margin: 0; padding: 0 0 0.25rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.offers-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.25rem 1rem;
  border: 1px solid #e3d6c8; border-radius: 999px; background: #fff;
  color: var(--color-text); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.offers-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.offers-nav a[aria-current="page"] { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

/* Offers hub */
.offer-card h2 { margin: 0.75rem 0 0.5rem; color: var(--color-primary); font-size: 1.3rem; }
.offer-card .link-arrow { display: inline-block; margin-top: 0.25rem; }

/* References (external sources) */
.refs { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 48rem) { .refs { grid-template-columns: repeat(2, 1fr); } }
.refs li { padding: 1rem 1.25rem; border: 1px solid #ece6e0; border-radius: 0.75rem; background: #fff; }
.refs a { font-weight: 700; }
.refs span { display: block; margin-top: 0.25rem; font-size: 0.93rem; color: #3d3630; }
.offers-intro { margin-top: 0; }
.offers-intro h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 1rem; }
.offers-grid { margin-top: 2.5rem; }

/* ---------- Présentation (content/presentation.html, content/en/about.html) ---------- */
.facts { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { padding: 1.25rem 1.5rem; border-radius: 1rem; background: linear-gradient(140deg, #fffaf0, #f4efe9); border: 1px solid #ece6e0; }
.facts strong { display: block; color: var(--color-primary); font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; line-height: 1.1; }
.facts span { display: block; margin-top: 0.35rem; color: var(--color-secondary-dark); font-size: 0.95rem; }
.about-story__text { max-width: 46rem; font-size: 1.08rem; }
.lab-ideas strong { color: #f3d9c9; }
.about-next { margin-top: 3rem; align-items: stretch; }
.about-next .cta { margin-top: 0; }
.cta--light { background: #f4efe9; color: var(--color-text); border: 1px solid #ece6e0; }
.cta--light h2 { color: var(--color-primary); }
.cta--light a:not(.button) { color: var(--color-primary); }
@media (min-width: 40rem) and (max-width: 63.99rem) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.site-footer__built { margin: 0.35rem 0 0; color: #d9cfc4; font-size: 0.85rem; }

/* ---------- Home: key figures under the intro ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #8e001c, #e0567a 60%, #d9b38c) 1;
  color: var(--color-secondary-dark);
  font-size: 0.95rem;
}
.stats strong { color: var(--color-primary); font-size: clamp(1.4rem, 3.2vw, 1.75rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }

/* Home: offer cards led by their illustration (sets them apart from the icon cards above). */
.card--media { display: flex; flex-direction: column; padding-top: 0.75rem; }
.card--media img { width: 100%; height: auto; margin: 0 0 0.5rem; border-radius: 0.6rem; background: var(--color-muted-bg); }
.card--media h3 { margin: 0.5rem 0 0.5rem; color: var(--color-primary); font-size: 1.2rem; }
.card--media > :last-child { margin-top: auto; padding-top: 0.5rem; }

/* Footer: site map and LinkedIn */
.site-footer__nav ul { display: grid; grid-template-columns: repeat(2, auto); gap: 0.35rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__social { margin: 0 0 0.75rem; }
.site-footer__social a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; text-decoration: none; }
.site-footer__social a:hover span { text-decoration: underline; }
.site-footer__social a + a { margin-left: 1.25rem; }

/* Home hero: quick links to every service, right under the call-to-action buttons. */
.hero__services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: 44rem; }
.hero__services a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.25rem 0.9rem;
  border: 1px solid rgba(243, 217, 201, 0.45); border-radius: 999px;
  background: rgba(60, 0, 14, 0.35); color: #fff; font-size: 0.92rem; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(2px);
}
.hero__services a:hover { border-color: #d9b38c; background: rgba(60, 0, 14, 0.6); }
.hero__services a:focus-visible { outline-color: #fff; }

/* Présentation / About: the company motto under the intro. */
.page-motto { margin: 1.25rem 0 0; padding: 0.35rem 0 0.35rem 1rem; border-left: 3px solid #d9b38c; color: var(--color-primary); font-size: clamp(1.1rem, 2.6vw, 1.3rem); font-style: italic; font-weight: 600; }

/* Breadcrumb above the Services sub-navigation (partials/offers-nav.html). */
.breadcrumb { margin: -0.75rem 0 0.75rem; font-size: 0.9rem; color: var(--color-secondary-dark); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: #b5a796; }
.breadcrumb a { color: var(--color-secondary-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* News / AI watch (content/actualites.html, data/news.yml). */
@media (min-width: 48rem) { .page-intro--text { grid-template-columns: minmax(0, 46rem); } }
.news-edition { margin-bottom: 2.5rem; }
.news-edition > h2 { margin-bottom: 0; }
.news-item { display: flex; flex-direction: column; }
.news-item__meta { margin: 0; font-size: 0.85rem; color: var(--color-secondary-dark); }
.news-item__kind { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary); }
.news-item h3 { font-size: 1.1rem; line-height: 1.35; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: var(--color-primary); text-decoration: underline; }
.news-item__why { padding: 0.6rem 0.8rem; border-radius: 0.5rem; background: #f8f1ee; font-size: 0.95rem; }
.news-item__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font-size: 0.95rem; }
.news-note { font-size: 0.85rem; color: var(--color-secondary-dark); }
.home-news__list { display: grid; gap: 0.75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.home-news__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.9rem 1.1rem; border: 1px solid #ece6e0; border-radius: 0.75rem; background: #fff; }
.home-news__list .news-item__kind { font-size: 0.8rem; }
.home-news__list a { font-weight: 600; color: var(--color-text); text-decoration: none; }
.home-news__list a:hover { color: var(--color-primary); text-decoration: underline; }
.news-archive { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 2rem; }
.news-archive__label { margin: 0; font-weight: 600; color: var(--color-secondary-dark); }
.news-edition { scroll-margin-top: 1.5rem; }
.news-item__meta time { white-space: nowrap; }

/* Glossary (content/glossaire.html, en/glossary.html). */
.glossary-index { margin-bottom: 2rem; }
.glossary-index ul { flex-wrap: wrap; overflow: visible; }
.glossary { display: grid; gap: 1rem; margin: 0 0 2.5rem; }
.glossary > div { padding: 1.25rem 1.5rem; border: 1px solid #ece6e0; border-radius: 1rem; background: #fff; scroll-margin-top: 1.5rem; }
.glossary > div:target { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(142, 0, 28, 0.12); }
.glossary dt { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); }
.glossary dd { margin: 0.4rem 0 0; }
.glossary dd a { white-space: nowrap; margin-left: 0.25rem; }
.glossary dd a::after { content: " →"; }

/* Veille IA newsletter form (partials/newsletter-form.html). */
.newsletter { margin: 2rem 0 2.5rem; padding: 1.5rem; border-radius: 1rem; background: linear-gradient(135deg, #7a0018, #a3122f); color: #fff; }
.newsletter h2 { margin: 0 0 0.35rem; color: #fff; font-size: 1.35rem; }
.newsletter p { margin: 0 0 1rem; color: #f3d9c9; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter__row input { flex: 1 1 16rem; min-height: 2.75rem; padding: 0.5rem 0.9rem; border: 0; border-radius: 0.6rem; font: inherit; }
.newsletter__row .button { background: #fff; color: var(--color-primary); border-color: #fff; }
.newsletter__row .button:hover { background: #f3d9c9; }
.newsletter__consent { margin-top: 0.85rem; font-size: 0.85rem; color: #f3d9c9; }
.newsletter__consent a { color: #fff; }
.newsletter input:focus-visible, .newsletter .button:focus-visible { outline: 3px solid #d9b38c; outline-offset: 2px; }

/* Cookie banner (partials/consent.html, js/consent.js): Accept and Refuse look the same, as CNIL requires. */
.consent { position: fixed; inset: auto 0 0; z-index: 50; background: var(--color-text); color: #f3ede7; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2); }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.consent__text { flex: 1 1 28rem; margin: 0; font-size: 0.95rem; }
.consent__text a { color: #fff; }
.consent__actions { display: flex; gap: 0.75rem; }
.consent__btn { min-width: 7.5rem; min-height: 2.75rem; padding: 0.5rem 1.1rem; border: 2px solid #fff; border-radius: 0.6rem; background: #fff; color: var(--color-primary); font: inherit; font-weight: 600; cursor: pointer; }
.consent__btn:hover { background: #f3d9c9; border-color: #f3d9c9; }
.consent a:focus-visible, .consent__btn:focus-visible { outline: 3px solid #d9b38c; outline-offset: 2px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .link-button { color: #fff; }
.site-footer .link-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Guides (content/ia-ai-act.html, en/ai-act.html) and glossary term pages. */
.button--ghost { border-color: var(--color-primary); background: transparent; color: var(--color-primary); }
.button--ghost:hover { background: var(--color-muted-bg); }
.note { padding: 0.9rem 1.1rem; border-left: 4px solid var(--color-secondary); border-radius: var(--radius); background: var(--color-muted-bg); font-size: 0.95rem; }
.guide h3 { margin-top: 1.5rem; }
.guide-toc { margin: 0 0 2rem; padding: 1.1rem 1.5rem; border: 1px solid #ece6e0; border-radius: 1rem; background: #fff; }
.guide-toc h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.guide-toc ol { margin: 0; padding-left: 1.25rem; }
.guide-toc li { margin: 0.2rem 0; }
.guide [id] { scroll-margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.guide-table caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
.guide-table th, .guide-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #ece6e0; text-align: left; vertical-align: top; }
.guide-table th { background: var(--color-muted-bg); }
.guide-table td:first-child { white-space: nowrap; font-weight: 600; }
.guide-table .is-key td { background: #fbeef1; color: var(--color-primary-dark); font-weight: 700; }
.guide-levels { display: grid; gap: 0.75rem; margin: 1rem 0; }
.level { padding: 1rem 1.25rem; border: 1px solid #ece6e0; border-left: 6px solid var(--color-secondary); border-radius: var(--radius); background: #fff; }
.level dt, .level h3 { margin: 0 0 0.25rem; font-weight: 700; font-size: 1.05rem; }
.level dd { margin: 0; }
.level > :last-child { margin-bottom: 0; }
.level--ban { border-left-color: #1f1b17; }
.level--high { border-left-color: var(--color-primary); }
.level--limited { border-left-color: #d9b38c; }
.level--minimal { border-left-color: #7a9a6e; }
.guide-steps { padding-left: 1.5rem; }
.guide-steps li { margin: 0.5rem 0; }
.guide-steps li::marker { color: var(--color-primary); font-weight: 700; }
.faq details { margin: 0.5rem 0; padding: 0.75rem 1rem; border: 1px solid #ece6e0; border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details[open] summary { margin-bottom: 0.5rem; color: var(--color-primary); }
.faq details > p { margin: 0; }
.term-related { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.term-related a { display: inline-block; padding: 0.3rem 0.8rem; border: 1px solid #ece6e0; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.term-related a:hover { border-color: var(--color-primary); }

/* AI Act self-assessment (public/js/ai-act-check.js). */
.check { max-width: 46rem; margin-bottom: 2rem; }
.check fieldset { margin: 0 0 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid #ece6e0; border-radius: 1rem; background: #fff; }
.check legend { padding: 0 0.4rem; font-weight: 700; font-size: 1.05rem; }
.check__num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: 0.35rem; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 0.9rem; }
.check__hint { margin: 0 0 0.5rem; font-size: 0.92rem; color: var(--color-secondary-dark); }
.check label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.45rem 0.5rem; border-radius: var(--radius); cursor: pointer; }
.check label:hover { background: var(--color-muted-bg); }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--color-primary); }
.check__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check-privacy { font-size: 0.93rem; color: var(--color-secondary-dark); }
.check-result { max-width: 46rem; margin-bottom: 2.5rem; scroll-margin-top: 1rem; }
.check-result > h2 { outline: none; }
.check-result > div { margin: 0 0 1rem; }
.offer-highlight { margin-bottom: 1.25rem; }
.offer-highlight h3 { margin-top: 0.75rem; }
/* Home "Nouveau / New" block, target of the hero pill (#nouveau, #new). */
.home-new { scroll-margin-top: 1rem; }
.home-new__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 56rem) { .home-new__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.home-new__lead { height: 100%; }
.home-new__lead h3 { margin-top: 0.75rem; }
.home-new__label { margin: 0 0 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-secondary-dark); }
.home-new__free { grid-template-columns: 1fr !important; }
.home-new__free span a { font-weight: 600; }

/* Dev corner (content/dev*.html, data/dev.yml): tutorial list and code blocks. */
.dev-list { display: grid; gap: 1.25rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .dev-list { grid-template-columns: repeat(2, 1fr); } }
.dev-list .card { height: 100%; }
.dev-list h2 { font-size: 1.2rem; margin: 0.25rem 0 0.5rem; }
.dev-list h2 a { text-decoration: none; }
.dev-list h2 a:hover { text-decoration: underline; }
.dev-meta { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--color-secondary-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.tags li { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--color-muted-bg); color: var(--color-primary); font-size: 0.78rem; font-weight: 600; }
.prose code, .code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace; }
.prose :not(pre) > code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--color-muted-bg); font-size: 0.9em; overflow-wrap: anywhere; }
.code { margin: 1.25rem 0; padding: 1rem 1.25rem; overflow-x: auto; border-radius: var(--radius); background: #1f1b17; color: #f6f1ea; font-size: 0.86rem; line-height: 1.55; tab-size: 4; }
.code code { font: inherit; }
.code:focus-visible { outline-offset: 2px; }
.code-label { margin: 1.5rem 0 -0.75rem; font-size: 0.82rem; font-weight: 700; color: var(--color-secondary-dark); }

/* DORA self-assessment (public/js/dora-check.js): three-way answers on one line when there is room. */
.check--scored fieldset label { padding-block: 0.3rem; }
@media (min-width: 40rem) { .check__choices { display: flex; flex-wrap: wrap; gap: 0 1rem; } }
.check-score { font-size: 2.25rem; font-weight: 800; color: var(--color-primary); margin: 0 0 0.5rem; }

/* Printable checklist (regtech checklist pages). */
.printable-list { list-style: none; padding: 0; }
.printable-list li { position: relative; margin: 0 0 0.75rem; padding-left: 2rem; break-inside: avoid; }
.printable-list li::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--color-primary); border-radius: 4px; }
@media print {
  .site-header, .site-footer, .consent, .newsletter, .breadcrumb, .no-print, .cta { display: none !important; }
  body { background: #fff; }
  .site-main { padding: 0; }
  a { color: inherit; text-decoration: none; }
  h2 { break-after: avoid; }
}

@media (min-width: 64rem) { .home-new__free { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Dev corner: link to the tutorials' code on GitHub */
.dev-code { font-size: .95rem; color: var(--color-secondary-dark); }
.dev-code a { font-weight: 600; }


/* Free tools (data/tools.yml, partials/tools-grid; scripts *-check.js) */
.tools-grid { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.tools-grid__link { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.25rem; border: 1px solid #ece6e0; border-radius: 1rem; background: #fff; color: var(--color-text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tools-grid__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 20, 30, .12); }
.tools-grid__link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.tools-grid__audience { margin-top: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-secondary-dark); }
.tools-grid__title { font-weight: 700; font-size: 1.08rem; color: var(--color-primary); }
.tools-grid__summary { font-size: 0.93rem; line-height: 1.5; }
.tool-form { margin: 1.5rem 0 2rem; padding: 1.25rem; border: 1px solid #ece6e0; border-radius: 1rem; background: #fff; }
.tool-form__fields { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 40rem) { .tool-form__fields { grid-template-columns: repeat(3, 1fr); align-items: start; } .tool-form__fields--one { grid-template-columns: 1fr; } }
.tool-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.tool-form input:not([type=checkbox]), .tool-form select, .tool-form textarea { font: inherit; font-weight: 400; padding: 0.55rem 0.7rem; border: 1px solid var(--color-secondary); border-radius: var(--radius); min-height: 2.75rem; background: #fff; width: 100%; box-sizing: border-box; }
.tool-form textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; min-height: 12rem; }
.tool-form :focus-visible { outline: 3px solid var(--color-primary); outline-offset: 1px; }
.tool-form__choices { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.tool-form__choices legend { font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
.tool-form__choices label { flex-direction: row; align-items: center; gap: 0.45rem; font-weight: 400; min-height: 2.75rem; }
.tool-form__choices input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-primary); }
.tool-form__hint { font-weight: 400; font-size: 0.9rem; color: var(--color-secondary-dark); }
.tool-form__error { color: var(--color-primary); font-weight: 600; }
.tool-result { margin-bottom: 2rem; }
.tool-result h2 { outline: none; }
.tool-result__value { font-size: 1.15rem; }
.tool-verdict { font-weight: 700; padding: 0.6rem 0.9rem; border-radius: var(--radius); }
.tool-verdict--ok { background: #e9f4ec; color: #1d5b2e; }
.tool-verdict--ko { background: #fbe9ec; color: var(--color-primary); }
.fp-exact code { display: block; padding: 0.75rem 1rem; overflow-wrap: anywhere; word-break: break-all; }
.tool-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.tool-table th, .tool-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #ece6e0; text-align: left; vertical-align: top; }
.tool-table td:last-child { white-space: nowrap; }
.tool-table--numbers td, .tool-table--numbers thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.tool-table--numbers thead th { position: sticky; top: 0; background: #fff; }
.tool-note { font-size: 0.9rem; color: var(--color-secondary-dark); }
.table-scroll { overflow-x: auto; }
.table-scroll--tall { max-height: 32rem; overflow-y: auto; border: 1px solid #ece6e0; border-radius: var(--radius); }
.table-scroll--tall:focus-visible { outline: 3px solid var(--color-primary); }
.tool-print-only { display: none; }
@media print {
  .tool-print-only { display: block; font-size: 0.85rem; color: #555; }
  .page-intro .lead, .page-intro .eyebrow { display: none; }
  .table-scroll--tall { max-height: none; overflow: visible; border: 0; }
  .tool-table--numbers thead { display: table-header-group; }
  .tool-table tr { break-inside: avoid; }
}
.button--small { padding: 0.35rem 0.8rem; min-height: 2.25rem; font-size: 0.88rem; margin: 0.25rem 0.25rem 0 0; }
.tool-flag { display: inline-block; margin-left: 0.35rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: #fbe9ec; color: var(--color-primary); font-size: 0.82rem; font-weight: 700; }
.tool-form > label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; margin-bottom: 1rem; }
@media (min-width: 64rem) { .tool-form__fields:has(> label:nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }
.tools-group + .tools-group { margin-top: 0.5rem; }
.tools-group__title { font-size: 1.15rem; margin: 1.5rem 0 0; color: var(--color-secondary-dark); text-transform: uppercase; letter-spacing: .06em; }
.tools-group .tools-grid { margin-top: 0.75rem; margin-bottom: 1rem; }
/* Desktop: 9 menu items plus the language switch on one line */
@media (min-width: 48rem) { .site-nav ul { gap: 0.1rem; } .site-nav a, .site-nav summary { padding: 0.25rem 0.55rem; font-size: 1rem; } }
/* Main menu sections: <details> dropdowns (partials/nav.html, js/nav.js) */
.site-nav__group { position: relative; }
.site-nav summary { display: flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 2.75rem; padding: 0.25rem 0.55rem; border-radius: var(--radius); font-weight: 500; cursor: pointer; list-style: none; color: var(--color-text); }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: ""; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.site-nav details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.site-nav summary:hover { background: var(--color-muted-bg); color: var(--color-primary); }
.site-nav summary:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.site-nav summary.is-current { background: var(--color-primary); color: #fff; }
.site-nav .site-nav__panel { display: grid; gap: 0.1rem; padding: 0.4rem; margin: 0.25rem 0 0; background: #fff; border: 1px solid #ece6e0; border-radius: 0.75rem; box-shadow: 0 12px 28px rgba(60, 20, 30, .14); }
.site-nav .site-nav__panel a { justify-content: flex-start; white-space: nowrap; background: none; }
.site-nav .site-nav__panel a[aria-current="page"] { background: var(--color-muted-bg); color: var(--color-primary); font-weight: 700; }
@media (min-width: 48rem) { .site-nav .site-nav__panel { position: absolute; top: 100%; left: 0; z-index: 50; min-width: 13rem; } }
@media (max-width: 47.99rem) {
  .site-nav summary { padding: 0.25rem; font-size: 0.95rem; background: var(--color-muted-bg); }
  .site-nav__group:has(details[open]) { grid-column: 1 / -1; }
  .site-nav .site-nav__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .site-nav__panel a { white-space: normal; }
}
.home-block[id] { scroll-margin-top: 1.5rem; }
/* Expertise: hub cards link to the sub-pages (whole card clickable), related links under each card */
.card--link { position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 20, 30, .12); }
.card--link h3 a { color: var(--color-primary); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link h3 a:focus-visible { outline: none; }
.card--link:focus-within { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.card__links { margin-top: auto; padding-top: 0.75rem; font-size: 0.92rem; }
.expertise-more__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.reg-grid strong a { color: inherit; text-decoration-color: var(--color-primary); }
/* "Outils gratuits": a top-level menu link, outlined so it stands out */
.site-nav a.site-nav__accent { border: 1.5px solid var(--color-primary); color: var(--color-primary); font-weight: 600; }
.site-nav a.site-nav__accent:hover { background: var(--color-primary); color: #fff; }
.site-nav a.site-nav__accent[aria-current="page"] { color: #fff; }
/* Home: Bilan AI Act + DORA banner (#bilan / #review) and the hero pills */
.home-banner { display: grid; gap: 1rem 2rem; align-items: center; margin-top: 2.5rem; scroll-margin-top: 1rem; }
@media (min-width: 56rem) { .home-banner { grid-template-columns: minmax(0, 3fr) auto; } }
.home-banner__eyebrow { margin: 0 0 0.35rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f3d9b9; }
.home-banner h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.home-banner__text p:last-child { margin-bottom: 0; }
.home-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.home-tools { scroll-margin-top: 1rem; }
.home-new__list { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)) !important; }
.hero__news { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__news-tag--free { background: #fff; color: var(--color-primary); }
/* Phones: Menu button (js/nav.js); without JavaScript the menu stays visible */
.menu-toggle { display: none; }
@media (max-width: 47.99rem) {
  .menu-toggle:not([hidden]) { order: 2; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.25rem 0.9rem; border: 1px solid var(--color-primary); border-radius: var(--radius); background: #fff; color: var(--color-primary); font: inherit; font-weight: 600; cursor: pointer; }
  .menu-toggle:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
  .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__icon::before { top: -6px; }
  .menu-toggle__icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }
  .has-menu-toggle .lang-switch { margin-left: auto; }
  .has-menu-toggle .site-nav:not(.is-open) { display: none; }
}
@media (max-width: 47.99rem) {
  .has-menu-toggle .site-header__inner { column-gap: 0.5rem; }
  .has-menu-toggle .site-logo { gap: 0.5rem; }
  .has-menu-toggle .site-logo img { height: 44px; }
  .has-menu-toggle .lang-switch, .menu-toggle:not([hidden]) { padding: 0.25rem 0.65rem; }
}
@media (max-width: 47.99rem) { .has-menu-toggle .site-logo__name { font-size: 1.1rem; } }
@media (max-width: 24rem) { .has-menu-toggle .site-logo__name { letter-spacing: 0.12em; } .has-menu-toggle .lang-switch, .menu-toggle:not([hidden]) { padding: 0.25rem 0.5rem; } .menu-toggle:not([hidden]) { gap: 0.4rem; } }
/* Language switch: "FR" / "EN" on very small phones; the full name stays for screen readers */
.lang-switch__short { display: none; text-transform: uppercase; font-weight: 600; }
@media (max-width: 24rem) {
  .lang-switch__short { display: inline; }
  .lang-switch__long { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
/* Site search: lens in the header and its dialog (partials/search.html, js/search.js) */
.search-open { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--color-secondary); border-radius: var(--radius); background: #fff; color: var(--color-primary); cursor: pointer; }
.search-open[hidden] { display: none; }
.search-open:hover { border-color: var(--color-primary); background: var(--color-muted-bg); }
.search-open svg, .search__bar svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.search-open:focus-visible, .search__close:focus-visible, .search__chip:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.has-search-open { overflow: hidden; }
.search { width: min(42rem, calc(100vw - 2rem)); max-width: none; max-height: min(44rem, calc(100dvh - 2rem)); margin: max(1rem, 8vh) auto auto; padding: 0; overflow: hidden; border: 0; border-radius: 1rem; background: #fff; color: var(--color-text); box-shadow: 0 24px 60px rgba(60, 20, 30, .35); }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgba(45, 8, 16, .55); }
.search__bar { display: flex; flex: none; align-items: center; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 1.1rem; border-bottom: 2px solid var(--color-primary); color: var(--color-primary); }
.search__bar:focus-within { background: #fdf7f8; }
.search__bar input { flex: 1; min-width: 0; min-height: 2.75rem; padding: 0; border: 0; outline: 0; background: none; color: var(--color-text); font: inherit; font-size: 1.15rem; }
.search__bar input::placeholder { color: var(--color-secondary-dark); opacity: 1; }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__close { width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius); background: none; color: var(--color-secondary-dark); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.search__close:hover { background: var(--color-muted-bg); color: var(--color-primary); }
.search__body { flex: 1; min-height: 0; padding: 0.9rem 0.75rem; overflow-y: auto; overscroll-behavior: contain; }
.search__status { margin: 0 0.5rem 0.5rem; color: var(--color-secondary-dark); font-size: 0.95rem; overflow-wrap: anywhere; }
.search__status:empty { margin: 0; }
.search__title { margin: 0 0.5rem 0.4rem; color: var(--color-secondary-dark); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.search__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0.5rem 1.1rem; }
.search__chip { min-height: 2.5rem; padding: 0.25rem 0.9rem; border: 1px solid #e3c9ce; border-radius: 999px; background: #fdf7f8; color: var(--color-primary); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.search__chip:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.search__result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; align-items: center; padding: 0.65rem 0.75rem; border-left: 3px solid transparent; border-radius: var(--radius); color: var(--color-text); text-decoration: none; }
.search__result:hover { background: var(--color-muted-bg); }
.search__result[aria-selected="true"] { border-left-color: var(--color-primary); background: #fbeef1; }
.search__name { color: var(--color-primary); font-weight: 700; }
.search__section { padding: 0.1rem 0.6rem; border-radius: 999px; background: #f3ece4; color: var(--color-secondary-dark); font-size: 0.8rem; white-space: nowrap; }
.search__desc { grid-column: 1 / -1; font-size: 0.92rem; line-height: 1.4; }
.search mark { padding: 0 0.1em; border-radius: 0.2em; background: #f6e3c8; color: inherit; }
.search__help { flex: none; margin: 0; padding: 0.5rem 1.25rem; border-top: 1px solid #ece6e0; color: var(--color-secondary-dark); font-size: 0.82rem; }
@media (hover: none) { .search__help { display: none; } }
@media (max-width: 47.99rem) {
  .search-open { order: 2; margin-left: auto; }
  .has-menu-toggle .search-open:not([hidden]) + .lang-switch { margin-left: 0; }
  .search { margin-top: 1rem; }
}
/* Small phones: the Menu button keeps its name for screen readers, to leave room for the lens */
@media (max-width: 26rem) { .menu-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media print { .search { display: none !important; } }
/* Very small phones: the symbol alone (the link keeps its label), so the header stays on one line */
@media (max-width: 22rem) { .has-menu-toggle .site-logo__name { display: none; } }
/* Small laptops: tighter header, so that the lens doesn't push the language switch to a second line */
@media (min-width: 48rem) and (max-width: 74.99rem) {
  .site-header__inner { column-gap: 0.5rem; }
  .site-logo__name { font-size: 1.35rem; }
  .site-nav a, .site-nav summary { padding-inline: 0.4rem; }
}
.check-result h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.check fieldset[hidden] { display: none; }
#einvoice-check .check__actions { margin-top: 0; }
