/* ==========================================================================
   TRACE Ingénierie Environnement : feuille de styles principale
   Palette issue du logo : #FFFFFF / #0093B2 / #5E514D
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --c-white: #ffffff;
  --c-teal: #0093b2;          /* Bleu TRACE (accents, grands textes) */
  --c-teal-ink: #007893;      /* Variante accessible pour petits textes (contraste AA) */
  --c-teal-soft: #e6f4f7;
  --c-brown: #5e514d;         /* Brun TRACE (textes, titres) */
  --c-brown-deep: #3f3633;
  --c-brown-soft: #f4f1f0;
  --c-sand: #faf8f7;
  --c-line: #e7e2e0;

  /* Typographie (pile système premium, zéro requête externe, conforme RGPD) */
  --f-sans: "Avenir Next", "Avenir", "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
  --f-display: "Avenir Next Condensed", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .3vw, 1.3rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 4.25rem);

  /* Espacements & formes */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(63, 54, 51, .06), 0 2px 8px rgba(63, 54, 51, .05);
  --shadow: 0 10px 30px -12px rgba(63, 54, 51, .22);
  --shadow-lg: 0 30px 60px -25px rgba(63, 54, 51, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-brown);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-brown); }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-brown-deep); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--c-brown-deep); }
::selection { background: var(--c-teal); color: #fff; }

:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--c-brown-deep); color: #fff; padding: .75rem 1.25rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- Motifs de marque (rayures du logo) ---------- */
.stripes-v { background-image: repeating-linear-gradient(90deg, var(--c-teal) 0 6px, transparent 6px 12px); }
.stripes-h { background-image: repeating-linear-gradient(180deg, var(--c-teal) 0 6px, transparent 6px 12px); }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--c-teal); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); background: var(--c-teal-ink); border-color: var(--c-teal-ink); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--c-brown-deep); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-brown-deep); border-color: var(--c-brown-deep); color: #fff; }
.btn--light { --bg: #fff; --fg: var(--c-brown-deep); }
.btn--light:hover { background: var(--c-brown-soft); border-color: var(--c-brown-soft); color: var(--c-brown-deep); }
.btn--outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; color: var(--c-brown-deep); border-color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--c-teal-ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 20px -16px rgba(63,54,51,.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .9rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-brown-deep); text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--c-teal-ink); background: var(--c-teal-soft); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item--has-sub:hover > .nav__link svg, .nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
  width: min(640px, 90vw); padding: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.subnav::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item--has-sub:hover .subnav, .nav__item--has-sub:focus-within .subnav, .subnav.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav a { display: flex; gap: .9rem; padding: .9rem; border-radius: var(--radius); text-decoration: none; color: var(--c-brown); transition: background .2s; }
.subnav a:hover { background: var(--c-sand); }
.subnav__icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c-teal-soft); color: var(--c-teal-ink); }
.subnav__icon svg { width: 22px; height: 22px; }
.subnav strong { display: block; font-size: var(--fs-sm); color: var(--c-brown-deep); }
.subnav span { display: block; font-size: var(--fs-xs); line-height: 1.45; color: var(--c-brown); opacity: .85; }
.subnav__all { grid-column: 1 / -1; border-top: 1px solid var(--c-line); margin-top: .25rem; padding-top: .5rem; }
.subnav__all a { justify-content: space-between; font-weight: 600; font-size: var(--fs-sm); color: var(--c-teal-ink); }

