/* ============================================================
   Fiduciaire Fiduschwab SA — Design System
   ============================================================ */

/* ---------- Self-hosted Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('./assets/fonts/cormorant-garamond-latin.woff2?v=20260817') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/cormorant-garamond-italic-latin.woff2?v=20260817') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('./assets/fonts/inter-latin.woff2?v=20260817') format('woff2');
}

/* ---------- Custom Properties ---------- */
:root {
  /* Palette */
  --clr-bg:        #f5f2ed;
  --clr-bg-alt:    #eee9e0;
  --clr-surface:   #ffffff;
  --clr-text:      #1a1a1a;
  --clr-text-muted:#6b6560;
  --clr-accent:    #4f6b4d;
  --clr-accent-light: #6f8b6b;
  --clr-accent-rgb: 79, 107, 77;
  --clr-border:    #d9d3ca;
  --clr-dark:      #1a1a1a;
  --clr-dark-soft: #2c2926;

  /* Typography */
  --ff-heading:    'Cormorant Garamond', 'Georgia', serif;
  --ff-body:       'Inter', 'Helvetica Neue', sans-serif;
  --fs-hero:       clamp(2.4rem, 5vw, 4rem);
  --fs-h1:         clamp(2rem, 4vw, 3rem);
  --fs-h2:         clamp(1.6rem, 3vw, 2.2rem);
  --fs-h3:         clamp(1.2rem, 2vw, 1.5rem);
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --lh-body:       1.7;

  /* Spacing */
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      2rem;
  --space-lg:      4rem;
  --space-xl:      6rem;
  --space-2xl:     8rem;

  /* Widths */
  --max-width:     1140px;
  --max-width-narrow: 800px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --duration:      0.4s;
  --duration-slow: 0.7s;
  --reveal-duration: var(--duration-slow);
  --reveal-offset: 30px;

  /* Nav */
  --nav-height:    80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(16, 16, 16, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease-smooth);
  z-index: 998;
}

body.nav-open::before {
  opacity: 1;
}

