/*
Theme Name: Maison Claire
Description: Site vitrine aide ménagère / entretien domicile — design clair professionnel. Démo portfolio.
Version: 1.0.0
Author: Boman Jarod
Text Domain: maison-claire
*/

:root {
  --bg: #f5f3ee;
  --white: #fffcf7;
  --ink: #243028;
  --muted: #5f6d64;
  --leaf: #4d6b57;
  --leaf-dark: #355041;
  --sand: #e7e0d4;
  --line: rgba(36, 48, 40, 0.1);
  --shadow: 0 14px 36px rgba(36, 48, 40, 0.08);
  --font: "Jost", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-top {
  background: var(--leaf-dark); color: rgba(255,252,247,.9); font-size: .74rem; letter-spacing: .04em;
}
.header-top-inner { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; flex-wrap: wrap; }
.header-main-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; min-height: 78px;
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 2px; background: var(--leaf); color: #fff;
  display: grid; place-items: center;
}
.logo-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; display: block; }
.logo-tag { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }
.main-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem; }
.main-nav a {
  display: block; padding: .55rem .75rem; font-size: .84rem; font-weight: 500; color: var(--muted);
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--leaf-dark); border-bottom-color: var(--leaf); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.2rem; border-radius: 2px; font-size: .84rem; font-weight: 500;
  letter-spacing: .04em; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--leaf-dark); color: #fff; }
.btn-primary:hover { background: var(--leaf); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.menu-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.hero { position: relative; min-height: min(70vh, 620px); display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(36,48,40,.8) 0%, rgba(36,48,40,.4) 52%, rgba(36,48,40,.18) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 4rem 0 3rem; color: #fffcf7; }
.kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #c9d8ce; margin-bottom: .85rem; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08; max-width: 15ch; margin-bottom: .9rem;
}
.hero h1 em { font-style: italic; color: #dce8e0; }
.hero-lead { max-width: 42ch; color: rgba(255,252,247,.86); margin-bottom: 1.5rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.section { padding: 4rem 0; }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; }
.section-sub { color: var(--muted); margin-top: .4rem; max-width: 48ch; }
.section-head { margin-bottom: 1.75rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.4rem;
  transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 2px; background: rgba(77,107,87,.1);
  color: var(--leaf-dark); display: grid; place-items: center; margin-bottom: .9rem;
}
.card h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.split-media { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; min-height: 300px; background: var(--sand); }
.split-media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.5rem;
}
.price-card h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .35rem; }
.price-card .amount { font-family: var(--serif); font-size: 2rem; color: var(--leaf-dark); margin: .5rem 0; }
.price-card p { color: var(--muted); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.4rem; }
.panel h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .7rem; }
.panel p { color: var(--muted); margin-bottom: .35rem; }
.map-wrap { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-open { display: inline-block; margin-top: .5rem; color: var(--leaf-dark); font-weight: 500; font-size: .88rem; }

.site-footer { background: #243028; color: rgba(255,252,247,.78); padding: 3rem 0 1.4rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.75rem; }
.site-footer .logo-name { color: #fffcf7; }
.site-footer .logo-tag { color: rgba(255,252,247,.55); }
.footer-col h4 { font-family: var(--serif); color: #c9d8ce; margin-bottom: .6rem; font-size: 1.15rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,252,247,.7); font-size: .9rem; margin-bottom: .35rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .8rem;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: rgba(36,48,40,.35);
  opacity: 0; visibility: hidden; pointer-events: none; transition: .25s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(320px, 88vw);
  background: var(--bg); padding: 1.2rem; overflow: auto; display: flex; flex-direction: column; gap: .25rem;
}
.mobile-menu a { display: block; padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-close {
  align-self: flex-end; width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; margin-bottom: .5rem;
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-main-inner { grid-template-columns: 1fr auto; }
  .cards, .pricing, .contact-grid, .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) { .menu-toggle { display: none !important; } }
