/* ==========================================================================
   TMO Architecture · feuille de style
   Palette tirée du logo : vert vif et vert anis, encre, ivoire. Fonds clairs,
   un seul vert profond sobre pour les respirations. Fini le vert noir.
   Polices : Gloock (titres), Hanken Grotesk (texte), DM Mono (repères)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* couleurs du logo */
  --lime: #A7E145;
  --green: #3EC058;
  --green-rgb: 62, 192, 88;
  /* dérivés sobres */
  --green-deep: #1F6A3B;
  --forest: #2B5B3B;
  --charcoal: #171917;

  /* fonds clairs */
  --ivory: #F6F5F0;
  --stone: #ECEAE2;
  --sage: #E3EAE0;
  --card: #FCFCF9;

  --ink: #1B1F1C;
  --ink-soft: #566158;
  --on-forest: #F3F6F1;
  --mute-forest: rgba(243, 246, 241, 0.78);
  --line-l: rgba(27, 31, 28, 0.16);
  --line-f: rgba(243, 246, 241, 0.24);

  --font-head: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container-w: 1320px;
  --pad: clamp(22px, 6vw, 80px);
  --section-pad: clamp(80px, 10vw, 140px);
  --overlap: clamp(70px, 9vw, 130px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--pad); }

::selection { background: var(--lime); color: var(--charcoal); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--stone); }
::-webkit-scrollbar-thumb { background: var(--forest); }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* -------------------- Curseur personnalisé (desktop uniquement) -------------------- */
.tmo-cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; }
.tmo-cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); transform: translate(-50%, -50%); transition: opacity 0.3s ease; }
.tmo-cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none;
  width: 44px; height: 44px; margin-left: -22px; margin-top: -22px;
  border: 1px solid rgba(var(--green-rgb), 0.7); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: left 0.16s var(--ease), top 0.16s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.tmo-cursor-ring span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.25s ease; }
html.has-cursor .tmo-cursor-ring { opacity: 1; }
html.has-cursor.cursor-view .tmo-cursor-ring { width: 74px; height: 74px; margin-left: -37px; margin-top: -37px; background: rgba(23, 25, 23, 0.7); border-color: var(--lime); }
html.has-cursor.cursor-view .tmo-cursor-ring span { opacity: 1; }
html.has-cursor.cursor-link .tmo-cursor-ring { width: 56px; height: 56px; margin-left: -28px; margin-top: -28px; border-color: var(--green); }
html.has-cursor.cursor-hide .tmo-cursor-ring, html.has-cursor.cursor-hide .tmo-cursor-dot { opacity: 0; }

/* -------------------- Sections : tons clairs, repère vert en haut -------------------- */
.sec { position: relative; padding: var(--section-pad) 0; }
.sec > .container { position: relative; z-index: 1; }
.sec::before {
  content: ''; position: absolute; top: 0; z-index: 2;
  left: calc((100% - min(100%, var(--container-w))) / 2 + var(--pad));
  width: 56px; height: 4px; background: var(--green);
}
.tone-ivory { background: var(--ivory); color: var(--ink); }
.tone-stone { background: var(--stone); color: var(--ink); }
.tone-sage { background: var(--sage); color: var(--ink); }
.tone-forest { background: var(--forest); color: var(--on-forest); }
.tone-forest::before { background: var(--lime); }

.tone-ivory p, .tone-stone p, .tone-sage p { color: var(--ink-soft); }
.tone-forest p { color: var(--mute-forest); }

/* l'image du chantier chevauche la section précédente */
.sec--above-overlap { padding-bottom: calc(var(--section-pad) + var(--overlap)); }

