/* ============================================================
   Worknest Cleaning — DA « Les toits de Paris », déclinaison claire
   Palette : zinc, pierre, laiton — dominante craie/pierre
   ============================================================ */

:root {
  --nuit: #1C2430;
  --zinc-profond: #232D3C;
  --zinc: #8C99A6;
  --pierre: #EFECE6;
  --craie: #FAF9F6;
  --laiton: #A8875A;
  --laiton-clair: #C4A878;
  --encre: #262D36;
  --filet: rgba(38, 45, 54, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--craie);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Prata', Georgia, serif; font-weight: 400; line-height: 1.18; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { max-width: 65ch; }

img { max-width: 100%; display: block; }

.wrap { width: min(1140px, 92vw); margin: 0 auto; }

/* ---------- Logo ---------- */
.logo {
  font-family: 'Prata', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--encre);
  white-space: nowrap;
}
.logo .roof { position: relative; display: inline-block; }
.logo .roof::before {
  content: "";
  position: absolute;
  top: -0.28em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.72em;
  height: 0.34em;
  clip-path: polygon(50% 0, 100% 100%, 82% 100%, 50% 32%, 18% 100%, 0 100%);
  background: var(--laiton);
}
.logo .sub {
  margin-left: 9px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--laiton);
}

/* ---------- Nav ---------- */
nav.main {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--craie) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--filet);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--encre);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--laiton); }
.nav-links a.active:not(.btn) { color: var(--laiton); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn-laiton { background: var(--laiton); color: var(--craie); }
.btn-laiton:hover { background: var(--nuit); color: var(--craie); }
.btn-ghost { border-color: var(--filet); color: var(--encre); background: transparent; }
.btn-ghost:hover { border-color: var(--laiton); color: var(--laiton); }
.btn-nuit { background: var(--nuit); color: var(--craie); }
.btn-nuit:hover { background: var(--laiton); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--laiton);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--laiton); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--craie);
  isolation: isolate;
}
.hero .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,36,48,0.18) 0%, rgba(28,36,48,0.62) 100%);
}
.hero-content { padding: 90px 0 70px; }
.hero-content .eyebrow { color: var(--laiton-clair); }
.hero-content .eyebrow::before { background: var(--laiton-clair); }
.hero-content h1 { margin: 18px 0 20px; max-width: 17ch; }
.hero-content p { font-size: 1.08rem; max-width: 52ch; color: color-mix(in srgb, var(--craie) 88%, var(--zinc)); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Hero interne (tarifs / contact) */
.hero-page { background: var(--pierre); padding: 74px 0 58px; border-bottom: 1px solid var(--filet); }
.hero-page h1 { margin: 16px 0 16px; }
.hero-page p { color: color-mix(in srgb, var(--encre) 75%, var(--zinc)); font-size: 1.05rem; }

/* ---------- Bandeau chiffres ---------- */
.chiffres { background: var(--nuit); color: var(--craie); padding: 44px 0; }
.chiffres .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.chiffre b { display: block; font-family: 'Prata', Georgia, serif; font-weight: 400; font-size: 1.9rem; color: var(--laiton-clair); }
.chiffre span { font-size: 0.9rem; color: var(--zinc); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.pierre { background: var(--pierre); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin: 16px 0 14px; }
.section-head p { color: color-mix(in srgb, var(--encre) 75%, var(--zinc)); }

/* ---------- Avant / Après ---------- */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 2;
  max-height: 620px;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .apres { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut, 50%);
  width: 2px;
  background: var(--craie);
  pointer-events: none;
}
.ba-handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--craie);
  color: var(--nuit);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(28,36,48,0.25);
}
.ba-label {
  position: absolute;
  top: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--craie);
  background: rgba(28,36,48,0.55);
  padding: 7px 13px;
  border-radius: 2px;
  pointer-events: none;
}
.ba-label.avant { left: 18px; }
.ba-label.apres-l { right: 18px; }
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-caption { margin-top: 14px; font-size: 0.88rem; color: var(--zinc); }

