/* ==========================================================
   KTK Clôtures — feuille de style
   Charte : vert anis (cartes de visite) en accent, gris anthracite dominant
   Polices : Barlow Condensed (titres, esprit bureau d'études),
             Montserrat (texte, comme la carte), Cinzel (nom de marque)
   ========================================================== */

:root {
  --lime: #C6D82F;
  --lime-hover: #B4C620;
  --lime-ink: #5C6E0A;      /* vert lisible sur fond clair (contraste 5,4:1) */
  --lime-soft: #F1F5D5;
  --ink: #3A3A3C;
  --ink-deep: #242426;
  --text: #2E2E30;
  --muted: #5F5F63;          /* gris lisible sur fond clair (contraste 6:1) */
  --paper: #F7F7F3;
  --white: #FFFFFF;
  --border: #E2E2DC;
  --grid: rgba(58, 58, 60, .07);
  --radius: 8px;
  --shadow: 0 12px 32px rgba(20, 20, 22, .12);
  --shadow-sm: 0 4px 14px rgba(20, 20, 22, .08);
  --whatsapp: #0F7D42;       /* vert WhatsApp assombri : texte blanc lisible (5,2:1) */
  --whatsapp-hover: #0B6835;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-brand: "Cinzel", Georgia, serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--lg { width: 28px; height: 28px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--ink-deep); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lime-ink); outline-offset: 3px; border-radius: 3px; }
.section--dark :focus-visible, .header :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--lime); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 54px; padding: .9em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--lime { background: var(--lime); color: var(--ink-deep); }
.btn--lime:hover { background: var(--lime-hover); box-shadow: 0 6px 18px rgba(198, 216, 47, .35); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-deep); }
.btn--ghost { border-color: rgba(255, 255, 255, .85); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline-light { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn--outline-light:hover { border-color: var(--lime); color: var(--lime); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--lime-ink); font-weight: 600; font-size: .95rem;
  border-bottom: 2px solid currentColor;
}
.link-btn span { display: inline-block; transition: transform .2s; }
.link-btn:hover span { transform: translateX(4px); }

/* ---------- Titres ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem;
  font: 600 .75rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.eyebrow .ico { width: 1.1em; height: 1.1em; }
.eyebrow--light, .eyebrow--lime { color: var(--lime); }
.eyebrow--light::before { display: none; }
.title {
  font: 700 clamp(2rem, 4.4vw, 3rem)/1.05 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em; color: var(--ink-deep);
}
.title--light { color: var(--white); }
.section__head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head--left { margin: 0 0 1.4rem; text-align: left; }
.section__head--left .eyebrow { justify-content: flex-start; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/* Fond flouté sur un calque à part : un backdrop-filter posé sur .header
   lui-même deviendrait le repère du menu mobile en position fixe (menu écrasé à 60 px) */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(36, 36, 38, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--lime); flex: none; }
.brand__name { font: 700 1.2rem/1 var(--f-brand); font-variant: small-caps; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.7rem; margin-left: auto; }
.nav > a {
  color: #E9E9E9; text-decoration: none; font-weight: 500; font-size: .92rem;
  position: relative; padding: .35em 0;
}
.nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--lime); transition: width .25s;
}
.nav > a:hover::after, .nav > a.is-active::after { width: 100%; }
.nav > a.is-active { color: var(--white); }
.nav > .nav__cta { color: var(--lime); font-weight: 600; }
.nav__extra { display: none; }
.burger { display: none; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(84vh, 720px); display: flex; align-items: center;
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(36, 36, 38, .94) 0%, rgba(36, 36, 38, .78) 48%, rgba(36, 36, 38, .2) 100%),
    linear-gradient(0deg, rgba(36, 36, 38, .6), transparent 40%);
}
.hero__content { padding-block: 4.5rem; }
.hero h1 {
  font: 700 clamp(2.6rem, 7vw, 5rem)/.98 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em; max-width: 13ch; margin-bottom: 1.2rem;
}
.hl { color: var(--lime); }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 50ch; color: #E4E4E4; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.proof {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  font-size: .9rem; font-weight: 500; color: #F0F0F0;
}
.proof li { display: flex; align-items: center; gap: .5rem; }
.proof .ico { color: var(--lime); width: 1.3em; height: 1.3em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--dark { background: var(--ink-deep); color: #D9D9D9; }
.section--tint { background: var(--white); border-top: 1px solid var(--border); }
.blueprint {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---------- Réalisations : fiches chantier ---------- */
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--ink-deep); color: var(--white);
  font: 600 .72rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  padding: .45em .7em; border-radius: 4px;
}
.badge--lime { background: var(--lime); color: var(--ink-deep); }
.project__tag {
  font: 600 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime-ink); margin-bottom: .6rem;
}
.project h3, .service-main h3 {
  font: 700 1.6rem/1.1 var(--f-display); text-transform: uppercase; color: var(--ink-deep);
}