/* -------------------- Éléments éditoriaux -------------------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 24px;
}
.eyebrow::before { content: ''; display: block; width: 0; height: 1px; background: currentColor; flex-shrink: 0; transition: width 1s var(--ease-slow) 0.1s; }
.is-visible .eyebrow::before, .eyebrow.is-visible::before { width: 34px; }
.eyebrow.center { justify-content: center; }
.tone-forest .eyebrow { color: var(--lime); }

.section-title { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 24px; color: var(--ink); }
.section-title em { font-style: normal; color: var(--green-deep); }
.tone-forest .section-title { color: #fff; }
.tone-forest .section-title em { color: var(--lime); }

.section-text { max-width: 44ch; font-size: 16.5px; font-weight: 300; }
.section-more { margin-top: 52px; }

.num-tag { font-family: var(--font-mono); font-size: 12px; color: var(--lime); letter-spacing: 0.08em; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 17px 30px; border: 1px solid transparent;
  transition: all 0.45s var(--ease); white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.45s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(5px); }
.btn-outline { border-color: var(--lime); color: #fff; background: transparent; }
.btn-outline:hover { background: var(--lime); color: var(--charcoal); }
.btn-outline.dark { border-color: var(--green-deep); color: var(--green-deep); }
.btn-outline.dark:hover { background: var(--green-deep); color: #fff; }
.btn-solid { background: var(--lime); color: var(--charcoal); border-color: var(--lime); }
.btn-solid:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.tone-forest .btn-solid:hover, .cta-final .btn-solid:hover { background: #fff; border-color: #fff; color: var(--charcoal); }

.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 6px; }
.link-arrow::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: rgba(31, 106, 59, 0.28); }
.link-arrow::before { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--green-deep); transition: width 0.7s var(--ease); z-index: 1; }
.link-arrow:hover::before { width: 100%; }
.link-arrow svg { width: 13px; height: 13px; transition: transform 0.45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow.green { color: var(--green-deep); }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease-slow), transform 1.1s var(--ease-slow); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.12s; }
.reveal-delay-2.is-visible { transition-delay: 0.24s; }

/* -------------------- Header -------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 26px 0; transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { position: relative; display: flex; align-items: center; justify-self: start; transition: opacity 0.5s var(--ease); }
.brand img { height: 54px; width: auto; transition: height 0.5s var(--ease); }
.brand .logo-on-light { display: none; }

.main-nav { display: flex; align-items: center; gap: 44px; justify-self: center; }
.main-nav > a, .nav-item > a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; padding: 6px 0; transition: color 0.4s;
}
.main-nav > a::after, .nav-item > a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--lime); transition: width 0.5s var(--ease); }
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-item:hover > a::after, .nav-item > a.active::after { width: 100%; }
.main-nav a.active { color: var(--lime); }
.nav-item > a svg { width: 11px; height: 11px; transition: transform 0.4s var(--ease); }
.nav-item:hover > a svg, .nav-item:focus-within > a svg { transform: rotate(180deg); }

.nav-item { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, 10px);
  min-width: 300px; padding: 8px;
  background: var(--ivory); border: 1px solid var(--line-l); box-shadow: 0 18px 40px rgba(23, 25, 23, 0.16);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.subnav::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; font-size: 14px; color: var(--ink); transition: background 0.3s, color 0.3s; }
.subnav a:hover { background: var(--stone); color: var(--green-deep); }
.sub-thumb { width: 54px; height: 38px; object-fit: cover; flex-shrink: 0; }

.header-cta { display: flex; align-items: center; gap: 20px; justify-self: end; }
.header-cta .btn { padding: 14px 26px; }

/* état défilé : bandeau ivoire, logo foncé */
.site-header.is-scrolled, .site-header.menu-open { background: rgba(246, 245, 240, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 1px 0 var(--line-l); }
.site-header.is-scrolled .brand img, .site-header.menu-open .brand img { height: 42px; }
.site-header.is-scrolled .logo-on-dark, .site-header.menu-open .logo-on-dark { display: none; }
.site-header.is-scrolled .logo-on-light, .site-header.menu-open .logo-on-light { display: block; }
.site-header.is-scrolled .main-nav > a, .site-header.is-scrolled .nav-item > a { color: var(--ink); }
.site-header.is-scrolled .main-nav a.active { color: var(--green-deep); }
.site-header.is-scrolled .main-nav > a::after, .site-header.is-scrolled .nav-item > a::after { background: var(--green-deep); }
.site-header.is-scrolled .btn-outline { border-color: var(--green-deep); color: var(--green-deep); }
.site-header.is-scrolled .btn-outline:hover { background: var(--green-deep); color: #fff; }

.burger { display: none; width: 28px; height: 20px; position: relative; z-index: 210; justify-self: end; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: #fff; transition: all 0.4s var(--ease); }
.site-header.is-scrolled .burger span, .site-header.menu-open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.burger.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; background: var(--ivory); z-index: 190;
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px; overflow-y: auto;
  transform: translateY(-100%); transition: transform 0.7s var(--ease-slow);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav > a, .m-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left;
  font-family: var(--font-head); font-size: 30px; color: var(--ink);
  padding: 15px 0; border-bottom: 1px solid var(--line-l);
}
.mobile-nav > a.active { color: var(--green-deep); }
.m-toggle span { font-family: var(--font-body); font-size: 24px; color: var(--green-deep); transition: transform 0.4s var(--ease); }
.m-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.m-sub a { display: block; padding: 13px 0 13px 18px; font-size: 16px; color: var(--ink-soft); border-bottom: 1px solid var(--line-l); }
.m-sub a:hover { color: var(--green-deep); }
.mobile-nav .mobile-cta { margin-top: 34px; width: auto; align-self: flex-start; font-family: var(--font-body); font-size: 12.5px; padding: 16px 28px; border-bottom: 1px solid var(--lime); }

/* -------------------- Page de garde (hero) -------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 130px var(--pad) 92px; background: var(--charcoal); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.07); animation: heroZoom 16s var(--ease-slow) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,25,23,0.62) 0%, rgba(23,25,23,0.46) 45%, rgba(23,25,23,0.78) 100%);
}
.hero-frame { position: absolute; top: 28px; left: 28px; right: 28px; bottom: 28px; border: 1px solid rgba(255,255,255,0.26); z-index: 2; pointer-events: none; }
.hero-frame i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--lime); }
.hero-frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hero-frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hero-frame i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hero-frame i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 920px; display: flex; flex-direction: column; align-items: center; }
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-brand-name { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.36em; text-transform: uppercase; color: #fff; padding-left: 0.36em; }
.hero-brand-line { display: block; width: 38px; height: 2px; background: var(--lime); }
.hero-brand-loc { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.82); text-align: center; padding-left: 0.3em; }

.hero-title { font-size: clamp(34px, 5.1vw, 68px); line-height: 1.07; color: #fff; margin: 36px 0 24px; max-width: 18ch; }
.hero-title em { font-style: normal; color: var(--lime); }
.hero-desc { color: rgba(255,255,255,0.9); max-width: 50ch; font-size: clamp(15.5px, 1.3vw, 18px); font-weight: 300; margin-bottom: 40px; }

.hero-accordion { width: min(100%, 410px); text-align: left; }
.acc-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  padding: 19px 26px; border: 1px solid var(--lime); background: var(--lime);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.acc-toggle svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); flex-shrink: 0; }
.acc-toggle:hover { background: #fff; border-color: #fff; }
.acc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.7s var(--ease); background: var(--ivory); }
.acc-panel a { display: flex; align-items: center; gap: 16px; padding: 11px 18px; font-size: 14.5px; color: var(--ink); border-top: 1px solid var(--line-l); transition: background 0.3s, padding 0.45s var(--ease); }
.acc-panel li:first-child a { border-top: none; }
.acc-panel a img { width: 62px; height: 44px; object-fit: cover; flex-shrink: 0; }
.acc-panel a span { flex: 1; }
.acc-panel a svg { width: 14px; height: 14px; color: var(--green-deep); }
.acc-panel a:hover { background: var(--stone); padding-left: 24px; }

/* -------------------- À propos -------------------- */
.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-media::before { content: ''; position: absolute; top: -16px; left: -16px; width: 70px; height: 70px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); z-index: 2; }
.about-body p { margin-bottom: 20px; max-width: 54ch; font-weight: 300; }
.about-body .btn { margin-top: 14px; }

.stats-row { margin-top: clamp(64px, 8vw, 100px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line-l); padding-top: 46px; }
.stat-num { font-family: var(--font-head); font-size: clamp(40px, 4.6vw, 62px); color: var(--green-deep); line-height: 1; margin-bottom: 12px; }
.stat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.territories-inner { margin-top: clamp(60px, 8vw, 96px); border-top: 1px solid var(--line-l); padding-top: 50px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 36px; }
.territories-title { max-width: 430px; font-family: var(--font-head); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; color: var(--ink) !important; }
.territories-title em { font-style: normal; color: var(--green-deep); }
.territories-list { display: flex; flex-wrap: wrap; gap: 10px 32px; max-width: 540px; }
.territories-list li { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); position: relative; padding-left: 16px; }
.territories-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; background: var(--green); }

