/* ============================================================
   Noesis Systems: palette & type of the client portal (noesis-portal.vercel.app)
   ============================================================ */

:root {
  --bg-dark: #0a0a0b;          /* portal --color-bg-base */
  --bg-canvas: #4a4a4e;        /* video background (auto-resampled in JS) */
  --text-on-dark: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #2dd4bf;            /* portal --color-brand */
  --accent-dim: rgba(45, 212, 191, 0.35);
  --font-display: 'Geist', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Geist', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scrollbar-width: thin; scrollbar-color: var(--accent-dim) var(--bg-dark);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* keeps mobile Chrome from zooming the layout viewport out to fit the marquee */
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg-dark); }

em { font-style: italic; }

/* ---------------- Loader ---------------- */

#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#loader.done { opacity: 0; visibility: hidden; }

.loader-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.loader-brand span { color: var(--accent); font-style: italic; }

.loader-track {
  width: min(320px, 60vw); height: 1px;
  background: rgba(244, 244, 245, 0.15);
}
#loader-bar { width: 0%; height: 100%; background: var(--accent); transition: width 0.25s ease; }

#loader-percent {
  font-size: 0.7rem; letter-spacing: 0.25em;
  color: var(--text-muted);
}
#loader-percent::after { content: ' %'; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 3rem;
  /* opaque black bar: page content scrolls underneath instead of through the menu */
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.15rem;
  color: var(--text-on-dark); text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center;
}
.logo-mark { display: block; width: 30px; height: 30px; margin-right: 0.75rem; }
.logo span { font-weight: 400; color: var(--text-muted); }

.site-header nav { display: flex; gap: 2.4rem; }
.site-header nav a {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-on-dark); text-decoration: none; font-weight: 400;
  opacity: 0.75; transition: opacity 0.3s;
}
.site-header nav a:hover { opacity: 1; }
.site-header nav a[aria-current="page"] { opacity: 1; color: var(--accent); }

/* three-dot menu trigger — mobile only, no box */
.nav-dots {
  display: none;
  background: none; border: none;
  padding: 12px 0 12px 14px;
  color: var(--text-on-dark);
  cursor: pointer;
}
.nav-dots svg { display: block; }

/* ---------------- Mobile menu panel ---------------- */

.nav-scrim {
  position: fixed; inset: 0; z-index: 58;
  background: rgba(10, 10, 11, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.nav-panel {
  position: fixed; top: 0; right: 0; z-index: 60;
  min-width: 16rem;
  background: var(--bg-dark);
  border-left: 1px solid rgba(45, 212, 191, 0.18);
  border-bottom: 1px solid rgba(45, 212, 191, 0.18);
  padding: 5.4rem 2.8rem 3rem;
  display: flex; flex-direction: column; gap: 1.8rem;
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.nav-panel a {
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--text-on-dark); text-decoration: none;
}
.nav-panel a[aria-current="page"] { color: var(--accent); }

.nav-close {
  position: absolute; top: 1.3rem; right: 1.5rem;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer;
}
.nav-close span {
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 1px; background: var(--accent);
}
.nav-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* open state — driven by js/nav.js toggling .nav-open on <html> */
html.nav-open { overflow: hidden; }
html.nav-open .nav-scrim { opacity: 1; visibility: visible; }
html.nav-open .nav-panel { opacity: 1; transform: none; visibility: visible; }

@media (min-width: 769px) {
  .nav-scrim, .nav-panel { display: none; }
}

/* ---------------- Shared text atoms ---------------- */

.section-label {
  display: block;
  font-size: 0.7rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.section-body {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 34em;
}

.section-note {
  margin-top: 1.8rem;
  font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ---------------- Hero ---------------- */

.hero-standalone {
  position: relative; z-index: 10;
  height: 100vh; height: 100svh;
  background: var(--bg-dark);
  display: flex; align-items: center;
  padding: 0 5vw;
}

.hero-label { margin-bottom: 2.4rem; }

.hero-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 12.5vw, 12.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.hero-heading .word { display: inline-block; }
.hero-heading .word:last-child { color: var(--accent); font-style: italic; }

.hero-tagline {
  margin-top: 2.6rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 30em;
}

.scroll-indicator {
  position: absolute; bottom: 3rem; right: 5vw;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.3em;
  animation: indicator-drift 2.6s ease-in-out infinite;
}
@keyframes indicator-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------------- Canvas & overlay ---------------- */

.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
}
#canvas { width: 100%; height: 100%; display: block; }

#dark-overlay {
  position: fixed; inset: 0; z-index: 3;
  background: var(--bg-dark);
  opacity: 0; pointer-events: none;
}

/* ---------------- Marquee ---------------- */

.marquee-wrap {
  position: fixed; top: 50%; left: 0; right: 0; z-index: 2;
  transform: translateY(-50%);
  overflow: hidden; white-space: nowrap;
  opacity: 0; pointer-events: none;
}
.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400; font-style: italic;
  font-size: 13vw; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-dim);
}