::selection {
  background-color: rgba(var(--clr-accent-rgb), 0.18);
  color: var(--clr-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  padding: 0.7rem 1rem;
  border-radius: 2px;
  background: var(--clr-surface);
  color: var(--clr-text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.text-center {
  text-align: center;
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--clr-dark);
  color: var(--clr-bg);
}

.section--alt {
  background-color: var(--clr-bg-alt);
}

.section__label {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  max-width: 620px;
  line-height: var(--lh-body);
}

.section__subtitle--continuation {
  margin-top: var(--space-sm);
}

.section__header {
  margin-bottom: var(--space-lg);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: rgba(245, 242, 237, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  box-shadow: 0 1px 0 rgba(217, 211, 202, 0);
  transition: background-color 0.65s var(--ease-smooth),
              box-shadow 0.65s var(--ease-smooth),
              backdrop-filter 0.65s var(--ease-smooth),
              -webkit-backdrop-filter 0.65s var(--ease-smooth);
}

.nav--scrolled {
  background-color: rgba(245, 242, 237, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.page--home .nav {
  --nav-progress: 0;
  background-color: rgba(245, 242, 237, calc(0.9 * var(--nav-progress)));
  backdrop-filter: blur(calc(14px * var(--nav-progress)));
  -webkit-backdrop-filter: blur(calc(14px * var(--nav-progress)));
  box-shadow: 0 1px 0 rgba(217, 211, 202, var(--nav-progress));
  transition: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: -0.01em;
  line-height: 0;
  transition: color 0.65s var(--ease-smooth),
              opacity 0.65s var(--ease-smooth);
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__logo-text {
  line-height: 1;
}

.nav__logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav__logo-image,
.footer__logo-image {
  display: block;
  flex-shrink: 0;
}

.nav__logo-image {
  width: clamp(160px, 18vw, 220px);
  height: auto;
  overflow: visible;
}

.nav__logo-image text {
  font-family: var(--ff-heading);
}

.nav__logo-image text:first-of-type {
  font-weight: 400;
  letter-spacing: 0.18em;
}

.nav__logo-image text:nth-of-type(2) {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__logo-image text:nth-of-type(3) {
  font-family: var(--ff-body);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.footer__logo-image {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.65s var(--ease-smooth);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--clr-accent);
  transition: width var(--duration) var(--ease-out);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--clr-accent);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--clr-text);
  transition: transform var(--duration) var(--ease-smooth),
              opacity var(--duration) var(--ease-smooth),
              background-color 0.65s var(--ease-smooth);
}

.page--home .nav .nav__logo,
.page--home .nav .nav__link {
  color: rgba(
    calc(245 - 219 * var(--nav-progress)),
    calc(242 - 216 * var(--nav-progress)),
    calc(237 - 211 * var(--nav-progress)),
    calc(0.92 + 0.08 * var(--nav-progress))
  );
}

.page--home .nav .nav__logo {
  transition: opacity var(--duration) var(--ease-smooth);
}

.page--home .nav .nav__link {
  transition: none;
}

.page--home .nav .nav__hamburger span {
  background-color: rgba(
    calc(245 - 219 * var(--nav-progress)),
    calc(242 - 216 * var(--nav-progress)),
    calc(237 - 211 * var(--nav-progress)),
    calc(0.92 + 0.08 * var(--nav-progress))
  );
  transition: transform var(--duration) var(--ease-smooth),
              opacity var(--duration) var(--ease-smooth);
}

.page--home .nav .nav__link--active {
  color: rgba(
    calc(245 - 166 * var(--nav-progress)),
    calc(242 - 135 * var(--nav-progress)),
    calc(237 - 160 * var(--nav-progress)),
    1
  );
}

.page--home .nav .nav__link::after {
  background-color: rgba(
    calc(245 - 166 * var(--nav-progress)),
    calc(242 - 135 * var(--nav-progress)),
    calc(237 - 160 * var(--nav-progress)),
    calc(0.85 + 0.15 * var(--nav-progress))
  );
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav__overlay {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(0.72);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.18) 0%,
    rgba(26, 26, 26, 0.08) 42%,
    rgba(26, 26, 26, 0.34) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.15;
  color: var(--clr-bg);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero__text {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(245, 242, 237, 0.8);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.hero__cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-bg);
  background-color: rgba(var(--clr-accent-rgb), 0.08);
  border: 1px solid rgba(245, 242, 237, 0.35);
  padding: 0.9rem 2.2rem;
  transition: color var(--duration) var(--ease-smooth),
              border-color var(--duration) var(--ease-smooth);
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(var(--clr-accent-rgb), 0.92);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-smooth);
}

.hero__cta:hover {
  color: var(--clr-bg);
  border-color: var(--clr-accent-light);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration) var(--ease-smooth);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* ---------- Divider ---------- */
.divider {
  width: 60px;
  height: 1px;
  background-color: var(--clr-accent);
  border: none;
  margin: 3rem auto;
}

.page--about .section--divider-after,
.page--team .section--divider-after {
  padding-bottom: var(--space-lg);
}

.page--about .section--divider-before,
.page--team .section--divider-before {
  padding-top: var(--space-lg);
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  --service-hover-duration: 0.42s;
  --service-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--clr-surface);
  border: 1px solid rgba(var(--clr-accent-rgb), 0.08);
  transition: box-shadow var(--service-hover-duration) var(--service-hover-ease),
              border-color var(--service-hover-duration) var(--service-hover-ease);
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(var(--clr-accent-rgb), 0.12);
}

.service-card__image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--service-hover-duration) var(--service-hover-ease);
}

.service-card__body {
  padding: var(--space-md);
}

.service-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--clr-text);
}

