/* ==========================================================================
   M.Construction — Feuille de style principale
   Thème : blanc & rouge — Site vitrine professionnel
   ========================================================================== */

/* ----------------------------- Variables -------------------------------- */
:root {
  --red: #c8102e;
  --red-dark: #a10d24;
  --red-soft: #fbecee;
  --red-line: #f0c9cf;
  --ink: #1f2229;
  --ink-2: #2c313a;
  --grey: #5b616b;
  --grey-2: #8a919c;
  --line: #e5e8ee;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-dark: #191b20;
  --shadow-sm: 0 2px 8px rgba(20, 23, 28, .06);
  --shadow: 0 10px 30px rgba(20, 23, 28, .09);
  --shadow-lg: 0 22px 55px rgba(20, 23, 28, .16);
  --radius: 6px;
  --radius-lg: 12px;
  --maxw: 1200px;
  --header-h: 78px;
  --font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Oswald", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
html { -webkit-tap-highlight-color: rgba(200, 16, 46, .15); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .4px;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); text-transform: uppercase; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
p { margin: 0 0 1.1em; }
::selection { background: var(--red); color: #fff; }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ---------------------------- Typography -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}
.eyebrow--center::after {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--red);
  display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.1rem; color: var(--grey); }
.text-red { color: var(--red); }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--red); }
.btn--block { width: 100%; }
.btn svg { width: 17px; height: 17px; }

/* ------------------------------ Header ---------------------------------- */
.topbar {
  background: var(--bg-dark);
  color: #cfd3da;
  font-size: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar__list { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #cfd3da; transition: color .2s; }
.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 15px; height: 15px; color: var(--red); flex: none; }
.topbar__note { color: #8f959f; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 46px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; }
.brand__txt span { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }

.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a {
  position: relative;
  padding: 10px 15px;
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .2s;
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.mainnav a:hover { color: var(--red); }
.mainnav a:hover::after { transform: scaleX(1); }
.mainnav a.is-active { color: var(--red); }
.mainnav a.is-active::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.mainnav .btn { display: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--ink); transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: .25s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #16181c;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 17, 21, .92) 0%, rgba(15, 17, 21, .78) 42%, rgba(15, 17, 21, .35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .u { color: var(--red); }
.hero__lead { font-size: 1.15rem; color: #e2e5ea; max-width: 620px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__badge { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: #dfe2e7; }
.hero__badge svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* -------------------------- Page header (inner) ------------------------- */
.pagehead {
  position: relative;
  color: #fff;
  padding: 86px 0 74px;
  background: #16181c;
  overflow: hidden;
}
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.pagehead__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 17, 21, .9), rgba(15, 17, 21, .62)); }
.pagehead__inner { position: relative; z-index: 2; }
.pagehead h1 { color: #fff; margin-bottom: 8px; }
.pagehead p { color: #d9dde3; max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: #aeb4bd; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--red); }

/* ------------------------------ Grids ----------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------ Cards ----------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red-line); }
.card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); margin-bottom: 0; font-size: .97rem; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--red); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 1px; }
.card__link svg { width: 16px; height: 16px; transition: transform .25s; }
.card__link:hover svg { transform: translateX(4px); }

/* Feature (icon left) */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: var(--red); color: #fff; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h4 { font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.feature p { color: var(--grey); font-size: .94rem; margin: 0; }

/* ---------------------------- Split layout ------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 66px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split__media--stack img:first-child { grid-row: span 2; height: 100%; }
.split__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--red); color: #fff;
  padding: 20px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.split__badge span { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: .9; }

/* ------------------------------ Stats ----------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: 34px 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--red); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .85rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--grey); }

/* ----------------------------- Check list ------------------------------- */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }

/* ------------------------------ Process --------------------------------- */
.process { counter-reset: step; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  border-right: 2px solid var(--red-line);
  padding-right: 22px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--grey); }

/* ------------------------------ Gallery --------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter {
  padding: 10px 22px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .86rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey);
  transition: .22s;
}
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-alt);
  border: 0;
  padding: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, .72), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  z-index: 2; color: #fff; text-align: left;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__cap strong { display: block; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: .8px; }
.gallery__cap span { font-size: .8rem; color: #d6dae0; }
.gallery__zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 50%;
  opacity: 0; transform: scale(.8); transition: .3s;
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1); }
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery__item.is-hidden { display: none; }

/* ------------------------------ Lightbox -------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(12, 13, 16, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e7e9ed; font-size: .92rem; padding: 0 20px; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  transition: .22s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav svg, .lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* -------------------------------- CTA ----------------------------------- */
.cta-band {
  position: relative;
  background: var(--red);
  color: #fff;
  padding: clamp(46px, 6vw, 72px) 0;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); }

