/* ==========================================================================
   Art-Concept — feuille de style unique
   --------------------------------------------------------------------------
   Pour changer la couleur du site : modifier --brand juste en dessous.
   Toutes les teintes (survols, fonds clairs, fonds sombres) en découlent.
   ========================================================================== */

:root {
  /* ► COULEUR DE MARQUE — le vert des factures. Seul endroit à modifier. */
  --brand: #1f7a4d;

  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
  --brand-mid: color-mix(in srgb, var(--brand) 26%, #fff);
  --dark: color-mix(in srgb, var(--brand) 14%, #0a0e0c);
  --dark-2: color-mix(in srgb, var(--brand) 20%, #0a0e0c);

  --on-dark: #e9efeb;
  --on-dark-2: #a9b5ae;
  --ink: #181b19;
  --ink-2: #464c48;
  --ink-3: #636964;
  --paper: #f7f5f0;
  --white: #fff;
  --line: #e2ded4;
  --line-2: #cfcabd;

  --radius: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

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

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.4rem; min-height: 48px;
  border: 1.5px solid transparent; border-radius: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--light { background: #fff; color: var(--brand-ink); }
.btn--light:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 76px; }

/* Emplacement du logo : /assets/logo/logo.svg (voir LOGO-LISEZ-MOI.txt à la racine du projet) */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand__img { display: none; height: 46px; width: auto; max-width: 240px; object-fit: contain; }
.brand.has-logo .brand__img { display: block; }
.brand.has-logo .brand__fallback { display: none; }
.brand__fallback { display: inline-flex; align-items: center; gap: .75rem; }
.brand__slot {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
  border: 1.5px dashed var(--brand); color: var(--brand-ink); background: var(--brand-soft);
  font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.brand__name { display: grid; line-height: 1.15; white-space: nowrap; }
.nav a, .header-quote { white-space: nowrap; }
.brand { min-width: 0; }
@media (max-width: 559px) {
  .brand__name small { display: none; }
  .brand__img { max-width: 48vw; }
}
.brand__name strong { font-size: 1.15rem; letter-spacing: .06em; }
.brand__name small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
.nav a { position: relative; padding: .4rem 0; font-size: .96rem; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-width: 48px; min-height: 48px; padding: 0 .9rem; border-radius: 8px;
  color: var(--brand-ink); background: var(--brand-soft); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.header-tel:hover { background: var(--brand-mid); }
.header-tel__num { display: none; }
.header-quote { display: none; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }

@media (max-width: 1179px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem var(--gutter) 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgb(20 30 25 / .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .header-quote { display: inline-flex; }
}
@media (min-width: 1360px) {
  .header-tel__num { display: inline; }
  .header-tel { background: transparent; padding: 0 .4rem; }
  .header-tel:hover { background: transparent; color: var(--brand); }
}

/* ---------- Typographie de sections ---------- */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--brand-ink);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--brand); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.3vw, 3rem); margin-top: .95rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- Accueil ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: 2.75rem; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2.5rem, 5vw, 5rem); } }
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); margin: 1.1rem 0 1.4rem; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; font-size: .94rem; color: var(--ink-3); }
.hero__meta .icon { color: var(--brand); }

/* Photo d'accueil (public/assets/img/accueil.webp, générée par tools/optimize-photos.mjs) */
.hero__visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: var(--brand-soft); border: 1px solid var(--brand-mid);
}
.hero__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Chiffres clés */
.facts { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line-2); }
@media (min-width: 900px) { .facts__grid { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 1.6rem 1.25rem 1.6rem 0; }
@media (min-width: 900px) { .fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
@media (max-width: 899px) {
  .fact:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.fact dt { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -.02em; color: var(--brand-ink); line-height: 1.15; }
.fact dd { margin: .35rem 0 0; font-size: .95rem; color: var(--ink-2); }

/* ---------- Savoir-faire ---------- */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); transition: background-color .2s; }
.card:hover { background: var(--brand-soft); }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.card:hover .card__icon { background: #fff; }
.card__icon .icon { width: 1.6rem; height: 1.6rem; }
.card h3 { font-size: 1.28rem; margin-top: .5rem; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card--cta { background: var(--brand); color: #fff; justify-content: space-between; text-decoration: none; }
.card--cta:hover { background: var(--brand-ink); }
.card--cta p { color: rgb(255 255 255 / .86); }
.card--cta h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 0; }
.card--cta .arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }

/* ---------- Magasins & bureaux (fond sombre) ---------- */
.sectors { background: var(--dark); color: var(--on-dark); }
.sectors .eyebrow { color: var(--brand-mid); }
.sectors .eyebrow::before { background: var(--brand-mid); }
.sectors .section-head p { color: var(--on-dark-2); }
.sector-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
.sector { padding: clamp(1.75rem, 3.5vw, 2.75rem); background: var(--dark-2); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius); }
.sector__n { font-size: .85rem; font-weight: 700; letter-spacing: .16em; color: var(--brand-mid); }
.sector h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 1rem 0 .8rem; }
.sector p { color: var(--on-dark-2); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.tags li { border: 1px solid rgb(255 255 255 / .22); border-radius: 99px; padding: .3rem .9rem; font-size: .9rem; color: var(--on-dark); }

/* ---------- Réalisations ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.gallery.is-collapsed .shot:nth-child(n + 9) { display: none; }  /* « Voir toutes les photos » (main.js) */
.gallery-more { margin-top: 1.75rem; text-align: center; }
.shot { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: var(--brand-soft); }
.shot a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot a:focus-visible { outline-offset: -4px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot a:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); pointer-events: none;
  background: rgb(255 255 255 / .94); border-radius: 8px; padding: .3rem .65rem;
  font-size: .78rem; font-weight: 650; line-height: 1.3; color: var(--ink-2);
}