/* ---------- Cartes services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 26px; }
.card {
  background: var(--craie);
  border: 1px solid var(--filet);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
section.pierre .card { background: var(--craie); }
.card figure { aspect-ratio: 3 / 2; overflow: hidden; margin: 0; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover figure img { transform: scale(1.03); }
.card .card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { margin-top: 2px; }
.card p { font-size: 0.97rem; color: color-mix(in srgb, var(--encre) 78%, var(--zinc)); }
.card ul { list-style: none; margin-top: 4px; }
.card ul li { padding: 7px 0 7px 22px; position: relative; font-size: 0.93rem; border-top: 1px solid var(--filet); }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 5px;
  clip-path: polygon(50% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%, 0 100%);
  background: var(--laiton);
}

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 34px; counter-reset: step; }
.step { border-top: 1px solid var(--filet); padding-top: 22px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'Prata', Georgia, serif;
  font-size: 1.5rem;
  color: var(--laiton);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: color-mix(in srgb, var(--encre) 78%, var(--zinc)); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.split figure { margin: 0; border-radius: 2px; overflow: hidden; aspect-ratio: 3 / 2; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin: 16px 0 16px; }
.split p + p { margin-top: 14px; }

/* ---------- Tarifs ---------- */
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; align-items: stretch; }
.formule {
  background: var(--craie);
  border: 1px solid var(--filet);
  border-radius: 2px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.formule.star { border-color: var(--laiton); }
.formule .pill {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--laiton);
  color: var(--craie);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}
.formule .type { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--laiton); }
.formule .prix { font-family: 'Prata', Georgia, serif; font-size: 2.5rem; margin: 6px 0 2px; }
.formule .prix small { font-family: 'Archivo', sans-serif; font-size: 0.85rem; color: var(--zinc); }
.formule .desc { font-size: 0.92rem; color: color-mix(in srgb, var(--encre) 72%, var(--zinc)); margin-bottom: 12px; }
.formule ul { list-style: none; margin-top: auto; }
.formule ul li { padding: 8px 0 8px 22px; position: relative; font-size: 0.93rem; border-top: 1px solid var(--filet); }
.formule ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 5px;
  clip-path: polygon(50% 0, 100% 100%, 78% 100%, 50% 38%, 22% 100%, 0 100%);
  background: var(--laiton);
}

.options-table { width: 100%; border-collapse: collapse; background: var(--craie); border: 1px solid var(--filet); border-radius: 2px; }
.options-table th, .options-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--filet); font-size: 0.96rem; vertical-align: top; }
.options-table th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--laiton); background: var(--pierre); }
.options-table td.prix-cell { font-family: 'Prata', Georgia, serif; white-space: nowrap; }
.options-table tr:last-child td { border-bottom: none; }
.options-table .muted { display: block; font-size: 0.85rem; color: var(--zinc); }

.note-tarif { margin-top: 22px; font-size: 0.88rem; color: var(--zinc); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary {
  font-family: 'Prata', Georgia, serif;
  font-size: 1.08rem;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Archivo', sans-serif;
  color: var(--laiton);
  font-size: 1.3rem;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: color-mix(in srgb, var(--encre) 78%, var(--zinc)); font-size: 0.97rem; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--nuit); color: var(--craie); text-align: center; padding: 90px 0; }
.cta-final h2 { max-width: 22ch; margin: 16px auto 18px; }
.cta-final p { max-width: 50ch; margin: 0 auto 30px; color: var(--zinc); }
.cta-final .eyebrow { color: var(--laiton-clair); }
.cta-final .eyebrow::before { background: var(--laiton-clair); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--encre) 70%, var(--zinc)); }
.field input, .field select, .field textarea {
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  color: var(--encre);
  padding: 13px 15px;
  background: var(--craie);
  border: 1px solid var(--filet);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--laiton); }
.field textarea { resize: vertical; min-height: 130px; }

.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-aside { border-left: 1px solid var(--filet); padding-left: 36px; display: flex; flex-direction: column; gap: 26px; }
@media (max-width: 860px) { .contact-aside { border-left: none; padding-left: 0; } }
.contact-aside h3 { font-size: 1.05rem; }
.contact-aside p { font-size: 0.95rem; color: color-mix(in srgb, var(--encre) 78%, var(--zinc)); }
.contact-aside a { color: var(--laiton); text-decoration: none; }
.contact-aside a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { background: var(--nuit); color: var(--zinc); padding: 46px 0; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .logo { color: var(--craie); font-size: 1.05rem; }
footer .foot-links { display: flex; gap: 26px; }
footer .foot-links a { text-decoration: none; color: var(--zinc); font-size: 0.9rem; }
footer .foot-links a:hover { color: var(--craie); }
footer .mention { font-size: 0.82rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
