/* ==========================================================================
   Amarres Software — feuille de style
   Mobile-first. Aucune dépendance externe : polices auto-hébergées (/fonts).
   ========================================================================== */

/* ---------- Polices (variables, sous-ensemble latin) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Charte ---------- */
:root {
  --navy: #0B2A3A;          /* Bleu profond */
  --navy-deep: #071F2B;
  --navy-soft: #123447;
  --orange: #FF8A00;        /* Orange accent */
  --orange-hover: #FF9D2E;
  --orange-text: #A65800;   /* orange lisible sur fond clair (contraste AA) */
  --cream: #F5F5F2;         /* Crème */
  --cream-alt: #ECEBE6;
  --white: #FFFFFF;
  --slate: #5B6B6F;         /* Gris ardoise */
  --mist: #A9B6BC;          /* texte secondaire sur fond sombre */
  --line-light: rgba(11, 42, 58, .12);
  --line-dark: rgba(245, 245, 242, .14);

  --font-title: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(11, 42, 58, .05), 0 18px 40px -18px rgba(11, 42, 58, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--orange); color: var(--navy); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Icônes (sprite SVG, trait fin) ---------- */
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Éléments communs ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange);
}

.rule {
  display: block;
  width: 48px; height: 2px;
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--orange); color: var(--navy); }
.btn--primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 10px 24px -10px rgba(255, 138, 0, .6);
}

.btn--ghost { border-color: rgba(245, 245, 242, .35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245, 245, 242, .06); }

.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  width: 50px;
  height: auto;
  aspect-ratio: 128 / 90;
  --mark-chevron: currentColor;
  --mark-eight: var(--orange);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .3em;
  margin-right: -.3em;
}
.brand__sub {
  margin-top: .4rem;
  font-family: var(--font-title);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .63em;
  margin-right: -.63em;
  color: var(--mist);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   créerait un bloc conteneur et casserait le menu mobile en position fixe. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 42, 58, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  transition: background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header.is-scrolled::before { background: rgba(7, 31, 43, .96); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: inherit;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile : panneau plein écran sous l'en-tête */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: var(--navy-deep);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.site-nav__link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-decoration: none;
}
.site-nav .btn { margin-top: 2rem; align-self: flex-start; }

/* Sans JavaScript, le menu reste visible et utilisable */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  padding: 0;
  background: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
html:not(.js) .site-nav__link { border: 0; padding: .25rem 0; font-size: .95rem; }
html:not(.js) .site-nav .btn { display: none; }
html:not(.js) .header__inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: .75rem; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav,
  html:not(.js) .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .site-nav__link,
  html:not(.js) .site-nav__link {
    position: relative;
    padding: .375rem 0;
    border: 0;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: rgba(245, 245, 242, .82);
    transition: color .2s var(--ease);
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .site-nav__link:hover,
  .site-nav__link.is-active { color: var(--cream); }
  .site-nav__link:hover::after,
  .site-nav__link.is-active::after { transform: scaleX(1); }
  .site-nav .btn,
  html:not(.js) .site-nav .btn { display: inline-flex; margin: 0 0 0 .5rem; }
}
/* En haut de page, la navigation passe par les points de l'arc du hero ; le menu classique
   revient en bandeau dès qu'on a défilé la moitié du hero (classe posée par js/main.js). */
@media (min-width: 960px) {
  .js .site-header .site-nav {
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
  }
  .js .site-header:not(.is-past-hero) .site-nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100svh - var(--header-h)), 820px);
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* L'illustration est ancrée à droite : sur mobile on garde le sommet et le ponton */
.hero__art svg,
.hero__art img {
  position: absolute;
  top: 0;
  /* sur petit écran on décale un peu pour garder le sommet ET le bollard */
  right: calc(-1 * clamp(0px, (600px - 100vw) * .44, 110px));
  width: auto;
  min-width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1440 / 800;
  object-fit: cover;
  object-position: right center;
}
/* premier plan (l'amarre) au-dessus du voile, sous le texte */
.hero__art--front { z-index: 0; pointer-events: none; }