/* ---------------- Scroll container & sections ---------------- */

#scroll-container { position: relative; z-index: 5; height: 850vh; }

.scroll-section {
  position: absolute; left: 0; right: 0;
  transform: translateY(-50%);   /* top set in JS at range midpoint */
  pointer-events: none;
}
.scroll-section a, .scroll-section .cta-button { pointer-events: auto; }

/* side zones: text lives in the outer 40%, brain owns the centre */
.align-left  { padding-left: 5vw;  padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }
.align-left .section-inner, .align-right .section-inner { max-width: 40vw; }

/* readability over the grey canvas — weight + subtle shadow, no boxes */
.section-content .section-heading { text-shadow: 0 2px 30px rgba(10, 10, 11, 0.55); }
.section-content .section-body    { text-shadow: 0 1px 18px rgba(10, 10, 11, 0.65); font-weight: 400; }

/* ---------------- Centered manifesto (over dark overlay) ---------------- */

.section-manifesto { text-align: center; padding: 0 8vw; }
.manifesto-inner { max-width: 60rem; margin: 0 auto; }
.manifesto-line {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 1.18;
  margin-bottom: 0;
}
.manifesto-line em { color: var(--accent); }

/* ---------------- CTA ---------------- */

.section-cta { text-align: center; padding: 0 8vw; }
.cta-inner { max-width: 56rem; margin: 0 auto; }
.cta-heading { font-size: clamp(3.2rem, 7vw, 7rem); line-height: 1.02; }
.cta-heading em { color: var(--accent); }
.section-cta .section-body { margin: 0 auto; color: var(--text-muted); }

.cta-button {
  display: inline-block;
  margin-top: 2.8rem;
  padding: 1.15rem 3.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--bg-dark); background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.35s ease, color 0.35s ease;
}
.cta-button:hover { background: transparent; color: var(--accent); }

.cta-note { margin-top: 2.4rem; }

/* ---------------- Manifeste page ---------------- */

.page-home,
.page-manifeste,
.page-contact,
.page-expertise,
.page-cgu {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(45, 212, 191, 0.05), transparent 60%),
    var(--bg-dark);
}

.manifeste-main { max-width: 68rem; margin: 0 auto; padding: 0 5vw; }

.manifeste-opening {
  min-height: 88vh; min-height: 88svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-top: 6rem;
}

.greek-mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 3rem;
}

.manifeste-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.55;
  max-width: 34em;
  color: var(--text-on-dark);
}

.manifeste-quote footer { margin-top: 2.4rem; margin-bottom: 0; }

.manifeste-section {
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  padding: 6.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 2rem 5rem;
  align-items: start;
}
.manifeste-section .section-label { margin-bottom: 0; padding-top: 0.6rem; }

.manifeste-copy .section-heading { margin-bottom: 2.2rem; }
.manifeste-copy .section-body { margin-bottom: 1.5rem; font-weight: 300; }
.manifeste-copy .section-body:last-child { margin-bottom: 0; }

.manifeste-lede {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: 30em;
  margin-bottom: 1.8rem;
}

.manifeste-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  color: var(--accent);
  margin-top: 2.6rem;
}

.manifeste-cta {
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  text-align: center;
  padding: 6.5rem 0 9rem;
}
.manifeste-cta .cta-button { margin-top: 0; }

.cta-button--ghost { background: transparent; color: var(--accent); }
.cta-button--ghost:hover { background: var(--accent); color: var(--bg-dark); }

/* ---------------- Expertise page ---------------- */

.expertise-opening {
  min-height: 62vh; min-height: 62svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding-top: 10rem;
}
.expertise-opening .section-heading {
  font-size: clamp(3rem, 6.5vw, 6rem);
  margin-bottom: 2.4rem;
}
.expertise-intro {
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 300; line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 36em;
  margin: 0 auto 5rem;
}

/* list with an accent hairline marker (Expertise: content examples) */
.dash-list { list-style: none; margin: 0 0 1.5rem; max-width: 34em; }
.dash-list li {
  position: relative;
  padding-left: 1.8rem; margin-bottom: 1rem;
  font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.7;
}
.dash-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 0.9rem; height: 1px; background: var(--accent);
}
.dash-list strong { font-weight: 500; }
.manifeste-copy .accent-block { margin-top: 2.6rem; }

/* ---------------- CGU page ---------------- */

.cgu-opening { text-align: center; padding: 11rem 0 5.5rem; }
.cgu-opening .section-heading {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  margin-bottom: 1.6rem;
}
.cgu-updated {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}