/* -------------------- Prestations : trois plaques et fenêtres de détail -------------------- */
.presta-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.presta-head .section-title { margin-bottom: 0; }
.presta-head .btn { margin-top: 28px; }

.presta-hint { display: flex; align-items: center; gap: 14px; margin-top: clamp(44px, 5vw, 70px); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.presta-hint::before { content: ''; display: block; width: 28px; height: 1px; background: var(--green-deep); }

.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); margin-top: 24px; align-items: start; }
.family:nth-child(2) { margin-top: clamp(28px, 4vw, 64px); }
.family:nth-child(3) { margin-top: clamp(56px, 8vw, 128px); }
.family { background: var(--card); border: 1px solid var(--line-l); }
.family-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sage); }
.family-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.family:hover .family-media img { transform: scale(1.04); }
.family-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,25,23,0.72), rgba(23,25,23,0.05) 62%); }
.family-title { position: absolute; left: 28px; bottom: 20px; z-index: 2; color: #fff; font-size: clamp(30px, 3vw, 40px); }
.family-title::before { content: ''; display: block; width: 34px; height: 3px; background: var(--lime); margin-bottom: 12px; }
.family-sub { padding: 18px 28px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep) !important; }
.family-list li { border-top: 1px solid var(--line-l); }
.svc-open { display: flex; align-items: center; gap: 16px; width: 100%; padding: 17px 28px; text-align: left; transition: background 0.35s, padding 0.45s var(--ease); }
.svc-open:hover { background: var(--stone); padding-left: 34px; }
.tone-stone .svc-open:hover { background: var(--sage); }
.svc-icon { width: 24px; height: 24px; color: var(--green-deep); flex-shrink: 0; }
.svc-icon svg { width: 100%; height: 100%; }
.svc-name { flex: 1; font-family: var(--font-head); font-size: 19px; line-height: 1.25; color: var(--ink); }
.svc-arrow { width: 16px; height: 16px; color: var(--green-deep); flex-shrink: 0; transition: transform 0.45s var(--ease); }
.svc-arrow svg { width: 100%; height: 100%; }
.svc-open:hover .svc-arrow { transform: translate(3px, -3px); }

