/* ==========================================================================
   TriAxis SARLU — feuille de style principale
   Palette reprise de la plaquette institutionnelle.
   ========================================================================== */

:root {
  --abyss: #03182b;
  --hull: #06223a;
  --deck: #0a2c48;
  --deck-2: #0d3555;

  --signal: #23d5c7;
  --signal-2: #70e7db;
  --teal-deep: #1f7180;

  --foam: #eaf3f8;
  --mist: #a8c5d7;
  --mist-dim: #7d9db0;

  --line: rgba(112, 231, 219, 0.16);
  --line-soft: rgba(168, 197, 215, 0.14);

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --shell: 1240px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

/* --------------------------------------------------------- reset & base */

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

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--signal-2); text-decoration: none; }
a:hover { color: var(--signal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--abyss);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  z-index: 999;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------- micro-typo */

.eyebrow {
  font-family: var(--label);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1rem;
  display: block;
  line-height: 1.45;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.75rem;
  background: var(--signal);
  transform: rotate(45deg);
  vertical-align: middle;
}
.eyebrow--plain::before { display: none; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--mist);
  max-width: 62ch;
}

.muted { color: var(--mist); }

/* --------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 24, 43, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  padding-top: 10px;
  position: relative;
  flex: none;
}
.wordmark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 3px;
  background: var(--signal);
}
.wordmark span { color: var(--signal-2); }
.wordmark small {
  display: block;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }

.nav__links { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }

.nav__links a {
  color: var(--foam);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--signal-2); }

.langs { display: flex; gap: 0.35rem; font-family: var(--label); font-size: 0.95rem; letter-spacing: 0.1em; }
.langs a { color: var(--mist-dim); padding: 0 0.15rem; }
.langs a[aria-current="true"] { color: var(--signal); font-weight: 600; }
.langs span { color: var(--line); }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--foam);
  width: 44px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 20px; height: 20px; }

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--signal); color: #02121f; }
.btn--solid:hover { background: var(--signal-2); color: #02121f; }

.btn--ghost { border-color: var(--line); color: var(--foam); background: transparent; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal-2); }

.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.86rem; }

/* --------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, var(--abyss) 8%, rgba(3, 24, 43, 0.9) 38%, rgba(3, 24, 43, 0.42) 68%, rgba(3, 24, 43, 0.72) 100%),
    linear-gradient(to top, var(--abyss) 2%, transparent 45%);
}

.hero__inner { padding: clamp(4rem, 11vh, 8rem) 0 clamp(3rem, 7vh, 5rem); max-width: 44rem; }

.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--signal-2); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__tag {
  display: inline-block;
  line-height: 1.7;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.5rem 1.1rem;
  font-family: var(--label);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foam);
  margin-top: 2.2rem;
  background: rgba(3, 24, 43, 0.5);
}
.hero__tag b { color: var(--signal); font-weight: 600; }

/* stat band */

.band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 34, 58, 0.6);
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
.band__grid--3 { grid-template-columns: repeat(3, 1fr); }
.band__cell { background: var(--abyss); padding: 1.9rem 1.4rem; }
.section--tint .band__cell { background: var(--hull); }
.band__cell:first-child { padding-left: 0; }

.stat {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--signal-2);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}
.stat + span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--mist);
  line-height: 1.4;
}

/* --------------------------------------------------------- sections */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--hull); }
.section--edge { border-top: 1px solid var(--line-soft); }

.section__head { max-width: 60rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: none;
}

/* --------------------------------------------------------- port call rail (signature) */

.rail { position: relative; margin-top: 1rem; }

.rail__track {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-soft);
}
.rail__track::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, var(--teal-deep), var(--signal));
  transition: right 2.2s var(--ease);
}
.rail.is-live .rail__track::after { right: 0; }

.rail__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.rail__step { padding-right: 1rem; }

.rail__node {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid var(--teal-deep);
  background: var(--abyss);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  position: relative;
}
.rail__node::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-deep);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.rail.is-live .rail__step:nth-child(1) .rail__node::after { transition-delay: 0.15s; }
.rail.is-live .rail__step:nth-child(2) .rail__node::after { transition-delay: 0.6s; }
.rail.is-live .rail__step:nth-child(3) .rail__node::after { transition-delay: 1.05s; }
.rail.is-live .rail__step:nth-child(4) .rail__node::after { transition-delay: 1.5s; }
.rail.is-live .rail__step:nth-child(5) .rail__node::after { transition-delay: 1.95s; }
.rail.is-live .rail__node::after {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(35, 213, 199, 0.16), 0 0 18px rgba(35, 213, 199, 0.55);
}

.rail__phase {
  font-family: var(--label);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-dim);
  display: block;
  margin-bottom: 0.4rem;
}
.rail__step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: #fff; }
.rail__step p { font-size: 0.9rem; color: var(--mist); line-height: 1.55; }

/* --------------------------------------------------------- cards */

.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--abyss);
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: background 0.3s var(--ease);
}
.section--tint .card { background: var(--hull); }
.card:hover { background: var(--deck); }
.section--tint .card:hover { background: var(--deck); }