/* Navigation du hero : les points de l'arc mènent aux sections (grand écran) */
.hero-nav { display: none; }
@media (min-width: 960px) {
  .hero-nav { display: inline; }
  .hero-nav a { pointer-events: auto; cursor: pointer; outline: none; }
  .hero-nav__hit { fill: transparent; }
  .hero-nav__dot {
    fill: #1A3D4F;
    stroke: var(--orange);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill .25s var(--ease), transform .25s var(--ease);
  }
  .hero-nav .is-current .hero-nav__dot { fill: var(--orange); }
  .hero-nav__label {
    fill: rgba(245, 245, 242, .78);
    font-family: var(--font-title);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .2em;
    transition: fill .25s var(--ease);
  }
  .hero-nav a:hover .hero-nav__dot,
  .hero-nav a:focus-visible .hero-nav__dot { fill: var(--orange); transform: scale(1.4); }
  .hero-nav a:hover .hero-nav__label,
  .hero-nav a:focus-visible .hero-nav__label { fill: var(--orange); }
  .hero-nav a:focus-visible .hero-nav__hit { stroke: var(--orange); stroke-dasharray: 2 3; }
  .hero-nav__halo { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: 0; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .hero-nav { opacity: 0; animation: pop .6s 1.6s var(--ease) forwards; }
  /* les points pulsent doucement, à tour de rôle, pour inviter au clic */
  .hero-nav__halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: nav-pulse 2.8s var(--ease) infinite;
    animation-delay: calc(2s + var(--d, 0s));
  }
}
@keyframes nav-pulse {
  0% { opacity: .75; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(3.2); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 42, 58, .78) 0%, rgba(11, 42, 58, .55) 45%, rgba(11, 42, 58, .88) 100%);
}
.hero__content {
  position: relative;
  max-width: 44rem;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .rule { margin-top: 2rem; }
.hero__lead {
  margin-top: 1.5rem;
  max-width: 33rem;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  color: rgba(245, 245, 242, .84);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

@media (min-width: 900px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 42, 58, .97) 0%, rgba(11, 42, 58, .86) 34%, rgba(11, 42, 58, .25) 62%, rgba(11, 42, 58, 0) 78%),
      linear-gradient(0deg, rgba(11, 42, 58, .55) 0%, rgba(11, 42, 58, 0) 30%);
  }
}

/* Tracé orange qui se dessine à l'arrivée */
@media (prefers-reduced-motion: no-preference) {
  .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.6s .3s var(--ease) forwards;
  }
  .draw--late { animation-delay: 1s; }
  .pop {
    opacity: 0;
    animation: pop .6s 1.6s var(--ease) forwards;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--dark { background: var(--navy); color: var(--cream); }
/* « Notre approche » : section plus compacte */
.section.blueprint { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head h2,
.about__body h2,
.contact-card h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.9rem, 1.25rem + 2.5vw, 3rem);
}
.section__lead {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--slate);
}
.section--dark .section__lead { color: var(--mist); }

/* ---------- Labels suisses ---------- */

.labels {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
}
.labels__head { max-width: 46rem; }
.labels__head h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
}
.labels__list {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.label {
  display: grid;
  gap: .9rem;
  align-content: start;
}
.label__link { justify-self: start; transition: opacity .2s var(--ease); }
.label__link:hover { opacity: .75; }
.label__logo { width: auto; height: 44px; }
.label p { max-width: 20rem; font-size: .95rem; color: var(--slate); }

@media (min-width: 900px) {
  .labels__list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .label { padding-inline: 2rem; border-left: 1px solid var(--line-light); }
  .label:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: 1.75rem;
  width: 32px; height: 2px;
  background: var(--orange);
  transition: width .45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { width: calc(100% - 3.5rem); }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  --accent: var(--orange);
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-top: 1.5rem; font-size: 1.4rem; }
.card p { margin-top: .6rem; font-size: .975rem; color: var(--slate); }
.card ul {
  display: grid;
  gap: .55rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
  font-size: .9rem;
}
.card p + ul { margin-top: 1.5rem; }
.card li {
  display: flex;
  align-items: baseline;
  gap: .65rem;
}
.card li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  transform: translateY(-1px);
}

