/* FSE Ingénierie — feuille de style */
:root {
  --green: #008770;
  --green-dark: #006553;
  --green-soft: #e6f2ef;
  --ink: #16201e;
  --ink-2: #44504d;
  --line: #d9e0de;
  --bg: #ffffff;
  --bg-2: #f4f6f5;
  --radius: 4px;
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section-head { margin-bottom: 48px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__logo { height: 50px; width: auto; }
.brand__mark {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--green); display: grid; place-items: center;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.brand__name span { font-weight: 400; color: var(--ink-2); }

.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav .btn { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  background: var(--green); color: #fff; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 2px solid var(--green); transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; padding: 140px 0 80px;
  background: #0d1614 url("../img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,20,17,.88) 0%, rgba(8,20,17,.66) 45%, rgba(8,20,17,.15) 100%);
}
.hero .container { position: relative; }
.hero .eyebrow { color: #7fd3c1; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; max-width: 16ch; margin-bottom: 22px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.25); font-size: .92rem; color: rgba(255,255,255,.8); }
.hero__tags strong { color: #fff; font-weight: 600; }

/* ---------- Missions ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: #fff; padding: 30px 24px 28px; }
.service__icon { width: 44px; height: 44px; color: var(--green); margin-bottom: 20px; }
.service p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.service ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Outils ---------- */
.tools { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.tools__img { position: relative; }
.tools__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.tools__img figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; }
.tool { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool__num { font-weight: 800; color: var(--green); font-size: .95rem; min-width: 28px; padding-top: 2px; }
.tool h3 { margin-bottom: 4px; }
.tool p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- Démarche ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--green); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .85rem; font-weight: 800; color: var(--green); margin-bottom: 10px; letter-spacing: .08em;
}
.step p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---------- Références ---------- */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.project {
  grid-column: span 2; position: relative; overflow: hidden; border-radius: var(--radius);
  background: #111; cursor: zoom-in; border: 0; padding: 0; text-align: left; color: #fff; font: inherit;
  aspect-ratio: 4 / 3;
}
.project--wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .92; }
.project:hover img, .project:focus-visible img { transform: scale(1.04); opacity: 1; }
.project__info {
  position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
}
.project__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fe0cd; }
.project__title { display: block; font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.project__desc { display: block; font-size: .88rem; color: rgba(255,255,255,.8); margin-top: 2px; }
.projects__note { font-size: .85rem; color: var(--ink-2); margin-top: 22px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,12,11,.94);
  display: none; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 2px; }
.lightbox__caption { color: #fff; margin-top: 16px; text-align: center; }
.lightbox__caption small { display: block; color: rgba(255,255,255,.65); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 26px; left: 24px; color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.about__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; border-radius: var(--radius); }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__date { font-weight: 700; color: var(--green); font-size: .9rem; }
.timeline strong { display: block; }
.timeline span { color: var(--ink-2); font-size: .95rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.fact { background: var(--green-soft); padding: 20px; border-radius: var(--radius); }
.fact b { display: block; font-size: 1.7rem; color: var(--green-dark); line-height: 1.1; }
.fact span { font-size: .88rem; color: var(--ink-2); }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zone__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.zone__item b { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.zone__item span { color: var(--ink-2); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: #7fd3c1; }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.contact p { color: rgba(255,255,255,.78); }
.contact__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px; }
.contact__line { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__line:last-child { border-bottom: 0; }
.contact__line svg { width: 22px; height: 22px; flex: none; color: #7fd3c1; margin-top: 2px; }
.contact__line small { display: block; color: rgba(255,255,255,.55); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__line a { color: #fff; text-decoration: none; font-weight: 600; }
.contact__line a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #0d1513; color: rgba(255,255,255,.6); font-size: .88rem; padding: 28px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: rgba(255,255,255,.8); }

/* ---------- Page légale ---------- */
.legal { padding: 130px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2.2rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.3rem; margin-top: 38px; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .tools, .about, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__img img { aspect-ratio: 16 / 10; }
  .project, .project--wide { grid-column: span 3; aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .container { padding: 0 18px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 18px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .hero { min-height: 88vh; padding-bottom: 56px; }
  .services, .zone, .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project, .project--wide { grid-column: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .lightbox { padding: 60px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
}