/* fenêtre de détail */
.tmo-dialog { border: none; padding: 0; background: var(--ivory); color: var(--ink); width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; box-shadow: 0 40px 100px rgba(23,25,23,0.4); overflow: auto; }
.tmo-dialog--simple { width: min(640px, calc(100% - 32px)); }
.tmo-dialog::backdrop { background: rgba(23,25,23,0.62); backdrop-filter: blur(3px); }
.tmo-dialog[open] { animation: dlgIn 0.5s var(--ease-slow); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.dlg-inner { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; }
.dlg-inner--simple { grid-template-columns: 1fr; }
.dlg-media { position: relative; min-height: 320px; background: var(--sage); }
.dlg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlg-content { padding: clamp(30px, 4vw, 54px); }
.dlg-eyebrow { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.dlg-content h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 18px; color: var(--ink); }
.dlg-lead { font-size: 16.5px; font-weight: 300; color: var(--ink-soft); max-width: 50ch; margin-bottom: 8px; }
.dlg-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border: 1px solid var(--line-l); background: var(--ivory); transition: background 0.3s, border-color 0.3s; }
.dlg-close:hover { background: var(--lime); border-color: var(--lime); }
.dlg-close span { position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; background: var(--ink); }
.dlg-close span:nth-child(1) { transform: rotate(45deg); }
.dlg-close span:nth-child(2) { transform: rotate(-45deg); }
.dlg-list { margin-top: 8px; border-top: 1.5px solid var(--ink); }
.dlg-list li { position: relative; padding: 15px 0 15px 24px; border-bottom: 1px solid var(--line-l); font-size: 15.5px; color: var(--ink); font-weight: 300; }
.dlg-list li::before { content: ''; position: absolute; left: 0; top: 24px; width: 7px; height: 7px; background: var(--green); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 30px; }
.detail-cols h4 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px; }
.detail-cols ul li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: 14.5px; color: var(--ink-soft); }
.detail-cols ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--green); }
.detail-cols ol { counter-reset: step; }
.detail-cols ol li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 14.5px; color: var(--ink-soft); counter-increment: step; }
.detail-cols ol li::before { content: counter(step); position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 12px; color: var(--green-deep); }

/* -------------------- Modes et types d'intervention -------------------- */
.interv-head { max-width: 640px; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 38px; }
.mode-card { border-top: 2px solid var(--ink); padding-top: 26px; }
.mode-icon { display: block; width: 38px; height: 38px; color: var(--green-deep); }
.mode-icon svg { width: 100%; height: 100%; }
.mode-card strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.2; margin: 20px 0 8px; color: var(--ink); }
.mode-detail { display: block; font-size: 14.5px; color: var(--ink-soft); font-weight: 300; max-width: 30ch; }
.interv-types { margin-top: clamp(60px, 8vw, 100px); }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip-list li { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 1px solid var(--line-l); background: var(--card); font-size: 14.5px; color: var(--ink); transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s; }
.chip-list li::before { content: ''; width: 7px; height: 7px; background: var(--green); transition: background 0.4s; }
.chip-list li:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip-list li:hover::before { background: var(--lime); }