/* Agrandissement d'une photo (fenêtre <dialog> créée par main.js) */
html.lb-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgb(8 12 10 / .93); }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 3.5rem 4.5rem 4.5rem; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: .9rem; max-width: 100%; }
.lightbox__img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 11rem); max-height: calc(100dvh - 11rem); border-radius: 6px; background: #111; }
.lightbox__cap { font-size: .95rem; color: var(--on-dark); text-align: center; }
.lightbox__cap small { margin-left: .6rem; color: var(--on-dark-2); }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .08); color: #fff; cursor: pointer;
  transition: background-color .15s;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .22); }
.lightbox__btn--close { top: 1rem; right: 1rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox__stage { padding: 4rem 1rem 5.5rem; }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__btn--prev { left: calc(50% - 60px); }
  .lightbox__btn--next { right: calc(50% - 60px); }
}

/* ---------- Références ---------- */
.refs-wrap { background: var(--white); border-block: 1px solid var(--line); }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.refs .refs__more { color: var(--brand-ink); font-weight: 600; }
.refs li { padding: 1.35rem .5rem; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); }
.refs li small { font-weight: 500; color: var(--ink-3); font-size: .85em; }
.refs-note { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-3); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact__title { font-size: clamp(1.9rem, 4.3vw, 3rem); margin: .95rem 0 1rem; }
.contact__lead { font-size: 1.1rem; }
.contact__list { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.contact__list dt, .contact__label { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact__list a { font-weight: 650; text-decoration-color: var(--brand-mid); text-underline-offset: 4px; }
.contact__list a:hover { color: var(--brand-ink); text-decoration-color: var(--brand); }
.contact__value { font-size: 1.1rem; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: 0 1px 2px rgb(20 30 25 / .05), 0 14px 40px rgb(20 30 25 / .06); }
.form h3 { font-size: 1.4rem; margin-bottom: 1.4rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .9rem; font-weight: 650; }
.field label span { color: var(--ink-3); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: .84rem; color: var(--ink-3); margin: .25rem 0 1.25rem; }
.form__legal a { color: var(--ink-2); }
.form .btn { width: 100%; }
@media (min-width: 600px) { .form .btn { width: auto; min-width: 220px; } }
.form-status { margin-top: 1rem; font-size: .98rem; font-weight: 550; min-height: 1.5em; }
.form-status[data-state="ok"] { color: var(--brand-ink); }
.form-status[data-state="error"] { color: #b3261e; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem; font-size: .96rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--brand-mid); }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand__slot { border-color: var(--brand-mid); background: transparent; color: var(--brand-mid); }
.site-footer .brand__name small { color: var(--on-dark-2); }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer__grid h2 { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 1rem; }
.footer__grid ul { display: grid; gap: .5rem; }
.footer__tag { margin-top: 1.1rem; max-width: 30ch; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .86rem; }

/* ---------- Pages légales ---------- */
.legal-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 1rem; }
.prose { max-width: 70ch; padding-bottom: clamp(3rem, 7vw, 6rem); }
.prose h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.prose p, .prose ul { margin-bottom: 1rem; color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--brand-ink); text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1rem; }
.prose dt { font-weight: 650; color: var(--ink); }
.prose dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: .8rem; } }
mark.todo { background: #ffe58a; color: #3a2e00; padding: 0 .35em; border-radius: 3px; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { font-size: clamp(4rem, 14vw, 8rem); color: var(--brand); }
.error-page p { margin: 1rem 0 2rem; color: var(--ink-2); }

/* ---------- Apparition au défilement (activée par main.js, jamais bloquante) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pre { opacity: 0; transform: translateY(16px); }
  .pre.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
}
