/* =========================================================================
   DERICE — v3 « PORTFOLIO RÉALISATIONS » (magazine / grille)
   Palette : vert sapin #0d3b34 · sable #e8e2d6 · teal #21A6A5 · noir
   Typo : Playfair Display (display) + Space Grotesk (corps)
   ========================================================================= */

:root {
  --sapin: #0d3b34;
  --sapin-2: #0a2c27;
  --sable: #e8e2d6;
  --sable-2: #f3efe7;
  --teal: #21a6a5;
  --teal-d: #18807f;
  --ink: #111210;
  --paper: #fbf9f4;
  --line: rgba(13, 59, 52, 0.14);
  --line-on-dark: rgba(232, 226, 214, 0.18);
  --shadow: 0 18px 50px rgba(10, 44, 39, 0.18);
  --shadow-soft: 0 8px 24px rgba(10, 44, 39, 0.1);
  --serif: "Playfair Display", Georgia, serif;
  --grotesk: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
  --r: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--grotesk);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Typographic helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-d);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--teal); }
.eyebrow.on-dark::before { background: var(--teal); }

.italic { font-style: italic; }
.accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--grotesk);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04201d; }
.btn-primary:hover { background: #2ec3c2; }
.btn-ghost { background: transparent; color: var(--sapin); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sapin); }
.btn-ghost.on-dark { color: var(--sable); border-color: var(--line-on-dark); }
.btn-ghost.on-dark:hover { border-color: var(--sable); }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sapin);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-d); }
.nav-cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--sapin);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO — éditorial
   ========================================================================= */
.hero {
  position: relative;
  padding: 84px 0 0;
  background: var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}
.hero-copy { padding-bottom: 64px; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  margin: 26px 0 24px;
  color: var(--sapin);
}
.hero h1 .line2 { display: block; color: var(--teal); font-style: italic; }
.hero-lead {
  font-size: 1.12rem;
  max-width: 46ch;
  color: #3a4a44;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  align-self: stretch;
}
.hero-media .frame {
  position: relative;
  height: 100%;
  min-height: 460px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 59, 52, 0.08), rgba(13, 59, 52, 0.42));
  mix-blend-mode: multiply;
}
.hero-tag {
  position: absolute;
  left: -10px; bottom: 28px;
  background: var(--sapin);
  color: var(--sable);
  padding: 14px 20px;
  border-radius: var(--r);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.hero-tag strong { color: var(--teal); font-family: var(--serif); font-size: 1.5rem; display: block; }

/* hero bottom strip — signature + scroll */
.hero-strip {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-strip .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sapin);
}
.hero-strip .meta {
  display: flex;
  gap: 40px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6862;
}

/* =========================================================================
   SECTION primitives
   ========================================================================= */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--sapin);
  max-width: 18ch;
}
.section-head .lead { max-width: 38ch; color: #4a5854; }
.section-head .index-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--line);
  line-height: 0.8;
}

.bg-sapin { background: var(--sapin); color: var(--sable); }
.bg-sapin h2, .bg-sapin .display { color: var(--sable); }
.bg-sable { background: var(--sable); }

/* =========================================================================
   GALLERY — masonry
   ========================================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--grotesk);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sapin);
  cursor: pointer;
  transition: all 0.22s ease;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-d); }
.filter-btn.active { background: var(--sapin); color: var(--sable); border-color: var(--sapin); }

/* CSS masonry via columns */
.masonry {
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.tile {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--sapin);
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}
.tile.is-hidden { display: none; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* photo tiles */
.tile-photo { aspect-ratio: auto; }
.tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .tile-photo img { transform: scale(1.07); }

/* heights to create magazine rhythm for photo tiles */
.tile .ph { position: relative; overflow: hidden; }
.tile .ph.h-s { height: 260px; }
.tile .ph.h-m { height: 360px; }
.tile .ph.h-l { height: 460px; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.tile:hover .ph img { transform: scale(1.07); }

.tile .ph::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,44,39,0) 40%, rgba(10,44,39,0.78) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.tile:hover .ph::after { opacity: 1; }

/* caption overlay */
.tile .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}
.tile:hover .cap { transform: translateY(0); }
.tile .cap .univ {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}
.tile .cap .name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--sable);
  margin-top: 4px;
  line-height: 1.1;
}
.tile .cap .sub {
  font-size: 0.82rem;
  color: rgba(232, 226, 214, 0.7);
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}
.tile:hover .cap .sub { opacity: 1; max-height: 60px; }

