/* ==========================================================================
   OutOfRange Consulting — feuille de styles
   Aucune dépendance, aucun build. Variables CSS + grid + clamp().
   ========================================================================== */

/* ---------- Polices auto-hébergées ----------
   Fichiers variables (une seule requête par famille et par sous-ensemble),
   récupérés depuis Google Fonts puis servis en propre : la CSP peut rester
   en font-src 'self'. Sous-ensembles latin + latin-ext uniquement. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette dérivée du logo : marine #101f31, bleu #135fab.
     Les teintes de texte sont éclaircies pour tenir le AA sur fond sombre
     (#135fab ne fait que 2.96:1 ici : il reste réservé aux aplats). */
  --bg: #0a1018;
  --bg-soft: #0d1420;
  --surface: #101a29;
  --surface-2: #14202f;
  --line: #1e2c40;
  --line-soft: #16212f;

  --text: #e9ecf4;
  --text-dim: #a8b0c2;
  --text-mute: #7b8397;

  --brand: #135fab;
  --navy: #101f31;
  --accent: #3a8ee0;
  --accent-2: #5cb3ff;
  --accent-soft: rgba(58, 142, 224, 0.16);

  --grad: linear-gradient(120deg, var(--brand) 0%, var(--accent-2) 100%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Fira Code", ui-monospace, Menlo,
    Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Halo d'arrière-plan ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      52rem 34rem at 78% -8%,
      rgba(19, 95, 171, 0.28),
      transparent 60%
    ),
    radial-gradient(
      44rem 30rem at 8% 4%,
      rgba(92, 179, 255, 0.08),
      transparent 62%
    );
}

/* ---------- Typographie ---------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 640;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  letter-spacing: -0.038em;
}
h2 {
  font-size: clamp(1.9rem, 3.9vw, 2.9rem);
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.15em;
  color: var(--text-dim);
  text-wrap: pretty;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  color: var(--text-dim);
  max-width: 62ch;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  position: relative;
  z-index: 1;
}

.section--tight {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section--edge {
  border-top: 1px solid var(--line-soft);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-2);
  opacity: 0.65;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand__mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 1.9vw, 2rem);
  margin-left: auto;
}

.nav__links a {
  font-size: 0.94rem;
  color: var(--text-dim);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  margin-left: 0.5rem;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Barre de progression de lecture */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad);
  z-index: 200;
  pointer-events: none;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.82rem 1.5rem;
  border-radius: 100px;
  font-size: 0.94rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
    box-shadow 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--text);
  color: #0a0b0f;
  font-weight: 600;
}

.btn--primary:hover {
  box-shadow: 0 12px 32px -12px rgba(233, 236, 244, 0.5);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.87rem;
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.9rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ee6a8;
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.5);
  animation: pulse 2.6s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(46, 230, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 230, 168, 0);
  }
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 1.5rem;
}

.hero .lead {
  max-width: 58ch;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__note {
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ---------- Bandeau stack ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: 1.1rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.25s;
}

.marquee span:hover {
  color: var(--text-dim);
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Grilles / cartes ---------- */
.grid {
  display: grid;
  gap: 1.15rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.card {
  background: linear-gradient(
    165deg,
    var(--surface) 0%,
    var(--bg-soft) 100%
  );
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
}

.card:hover::after {
  opacity: 0.55;
}

.card p:last-child {
  margin-bottom: 0;
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(58, 142, 224, 0.28);
  color: var(--accent-2);
  margin-bottom: 1.3rem;
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.35rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.24rem 0.65rem;
  white-space: nowrap;
}

/* ---------- Bandeau clients ---------- */
.clients-band {
  margin-top: 2.5rem;
  padding: 1.9rem clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
}

.clients-band__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.15rem;
}

.clients-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients-band__list li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.015);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.clients-band__list li:hover {
  color: var(--text);
  border-color: var(--accent);
}

.clients-band__note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ---------- Démarche (étapes) ---------- */
.steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-soft);
}

.step {
  padding: 2rem 1.75rem 2rem 0;
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.step:last-child {
  border-right: 0;
}

.step:not(:first-child) {
  padding-left: 1.75rem;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--grad);
  transition: width 0.9s var(--ease) 0.15s;
}

