/* ==========================================================
   KMG – Feuille de style principale
   Couleurs inspirées du logo : bleu dégradé, marine, acier
   ========================================================== */
:root {
  --navy-950: #050f1f;
  --navy-900: #081a33;
  --navy-800: #0d2647;
  --blue-700: #0f56a3;
  --blue-600: #1668bd;
  --blue-500: #1f84d6;
  --sky-400:  #3bb3f2;
  --steel-500:#5f6b7c; /* assombri pour un contraste ≥ 4,5:1 sur fond blanc (RGAA / WCAG AA) */
  --steel-300:#c3cbd6;
  --steel-100:#eef2f6;
  --bg:       #ffffff;
  --bg-alt:   #f4f7fa;
  --ink:      #0c1726;
  --ink-soft: #4a5869;
  --line:     #e2e8ef;
  --grad:     linear-gradient(120deg, var(--blue-600) 0%, var(--sky-400) 100%);
  --radius:   14px;
  --shadow:   0 18px 50px -20px rgba(8, 26, 51, .28);
  --header-h: 84px;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.eyebrow--light { color: var(--sky-400); }
.h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin-bottom: 22px; }
.h2--light { color: #fff; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none;
  cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 104, 189, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(22, 104, 189, .8); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--blue-600); text-decoration: none; font-size: 15px;
}
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo {
  width: 58px; height: 48px; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 3px 4px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; color: #fff; transition: color .35s; }
.brand__text strong { font-family: var(--font-head); font-size: 22px; letter-spacing: .04em; }
.brand__text small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; position: relative; transition: color .35s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .3s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: 11px 20px; }

.header.is-scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 6px 30px -12px rgba(8,26,51,.18); height: 72px; }
.header.is-scrolled .brand__text { color: var(--navy-900); }
.header.is-scrolled .nav a:not(.btn) { color: var(--ink); }
.header.is-scrolled .brand__logo { background: transparent; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
.header.is-scrolled .burger span, .nav-open .burger span { background: var(--navy-900); }
.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; background: var(--navy-900);
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(5,15,31,.88) 0%, rgba(5,15,31,.6) 45%, rgba(5,15,31,.15) 100%),
    linear-gradient(0deg, rgba(5,15,31,.7) 0%, rgba(5,15,31,0) 40%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
.hero__title { font-size: clamp(40px, 6.4vw, 82px); font-weight: 800; max-width: 900px; margin-bottom: 26px; }
.hero__title .text-grad { white-space: nowrap; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 620px; color: rgba(255,255,255,.86); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,.14); background: rgba(5,15,31,.35); backdrop-filter: blur(8px); }
.hero__bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__pill {
  display: flex; align-items: center; gap: 16px; padding: 26px 0;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 16px;
  border-left: 1px solid rgba(255,255,255,.14); padding-left: 28px; transition: background .3s;
}
.hero__pill:first-child { border-left: 0; padding-left: 0; }
.hero__pill span { font-size: 13px; color: var(--sky-400); font-weight: 700; }
.hero__pill:hover { color: var(--sky-400); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--tight { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 56px; max-width: 720px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section__head--row .h2 { margin-bottom: 0; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.intro__text { font-size: 18px; color: var(--ink-soft); padding-top: 38px; }
.intro__text strong { color: var(--ink); }

/* Cards expertises */
.cards { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 30px; position: relative; flex: 1; display: flex; flex-direction: column; }
.card__body p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.card__body h3 { font-size: 22px; margin: 8px 0 12px; }
.card__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-600); }
.card__num { position: absolute; top: 24px; right: 28px; font-family: var(--font-head); font-weight: 800; font-size: 40px; color: var(--steel-100); line-height: 1; }
.card--featured { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.card--featured .card__body p { color: rgba(255,255,255,.75); }
.card--featured .card__tag { background: var(--grad); color: #fff; padding: 5px 12px; border-radius: 999px; align-self: flex-start; }
.card--featured .card__num { color: rgba(255,255,255,.08); }
.card--featured .link-arrow { color: var(--sky-400); }

/* ---------- Section acier léger ---------- */
.steel { background: var(--navy-950); color: #fff; overflow: hidden; }
.steel__bg {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(31,132,214,.35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(59,179,242,.15), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 80px);
}
.steel .container { position: relative; }
.steel__head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.steel__intro { color: rgba(255,255,255,.75); font-size: 18px; }
.steel__intro strong { color: #fff; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--navy-950); padding: 40px 36px; transition: background .35s; }
.benefit:hover { background: var(--navy-900); }
.benefit__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(31,132,214,.25), rgba(59,179,242,.1)); color: var(--sky-400);
  border: 1px solid rgba(59,179,242,.3);
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 20px; margin-bottom: 12px; }
.benefit p { color: rgba(255,255,255,.68); font-size: 15.5px; margin: 0; }

.steel__compare { margin-top: 80px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.compare__media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.compare__table { padding: 48px; }
.compare__table h3 { font-size: 26px; margin-bottom: 8px; }
.compare__sub { color: var(--ink-soft); }
.compare__table table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 18px; }
.compare__table th { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-500); padding: 0 6px 10px; }
.compare__table th:nth-child(2) { color: var(--blue-600); }
.compare__table td { padding: 12px 6px; border-top: 1px solid var(--line); }
.compare__table td:not(:first-child) { text-align: center; width: 110px; }
.compare__note { font-size: 14.5px; color: var(--ink-soft); background: var(--bg-alt); border-left: 3px solid var(--blue-500); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0; }
.dot { display: inline-flex; gap: 4px; }
.dot::before { content: ""; width: 54px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-500) var(--w), var(--steel-100) var(--w)); }
.dot--1 { --w: 33%; } .dot--2 { --w: 66%; } .dot--3 { --w: 100%; }

