/* ==========================================================================
   BCAT — Bureau de Contrôle & Assistance Technique
   Feuille de style principale
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --navy-950: #061528;
  --navy-900: #0B2545;
  --navy-800: #12376A;
  --navy-700: #2C4A72;
  --navy-100: #E0E6EF;
  --navy-50:  #F3F6FA;
  --steel:    #ABB4C2;
  --orange:   #F28C28;
  --orange-600: #D9721A;
  --orange-ink: #B4580A;          /* orange lisible sur fond clair (AA) */
  --ink:      #0F1B2D;
  --text:     #3A4A60;
  --muted:    #64748B;
  --white:    #FFFFFF;
  --line:     rgba(11, 37, 69, .12);
  --line-light: rgba(255, 255, 255, .14);

  --font-head: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(6, 21, 40, .06);
  --shadow:    0 12px 30px -12px rgba(6, 21, 40, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 21, 40, .35);

  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--navy-900); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--orange); color: var(--navy-900); font-weight: 700;
  padding: .75rem 1.1rem; border-radius: var(--radius-sm); transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--navy-50); }
.section--dark { background: var(--navy-900); color: var(--navy-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--orange-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--orange); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--orange); }
.section-index { font-family: var(--font-head); font-weight: 600; color: var(--orange-ink); margin-right: .2rem; }
.section--dark .section-index { color: var(--orange); }

.h-display { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.h-card { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); line-height: 1.65; color: var(--text); }
.section--dark .lead { color: var(--navy-100); }
.text-accent { color: var(--orange); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--orange); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head--split > div { max-width: 680px; }

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: var(--orange); --btn-fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .85rem 1.6rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid transparent; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(242, 140, 40, .65); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); box-shadow: none; }
.btn--navy { --btn-bg: var(--navy-900); --btn-fg: var(--white); }
.btn--navy:hover { background: var(--navy-800); box-shadow: 0 14px 28px -12px rgba(11, 37, 69, .6); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy-900); border-color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); box-shadow: none; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; color: var(--navy-900);
  border-bottom: 2px solid var(--orange); padding-bottom: .15rem;
  transition: gap .25s var(--ease), color .2s;
}
.link-arrow:hover { gap: .85rem; color: var(--orange-ink); }
.section--dark .link-arrow { color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 54px; width: auto; transition: height .35s var(--ease), opacity .3s; }
.brand .logo-navy { display: none; }
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(6, 21, 40, .35);
}
.site-header.is-scrolled .brand img { height: 46px; }
.site-header.is-scrolled .logo-white { display: none; }
.site-header.is-scrolled .logo-navy { display: block; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative; display: inline-block; padding: .55rem .9rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .88);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header.is-scrolled .nav__link { color: var(--navy-700); }
.site-header.is-scrolled .nav__link:hover, .site-header.is-scrolled .nav__link[aria-current="page"] { color: var(--navy-900); }
.nav__cta { margin-left: .75rem; min-height: 46px; padding: .6rem 1.2rem; font-size: .92rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px;
  background: transparent; color: var(--white); align-items: center; justify-content: center;
}
.site-header.is-scrolled .nav-toggle { color: var(--navy-900); border-color: var(--line); }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 120; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 2rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    background: var(--navy-900);
    background-image: radial-gradient(circle at 85% 10%, rgba(242, 140, 40, .18), transparent 45%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav__link { display: block; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; padding: .6rem 0; color: var(--white) !important; border-bottom: 1px solid var(--line-light); }
  .nav__link::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .nav__cta { margin: 0; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  body.nav-open .nav-toggle { color: var(--white); border-color: rgba(255, 255, 255, .3); }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  body.nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.nav-open .site-header .logo-white { display: block; position: relative; z-index: 120; }
  body.nav-open .site-header .logo-navy { display: none; }
  .nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  body.nav-open .nav__list li { opacity: 1; transform: none; }
  body.nav-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  body.nav-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  body.nav-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  body.nav-open .nav__list li:nth-child(5) { transition-delay: .2s; }
  .brand { position: relative; z-index: 120; }
}

/* ---------- Motif de fond ---------- */
.pattern-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: var(--white);
  background: var(--navy-950); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 3rem) 0 9rem;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out both; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 21, 40, .96) 0%, rgba(11, 37, 69, .88) 42%, rgba(11, 37, 69, .45) 75%, rgba(11, 37, 69, .25) 100%),
    linear-gradient(0deg, rgba(6, 21, 40, .85) 0%, transparent 40%);
}
.hero .container { position: relative; }
.hero__content { max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: rgba(224, 230, 239, .9); max-width: 600px; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem;
  padding: .45rem .9rem .45rem .5rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .85rem; color: var(--navy-100);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__badge strong { background: var(--orange); color: var(--navy-900); border-radius: 999px; padding: .15rem .6rem; font-family: var(--font-head); font-size: .78rem; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 8.5rem; z-index: 2;
  display: flex; align-items: center; gap: .8rem; writing-mode: vertical-rl;
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero__scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--orange), transparent); animation: scrollLine 2.2s var(--ease) infinite; }
@media (max-width: 760px) { .hero__scroll { display: none; } }

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Bandeau chiffres ---------- */
.stats { position: relative; z-index: 5; margin-top: -5.5rem; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: clamp(1.5rem, 3vw, 2.3rem); position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); line-height: 1; color: var(--navy-900); letter-spacing: -.03em; }
.stat__value sup, .stat__value span.plus { color: var(--orange); font-size: .6em; vertical-align: top; margin-left: .1em; }
.stat__label { margin-top: .6rem; font-size: .92rem; color: var(--muted); line-height: 1.4; }
.stat:first-child { background: var(--navy-900); }
.stat:first-child .stat__value { color: var(--white); }
.stat:first-child .stat__label { color: var(--steel); }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: var(--navy-100);
  padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.3); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--navy-950) 10%, rgba(11, 37, 69, .82) 60%, rgba(11, 37, 69, .55));
}
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); max-width: 860px; }
.page-hero .lead { color: rgba(224, 230, 239, .88); max-width: 680px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; font-size: .88rem; color: var(--steel); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--orange); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.page-hero__no {
  position: absolute; right: var(--gutter); bottom: -0.15em; z-index: 0;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 20vw, 16rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); letter-spacing: -.05em; pointer-events: none;
}

