/* =========================================================
   DEFI GROUP — Nouvelle direction artistique
   Graphite profond · Bleu électrique · Orange industriel
   ========================================================= */
:root {
  --graphite: #0B111B;
  --graphite-2: #111926;
  --graphite-3: #182233;
  --blue: #145BFF;
  --blue-hover: #2c6bff;
  --orange: #FF7900;
  --offwhite: #F4F1EC;
  --paper: #FBFAF7;
  --steel: #AAB3C0;
  --steel-dark: #5B6676;
  --line-dark: rgba(170, 179, 192, .16);
  --line-light: rgba(11, 17, 27, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 14px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --veil: #0B111B;
}

body {
  background: var(--graphite);
  color: var(--offwhite);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
}
body.nav-open, body.has-dialog { overflow: hidden; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

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

/* ---------- Typographie ---------- */
.h2 {
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.02; font-weight: 760;
  font-stretch: 110%; letter-spacing: -.022em; text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; }
.lead { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.6; max-width: 58ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange);
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.dash { display: block; width: 44px; height: 6px; background: var(--orange); transform: skewX(-24deg); margin-bottom: 28px; }

/* ---------- Boutons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 24px; border-radius: 8px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: background .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn::after { /* reflet métallique au survol */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--blue { --bg: var(--blue); --fg: #fff; --bd: var(--blue); box-shadow: 0 8px 24px -10px rgba(20, 91, 255, .7); }
.btn--blue:hover { --bg: var(--blue-hover); --bd: var(--blue-hover); box-shadow: 0 14px 34px -10px rgba(20, 91, 255, .8); }
.btn--orange { --bg: var(--orange); --fg: var(--graphite); --bd: var(--orange); }
.btn--orange:hover { --bg: #ff8a1f; --bd: #ff8a1f; box-shadow: 0 16px 40px -12px rgba(255, 121, 0, .7); }
.btn--ghost { --fg: var(--offwhite); --bd: rgba(244, 241, 236, .55); }
.btn--ghost:hover { --bd: var(--offwhite); --bg: rgba(244, 241, 236, .08); }
.btn--outline-orange { --fg: var(--offwhite); --bd: var(--orange); padding: 12px 20px; font-size: 14.5px; }
.btn--outline-orange:hover { --bg: var(--orange); --fg: var(--graphite); }
.btn--dark { --bg: var(--graphite); --fg: var(--offwhite); --bd: var(--graphite); }
.btn--dark:hover { --bg: var(--blue); --bd: var(--blue); }
.btn--xl { padding: 19px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.hd.is-scrolled, body.nav-open .hd {
  background: rgba(11, 17, 27, .9); border-color: var(--line-dark);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.hd__inner {
  display: flex; align-items: center; gap: 28px;
  max-width: 1440px; margin-inline: auto; padding: 18px var(--gutter);
  transition: padding .35s var(--ease);
}
.hd.is-scrolled .hd__inner { padding-block: 12px; }
.hd__logo { display: block; flex: none; }
.hd__logo img { height: 38px; width: auto; }
.hd__logo-compact { display: none; }
.hd__tag {
  padding-left: 24px; border-left: 1px solid var(--line-dark);
  font-size: 10.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 6px; margin: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; background: none;
  font-size: 15px; font-weight: 500; color: var(--offwhite); text-decoration: none;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-expanded='true']::after { transform: scaleX(1); }
.nav__chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__link[aria-expanded='true'] .nav__chev { transform: rotate(180deg); }
.nav__item--sub { position: relative; }

.sub {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 380px;
  padding: 10px; border-radius: var(--radius);
  background: var(--graphite-2); border: 1px solid var(--line-dark);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.sub::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; } /* pont de survol */
.is-open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px;
  text-decoration: none; transition: background .2s;
}
.sub a:hover, .sub a:focus-visible { background: rgba(20, 91, 255, .14); }
.sub svg { width: 34px; height: 34px; flex: none; color: var(--blue); }
.sub strong { display: block; font-size: 15px; font-weight: 600; }
.sub small { display: block; color: var(--steel); font-size: 13px; }

.hd__burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 130px 0 36px;
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--graphite); }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  transform: scale(1.06); filter: saturate(.92) contrast(1.05);
  animation: hero-zoom 2.4s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.16); filter: saturate(.6) brightness(.6); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 17, 27, .96) 0%, rgba(11, 17, 27, .82) 34%, rgba(11, 17, 27, .25) 68%, rgba(11, 17, 27, .35) 100%),
    linear-gradient(0deg, rgba(11, 17, 27, .95) 0%, rgba(11, 17, 27, 0) 38%),
    linear-gradient(180deg, rgba(11, 17, 27, .7) 0%, rgba(11, 17, 27, 0) 22%);
}
.hero__grid { /* trame de précision */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(170, 179, 192, .07) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, rgba(170, 179, 192, .07) 1px, transparent 1px) 0 0 / 88px 88px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 50%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 50%, transparent 80%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 900px; }
.hero .dash { animation: dash-in .9s .2s var(--ease) both; transform-origin: left; }
@keyframes dash-in { from { transform: skewX(-24deg) scaleX(0); } }
.hero__title {
  font-size: clamp(42px, 6.3vw, 98px); line-height: .94; font-weight: 820;
  font-stretch: 112%; letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; animation: line-up 1.1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__lead {
  margin-top: 28px; max-width: 520px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: #d9dee5;
  animation: fade-up 1s .45s var(--ease) both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; animation: fade-up 1s .58s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 52px 0 0; padding: 0;
  border-top: 1px solid var(--line-dark);
  animation: fade-up 1s .75s var(--ease) both;
}
.hero__stats li {
  display: flex; align-items: center; gap: 14px; padding: 22px 36px 0 0; margin-right: 36px;
  font-size: 15px; color: #d9dee5;
}
.hero__stats li + li { padding-left: 36px; border-left: 1px solid var(--line-dark); margin-top: 22px; padding-top: 0; }
.hero__stats svg { width: 24px; height: 24px; color: var(--steel); flex: none; }
.hero__stats strong { font-size: 22px; font-weight: 750; color: #fff; margin-right: 4px; font-stretch: 110%; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); text-decoration: none;
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i { position: relative; width: 1px; height: 56px; background: var(--line-dark); overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; inset: 0; background: var(--orange);
  animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__coords {
  position: absolute; top: 120px; right: var(--gutter);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 241, 236, .6);
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* ---------- Chiffres clés ---------- */
.figures { background: var(--graphite-2); border-block: 1px solid var(--line-dark); }
.figures__list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
.figures__list > div {
  display: flex; flex-direction: column-reverse; gap: 6px;
  padding: 40px 28px; border-left: 1px solid var(--line-dark);
}
.figures__list > div:first-child { border-left: 0; padding-left: 0; }
.figures dt { font-size: 14px; color: var(--steel); }
.figures dd {
  margin: 0; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; font-weight: 780; font-stretch: 115%;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff;
}
.figures dd small { font-size: .42em; margin-left: 6px; color: var(--orange); font-weight: 700; letter-spacing: 0; }
.figures dd small.pre { margin: 0 4px 0 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(88px, 11vw, 160px); }
.section--light { background: var(--offwhite); color: var(--graphite); }
.section--light .lead { color: #3c4655; }
.section--light .kicker { color: #d85f00; }
.section--dark { background: var(--graphite); }
.section--dark .lead { color: #c3cad4; }
.section__head { max-width: 920px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
}

/* ---------- Expertises ---------- */
.xp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.xp-card {
  --icon-accent: var(--orange);
  grid-column: span 2; position: relative; display: flex; flex-direction: column;
  min-height: 330px; padding: 30px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, background .3s;
}
.xp-card:nth-child(4), .xp-card:nth-child(5) { grid-column: span 3; }
.xp-card--feature { grid-column: span 2; grid-row: span 1; background: var(--graphite); color: var(--offwhite); border-color: var(--graphite); }
.xp-card::before { /* liseré bleu électrique */
  content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.xp-card:hover, .xp-card:focus-within { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 17, 27, .35); border-color: rgba(20, 91, 255, .35); }
.xp-card:hover::before, .xp-card:focus-within::before { transform: scaleX(1); }
.xp-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.xp-card__num { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--steel-dark); }
.xp-card--feature .xp-card__num { color: var(--steel); }
.xp-card__icon { width: 56px; height: 56px; color: var(--blue); transition: transform .6s var(--ease); }
.xp-card:hover .xp-card__icon { transform: translateY(-3px) rotate(-4deg); }
.xp-card--feature .xp-card__icon { color: #7ea4ff; }
.xp-card__badge {
  align-self: flex-start; margin-top: 28px; padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--orange); color: var(--graphite);
}
.xp-card__title { margin-top: 28px; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.1; font-weight: 740; font-stretch: 108%; letter-spacing: -.015em; }
.xp-card__badge + .xp-card__title { margin-top: 14px; }
.xp-card__text { margin-top: 12px; color: #4a5462; font-size: 15.5px; }
.xp-card--feature .xp-card__text { color: #c3cad4; }
.xp-card__specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.xp-card__specs li { padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 6px; font-size: 13px; color: var(--steel); }
.xp-card__more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; align-self: flex-start;
  font-weight: 600; font-size: 14.5px; color: var(--blue); text-decoration: none;
}
.xp-card--feature .xp-card__more { color: #fff; }
.xp-card__more svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; border: 1.5px solid currentColor;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.xp-card__more:hover svg { transform: rotate(90deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.xp-card__more::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* carte entièrement cliquable */

/* ---------- Savoir-faire ---------- */
.knowhow__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.knowhow__intro { position: sticky; top: 130px; }
.knowhow__intro .lead { margin: 24px 0 36px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 34px 0; border-top: 1px solid var(--line-dark);
}
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1s .2s var(--ease);
}
.step.is-in::before { transform: scaleX(1); }
.step__num { font-size: 14px; font-weight: 600; letter-spacing: .1em; color: var(--orange); padding-top: 6px; }
.step h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 720; font-stretch: 108%; letter-spacing: -.01em; }
.step p { margin-top: 8px; color: #c3cad4; max-width: 52ch; }

.band { position: relative; margin: clamp(80px, 10vw, 140px) 0; height: clamp(320px, 48vw, 620px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 17, 27, .85), rgba(11, 17, 27, 0) 55%); }
.band figcaption {
  position: absolute; z-index: 1; left: var(--gutter); bottom: clamp(24px, 4vw, 48px); max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px); color: #d9dee5;
}
.band figcaption strong { display: block; font-size: clamp(44px, 6vw, 84px); line-height: 1; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }

.park__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 32px; }
.park__head p { color: var(--steel); max-width: 46ch; }
.park { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.park li {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 28px;
  border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  transition: background .3s;
}
.park li:hover { background: rgba(20, 91, 255, .08); }
.park strong { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; font-weight: 760; font-stretch: 115%; color: #fff; font-variant-numeric: tabular-nums; }
.park span { color: var(--steel); font-size: 14.5px; line-height: 1.4; }

/* ---------- Qualité ---------- */
.quality__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.quality__media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 88%, 86% 100%, 0 100%); }
.quality__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.quality__media figcaption {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; background: rgba(11, 17, 27, .85); color: #fff; font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 121, 0, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 121, 0, 0); } }
.quality__content .lead { margin-top: 24px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 44px 0 0; padding: 0; }
.pillars li { padding-top: 18px; border-top: 2px solid var(--graphite); }
.pillars h3 { font-size: 19px; font-weight: 700; font-stretch: 108%; }
.pillars p { margin-top: 8px; font-size: 14.5px; color: #4a5462; line-height: 1.5; }
.certs { margin-top: 44px; padding: 26px; border-radius: var(--radius); background: var(--graphite); color: var(--offwhite); }
.certs__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.certs__list { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; padding: 0; }
.certs__list li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border: 1px solid rgba(170, 179, 192, .3); border-radius: 8px; font-weight: 700; font-size: 17px; font-stretch: 108%;
}
.certs__list svg { width: 18px; height: 18px; color: var(--orange); }
.certs__list small { font-weight: 400; font-size: 13px; color: var(--steel); font-stretch: 100%; }
.certs__note { font-size: 14px; color: var(--steel); }

/* ---------- Secteurs ---------- */
.sectors { background: radial-gradient(1200px 600px at 85% 20%, rgba(20, 91, 255, .14), transparent 60%), var(--graphite); }
.tabs { display: grid; grid-template-columns: minmax(260px, .8fr) 1.4fr; gap: clamp(32px, 6vw, 96px); }
.tabs__list { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.tabs__list button {
  display: flex; align-items: baseline; gap: 18px; padding: 20px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line-dark);
  font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; font-stretch: 106%; color: var(--steel);
  transition: color .25s, padding .4s var(--ease);
}
.tabs__list button span { font-size: 12px; letter-spacing: .1em; color: var(--steel-dark); }
.tabs__list button:hover { color: var(--offwhite); padding-left: 8px; }
.tabs__list button[aria-selected='true'] { color: #fff; padding-left: 14px; box-shadow: inset 3px 0 0 var(--orange); }
.tabs__list button[aria-selected='true'] span { color: var(--orange); }
.tabs__panel { animation: panel-in .6s var(--ease); align-self: center; }
@keyframes panel-in { from { opacity: 0; transform: translateX(16px); } }
.tabs__big {
  font-size: clamp(48px, 7vw, 108px); line-height: .95; font-weight: 820; font-stretch: 118%; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 30%, #8d97a6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tabs__panel ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; }
.tabs__panel li {
  padding: 12px 18px; border-radius: 8px; background: var(--graphite-3); border: 1px solid var(--line-dark);
  font-size: 16px; font-weight: 500;
}
.tabs__rel { margin-top: 28px; max-width: 54ch; color: #c3cad4; }

/* ---------- Le groupe ---------- */
.group__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.assets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 32px 0 0; padding: 0; }
.assets li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line-light); font-weight: 600;
}
.assets li::before { content: ''; width: 10px; height: 10px; background: var(--blue); transform: skewX(-14deg); flex: none; }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-light); }
.timeline li { position: relative; padding: 0 0 32px 44px; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  background: var(--offwhite); border: 2px solid var(--blue); transform: rotate(45deg);
}
.timeline li:first-child::before { background: var(--orange); border-color: var(--orange); }
.timeline__year { display: block; font-size: 22px; font-weight: 780; font-stretch: 112%; color: var(--blue); letter-spacing: -.01em; }
.timeline p { margin-top: 4px; color: #4a5462; }
.timeline strong { color: var(--graphite); }

.presence {
  position: sticky; top: 120px; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius);
  background: var(--graphite); color: var(--offwhite); overflow: hidden; isolation: isolate;
}
.presence::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background:
    linear-gradient(rgba(170, 179, 192, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(170, 179, 192, .06) 1px, transparent 1px) 0 0 / 32px 32px;
}
.presence__num { font-size: clamp(140px, 16vw, 220px); line-height: .8; font-weight: 850; font-stretch: 120%; letter-spacing: -.06em; color: var(--blue); }
.presence__label { margin-top: 14px; font-size: 22px; line-height: 1.2; font-weight: 650; font-stretch: 108%; }
.presence__rule { display: flex; gap: 8px; margin: 28px 0; }
.presence__rule i { flex: 1; height: 6px; background: var(--blue); transform: skewX(-24deg); opacity: .35; }
.presence__rule i:first-child { background: var(--orange); opacity: 1; }
.presence__hq { display: flex; gap: 14px; padding: 20px 0; border-block: 1px solid var(--line-dark); }
.presence__hq svg { width: 22px; height: 22px; color: var(--orange); flex: none; margin-top: 2px; }
.presence__hq p { color: #c3cad4; font-size: 15px; }
.presence__hq strong { display: block; color: #fff; margin-bottom: 4px; }
.presence__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.presence__facts dt { font-size: 13px; color: var(--steel); }
.presence__facts dd { margin: 0; font-size: 28px; font-weight: 760; font-stretch: 112%; }

/* ---------- Engagements ---------- */
.commit { overflow: hidden; isolation: isolate; }
.commit__bg { position: absolute; inset: 0; z-index: -1; }
.commit__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.commit__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--graphite) 0%, rgba(11, 17, 27, .6) 40%, var(--graphite) 100%); }
.commit__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.commit-card {
  display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius);
  background: rgba(17, 25, 38, .92); border: 1px solid var(--line-dark);
  transition: border-color .3s, transform .5s var(--ease);
}
.commit-card:hover { border-color: rgba(20, 91, 255, .55); transform: translateY(-4px); }
.commit-card--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px 48px; align-items: end; background: var(--blue); border-color: var(--blue); }
.commit-card--wide .commit-card__tag { grid-column: 1 / -1; color: #fff; }
.commit-card.commit-card--wide h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }
.commit-card--wide ul { margin: 0; padding: 0; list-style: none; }
.commit-card--wide li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.commit-card__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.commit-card h3 { font-size: 22px; font-weight: 720; font-stretch: 108%; line-height: 1.15; }
.commit-card p { color: #c3cad4; }
.commit-card--wide p { color: #fff; }
.commit-card__num { font-size: 56px !important; line-height: 1; font-weight: 800; font-stretch: 115%; color: #fff !important; }
.commit-card__num small { font-size: 22px; color: var(--steel); margin-left: 4px; }
.labels { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.labels li { padding: 22px 20px 0 0; color: var(--steel); font-size: 14px; }
.labels strong { display: block; color: #fff; font-size: 18px; font-weight: 700; font-stretch: 108%; }

/* ---------- Carrières ---------- */
.careers { padding-block: clamp(80px, 9vw, 130px); }
.careers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; padding: 0; }
.tags li { padding: 8px 14px; border: 1px solid rgba(11, 17, 27, .2); border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ---------- Contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(96px, 12vw, 170px); background: var(--blue); color: #fff;
}
.contact__deco {
  position: absolute; z-index: -1; right: -8%; top: -20%; width: 60%; height: 140%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
}
.contact__deco::after { content: ''; position: absolute; left: -40px; top: 0; bottom: 0; width: 14px; background: var(--orange); }
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__title { font-size: clamp(44px, 6.4vw, 96px); line-height: .96; font-weight: 820; font-stretch: 112%; letter-spacing: -.035em; text-wrap: balance; }
.contact__title em { font-style: normal; color: var(--orange); }
.contact__lead { margin: 24px 0 36px; font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; color: rgba(255, 255, 255, .88); }
.contact__direct { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__direct li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact__direct svg { width: 20px; height: 20px; flex: none; }
.contact__direct a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contact__direct a:hover { background-size: 100% 1px; }
.contact .btn--orange:focus-visible, .contact a:focus-visible { outline-color: #fff; }

.form {
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius);
  background: var(--offwhite); color: var(--graphite);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  display: grid; gap: 16px;
}
.form__title { font-size: 22px; font-weight: 720; font-stretch: 108%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: #3c4655; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1.5px solid rgba(11, 17, 27, .14);
  background: #fff; font-size: 15.5px; font-weight: 400; color: var(--graphite);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 17, 27, .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 91, 255, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d0342c; }
.form__status { font-size: 14px; color: #1a7f45; min-height: 1em; }
.form__status:empty { display: none; }

/* ---------- Pied de page ---------- */
.ft { background: var(--graphite); color: var(--steel); padding: 80px 0 110px; font-size: 15px; }
.ft__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.ft__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.ft__brand p { max-width: 32ch; }
.ft__title { color: #fff; font-weight: 650; margin-bottom: 14px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft a { text-decoration: none; transition: color .2s; }
.ft a:hover { color: #fff; }
.ft__addr { margin-bottom: 10px; }
.ft__social { display: flex !important; gap: 16px !important; margin-top: 14px !important; }
.ft__social a { color: #fff; border-bottom: 1px solid var(--orange); }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.ft__scenes { display: flex; flex-wrap: wrap; gap: 20px; }
.ft__scenes a { color: #fff; }

/* ---------- Tiroirs d'expertise ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(560px, 100%); max-width: 100%;
  padding: 0; border: 0; background: var(--graphite-2); color: var(--offwhite);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[open] { animation: drawer-in .5s var(--ease); }
.drawer::backdrop { background: rgba(5, 8, 13, .7); backdrop-filter: blur(4px); animation: fade .4s; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__inner { position: relative; padding: clamp(28px, 4vw, 48px); padding-top: 72px; display: grid; gap: 16px; }
.drawer__close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-dark); background: transparent;
  transition: background .2s, transform .3s var(--ease);
}
.drawer__close:hover { background: rgba(244, 241, 236, .1); transform: rotate(90deg); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__icon { --icon-accent: var(--orange); width: 64px; height: 64px; color: #7ea4ff; }
.drawer .kicker { margin: 8px 0 0; }
.drawer h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; font-weight: 780; font-stretch: 110%; letter-spacing: -.02em; }
.drawer h3 { margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.drawer p { color: #c3cad4; }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.drawer__list strong { color: #fff; font-size: 1.1em; }
.drawer .btn { justify-self: start; margin-top: 16px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .hd__tag { display: none; }
  .nav__link { padding-inline: 10px; }
  .figures__list { grid-template-columns: repeat(3, 1fr); }
  .figures__list > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .figures__list > div:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .xp-card, .xp-card--feature { grid-column: span 3; }
  .xp-card:nth-child(5) { grid-column: span 6; }
  .park { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .hd__burger {
    display: grid; place-items: center; margin-left: auto; width: 48px; height: 48px;
    border-radius: 10px; border: 1px solid var(--line-dark); background: rgba(11, 17, 27, .5);
  }
  .hd__burger-lines, .hd__burger-lines::before, .hd__burger-lines::after {
    display: block; width: 20px; height: 2px; background: var(--offwhite); border-radius: 2px;
    transition: transform .35s var(--ease), background .2s;
  }
  .hd__burger-lines { position: relative; }
  .hd__burger-lines::before, .hd__burger-lines::after { content: ''; position: absolute; left: 0; }
  .hd__burger-lines::before { top: -6px; }
  .hd__burger-lines::after { top: 6px; }
  [aria-expanded='true'] > .hd__burger-lines { background: transparent; }
  [aria-expanded='true'] > .hd__burger-lines::before { transform: translateY(6px) rotate(45deg); }
  [aria-expanded='true'] > .hd__burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 100px var(--gutter) 120px; background: var(--graphite); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s, transform .45s var(--ease), visibility .35s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  /* un backdrop-filter créerait un bloc conteneur pour le menu fixe */
  body.nav-open .hd { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--graphite); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 24px; font-weight: 650; font-stretch: 108%; border-bottom: 1px solid var(--line-dark); }
  .nav__link::after { display: none; }
  .sub { position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .is-open > .sub { display: block; }
  .sub a { padding: 12px 0; }
  .nav__cta { align-self: flex-start; font-size: 16px; padding: 15px 22px; }

  .section__head--split, .knowhow__grid, .quality__grid, .tabs, .group__grid, .careers__grid, .contact__grid { grid-template-columns: 1fr; }
  .knowhow__intro, .presence { position: static; }
  .quality__media img { aspect-ratio: 16 / 10; }
  .tabs__list { flex-direction: row; overflow-x: auto; border: 0; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list button { flex: none; padding: 10px 16px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 16px; }
  .tabs__list button span { display: none; }
  .tabs__list button[aria-selected='true'] { padding-left: 16px; box-shadow: none; background: var(--blue); border-color: var(--blue); }
  .tabs__list button:hover { padding-left: 16px; }
  .commit__grid { grid-template-columns: 1fr 1fr; }
  .commit-card--wide { grid-column: span 2; grid-template-columns: 1fr; }
  .labels { grid-template-columns: 1fr 1fr; }
  .ft__grid { grid-template-columns: 1fr 1fr; }
  .hero__coords { display: none; }
}

@media (max-width: 720px) {
  .hd__logo-full { display: none; }
  .hd__logo-compact { display: block; }
  .hd__logo img { height: 40px; }
  .hero { padding-top: 120px; min-height: max(640px, 100svh); }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(11, 17, 27, .98) 0%, rgba(11, 17, 27, .82) 45%, rgba(11, 17, 27, .45) 100%);
  }
  .hero__media img { object-position: 70% 50%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { flex-direction: column; margin-top: 44px; }
  .hero__stats li, .hero__stats li + li { padding: 14px 0 0; margin: 0; border: 0; }
  .hero__scroll { display: none; }
  .figures__list { grid-template-columns: 1fr 1fr; }
  .figures__list > div { padding: 28px 0 28px 20px; border-top: 1px solid var(--line-dark); }
  .figures__list > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures__list > div:nth-child(4) { border-left: 1px solid var(--line-dark); padding-left: 20px; }
  .figures__list > div:first-child, .figures__list > div:nth-child(2) { border-top: 0; }
  .figures__list > div:last-child { grid-column: span 2; }
  .xp { grid-template-columns: 1fr; }
  .xp-card, .xp-card--feature, .xp-card:nth-child(4), .xp-card:nth-child(5) { grid-column: auto; min-height: 0; }
  .xp-card__title { margin-top: 22px; }
  .park { grid-template-columns: 1fr 1fr; }
  .park li { padding: 20px 16px; }
  .step { grid-template-columns: 48px 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .assets { grid-template-columns: 1fr; }
  .commit__grid { grid-template-columns: 1fr; }
  .commit-card--wide { grid-column: auto; }
  .labels { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact .btn--xl { width: 100%; white-space: normal; }
  .ft__grid { grid-template-columns: 1fr; }
  .presence__num { font-size: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__title .line > span, .hero__lead, .hero__actions, .hero__stats, .hero .dash { animation: none; }
}

/* Les éléments de grille ne doivent jamais imposer leur largeur de contenu */
.tabs > *, .knowhow__grid > *, .quality__grid > *, .group__grid > *, .contact__grid > *, .careers__grid > *, .section__head--split > * { min-width: 0; }
html, body { overflow-x: clip; }

.ft__sign { display: inline-block; margin-top: 6px; color: #7d8796; }
.ft__sign strong { color: #fff; font-weight: 600; }
.credits__sign { margin-top: 32px; color: var(--steel); font-size: 14.5px; }
.credits__sign strong { color: #fff; }