/* -------------------- Maîtrise d'œuvre et chantier -------------------- */
.chantier-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.chantier-media { position: relative; z-index: 3; margin-top: calc(-1 * (var(--section-pad) + var(--overlap))); aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--forest); box-shadow: 0 30px 60px rgba(23,25,23,0.25); }
.chantier-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-slow); }
.chantier-media:hover img { transform: scale(1.025); }
.chantier-body { padding-top: 10px; }
.chantier-body p { margin-bottom: 18px; max-width: 50ch; font-weight: 300; }
.steps-row { display: flex; gap: clamp(24px, 3vw, 46px); margin-top: 40px; flex-wrap: wrap; }
.step-item { flex: 1; min-width: 120px; position: relative; padding-top: 22px; }
.step-item::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 2px; background: var(--lime); }
.step-item .num-tag { display: block; margin-bottom: 8px; }
.step-item h4 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.permit-block { margin-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line-f); padding-top: 46px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.permit-block h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; color: #fff; }
.permit-block p { max-width: 52ch; font-weight: 300; }

/* -------------------- Cartes projet (page Projets) -------------------- */
.project-card { position: relative; overflow: hidden; display: block; background: var(--stone); }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.project-card:hover img { transform: scale(1.035); }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,25,23,0.78) 0%, rgba(23,25,23,0.08) 46%, transparent 70%); }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.project-info h3 { color: #fff; font-size: clamp(19px, 1.8vw, 25px); margin-bottom: 6px; }
.project-info .meta { font-family: var(--font-mono); color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.project-arrow { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.45s var(--ease); }
.project-arrow svg { width: 15px; height: 15px; transition: transform 0.45s var(--ease); }
.project-card:hover .project-arrow { background: var(--lime); border-color: var(--lime); color: var(--charcoal); }
.project-card:hover .project-arrow svg { transform: translate(3px, -3px); }

/* -------------------- Vision et CTA -------------------- */
.vision-wrap { max-width: 860px; margin: 0 auto; text-align: center; }
.vision-wrap .section-title { font-size: clamp(34px, 5.2vw, 62px); }
.vision-text-block { text-align: left; margin-top: 44px; }
.vision-text-block p { max-width: 62ch; margin: 0 auto 20px; font-weight: 300; }

.cta-final { position: relative; padding: clamp(90px, 13vw, 150px) 0; overflow: hidden; background: var(--charcoal); }
.cta-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(23,25,23,0.66); }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(32px, 5vw, 58px); margin-bottom: 20px; }
.cta-inner p { color: rgba(255,255,255,0.88); margin-bottom: 38px; font-weight: 300; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--charcoal); padding: 96px 0 0; color: #C9D1CB; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 40px; padding-bottom: 72px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 92px; width: auto; margin-bottom: 24px; }
.tagline-strong { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.tagline-sub { color: #AEB8B1; font-size: 13.5px; margin-bottom: 18px; max-width: 34ch; }
.tagline-desc { color: #AEB8B1; font-size: 14px; max-width: 30ch; font-weight: 300; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a, .footer-col p { color: #C9D1CB; font-size: 14px; }
.footer-col a:hover { color: var(--lime); }
.footer-col address { font-style: normal; color: #C9D1CB; font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-ids li { color: #C9D1CB; font-size: 14px; }
.footer-ids li span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); margin-bottom: 2px; }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.4s var(--ease); color: #C9D1CB; }
.footer-social svg { width: 14px; height: 14px; }
.footer-social a:hover { border-color: var(--lime); color: var(--lime); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; flex-wrap: wrap; }
.footer-bottom p { color: #AEB8B1; font-size: 12.5px; }
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { color: #AEB8B1; font-size: 12.5px; }
.footer-legal a:hover { color: var(--lime); }

/* -------------------- Pages internes : en-tête photo -------------------- */
.page-hero { position: relative; padding: clamp(170px, 20vw, 230px) 0 clamp(70px, 8vw, 100px); background: var(--charcoal); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,25,23,0.74), rgba(23,25,23,0.56)); }
.page-hero::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--ivory); z-index: 2; }
.page-hero .container { position: relative; z-index: 3; }
.page-hero-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 72px); color: #fff; max-width: 15ch; margin-top: 22px; }
.page-hero h1 em { font-style: normal; color: var(--lime); }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
.breadcrumb a:hover { color: var(--lime); }
.page-hero-text { max-width: 42ch; color: rgba(255,255,255,0.88); font-weight: 300; }