.service-card__text {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.service-card__text--continuation {
  margin-top: var(--space-sm);
}

.service-card__list {
  display: grid;
  gap: 0.45rem;
  margin-top: var(--space-sm);
  padding-left: 1.1rem;
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.service-card__list li {
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: -1rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background-color: var(--clr-accent);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(var(--clr-accent-rgb), 0.12);
  background-color: var(--clr-bg);
  color: rgba(26, 26, 26, 0.38);
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
  will-change: transform;
}

.marquee__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__track span {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  font-family: var(--ff-heading);
  font-size: clamp(0.92rem, 1.5vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__track span::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: 1.5rem;
  border: 1px solid rgba(var(--clr-accent-rgb), 0.3);
  transform: rotate(45deg);
}

@keyframes marquee-scroll {
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.contact__info,
.form-group,
.contact__submit-row {
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  font-size: var(--fs-body);
  transition: border-color var(--duration) var(--ease-smooth),
              box-shadow var(--duration) var(--ease-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb), 0.14);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-note {
  min-height: 1.5em;
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.form-help {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--clr-text-muted);
}

.form-error {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #9f3025;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  border-radius: 2px;
  cursor: pointer;
  transition: color var(--duration) var(--ease-smooth),
              border-color var(--duration) var(--ease-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-smooth);
}

.btn--primary {
  background-color: var(--clr-accent);
  color: var(--clr-bg);
  border: 1px solid var(--clr-accent);
}

.btn--primary::before {
  background-color: var(--clr-accent-light);
}

.btn--primary:hover {
  border-color: var(--clr-accent-light);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: wait;
  opacity: 0.72;
}

.btn--outline {
  background-color: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn--outline::before {
  background-color: rgba(var(--clr-accent-rgb), 0.08);
}

.btn--outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.btn--outline:hover::before {
  opacity: 1;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__map {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  height: clamp(320px, 34vw, 440px);
  background-color: var(--clr-bg-alt);
  border: 1px solid rgba(var(--clr-accent-rgb), 0.12);
}

.contact__map.leaflet-container {
  position: relative;
  width: 100%;
  z-index: 0;
  font-family: var(--ff-body);
}

.contact__map .leaflet-pane,
.contact__map .leaflet-tile,
.contact__map .leaflet-marker-icon,
.contact__map .leaflet-marker-shadow,
.contact__map .leaflet-tile-container,
.contact__map .leaflet-pane > svg,
.contact__map .leaflet-pane > canvas,
.contact__map .leaflet-zoom-box,
.contact__map .leaflet-image-layer,
.contact__map .leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.contact__map .leaflet-tile,
.contact__map .leaflet-marker-icon,
.contact__map .leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.contact__map .leaflet-tile {
  max-width: none;
  max-height: none;
  filter: contrast(0.9) brightness(1.04) saturate(0.88);
}

.contact__map .leaflet-control-container .leaflet-top,
.contact__map .leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.contact__map .leaflet-top {
  top: 0;
}

.contact__map .leaflet-right {
  right: 0;
}

.contact__map .leaflet-bottom {
  bottom: 0;
}

.contact__map .leaflet-left {
  left: 0;
}

.contact__map .leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
  float: left;
  clear: both;
  margin: 10px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact__map-pin {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--clr-accent);
  border: 3px solid var(--clr-surface);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: rotate(-45deg);
}

.contact__map-pin::after {
  content: '';
  position: absolute;
  inset: 5px;
  background-color: var(--clr-surface);
  border-radius: 50%;
}

.contact__map .leaflet-control-attribution {
  font-size: 0.66rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.contact__detail:has(.contact__address-list) {
  align-items: flex-start;
}

.contact__detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--clr-accent);
}

.contact__address-list {
  display: grid;
  gap: 0.75rem;
}

.contact__address {
  display: block;
  line-height: 1.55;
}

.contact__address-label {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.thanks__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- About / Histoire ---------- */
.histoire__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.histoire__text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-sm);
}

.histoire__text p:last-child {
  margin-bottom: 0;
}

.histoire__image {
  border-radius: 2px;
  overflow: hidden;
}

.histoire__image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.histoire__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Valeur Ajoutée ---------- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
}

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.75rem;
  background-color: rgba(255, 255, 255, 0.82);
  border-radius: 2px;
  border: 1px solid rgba(var(--clr-accent-rgb), 0.12);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.04);
}

.value-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #4f6b4d;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card__icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(var(--clr-accent-rgb), 0.16);
  background-color: rgba(var(--clr-accent-rgb), 0.05);
}

.value-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.value-card__text {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

#value-interlocuteur {
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
}

#value-reactivite {
  grid-column: 7 / -1;
  grid-row: 1;
}

#value-confidentialite {
  grid-column: 7 / -1;
  grid-row: 2;
}

#value-standards {
  grid-column: 1 / span 6;
  grid-row: 3;
}

#value-relation {
  grid-column: 7 / -1;
  grid-row: 3;
}

.value-card--featured {
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
  background-color: #f8f4ee;
}

.value-card--featured::after {
  content: "";
  width: 72px;
  height: 1px;
  margin-top: var(--space-md);
  background-color: rgba(var(--clr-accent-rgb), 0.28);
}

