/* Biocor ingénierie écologique — feuille de style */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --peat: #1D2520;      /* tourbe : texte et fonds sombres */
  --peat-soft: #2C3630;
  --reed: #8C6239;      /* roseau : brun du logo */
  --hivis: #D9581C;     /* gilet de terrain : actions */
  --mist: #EDF0EA;      /* brume d'étang : fonds clairs */
  --lichen: #9BA88E;
  --ink-muted: #4F5A52;
  --line: #D5DBD1;
  --white: #FFFFFF;

  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--peat);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }

h1, h2, h3, h4 { text-wrap: balance; font-family: var(--sans); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.55; max-width: 38em; }
.measure { max-width: 36em; }
.muted { color: var(--ink-muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--peat { background: var(--peat); color: var(--mist); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 20; background: var(--peat); color: var(--white); }
.site-header--over { position: absolute; inset: 0 0 auto 0; background: linear-gradient(to bottom, rgba(16,22,18,.55), rgba(16,22,18,0)); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 132px; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.2vw, 30px); margin: 0; padding: 0; }
.nav a { font-family: var(--sans); font-size: 1rem; font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--hivis); }
.nav .nav-cta { background: var(--hivis); padding: 9px 16px; border-radius: 3px; border: 0; }
.nav .nav-cta:hover { background: #C24B12; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 900px) {
  .nav-toggle-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600; cursor: pointer; padding: 8px 0; }
  .nav-toggle-label span { display: block; width: 22px; height: 2px; background: currentColor; box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--peat); display: none; padding: 8px var(--gutter) 24px; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { display: block; padding: 12px 0; font-size: 1.15rem; }
  .nav .nav-cta { display: inline-block; margin-top: 10px; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--hivis); outline-offset: 3px; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; text-decoration: none; padding: 14px 24px; border-radius: 3px; background: var(--hivis); color: var(--white); border: 2px solid var(--hivis); }
