/* =====================================================================
   Peinture Gambet — feuille de style partagée
   Charte "Chaux & Terre" (voir analyse.md / prompt 1)
   Mobile-first · breakpoints 375 / 768 / 1280
   ===================================================================== */

:root {
  /* Palette de marque (prompt 1) */
  --bg: #F5F1E9;          /* blanc cassé chaud */
  --fg: #2A2723;          /* brun-noir doux */
  --accent: #B0563B;      /* terre cuite */
  --accent-soft: #6E7E62; /* vert sauge */
  --muted: #B7AC9B;       /* greige */

  /* Helpers dérivés */
  --surface: #FBF9F4;
  --alt: #EFE7D7;
  --fg-soft: #6b6358;
  --line: rgba(42, 39, 35, 0.12);
  --line-2: rgba(42, 39, 35, 0.18);
  --accent-ink: #7d3a26;
  --sage-ink: #4f5c45;

  --shadow-sm: 0 1px 2px rgba(42, 39, 35, 0.06), 0 4px 12px rgba(42, 39, 35, 0.05);
  --shadow-md: 0 14px 36px -16px rgba(42, 39, 35, 0.28);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--fg); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
em { font-style: normal; color: var(--accent); }
p { color: var(--fg); }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--fg-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--alt); }
.section--soft { background: var(--surface); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__head p { margin-top: 0.8rem; color: var(--fg-soft); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--fg); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; line-height: 1;
  border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--light { background: #fff; color: var(--fg); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 233, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand__icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--accent); border-radius: 9px; color: #fff;
}
.brand__icon svg { width: 20px; height: 20px; }
.brand__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__name strong { color: var(--accent); font-weight: 600; }
.nav { display: none; margin-left: auto; gap: 0.3rem; }
.nav a {
  color: var(--fg); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.7rem; border-radius: 8px;
}
.nav a:hover { background: var(--alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }
.header__cta { display: none; }
.burger {
  margin-left: auto; width: 46px; height: 40px; display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--fg); transition: 0.2s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 5rem var(--gutter) 2rem; display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu nav a {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--fg);
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.mobile-menu nav a:hover { color: var(--accent); text-decoration: none; }
.mobile-menu .btn { margin-top: 1.4rem; }
.mobile-menu__close {
  position: absolute; top: 1.1rem; right: var(--gutter);
  width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; font-size: 1.6rem; line-height: 1; color: var(--fg);
}
body.menu-open { overflow: hidden; }

/* ---------- Hero (accueil) ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero__grid { display: grid; gap: clamp(1.8rem, 5vw, 3rem); align-items: center; }
.hero__title { margin-bottom: 1rem; }
.hero__lede { margin-bottom: 1.8rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* HERO ACCUEIL — Couleur / nuancier ------------------- */
.hero-paint {
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
}
.hero-paint__media {
  position: relative;
  overflow: hidden;
  background: var(--alt);
  min-height: 260px;
}
.hero-paint__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 50%;
}
.hero-paint__panel {
  position: relative;
  background: linear-gradient(150deg, #B0563B 0%, #9a4a32 55%, #7d3a26 100%);
  color: #F7EFE6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 60px);
}
.hero-paint__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F1C9AE;
  margin-bottom: 16px;
}
.hero-paint__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #F1C9AE;
}
.hero-paint__title {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-size: clamp(2.1rem, 3.4vw + 0.6rem, 3.4rem);
  color: #FBF6EF;
  margin-bottom: 16px;
}
.hero-paint__title em { font-style: italic; color: #F3CDA9; }
.hero-paint__lede {
  color: rgba(247, 239, 230, 0.92);
  font-size: 1.05rem;
  max-width: 38ch;
  margin-bottom: 24px;
}
.hero-paint__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 20px;
}
.hero-paint .btn--primary { background: #FBF9F4; color: var(--accent-ink); }
.hero-paint .btn--primary:hover { background: #ffffff; color: var(--accent-ink); }
.hero-paint .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #F7EFE6;
  border: 1px solid rgba(247, 239, 230, 0.55);
}
.hero-paint .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.hero-paint__qualibat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(247, 239, 230, 0.92);
}
.hero-paint__qualibat svg { width: 16px; height: 16px; color: #F3CDA9; flex-shrink: 0; }
.hero-paint__nuancier { display: flex; height: 56px; }
.hero-paint__nuancier span { flex: 1 1 0; }
@media (min-width: 900px) {
  .hero-paint {
    grid-template-columns: 1.02fr 0.98fr;
    min-height: clamp(520px, 76vh, 700px);
  }
  .hero-paint__media { min-height: 0; }
  .hero-paint__nuancier { grid-column: 1 / -1; height: 60px; }
}
.hero__media img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}

/* ---------- Proof bar ---------- */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof__list {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: center;
  padding-block: 1.1rem; text-align: center;
}
.proof__list li {
  font-weight: 600; font-size: 0.9rem; color: var(--fg-soft);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.proof__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
}
.card h3 { margin-top: 0.2rem; }
.card p { color: var(--fg-soft); }
.card__media {
  border-radius: var(--radius-sm); overflow: hidden; margin: -0.3rem -0.3rem 0.6rem; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; background: var(--alt);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__link { margin-top: auto; font-weight: 700; color: var(--accent-ink); }
.card__link::after { content: " →"; }

.feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature__num {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--fg-soft); margin-top: 0.2rem; }

