/* =========================================================
   Ménage Bergerac : design system
   Palette inspirée de meridiane.fr (chaud, monochrome, accent bleu)
   ========================================================= */

:root {
  --background: 40 20% 98.5%;
  --foreground: 24 10% 10%;

  --card: 40 16% 97.5%;
  --card-foreground: 24 10% 10%;

  --primary: 217.2 91.2% 59.8%;      /* bleu #2563EB */
  --primary-foreground: 0 0% 100%;

  --muted: 40 12% 94%;
  --muted-foreground: 24 5% 46%;

  --accent-amber: 38 92% 60%;         /* amber-400 */

  --border: 36 10% 90%;
  --radius: 0.6rem;

  --zinc-900: 24 9% 12%;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
}

.muted { color: hsl(var(--muted-foreground)); }

.underline-accent {
  position: relative;
  display: inline-block;
}
.underline-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 4px;
  border-radius: 999px;
  background: hsl(var(--accent-amber) / 0.7);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: hsl(var(--zinc-900));
  color: #fff;
  box-shadow: 0 6px 18px hsl(var(--zinc-900) / 0.18);
}
.btn-primary:hover { background: #3f3a35; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.btn-link {
  background: none;
  padding: 0.5rem 0;
  color: hsl(var(--muted-foreground));
}
.btn-link:hover { color: hsl(var(--foreground)); text-decoration: underline; }

/* ── Header / nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand span { color: hsl(var(--primary)); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: hsl(var(--primary)); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.5rem; left: 0; right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1rem;
  }
}

/* ── Hero ──
   Tall (viewport-height) so the background photo has real scroll room to
   be seen before the next (opaque) section arrives, instead of being cut
   off right where the card's content ends. ── */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  text-align: center;
}
.hero .container { position: relative; z-index: 1; }

/* ── Hero background: mesh gradient (no photo, crisp at any resolution) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.hero-bg .blob-blue {
  width: 48rem; height: 48rem;
  top: -16rem; right: -12rem;
  background: radial-gradient(circle at 30% 30%, hsl(217.2 91.2% 60% / 0.75), hsl(217.2 91.2% 59.8% / 0) 70%);
  animation: float-a 22s ease-in-out infinite;
}
.hero-bg .blob-amber {
  width: 30rem; height: 30rem;
  top: 2rem; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, hsl(38 92% 68% / 0.8), hsl(38 92% 60% / 0) 70%);
  animation: float-b 26s ease-in-out infinite;
}
.hero-bg .blob-soft {
  width: 32rem; height: 32rem;
  top: 6rem; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, hsl(0 0% 100% / 0.85), hsl(0 0% 100% / 0) 70%);
  animation: float-c 30s ease-in-out infinite;
}

/* ── Stylized mountain silhouette (Cluely-style abstract terrain) ── */
.hero-bg .mountains {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -2px;
  width: 104%;
  height: 62%;
  display: block;
}
.hero-bg .mountains .layer-back { opacity: 0.5; }
.hero-bg .mountains .layer-mid { opacity: 0.8; }
.hero-bg .mountains .layer-front { opacity: 1; }

/* ── Photo layer (real mountain landscape, meridiane-style parallax) ── */
.hero-bg .photo {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.6;
  filter: saturate(1.05) brightness(1.02);
  will-change: transform;
}
.hero-bg .overlay {
  position: absolute;
  inset: 0;
  /* Strong scrim near the top (nav + eyebrow legibility), progressively
     lighter toward the bottom so the photo has room to breathe — same
     logic as meridiane's light-mode overlay. */
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0.9) 0%,
    hsl(var(--background) / 0.6) 32%,
    hsl(var(--background) / 0.28) 62%,
    hsl(var(--background) / 0.18) 100%
  );
}

/* ── Glass card behind the hero copy, keeps text crisp over a busy photo ── */
.hero-card {
  display: inline-block;
  background: hsl(var(--background) / 0.66);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid hsl(0 0% 100% / 0.5);
  border-radius: 1.75rem;
  padding: 3rem 3.5rem;
  box-shadow: 0 30px 80px -30px rgba(24, 20, 15, 0.25);
}
@media (max-width: 640px) {
  .hero-card { padding: 2.25rem 1.5rem; border-radius: 1.25rem; }
}

.hero-bg .grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.hero-bg .fade-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 84%, hsl(var(--background)) 100%);
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2rem, 2rem) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2rem, -1.5rem) scale(1.05); }
}
@keyframes float-c {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, 1rem) scale(1.04); }
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 18ch;
  margin: 1.25rem auto 1.25rem;
}
.hero p.lead {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: hsl(var(--muted-foreground));
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}
.trust-strip .item {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Sections ── */
section { padding: 4.5rem 0; }
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-top: 0.75rem; }
.section-head p { color: hsl(var(--muted-foreground)); margin-top: 1rem; font-size: 1.05rem; }

.alt-bg { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }

/* ── Cards / grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.4);
  padding: 2rem;
}
.card .icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: 0.6rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 0; }

/* ── Pricing ── */
.price-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.4);
  padding: 2.5rem;
  text-align: center;
}
.price-card .amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
}
.price-card .amount small { font-size: 1rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.price-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--foreground));
  font-size: 0.92rem;
  text-align: left;
}

/* ── Blog ── */
.blog-card {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
  background: hsl(var(--card));
  display: flex;
  flex-direction: column;
}
.blog-card .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: hsl(var(--primary));
}
.blog-card .body { padding: 1.75rem; }
.blog-card h3 { font-size: 1.1rem; margin: 0.6rem 0 0.6rem; }
.blog-card p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; }
.blog-card .read-more { margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: hsl(var(--foreground)); }

article.post {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
article.post h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1rem 0 1.5rem; }
article.post h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
article.post p { margin: 0 0 1.1rem; color: hsl(24 10% 20%); }
article.post ul { margin: 0 0 1.1rem; padding-left: 1.25rem; color: hsl(24 10% 20%); }
article.post li { margin-bottom: 0.4rem; }
article.post .meta { color: hsl(var(--muted-foreground)); font-size: 0.85rem; margin-bottom: 0.5rem; }

/* ── Comment ça marche (steps) ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding-top: 0.5rem;
}
.step .num {
  counter-increment: step;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: hsl(var(--zinc-900));
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: hsl(var(--muted-foreground)); font-size: 0.92rem; margin: 0; }

/* ── FAQ (native accordion, no JS) ── */
.faq-list { max-width: 46rem; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0.9rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Form select fields (match input styling) ── */
form.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-family: inherit;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}
form.contact-form select:focus { outline: none; border-color: hsl(var(--primary)); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Payment methods row ── */
.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.payment-methods .tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.contact-info .row .icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.6rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-family: inherit;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}
form.contact-form label { font-size: 0.85rem; font-weight: 600; margin-bottom: -0.4rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0;
  font-size: 0.88rem;
  color: hsl(var(--muted-foreground));
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: hsl(var(--foreground)); }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-bg .blob { animation: none !important; }
}