.cgu-article { padding: 4.5rem 0; }

.cgu-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.cgu-body p {
  font-size: 0.97rem; font-weight: 300;
  line-height: 1.8;
  color: var(--text-on-dark);
  max-width: 65ch;
  margin-bottom: 1.6rem;
}
.cgu-body p:last-child { margin-bottom: 0; }
.cgu-body strong { font-weight: 500; }
.clause-ref { color: var(--accent); font-weight: 500; }

/* sub-heading inside an article (e.g. clause 6.3 of the privacy policy) */
.cgu-subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  line-height: 1.4;
  margin: 3rem 0 1.6rem;
  max-width: 65ch;
}

.cgu-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); transition: border-color 0.3s; }
.cgu-link:hover { border-color: var(--accent); }

/* key-value data (mentions légales) */
.legal-dl { max-width: 65ch; margin: 0 0 1.6rem; }
.legal-dl > div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.legal-dl > div:first-child { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.legal-dl dt {
  font-size: 0.62rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-muted);
  padding-top: 0.4rem;
}
.legal-dl dd { margin: 0; font-size: 0.97rem; font-weight: 300; line-height: 1.7; color: var(--text-on-dark); }

/* bulleted requirements list */
.cgu-body ul { max-width: 65ch; margin: 0 0 1.6rem; padding-left: 1.4rem; list-style: none; }
.cgu-body ul li {
  font-size: 0.97rem; font-weight: 300; line-height: 1.8;
  color: var(--text-on-dark);
  margin-bottom: 0.7rem;
  position: relative;
}
.cgu-body ul li::before { content: "—"; color: var(--accent); position: absolute; left: -1.4rem; }

/* set-apart notice (avertissement pénal) */
.cgu-body .legal-warning {
  border-left: 1px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1.6rem;
  color: var(--text-muted);
}

/* ---------------- Contact page ---------------- */

.contact-main { max-width: 920px; margin: 0 auto; padding: 11rem 5vw 0; }

.contact-intro { text-align: center; }
.contact-intro .section-heading { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 0; }

/* Cal.com inline embed — bare, no box, lives on the anthracite page */
.cal-embed-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
  background: transparent;
}
.cal-embed-wrap #my-cal-inline { min-height: 620px; }

.contact-footer {
  margin-top: 6.5rem;
  padding: 4.5rem 0 7rem;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  text-align: center;
}
.contact-footer p {
  font-size: 0.95rem; line-height: 1.7;
  color: var(--text-muted);
  max-width: 30em;
  margin: 0 auto 2.4rem;
}

.linkedin-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--text-on-dark); text-decoration: none;
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.linkedin-link svg { display: block; color: var(--accent); }
.linkedin-link:hover { color: var(--accent); }

/* ---------------- Home page ---------------- */
/* index.html no longer loads the canvas engine (js/app.js stays dormant):
   the page background is the hero's fallback, no video behind it.
   Story order: who we are -> needs -> services -> method -> objections -> CTA */

.home-hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 0 4rem;
}
.home-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 21em;
  margin-bottom: 2.2rem;
  text-wrap: balance;
}
.home-title em, .home-cta em { color: var(--accent); }

.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; margin-top: 0.8rem; }
.home-actions .cta-button { margin-top: 0; }

/* section divider that draws itself in (transform only, see reduced-motion below) */
.home-rule {
  border: 0; height: 1px; margin: 0;
  background: rgba(45, 212, 191, 0.18);
  transform-origin: left center;
}
.home-rule.reveal { opacity: 1; transform: scaleX(0); transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.home-rule.reveal.visible { transform: scaleX(1); }

.home-section { padding: 7rem 0; }
.home-section .section-heading { font-size: clamp(2.2rem, 3.6vw, 3.6rem); max-width: 20ch; text-wrap: balance; }

.subheading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

/* needs: numbered rows (the numbers are referenced by the services below) */
.home-rows { list-style: none; margin-top: 3.5rem; counter-reset: need; }
.home-rows li {
  counter-increment: need;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 1rem 4rem; align-items: baseline;
  padding: 2.4rem 0;
}
.home-rows li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.home-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.25;
}
.home-statement::before {
  content: counter(need);
  display: block; margin-bottom: 0.7rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent);
}