.nav__cta { margin-left: .75rem; padding: .7rem 1.2rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--c-line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--c-brown-deep); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--c-brown-deep); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  /* backdrop-filter crée un bloc conteneur pour les éléments fixed : désactivé pour le menu plein écran */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .brand img { width: 140px; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem .5rem; border-radius: 0; font-size: 1.125rem; border-bottom: 1px solid var(--c-line); }
  .nav__link:hover, .nav__link[aria-current="page"] { background: none; }
  .subnav { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: .25rem 0 .75rem; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; }
  .subnav::before { display: none; }
  .nav__item--has-sub:hover .subnav { display: none; }
  .subnav.is-open, .nav__item--has-sub:hover .subnav.is-open { display: grid; transform: none; }
  .nav__cta { margin: 1.5rem 0 0; justify-content: center; }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: linear-gradient(180deg, #fff 0%, var(--c-sand) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-teal-ink); margin-bottom: 1.25rem; }
.eyebrow::before { content: ""; width: 28px; height: 10px; background: repeating-linear-gradient(90deg, var(--c-teal) 0 3px, transparent 3px 6px); }
.hero h1 { margin-bottom: .4em; }
.hero h1 em, .page-hero h1 em, h2 em { font-style: normal; color: var(--c-teal); }
.hero__lead { font-size: var(--fs-lg); max-width: 38ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.5rem; padding: 0; list-style: none; font-size: var(--fs-xs); font-weight: 600; color: var(--c-brown); }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--c-teal); }

.hero__visual { position: relative; aspect-ratio: 4 / 5; }
.hero__panel { position: absolute; border-radius: var(--radius-lg); overflow: hidden; }
.hero__panel--a { inset: 0 18% 22% 0; background: var(--c-brown); }
.hero__panel--a::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 10px, transparent 10px 20px); }
.hero__panel--b { inset: 30% 0 0 30%; background: var(--c-teal); box-shadow: var(--shadow-lg); }
.hero__panel--b::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 8px, transparent 8px 16px); }
.hero__card {
  position: absolute; left: 6%; bottom: 8%; z-index: 2; width: min(300px, 70%); padding: 1.4rem 1.5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hero__card .kpi { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--c-teal); letter-spacing: -.03em; }
.hero__card p { margin: .4rem 0 0; font-size: var(--fs-sm); }
.hero__badge { position: absolute; right: 6%; top: 8%; z-index: 2; padding: .7rem 1rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: var(--fs-xs); font-weight: 700; color: var(--c-brown-deep); display: inline-flex; gap: .5rem; align-items: center; }
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 0 4px var(--c-teal-soft); }
.hero__panel-label { position: absolute; left: 1.75rem; top: 1.75rem; z-index: 1; color: rgba(255,255,255,.92); font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; max-width: 12ch; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 11; max-width: 560px; }
}

/* ---------- En-tête de page interne ---------- */
.page-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); background: var(--c-sand); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: min(32vw, 380px); background: repeating-linear-gradient(90deg, var(--c-teal) 0 8px, transparent 8px 22px); opacity: .1; pointer-events: none; }
.page-hero h1 { max-width: 20ch; }
.page-hero__lead { font-size: var(--fs-lg); max-width: 60ch; margin: 0; }

.breadcrumb { margin-bottom: 1.75rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: var(--fs-xs); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; opacity: .45; }
.breadcrumb a { color: var(--c-brown); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-teal-ink); text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 600; color: var(--c-brown-deep); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--sand { background: var(--c-sand); }
.section--brown { background: var(--c-brown-deep); color: rgba(255,255,255,.85); }
.section--brown h2, .section--brown h3, .section--brown strong { color: #fff; }
.section--teal { background: var(--c-teal); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { font-size: var(--fs-lg); margin: 0; }
.section--brown .eyebrow, .section--teal .eyebrow { color: #fff; }
.section--brown .eyebrow::before, .section--teal .eyebrow::before { background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 6px); }

/* Bloc « En bref » : réponse directe, optimisée GEO / moteurs génératifs */
.tldr { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); box-shadow: var(--shadow-sm); margin-top: 2rem; max-width: 900px; }
.tldr__label { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--c-teal-ink); padding-top: .2rem; white-space: nowrap; }
.tldr p { margin: 0; }
@media (max-width: 600px) { .tldr { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .5em; }
.card p { margin-bottom: 1.25rem; }
.card .link-arrow { margin-top: auto; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-teal-soft); color: var(--c-teal-ink); margin-bottom: 1.5rem; }
.card__icon svg { width: 28px; height: 28px; }
.card__num { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--f-display); font-weight: 700; font-size: .875rem; color: var(--c-teal); letter-spacing: .1em; }
.card--link { text-decoration: none; color: inherit; }
.card--link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card ul { margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: var(--fs-sm); }
.card ul li { padding: .35rem 0 .35rem 1.4rem; position: relative; border-top: 1px dashed var(--c-line); }
.card ul li:first-child { border-top: 0; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .9em; width: 8px; height: 8px; border-radius: 2px; background: var(--c-teal); }

