/* =====================================================
   Mederic Chauffage & Climatisation — Metz
   Palette : porcelaine / ardoise / cuivre
   Type : Fraunces (display serif) · Figtree (body)
   ===================================================== */

:root {
  --ink: #21272C;
  --slate: #39434B;
  --porcelain: #F7F5F2;
  --white: #FFFFFF;
  --copper: #B0683B;
  --copper-deep: #8F5027;
  --steel: #5B7285;
  --line: #E2DDD6;
  --muted: #6B6F72;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --maxw: 1140px;
  --pad: clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h1 em, h2 em { font-style: italic; color: var(--copper); }
h3 { font-size: 1.2rem; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper-deep); font-weight: 700; margin-bottom: 14px;
}
.eyebrow-light { color: #D9A275; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  border: none; cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-deep); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: rgba(33,39,44,.06); }

.btn-call {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: .9rem; padding: 9px 16px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.btn-call:hover { border-color: var(--copper); color: var(--copper-deep); }

.btn-block { width: 100%; }
.btn-tel { font-size: 1.15rem; padding: 15px 30px; font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--pad);
  background: rgba(247,245,242,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-m {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--porcelain);
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.brand-sub { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.topnav { display: flex; gap: 24px; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); }
.topnav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) var(--pad) 0;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero-text { padding-bottom: clamp(44px, 6vw, 80px); }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; line-height: 1.02;
}
.hero-sub { margin-top: 22px; max-width: 46ch; color: var(--slate); font-size: 1.06rem; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-proof {
  display: flex; align-items: center; gap: 16px; margin-top: 36px;
  padding-top: 24px; border-top: 1px solid var(--line); max-width: 380px;
}
.proof-score {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--copper);
  line-height: 1;
}
.proof-sur { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.stars { color: #C99B3F; letter-spacing: 3px; font-size: .95rem; }
.proof-detail p { font-size: .88rem; color: var(--muted); }

.hero-photo { position: relative; margin: 0; }
.hero-photo img {
  width: 100%; height: clamp(380px, 44vw, 560px); object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 30px 70px rgba(33,39,44,.18);
}
.hero-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  background: rgba(33,39,44,.85); backdrop-filter: blur(6px);
  color: #fff; padding: 12px 16px; border-radius: var(--radius);
  font-size: .85rem; display: flex; flex-direction: column; gap: 2px;
}
.cap-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #D9A275; font-weight: 700; }

/* ---------- Trustbar ---------- */
.trustbar { background: var(--ink); color: #fff; }
.trustbar ul {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none;
}
.trustbar li { display: flex; flex-direction: column; gap: 2px; }
.trustbar strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: #D9A275; }
.trustbar span { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) var(--pad); }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(30px, 5vw, 52px); }
.section-lede { margin-top: 14px; color: var(--muted); max-width: 58ch; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(33,39,44,.08); }
.service-card > p { font-size: .93rem; color: var(--muted); flex-grow: 1; }
.service-num {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-deep); font-weight: 700;
}
.service-brands { font-size: .8rem; color: var(--copper-deep); font-weight: 600; }
.service-star { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-star h3 { color: #fff; }
.service-star > p { color: rgba(255,255,255,.72); }
.service-star .service-num { color: #D9A275; }
.service-star .service-brands { color: #D9A275; }

/* ---------- La maison ---------- */
.maison { background: linear-gradient(160deg, #21272C, #323C44); color: #fff; }
.maison-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.maison h2 { color: #fff; }
.maison-text > p { margin-top: 18px; color: rgba(255,255,255,.78); max-width: 50ch; }
.maison-text strong { color: #fff; }
.maison-quote {
  margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--copper);
}
.maison-quote p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: #EBD9C9; }
.maison-quote cite { display: block; margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.5); font-style: normal; }

/* Frise — signature */
.frise {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
}
.frise-title { color: #D9A275; font-size: 1.1rem; margin-bottom: 24px; }
.frise-list { list-style: none; display: flex; flex-direction: column; gap: 26px; }
.frise-list li { display: flex; gap: 18px; position: relative; padding-left: 28px; }
.frise-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--copper);
}
/* Segment de ligne reliant chaque pastille à la suivante (centres alignés à 10px) */
.frise-list li:not(:last-child)::after {
  content: ""; position: absolute; left: 9px; top: 26px; bottom: -32px;
  width: 2px; background: rgba(217,162,117,.35);
}
.frise-now::before { background: var(--copper) !important; }
.frise-year {
  font-family: var(--font-display); font-weight: 700; color: #D9A275;
  min-width: 86px; font-size: .95rem; padding-top: 2px;
}
.frise-list h4 { font-family: var(--font-body); font-weight: 700; font-size: .96rem; color: #fff; }
.frise-list p { font-size: .86rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* ---------- Aides ---------- */
.aides-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.aides-points { list-style: none; display: flex; flex-direction: column; }
.aides-points li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.aides-points li:first-child { padding-top: 4px; }
.aides-points h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.aides-points p { color: var(--muted); font-size: .94rem; max-width: 56ch; }

.simulateur {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 84px;
  box-shadow: 0 20px 50px rgba(33,39,44,.07);
}
.sim-title { font-size: 1.25rem; }
.sim-field label, .field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.sim-field select, .field select, .field input {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line);
  font-family: var(--font-body); font-size: .95rem; background: var(--white); color: var(--ink);
}
.sim-field select:focus, .field select:focus, .field input:focus { border-color: var(--copper); outline: none; }
.sim-result {
  background: var(--porcelain); border: 1px dashed var(--copper);
  border-radius: var(--radius); padding: 18px 20px; text-align: center;
}
.sim-result-label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; }
.sim-result-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); margin: 4px 0 2px; }
.sim-result-note { font-size: .82rem; color: var(--muted); }
.sim-disclaimer { font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* ---------- Réalisations ---------- */
.section-realisations { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 14px; }
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(33,39,44,.85));
  color: #fff; font-size: .88rem; font-weight: 500;
  display: flex; flex-direction: column; gap: 1px;
}
.gallery-item figcaption span {
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: #D9A275; font-weight: 700;
}

/* ---------- Avis ---------- */
.avis-note { color: var(--copper); }
.avis-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.avis-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.avis-card p { font-size: .95rem; color: var(--slate); }
.avis-featured { background: var(--ink); border-color: var(--ink); }
.avis-featured p { color: rgba(255,255,255,.85); font-family: var(--font-display); font-size: 1.05rem; font-style: italic; }
.avis-featured cite, .avis-featured footer span { color: #D9A275; }
.avis-card footer { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.avis-card cite { font-style: normal; font-weight: 700; font-size: .9rem; }
.avis-card footer span { font-size: .78rem; color: var(--muted); }
.avis-source { margin-top: 18px; font-size: .8rem; color: var(--muted); }

/* ---------- Zone ---------- */
.zone-wrap {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px);
  align-items: center; max-width: var(--maxw); margin: 0 auto;
}
.zone-villes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.zone-villes li {
  border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 6px 15px; font-size: .82rem; color: var(--slate);
}
.zone-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(33,39,44,.1); }
.zone-map iframe { width: 100%; height: 400px; border: none; display: block; }

/* ---------- Contact ---------- */
.section-contact { background: linear-gradient(160deg, #21272C, #323C44); color: #fff; }
.contact-wrap {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px);
  max-width: var(--maxw); margin: 0 auto; align-items: start;
}
.contact-text h2 { color: #fff; margin-bottom: 14px; }
.contact-text > p { color: rgba(255,255,255,.75); margin-bottom: 26px; max-width: 44ch; }
.contact-coords { font-style: normal; margin-top: 26px; }
.contact-coords p { color: rgba(255,255,255,.75); font-size: .94rem; }
.contact-coords strong { color: #fff; }

.devis-form {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.form-steps { display: flex; gap: 16px; margin-bottom: 22px; }
.step-dot {
  color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid transparent; font-weight: 600;
}
.step-dot.active { color: var(--copper-deep); border-color: var(--copper); }

.form-step { display: none; border: none; }
.form-step.active { display: block; }
.form-step legend { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 18px; }

.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.radio-cards label { position: relative; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 66px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: .88rem; line-height: 1.3; transition: all .15s ease;
}
.radio-cards input:checked + span { border-color: var(--copper); background: rgba(176,104,59,.07); color: var(--copper-deep); }
.radio-cards input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }

.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { color: var(--muted); font-weight: 400; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.form-privacy { font-size: .76rem; color: var(--muted); margin-top: 14px; }

.form-success { text-align: center; padding: 30px 10px; }
.success-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(176,104,59,.1); color: var(--copper-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--muted); margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--copper); font-size: 1.3rem; flex-shrink: 0; font-family: var(--font-body); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 12px; color: var(--muted); font-size: .93rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad) 32px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer .brand-name { color: #fff; font-size: 1.4rem; }
.footer-brand p { font-size: .88rem; margin-top: 10px; max-width: 32ch; }
.footer-label {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #D9A275; font-weight: 700; margin-bottom: 10px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-legal { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad) 28px; font-size: .76rem; color: rgba(255,255,255,.4); }

/* ---------- Mobile call ---------- */
.mobile-call {
  display: none;
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90;
  background: var(--copper); color: #fff;
  padding: 15px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 30px rgba(176,104,59,.4);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .services-grid, .avis-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-text { padding-bottom: 8px; }
  .hero-photo img { border-radius: var(--radius-lg); height: clamp(280px, 50vw, 420px); }
  .hero-photo { padding-bottom: 40px; }
  .hero-photo figcaption { bottom: 58px; }
  .maison-inner, .aides-wrap, .zone-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .simulateur { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .topnav { display: none; }
  .btn-call { margin-left: auto; font-size: .8rem; padding: 8px 12px; }
  .brand-sub { display: none; }
  .services-grid, .avis-grid, .radio-cards, .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .g-tall { grid-row: span 1; }
  .trustbar ul { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mobile-call { display: flex; }
  .footer { padding-bottom: 76px; }
  .hero-ctas .btn { width: 100%; }
  .zone-map iframe { height: 300px; }
  .frise-list li { flex-direction: column; gap: 4px; }
}