/* icon (no-photo) tiles */
.tile-icon {
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(155deg, var(--sapin) 0%, var(--sapin-2) 100%);
  border: 1px solid var(--line-on-dark);
}
.tile-icon.alt { background: linear-gradient(155deg, var(--teal-d) 0%, var(--sapin) 100%); }
.tile-icon .top { display: flex; justify-content: space-between; align-items: flex-start; }
.tile-icon .num { font-family: var(--serif); color: rgba(232,226,214,0.45); font-size: 1.4rem; }
.tile-icon .ico {
  width: 92px; height: 92px;
  background: rgba(232,226,214,0.08);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.45s ease, background 0.3s ease;
}
.tile-icon .ico img { width: 56px; height: 56px; filter: brightness(0) invert(1); opacity: 0.92; }
.tile:hover .tile-icon .ico { transform: rotate(-6deg) scale(1.06); background: rgba(33,166,165,0.18); }
.tile-icon .bottom .univ {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.tile-icon .bottom .name {
  font-family: var(--serif); font-size: 1.5rem; color: var(--sable); margin-top: 4px; line-height: 1.1;
}

.gallery-empty {
  text-align: center;
  padding: 60px 0;
  color: #5a6862;
  font-style: italic;
  display: none;
}

/* =========================================================================
   NUMBERS / STATS
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  padding: 40px 28px;
  border-right: 1px solid var(--line-on-dark);
}
.stat:last-child { border-right: none; }
.stat .n {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--teal);
  line-height: 1;
}
.stat .l {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,226,214,0.75);
}

/* =========================================================================
   SAVOIR-FAIRE (process)
   ========================================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--sable-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step .step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--teal);
  line-height: 1;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--sapin);
  margin: 14px 0 10px;
}
.step p { color: #4a5854; font-size: 0.96rem; }

/* =========================================================================
   ATOUTS / FEATURES split
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split-media .badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(251,249,244,0.94);
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--sapin);
}
.feature-list { list-style: none; margin-top: 24px; }
.feature-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi-num { font-family: var(--serif); color: var(--teal); font-size: 1.3rem; min-width: 36px; }
.feature-list .fi-txt h4 { font-size: 1.05rem; color: var(--sapin); margin-bottom: 4px; }
.feature-list .fi-txt p { font-size: 0.92rem; color: #4a5854; }

/* =========================================================================
   UNIVERS strip (7 métiers)
   ========================================================================= */
.univers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.univers .u {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.univers .u:hover { background: var(--sapin); transform: translateY(-4px); border-color: var(--sapin); }
.univers .u .ico {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--sable);
  border-radius: 50%;
  transition: background 0.3s ease;
}
.univers .u .ico img { width: 34px; height: 34px; transition: filter 0.3s ease; }
.univers .u:hover .ico { background: rgba(33,166,165,0.2); }
.univers .u:hover .ico img { filter: brightness(0) invert(1); }
.univers .u h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--sapin); transition: color 0.3s ease; }
.univers .u p { font-size: 0.86rem; color: #5a6862; transition: color 0.3s ease; }
.univers .u:hover h3 { color: var(--sable); }
.univers .u:hover p { color: rgba(232,226,214,0.78); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--teal-d) 0%, var(--sapin) 100%);
  border-radius: var(--r);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 12px; max-width: 44ch; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn-primary { background: var(--sable); color: var(--sapin); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* =========================================================================
   RECRUTEMENT promo (home)
   ========================================================================= */
.recruit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.recruit-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.recruit-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.recruit h2 { color: var(--sable); }
.recruit p { color: rgba(232,226,214,0.82); margin: 16px 0; max-width: 48ch; }
.recruit .jobs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.recruit .jobs span {
  font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--line-on-dark);
  border-radius: 100px;
  color: var(--sable);
}

/* =========================================================================
   PAGE HEADER (interior pages)
   ========================================================================= */
.page-hero {
  background: var(--sapin);
  color: var(--sable);
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -120px; top: -80px;
  width: 420px; height: 420px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
}
.page-hero .crumb {
  font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  max-width: 16ch;
}
.page-hero .lead { margin-top: 22px; max-width: 54ch; color: rgba(232,226,214,0.82); font-size: 1.08rem; }

/* =========================================================================
   À PROPOS
   ========================================================================= */
.lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  color: var(--sapin);
  max-width: 24ch;
}
.prose p { color: #3a4a44; margin-bottom: 18px; }
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  padding: 32px 28px;
  border-top: 3px solid var(--teal);
  background: var(--sable-2);
  border-radius: 0 0 var(--r) var(--r);
}
.value .v-num { font-family: var(--serif); color: var(--teal); font-size: 1.6rem; }
.value h3 { font-family: var(--serif); color: var(--sapin); font-size: 1.4rem; margin: 8px 0 10px; }
.value p { color: #4a5854; font-size: 0.94rem; }

.timeline { border-left: 2px solid var(--line); padding-left: 32px; }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -40px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--paper);
}
.tl-item h3 { font-family: var(--serif); color: var(--sapin); font-size: 1.4rem; }
.tl-item p { color: #4a5854; margin-top: 6px; }

.geo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.geo-card {
  background: var(--sable);
  border-radius: var(--r);
  padding: 40px;
}
.geo-card .axes { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.geo-card .axes .ax .n { font-family: var(--serif); font-size: 2.4rem; color: var(--teal-d); }
.geo-card .axes .ax .l { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5a6862; }

/* =========================================================================
   RECRUTEMENT page
   ========================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.why .ico { width: 56px; height: 56px; background: var(--sable); border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.why .ico img { width: 32px; height: 32px; }
.why h3 { font-family: var(--serif); color: var(--sapin); font-size: 1.35rem; margin-bottom: 8px; }
.why p { color: #4a5854; font-size: 0.94rem; }

.jobs-list { display: grid; gap: 14px; }
.job-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  transition: background 0.3s ease, transform 0.3s ease;
}
.job-row:hover { background: var(--sable-2); transform: translateX(4px); }
.job-row .ji h3 { font-family: var(--serif); color: var(--sapin); font-size: 1.4rem; }
.job-row .ji p { color: #5a6862; font-size: 0.9rem; }
.job-row .jt { display: flex; gap: 18px; align-items: center; }
.job-row .tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-d); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .ci-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-item:first-child { padding-top: 0; }
.contact-info .ci-item .k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 6px; }
.contact-info .ci-item .v { font-size: 1.1rem; color: var(--sapin); font-weight: 500; }
.contact-info .ci-item .v a:hover { color: var(--teal-d); }

.form {
  background: var(--sable-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sapin); font-weight: 600; margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--grotesk);
  font-size: 0.96rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(33,166,165,0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none;
  background: var(--sapin);
  color: var(--sable);
  padding: 28px;
  border-radius: var(--r);
  text-align: center;
}
.form-success.show { display: block; animation: pop 0.4s ease; }
.form-success .chk {
  width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--teal);
  display: grid; place-items: center; color: #04201d; font-size: 1.6rem; font-weight: 700;
}
.form-success h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 8px; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.map-embed {
  margin-top: 28px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--sapin);
  aspect-ratio: 16/7;
  position: relative;
  display: grid; place-items: center;
  text-align: center;
  color: var(--sable);
}
.map-embed .pin { font-size: 2.4rem; }
.map-embed .ax { color: var(--teal); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--sapin-2);
  color: rgba(232,226,214,0.78);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand img { height: 46px; margin-bottom: 18px; background: var(--sable); padding: 8px 12px; border-radius: var(--r); }
.footer-brand p { max-width: 36ch; font-size: 0.92rem; }
.footer-col h4 { color: var(--sable); font-family: var(--serif); font-size: 1.2rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal); }
.footer-qualibat {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 16px;
  background: rgba(232,226,214,0.06);
  padding: 10px 14px; border-radius: var(--r);
  font-size: 0.8rem; color: var(--sable);
}
.footer-qualibat img { height: 30px; border-radius: 3px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a:hover { color: var(--teal); }
.footer-bottom .credit { color: var(--teal); }

/* =========================================================================
   REVEAL animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media .frame { min-height: 360px; }
  .hero-copy { padding-bottom: 40px; }
  .split, .geo, .recruit, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .univers { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-on-dark); }
  .process, .values, .why-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 28px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 14px 0 0; }
  .nav-links .nav-cta a { border: none; }
  .burger { display: flex; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 28px; }
  .cta-band { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .job-row { flex-direction: column; align-items: flex-start; }
  .hero-strip .meta { gap: 20px; }
}