/* ---------- À propos (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.media-stack { position: relative; padding: 0 0 3rem 3rem; isolation: isolate; }
.media-stack__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 62%; height: 70%;
  border-radius: var(--radius-lg); background: var(--navy-900); z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px); background-size: 18px 18px;
}
.media-stack__badge {
  position: absolute; right: -1rem; bottom: 1rem;
  background: var(--orange); color: var(--navy-900); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow); max-width: 220px;
}
.media-stack__badge strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; letter-spacing: -.03em; }
.media-stack__badge span { font-size: .88rem; font-weight: 600; line-height: 1.35; display: block; margin-top: .35rem; }
@media (max-width: 560px) { .media-stack { padding: 0 0 2rem 1.25rem; } .media-stack__badge { right: .5rem; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.5; }
.checklist .icon { color: var(--navy-900); background: rgba(242, 140, 40, .18); border-radius: 50%; padding: 4px; width: 26px; height: 26px; margin-top: -1px; stroke-width: 2.5; }
.section--dark .checklist .icon { color: var(--orange); background: rgba(242, 140, 40, .14); }

/* ---------- Référentiels ---------- */
.standards { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.standards li {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .06em;
  padding: .55rem 1.05rem; border-radius: 10px; border: 1px solid var(--line); color: var(--navy-900); background: var(--white);
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.standards li:hover { border-color: var(--orange); transform: translateY(-2px); }
.section--dark .standards li { background: rgba(255, 255, 255, .04); color: var(--white); border-color: var(--line-light); }
.standards-label { font-size: .85rem; color: var(--muted); margin: 0 0 .9rem; font-weight: 500; }

/* ---------- Cartes services ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(1.75rem, 3vw, 2.4rem); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-600)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__no { position: absolute; right: 1.6rem; top: 1.3rem; font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; color: var(--navy-50); line-height: 1; letter-spacing: -.04em; transition: color .3s; }
.service-card:hover .service-card__no { color: var(--navy-100); }
.icon-box {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--orange); margin-bottom: 1.5rem; position: relative;
}
.icon-box .icon { width: 28px; height: 28px; }
.service-card__tag { font-family: var(--font-head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: .4rem; }
.service-card p { color: var(--muted); }
.service-card ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .45rem; font-size: .94rem; }
.service-card ul li { display: flex; gap: .55rem; align-items: baseline; }
.service-card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-2px); }
.service-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Garanties ---------- */
.values-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-light);
  transition: background-color .35s, transform .35s var(--ease), border-color .35s;
}
.value:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); border-color: rgba(242, 140, 40, .45); }
.value .icon-box { background: rgba(242, 140, 40, .12); color: var(--orange); }
.value h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value p { margin: 0; color: var(--steel); font-size: .95rem; line-height: 1.6; }
.value__no { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--font-head); font-size: .8rem; color: rgba(255, 255, 255, .35); letter-spacing: .1em; }
.section--tint .value, .value--light { background: var(--white); border-color: var(--line); }
.value--light p { color: var(--muted); }
.value--light .value__no { color: var(--steel); }
.value--light .icon-box { background: var(--navy-900); }