/* Service mis en avant (accueil) */
.service-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 360px; padding: 2rem; border-radius: var(--radius-lg); text-decoration: none; color: #fff; background: var(--c-brown); isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-tile:nth-child(2) { background: var(--c-teal-ink); }
.service-tile:nth-child(3) { background: var(--c-brown-deep); }
.service-tile:nth-child(4) { background: var(--c-teal); }
.service-tile::before { content: ""; position: absolute; inset: auto -20% -30% auto; width: 75%; aspect-ratio: 1; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 8px, transparent 8px 16px); border-radius: 50%; transition: transform .6s var(--ease); }
.service-tile:nth-child(even)::before { background: repeating-linear-gradient(180deg, rgba(255,255,255,.14) 0 8px, transparent 8px 16px); }
.service-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: #fff; }
.service-tile:hover::before { transform: scale(1.15) rotate(8deg); }
.service-tile__icon { width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: auto; }
.service-tile__icon svg { width: 28px; height: 28px; }
.service-tile h3 { color: #fff; margin: 2rem 0 .5rem; }
.service-tile p { color: rgba(255,255,255,.85); font-size: var(--fs-sm); margin-bottom: 1.25rem; }
.service-tile__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: var(--fs-sm); }
.service-tile__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service-tile:hover .service-tile__more svg { transform: translateX(4px); }