.card__mark {
  font-family: var(--label);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--signal);
  display: block;
  margin-bottom: 1.4rem;
}
.card h3 { color: #fff; margin-bottom: 0.7rem; }
.card p { color: var(--mist); font-size: 0.94rem; }

.card__list { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.card__list li {
  font-size: 0.9rem;
  color: var(--mist);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.45rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--teal-deep);
  transform: rotate(45deg);
}

/* service card with heavier presence */
.svc { display: flex; flex-direction: column; height: 100%; }
.svc__num {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  margin-bottom: 1.2rem;
}

/* --------------------------------------------------------- feature rows */

.rows { border-top: 1px solid var(--line-soft); }
.row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.row__idx {
  font-family: var(--label);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--signal);
  padding-top: 0.25rem;
}
.row h3 { margin-bottom: 0.35rem; color: #fff; }
.row__meta { font-family: var(--label); font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-dim); }
.row p { color: var(--mist); font-size: 0.96rem; margin: 0; }

/* --------------------------------------------------------- pills */

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.pills li {
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.87rem;
  color: var(--foam);
}

/* --------------------------------------------------------- cta */

.cta {
  background: linear-gradient(120deg, var(--deck) 0%, var(--hull) 60%, var(--abyss) 100%);
  border: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cta h2 { margin-bottom: 0.5rem; color: #fff; }
.cta p { color: var(--mist); margin: 0; max-width: 48ch; }
.cta__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* --------------------------------------------------------- forms */

.formwrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.form { display: grid; gap: 1.15rem; }

.fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.fieldset + .fieldset { margin-top: 1.6rem; }

.fieldset legend {
  font-family: var(--label);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  padding: 0;
  margin-bottom: 0.4rem;
}

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.field { display: grid; gap: 0.45rem; }
.field > label { font-size: 0.86rem; font-weight: 600; color: var(--foam); letter-spacing: 0.01em; }
.field .hint { font-size: 0.8rem; color: var(--mist-dim); }
.req { color: var(--signal); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--foam);
  background: var(--hull);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--signal);
  background: var(--deck);
  outline: none;
}
input::placeholder, textarea::placeholder { color: var(--mist-dim); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2370e7db' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
select option { background: var(--hull); color: var(--foam); }

.checks { display: grid; gap: 0.55rem; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9rem; color: var(--mist); cursor: pointer; }
.check input { margin-top: 0.25rem; accent-color: var(--signal); width: 16px; height: 16px; flex: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form__foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 0.6rem; }
.form__note { font-size: 0.82rem; color: var(--mist-dim); max-width: 40ch; }

.aside {
  background: var(--hull);
  border: 1px solid var(--line-soft);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.aside + .aside { margin-top: 1.5rem; }
.aside h3 { color: #fff; font-size: 1.05rem; }
.aside dl { margin: 0; display: grid; gap: 1.1rem; }
.aside dt {
  font-family: var(--label);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 0.15rem;
}
.aside dd { margin: 0; font-size: 0.98rem; color: var(--foam); }
.aside dd a { color: var(--signal-2); }

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(35, 213, 199, 0.06);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--foam);
}

/* --------------------------------------------------------- confirmation */

.center-page { text-align: center; max-width: 46rem; margin-inline: auto; padding: clamp(4rem, 12vh, 8rem) 0; }
.center-page .btn { margin-top: 1.5rem; }

/* --------------------------------------------------------- prose (legal) */

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--mist); font-size: 0.97rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

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

.footer { border-top: 1px solid var(--line-soft); background: var(--hull); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 2.6rem);
}
.footer__grid a[href^="mailto:"] { word-break: keep-all; hyphens: none; }
.footer h4 {
  font-family: var(--label);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a, .footer p, .footer li { font-size: 0.92rem; color: var(--mist); }
.footer a:hover { color: var(--signal-2); }
.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--mist-dim);
}

/* --------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .band__grid, .band__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formwrap { grid-template-columns: 1fr; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.6rem var(--gut) 2rem;
    background: var(--hull);
    border-bottom: 1px solid var(--line);
    margin-left: 0;
  }
  .nav.is-open .nav__links { flex-direction: column; gap: 1rem; }
  .burger { display: flex; }
  .masthead__inner { position: relative; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .rail__steps { grid-template-columns: 1fr; gap: 0; padding-left: 2.2rem; }
  .rail__track { top: 0; bottom: 0; left: 11px; right: auto; width: 1px; height: auto; }
  .rail__track::after { inset: 0 0 100% 0; transition: bottom 2.2s var(--ease); }
  .rail.is-live .rail__track::after { bottom: 0; right: 0; }
  .rail__step { padding: 0 0 2rem; position: relative; }
  .rail__step:last-child { padding-bottom: 0; }
  .rail__node { position: absolute; left: -2.2rem; top: 0.15rem; margin: 0; }

  .row { grid-template-columns: 3rem minmax(0, 1fr); }
  .row > p { grid-column: 2; }

  .cta { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 3.5rem; }
}

@media (max-width: 560px) {
  .band__grid, .band__grid--3 { grid-template-columns: 1fr; }
  .band__cell { padding: 1.4rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

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

@media print {
  .masthead, .footer, .hero__media, .cta { display: none; }
  body { background: #fff; color: #000; }
}