/* ---------- Secteurs ---------- */
.sectors { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 1080px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
.sector {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
  padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: background-color .35s, color .35s, transform .35s var(--ease);
  min-height: 170px;
}
.sector .icon { width: 34px; height: 34px; color: var(--orange-ink); transition: color .35s, transform .35s var(--ease); }
.sector h3 { font-size: 1.05rem; margin: auto 0 0; transition: color .35s; }
.sector:hover { background: var(--navy-900); transform: translateY(-4px); }
.sector:hover h3 { color: var(--white); }
.sector:hover .icon { color: var(--orange); transform: scale(1.1); }
.sector--world { background: var(--orange); border-color: var(--orange); }
.sector--world .icon { color: var(--navy-900); }

/* ---------- Réalisations (aperçu + galerie) ---------- */
.projects-teaser { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 250px; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.projects-teaser li:first-child { grid-row: span 2; }
.projects-teaser .project { height: 100%; }
@media (max-width: 900px) {
  .projects-teaser { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }
  .projects-teaser li:first-child { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 480px) { .projects-teaser { grid-auto-rows: 180px; } }

.project {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-900); margin: 0;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 21, 40, .92) 0%, rgba(6, 21, 40, .25) 45%, transparent 70%);
  transition: opacity .4s;
}
.project__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.15rem 1.25rem;
  color: var(--white); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.project__code { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--orange); color: var(--navy-900); padding: .2rem .55rem; border-radius: 6px; margin-bottom: .45rem; }
.project__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.project__zoom {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.project:hover img, .project:focus-visible img { transform: scale(1.07); }
.project:hover .project__zoom, .project:focus-visible .project__zoom { opacity: 1; transform: none; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn {
  min-height: 44px; padding: .55rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--navy-900);
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter-btn span { color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.filter-btn:hover { border-color: var(--navy-900); }
.filter-btn[aria-pressed="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.filter-btn[aria-pressed="true"] span { color: var(--orange); }

.gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gallery li { animation: fadeUp .5s var(--ease) both; }
.gallery li[hidden] { display: none; }
.gallery .project { aspect-ratio: 3 / 4; width: 100%; border: 0; padding: 0; text-align: left; cursor: zoom-in; }
.gallery-count { color: var(--muted); font-size: .92rem; margin: -1.25rem 0 2rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 21, 40, .96); color: var(--white);
}
.lightbox::backdrop { background: rgba(6, 21, 40, .8); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fadeIn .3s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-family: var(--font-head); font-size: .9rem; color: var(--steel); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(3.5rem, 8vw, 6rem); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__caption { text-align: center; padding: 1.1rem var(--gutter) 1.6rem; font-family: var(--font-head); }
.lightbox__caption .project__code { margin: 0 .5rem 0 0; }
.lightbox__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-light); color: var(--white);
  transition: background-color .2s, color .2s;
}
.lightbox__btn:hover { background: var(--orange); color: var(--navy-900); border-color: var(--orange); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
@media (max-width: 640px) {
  .lightbox__stage { padding: 0 .75rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -4.2rem; transform: none; width: 46px; height: 46px; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Clients ---------- */
.clients { overflow: hidden; position: relative; padding-block: .5rem; }
.clients::before, .clients::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.clients::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.clients::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.clients__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.clients__track.is-animated { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marquee 55s linear infinite; }
.clients:hover .clients__track, .clients:focus-within .clients__track { animation-play-state: paused; }
.client {
  flex: none; width: 170px; height: 104px; display: grid; place-items: center; padding: 1rem 1.35rem;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
}
.client img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s, transform .35s var(--ease); }
.client:hover img { filter: none; opacity: 1; transform: scale(1.05); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .625rem)); } }

.clients-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.clients-grid .client { width: auto; }

/* ---------- GPOI ---------- */
.gpoi-card {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3.5rem); box-shadow: var(--shadow); border: 1px solid var(--line);
}
@media (max-width: 960px) { .gpoi-card { grid-template-columns: 1fr; } }
.gpoi-card figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); padding: 1rem; }
.gpoi-card figcaption { color: var(--steel); font-size: .85rem; padding: .9rem .25rem 0; }
.gpoi-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.5rem 0; }
.gpoi-fact { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--navy-50); }
.gpoi-fact strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--navy-900); line-height: 1.1; }
.gpoi-fact span { font-size: .88rem; color: var(--muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pill-list li { padding: .4rem .85rem; border-radius: 999px; background: var(--navy-50); color: var(--navy-800); font-size: .88rem; font-weight: 500; }

/* ---------- Services détaillés ---------- */
.service-detail { display: grid; grid-template-columns: 380px 1fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 960px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail__head { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
@media (max-width: 960px) { .service-detail__head { position: static; } }
.service-detail__no { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--navy-100); letter-spacing: -.05em; margin-bottom: 1rem; }
.service-detail__head h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.service-detail__head p { color: var(--muted); }

.offer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .offer-list { grid-template-columns: 1fr; } }
.offer {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.3rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.offer:hover { border-color: rgba(242, 140, 40, .6); box-shadow: var(--shadow); transform: translateY(-3px); }
.offer__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy-900); transition: background-color .3s, color .3s; }
.offer:hover .offer__icon { background: var(--navy-900); color: var(--orange); }
.offer__icon .icon { width: 22px; height: 22px; }
.offer h3 { font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; line-height: 1.35; letter-spacing: -.01em; }
.offer p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.offer__code { font-family: var(--font-head); font-size: .72rem; font-weight: 700; color: var(--orange-ink); letter-spacing: .1em; }

.service-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.service-nav a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-light); color: var(--white); font-family: var(--font-head); font-size: .9rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.service-nav a:hover { background: var(--orange); color: var(--navy-900); border-color: var(--orange); }