/* -------------------- Page À propos -------------------- */
.identity { margin-top: clamp(60px, 8vw, 100px); display: grid; grid-template-columns: repeat(12, 1fr); border: 1.5px solid var(--ink); background: var(--card); }
.identity-founder { grid-column: span 5; background: var(--forest); color: #fff; padding: clamp(28px, 3.4vw, 46px); display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: 280px; }
.identity-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.identity-label::before { content: ''; display: block; width: 34px; height: 3px; background: var(--lime); margin-bottom: 16px; }
.identity-founder h3 { font-size: clamp(26px, 2.8vw, 38px); color: #fff; margin-bottom: 12px; }
.identity-founder p { color: var(--mute-forest) !important; font-size: 14.5px; max-width: 32ch; }
.identity-figures { grid-column: span 7; display: grid; grid-template-columns: repeat(3, 1fr); }
.figure { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--line-l); }
.figure:first-child { border-left: none; }
.fig-num { font-family: var(--font-head); font-size: clamp(34px, 3.8vw, 54px); line-height: 1; color: var(--green-deep); white-space: nowrap; }
.fig-label { margin: 16px 0 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.fig-note { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.identity-refs { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.ref { padding: 20px 24px; border-left: 1px solid var(--line-l); }
.ref:first-child { border-left: none; }
.ref span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }
.ref b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 18px; color: var(--ink); line-height: 1.3; }
.ref small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 3px; }

.vocation-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.vocation-intro { position: sticky; top: 108px; }
.vocation-fig { margin-top: 36px; }
.vocation-fig img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.dom-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dom-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 220px; padding: 26px; text-align: left; background: var(--card); border: 1px solid var(--line-l); transition: background 0.45s var(--ease), color 0.45s, border-color 0.45s, transform 0.45s var(--ease); }
.dom-tile:hover { background: var(--forest); border-color: var(--forest); color: #fff; transform: translateY(-4px); }
.dom-tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.dom-icon { display: block; width: 34px; height: 34px; color: var(--green-deep); transition: color 0.45s; }
.dom-icon svg { width: 100%; height: 100%; }
.dom-tile:hover .dom-icon { color: var(--lime); }
.dom-plus { position: relative; width: 16px; height: 16px; margin-top: 6px; }
.dom-plus::before, .dom-plus::after { content: ''; position: absolute; background: var(--green-deep); transition: background 0.45s; }
.dom-plus::before { left: 0; right: 0; top: 7px; height: 1.5px; }
.dom-plus::after { top: 0; bottom: 0; left: 7px; width: 1.5px; }
.dom-tile:hover .dom-plus::before, .dom-tile:hover .dom-plus::after { background: var(--lime); }
.dom-title { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.15; }
.dom-count { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.45s; }
.dom-tile:hover .dom-count { color: var(--mute-forest); }

.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1.5px solid var(--ink); }
.mat-item { padding: 30px 24px; border-bottom: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.mat-item:nth-child(4n+1) { border-left: none; padding-left: 0; }
.mat-qty { display: block; font-family: var(--font-head); font-size: clamp(38px, 4vw, 54px); line-height: 1; color: var(--green-deep); }
.mat-name { display: block; margin: 16px 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.mat-detail { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; font-weight: 300; }

.org-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 40px; }
.org { max-width: 900px; margin: 0 auto; }
.org-tier { position: relative; display: flex; justify-content: center; gap: 24px; padding-top: 36px; }
.org-tier:first-child { padding-top: 0; }
.org-tier--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.org-node { position: relative; text-align: center; padding: 16px 22px; border: 1px dashed rgba(27,31,28,0.4); background: var(--card); min-width: 220px; }
.org-tier:not(:first-child) .org-node::before { content: ''; position: absolute; left: 50%; top: -37px; width: 1px; height: 36px; background: var(--green); }
.org-node strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 17px; color: var(--ink); }
.org-node span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.org-node--main { border: 1.5px solid var(--green); }
.org-node--wide { min-width: 360px; }