/* ---------- Services detail ---------- */
.svc { display: grid; gap: clamp(1.2rem, 4vw, 2.5rem); align-items: center; padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.svc + .svc { border-top: 1px solid var(--line); }
.svc__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.svc__body ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.svc__body li { position: relative; padding-left: 1.6rem; color: var(--fg); }
.svc__body li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Callout / CTA band ---------- */
.callout {
  background: var(--fg); color: var(--bg); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 5vw, 3rem); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.callout h2 { color: var(--bg); }
.callout p { color: rgba(245, 241, 233, 0.82); max-width: 38rem; }
.callout em { color: #e7a187; }

/* ---------- Zones ---------- */
.zone-block { display: grid; gap: 1rem; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.zone-block h2 { font-size: 1.5rem; }
.zone-block h2 span { color: var(--accent); }
.zone-block p { color: var(--fg-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip {
  font-size: 0.85rem; font-weight: 600; color: var(--sage-ink);
  background: rgba(110, 126, 98, 0.12); border: 1px solid rgba(110, 126, 98, 0.25);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.map-svg { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }

/* ---------- Compare slider (avant/après) ---------- */
.case { margin: 0; }
.compare {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); user-select: none; -webkit-user-select: none;
  touch-action: pan-y; /* le swipe vertical scrolle la page, l'horizontal pilote le slider */
  --split: 50%; background: #1a1a1a;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md);
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare__layer--after { z-index: 1; }
.compare__layer--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare.is-dragging .compare__layer--before { transition: none; }
.compare__handle {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  left: var(--split); transform: translateX(-50%);
  width: 44px; background: transparent; border: 0; cursor: ew-resize; padding: 0;
  touch-action: none;
}
.compare__handle-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 16px rgba(255, 255, 255, 0.35);
}
.compare__handle-knob {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.compare__handle-knob::before, .compare__handle-knob::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  border: 2.5px solid var(--accent); border-width: 2.5px 2.5px 0 0;
}
.compare__handle-knob::before { left: 9px; transform: translateY(-50%) rotate(-135deg); }
.compare__handle-knob::after { right: 9px; transform: translateY(-50%) rotate(45deg); }
.compare__handle:focus { outline: none; }
.compare__handle:focus-visible .compare__handle-knob {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent), 0 2px 10px rgba(0, 0, 0, 0.3);
}
@media (hover: hover) { .compare__handle:hover .compare__handle-knob { transform: translate(-50%, -50%) scale(1.08); } }
.compare.is-dragging .compare__handle-knob { transform: translate(-50%, -50%) scale(0.94); }
.compare__tag {
  position: absolute; top: 12px; z-index: 4; padding: 5px 11px;
  background: rgba(20, 18, 16, 0.62); color: #fff; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 6px; pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }
.case h3 { margin-top: 1rem; }
.case > p { color: var(--fg-soft); margin-top: 0.2rem; }
.compare-hint { font-size: 0.9rem; color: var(--fg-soft); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176, 86, 59, 0.15); }
.field--row { display: grid; gap: 1rem; }
.form__note { font-size: 0.85rem; color: var(--fg-soft); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1.1rem; height: fit-content; }
.info-card h2 { font-size: 1.4rem; }
.info-item { display: grid; gap: 0.15rem; }
.info-item span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.info-item a, .info-item p { font-size: 1.05rem; color: var(--fg); }
.badge {
  display: inline-block; background: rgba(110, 126, 98, 0.14); color: var(--sage-ink);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 600; font-size: 0.9rem;
}

/* ---------- Page hero (pages intérieures) ---------- */
.page-hero { background: var(--alt); border-bottom: 1px solid var(--line); padding-block: clamp(2.2rem, 6vw, 3.8rem); }
.breadcrumb { font-size: 0.85rem; color: var(--fg-soft); margin-bottom: 0.7rem; }
.breadcrumb a { color: var(--fg-soft); }
.breadcrumb span { color: var(--accent); }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { max-width: 44rem; color: var(--fg-soft); }

/* ---------- Prose (mentions) ---------- */
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--fg-soft); margin-top: 0.7rem; }
.prose ul { list-style: disc; padding-left: 1.2rem; }
.prose strong { color: var(--fg); }
.demo-note {
  background: rgba(176, 86, 59, 0.08); border: 1px solid rgba(176, 86, 59, 0.3);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-top: 1.5rem; color: var(--fg);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--fg); color: rgba(245, 241, 233, 0.82); margin-top: clamp(3rem, 8vw, 6rem); }
.footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.footer__col p, .footer__col li { font-size: 0.95rem; line-height: 1.7; }
.footer__brand { font-family: var(--font-head); font-size: 1.3rem; color: var(--bg); margin-bottom: 0.6rem; }
.footer__title { color: var(--bg); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 0.8rem; }
.footer__col a { color: rgba(245, 241, 233, 0.82); }
.footer__col a:hover { color: #fff; }
.footer__col ul { display: grid; gap: 0.35rem; }
.footer__credit { border-top: 1px solid rgba(245, 241, 233, 0.15); padding-block: 1.2rem; font-size: 0.85rem; color: rgba(245, 241, 233, 0.6); }
.footer__credit a { color: rgba(245, 241, 233, 0.9); text-decoration: underline; }

/* =====================================================================
   Responsive — tablette (>=768) puis desktop (>=1024 / 1280)
   ===================================================================== */
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .field--row { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc--rev .svc__media { order: 2; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

@media (min-width: 1024px) {
  .nav { display: inline-flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .hero { padding-block: 5.5rem; }
}

/* ---------- Réductions de mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.zone-block__media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--alt); margin-bottom: 0.2rem; }
.zone-block__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