/* ------------------------------- Contact -------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.info-list { display: grid; gap: 22px; }
.info { display: flex; gap: 16px; align-items: flex-start; }
.info__icon { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius); background: var(--red-soft); color: var(--red); }
.info__icon svg { width: 24px; height: 24px; }
.info h4 { font-family: var(--font-head); text-transform: uppercase; font-size: .95rem; letter-spacing: 1px; margin-bottom: 3px; }
.info p, .info a { margin: 0; color: var(--grey); font-size: .96rem; }
.info a:hover { color: var(--red); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 42px); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .1);
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--red); background: var(--red-soft); }
.field .err { display: none; color: var(--red); font-size: .82rem; margin-top: 6px; }
.field.error .err { display: block; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--grey); }
.check input { width: auto; margin-top: 4px; accent-color: var(--red); }
.form__note { font-size: .82rem; color: var(--grey-2); margin: 16px 0 0; }
.form__success {
  display: none;
  background: #eef7f0;
  border: 1px solid #bfe3c8;
  color: #1c6b34;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: .94rem;
}
.form__success.is-visible { display: block; }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ------------------------------ Accordion ------------------------------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; text-transform: uppercase; letter-spacing: .6px; color: var(--ink);
  transition: color .2s;
}
.acc__btn:hover { color: var(--red); }
.acc__btn svg { width: 20px; height: 20px; color: var(--red); flex: none; transition: transform .3s; }
.acc__item.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc__panel > div { padding: 0 24px 24px; color: var(--grey); }
.acc__panel p:last-child { margin-bottom: 0; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--bg-dark); color: #a9afb8; padding: 70px 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 20px; }
.site-footer a { color: #a9afb8; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__brand img { height: 46px; background: #fff; padding: 7px 10px; border-radius: var(--radius); }
.footer__brand strong { color: #fff; font-family: var(--font-head); font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase; display: block; }
.footer__brand span { font-size: .74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.footer__links li { margin-bottom: 11px; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links a::before { content: "›"; color: var(--red); font-size: 1.1rem; line-height: 1; }
.footer__contact li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer__badges span { font-size: .74rem; border: 1px solid rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; letter-spacing: .5px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer__bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }

/* --------------------------- Cookie banner ------------------------------ */
.cookies {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1500;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display: none;
  align-items: center; gap: 22px; justify-content: space-between; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.cookies.is-visible { display: flex; }
.cookies p { margin: 0; font-size: .9rem; color: var(--grey); max-width: 640px; }
.cookies__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------- Back to top ------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--red-dark); }
.to-top svg { width: 22px; height: 22px; }

/* ---------------------------- Reveal anim ------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------- Legal / rich content ------------------------- */
.rich h2 { margin-top: 44px; font-size: 1.4rem; }
.rich h3 { margin-top: 30px; font-size: 1.1rem; }
.rich p, .rich li { color: var(--grey); }
.rich ul { list-style: disc; padding-left: 22px; margin-bottom: 1.1em; }
.rich ul li { margin-bottom: 8px; }
.rich a { color: var(--red); text-decoration: underline; }
.rich table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .93rem; }
.rich th, .rich td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.rich th { background: var(--bg-alt); font-family: var(--font-head); text-transform: uppercase; font-size: .85rem; letter-spacing: .6px; }