.value-card--featured .value-card__title {
  max-width: 12ch;
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.value-card--featured .value-card__text {
  max-width: 42ch;
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  position: relative;
  background-color: var(--clr-surface);
  padding: 2.6rem 2.2rem 2.2rem;
  border-radius: 2px;
  border: 1px solid var(--clr-border);
  text-align: left;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #4f6b4d;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-card__quote {
  font-family: var(--ff-heading);
  font-size: 1.16rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.68;
  color: var(--clr-text);
  margin: 0 0 1.45rem;
  position: relative;
  flex: 1;
}

.testimonial-card__quote::before {
  content: '\201C';
  font-size: 3.1rem;
  color: var(--clr-accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.testimonial-card__name {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clr-text);
}

.testimonial-card__name::before {
  content: '';
  width: 2rem;
  height: 1px;
  background-color: var(--clr-accent);
  flex: 0 0 auto;
}

/* ---------- Team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
}

.team-card__photo-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--clr-border);
  transition: border-color var(--duration) var(--ease-smooth);
}

.team-card:hover .team-card__photo-wrap {
  border-color: var(--clr-accent);
}

.team-card__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.team-card:hover .team-card__photo-wrap img {
  transform: scale(1.06);
}

.team-card__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--clr-accent);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
  background-color: var(--clr-bg);
  border-bottom: 1px solid rgba(var(--clr-accent-rgb), 0.12);
}

.page-hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: var(--space-xs);
}

.page-hero__subtitle {
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--clr-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 0;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease-smooth);
}

.footer__link:hover {
  color: var(--clr-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 1px solid var(--clr-border);
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer__privacy-link {
  color: var(--clr-text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  transition: color var(--duration) var(--ease-smooth),
              text-decoration-color var(--duration) var(--ease-smooth);
}

.footer__privacy-link:hover,
.footer__privacy-link:focus-visible {
  color: var(--clr-accent);
  text-decoration-color: currentColor;
}

.footer__contact-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--clr-accent);
}

/* ---------- Privacy modal ---------- */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.privacy-modal:target,
.privacy-modal--open {
  display: flex;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.62);
}

.privacy-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  background: var(--clr-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.privacy-modal__panel:focus {
  outline: none;
}

.privacy-modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--clr-text-muted);
}

.privacy-modal__eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.privacy-modal__title {
  margin: 0 2.5rem 1.25rem 0;
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.1;
}

.privacy-modal__body {
  color: var(--clr-text-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.privacy-modal__body h3 {
  margin: 1.2rem 0 0.25rem;
  color: var(--clr-text);
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.privacy-modal__body p + p {
  margin-top: 0.75rem;
}

.privacy-modal__body a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.privacy-modal__updated {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border);
  font-size: 0.78rem;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--reveal-duration) var(--ease-smooth),
              transform var(--reveal-duration) var(--ease-smooth);
}

.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-offset));
}

.js .reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

.js #prestations .service-card.reveal {
  opacity: 0;
  transform: none;
  transition: box-shadow var(--service-hover-duration) var(--service-hover-ease),
              border-color var(--service-hover-duration) var(--service-hover-ease);
}

.js #prestations .service-card.reveal.reveal--visible {
  opacity: 1;
}

#prestations .service-card.reveal.reveal--visible:hover,
#prestations .service-card.reveal.reveal--visible:focus-within {
  border-color: rgba(var(--clr-accent-rgb), 0.16);
  box-shadow: 0 20px 60px rgba(var(--clr-accent-rgb), 0.12);
}

#prestations .service-card.reveal.reveal--delay-1 { transition-delay: 0s; }
#prestations .service-card.reveal.reveal--delay-2 { transition-delay: 0s; }
#prestations .service-card.reveal.reveal--delay-3 { transition-delay: 0s; }
#prestations .service-card.reveal.reveal--delay-4 { transition-delay: 0s; }

@media (min-width: 769px) {
  #prestations .service-card.reveal:nth-child(-n + 2) {
    --service-reveal-duration: 0.6s;
  }

  #prestations .service-card.reveal:nth-child(n + 3) {
    transition-delay: 0.06s;
  }
}

/* Hero text stagger */
.hero__content .reveal {
  transform: translateY(calc(var(--reveal-offset) * 0.66));
}