/* ---------- Chiffres clés ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--c-brown-deep); padding: 2rem 1.75rem; }
.stat__value { font-family: var(--f-display); font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 700; line-height: 1; color: #fff; letter-spacing: -.03em; }
.stat__value small { font-size: .5em; color: var(--c-teal); margin-left: .1em; }
.stat__label { margin-top: .6rem; font-size: var(--fs-sm); color: rgba(255,255,255,.75); }
.stats--light { background: var(--c-line); }
.stats--light .stat { background: #fff; }
.stats--light .stat__value { color: var(--c-brown-deep); }
.stats--light .stat__label { color: var(--c-brown); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split (texte + visuel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

.visual-block { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); background: var(--c-teal-soft); overflow: hidden; }
.visual-block img { width: 100%; height: 100%; object-fit: cover; }
.visual-block--pattern::before { content: ""; position: absolute; inset: 12% 12% auto auto; width: 55%; height: 60%; border-radius: var(--radius); background: var(--c-brown); }
.visual-block--pattern::after { content: ""; position: absolute; inset: auto auto 10% 10%; width: 60%; height: 55%; border-radius: var(--radius); background: repeating-linear-gradient(180deg, var(--c-teal) 0 8px, transparent 8px 16px); }
.visual-block__caption { position: absolute; z-index: 2; left: 1.25rem; bottom: 1.25rem; right: 1.25rem; padding: 1rem 1.25rem; background: rgba(255,255,255,.95); border-radius: var(--radius); font-size: var(--fs-sm); box-shadow: var(--shadow); }
.visual-block__caption strong { display: block; font-size: 1rem; }

/* ---------- Listes de contenu ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; }
.checklist li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007893' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; margin-top: .1rem; }
.section--brown .checklist li::before { background-color: rgba(255,255,255,.12); }

.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }

/* Étapes / méthode */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--c-teal-ink); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--c-teal); background: #fff; }
.steps li::after { content: ""; position: absolute; top: 23px; left: 58px; right: -1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--c-line) 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; }
.steps p { font-size: var(--fs-sm); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pastilles / tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.tag { display: inline-flex; padding: .35rem .8rem; border-radius: 999px; background: var(--c-teal-soft); color: var(--c-teal-ink); font-size: var(--fs-xs); font-weight: 600; }
.tag--brown { background: var(--c-brown-soft); color: var(--c-brown-deep); }

/* ---------- Références ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-brown-deep); font: 600 var(--fs-sm)/1 var(--f-sans); cursor: pointer; transition: all .2s; }
.filter-btn:hover { border-color: var(--c-teal); color: var(--c-teal-ink); }
.filter-btn[aria-pressed="true"] { background: var(--c-brown-deep); border-color: var(--c-brown-deep); color: #fff; }
.ref-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref-card[hidden] { display: none; }
.ref-card__top { position: relative; padding: 1.5rem 1.75rem; background: var(--c-brown); color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ref-card__top::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 40%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.1) 0 6px, transparent 6px 12px); }
.ref-card[data-cat~="dechets"] .ref-card__top { background: var(--c-teal-ink); }
.ref-card[data-cat~="circulaire"] .ref-card__top { background: var(--c-brown-deep); }
.ref-card__client { position: relative; z-index: 1; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ref-card__title { position: relative; z-index: 1; color: #fff; font-size: 1.2rem; margin: .35rem 0 0; }
.ref-card__body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.ref-card__body p { font-size: var(--fs-sm); }
.ref-card__meta { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; font-size: var(--fs-xs); margin: 0 0 1.25rem; }
.ref-card__meta dt { font-weight: 700; color: var(--c-brown-deep); }
.ref-card__meta dd { margin: 0; }
.ref-card .tags { margin-top: auto; }

.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.logos li { list-style: none; background: #fff; display: grid; place-items: center; min-height: 96px; padding: 1rem; font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--c-brown); text-align: center; transition: color .2s, background .2s; }
.logos li:hover { color: var(--c-teal-ink); background: var(--c-sand); }
.logos { padding: 0; margin: 0; }
.logos li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Témoignage / citation ---------- */
.quote { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.35; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.quote figcaption { margin-top: 1.5rem; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 900px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; color: var(--c-brown-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--c-teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007893' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__answer { padding: 0 1.5rem 1.4rem; }
.faq .faq__answer p:last-child { margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-teal); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -5%; top: -40%; width: 45%; height: 180%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 10px, transparent 10px 22px); transform: rotate(12deg); }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: var(--fs-lg); color: rgba(255,255,255,.9); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Valeurs / équipe ---------- */
.value { padding: 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); }
.value__bar { width: 44px; height: 14px; margin-bottom: 1.25rem; background: repeating-linear-gradient(90deg, var(--c-teal) 0 4px, transparent 4px 8px); }
.value:nth-child(even) .value__bar { background: repeating-linear-gradient(180deg, var(--c-brown) 0 3px, transparent 3px 6px); }
.value p { margin: 0; font-size: var(--fs-sm); }

.cert { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); }
.cert__badge { flex: 0 0 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-brown-soft); color: var(--c-brown-deep); font-family: var(--f-display); font-weight: 800; font-size: .8rem; text-align: center; line-height: 1.1; border: 2px solid var(--c-teal); }
.cert h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.cert p { margin: 0; font-size: var(--fs-sm); }
.cert ul { margin: .6rem 0 0; padding-left: 1.1em; font-size: var(--fs-xs); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: repeating-linear-gradient(180deg, var(--c-teal) 0 6px, transparent 6px 12px); }
.timeline li { position: relative; padding: 0 0 2rem 2.5rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--c-teal); }
.timeline strong { display: block; font-family: var(--f-display); font-size: 1.2rem; color: var(--c-teal-ink); }
.timeline p { margin: .25rem 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 2rem; border-radius: var(--radius-lg); background: var(--c-brown-deep); color: rgba(255,255,255,.85); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card h3 { font-size: 1.05rem; margin: 1.75rem 0 .35rem; }
.contact-card h3:first-of-type { margin-top: 0; }
.contact-card a { color: #fff; }
.contact-card address { font-style: normal; }
.contact-card .stripes { height: 10px; width: 64px; margin: 2rem 0 0; background: repeating-linear-gradient(90deg, var(--c-teal) 0 4px, transparent 4px 8px); }

.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 700; color: var(--c-brown-deep); }
.field label .req { color: var(--c-teal-ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid var(--c-line); background: var(--c-sand);
  font: inherit; font-size: 1rem; color: var(--c-brown-deep); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); background: #fff; box-shadow: 0 0 0 4px var(--c-teal-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: var(--fs-xs); color: #b3261e; min-height: 1em; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.field--check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--c-teal); }
.field--check label { font-weight: 400; font-size: var(--fs-xs); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--c-line); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: all .2s; user-select: none; }
.chip input:checked + span { background: var(--c-teal-ink); border-color: var(--c-teal-ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--c-teal); outline-offset: 2px; }
.form__status { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; display: none; }
.form__status.is-success { display: block; background: var(--c-teal-soft); color: var(--c-teal-ink); }
.form__status.is-error { display: block; background: #fdecea; color: #b3261e; }
.hp { position: absolute; left: -9999px; }

.map-placeholder { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-brown); position: relative; display: grid; place-items: center; color: #fff; text-align: center; padding: 1rem; }
.map-placeholder::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 32px), repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0 1px, transparent 1px 32px); }
.map-placeholder a { position: relative; color: #fff; font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--c-brown-deep); color: rgba(255,255,255,.72); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: var(--fs-sm); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--c-teal) 0 18px, transparent 18px 26px); }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer__brand img { width: 170px; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 34ch; }
.footer__title { color: #fff; font-family: var(--f-display); font-size: 1rem; margin: 0 0 1rem; letter-spacing: .02em; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.footer__social a:hover { background: var(--c-teal); border-color: var(--c-teal); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--fs-xs); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; } .reveal-delay-2 { transition-delay: .16s; } .reveal-delay-3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilitaires ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.lead { font-size: var(--fs-lg); }
.muted { opacity: .8; }
.center-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Photographies ---------- */
.hero__photo { position: absolute; inset: 0; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.visual-block--photo::before, .visual-block--photo::after { content: none; }
.visual-block--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0 0; }
.photo-banner { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow); }
.photo-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-banner { aspect-ratio: 16 / 10; } }