.step.is-visible::before {
  width: 100%;
}

.step__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ---------- Chiffres ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.15rem;
}

.stat {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.012);
}

.stat__val {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.7rem;
}

.stat__label {
  font-size: 0.89rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Split (texte + panneau) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  color: var(--text-dim);
  font-size: 0.97rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--grad);
  transform: rotate(45deg);
}

.checklist li strong {
  display: block;
  color: var(--text);
  font-weight: 580;
  margin-bottom: 0.1rem;
}

/* Panneau « terminal » */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.panel__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}

.panel__bar i:nth-child(1) {
  background: #ff5f57;
}
.panel__bar i:nth-child(2) {
  background: #febc2e;
}
.panel__bar i:nth-child(3) {
  background: #28c840;
}

.panel__title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-left: 0.6rem;
}

.panel__body {
  padding: 1.4rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.79rem;
  line-height: 2;
  overflow-x: auto;
}

.panel__body .c-key {
  color: var(--accent);
}
.panel__body .c-str {
  color: #7ee787;
}
.panel__body .c-com {
  color: var(--text-mute);
}
.panel__body .c-fn {
  color: var(--accent-2);
}
.panel__body .c-num {
  color: #ffab70;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--accent-2) 45%,
    var(--line-soft)
  );
}

.tl-item {
  position: relative;
  padding-bottom: 2.75rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 1px);
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.tl-item--now::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.tl-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  color: var(--accent-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.tl-item h3 {
  margin-bottom: 0.25rem;
}

.tl-org {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.tl-item p {
  font-size: 0.96rem;
}

/* ---------- Réalisations ---------- */
.work {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  transition: border-color 0.35s var(--ease);
}

.work:hover {
  border-color: var(--line);
}

.work__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.work__idx {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.work h3 {
  margin-bottom: 0.35rem;
}

.work__ctx {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.work p {
  font-size: 0.97rem;
  margin-bottom: 0;
  max-width: 78ch;
}

/* ---------- Compétences ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.25rem 2rem;
}

.skill h4 {
  font-size: 0.76rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}

.skill li {
  font-size: 0.93rem;
  color: var(--text-dim);
  padding: 0.28rem 0;
}

/* ---------- Citation ---------- */
.quote {
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
  padding: 0.4rem 0 0.4rem 1.9rem;
  max-width: 68ch;
}

.quote p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
  font-weight: 420;
}

.quote cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- CTA final ---------- */
.cta {
  border: 1px solid var(--line-soft);
  border-radius: clamp(18px, 3vw, 26px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  background: radial-gradient(
      36rem 22rem at 50% -30%,
      rgba(19, 95, 171, 0.28),
      transparent 70%
    ),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.cta h2 {
  max-width: 20ch;
  margin-inline: auto;
}

.cta .lead {
  margin-inline: auto;
  margin-bottom: 2.25rem;
  max-width: 52ch;
}

.cta__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.contact-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 18px;
  height: 18px;
}

.contact-card__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  display: block;
  margin-bottom: 0.28rem;
}

.contact-card__val {
  font-size: 0.99rem;
  color: var(--text);
  font-weight: 520;
  word-break: break-word;
}

/* Formulaire */
.form {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  background: linear-gradient(165deg, var(--surface), var(--bg-soft));
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 520;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.field label span {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e7688' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-mute);
}

/* Contrainte annoncée avant l'envoi (longueur minimale du contexte). */
.field__aide {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-mute);
}

/* Champ refusé : posé par le script, d'après la validation native ou la liste
   « fields » du Worker. Pas seulement la couleur — le champ reçoit aussi le
   focus, et aria-invalid est lu par les lecteurs d'écran. */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Widget Turnstile : il s'insère en iframe de taille fixe (300 x 65). On lui
   réserve la hauteur pour que le bouton d'envoi ne saute pas à l'apparition. */
.field--turnstile {
  margin-top: 1.6rem;
  min-height: 65px;
}

.field--turnstile .form__hint {
  max-width: 46ch;
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.form__hint {
  font-size: 0.79rem;
  color: var(--text-mute);
  max-width: 34ch;
  line-height: 1.5;
}

.form__status {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--accent-2);
  display: none;
}

.form__status.is-shown {
  display: block;
}

/* Honeypot anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* FAQ / accordéon */
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: 1.02rem;
  font-weight: 540;
  color: var(--text);
  position: relative;
  letter-spacing: -0.01em;
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-mute);
  border-bottom: 1.5px solid var(--text-mute);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease), border-color 0.25s;
}

