/* Skylab Business v2 — épuré : blanc, noir, un vert. Beaucoup d'air, peu de cadres. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f3;
  --ink: #0f1110;
  --muted: #6b706c;
  --line: #e6e7e3;
  --accent: #23a03a;
  --accent-ink: #1b7f2e;
  --font: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: 0; line-height: 1.05; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.todo { background: #fff4bf; border-radius: 3px; padding: 0 .3em; color: #6b5200; }

/* Header : bandeau noir */
.top { position: sticky; top: 0; z-index: 20; background: #000; color: #fff; border-bottom: 1px solid #1d1f1e; }
.top .wrap { display: flex; align-items: center; gap: 36px; height: 112px; }
.brand .logo { height: 100px; width: auto; display: block; }
.top.nobrand .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.top.nobrand .langs { justify-self: end; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.top .brand .wm b { color: #fff; }
.top .brand .wm b.g { color: #6fdc3a; }
.top .brand .wm small { color: rgba(255,255,255,.55); }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm .w { display: flex; }
.wm b { font-weight: 800; font-size: 1.32rem; letter-spacing: .01em; font-style: italic; transform: skewX(-6deg); }
.wm b.g { color: var(--accent); }
.wm small { font-size: .56rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.top.nobrand .nav { margin: 0; }
.nav a { text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav a:hover { color: #fff; }
.langs { display: flex; gap: 12px; font-size: .85rem; }
.langs a { text-decoration: none; color: rgba(255,255,255,.5); }
.langs a:hover { color: #fff; }
.langs a[aria-current="true"] { color: #6fdc3a; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: .95rem; cursor: pointer; color: #fff; padding: 8px 0; justify-self: start; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 500; font-size: 1rem; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero : photo dégagée, texte compact en bas */
.hero { position: relative; min-height: min(72vh, 700px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2f2b; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,11,0) 55%, rgba(10,12,11,.72) 100%); }
.hero-in { position: relative; z-index: 1; padding: 0 0 48px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 40px; }
.hero .label { color: rgba(255,255,255,.85); grid-column: 1 / -1; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); max-width: 22ch; margin: 0; }
.hero h1 span { color: inherit; }
.hero .lead { display: none; }
.hero .actions { justify-content: flex-end; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: #fff; color: var(--ink); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; }
.facts div { display: grid; gap: 6px; }
.facts strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts strong a { text-decoration: none; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Agrément ARC */
.agree { display: grid; grid-template-columns: 1fr; align-items: center; gap: 20px; padding: 28px 0 56px; border-top: 1px solid var(--line); }
.agree .item { display: flex; align-items: center; gap: 20px; }
.agree img { width: 180px; height: 84px; object-fit: contain; flex-shrink: 0; }
.agree .item > div { display: grid; gap: 2px; }
.agree strong { font-weight: 600; font-size: 1.05rem; }
.agree span { color: var(--muted); font-size: .95rem; }

/* Sections */
section.block { padding: 120px 0; }
section.soft { background: var(--soft); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.intro p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }

/* Histoire */
.hist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.hist .h-item { display: grid; gap: 12px; align-content: start; border-top: 2px solid var(--accent); padding-top: 20px; }
.hist p { color: var(--muted); max-width: 52ch; }

/* Bannière partenaires pleine largeur */
.banner-wide { width: 100%; background: #062b1a; }
.banner-wide img { width: 100%; height: auto; max-height: 620px; object-fit: cover; display: block; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .num { font-family: var(--mono); font-size: .85rem; color: var(--accent-ink); }
.steps p { color: var(--muted); }

/* Waste */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.cat h3 { margin-bottom: 14px; }
.cat p { color: var(--muted); }
details { margin-top: 48px; border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
.codes { columns: 2; column-gap: 48px; padding-bottom: 24px; }
.codes div { break-inside: avoid; display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 8px 0; font-size: .95rem; }
.codes code { font-family: var(--mono); color: var(--accent-ink); font-size: .88rem; }
.callout { margin-top: 24px; color: var(--muted); }
.callout a { color: var(--ink); font-weight: 500; }

/* Galerie : 3 colonnes, 2 rangées */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .camion-skylab, .gallery .crible-ecotec { grid-column: span 2; }
.gallery .chargeuse-cat img { object-position: 50% 70%; }
.gallery .carriere-vue { grid-column: 1 / -1; grid-row: span 2; }
.gallery .carriere-vue img { object-position: 50% 35%; }
.gallery .pesee-pont-bascule img { object-position: 35% 55%; }
.gallery .crible-ecotec img { object-position: 40% 50%; }
.gallery .citerne-securite img { object-position: 55% 60%; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; background: rgba(255,255,255,.92); color: var(--ink); font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* Conseiller déchets */
.advisor { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.advisor h2 { margin-bottom: 20px; }
.advisor p { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.adv-box { border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; gap: 24px; }
.adv-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adv-box li { padding-left: 28px; position: relative; }
.adv-box li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--accent); }

/* Sites */
.site { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.site .hours { margin-top: 20px; }
.site .gps { font-family: var(--mono); font-size: .9rem; margin-top: 6px; color: var(--ink); }
.site .ph { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #eceee9, #d9ddd5); display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.site .ph img { width: 100%; height: 100%; object-fit: cover; }
.site h3 { font-size: 1.8rem; letter-spacing: 0; text-transform: uppercase; margin-bottom: 14px; }
.site p { color: var(--muted); }
.site .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.site .links a { font-weight: 500; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Form */
.request .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.request aside { display: grid; gap: 24px; align-content: start; }
.request aside p { color: var(--muted); font-size: 1.1rem; }
.r-text { display: grid; gap: 14px; }
.r-text p { font-family: var(--font); font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.request .big { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; align-items: start; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .85rem; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; background: #e8f1ec; }
.form-msg.show { display: block; }

/* Footer */
footer { padding: 64px 0 36px; background: #000; font-size: .92rem; color: rgba(255,255,255,.6); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer .brand { color: var(--ink); margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: #fff; }
footer .brand .logo { height: 80px; }
footer .todo { color: #6b5200; }
footer .legal { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }

/* Legal page */
.legal-page { padding: 80px 0 120px; }
.legal-page .wrap { max-width: 720px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.4rem; margin: 44px 0 12px; letter-spacing: -0.02em; }
.legal-page p, .legal-page li { color: #3d423f; margin-bottom: 10px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .top:not(.nobrand) .menu-btn { margin-left: auto; }
  .top.nobrand .wrap { grid-template-columns: 1fr 1fr; }
  .top.nobrand .spacer { display: none; }
  .nav.open { display: grid; position: absolute; top: 112px; left: 0; right: 0; background: #000; padding: 20px 24px 28px; gap: 16px; }
  .nav.open a { font-size: 1.1rem; color: #fff; }
  .intro, .request .wrap, .advisor { grid-template-columns: 1fr; gap: 24px; }
  .request .wrap { gap: 48px; }
  .steps, .cats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .gallery .camion-skylab, .gallery .crible-ecotec, .gallery .carriere-vue { grid-column: 1 / -1; }
  .site { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; color: var(--ink); background: var(--bg); }
  .hero-bg { position: static; aspect-ratio: 4 / 3; height: auto; object-position: 40% 50%; }
  .hero::after { display: none; }
  .hero-in { display: block; padding: 32px 0 8px; }
  .hero .label { color: var(--muted); }
  .hero h1 { margin: 10px 0 24px; }
  .hero h1 span { color: inherit; }
  .hero .btn-light { background: var(--ink); color: #fff; border-color: var(--ink); }
  .hero .btn-outline { color: var(--ink); border-color: var(--ink); }
  .hero .actions { justify-content: flex-start; }
  section.block { padding: 80px 0; }
  .facts, .steps, .cats, .site, form, .hist { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .agree { grid-template-columns: 1fr; gap: 24px; }
  .agree img { width: 150px; height: 70px; }
  .gallery figure { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3 !important; }
  .facts { gap: 24px; }
  .wm small { display: none; }
  .top .wrap { height: 84px; }
  .brand .logo { height: 72px; }
  .nav.open { top: 84px; }
  .steps { gap: 36px; }
  .codes { columns: 1; }
}


/* Thème sombre */
html.dark { --bg: #0b0c0b; --soft: #141614; --ink: #f1f3f1; --muted: #9ba39e; --line: #262a27; --accent: #6fdc3a; --accent-ink: #6fdc3a; color-scheme: dark; }
html.dark .hero .btn-light { color: #0b0c0b; }
html.dark .hero .btn-light:hover { color: #0b0c0b; background: #6fdc3a; border-color: #6fdc3a; }
html.dark .btn-primary { background: #6fdc3a; border-color: #6fdc3a; color: #0b0c0b; }
html.dark .btn-primary:hover { background: #fff; border-color: #fff; color: #0b0c0b; }
html.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
html.dark .btn-ghost:hover { background: #fff; color: #0b0c0b; }
html.dark input, html.dark select, html.dark textarea { background: #141614; color: var(--ink); border-color: #2c312e; }
html.dark input:focus, html.dark select:focus, html.dark textarea:focus { border-color: #6fdc3a; }
html.dark .agree img { background: #fff; padding: 8px 12px; border-radius: 10px; box-sizing: border-box; }
html.dark .form-msg { background: #16301f; }
html.dark .site .ph, html.dark .gallery figure { background: #141614; }
html.dark .gallery figcaption { background: rgba(0,0,0,.72); color: #fff; }
html.dark footer { border-top: 1px solid #1d201e; }
@media (max-width: 640px) {
  html.dark .hero .btn-light { background: #6fdc3a; color: #0b0c0b; border-color: #6fdc3a; }
  html.dark .hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
}