/* services: needs and services read as one argument, so no divider between them */
.home-needs { padding-bottom: 2.5rem; }
.home-services { padding-top: 2.5rem; }
.home-service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 5rem; align-items: start;
  padding: 3.5rem 0;
}
.home-service + .home-service { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.home-kicker { font-size: 0.85rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
.home-service-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.home-service--main .home-service-title { font-size: clamp(2.1rem, 3.2vw, 3rem); }
.accent-block { border-left: 1px solid var(--accent); padding: 0.4rem 0 0.4rem 2.6rem; }
.accent-promise {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  color: var(--accent);
}
.home-link {
  display: inline-flex; gap: 0.6rem; align-items: baseline;
  margin-top: 2rem; padding-bottom: 0.3rem;
  font-size: 1rem; font-weight: 500;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.3s ease;
}
.home-link span { transition: transform 0.3s ease; }
.home-link:hover { border-color: var(--accent); }
.home-link:hover span { transform: translateX(4px); }

.home-steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  margin-top: 4rem;
}
.home-steps li { counter-increment: step; }
.home-steps li::before {
  content: counter(step);
  display: block; margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.6rem; line-height: 1;
  color: var(--accent);
}

.home-faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.07); max-width: 52rem; }
.home-faq details:first-of-type { margin-top: 2rem; }
.home-faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  padding: 1.7rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  cursor: pointer; list-style: none;
  transition: color 0.3s ease;
}
.home-faq summary:hover { color: var(--accent); }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; color: var(--accent); font-size: 1.5em; line-height: 1; transition: transform 0.3s ease; }
.home-faq details[open] summary::after { transform: rotate(45deg); }
.home-faq details .section-body { padding-bottom: 1.8rem; }

.home-cta { border-top: 0; }
.home-cta .section-heading { font-size: clamp(2.8rem, 5.5vw, 5.4rem); }
.home-cta .section-body { margin: 0 auto 2.8rem; color: var(--text-muted); }

/* ---------------- Global footer ---------------- */

.site-footer {
  position: relative; z-index: 6; /* above index canvas (1) and dark overlay (3) */
  background: var(--bg-dark);
  margin-top: 7rem;
}
.site-footer-inner {
  max-width: 68rem; margin: 0 auto;
  padding: 4.5rem 5vw 5.5rem;
  border-top: 1px solid rgba(45, 212, 191, 0.16);
  display: flex; flex-direction: column; align-items: center;
  gap: 2.6rem;
  text-align: center;
}

.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 0.9rem; }
.footer-legal a {
  font-size: 0.65rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--text-on-dark); }
.footer-legal a[aria-current="page"] { color: var(--accent); }
.footer-legal a + a::before { content: "·"; color: var(--accent-dim); margin: 0 1.3rem; }

.footer-copy { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--text-muted); }
.footer-note { font-size: 0.66rem; letter-spacing: 0.06em; color: rgba(161, 161, 170, 0.65); margin-top: 0.7rem; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .home-rule.reveal { transform: none; }
}

/* ---------------- Mobile ---------------- */

@media (max-width: 768px) {
  .site-header { padding: 1rem 1.4rem; justify-content: flex-end; }
  /* logo centred on mobile, the menu trigger stays on the right */
  .site-header .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .site-header nav { display: none; }
  .nav-dots { display: inline-flex; }

  .hero-standalone { padding: 0 6vw; }
  /* longest word "L'intelligence," must fit the viewport, else mobile
     Chrome zooms the layout viewport out and clips the header */
  .hero-heading { font-size: clamp(2.5rem, 11vw, 4.5rem); }

  #scroll-container { height: 550vh; }

  /* collapse side zones: centered text on a soft dark backdrop */
  .align-left, .align-right { padding: 0 7vw; text-align: center; }
  .align-left .section-inner, .align-right .section-inner {
    max-width: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.55) 55%, transparent 78%);
    padding: 3rem 1.4rem;
  }
  .section-body { margin: 0 auto; }

  .marquee-text { font-size: 19vw; }
  .scroll-indicator { right: 6vw; bottom: 2rem; }

  .manifeste-section { grid-template-columns: 1fr; padding: 4.5rem 0; }
  .manifeste-section .section-label { padding-top: 0; }
  .manifeste-cta { padding: 4.5rem 0 6rem; }

  .home-hero { padding: 6.5rem 0 3.5rem; }
  .home-actions .cta-button, .home-cta .cta-button { width: 100%; text-align: center; padding: 1.1rem 1rem; letter-spacing: 0.14em; }
  .home-section { padding: 4.5rem 0; }
  .home-needs { padding-bottom: 1.5rem; }
  .home-services { padding-top: 1.5rem; }
  .home-rows li, .home-service, .home-steps { grid-template-columns: 1fr; }
  .home-rows li { padding: 1.8rem 0; }
  .home-service { padding: 2.5rem 0; }
  .accent-block { padding-left: 1.6rem; }
  .home-steps { margin-top: 3rem; }

  .contact-main { padding-top: 8.5rem; }
  .cal-embed-wrap { padding: 3rem 0 1.5rem; }

  .cgu-opening { padding: 8.5rem 0 3.5rem; }
  .cgu-article { padding: 3.5rem 0; }
  .legal-dl > div { grid-template-columns: 1fr; }
}