.project--featured {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: var(--shadow-sm); margin-bottom: 1.6rem;
}
.project__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.project__step, .project__cover {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #DDD;
}
.project__step img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.project__step--after { box-shadow: 0 0 0 3px var(--lime); }
.project__step:hover img, .project__cover:hover img { transform: scale(1.04); }
.project__body { padding: .4rem .4rem .4rem 0; }
.project__body p { color: var(--muted); }
.specs { margin: 1.2rem 0 1.4rem; display: grid; gap: .1rem; }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .55rem 0; border-top: 1px dashed var(--border); font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; color: var(--text); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.project:not(.project--featured) {
  background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.project:not(.project--featured):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project__cover { border-radius: 0; }
.project__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.project:not(.project--featured) .project__body { padding: 1.2rem 1.3rem 1.4rem; }
.project:not(.project--featured) h3 { font-size: 1.3rem; }
.project:not(.project--featured) .project__body p:last-child { margin: 0; font-size: .92rem; }

/* ---------- Services ---------- */
.service-main {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: var(--ink-deep); color: #D9D9D9; border-radius: calc(var(--radius) * 1.5); overflow: hidden;
  margin-bottom: 1.2rem;
}
.service-main img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.service-main__body { padding: clamp(1.6rem, 4vw, 3rem); align-self: center; }
.service-main h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.3rem); }
.service-main .project__tag { color: var(--lime); }
.tags { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .4em .85em; border: 1px solid rgba(198, 216, 47, .45); border-radius: 99px;
  font-size: .85rem; font-weight: 500; color: var(--white);
}
.service-main .btn--dark { background: var(--lime); color: var(--ink-deep); }
.service-main .btn--dark:hover { background: var(--lime-hover); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  padding: 1.6rem; transition: border-color .2s, transform .2s;
}
.service:hover { border-color: var(--lime-ink); transform: translateY(-3px); }
.service__ico { width: 44px; height: 44px; color: var(--lime-ink); margin-bottom: 1rem; }
.service h3 { font: 700 1.3rem/1.15 var(--f-display); text-transform: uppercase; color: var(--ink-deep); }
.service p { color: var(--muted); font-size: .93rem; margin-bottom: 1.2rem; }
.service__link { margin-top: auto; color: var(--lime-ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.service__link span { display: inline-block; transition: transform .2s; }
.service__link:hover span { transform: translateX(4px); }

/* ---------- Votre artisan ---------- */
.artisan { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.artisan__id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.artisan__monogram {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime); color: var(--ink-deep); font: 700 2rem/1 var(--f-display);
  box-shadow: 0 0 0 6px rgba(198, 216, 47, .18);
}
.artisan__name { font: 700 1.5rem/1 var(--f-display); color: var(--white); margin: 0 0 .25rem; text-transform: uppercase; }
.artisan__role { margin: 0; font-size: .85rem; color: #A9A9AD; }
.artisan__intro p { max-width: 60ch; }
.commitments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.commitments li {
  display: flex; flex-direction: column; gap: .8rem;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: calc(var(--radius) * 1.5); padding: 1.4rem;
}
.commitments .ico { color: var(--lime); }
.commitments strong { display: block; color: var(--white); font: 700 1.2rem/1.1 var(--f-display); text-transform: uppercase; margin-bottom: .3rem; }
.commitments span { font-size: .88rem; color: #BDBDC1; }

/* ---------- Zone + étapes ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zone__text > p { color: var(--muted); max-width: 54ch; }
.towns { list-style: none; padding: 0; margin: 1.2rem 0 2.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.towns li {
  padding: .3em .7em; background: var(--white); border: 1px solid var(--border); border-radius: 4px;
  font-size: .82rem; font-weight: 500;
}
.zone__steps-title { font: 700 1.3rem/1 var(--f-display); text-transform: uppercase; color: var(--ink-deep); margin-bottom: 1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; font-size: .94rem; }
.steps span {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink-deep); color: var(--lime); font: 700 1.1rem/1 var(--f-display);
}
.steps strong { color: var(--ink-deep); }

.zone__map {
  margin: 0; background: var(--ink-deep); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--shadow); color: #8A8A90;
}
.zone__map svg { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.map__zone { fill: rgba(198, 216, 47, .1); stroke: var(--lime); stroke-width: .5; stroke-dasharray: 2 1.4; }
.map__ring { fill: none; stroke: rgba(198, 216, 47, .35); stroke-width: .3; stroke-dasharray: 1 1; }
.map__ring-label { font-size: 2.6px; fill: var(--lime); font-weight: 600; letter-spacing: .1px; }
.map__towns circle { fill: #F0F0F0; }
.map__towns text { font-size: 3px; fill: #E6E6E6; font-weight: 500; }
.map__home circle { fill: var(--lime); }
.map__home path { fill: var(--ink-deep); }
.map__home text { font-size: 3.6px; fill: var(--lime); font-weight: 700; }
.map__north path { fill: #CFCFD3; }
.map__north text, .map__scale text { font-size: 2.6px; fill: #CFCFD3; font-weight: 600; }
.map__scale path { stroke: #CFCFD3; stroke-width: .4; fill: none; }
.zone__map figcaption { margin-top: .8rem; text-align: center; font-size: .8rem; color: #B5B5BA; }

/* ---------- Questions fréquentes ---------- */
.faq__list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem; color: var(--ink-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; 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'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%235C6E0A' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__quick { display: grid; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.contact__card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  border-radius: var(--radius); padding: 1rem 1.2rem; transition: transform .2s, box-shadow .2s;
}
.contact__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact__card small { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.contact__card strong { font-size: 1.05rem; }
.contact__card--phone { background: var(--ink-deep); color: var(--white); }
.contact__card--phone .ico, .contact__card--phone strong { color: var(--lime); }
.contact__card--phone strong { font: 700 1.7rem/1.1 var(--f-display); letter-spacing: .02em; }
.contact__card--wa { background: var(--whatsapp); color: var(--white); }
.contact__card--wa:hover { background: var(--whatsapp-hover); }
.contact__card--wa small { opacity: .85; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.contact__list li { display: flex; align-items: center; gap: .7rem; }
.contact__list .ico { color: var(--lime-ink); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form {
  background: var(--paper); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.form label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 1rem; position: relative; }
.form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; position: relative; }
.form__row--city { z-index: 3; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea {
  display: block; width: 100%; margin-top: .35rem;
  font: 400 1rem var(--f-body); color: var(--text);
  padding: .75em .9em; border: 1.5px solid #CFCFC8; border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--lime-ink); box-shadow: 0 0 0 3px rgba(198, 216, 47, .4);
}
.form .is-invalid { border-color: #B3261E !important; }
.form label.has-error::after { content: attr(data-error); display: block; margin-top: .3rem; color: #B3261E; font-size: .8rem; font-weight: 500; }
.form__fields[hidden], .form__success[hidden] { display: none; }
.consent { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .8rem !important; color: var(--muted); flex-wrap: wrap; }
.consent input { margin-top: .25em; accent-color: var(--lime-ink); }
.consent.has-error::after { flex-basis: 100%; }
.form__note { text-align: center; font-size: .8rem; color: var(--muted); margin: .8rem 0 0; }
.form__note a { color: var(--ink); font-weight: 600; }
.form__note a, .form__success strong, .footer a { white-space: nowrap; }
.form__status { margin: 1rem 0 0; font-weight: 600; text-align: center; }
.form__status:empty { display: none; }
.form__status.err { color: #B3261E; }
.hp { position: absolute !important; left: -9999px; }

.chips { border: 0; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips legend { font-weight: 600; font-size: .86rem; margin-bottom: .5rem; padding: 0; }
.form .chip { margin: 0; font-weight: 500; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .5em .95em; border-radius: 99px; font-size: .88rem;
  border: 1.5px solid #CFCFC8; background: var(--white); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip span:hover { border-color: var(--lime-ink); }
.chip input:checked + span { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--lime); }
.chip input:focus-visible + span { outline: 3px solid var(--lime-ink); outline-offset: 2px; }

.city__list {
  position: absolute; left: 0; right: 0; z-index: 5;
  list-style: none; margin: 0; padding: .3rem 0;
  background: var(--white); border: 1.5px solid var(--lime-ink); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 260px; overflow-y: auto;
}
.city__list[hidden] { display: none; }
.city__list li { padding: .6em .9em; cursor: pointer; font-weight: 500; }
.city__list li small { color: var(--muted); font-weight: 400; margin-left: .3em; }
.city__list li:hover, .city__list li[aria-selected="true"] { background: var(--lime-soft); }
.city__info { display: block; margin-top: .3rem; font-size: .8rem; font-weight: 500; color: var(--lime-ink); }
.city__info.is-far { color: #9A5B00; }
.city__info:empty { display: none; }

.form__success { text-align: center; padding: 2rem 0; outline: none; }
.form__success-ico {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.2rem;
  border-radius: 50%; background: var(--lime); color: var(--ink-deep); font-size: 2.2rem; font-weight: 700;
}
.form__success h3 { font: 700 1.8rem/1.1 var(--f-display); text-transform: uppercase; color: var(--ink-deep); }
.form__success .btn { margin-top: 1.5rem; }
.form__mail {
  margin: 1.2rem 0; padding: 1rem 1.1rem; text-align: left;
  background: var(--lime-soft); border-left: 4px solid var(--lime-ink); border-radius: var(--radius);
  font-size: .9rem;
}
.form__mail[hidden] { display: none; }
.form__mail p { margin: 0 0 .5rem; }
.form__mail p:last-child { margin: 0; }
.form__mail .ico { color: var(--lime-ink); vertical-align: -.2em; margin-right: .2em; }
.form__success .form__mail strong { white-space: normal; overflow-wrap: anywhere; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink-deep); color: #B5B5BA; padding: 3rem 0 1.5rem; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer p { margin: 0; }
.footer a { color: var(--lime); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__title { font: 700 1.05rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin-bottom: .7rem !important; }
.brand--footer { margin-bottom: .9rem; }
.footer__small { margin-top: 2.2rem !important; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }

/* ---------- Barre mobile, notification, visionneuse ---------- */
.mobile-bar { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120;
  transform: translate(-50%, 150%); opacity: 0;
  background: var(--ink-deep); color: var(--white); padding: .9rem 1.4rem; border-radius: var(--radius);
  border-left: 4px solid var(--lime); box-shadow: var(--shadow);
  font-size: .92rem; max-width: calc(100% - 32px); transition: transform .3s, opacity .3s;
}
.toast strong { color: var(--lime); }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(18, 18, 20, .95);
  display: flex; align-items: center; justify-content: center; padding: 3rem 4rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: var(--radius); }
.lightbox__caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; color: #EDEDED; font-size: .92rem; margin: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 3rem; line-height: 1; padding: .5rem; }
.lightbox button:hover { color: var(--lime); }
.lightbox__close { top: .5rem; right: 1rem; }
.lightbox__prev { left: .5rem; }
.lightbox__next { right: .5rem; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header__call span { display: none; }
  .project--featured, .artisan, .zone { grid-template-columns: 1fr; }
  .project__body { padding: 0 .4rem .4rem; }
  .zone__map { max-width: 560px; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }

  /* Menu mobile plein écran */
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--lime); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__call { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 1rem 24px calc(1.5rem + env(safe-area-inset-bottom));
    background-color: var(--ink-deep);
    background-image: linear-gradient(rgba(198, 216, 47, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(198, 216, 47, .05) 1px, transparent 1px);
    background-size: 32px 32px;
    overflow-y: auto; counter-reset: nav;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .nav > a {
    display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font: 700 1.9rem/1.1 var(--f-display); text-transform: uppercase; color: var(--white);
    counter-increment: nav; opacity: 0; transform: translateX(-10px);
    transition: opacity .3s, transform .3s, color .2s;
  }
  .nav > a::before { content: counter(nav, decimal-leading-zero); font: 600 .75rem var(--f-body); color: var(--lime); letter-spacing: .08em; min-width: 1.6rem; }
  .nav > a::after {
    content: "→"; position: static; width: auto; height: auto; background: none;
    margin-left: auto; font: 400 1.2rem var(--f-body); color: rgba(255, 255, 255, .35); transition: transform .2s, color .2s;
  }
  .nav > a:hover::after, .nav > a.is-active::after { width: auto; color: var(--lime); transform: translateX(4px); }
  .nav > a.is-active, .nav > .nav__cta { color: var(--lime); }
  .nav.is-open > a { opacity: 1; transform: none; }
  .nav.is-open > a:nth-child(2) { transition-delay: .04s; }
  .nav.is-open > a:nth-child(3) { transition-delay: .08s; }
  .nav.is-open > a:nth-child(4) { transition-delay: .12s; }
  .nav.is-open > a:nth-child(5) { transition-delay: .16s; }
  .nav__extra { display: grid; gap: .7rem; margin-top: auto; padding-top: 2rem; opacity: 0; transition: opacity .3s .15s; }
  .nav.is-open .nav__extra { opacity: 1; }
  .nav__meta { margin: .4rem 0 0; color: #BDBDC1; font-size: .88rem; }
  .nav__meta span { display: flex; align-items: center; gap: .6rem; }
  .nav__meta .ico { color: var(--lime); }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-bar { transform: translateY(100%); }

  /* Contenu plus compact */
  .section__head { margin-bottom: 1.8rem; }
  .hero { min-height: 0; }
  .hero__content { padding-block: 3rem 2.6rem; }
  .proof { margin-top: 1.8rem; gap: .5rem 1.2rem; font-size: .84rem; }

  /* Cartes en défilement horizontal */
  .projects, .services {
    display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: .2rem 16px 1rem; scrollbar-width: none;
  }
  .projects::-webkit-scrollbar, .services::-webkit-scrollbar { display: none; }
  .projects > *, .services > * { flex: 0 0 78%; scroll-snap-align: start; }
  .services > * { flex-basis: 70%; }

  .service-main { grid-template-columns: 1fr; }
  .service-main img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .commitments { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .commitments li { padding: 1rem; gap: .5rem; }
  .commitments span { font-size: .8rem; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.4rem; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink-deep);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .2); transition: transform .3s;
  }
  .mobile-bar.is-hidden { transform: translateY(100%); }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 56px; font-weight: 700; font-size: .92rem; text-decoration: none;
    background: var(--lime); color: var(--ink-deep);
  }
  .mobile-bar .mobile-bar__wa { background: var(--whatsapp); color: var(--white); }
  .mobile-bar .mobile-bar__alt { background: var(--ink-deep); color: var(--lime); }
  body { padding-bottom: 56px; }
  .toast { bottom: 72px; }
}

@media (max-width: 600px) {
  .brand__name { font-size: 1.05rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .project__steps { gap: .4rem; }
  .badge { top: 6px; left: 6px; font-size: .62rem; }
  .specs div { grid-template-columns: 6.5rem 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .commitments strong { font-size: 1.05rem; }
  .lightbox { padding: 3rem .5rem; }
}
