/* ==========================================================================
   Murfy - Reconditionné livré à domicile (paid-social LP)
   Brand tokens extracted from murfy.fr production CSS
   (cms-murfy.shared.css). Light theme, mirror typology.
   ========================================================================== */

:root {
  /* Primary brand green scale (from murfy.fr) */
  --green-900: #073331; /* darkest teal-green */
  --green-800: #0b4744; /* primary brand green (headings, buttons) */
  --green-700: #0d4743;
  --green-600: #0f5c58;
  --green-500: #005646;
  --green-mint: #a4e7db; /* light aqua accent */
  --green-tint: #e7f3f3; /* very light teal surface */

  /* Accents */
  --yellow: #ffd800;
  --yellow-soft: #ffd747;
  --pink: #f59bbb;
  --pink-soft: #ffdede;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #fafafa;
  --grey-100: #f3f3f3;
  --grey-200: #e2e2e2;
  --grey-300: #c8c8c8;
  --grey-500: #758696;
  --grey-600: #5d6c7b;
  --ink: #073331;

  /* Typography: GT Walsheim is Murfy's proprietary display face.
     Not web-licensed for this LP, so we fall back to a geometric
     system stack. Variable name mirrors Murfy for a 1:1 Webflow rebuild. */
  --font-primary: "GT Walsheim", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --section-pad-y: 72px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 8px 30px rgba(7, 51, 49, 0.08);
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-800);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.05rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: var(--section-pad-y) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-600);
  background: var(--green-tint);
  border-radius: 999px;
  padding: .4rem .9rem;
  margin-bottom: 1rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 54px;
  padding: 0 1.7rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.button--primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 71, 68, 0.28);
}
.button--primary:hover { background: var(--green-900); transform: translateY(-1px); }
.button--primary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.button__arrow { transition: transform .15s ease; }
.button:hover .button__arrow { transform: translateX(3px); }

/* Top bar (single-goal: logo + one CTA, no browse nav) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-100);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--green-800); }
.brand__mark { width: 30px; height: 30px; color: var(--green-800); }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__word { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar .button { min-height: 42px; font-size: .95rem; padding: 0 1.15rem; }

/* Reassurance micro-bar */
.reassure-bar {
  background: var(--green-800);
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
  padding: .5rem 20px;
}
.reassure-bar strong { font-weight: 700; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-tint) 0%, var(--white) 100%); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 40px;
}
.hero__sub {
  font-size: 1.2rem;
  color: var(--grey-600);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.hero__rating { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--grey-600); }
.stars { color: #00b67a; font-size: 1.1rem; letter-spacing: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--white);
  border: 1.5px solid var(--green-mint);
  border-radius: 999px;
  padding: .35rem .8rem;
}
.chip svg { width: 16px; height: 16px; color: var(--green-600); }
.hero__visual { position: relative; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 6% 12%;
  background: radial-gradient(circle at 50% 45%, var(--green-mint) 0%, rgba(164,231,219,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero__product { position: relative; z-index: 1; margin: 0 auto; max-height: 460px; width: auto; }
.hero__badge {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 2%;
  background: var(--yellow);
  color: var(--green-900);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  padding: .6rem 1rem;
  box-shadow: var(--shadow-card);
  transform: rotate(6deg);
}

/* Stat strip */
.stats { background: var(--green-800); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat {
  background: var(--green-800);
  color: var(--white);
  padding: 28px 18px;
  text-align: center;
}
.stat__num { font-size: 1.7rem; font-weight: 700; color: var(--green-mint); }
.stat__label { font-size: .92rem; color: rgba(255,255,255,0.82); }

/* Steps / why reconditioned */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.step {
  background: var(--white);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.step__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-tint);
  border-radius: 12px;
  margin-bottom: 1rem;
  color: var(--green-700);
}
.step__icon svg { width: 26px; height: 26px; }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--grey-600); font-size: .98rem; margin: 0; }

/* Category grid (message-match to the carousel creative) */
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  background: var(--green-tint);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  color: var(--green-800);
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.cat img { width: 72px; height: 72px; object-fit: contain; }

/* Brand logo strip */
.brands { background: var(--off-white); }
.brands__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 1.6rem;
}
.brands__grid img { width: 100%; max-width: 88px; margin: 0 auto; filter: grayscale(1); opacity: .7; }
.section__lead { text-align: center; color: var(--grey-600); max-width: 60ch; margin: 0 auto; }
.section--center { text-align: center; }

/* FAQ */
.faq { max-width: 760px; margin: 2rem auto 0; }
.faq details {
  border-bottom: 1.5px solid var(--grey-100);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--green-800);
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--green-600);
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--grey-600); padding: 0 0 18px; margin: 0; }

/* Final CTA band */
.cta-band { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 46ch; margin: 0 auto 1.8rem; }
.cta-band .button--primary { background: var(--yellow); color: var(--green-900); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.cta-band .button--primary:hover { background: var(--yellow-soft); }
.cta-band__trust { margin-top: 1.2rem; font-size: .9rem; color: rgba(255,255,255,0.78); }

/* Footer */
.footer { background: var(--green-900); color: rgba(255,255,255,0.72); font-size: .92rem; padding: 48px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: var(--white); font-size: .95rem; margin: 0 0 .8rem; }
.footer a { color: rgba(255,255,255,0.72); text-decoration: none; display: block; padding: .25rem 0; }
.footer a:hover { color: var(--white); }
.footer__brand .brand__mark { color: var(--green-mint); }
.footer__brand .brand__word { color: var(--white); }
.footer__legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a { display: inline; }

/* ==========================================================================
   Responsive: mobile-first canonical experience (test at 375px)
   ========================================================================== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta-row { justify-content: center; }
  .chips { justify-content: center; }
  .hero__visual { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .brands__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  :root { --section-pad-y: 52px; }
  .topbar__inner { height: 58px; }
  .brand__word { font-size: 1.3rem; }
  .hero__product { max-height: 340px; }
  .hero__badge { top: 4%; right: 8px; font-size: .82rem; padding: .5rem .8rem; transform: rotate(3deg); }
  .button { width: 100%; }
  .topbar .button { width: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
}