.btn:hover { background: #C24B12; border-color: #C24B12; }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Étiquette d'espèce (élément signature) ---------- */
.specimen { position: relative; margin: 0; }
.specimen img { width: 100%; height: 100%; object-fit: cover; }
.specimen figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--white); color: var(--peat);
  padding: 7px 12px 8px; border-left: 4px solid var(--reed);
  line-height: 1.25; max-width: calc(100% - 28px);
}
.specimen figcaption b { display: block; font-family: var(--sans); font-weight: 600; font-size: .92rem; }
.specimen figcaption i { font-family: var(--serif); font-size: .9rem; color: var(--ink-muted); }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); background: var(--peat); }
.hero > img { 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(to top, rgba(16,22,18,.82) 0%, rgba(16,22,18,.35) 45%, rgba(16,22,18,.1) 70%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 14em; margin-bottom: .35em; }
.hero p { font-size: clamp(1.15rem, 1.7vw, 1.35rem); max-width: 34em; color: #E6EBE3; }

/* ---------- Bandeau de page intérieure ---------- */
.page-hero { position: relative; color: var(--white); background: var(--peat); min-height: clamp(280px, 42vh, 440px); display: flex; align-items: flex-end; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,22,18,.8), rgba(16,22,18,.15) 75%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 0; max-width: 16em; }
.page-hero p { margin: 12px 0 0; max-width: 36em; color: #E6EBE3; font-size: 1.2rem; }

/* ---------- Approche ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev .split-media { order: -1; }
.split-media .specimen { aspect-ratio: 4 / 3; }
.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.principles li { padding-left: 18px; border-left: 3px solid var(--lichen); }
.principles strong { display: block; font-family: var(--sans); font-size: 1.15rem; margin-bottom: 2px; }
.principles span { color: var(--ink-muted); }

/* ---------- Expertises (accueil) ---------- */
.expertise-index { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.expertise-index li { border-bottom: 1px solid var(--line); }
.expertise-index a { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 24px; padding: 26px 0; text-decoration: none; align-items: baseline; }
.expertise-index h3 { margin: 0; }
.expertise-index p { margin: 0; color: var(--ink-muted); }
.expertise-index a:hover h3 { color: var(--reed); }

/* ---------- Chiffres clés et dossiers ---------- */
.facts { margin: 32px 0 0; display: grid; gap: 18px; }
.facts div { padding-left: 18px; border-left: 3px solid var(--reed); }
.facts dt { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; }
.facts dd { margin: 0; color: var(--ink-muted); }
.chips-title { margin-top: 48px; }
.chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-family: var(--sans); font-weight: 600; font-size: .98rem; padding: 8px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.dossiers-band .chips li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: var(--white); }
.dossiers-band h2 { color: var(--white); }
.kicker { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; margin: 36px 0 0; color: var(--reed); }

/* ---------- Étapes (vraie séquence) ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--lichen); }
.steps li { counter-increment: step; position: relative; padding-right: 18px; }
.steps a { display: block; text-decoration: none; }
.steps a::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--reed); color: var(--white); font-family: var(--sans); font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; position: relative; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { font-size: .98rem; color: var(--ink-muted); margin: 0; }
.steps a:hover h3 { color: var(--reed); }
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .steps li { padding: 0 0 24px 64px; }
  .steps a::before { position: absolute; left: 0; top: -4px; margin: 0; }
}

/* ---------- Expertises (page détaillée) ---------- */
.expertise { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.expertise:first-of-type { border-top: 0; padding-top: 0; }
.expertise:nth-of-type(even) .expertise-media { order: 2; }
.expertise-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.expertise ul { margin: 18px 0 0; padding-left: 1.1em; }
.expertise li { margin-bottom: .45em; }
.expertise li::marker { color: var(--reed); }

/* ---------- Mosaïque terrain ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 10px; margin-top: 40px; }
.mosaic .specimen:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.mosaic .specimen:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.mosaic .specimen:nth-child(3) { grid-column: span 2; grid-row: span 2; }
.mosaic .specimen:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.mosaic .specimen:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.mosaic .specimen:nth-child(6) { grid-column: span 3; grid-row: span 2; }
.mosaic .specimen:nth-child(7) { grid-column: span 3; grid-row: span 2; }

.mosaic--home .specimen:nth-child(n+6) { grid-column: span 2; grid-row: span 2; }
.mosaic--home .specimen:nth-child(n+9) { grid-column: span 3; grid-row: span 3; }

/* ---------- Bande de milieux ---------- */
.strip { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 10px; margin-top: 32px; }
.strip img { width: 100%; height: clamp(180px, 22vw, 300px); object-fit: cover; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } .strip img { height: 180px; } }

.mosaic--chantiers { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 18vw, 250px); }
.mosaic--chantiers .specimen:nth-child(n) { grid-column: span 1; grid-row: span 1; }
@media (max-width: 900px) { .mosaic--chantiers { grid-template-columns: 1fr 1fr; } }

/* ---------- Clients ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 32px; }
.logos li { list-style: none; background: var(--white); border: 1px solid var(--line); aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; padding: 10px 14px; }
.logos img { max-height: 100%; width: auto; object-fit: contain; }
.logos { padding: 0; }
.sector { margin-top: 48px; }
.sector:first-of-type { margin-top: 0; }
.sector h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- Citation ---------- */
.split--quote { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 900px) { .split--quote { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }
.quote { max-width: 30em; margin: 0; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.8vw, 2.15rem); line-height: 1.38; margin-bottom: .8em; }
.quote footer { font-family: var(--sans); font-weight: 600; color: var(--lichen); }

/* ---------- Contact ---------- */
.contact-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact-band h2 { color: var(--white); }
.contact-lines { font-family: var(--sans); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }
.contact-lines a { text-decoration: none; border-bottom: 2px solid var(--hivis); }
.contact-lines a:hover { color: var(--white); }
.contact-lines p { margin: 0 0 .5em; }
.contact-lines small { display: block; font-family: var(--serif); font-size: 1rem; color: var(--lichen); }

/* ---------- Équipe ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; }
.member h2 { font-size: 1.45rem; margin-bottom: .15em; }
.member .role { font-family: var(--sans); font-weight: 600; color: var(--reed); margin-bottom: .7em; }
.member .school { font-size: 1rem; color: var(--ink-muted); }
.member p { font-size: 1.02rem; }

/* ---------- Métier ---------- */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--lichen); }
.timeline li { padding: 0 0 22px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--reed); }
.timeline strong { font-family: var(--sans); display: block; }
.columns-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.columns-2 ul { padding-left: 1.1em; }
.columns-2 li::marker { color: var(--reed); }

/* ---------- Contact (page) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contact-card { border-top: 4px solid var(--reed); padding-top: 22px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-family: var(--sans); font-weight: 600; }
.contact-card dd { margin: 0; font-size: 1.25rem; }
.contact-card dd a { text-decoration: none; border-bottom: 2px solid var(--hivis); }
.checklist { padding-left: 1.1em; }
.checklist li::marker { color: var(--reed); }

/* ---------- Mentions ---------- */
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p { max-width: 40em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--peat); color: #C8D0C5; padding: 56px 0 32px; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 120px; margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal-line { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .9rem; color: #8F9A8C; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .expertise, .contact-band .wrap, .contact-grid, .columns-2 { grid-template-columns: 1fr; }
  .split--rev .split-media, .expertise:nth-of-type(even) .expertise-media { order: 0; }
  .expertise-index a { grid-template-columns: 1fr; gap: 6px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic .specimen:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic .specimen:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--reed); color: var(--white); font-family: var(--sans); font-weight: 700; margin: 0 0 14px; }