.map-wrap { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: clamp(30px, 5vw, 70px); margin-top: 46px; align-items: stretch; }
.map-embed { border: 1px solid var(--line-l); min-height: 420px; background: var(--stone); }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.4) contrast(0.95); display: block; }
.address-card h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-deep); margin: 26px 0 8px; }
.address-card h4:first-child { margin-top: 0; }
.address-card p, .address-card a { font-size: 16px; color: var(--ink); line-height: 1.7; }
.address-card a:hover { color: var(--green-deep); text-decoration: underline; }

/* -------------------- Équipe : carrousel -------------------- */
.tc { margin-top: 46px; }
.tc-frame { border: 1.5px solid var(--ink); background: var(--card); }
.tc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -3px; }
.tc-track::-webkit-scrollbar { display: none; }
.tc-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 0.78fr 1.22fr; min-height: 500px; }
.tc-photo { position: relative; background: var(--forest); overflow: hidden; }
.tc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background-color: var(--forest); background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 38px 38px; }
.tc-placeholder span { font-family: var(--font-head); font-size: clamp(90px, 11vw, 150px); line-height: 1; color: var(--lime); letter-spacing: 0.02em; }
.tc-placeholder i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,0.55); }
.tc-placeholder i:nth-of-type(1) { top: 22px; left: 22px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tc-placeholder i:nth-of-type(2) { top: 22px; right: 22px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tc-placeholder i:nth-of-type(3) { bottom: 22px; left: 22px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tc-placeholder i:nth-of-type(4) { bottom: 22px; right: 22px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.tc-info { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: clamp(28px, 4.4vw, 62px); }
.tc-index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-deep); }
.tc-index::after { content: ''; display: block; width: 34px; height: 3px; background: var(--green); margin-top: 16px; }
.tc-name { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; color: var(--ink); margin-bottom: 18px; }
.tc-role { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink) !important; max-width: 34ch; margin-bottom: 8px; }
.tc-qualif { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-deep) !important; }
.tc-exp { display: flex; align-items: flex-end; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-l); }
.tc-exp b { font-family: var(--font-head); font-weight: 400; font-size: clamp(54px, 6vw, 84px); line-height: 0.9; color: var(--green-deep); }
.tc-exp span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; padding-bottom: 4px; }
.tc-bar { display: flex; align-items: center; gap: 26px; margin-top: 18px; }
.tc-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); white-space: nowrap; }
.tc-count b { font-weight: 500; color: var(--ink); }
.tc-progress { position: relative; flex: 1; height: 2px; background: var(--line-l); }
.tc-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green-deep); transition: width 0.6s var(--ease); }
.tc-buttons { display: flex; gap: 10px; }
.tc-buttons button { width: 48px; height: 48px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background 0.4s var(--ease), color 0.4s, opacity 0.3s; }
.tc-buttons button svg { width: 16px; height: 16px; }
.tc-buttons button:hover:not(:disabled) { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.tc-buttons button:disabled { opacity: 0.3; cursor: default; }

/* -------------------- Projets : sections par catégorie -------------------- */
.cat-nav-wrap { position: sticky; top: 66px; z-index: 50; background: var(--ivory); border-bottom: 1px solid var(--line-l); }
.cat-nav { display: flex; gap: 10px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-pill { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border: 1px solid var(--line-l); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: all 0.4s var(--ease); }
.cat-pill img { width: 44px; height: 32px; object-fit: cover; }
.cat-pill:hover { border-color: var(--green-deep); color: var(--green-deep); background: var(--stone); }
.cat-section { scroll-margin-top: 130px; }
.cat-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.cat-head { position: sticky; top: 150px; }
.cat-head h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 14px; }
.cat-head p { max-width: 30ch; font-weight: 300; }
.cat-count { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat-grid .project-card { aspect-ratio: 4 / 3.2; }
.cat-grid .project-card.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }

/* -------------------- Contact -------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea { background: transparent; border: none; border-bottom: 1px solid rgba(27,31,28,0.3); padding: 12px 2px; color: var(--ink); font-size: 16px; font-weight: 300; transition: border-color 0.4s var(--ease); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-deep); }
.field textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { margin-top: 8px; }
.privacy-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; background: var(--sage); font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.privacy-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-deep); margin-top: 2px; }
.privacy-note a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 20px; font-size: 14px; padding: 13px 16px; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(var(--green-rgb),0.14); color: var(--green-deep); border: 1px solid rgba(var(--green-rgb),0.4); }
.form-status.error { background: rgba(190,60,60,0.08); color: #9b2f2f; border: 1px solid rgba(190,60,60,0.3); }

.contact-info-card { background: var(--forest); color: var(--on-forest); padding: clamp(32px, 4vw, 48px); }
.contact-info-card h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); margin: 28px 0 10px; }
.contact-info-card h4:first-child { margin-top: 0; }
.contact-info-card p, .contact-info-card a { color: var(--on-forest); font-size: 15.5px; line-height: 1.7; font-weight: 300; }
.contact-info-card a:hover { color: var(--lime); }
.contact-map { margin-top: 28px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; filter: grayscale(0.5); }

/* -------------------- Pages légales -------------------- */
.legal-body { max-width: 800px; }
.legal-body h2 { font-size: 24px; margin: 46px 0 14px; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 13px; font-size: 15.5px; font-weight: 300; color: var(--ink-soft); }
.legal-body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1080px) {
  .about-grid, .chantier-grid, .contact-grid, .vocation-grid, .map-wrap, .presta-head, .cat-layout { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; }
  .permit-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vocation-intro, .cat-head { position: static; }
  .chantier-media { margin-top: 0; aspect-ratio: 16 / 11; }
  .sec--above-overlap { padding-bottom: var(--section-pad); }
  .family-grid { grid-template-columns: 1fr 1fr; }
  .family:nth-child(2) { margin-top: 0; }
  .family:nth-child(3) { margin-top: 0; grid-column: span 2; }
  .family:nth-child(3) .family-media { aspect-ratio: 21 / 8; }
  .identity-founder { grid-column: span 12; min-height: 0; }
  .identity-figures { grid-column: span 12; border-top: 1.5px solid var(--ink); }
  .identity-refs { grid-template-columns: repeat(2, 1fr); }
  .ref:nth-child(3) { border-left: none; }
  .ref:nth-child(n+3) { border-top: 1px solid var(--line-l); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-item:nth-child(4n+1) { border-left: 1px solid var(--line-l); padding-left: 24px; }
  .mat-item:nth-child(2n+1) { border-left: none; padding-left: 0; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .site-header .container { grid-template-columns: 1fr auto; }
  .brand img { height: 46px; }
  .site-header.is-scrolled .brand img, .site-header.menu-open .brand img { height: 38px; }
  .hero { padding: 100px 20px 70px; }
  .hero-frame { top: 12px; left: 12px; right: 12px; bottom: 12px; }
  .hero-title { margin-top: 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .family-grid { grid-template-columns: 1fr; }
  .family:nth-child(3) { grid-column: span 1; }
  .family:nth-child(3) .family-media { aspect-ratio: 16 / 11; }
  .mode-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .project-card.is-wide { grid-column: span 1; aspect-ratio: 4 / 3.2; }
  .cat-nav-wrap { top: 58px; }
  .detail-cols { grid-template-columns: 1fr; }
  .dlg-inner { grid-template-columns: 1fr; }
  .dlg-media { min-height: 0; height: 190px; }
  .dom-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dom-tile { min-height: 180px; padding: 20px; }
  .dom-title { font-size: 22px; }
  .identity-figures { grid-template-columns: 1fr; }
  .figure { border-left: none; border-top: 1px solid var(--line-l); flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
  .figure:first-child { border-top: none; }
  .fig-label { margin: 0; }
  .fig-note { flex-basis: 100%; }
  .tc-slide { grid-template-columns: 1fr; min-height: 0; }
  .tc-photo { aspect-ratio: 4 / 3.2; }
  .tc-info { gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .territories-inner { flex-direction: column; align-items: flex-start; }
  .org-tier--3, .org-tier--2 { grid-template-columns: 1fr; display: grid; justify-items: center; gap: 36px; }
  .org-gap { display: none; }
  .org-node, .org-node--wide { min-width: 0; width: 100%; max-width: 360px; }
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: auto; }
  .tmo-cursor, .tmo-cursor-ring { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero-grid { flex-direction: column; align-items: flex-start; }
  .hero-desc { font-size: 15.5px; }
  .mobile-nav > a, .m-toggle { font-size: 27px; }
  .identity-refs { grid-template-columns: 1fr; }
  .ref { border-left: none; border-top: 1px solid var(--line-l); }
  .ref:first-child { border-top: none; }
  .mat-grid { grid-template-columns: 1fr; }
  .mat-item, .mat-item:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .dom-tiles { grid-template-columns: 1fr; }
  .tc-bar { gap: 14px; }
  .tc-buttons button { width: 44px; height: 44px; }
}