/* ---------- Split (surélévation / entreprise) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__text p { color: var(--ink-soft); }
.split__text p strong { color: var(--ink); }

.checklist { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 36px; color: var(--ink-soft); font-size: 16px; }
.checklist li strong { color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad) center/12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"), var(--grad);
}

/* Avant / après */
.ba { position: relative; aspect-ratio: 3/4; max-height: 680px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba__handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.ba__handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--blue-600); font-size: 18px; letter-spacing: 2px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__label { position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(5,15,31,.75); color: #fff; pointer-events: none; }
.ba__label--l { left: 18px; } .ba__label--r { right: 18px; background: var(--blue-600); }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); opacity: .3; }
.step { text-align: center; position: relative; }
.step__n {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px;
  background: #fff; border: 2px solid var(--blue-500); color: var(--blue-600);
  font-family: var(--font-head); font-weight: 800; font-size: 20px; position: relative;
  box-shadow: 0 0 0 8px var(--bg-alt);
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--font-body); font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .25s;
}
.filter:hover { border-color: var(--blue-500); color: var(--blue-600); }
.filter.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.g-item { margin: 0; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--steel-100); }
.g-item--wide { grid-column: span 2; grid-row: span 2; }
.g-item--tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(0deg, rgba(5,15,31,.85), transparent);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(10px); transition: all .35s;
}
.g-item figcaption span { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-400); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.g-item.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,15,31,.94); display: none; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-family: var(--font-head); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 32px; line-height: 1; transition: background .25s; }
.lightbox button:hover { background: var(--blue-600); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Confiance ---------- */
.stack { position: relative; padding: 0 0 70px 0; }
.stack__a { width: 88%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.stack__b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--bg-alt); box-shadow: var(--shadow); }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.trust__item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.trust__item svg { width: 28px; height: 28px; flex: none; color: var(--blue-600); }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 15.5px; }
.trust__item span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--grad); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .9; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact__info > p { color: var(--ink-soft); }
.contact__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list svg { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--steel-100); color: var(--blue-600); flex: none; }
.contact__list span { display: block; font-size: 13px; color: var(--steel-500); font-weight: 600; }
.contact__list strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; word-break: break-word; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--blue-600); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: var(--ink); }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 500; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  transition: border-color .25s, background .25s, box-shadow .25s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(31,132,214,.12); }
.form .is-invalid { border-color: #d64545 !important; }
.form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--ink-soft) !important; font-size: 13.5px !important; }
.form__check input { margin-top: 4px; accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.form__msg { margin: 0; font-size: 14.5px; font-weight: 600; min-height: 1em; }
.form__legal { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.form__legal a { color: var(--blue-700); }
.form__msg.ok { color: #148a52; } .form__msg.err { color: #d64545; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding: 80px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.footer__brand img { background: #fff; border-radius: 12px; padding: 6px; margin-bottom: 20px; }
.footer__brand p { max-width: 330px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer a { display: block; text-decoration: none; margin-bottom: 10px; transition: color .25s; }
.footer p a { display: inline; }
.footer a:hover { color: var(--sky-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.footer__bottom a { margin: 0; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .6s; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: 14px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card--featured { grid-column: span 2; flex-direction: row; }
  .card--featured .card__media { flex: 1.2; aspect-ratio: auto; }
  .card--featured .card__body { flex: 1; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .header.is-scrolled { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: -1;
  }
  .nav a:not(.btn) { color: var(--ink) !important; font-size: 22px; font-family: var(--font-head); }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .brand__text { color: var(--navy-900); }
  .nav-open .header { background: #fff; }
  .section { padding: 90px 0; }
  .section--tight { padding-top: 0; }
  .intro__grid, .steel__head, .split, .contact, .steel__compare { grid-template-columns: 1fr; gap: 40px; }
  .intro__text { padding-top: 0; }
  .split--reverse .split__media { order: 0; }
  .ba { max-width: 480px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .brand__logo { width: 48px; height: 40px; }
  .brand__text strong { font-size: 19px; }
  .hero__content { padding-bottom: 210px; }
  .hero__bar-inner { grid-template-columns: 1fr; }
  .hero__pill { padding: 13px 0; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
  .hero__pill:first-child { border-top: 0; }
  .hero__actions .btn { width: 100%; }
  .cards, .benefits { grid-template-columns: 1fr; }
  .card--featured { grid-column: auto; flex-direction: column; }
  .card--featured .card__media { aspect-ratio: 4/3; }
  .benefit { padding: 30px 24px; }
  .compare__table { padding: 28px 20px; }
  .compare__table td:not(:first-child) { width: 74px; }
  .dot::before { width: 40px; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
  .step__n { grid-row: span 2; margin: 0; }
  .step h3 { margin: 4px 0 6px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
  .g-item figcaption { opacity: 1; transform: none; font-size: 13px; padding: 30px 10px 10px; }
  .g-item figcaption span { font-size: 10px; }
  .trust { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .lightbox { padding: 20px 10px; }
  .lightbox__prev, .lightbox__next { top: auto !important; bottom: 20px; transform: none !important; }
}

/* ==========================================================
   Pages expertises
   ========================================================== */
.page-hero {
  position: relative; min-height: 68vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--navy-900) center/cover no-repeat; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,15,31,.9) 0%, rgba(5,15,31,.55) 55%, rgba(5,15,31,.2) 100%),
              linear-gradient(0deg, rgba(5,15,31,.6), transparent 50%);
}
.page-hero .container { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; max-width: 850px; margin-bottom: 22px; }
.page-hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 640px; color: rgba(255,255,255,.86); margin-bottom: 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 22px; padding: 0; list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--sky-400); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { border-radius: var(--radius); padding: 30px; background: var(--navy-900); color: #fff; }
.aside-card h3 { font-size: 21px; margin-bottom: 10px; }
.aside-card p { color: rgba(255,255,255,.75); font-size: 15px; }
.aside-card .btn { width: 100%; margin-top: 6px; }
.aside-card__tel { display: block; text-align: center; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--sky-400); }
.aside-links { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; }
.aside-links h3 { font-size: 16px; margin-bottom: 14px; }
.aside-links a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; }
.aside-links a:hover { color: var(--blue-600); }
.aside-links a.is-current { color: var(--blue-600); }

.prose { font-size: 17px; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 70px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.prose a { color: var(--blue-600); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 10px; }
.feature { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.feature h3 { font-size: 17px; margin: 0 0 6px; }
.feature p { font-size: 15px; margin: 0; }
.feature__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; background: var(--steel-100); color: var(--blue-600); }
.feature__icon svg { width: 22px; height: 22px; }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.photo-row figcaption { font-size: 13px; color: var(--steel-500); margin-top: 6px; }

.timeline { list-style: none; padding: 0; margin: 24px 0; counter-reset: t; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 26px 58px; counter-increment: t; }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--blue-500); color: var(--blue-600);
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
}
.timeline li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }

.callout { background: var(--bg-alt); border-left: 4px solid var(--blue-500); border-radius: 0 12px 12px 0; padding: 22px 26px; margin: 28px 0; }
.callout p:last-child { margin: 0; }

.faq { display: grid; gap: 12px; margin-top: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--steel-100); color: var(--blue-600);
  display: grid; place-items: center; font-size: 20px; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); font-size: 16px; }

.zones { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.zones li { padding: 7px 14px; border-radius: 999px; background: var(--steel-100); font-size: 14px; font-weight: 600; color: var(--ink); }
.zones li::before { display: none; }
.prose .zones li { padding-left: 14px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; color: #fff; text-decoration: none; }
.related img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.related a:hover img { transform: scale(1.06); }
.related span { position: absolute; inset: auto 0 0 0; padding: 50px 22px 20px; background: linear-gradient(0deg, rgba(5,15,31,.9), transparent); font-family: var(--font-head); font-weight: 700; font-size: 19px; }

.zone-band { background: var(--bg-alt); padding: 70px 0; }
.zone-band__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: center; }
.zone-band h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.zone-band p { color: var(--ink-soft); margin: 0; }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; gap: 50px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .zone-band__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .page-hero { min-height: 74vh; }
  .page-hero .container { padding-bottom: 50px; }
  .aside { grid-template-columns: 1fr; }
  .feature-grid, .related { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:nth-child(3) { display: none; }
}

.nav a[aria-current="page"]::after { width: 100%; }


.nav a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 961px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { font-size: 13.5px; }
  .nav__cta { padding: 10px 16px; font-size: 14px; }
  .brand__text small { display: none; }
}

.more-band {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  text-decoration: none; color: var(--ink-soft); transition: border-color .25s, box-shadow .25s;
}
.more-band strong { color: var(--ink); }
.more-band:hover { border-color: var(--blue-500); box-shadow: var(--shadow); }

/* Vidéo drone du hero */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }

/* ==========================================================
   Guide « Comprendre l'acier léger »
   ========================================================== */
.guide { max-width: 920px; }
.guide-intro { background: var(--bg-alt); border-radius: var(--radius); padding: 40px; margin-bottom: 20px; }
.guide-intro__big { font-family: var(--font-head); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.4; color: var(--ink); font-weight: 600; }
.guide-intro p:last-child { color: var(--ink-soft); margin: 0; }
.guide-h2 { font-size: clamp(26px, 3vw, 36px); margin: 80px 0 12px; }
.guide-lead { color: var(--ink-soft); font-size: 18px; margin-bottom: 30px; }

.history { list-style: none; padding: 0; margin: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 173px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-600), var(--sky-400)); opacity: .35; }
.history li { display: grid; grid-template-columns: 150px 1fr; gap: 48px; padding: 0 0 30px; position: relative; }
.history li::after { content: ""; position: absolute; left: 164px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); }
.history__date { font-family: var(--font-head); font-weight: 700; color: var(--blue-600); font-size: 15px; text-align: right; padding-top: 2px; }
.history h3 { font-size: 19px; margin-bottom: 6px; }
.history p { color: var(--ink-soft); margin: 0; font-size: 16px; }