/* ---------- Groupe, citations, actualités ---------- */
.quote-card { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-teal); }
.quote-card p { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.4; color: var(--c-brown-deep); margin: 0 0 1rem; }
.quote-card figcaption { font-size: var(--fs-xs); color: var(--c-brown); }
.news-date { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-teal-ink); margin: 0 0 .75rem; }
.shareholding { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 1.5rem 0 .6rem; max-width: 520px; }
.shareholding span { display: block; height: 100%; }
.shareholding .part-trace { width: 54%; background: var(--c-teal); }
.shareholding .part-brgm { width: 46%; background: #fff; }

/* ---------- Logos clients ---------- */
.logo-chip { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 64px; padding: .6rem .9rem; margin: 0 0 .5rem; background: #fff; border: 1px solid var(--c-line); border-radius: 12px; position: relative; z-index: 1; }
.logo-chip img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.logos li { min-height: 112px; }
.logos li img { max-height: 64px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
/* ---------- Emplacements photo (en attente des visuels définitifs) ---------- */
.hero__photo--slot, .photo-banner--slot { background-color: var(--c-brown); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px); }

.logo-link { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.logos li .logo-link { width: 100%; height: 100%; min-height: 80px; }
.logo-link:hover img { opacity: .8; }
.logo-chip--wide { height: 72px; }

/* Certifications */
.stats--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .stats--three { grid-template-columns: 1fr; } }
.logo-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.logo-badges li { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; place-items: center; }
.logo-badges img { width: 150px; height: 150px; object-fit: contain; }
@media (max-width: 900px) { .logo-badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .logo-badges img { width: 110px; height: 110px; } }
.cert__logo { flex: 0 0 96px; width: 96px; height: 96px; object-fit: contain; }
.cert-link { display: block; line-height: 0; border-radius: var(--radius-lg); }
.cert-link:focus-visible { outline: 3px solid var(--c-brown); outline-offset: 4px; }
.cert-link:hover img { opacity: .85; }