/* ---------- Démarche ---------- */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 4.2rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  background: var(--navy-900); color: var(--orange); box-shadow: 0 0 0 8px var(--navy-50);
}
.step::after { content: ""; position: absolute; top: 26px; left: 68px; right: -1rem; height: 1px; background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
@media (max-width: 980px) { .step::after { display: none; } }
.step h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-900); color: var(--navy-100); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 140, 40, .35), transparent 65%); }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); margin-bottom: .6rem; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-card .icon-box { width: 50px; height: 50px; border-radius: 14px; margin: 0; flex: none; }
.contact-card .icon-box .icon { width: 22px; height: 22px; }
.contact-card h3 { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: .1rem 0 .35rem; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--ink); font-weight: 500; line-height: 1.55; }
.contact-card a:hover { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-card .phones { display: grid; gap: .15rem; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .45rem; }
.field label .req { color: var(--orange-ink); margin-left: .15rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 12px;
  border: 1.5px solid #D5DDE8; background: var(--navy-50); color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8A97A8; }
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-800); background: var(--white); box-shadow: 0 0 0 4px rgba(18, 55, 106, .12); }
.field.has-error input, .field.has-error textarea { border-color: #C2362B; background: #FFF6F5; }
.field__error { display: none; margin-top: .4rem; font-size: .85rem; color: #B42318; font-weight: 500; }
.field.has-error .field__error { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; display: flex; gap: .5rem; align-items: flex-start; }
.form-note .icon { color: var(--orange-ink); margin-top: .15rem; }
.form-status { display: none; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 12px; background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; font-size: .95rem; }
.form-status.is-visible { display: block; animation: fadeUp .4s var(--ease); }
.form-status a { font-weight: 600; text-decoration: underline; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }

.map { margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy-50); aspect-ratio: 21 / 8; min-height: 320px; position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--navy-950); color: var(--steel); padding-top: clamp(4rem, 8vw, 6rem); font-size: .95rem; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--orange) 0 18%, var(--navy-800) 18%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 3rem); padding-bottom: 3.5rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 64px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-links a { transition: color .2s, padding-left .25s var(--ease); }
.footer-links a:hover { color: var(--orange); padding-left: .3rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer-contact .icon { color: var(--orange); margin-top: .25rem; }
.footer-contact a:hover { color: var(--white); }
.footer-contact address { font-style: normal; }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-light); color: var(--white); transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--orange); color: var(--navy-900); border-color: var(--orange); transform: translateY(-3px); }
.socials .icon { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a:hover { color: var(--white); }
.back-to-top { display: inline-flex; align-items: center; gap: .4rem; }
.back-to-top .icon { transform: rotate(-90deg); }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .clients__track [aria-hidden="true"] { display: none; }
}

/* ---------- Divers ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .75rem; }
.divider-dots { height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); margin-block: 2rem; }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy-900); color: var(--navy-100); padding: 6rem var(--gutter); }
.not-found h1 { color: var(--white); font-size: clamp(5rem, 18vw, 10rem); margin: 0; line-height: 1; }
.not-found h1 span { color: var(--orange); }

@media print {
  .site-header, .nav, .hero__scroll, .clients, .map, .socials, .cta-band { display: none !important; }
  body { color: #000; }
  .hero, .page-hero { min-height: auto; padding: 2rem 0; background: #fff; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}