/* --------------------------- Accessibility ------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--red); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(200, 16, 46, .45); outline-offset: 2px; }

/* ------------------------------- Helpers -------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

/* ============================== Responsive ============================== */
@media (max-width: 1080px) {
  .mainnav { display: none; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }

  .mainnav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 86vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 26px 40px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
    display: flex;
    overflow-y: auto;
    max-width: 100vw;
  }
  body.nav-open .mainnav { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .mainnav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .mainnav a::after { display: none; }
  .mainnav .btn { display: inline-flex; margin-top: 24px; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(12, 13, 16, .5);
    opacity: 0; visibility: hidden; transition: .3s; z-index: 850;
  }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 940px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__badge { left: 16px; bottom: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__list { gap: 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__num { border-right: 0; border-bottom: 2px solid var(--red-line); padding: 0 0 8px; }
  .hero { min-height: 560px; }
  .cookies { flex-direction: column; align-items: stretch; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 18px; }
  .section { padding: 48px 0; }
  .brand img { height: 38px; }
  .brand__txt strong { font-size: .95rem; }
  .brand__txt span { font-size: .62rem; letter-spacing: 1.4px; }
  .hero { min-height: 520px; }
  .hero__inner { padding: 64px 0; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { gap: 12px 20px; }
  .gallery { gap: 12px; }
  .lightbox { padding: 14px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .rich table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map iframe { height: 300px; }
  .card { padding: 28px 24px; }
  .btn { padding: 14px 24px; }
}

@media (max-width: 400px) {
  .brand__txt { display: none; }
  .brand img { height: 42px; }
}

/* ==========================================================================
   Corporate polish — raffinement visuel (grande entreprise)
   ========================================================================== */

/* Boutons plus sobres */
.btn { border-radius: 4px; letter-spacing: 1.6px; font-size: .9rem; }

/* Cartes : accent haut + icône sobre */
.card { position: relative; border-radius: 4px; overflow: hidden; padding: 36px 32px; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red); transition: width .45s var(--ease);
}
.card:hover::before { width: 100%; }
.card__icon {
  background: transparent; border: 1px solid var(--red-line);
  border-radius: 4px; width: 54px; height: 54px; color: var(--red);
}
.card:hover { border-color: var(--line); box-shadow: 0 20px 44px rgba(20, 23, 28, .1); transform: translateY(-4px); }

/* Bandeau de confiance sous le hero */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip__item {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 26px; border-right: 1px solid var(--line);
}
.trust-strip__item:last-child { border-right: 0; }
.trust-strip__item svg { width: 26px; height: 26px; color: var(--red); flex: none; }
.trust-strip__item strong {
  display: block; font-family: var(--font-head); text-transform: uppercase;
  font-size: .92rem; letter-spacing: .6px; color: var(--ink); line-height: 1.25;
}
.trust-strip__item span { font-size: .8rem; color: var(--grey); }

/* Section chiffres / société */
.figures { background: var(--bg-dark); color: #c3c8d0; }
.figures .eyebrow { color: #fff; }
.figures h2 { color: #fff; }
.figures p { color: #9aa0a9; }
.figures__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1);
}
.figure { background: var(--bg-dark); padding: 36px 28px; }
.figure strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; line-height: 1; letter-spacing: .5px; }
.figure span { display: block; margin-top: 10px; font-size: .8rem; letter-spacing: 1.4px; text-transform: uppercase; color: #8f959f; }

/* Titres plus éditoriaux */
.hero h1 { letter-spacing: 1px; }
.hero__lead { font-size: 1.2rem; max-width: 600px; }
.section-head h2 { position: relative; }
.eyebrow { letter-spacing: 3.5px; }

/* Ligne fine décorative */
.rule { width: 54px; height: 3px; background: var(--red); border: 0; margin: 0 0 22px; }
.center .rule, .rule--center { margin-left: auto; margin-right: auto; }

/* En-tête plus fin */
.topbar { font-size: .82rem; }
.header__inner { min-height: 84px; }
.brand img { height: 50px; }

/* Liste d'engagements sobre */
.engagements { border-top: 1px solid var(--line); }
.engagements .feature { padding: 28px 0; border-bottom: 1px solid var(--line); }
.engagements .feature__icon { background: transparent; color: var(--red); border: 1px solid var(--red-line); border-radius: 4px; }

@media (max-width: 940px) {
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__item:nth-child(2) { border-right: 0; }
  .trust-strip__item:nth-child(1), .trust-strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .trust-strip__inner { grid-template-columns: 1fr; }
  .trust-strip__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip__item:nth-child(1), .trust-strip__item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .figures__grid { grid-template-columns: 1fr; }
  .header__inner { min-height: 70px; }
  .brand img { height: 40px; }
  .card { padding: 28px 24px; }
  .card::before { height: 2px; }

  /* En-tête solide (évite les bugs de flou sur iOS) */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }

  /* Hero plus compact sur téléphone */
  .hero { min-height: 470px; }
  .hero__inner { padding: 52px 0 46px; }
  .hero h1 { font-size: 1.85rem; line-height: 1.12; }
  .hero__lead { font-size: 1.02rem; margin-bottom: 24px; }
  .hero__actions { gap: 10px; }
  .hero__badges { gap: 10px 18px; margin-top: 28px; padding-top: 20px; }
  .hero__badge { font-size: .84rem; }
  .hero__badge svg { width: 18px; height: 18px; }

  /* Libellés */
  .eyebrow { font-size: .72rem; letter-spacing: 2px; margin-bottom: 12px; }
  .eyebrow::before, .eyebrow--center::after { width: 22px; }
  .topbar { font-size: .78rem; }
  .topbar__list { gap: 14px; }
  .topbar__item svg { width: 14px; height: 14px; }

  /* Titres de section */
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.65rem; }
  .topbar { font-size: .74rem; }
  .topbar__list { gap: 10px; }
}

/* ==========================================================================
   Dynamisme — diaporama hero, parallaxe, bandeau vidéo, zones
   ========================================================================== */

/* --- Diaporama du hero --- */
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:first-child { opacity: 1; }
.js-hero .hero__slide { animation: heroFade 24s infinite; }
.js-hero .hero__slide:nth-child(1) { animation-delay: 0s; }
.js-hero .hero__slide:nth-child(2) { animation-delay: 8s; }
.js-hero .hero__slide:nth-child(3) { animation-delay: 16s; }
.js-hero .hero__slide img { animation: heroZoom 9s ease-in-out infinite alternate; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  29% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 14px; display: block;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 7px;
  margin-left: -2px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* --- Sections parallaxe (image fixe en fond) --- */
.parallax {
  position: relative; min-height: 480px; display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center;
  background-attachment: fixed; overflow: hidden;
}
.parallax::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 15, 19, .92) 0%, rgba(13, 15, 19, .66) 55%, rgba(13, 15, 19, .38) 100%);
}
.parallax__inner { position: relative; z-index: 2; max-width: 720px; padding: 84px 0; }
.parallax h2 { color: #fff; }
.parallax p { color: #d8dce2; }
.parallax .eyebrow { color: #fff; }
.parallax .eyebrow::before { background: var(--red); }
.parallax__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* --- Bandeau vidéo --- */
.video-band {
  position: relative; min-height: 540px; display: flex; align-items: center;
  overflow: hidden; color: #fff; background: #101216;
}
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(13, 15, 19, .9) 0%, rgba(13, 15, 19, .55) 60%, rgba(200, 16, 46, .25) 100%);
}
.video-band__inner { position: relative; z-index: 2; max-width: 700px; padding: 80px 0; }
.video-band h2 { color: #fff; }
.video-band p { color: #dde1e7; }
.video-band .play {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.6px; font-size: .9rem; color: #fff;
}
.video-band .play i {
  width: 54px; height: 54px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; transition: transform .25s var(--ease);
}
.video-band .play:hover i { transform: scale(1.08); }
.video-band .play svg { width: 22px; height: 22px; color: #fff; }

/* --- Zones d'intervention --- */
.zones__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zone {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  padding: 18px 22px; transition: border-color .25s, transform .25s var(--ease);
}
.zone:hover { border-color: var(--red); transform: translateY(-3px); }
.zone svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.zone strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: .95rem; }
.zones__note { margin-top: 26px; color: var(--grey); }

/* --- Bandeau chiffres animés --- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; }
.counter { background: rgba(255, 255, 255, .02); padding: 30px 24px; text-align: center; }
.counter strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; line-height: 1; }
.counter span { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: 1.4px; text-transform: uppercase; color: #cfd4dc; }

@media (max-width: 1080px) {
  .parallax { background-attachment: scroll; }
}
@media (max-width: 940px) {
  .zones__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .zones__grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .parallax { min-height: 380px; }
  .parallax__inner { padding: 56px 0; }
  .video-band { min-height: 420px; }
  .video-band__inner { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js-hero .hero__slide, .js-hero .hero__slide img, .hero__scroll::after { animation: none !important; }
  .hero__slide:first-child { opacity: 1; }
}

/* --- Cartes média (photos de métiers) --- */
.media-card { margin: 0; position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.media-card:hover img { transform: scale(1.05); }
.media-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  color: #fff; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 1px; font-size: .85rem;
  background: linear-gradient(to top, rgba(13, 15, 19, .82), transparent);
}