.wall { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.wall__svg { width: 100%; height: auto; }
.wall__lbl { font: 700 12px var(--font-body); letter-spacing: .12em; fill: var(--steel-500); }
.wall__note { font: 600 14px var(--font-body); fill: var(--ink-soft); }
.wall__num circle { fill: var(--navy-900); }
.wall__num text { font: 700 12px var(--font-body); fill: #fff; text-anchor: middle; }
.wall__legend { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15.5px; }
.wall__legend li::marker { font-family: var(--font-head); font-weight: 700; color: var(--blue-600); }
.wall__legend strong { color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.fact { background: var(--navy-900); color: rgba(255,255,255,.78); border-radius: 12px; padding: 22px; font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
.fact__big { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: #fff; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.steps3__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; }
.steps3__item h3 { font-size: 19px; margin-bottom: 8px; }
.steps3__item p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.guide-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.guide-media figure { margin: 0; }
.guide-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.guide-media figcaption { font-size: 13.5px; color: var(--steel-500); margin-top: 6px; }
.guide .faq a { color: var(--blue-600); font-weight: 600; }
.guide .callout { margin-top: 50px; }

@media (max-width: 900px) {
  .wall { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .guide-intro { padding: 26px 20px; }
  .history::before { left: 7px; }
  .history li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; }
  .history li::after { left: 1px; }
  .history__date { text-align: left; }
  .guide-media { grid-template-columns: 1fr; }
  .wall { padding: 18px; }
}

/* Vidéos intégrées */
.video-block { margin: 26px 0; }
.video-block video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); display: block; }
.video-block__cap { font-size: 14px; color: var(--steel-500); margin-top: 8px; }
.video-open { margin-top: 26px; }
.video-modal { position: fixed; inset: 0; z-index: 120; background: rgba(5,15,31,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.video-modal.is-open { display: flex; }
.video-modal video { width: min(1200px, 100%); max-height: 85vh; border-radius: 10px; background: #000; }
.video-modal__close { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 32px; cursor: pointer; }
.video-modal__close:hover { background: var(--blue-600); }

/* Hero mobile : slogan sur plusieurs lignes, contenu sous le menu */
@media (max-width: 640px) {
  .hero { min-height: auto; justify-content: flex-start; }
  .hero__content { padding-top: calc(var(--header-h) + 36px); }
  .hero__title { font-size: 40px; }
  .hero__title .text-grad { white-space: normal; }
}

/* ==========================================================
   Mur 3D piloté par le défilement
   ========================================================== */
.mur3d { display: none; position: relative; height: 1000vh; background: linear-gradient(180deg, #f4f7fa 0%, #e8eef5 100%); }
.has-mur3d .mur3d { display: block; }
.has-mur3d .mur3d-fallback { display: none; }
.mur3d-only { display: none; }
.has-mur3d .mur3d-only { display: inline; }
.mur3d__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mur3d__canvas { width: 100%; height: 100%; display: block; }
.mur3d__panel {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: max(24px, calc((100vw - 1240px) / 2 + 24px)); width: min(400px, 36vw);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; box-shadow: var(--shadow);
  transition: opacity .18s ease;
}
.mur3d__panel.is-changing { opacity: 0; }
.mur3d__count { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--steel-500); letter-spacing: .06em; margin-bottom: 10px; }
.mur3d__num { color: var(--blue-600); font-size: 22px; }
.mur3d__title { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.mur3d__text { color: var(--ink-soft); font-size: 16px; margin: 0 0 20px; min-height: 4.5em; }
.mur3d__dots { display: flex; gap: 6px; }
.mur3d__dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.mur3d__dots span.is-on { background: var(--grad); }
.mur3d__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-weight: 700; font-size: 14px; color: var(--ink-soft); background: rgba(255,255,255,.85); padding: 8px 16px; border-radius: 999px; transition: opacity .4s; animation: hintBounce 2s ease-in-out infinite; }
.mur3d__hint.is-hidden { opacity: 0; }
@keyframes hintBounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.section--flush { padding-top: 60px; }
@media (max-width: 760px) {
  .mur3d { height: 900vh; }
  .mur3d__panel { top: auto; bottom: 14px; left: 12px; right: 12px; width: auto; transform: none; padding: 16px 18px; border-radius: 14px; }
  .mur3d__title { font-size: 19px; margin-bottom: 6px; }
  .mur3d__text { font-size: 14.5px; min-height: 0; margin-bottom: 12px; }
  .mur3d__hint { bottom: auto; top: 90px; }
}

/* Intro de la 3D sur la page Ossature (masquée si la 3D n'est pas disponible) */
.mur3d-intro { display: none; padding: 90px 0 30px; background: #e3e9f0; text-align: center; }
.mur3d-intro .eyebrow { justify-content: center; }
.mur3d-intro .guide-lead { margin: 0 auto; }
.has-mur3d .mur3d-intro { display: block; }

/* En-tête : logo seul, plus grand */
.brand { gap: 0; }
.brand__logo {
  width: auto; height: 64px; background: none; padding: 0; border-radius: 0;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.35)) drop-shadow(0 4px 10px rgba(0,0,0,.35));
  transition: height .35s, filter .35s;
}
.header.is-scrolled .brand__logo { height: 52px; filter: none; background: none; }
.nav-open .brand__logo { filter: none; }
@media (max-width: 640px) {
  .brand__logo { height: 52px; }
  .header.is-scrolled .brand__logo { height: 44px; }
}

/* Logo sur badge blanc (lisible sur la vidéo sombre) */
.brand { background: rgba(255,255,255,.94); border-radius: 16px; padding: 7px 14px; box-shadow: 0 8px 24px -8px rgba(5,15,31,.45); transition: padding .35s, box-shadow .35s, background .35s; }
.brand__logo { height: 66px; filter: none; }
.header.is-scrolled .brand { background: transparent; box-shadow: none; padding: 4px 0; }
.header.is-scrolled .brand__logo { height: 54px; }
.header { height: 96px; }
.header.is-scrolled { height: 74px; }
@media (max-width: 960px) { .header { height: 84px; } }
@media (max-width: 640px) {
  .brand { padding: 5px 10px; border-radius: 12px; }
  .brand__logo { height: 50px; }
  .header.is-scrolled .brand__logo { height: 44px; }
}

:root { --header-h: 96px; }
@media (max-width: 960px) { :root { --header-h: 84px; } }


/* ==========================================================
   Accueil allégé (octobre 2026)
   ========================================================== */
.section__sub { color: var(--ink-soft); font-size: 18px; max-width: 640px; margin: 0 auto; }
.hero__bar-inner { grid-template-columns: repeat(4, 1fr); }

/* 4 cartes expertises */
.xcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.xcard { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.xcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.xcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,15,31,.9) 0%, rgba(5,15,31,.35) 50%, rgba(5,15,31,0) 75%); }
.xcard:hover img { transform: scale(1.07); }
.xcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; }
.xcard__body h3 { font-size: 22px; margin-bottom: 8px; }
.xcard__body p { font-size: 15px; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.xcard__tag { display: inline-block; background: var(--grad); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.xcard__more { font-weight: 700; font-size: 14px; color: var(--sky-400); }
.xcard__more::after { content: " →"; transition: margin .25s; }
.xcard:hover .xcard__more::after { margin-left: 4px; }
.xcard--featured { outline: 3px solid transparent; }

/* Teaser acier léger */
.steel--teaser { padding: 110px 0; }
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.teaser__list { list-style: none; padding: 0; margin: 10px 0 34px; display: grid; gap: 14px; }
.teaser__list li { position: relative; padding-left: 34px; color: rgba(255,255,255,.8); font-size: 17px; }
.teaser__list li strong { color: #fff; }
.teaser__list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); }
.teaser__visual { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); text-decoration: none; }
.teaser__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.teaser__visual:hover img { transform: scale(1.05); }
.teaser__badge { position: absolute; top: 20px; right: 20px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 24px; box-shadow: 0 0 0 8px rgba(59,179,242,.25); animation: pulse3d 2.2s ease-in-out infinite; }
@keyframes pulse3d { 0%,100% { box-shadow: 0 0 0 8px rgba(59,179,242,.25); } 50% { box-shadow: 0 0 0 16px rgba(59,179,242,.08); } }
.teaser__play { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; background: linear-gradient(0deg, rgba(5,15,31,.9), transparent); color: #fff; font-weight: 700; font-size: 15px; }

/* Sélection de réalisations */
.featured { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.featured__item { position: relative; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; }
.featured__item--big { grid-row: span 2; }
.featured__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.featured__item:hover img { transform: scale(1.06); }
.featured__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(5,15,31,.88), transparent); font-family: var(--font-head); font-weight: 700; font-size: 17px; display: flex; flex-direction: column; gap: 2px; }
.featured__item small { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--sky-400); }
.featured__item:nth-child(n+4) { display: block; }
.featured { grid-template-areas: "big a b" "big c d"; }

/* Étapes en une ligne */
.mini-steps { list-style: none; padding: 0; margin: 4px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mini-steps li::before { content: counter(ms); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; }

/* Page Réalisations */
.page-hero--short { min-height: 52vh; }

@media (max-width: 1100px) {
  .xcards { grid-template-columns: 1fr 1fr; }
  .xcard { aspect-ratio: 4/3; }
}
@media (max-width: 960px) {
  .teaser { grid-template-columns: 1fr; gap: 40px; }
  .featured { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 180px 180px; grid-template-areas: none; }
  .featured__item--big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .hero__bar-inner { grid-template-columns: 1fr 1fr; }
  .hero__pill { padding: 12px 0; font-size: 13.5px; gap: 8px; }
  .hero__pill:nth-child(2) { border-top: 0; }
  .xcards { grid-template-columns: 1fr; gap: 14px; }
  .xcard { aspect-ratio: 16/10; }
  .steel--teaser { padding: 80px 0; }
  .teaser .hero__actions .btn { width: 100%; }
  .featured { grid-template-rows: 220px 150px 150px; gap: 10px; }
  .featured__item span { font-size: 15px; padding: 30px 12px 10px; }
  .featured__item small { font-size: 11.5px; }
}

/* Tableau comparatif sur la page Ossature */
.compare-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 10px 0 26px; }
.compare-card .compare__table { padding: 30px 32px; }
.compare-card .compare__sub { margin-top: 0; }
@media (max-width: 640px) { .compare-card .compare__table { padding: 22px 16px; } }

.gallery__more { text-align: center; margin-top: 36px; }


/* Curseur avant/après au format paysage (accueil) */
.split--ba { grid-template-columns: 1.35fr 1fr; gap: 60px; }
.ba--wide { aspect-ratio: 2 / 1; max-height: none; width: 100%; }
@media (max-width: 960px) { .split--ba { grid-template-columns: 1fr; } .ba--wide { max-width: none; } }

.photo-single { margin: 22px 0 10px; }
.photo-single img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.photo-single figcaption { font-size: 13px; color: var(--steel-500); margin-top: 6px; }
.photo-row--2 { grid-template-columns: 1fr 1fr; }
.photo-row--2 figure:nth-child(3) { display: block; }

/* ---------- Accessibilité ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.footer__bottom a + a { margin-left: 0; }
/* Pages légales */
.legal h2 { scroll-margin-top: 110px; }
.legal ul { color: var(--ink-soft); padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; color: var(--ink-soft); }
.legal th { background: var(--bg-alt); color: var(--ink); }
.legal .legal__date { font-size: 14px; color: var(--steel-500); }
.legal__footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; font-size: 14px; }
.legal__footer a { color: var(--blue-700); margin: 0 6px; }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; font-size: 14px; } .legal th, .legal td { min-width: 130px; } }
/* Photos agrandissables (pages d'expertise) */
.zoomable { cursor: zoom-in; }
.zoomable img { transition: filter .3s ease, box-shadow .3s ease; }
.zoomable:hover img, .zoomable:focus-visible img { filter: brightness(1.08); box-shadow: 0 10px 28px -12px rgba(8, 26, 51, .45); }
/* Réalisations : un chantier = une carte, plusieurs photos */
.p-card { position: relative; }
.p-count { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: rgba(8, 26, 51, .82); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.p-count::before { content: ""; width: 14px; height: 11px; border: 2px solid currentColor; border-radius: 3px; box-shadow: 3px -3px 0 -1px rgba(8, 26, 51, .82), 3px -3px 0 1px currentColor; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .7; cursor: wait; }