/* Hero stats — editorial hairline grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  position: relative;
  border-top: 1px solid rgba(245, 242, 237, 0.34);
  margin-bottom: 0;
}

.hero-stats__item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.6vh, 1.25rem);
  padding: clamp(1.5rem, 3.4vh, 2.25rem) clamp(0.75rem, 1.6vw, 1.6rem) clamp(0.35rem, 0.8vh, 0.6rem);
}

.hero-stats__item + .hero-stats__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.05rem, 2.4vh, 1.6rem);
  bottom: clamp(0.4rem, 0.8vh, 0.65rem);
  width: 1px;
  background-color: rgba(245, 242, 237, 0.18);
}

.hero-stats__value {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 400;
  font-size: clamp(2.65rem, 4.4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: rgba(245, 242, 237, 0.98);
  white-space: nowrap;
}

.hero-stats__label {
  display: block;
  font-family: var(--ff-body);
  font-size: clamp(0.62rem, 0.78vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.72);
  line-height: 1.4;
  white-space: nowrap;
  overflow: visible;
}

.page--home-3 .hero {
  --hero-top-space: calc(var(--nav-height) + clamp(0.35rem, 1.2vh, 0.8rem));
  --hero-bottom-space: clamp(1.5rem, 3.5vh, 2.5rem);
  --hero-safe-bottom: env(safe-area-inset-bottom, 0px);
  --hero-min-height: 44rem;
  min-height: max(100svh, var(--hero-min-height));
  align-items: flex-start;
  padding-top: var(--hero-top-space);
  padding-bottom: calc(var(--hero-bottom-space) + var(--hero-safe-bottom));
}

.page--home-3 {
  --hero-stats-progress: 0;
  --hero-stats-shell-progress: 0;
  --hero-intro-opacity: 0.88;
  --hero-intro-y: 12px;
  --hero-intro-scale: 0.99;
  --hero-stats-panel-opacity: 0.04;
  --hero-stats-panel-y: 20px;
  --hero-stats-panel-scale: 0.985;
  --hero-stats-border-alpha: 0;
  --hero-stats-shadow-alpha: 0;
  --hero-stats-bg-alpha: 0.04;
}

.page--home-3 .hero__content {
  --hero-content-block: calc(max(100svh, var(--hero-min-height)) - var(--hero-top-space) - var(--hero-bottom-space) - var(--hero-safe-bottom));
  --hero-gap-title: clamp(1.15rem, 2.8vh, 1.75rem);
  --hero-gap-text: clamp(1.35rem, 3.2vh, 2rem);
  --hero-gap-stats: clamp(1.6rem, 3.8vh, 2.5rem);
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  row-gap: var(--hero-gap-stats);
  min-height: max(32rem, var(--hero-content-block));
  width: min(100%, 920px);
  max-width: 920px;
}

.page--home-3 .hero__intro {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: var(--hero-gap-title);
  width: min(100%, 780px);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.page--home-3 .hero__intro::before {
  content: '';
  flex: 1 1 clamp(4rem, 14vh, 10rem);
  max-height: clamp(6rem, 20vh, 14rem);
}

.page--home-3 .hero__intro .hero__title,
.page--home-3 .hero__intro .hero__text {
  margin-bottom: 0;
}

.page--home-3 .hero__intro .hero__title {
  margin-top: 0;
}

.hero__intro-tail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: var(--hero-gap-text);
}

.page--home-3 .hero__intro-tail {
  --hero-intro-tail-progress: var(--hero-stats-shell-progress, 0);
  transform: translateY(calc(var(--hero-intro-tail-progress) * -34px));
  opacity: calc(1 - var(--hero-intro-tail-progress));
  will-change: transform, opacity;
  transition: none;
}

.page--home-3 .hero__intro .hero__text {
  width: min(100%, 78%);
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

.page--home-3 .hero__stats-reveal {
  position: relative;
  align-self: end;
  width: 100%;
  min-height: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.page--home-3.hero-stats-visible .hero__stats-reveal {
  pointer-events: auto;
}

.page--home-3 .hero__stats-reveal .hero-stats {
  opacity: var(--hero-stats-panel-opacity);
  transform: translateY(var(--hero-stats-panel-y)) scale(var(--hero-stats-panel-scale));
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  border-top-color: rgba(245, 242, 237, calc(0.12 + 0.22 * var(--hero-stats-shell-progress, 0)));
}

@media (min-width: 769px) {
  .page--home-3 .hero__content {
    --hero-gap-title: clamp(1.25rem, 2.6vh, 1.75rem);
    --hero-gap-text: clamp(1.5rem, 3vh, 2rem);
    --hero-gap-stats: clamp(1.75rem, 3.4vh, 2.5rem);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 2200px) and (min-height: 1500px) {
  :root {
    --fs-hero: clamp(3.4rem, 4vw, 5.6rem);
    --fs-h1: clamp(2.7rem, 3vw, 4.1rem);
    --fs-h2: clamp(2rem, 2.2vw, 3rem);
    --fs-h3: clamp(1.4rem, 1.45vw, 1.85rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --space-md: 2.4rem;
    --space-lg: 5rem;
    --space-xl: 7.5rem;
    --space-2xl: 10rem;
    --max-width: 1320px;
    --max-width-narrow: 920px;
    --nav-height: 92px;
  }

  .nav__logo-image {
    width: clamp(200px, 12vw, 260px);
    height: auto;
  }

  .hero__content,
  .page--home-3 .hero__intro {
    max-width: 960px;
  }

  .page--home-3 .hero__content {
    width: min(100%, 1120px);
    max-width: 1120px;
  }

  .hero__text {
    max-width: 740px;
    font-size: clamp(1.05rem, 0.85vw, 1.22rem);
  }

  .page--home-3 .hero__intro .hero__text {
    width: min(100%, 820px);
  }

  .contact__map {
    height: clamp(420px, 30vw, 560px);
  }
}

@media (min-width: 2600px) and (min-height: 1800px) {
  html {
    font-size: clamp(19px, 0.58vw, 22px);
  }

  :root {
    --fs-hero: clamp(3.7rem, 2.25vw, 5.2rem);
    --fs-h1: clamp(2.85rem, 1.85vw, 4rem);
    --fs-h2: clamp(2.15rem, 1.45vw, 2.9rem);
    --fs-h3: clamp(1.45rem, 0.95vw, 1.8rem);
    --fs-body: 1.08rem;
    --fs-small: 0.96rem;
    --space-sm: 1.15rem;
    --space-md: 2.65rem;
    --space-lg: 5.6rem;
    --space-xl: 8.4rem;
    --space-2xl: 11rem;
    --max-width: 2160px;
    --max-width-narrow: 1280px;
    --nav-height: 112px;
  }

  .nav__logo-image {
    width: clamp(240px, 9vw, 320px);
    height: auto;
  }

  .hero__content,
  .page--home-3 .hero__intro {
    max-width: 1640px;
  }

  .page--home-3 .hero__content {
    width: min(100%, 1840px);
    max-width: 1840px;
  }

  .hero__text {
    max-width: 1040px;
    font-size: clamp(1.12rem, 0.72vw, 1.32rem);
  }

  .page--home-3 .hero__intro .hero__text {
    width: min(100%, 1040px);
  }

  .hero-stats__item {
    padding: 2.4rem 1.8rem 0.6rem;
  }

  .hero-stats__value {
    font-size: clamp(3rem, 2.4vw, 4.6rem);
  }

  .hero-stats__label {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    max-width: 20ch;
  }

  .service-card__body,
  .value-card,
  .testimonial-card {
    padding: 2.85rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 1.05rem 1.2rem;
  }

  .btn {
    padding: 1.15rem 2.8rem;
  }

  .team-card__photo-wrap {
    width: 300px;
    height: 300px;
  }

  .contact__map {
    height: clamp(620px, 24vw, 800px);
  }
}

@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #value-interlocuteur {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }

  #value-reactivite,
  #value-confidentialite,
  #value-standards,
  #value-relation {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  body::before,
  .nav,
  .hero__bg,
  .nav__overlay {
    left: -1px;
    right: -1px;
  }

  .section,
  .page-hero,
  .footer,
  .marquee {
    width: calc(100% + 2px);
    margin-left: -1px;
    margin-right: -1px;
  }

  .page--about .divider,
  .page--team .divider {
    margin: 1.5rem auto;
  }

  .page--about .section--divider-after,
  .page--team .section--divider-after {
    padding-bottom: 2.5rem;
  }

  .page--about .section--divider-before,
  .page--team .section--divider-before {
    padding-top: 2.5rem;
  }

  :root {
    --nav-height: 64px;
    --reveal-duration: 0.54s;
    --reveal-offset: 14px;
  }

  .nav {
    transition: background-color 0.28s var(--ease-smooth),
                box-shadow 0.28s var(--ease-smooth),
                backdrop-filter 0.28s var(--ease-smooth),
                -webkit-backdrop-filter 0.28s var(--ease-smooth);
  }

  .page--home .nav {
    background-color: rgba(245, 242, 237, calc(0.92 * var(--nav-progress)));
    backdrop-filter: blur(calc(8px * var(--nav-progress)));
    -webkit-backdrop-filter: blur(calc(8px * var(--nav-progress)));
  }

  .reveal--delay-1 { transition-delay: 0.06s; }
  .reveal--delay-2 { transition-delay: 0.12s; }
  .reveal--delay-3 { transition-delay: 0.18s; }
  .reveal--delay-4 { transition-delay: 0.24s; }

  .nav__logo {
    gap: 0.5rem;
  }

  .nav__logo-mark {
    width: 32px;
    height: 32px;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__links {
      position: fixed;
      top: 0;
      right: 0;
      width: min(280px, 100vw);
      max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    background-color: var(--clr-bg);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--duration) var(--ease-smooth),
                visibility 0s linear var(--duration);
      box-shadow: -10px 0 40px rgba(0,0,0,0.08);
      z-index: 1000;
    }

    .page--home .nav__links .nav__link {
      color: var(--clr-text);
    }

    .page--home .nav__links .nav__link--active {
      color: var(--clr-accent);
    }

    .page--home .nav__links .nav__link::after {
      background-color: var(--clr-accent);
    }

  .nav__links--open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease-smooth),
                visibility var(--duration) var(--ease-smooth);
    z-index: 999;
  }

  .nav__overlay--visible {
    opacity: 1;
    visibility: visible;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats__item {
    padding-inline: clamp(0.4rem, 2vw, 0.85rem);
  }

  .hero-stats__item + .hero-stats__item::before {
    display: none;
  }

  .hero-stats__item:nth-child(2n)::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 0.55rem;
    width: 1px;
    background-color: rgba(245, 242, 237, 0.18);
  }

  .hero-stats__item:nth-child(n+3) {
    padding-top: clamp(1.25rem, 2.6vh, 1.75rem);
  }

  .hero-stats__item:nth-child(n+3)::after {
    content: "";
    display: block;
    position: absolute;
    left: clamp(0.4rem, 2vw, 0.85rem);
    right: clamp(0.4rem, 2vw, 0.85rem);
    top: 0;
    height: 1px;
    background-color: rgba(245, 242, 237, 0.18);
  }

  .hero-stats__label {
    font-size: clamp(0.5rem, 1.55vw, 0.62rem);
    letter-spacing: 0.08em;
  }

  .page--home-3 .hero__content {
    --hero-gap-title: clamp(0.9rem, 2.2vh, 1.35rem);
    --hero-gap-text: clamp(1rem, 2.6vh, 1.5rem);
    --hero-gap-stats: clamp(1.2rem, 3vh, 1.8rem);
  }

  .marquee__track span {
    padding: 1rem 1.5rem;
  }

  .marquee__track span::after {
    margin-left: 1.5rem;
  }

  .page--home-3 .hero__intro .hero__text {
    width: min(100%, 84%);
  }

  .page--home-3 .hero {
    --hero-min-height: 54rem;
    --hero-top-space: calc(var(--nav-height) + 0.12rem);
    --hero-bottom-space: 1.45rem;
  }

  #prestations .service-card.reveal {
    --service-hover-duration: 0.32s;
    clip-path: none;
    transition: box-shadow var(--service-hover-duration) var(--service-hover-ease),
                border-color var(--service-hover-duration) var(--service-hover-ease);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .contact__form,
  .contact__info,
  .form-group input,
  .form-group textarea {
    width: 100%;
    max-width: 100%;
  }

  .contact__submit-row {
    align-items: stretch;
  }

  #contact-submit {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .histoire__content {
    grid-template-columns: 1fr;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-card {
    min-height: 0;
    padding: 1.5rem;
  }

  .value-card--featured {
    padding: 1.75rem 1.5rem;
  }

  .value-card--featured .value-card__title,
  .value-card--featured .value-card__text {
    max-width: none;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .team-card__photo-wrap {
    width: 180px;
    height: 180px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__contact-row {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page--home-3 .hero {
    --hero-min-height: 58rem;
    --hero-top-space: var(--nav-height);
    --hero-bottom-space: 1.2rem;
  }

  .page--home-3 .hero__content {
    --hero-gap-title: clamp(0.75rem, 2vh, 1.1rem);
    --hero-gap-text: clamp(0.85rem, 2.2vh, 1.25rem);
    --hero-gap-stats: clamp(1rem, 2.6vh, 1.5rem);
  }

  .page--home-3 .hero__intro {
    padding-block: 0;
  }

  .page--home-3 .hero__intro::before {
    flex: 1 1 clamp(2rem, 8vh, 5rem);
    max-height: clamp(3rem, 12vh, 7rem);
  }

  .page--home-3 .hero__intro .hero__text {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats__item {
    padding-inline: clamp(0.3rem, 1.6vw, 0.7rem);
  }

  .hero-stats__item:nth-child(n+3)::after {
    left: clamp(0.3rem, 1.6vw, 0.7rem);
    right: clamp(0.3rem, 1.6vw, 0.7rem);
  }

  .hero-stats__value {
    font-size: clamp(2rem, 8.4vw, 2.6rem);
  }

  .hero-stats__label {
    font-size: clamp(0.46rem, 2.1vw, 0.58rem);
    letter-spacing: 0.06em;
    line-height: 1.4;
  }
}

@media (max-width: 359px) {
  .page--home-3 .hero {
    --hero-min-height: 64rem;
  }

  .hero-stats__item {
    padding-inline: clamp(0.25rem, 1.4vw, 0.55rem);
  }

  .hero-stats__label {
    font-size: clamp(0.42rem, 2vw, 0.5rem);
    letter-spacing: 0.04em;
  }

  .hero-stats__value {
    font-size: clamp(1.75rem, 7.8vw, 2.2rem);
  }
}

@media (max-height: 820px) and (orientation: landscape) {
  .page--home-3 .hero {
    --hero-min-height: 39rem;
    --hero-top-space: calc(var(--nav-height) + 0.15rem);
    --hero-bottom-space: clamp(0.8rem, 2vh, 1.35rem);
  }

  .page--home-3 .hero__content {
    --hero-gap-title: clamp(0.6rem, 1.6vh, 1rem);
    --hero-gap-text: clamp(0.7rem, 1.8vh, 1.1rem);
    --hero-gap-stats: clamp(0.85rem, 2.2vh, 1.35rem);
  }

  .page--home-3 .hero__intro {
    padding-top: 0;
  }

  .page--home-3 .hero__intro::before {
    flex: 1 1 clamp(1rem, 4vh, 3rem);
    max-height: clamp(2rem, 8vh, 4rem);
  }

  .page--home-3 .hero__intro .hero__title {
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    line-height: 1.08;
  }

  .page--home-3 .hero__intro .hero__text {
    width: min(100%, 660px);
    font-size: clamp(0.88rem, 1.5vw, 1rem);
    line-height: 1.6;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats__item {
    padding: 1rem 0.75rem 0.4rem;
    gap: 0.55rem;
  }

  .hero-stats__item + .hero-stats__item::before {
    top: 0.85rem;
    bottom: 0.45rem;
  }

  .hero-stats__item:nth-child(2n)::before,
  .hero-stats__item:nth-child(n+3)::after {
    display: none;
  }

  .hero-stats__item:nth-child(n+3) {
    padding-top: 1rem;
  }

  .hero-stats__value {
    font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  }

  .hero-stats__label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .reveal--visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .skip-link,
  .nav,
  .nav__links,
  .nav__overlay,
  .nav__hamburger span {
    transition-duration: 0.01ms !important;
  }

  .marquee__inner {
    animation: none;
  }

  .page--home-3 {
    --hero-intro-opacity: 1;
    --hero-intro-y: 0px;
    --hero-intro-scale: 1;
    --hero-intro-tail-y: 0px;
    --hero-stats-shell-progress: 1;
    --hero-stats-panel-opacity: 1;
    --hero-stats-panel-y: 0px;
    --hero-stats-panel-scale: 1;
    --hero-stats-border-alpha: 0.18;
    --hero-stats-shadow-alpha: 0.12;
    --hero-stats-bg-alpha: 1;
  }

  .page--home-3 .hero__intro,
  .page--home-3 .hero__intro-tail,
  .page--home-3 .hero__stats-reveal .hero-stats {
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 600px) {
  .footer__legal {
    justify-content: center;
  }

  .privacy-modal {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .privacy-modal__panel {
    max-height: calc(100dvh - 1.5rem);
    padding: 1.5rem 1.25rem 1.75rem;
  }
}