.faq-q[aria-expanded="true"]::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--accent-2);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p {
  padding-bottom: 1.35rem;
  font-size: 0.96rem;
  margin: 0;
  max-width: 72ch;
}

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 3rem 2.25rem;
  position: relative;
  z-index: 1;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.6rem;
}

.footer__tag {
  font-size: 0.9rem;
  color: var(--text-mute);
  max-width: 34ch;
  margin: 0.8rem 0 0;
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--accent-2);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

/* ---------- Animations au scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .burger {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 16, 24, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.02rem;
  }

  .nav__links a::after {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 1.75rem 0;
  }

  .step:not(:first-child) {
    padding-left: 0;
  }

  .step:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Dossier de compétences ---------- */
.dossier-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem 1.75rem;
  margin-top: 2.5rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dossier-meta dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.45rem;
}

.dossier-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.mission {
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.mission:last-child {
  border-bottom: 0;
}

.mission__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.mission__head h3 {
  font-size: 1.12rem;
  line-height: 1.35;
}

.mission__when {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-mute);
  white-space: nowrap;
}

.mission__org {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.mission__where {
  color: var(--text-mute);
}

.mission p {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

.mission ul {
  margin-top: 0.9rem;
  padding-left: 1.1rem;
  list-style: none;
}

.mission ul li {
  position: relative;
  font-size: 0.94rem;
  color: var(--text-dim);
  padding: 0.24rem 0;
}

.mission ul li::before {
  content: "—";
  position: absolute;
  left: -1.1rem;
  color: var(--text-mute);
}

.mission .card__tags {
  margin-top: 1.05rem;
}

.mission--era {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

/* ---------- Compléments & utilitaires ----------
   Ces règles remplacent les attributs style= des pages : la CSP peut ainsi
   rester en style-src 'self', sans 'unsafe-inline'. Placées en fin de
   feuille pour l'emporter sur les blocs de base à spécificité égale. */
.card__quote {
  font-size: 1.06rem;
  color: var(--text);
  line-height: 1.6;
}

.card__quote--sm {
  font-size: 1.02rem;
}

/* Recommandations : repliées à six lignes, dépliables au clic. La classe
   n'est posée que par main.js, et seulement si le texte déborde réellement —
   sans JS la citation reste entière. */
.card__quote--clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.quote-more {
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--accent-2);
  cursor: pointer;
  transition: color 0.18s ease;
}

.quote-more:hover {
  color: var(--accent);
}

.card__tags--spaced {
  margin-top: 1.5rem;
}

.grid--tight {
  gap: 1.15rem;
}

.panel__code {
  margin: 0;
  font: inherit;
}

.link-accent {
  color: var(--accent-2);
}

.section__note {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-mute);
}

.h2--compact {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

/* Échelle d'espacement ponctuelle (rythme vertical entre blocs). */
.u-mt-1 { margin-top: 1rem; }
.u-mt-125 { margin-top: 1.25rem; }
.u-mt-15 { margin-top: 1.5rem; }
.u-mt-2 { margin-top: 2rem; }
.u-mt-25 { margin-top: 2.5rem; }
.u-mt-3 { margin-top: 3rem; }
.u-mb-18 { margin-bottom: 1.8rem; }

@media print {
  .nav, .footer, .progress, .hero__actions, .btn, .marquee, .quote-more,
  .field--turnstile { display: none !important; }
  .card__quote--clamped { display: block !important; overflow: visible !important; }
  html, body { background: #fff !important; color: #111 !important; }
  h1, h2, h3, h4, strong { color: #000 !important; }
  p, li, dd { color: #222 !important; }
  .section { padding: 1.2rem 0 !important; }
  .mission { page-break-inside: avoid; border-bottom: 1px solid #ddd; }
  .card, .dossier-meta, .clients-band { border-color: #ddd !important; background: none !important; }
  .tag { border-color: #ccc !important; color: #333 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a { color: #000 !important; text-decoration: none; }
}