.extras {
  display: grid;
  gap: 1.75rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-light);
}
.extras__title { font-size: 1rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
@media (min-width: 640px) {
  .extras { grid-template-columns: repeat(2, 1fr); }
  .extras__title { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .extras { grid-template-columns: repeat(4, 1fr); }
}
.extra {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  --accent: var(--orange);
}
.extra .icon { width: 30px; height: 30px; margin-top: .1rem; }
.extra__title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
}
.extra__text { display: block; margin-top: .2rem; font-size: .9rem; color: var(--slate); }

/* ---------- Cordage au défilement (créé par js/main.js, ≥ 1100px) ---------- */
main { position: relative; }
.rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 10; /* au-dessus des sections, sous l'en-tête (50) */
}
.rope-on .rope { display: block; transition: opacity .9s var(--ease); }
.rope.is-done { opacity: 0; }
html:not(.rope-on) .rope { display: none; }

/* ---------- Réalisations ---------- */
.realisations { padding-block: clamp(4rem, 8vw, 6.5rem); }
.clients {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) { .clients { grid-template-columns: repeat(3, 1fr); } }
.client {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.client:hover { border-color: rgba(255, 138, 0, .45); box-shadow: var(--shadow); }
.client__mark {
  display: grid;
  place-items: center;
  height: 96px;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 1.25rem;
  box-sizing: content-box;
}
.client__logo,
.client__product {
  width: auto;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
}
.client__logo { height: 52px; max-width: 100%; object-fit: contain; }
.client__logo--tall { height: 88px; }
.client:hover .client__logo,
.client:hover .client__product { filter: none; opacity: 1; }
.client__name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
}
.client__project {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
.client__project picture { display: block; }
.client__product { height: 22px; }
.client__icon { width: 22px; border-radius: 4px; }
.client__project span {
  font-family: var(--font-title);
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}
.client__desc { margin-top: .6rem; font-size: .92rem; line-height: 1.5; color: var(--slate); }

/* ---------- Approche (section sombre, façon plan technique) ---------- */
.blueprint {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(245, 245, 242, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 242, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.approach__intro {
  display: grid;
  gap: 2.5rem;
  margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
.approach__intro .section__head { margin-bottom: 0; }
/* avec le cordage, de la place sous le plan pour que l'amarre reparte en courbe douce */
.rope-on .approach__intro { margin-bottom: 7rem; }
.blueprint__art {
  width: 100%;
  max-width: 230px;
  height: auto;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .approach__intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    align-items: center;
    gap: 4rem;
  }
  .blueprint__art { max-width: none; margin-right: 0; }
}

.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
}
.steps::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--orange), rgba(255, 138, 0, .25) 80%, rgba(255, 138, 0, 0));
}
.step { position: relative; padding-left: 2.75rem; }
.step__node {
  position: absolute;
  left: 0; top: .3rem;
  width: 15px; height: 15px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  background: var(--navy);
}
.step:first-child .step__node { background: var(--orange); }
.step__num {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--orange);
}
.step h3 { margin-top: .4rem; font-size: 1.35rem; }
.step p { margin-top: .6rem; font-size: .95rem; color: var(--mist); max-width: 22rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps::before {
    left: 0; right: 0; top: 7px; bottom: auto;
    width: auto; height: 1px;
    background: linear-gradient(90deg, var(--orange), rgba(255, 138, 0, .15));
  }
  .step { padding-left: 0; padding-top: 2.75rem; }
  .step__node { top: 0; }
}


