/* =========================================================================
   PRÉCIGÉA — Usinage de précision
   Système de design : acier / aluminium, cotations d'ingénierie
   Display: Saira · Corps: Inter · Données: IBM Plex Mono
   ========================================================================= */

:root {
  /* Couleurs — base graphite / acier / aluminium */
  --ink:        #0E1318;   /* fond sombre profond */
  --graphite:   #141B23;   /* sections sombres */
  --panel:      #1B2531;   /* cartes sur fond sombre */
  --line-dk:    rgba(140,165,190,.16);
  --slate:      #8499AB;   /* texte secondaire sur sombre */
  --steel:      #B7C6D4;   /* texte clair sur sombre */

  --alu:        #EDF1F4;   /* fond clair (aluminium usiné) */
  --paper:      #F7F9FB;
  --ink-2:      #16222E;   /* texte sur fond clair */
  --ink-soft:   #46586A;   /* texte secondaire clair */
  --line-lt:    #D6DEE5;

  /* Accent — bleu tungstène (identité Précigéa) */
  --blue:       #2E72C9;
  --blue-deep:  #163A66;
  --blue-bright:#4B92E6;
  --amber:      #E0922E;   /* accent fonctionnel, très parcimonieux */

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --f-display: "Saira", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--f-body);
  background: var(--alu);
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ----- Primitives ----- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 0 100%); /* repère triangulaire (datum) */
}
.eyebrow .idx { color: var(--ink-soft); }
section.dark .eyebrow .idx { color: var(--slate); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -.01em; }

.section-title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 700;
  margin-top: 18px;
  max-width: 18ch;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 60ch; margin-top: 20px; }
section.dark .lead { color: var(--steel); }

/* règle "datum" : trait + graduations */
.datum { height: 1px; background: var(--line-lt); position: relative; margin: 18px 0 0; }
.datum::before {
  content: ""; position: absolute; left: 0; top: -3px; width: 64px; height: 7px;
  background: var(--blue);
}
section.dark .datum { background: var(--line-dk); }

/* puce de tolérance en mono */
.tol {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink-soft);
  border: 1px solid var(--line-lt);
  border-radius: 2px;
  padding: 5px 10px;
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff;
  white-space: nowrap;
}
.tol b { color: var(--blue); font-weight: 600; }
section.dark .tol { background: rgba(255,255,255,.03); border-color: var(--line-dk); color: var(--steel); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s, border-color .18s;
}
.btn:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translate(3px,0); }

section.dark { background: var(--graphite); color: var(--steel); }
section.dark .section-title { color: #fff; }

/* repères de cadrage (signature) sur les figures */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
  border: 0 solid var(--blue);
}
.frame::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gut);
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s;
}
.nav.scrolled {
  background: rgba(14,19,24,.92);
  backdrop-filter: blur(10px);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line-dk);
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand .glyph { width: 26px; height: 26px; flex: 0 0 auto; }
.brand .wordmark {
  font-family: var(--f-display); font-weight: 700; font-size: 21px;
  letter-spacing: .14em; color: #fff;
}
.brand .wordmark .a { color: var(--blue-bright); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--steel); text-transform: uppercase; transition: color .18s;
  position: relative; padding: 4px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue);
  transition: width .22s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { color: #fff !important; border: 1px solid var(--line-dk); padding: 9px 16px !important; }
.nav-cta:hover { background: var(--blue); border-color: var(--blue); }
.nav-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55;
  transform: scale(1.06); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,19,24,.72) 0%, rgba(14,19,24,.30) 35%, rgba(14,19,24,.55) 70%, var(--ink) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(46,114,201,.18), transparent 60%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 8vh, 96px); padding-top: 140px; }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 116px);
  font-weight: 700; letter-spacing: -.02em; line-height: .96;
  margin: 22px 0 0; text-wrap: balance;
}
.hero h1 .thin { font-weight: 300; color: var(--steel); }
.hero h1 em { font-style: normal; color: var(--blue-bright); }
.hero__sub { margin-top: 26px; font-size: clamp(17px,1.7vw,21px); color: var(--steel); max-width: 54ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* bandeau technique bas de hero */
.specstrip {
  position: relative; z-index: 2; border-top: 1px solid var(--line-dk);
  background: rgba(14,19,24,.55); backdrop-filter: blur(6px);
}
.specstrip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  font-family: var(--f-mono);
}
.specstrip__cell { padding: 18px var(--gut); border-left: 1px solid var(--line-dk); }
.specstrip__cell:first-child { border-left: 0; }
.specstrip__k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.specstrip__v { font-size: clamp(18px,2vw,24px); color: #fff; margin-top: 6px; font-weight: 500; }
.specstrip__v b { color: var(--blue-bright); font-weight: 600; }

/* =========================================================================
   INTRO / ACCROCHE
   ========================================================================= */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.intro__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,80px); align-items: center; }
