/* 3S Sanitaires : site vitrine (maquette Solane IA).
   Couleurs reprises du logo et de la banniere : vert feuille, vert anis, noir, blanc.
   Titres en Barlow Condensed (proche du lettrage du logo), texte en Barlow. Polices locales. */

@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0E120F;
  --ink-2: #171D18;
  --ink-3: #232B24;
  --green: #2E8B2A;        /* vert du logo */
  --green-btn: #27801F;    /* fond de bouton, texte blanc lisible */
  --green-deep: #1E6619;
  --lime: #9BCB3C;         /* vert anis des feuilles */
  --lime-soft: #EEF6DF;
  --paper: #F4F6F1;
  --white: #FFFFFF;
  --text: #171C18;
  --muted: #535C54;
  --line: #DCE2D8;
  --wa: #1FA855;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(14, 18, 15, .06), 0 12px 32px -12px rgba(14, 18, 15, .18);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); text-transform: uppercase; }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font: 600 .8125rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lime), var(--green)); }
.eyebrow--lime { color: var(--lime); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--green { background: var(--green-btn); color: var(--white); box-shadow: 0 8px 20px -10px rgba(39, 128, 31, .8); }
.btn--green:hover { background: var(--green-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #178A45; }

/* Bandeau du haut */
.topbar { background: var(--ink); color: #C9D2C9; font-size: .875rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__live { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 600; }
.topbar__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; text-decoration: none; }
.topbar__tel:hover { color: var(--white); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(14, 18, 15, .5); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: auto; height: 52px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 800 1.65rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.brand__name b { color: var(--green); font-weight: 800; }
.brand__tag { margin-top: 4px; font: 600 .6875rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { position: relative; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink); padding: 6px 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.menu__cta { display: none; }
.nav__burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav__burger .ico { width: 24px; height: 24px; }
.nav__burger .ico--close { display: none; }
.nav__burger[aria-expanded="true"] .ico--open { display: none; }
.nav__burger[aria-expanded="true"] .ico--close { display: block; }

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); background:
  radial-gradient(900px 500px at 92% 10%, var(--lime-soft), transparent 70%),
  linear-gradient(180deg, var(--white), var(--paper)); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: .94; text-transform: uppercase; color: var(--ink); }
.hero__title .line { display: block; }
.hero__title .accent { color: var(--green); }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 1.15rem; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-weight: 600; color: var(--ink); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .ico { color: var(--green); stroke-width: 2.6; }

.hero__text { position: relative; z-index: 1; }
.hero__visual { --pt: 52px; --pb: 52px; --pl: 28px; position: relative; padding: var(--pt) 0 var(--pb) var(--pl); }
.hero__photo { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 3.1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(14, 18, 15, .55); background: var(--ink-3); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card { position: absolute; z-index: 2; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 18px; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); border-left: 4px solid var(--lime); }
.hero__card .ico { width: 34px; height: 34px; color: var(--lime); }
.hero__card-big { font: 800 1.6rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.hero__card-small { margin-top: 4px; font-size: .9375rem; color: #C9D2C9; }

/* Urgence */
.urgence { position: relative; background: var(--ink); color: var(--white); padding: clamp(56px, 7vw, 88px) 0; overflow: hidden; }
.urgence::before { content: ""; position: absolute; right: -180px; top: -220px; width: 560px; height: 560px; border-radius: 50%; border: 2px solid rgba(155, 203, 60, .35); }
.urgence::after { content: ""; position: absolute; right: -120px; top: -160px; width: 440px; height: 440px; border-radius: 50%; border: 2px solid rgba(155, 203, 60, .18); }
.urgence__in { position: relative; z-index: 1; }
.urgence h2 { max-width: 14em; }
.urgence__text > p:not(.eyebrow) { margin-top: 18px; max-width: 34em; color: #C9D2C9; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .9375rem; color: #E6ECE5; background: rgba(255, 255, 255, .04); }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section__intro { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }
.section__head--split .section__intro { margin-top: 0; }
.section__intro a { color: var(--green-deep); font-weight: 600; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--lime), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--lime), var(--green) 70%); color: var(--white); box-shadow: 0 0 0 6px var(--lime-soft); }
.service__icon .ico { width: 30px; height: 30px; }
.service__kicker { margin-top: 24px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.service h3 { margin-top: 6px; font-size: 2.1rem; font-weight: 800; text-transform: uppercase; }
.ticks { margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8B2A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.service__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-deep); text-decoration: none; }
.service__link .ico { transition: transform .2s; }
.service__link:hover .ico { transform: translateX(4px); }

/* Chantiers */
/* Realisations : galerie en colonnes, photos entieres (js/galerie.js les agrandit) */
.gallery { columns: 3 260px; column-gap: 22px; }
.shot { break-inside: avoid; margin: 0 0 22px; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.shot__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; overflow: hidden; }
.shot__btn img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.shot__btn::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; opacity: 0; transition: opacity .25s;
  background: rgba(14, 18, 15, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.6-4.6M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.shot__btn:hover img { transform: scale(1.035); }
.shot__btn:hover::after, .shot__btn:focus-visible::after { opacity: 1; }
.shot__btn:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.shot figcaption { padding: 16px 20px 20px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.shot__tag { display: block; margin-bottom: 5px; font: 800 1.25rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.gallery__hint { display: none; }

/* Photo agrandie (dialog native, au-dessus de tout le reste) */
html.has-lightbox { overflow: hidden; }
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 13, 11, .94); }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1200px, calc(100vw - 170px)); margin: 0; }
.lightbox__img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 160px); border-radius: 12px; background: var(--ink-3); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.lightbox__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; max-width: 62ch; font-size: .9375rem; line-height: 1.5; text-align: center; color: #C9D2C9; }
.lightbox__count { font-weight: 600; color: #8E998E; font-variant-numeric: tabular-nums; }
.lightbox__tag { font: 800 1.2rem/1 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--lime); }
.lightbox__text { flex-basis: 100%; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--green-btn); border-color: var(--green-btn); }
.lightbox .ico { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--prev .ico { transform: rotate(180deg); }
.lightbox__nav--next { right: 26px; }

/* Methode */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
/* Conduite entre les etapes (remplie d'eau par js/effets.js, pleine sinon) */
.steps-wrap { position: relative; }
.pipe { position: absolute; z-index: 0; left: 34px; right: calc(25% - 50px); top: 31px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pipe__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lime), var(--green)); transform-origin: left center; }
.pipe__shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, .75) 50%, transparent 56% 100%); background-size: 260% 100%; animation: flow 2.8s linear infinite; }
@keyframes flow { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes flowY { from { background-position: 0 130%; } to { background-position: 0 -30%; } }
.step { position: relative; z-index: 1; }
.step__num { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 6px solid var(--paper); box-shadow: 0 0 0 2px var(--green); font: 800 1.9rem/1 var(--head); color: var(--green); }
.step h3 { margin-top: 22px; font-size: 1.6rem; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--muted); }