/* ---------- À propos ---------- */
.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 6fr; }
}
.about__media { position: relative; }
.about__media::after {
  /* petit cadre décalé, esprit « tirage » */
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
}
.about__media { isolation: isolate; margin-right: 1.25rem; margin-bottom: 1.25rem; }
.about__body p:not(.eyebrow) { margin-top: 1.25rem; color: var(--slate); font-size: 1.05rem; }
.about__body h2 + p { margin-top: 1.5rem; }
/* « À propos » : de l'espace avant la carte contact, pour que le passage du cordage vers la marge
   soit sorti de l'écran quand le 8 du logo se dessine */
#a-propos { padding-bottom: clamp(6rem, 13vw, 11rem); }

/* signature : portrait rond, nom et fonction, sous le texte */
.about__sign {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.about__sign picture { flex: none; }
.about__portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--orange);
}
.about__body .about__signer {
  display: grid;
  margin-top: 0;
  line-height: 1.35;
}
.about__signer strong { font-family: var(--font-title); font-size: 1.05rem; font-weight: 500; color: var(--navy); }
.about__signer span { font-size: .85rem; color: var(--slate); }

.values {
  display: grid;
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values dt {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 500;
}
/* grand écran : chaque titre tient sur une ligne ; ailleurs il peut passer à la ligne */
@media (min-width: 1200px) { .values dt { white-space: nowrap; } }
.values dt::before { content: "> "; color: var(--orange-text); font-weight: 600; }
.values dd { margin-top: .25rem; font-size: .88rem; line-height: 1.5; color: var(--slate); }

/* Plan technique du bollard (fond quadrillé, comme « Notre approche ») */
.plan {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(245, 245, 242, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(245, 245, 242, .05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #1B4256 0%, var(--navy) 55%, #3F5560 120%);
}
.plan svg { width: 100%; height: 100%; }
.ab-bars-fill rect { fill-opacity: 0; }
/* Avec le cordage : le plan reste estompé, puis s'éclaire au passage de l'amarre
   (le chantier quand elle atteint le portail, l'application quand elle y entre). */
.rope-on .plan .ab-pic,
.rope-on .plan .ab-app { opacity: .5; transition: opacity .9s var(--ease), filter .9s var(--ease); }
.rope-on .plan.is-lit-pic .ab-pic,
.rope-on .plan.is-lit-app .ab-app { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 138, 0, .3)); }
.ab-bars-fill rect { transition: fill-opacity .7s var(--ease); transition-delay: calc(var(--i, 0) * .09s); }
.rope-on .plan.is-lit-app .ab-bars-fill rect,
html:not(.rope-on) .ab-bars-fill rect { fill-opacity: .4; }
.plan--portrait { aspect-ratio: 4 / 5; }
@media (min-width: 600px) and (max-width: 899px) {
  .plan--portrait { aspect-ratio: 16 / 10; }
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 3rem;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border-radius: 10px;
  background: var(--navy);
  color: var(--cream);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 0, .12), transparent 45%),
    linear-gradient(rgba(245, 245, 242, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 245, 242, .04) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.contact-card .eyebrow { color: var(--mist); }
.contact-card__text { margin-top: 1.25rem; max-width: 34rem; font-size: 1.075rem; color: var(--mist); }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}
.contact-aside { display: none; }
@media (min-width: 600px) {
  .contact-aside { display: flex; }
}
.contact-aside {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.contact-aside__mark {
  width: 140px;
  aspect-ratio: 128 / 90;
  --mark-chevron: var(--cream);
  --mark-eight: var(--orange);
}
.contact-aside__tagline {
  font-family: var(--font-title);
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.contact-aside__note { font-size: .875rem; color: var(--mist); }

/* Logo « en avant » : >8> — les chevrons poussent vers la droite */
.mark-forward { overflow: visible; }
.mark-forward__back,
.mark-forward__front { stroke: var(--cream); }
.mark-forward__eight,
.mark-forward__route { stroke: var(--orange); }
/* Sur grand écran, le 8 est dessiné par le cordage (js/main.js) ; les chevrons attendent qu'il soit fermé */
.mark-forward__route { display: none; }
.rope-on .mark-forward__route { display: inline; }
.rope-on .mark-forward__eight { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* le chevron arrière arrive de la gauche ; le chevron de tête apparaît sur place
     puis pousse vers l'avant (il ne recule jamais, donc ne croise pas le 8) */
  .js .mark-forward__back {
    opacity: 0;
    transform: translateX(-12px);
    transition: transform .9s var(--ease) .45s, opacity .6s var(--ease) .45s;
  }
  .js .is-visible .mark-forward__back { opacity: 1; transform: none; }
  .js .mark-forward__front { opacity: 0; }
  .js .is-visible .mark-forward__front { animation: mark-push 1.2s var(--ease) .7s both; }
  /* au survol du bloc, le chevron de tête repart d'un cran (sur le groupe, pour ne pas rejouer l'entrée) */
  .contact-aside:hover .mark-forward__hover { animation: mark-nudge .9s var(--ease); }
  .rope-on .is-visible .contact-aside:not(.is-tied) .mark-forward__back { opacity: 0; transform: translateX(-12px); }
  .rope-on .is-visible .contact-aside:not(.is-tied) .mark-forward__front { opacity: 0; animation: none; }
  /* une fois le 8 fermé par le cordage, les chevrons apparaissent… */
  /* puis pulsent doucement, en continu, décalés d'un demi-temps : > puis > */
  .rope-on .is-visible .is-tied .mark-forward__back { animation: mark-blink 2.6s ease-in-out 1.1s infinite; }
  .rope-on .is-visible .is-tied .mark-forward__front { animation: mark-push 1.2s var(--ease) .7s both, mark-blink 2.6s ease-in-out 2.4s infinite; }
}
@keyframes mark-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes mark-push {
  0% { opacity: 0; transform: none; }
  35% { opacity: 1; transform: translateX(9px); }
  100% { opacity: 1; transform: none; }
}
@keyframes mark-nudge {
  0%, 100% { transform: none; }
  40% { transform: translateX(9px); }
}

@media (min-width: 960px) {
  .contact-card { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 4rem; }
  .contact-aside {
    align-items: center;
    text-align: center;
    padding: 0 0 0 4rem;
    border-top: 0;
    border-left: 1px solid var(--line-dark);
  }
  .contact-aside__mark { width: 170px; }
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: 2.25rem 1.5rem;
  background: var(--navy-deep);
  color: var(--mist);
  font-size: .9rem;
}
.site-footer .brand { color: var(--cream); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.footer__nav a,
.footer__bottom a {
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__nav a:hover,
.footer__bottom a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: .825rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Labels : logos officiels sur fond blanc (ni rouge ni noir ne se lisent sur le bleu) */
.footer__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  font-size: .8rem;
}
.footer__labels-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.5rem;
  padding: .6rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
}
.footer__labels-logos img { width: auto; height: 22px; }

/* petit écran : logo et menu sur une ligne, labels en dessous */
@media (max-width: 1099px) {
  .footer__labels { order: 3; flex-basis: 100%; }
}

/* ---------- Page mentions légales ---------- */
.legal { padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal__inner { max-width: 46rem; }
.legal h1 { margin-top: 1rem; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { margin-top: 3rem; font-size: 1.35rem; }
.legal p,
.legal ul { margin-top: .9rem; color: var(--slate); }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal li + li { margin-top: .35rem; }
.legal a { color: var(--navy); text-underline-offset: 3px; }
.legal a:hover { color: var(--orange-text); }
.legal__updated { margin-top: 3rem; font-size: .875rem; }

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