.intro__text p + p { margin-top: 18px; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.intro__badge {
  position: absolute; bottom: -1px; left: -1px;
  background: var(--blue); color: #fff; padding: 16px 22px;
  font-family: var(--f-mono); max-width: 70%;
}
.intro__badge .n { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; }
.intro__badge .l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; opacity: .9; }

/* =========================================================================
   SAVOIR-FAIRE
   ========================================================================= */
.savoir__top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: end; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dk); margin-top: clamp(36px,5vw,56px); border: 1px solid var(--line-dk); }
.cap {
  background: var(--graphite); padding: 30px 28px 34px;
  display: flex; flex-direction: column; min-height: 230px;
  transition: background .25s var(--ease);
}
.cap:hover { background: var(--panel); }
.cap__n { font-family: var(--f-mono); font-size: 12px; color: var(--blue-bright); letter-spacing: .1em; }
.cap__h { font-family: var(--f-display); font-size: 21px; font-weight: 600; color: #fff; margin: 16px 0 10px; }
.cap__d { font-size: 14.5px; color: var(--slate); flex: 1; }
.cap__spec { font-family: var(--f-mono); font-size: 11.5px; color: var(--steel); margin-top: 16px; letter-spacing: .02em; }

.savoir__media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 14px; }
.savoir__media img { width: 100%; height: 100%; object-fit: cover; }
.savoir__media .a { aspect-ratio: 16/10; }
.savoir__media .b { aspect-ratio: auto; }

/* matières */
.matter { margin-top: clamp(40px,5vw,60px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.matter .label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-right: 8px; }
.chip {
  font-family: var(--f-mono); font-size: 12.5px; color: var(--steel);
  border: 1px solid var(--line-dk); padding: 7px 13px; border-radius: 2px;
}

/* =========================================================================
   MARCHÉS
   ========================================================================= */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px,5vw,56px); }
.market { position: relative; overflow: hidden; background: #000; }
.market img { width: 100%; aspect-ratio: 1/1; object-fit: cover; opacity: .8; transition: transform .5s var(--ease), opacity .4s; }
.market:hover img { transform: scale(1.05); opacity: .65; }
.market__body { position: absolute; inset: auto 0 0 0; padding: 26px; z-index: 2;
  background: linear-gradient(0deg, rgba(10,14,18,.92), transparent); color: #fff; }
.market__n { font-family: var(--f-mono); font-size: 12px; color: var(--blue-bright); letter-spacing: .1em; }
.market__h { font-family: var(--f-display); font-size: 25px; font-weight: 600; margin: 8px 0 8px; }
.market__d { font-size: 14px; color: var(--steel); }
.market__cert { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--blue-bright);
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-dk); }