/* Engagements */
.engage { position: relative; background: var(--ink); color: var(--white); padding: clamp(64px, 8vw, 112px) 0; overflow: hidden; }
.engage::before { content: ""; position: absolute; left: -6%; top: 0; bottom: 0; width: 50%; background: var(--white); border-radius: 0 50% 50% 0 / 0 50% 50% 0; box-shadow: 14px 0 0 var(--green); }
.engage__in { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.engage__logo { display: flex; justify-content: center; }
.engage__logo img { width: min(100%, 320px); }
.engage__list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 36px; }
.engage__list li { display: flex; gap: 16px; }
.engage__list .ico { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: rgba(155, 203, 60, .14); color: var(--lime); }
.engage__list h3 { font-size: 1.45rem; text-transform: uppercase; }
.engage__list p { margin-top: 6px; color: #C9D2C9; }

/* FAQ */
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__in .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: var(--green); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact__card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.contact__tel { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.contact__tel > .ico { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: var(--green-btn); }
.contact__tel span { display: flex; flex-direction: column; font: 800 clamp(1.7rem, 2.6vw, 2.1rem)/1.05 var(--head); letter-spacing: .02em; white-space: nowrap; }
.contact__tel small { margin-bottom: 4px; font: 600 .8125rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); white-space: normal; }
.contact__wa { width: 100%; }
.contact__info { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact__info li { display: flex; gap: 12px; color: #D5DDD4; padding-top: 10px; }
.contact__info .ico { margin-top: 3px; color: var(--lime); }
.contact__map { border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.contact__map iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border: 0; filter: grayscale(.25) contrast(1.05); }
/* Avant l'accord du visiteur : le plan Google Maps n'est pas charge (js/consent.js) */
.map__gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 16 / 10; padding: 20px 18px; text-align: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(155, 203, 60, .16), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 34px),
    var(--ink-3);
}
.map__gate[hidden] { display: none; }
.map__pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(155, 203, 60, .16); color: var(--lime); }
.map__pin .ico { width: 22px; height: 22px; }
.map__gate p { max-width: 34ch; font-size: .875rem; line-height: 1.45; color: #C9D2C9; }
.map__btn { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.map__btn[hidden] { display: none; }
.map__more { font-size: .8125rem; font-weight: 600; color: var(--lime); }
.map__more:hover { color: var(--white); }
.contact__route { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; text-decoration: none; }
.contact__route:hover { color: var(--white); }

.contact__form-wrap { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form__types { margin: 0 0 22px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__types legend { margin-bottom: 12px; padding: 0; font-weight: 700; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: border-color .2s, background-color .2s, color .2s; }
.pill:hover span { border-color: var(--green); }
.pill input:checked + span { border-color: var(--green); background: var(--green-btn); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.form__urgent { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; padding: 16px 18px; border-radius: var(--radius); background: var(--lime-soft); border: 1px solid #CFE5A6; }
.form__urgent[hidden] { display: none; }
.form__urgent > .ico { width: 28px; height: 28px; color: var(--green); }
.form__urgent p { flex: 1 1 220px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span { font-weight: 600; font-size: .9375rem; }
.field em { color: var(--green); font-style: normal; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C2410C; background: #FFF7F3; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #B9C4B4; border-radius: 10px; background: var(--paper); cursor: pointer; color: var(--muted); transition: border-color .2s, color .2s; }
.file:hover { border-color: var(--green); color: var(--ink); }
.file .ico { width: 24px; height: 24px; color: var(--green); }
.file__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file:focus-within { outline: 3px solid var(--lime); outline-offset: 2px; }
.form__legal { margin-top: 18px; font-size: .875rem; color: var(--muted); }
.form__legal a { color: var(--green-deep); font-weight: 600; }
.form__error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #FFF4EE; color: #9A3412; font-weight: 600; }
.form__error a { color: inherit; }
.form__submit { margin-top: 20px; width: 100%; }
.form__submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.hp { position: absolute; left: -9999px; }
.form__done { text-align: center; padding: 40px 10px; }
.form__done:focus { outline: none; }
.form__done-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-btn); color: var(--white); }
.form__done-icon .ico { width: 36px; height: 36px; stroke-width: 2.6; }
.form__done h3 { margin-top: 20px; font-size: 2rem; text-transform: uppercase; }
.form__done p { margin: 12px auto 0; max-width: 30em; color: var(--muted); }
.form__done a { color: var(--green-deep); font-weight: 600; }

/* Pied de page */
.footer { background: var(--ink); color: #C9D2C9; padding-top: 56px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: auto; height: 74px; }
.footer__name { font: 800 1.9rem/1 var(--head); text-transform: uppercase; color: var(--white); letter-spacing: .02em; }
.footer__name b { color: var(--lime); }
.footer__tag { margin-top: 6px; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.footer__title { margin-bottom: 14px; font: 700 1.2rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--white); }
.footer__col ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }
.footer__credit { color: #8E998E; }
.footer__link { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.footer__link:hover { color: var(--lime); }

/* Bandeau cookies (js/consent.js) : non bloquant, Refuser et Accepter de meme taille */
.cookie {
  position: fixed; z-index: 70; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  padding: 18px 20px 20px; border-radius: var(--radius); border-top: 4px solid var(--lime);
  background: var(--white); color: var(--text); box-shadow: 0 22px 50px -14px rgba(14, 18, 15, .5), 0 0 0 1px rgba(14, 18, 15, .06);
}
.cookie[hidden] { display: none; }
.cookie:focus { outline: none; }
.cookie:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.cookie__title { font: 800 1.35rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.cookie__text { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.cookie__text a { color: var(--green-deep); font-weight: 600; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cookie__btn { padding: 0 14px; }
/* Ordinateur et tablette : barre fine en bas, pour ne pas cacher les boutons d'appel du haut */
@media (min-width: 761px) {
  .cookie { right: 16px; width: auto; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px 32px; padding: 14px 16px 14px 22px; border-top: 0; border-left: 4px solid var(--lime); }
  .cookie__body { flex: 1; min-width: 0; }
  .cookie__title { font-size: 1.15rem; }
  .cookie__text { margin-top: 4px; }
  .cookie__actions { flex: none; grid-template-columns: 136px 136px; margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cookie:not([hidden]) { animation: cookieIn .4s cubic-bezier(.2, .7, .2, 1); }
  @keyframes cookieIn { from { opacity: 0; transform: translateY(14px); } }
}

/* Apparitions au defilement */
.js-anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__in { gap: 18px; }
  .menu { gap: 18px; }
  .nav__call span { display: none; }
  .nav__call { width: 46px; padding: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: 1 / -1; }
  .engage__list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    max-height: calc(100vh - 120px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(14, 18, 15, .45);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu__cta { display: inline-flex; margin-top: 18px; }
  .nav__burger { display: inline-flex; }
  .nav__call { display: none; }

  .hero__in, .contact, .faq__in, .engage__in { grid-template-columns: 1fr; }
  .hero__visual { --pt: 44px; max-width: 640px; }
  .section__head--split { grid-template-columns: 1fr; }
  .faq__in .section__head { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 22px; }
  .pipe { display: none; }
  .engage::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 420px; border-radius: 0 0 50% 50% / 0 0 22% 22%; box-shadow: 0 12px 0 var(--green); }
  .engage__logo img { width: min(70%, 280px); }
  .engage__text { padding-top: 24px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar__info { display: none; }
  .cookie { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 16px 16px 18px; }
}

@media (max-width: 560px) {
  .topbar__in { justify-content: space-between; }
  .brand__mark { height: 44px; }
  .brand__name { font-size: 1.4rem; }
  .brand__tag { font-size: .6rem; letter-spacing: .1em; }
  .nav__in { min-height: 68px; }
  .hero__ctas .btn { width: 100%; }
  .hero__visual { --pt: 30px; --pb: 34px; --pl: 14px; }
  .hero__card { padding: 12px 16px 12px 14px; }
  .hero__card-big { font-size: 1.3rem; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; }
  .pipe { display: block; left: 31px; right: auto; top: 34px; bottom: 64px; width: 6px; height: auto; }
  .pipe__fill { transform-origin: center top; background: linear-gradient(180deg, var(--lime), var(--green)); }
  .pipe__shine { background: linear-gradient(180deg, transparent 0 44%, rgba(255, 255, 255, .75) 50%, transparent 56% 100%); background-size: 100% 260%; animation-name: flowY; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: 4px; align-self: end; }
  .step p { grid-column: 2; }
  .form__grid { grid-template-columns: 1fr; }
  .contact__card, .contact__form-wrap { padding: 22px 18px; }
  /* Realisations : une bande qui defile au doigt, la suivante depasse pour inviter a glisser */
  .gallery__hint { display: flex; align-items: center; gap: 8px; margin: -12px 0 14px; font-size: .875rem; font-weight: 600; color: var(--green-deep); }
  .gallery {
    columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px; scroll-padding: 0 var(--gutter);
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 82%; margin: 0; scroll-snap-align: start; }
  .shot__btn { aspect-ratio: 1 / 1; }
  .shot__btn img { height: 100%; object-fit: cover; }
  .shot__btn::after { opacity: 1; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 760px) {
  .lightbox__fig { max-width: calc(100vw - 24px); }
  .lightbox__img { max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; }
  .lightbox__nav--prev { left: calc(50% - 66px); }
  .lightbox__nav--next { right: calc(50% - 66px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