/* =========================================================================
   ENTREPRISE — chiffres + frise
   ========================================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-lt);
  border: 1px solid var(--line-lt); margin-top: clamp(36px,5vw,56px); }
.stat { background: var(--alu); padding: 34px 26px; }
.stat__v { font-family: var(--f-display); font-size: clamp(36px,4.5vw,58px); font-weight: 700; color: var(--ink-2); line-height: 1; }
.stat__v .u { color: var(--blue); }
.stat__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

.timeline { margin-top: clamp(48px,6vw,80px); border-top: 1px solid var(--line-lt); }
.tl-row { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line-lt);
  align-items: baseline; }
.tl-year { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--blue); }
.tl-body h4 { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--ink-2); }
.tl-body p { font-size: 15px; color: var(--ink-soft); margin-top: 4px; max-width: 70ch; }

/* certifications */
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px,5vw,56px); }
.cert {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line-lt); background: #fff; padding: 18px 22px; min-width: 180px;
}
.cert__code { font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--ink-2); }
.cert__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); }

/* =========================================================================
   DIRECTION
   ========================================================================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(36px,5vw,56px); }
.member { position: relative; }
.member__photo { position: relative; overflow: hidden; background: var(--panel); }
.member__photo img { width: 100%; aspect-ratio: 56/68; object-fit: cover; filter: grayscale(.15) contrast(1.02);
  transition: transform .5s var(--ease), filter .4s; }
.member:hover .member__photo img { transform: scale(1.04); filter: grayscale(0) contrast(1.04); }
.member__tag {
  position: absolute; top: 0; left: 0; background: rgba(14,19,24,.85); color: var(--blue-bright);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 11px;
}
.member__body { padding-top: 16px; }
.member__name { font-family: var(--f-display); font-size: 21px; font-weight: 600; color: #fff; }
.member__role { font-family: var(--f-mono); font-size: 12.5px; color: var(--blue-bright); margin-top: 4px; letter-spacing: .02em; }
.member__bio { font-size: 14px; color: var(--slate); margin-top: 12px; }
.member__mail { font-family: var(--f-mono); font-size: 12.5px; color: var(--steel); margin-top: 12px; display: inline-flex; gap: .5em; align-items: center; }
.member__mail:hover { color: var(--blue-bright); }

/* carte PDG mise en avant */
.member.lead { grid-column: span 1; }
.member.lead .member__tag { background: var(--blue); color: #fff; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; margin-top: clamp(36px,5vw,56px); }
.coord { display: grid; gap: 26px; }
.coord__item { display: grid; grid-template-columns: 24px 1fr; gap: 16px; }
.coord__item .ico { color: var(--blue-bright); margin-top: 3px; }
.coord__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.coord__v { color: #fff; margin-top: 4px; font-size: 16px; }
.coord__v a:hover { color: var(--blue-bright); }
.contact__media img { width: 100%; aspect-ratio: 7/5; object-fit: cover; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 15px; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dk); padding: 13px 14px;
  border-radius: 2px; transition: border-color .18s, background .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: rgba(46,114,201,.08);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__note { font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: var(--steel); padding-block: clamp(48px,6vw,72px) 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { margin-bottom: 18px; }
.footer__tag { font-size: 14px; color: var(--slate); max-width: 38ch; }
.footer h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14.5px; color: var(--steel); transition: color .18s; }
.footer ul a:hover { color: #fff; }
.footer__legal {
  margin-top: clamp(36px,5vw,56px); padding-top: 24px; border-top: 1px solid var(--line-dk);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--slate); letter-spacing: .02em;
}

/* =========================================================================
   RÉVÉLATIONS AU DÉFILEMENT
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { transform: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .intro__grid, .savoir__top, .contact__grid { grid-template-columns: 1fr; }
  .cap-grid, .markets, .team { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .savoir__media { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0; background: rgba(14,19,24,.98);
    padding: 24px var(--gut) 30px; border-top: 1px solid var(--line-dk);
  }
  .specstrip__grid { grid-template-columns: 1fr 1fr; }
  .specstrip__cell:nth-child(2) { border-left: 0; }
  .specstrip__cell:nth-child(3), .specstrip__cell:nth-child(4) { border-top: 1px solid var(--line-dk); }
  .cap-grid, .markets, .team, .stats, .footer__top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .savoir__media { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}
