/* ============================================================
   MARZENA — Cleaning Concierge
   Shared design system · Vert Impérial / Or Antique / Ivoire
   ============================================================ */


:root {
  /* Palette institutionnelle */
  --vert-imperial: #0E2A1C;
  --vert-profond:  #1A4430;
  --or-antique:    #B89A50;
  --or-label:      #7a6228;  /* PRD §2.1 C-01 — labels ivoire, WCAG AA ≥4.5:1 */
  --or-clair:      #D4B878;
  --ivoire:        #F5EDD9;
  --ivoire-soft:   #FBF6EA;
  --encre:         #2C2C2A;

  /* Tints / lines */
  --line-gold:     rgba(184,154,80,0.32);
  --line-gold-2:   rgba(184,154,80,0.55);
  --ivoire-dim:    rgba(245,237,217,0.62);
  --ivoire-faint:  rgba(245,237,217,0.40);
  --green-on-ivoire: #14361F;

  /* Active accent (tweakable) */
  --accent: var(--or-antique);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(22px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 140px);

  /* PRD §8 — Motion tokens */
  --ease-marzena:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-veil:     cubic-bezier(0.16, 1, 0.3,  1);
  --ease-soft:     cubic-bezier(0.4,  0, 0.2,  1);
  --dur-micro:     220ms;
  --dur-standard:  650ms;
  --dur-editorial: 1000ms;
  --stagger:       90ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--vert-imperial);
  color: var(--ivoire);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before, .eyebrow.flanked::after {
  content: "";
  width: clamp(24px, 4vw, 48px);
  height: 1px;
  background: var(--line-gold-2);
}
.eyebrow.flanked::after { display: inline-block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.06; }

.display {
  font-size: clamp(58px, 11vw, 150px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.h-section {
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0.005em;
  line-height: 1.04;
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--ivoire-dim);
  font-weight: 300;
}

.smallcaps {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.bg-green   { background: var(--vert-imperial); color: var(--ivoire); }
.bg-profond { background: var(--vert-profond);  color: var(--ivoire); }
.bg-encre   { background: var(--encre);         color: var(--ivoire); }
.bg-ivoire  { background: var(--ivoire);        color: var(--green-on-ivoire); }
.bg-ivoire .lead { color: rgba(20,54,31,0.72); }
.bg-ivoire .eyebrow { color: var(--or-label); }

/* ---------- Forms (shared) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--or-label); font-weight: 600;
}
.field input, .field select {
  font-family: var(--sans); font-size: 15px; color: var(--green-on-ivoire);
  background: transparent; border: 0; border-bottom: 1px solid rgba(20,54,31,0.28);
  padding: 10px 2px; outline: none; border-radius: 0;
  transition: border-color .3s ease;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input::placeholder { color: rgba(20,54,31,0.4); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.btn.full { grid-column: 1 / -1; justify-content: center; }
.note { font-size: 12px; color: rgba(20,54,31,0.5); font-weight: 300; }
form .note { grid-column: 1 / -1; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid var(--b);
  background: var(--b);
  color: var(--vert-imperial);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.btn:hover { background: transparent; color: var(--accent); transform: translateY(-2px); }
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ivoire);
  border-color: var(--line-gold-2);
}
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.btn-onlight {
  background: var(--vert-imperial);
  color: var(--ivoire);
  border-color: var(--vert-imperial);
}
.btn-onlight:hover { background: transparent; color: var(--vert-imperial); }

.link-gold {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--accent);
  font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-gold);
  transition: border-color .35s ease, gap .35s ease;
}
.link-gold:hover { border-color: var(--accent); gap: 0.9em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,42,28,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-gold);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px;
}
/* Header brandmark — SVG wordmark, subtitle CENTERED beneath it */
.brandmark { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 7px; }
.brandmark .logo-svg { display: block; height: 26px; width: auto; }
.brandmark .sub {
  font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; text-align: center;
}
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.nav a.navlink {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivoire-dim); font-weight: 500;
  transition: color .3s ease;
  position: relative;
}
.nav a.navlink::after {
  content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0;
  background: var(--accent); transition: width .3s ease;
}
.nav a.navlink:hover { color: var(--ivoire); }
.nav a.navlink:hover::after,
.nav a.navlink[aria-current="page"]::after { width: 100%; }
.nav a.navlink[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: 12px 22px; }
/* PRD §3.3 - Burger mobile — 3 traits Quiet Luxury */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  z-index: 50;
}
.burger-bar {
  display: block;
  height: 1.5px;
  background: var(--ivoire);
  border-radius: 0;
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
}
.bar-1 { width: 22px; }
.bar-2 { width: 16px; }
.bar-3 { width: 22px; }
/* État ouvert — transformation en X */
.nav-toggle[aria-expanded="true"] .bar-1 {
  transform: translateY(6.5px) rotate(45deg);
  width: 22px;
}
.nav-toggle[aria-expanded="true"] .bar-2 {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] .bar-3 {
  transform: translateY(-6.5px) rotate(-45deg);
  width: 22px;
}

/* PRD §3.1 C-05 — Navigation mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 86px 0 0 0;
  background: var(--vert-imperial);
  border-top: 1px solid var(--line-gold);
  z-index: 49;
  flex-direction: column;
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav .m-link {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivoire-dim);
  font-weight: 500;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-gold);
  transition: color .3s ease;
}
.mobile-nav .m-link:first-child { border-top: 1px solid var(--line-gold); }
.mobile-nav .m-link:hover,
.mobile-nav .m-link[aria-current="page"] { color: var(--accent); }
.mobile-nav .m-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--vert-imperial);
  font-weight: 500;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
  text-decoration: none;
}
.mobile-nav .m-cta:hover { background: transparent; color: var(--accent); }

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background-color: rgba(245,237,217,0.05);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(245,237,217,0.06) 0, rgba(245,237,217,0.06) 1px,
    transparent 1px, transparent 11px);
  border: 1px solid var(--line-gold);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph.on-ivoire {
  background-color: rgba(20,54,31,0.04);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(20,54,31,0.07) 0, rgba(20,54,31,0.07) 1px,
    transparent 1px, transparent 11px);
  border-color: rgba(20,54,31,0.18);
}
.ph .ph-tag {
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ivoire-faint);
  padding: 6px 12px;
  border: 1px solid var(--line-gold);
  background: rgba(14,42,28,0.55);
}
.ph.on-ivoire .ph-tag { color: rgba(20,54,31,0.5); border-color: rgba(20,54,31,0.2); background: rgba(245,237,217,0.6); }

/* PRD §2.4 - gold-frame — galerie institutionnelle */
.gold-frame {
  position: relative;
  display: inline-block;
}
/* Filet extérieur — or présence (55%) */
.gold-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid var(--line-gold-2);
  pointer-events: none;
  z-index: 1;
}
/* Filet intérieur — or subtil (25%) */
.gold-frame::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
  z-index: 1;
}

/* PRD §8 — Reveal base: visible by default — motion.css adds hidden state under html.js-motion */
.reveal { opacity: 1; }

/* PRD §2.1 M-01 — WCAG AA : or-clair sur fonds vert-profond */
.svc-feature .eyebrow,
.concierge-band .eyebrow,
.c-intro .eyebrow { color: var(--or-clair); }

/* ---------- Footer ---------- */
.site-footer { background: var(--vert-imperial); border-top: 1px solid var(--line-gold); }
.site-footer .wrap { padding-block: clamp(56px, 7vw, 92px) 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer-col h4 {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 20px;
}
.footer-col a, .footer-col p {
  display: block; color: var(--ivoire-dim); font-size: 14px; font-weight: 300;
  margin: 0 0 11px; transition: color .3s ease;
}
.footer-col a:hover { color: var(--ivoire); }
.footer-brand .name { font-family: var(--serif); font-size: 30px; letter-spacing: 0.14em; color: var(--ivoire); margin-bottom: 8px; }
/* Footer brandmark */
.footer-brand .logo-svg { display: block; height: 34px; width: auto; margin-bottom: 20px; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ivoire-dim);
  line-height: 1.5;
  margin: 0;
}
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid var(--line-gold);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12px; letter-spacing: 0.06em; color: var(--ivoire-dim);
}
.footer-bottom .seo-note { font-size: 11px; color: rgba(245,237,217,0.28); }

/* SEO sitemap links — present for crawlers, visually muted/collapsed */
.seo-sitemap {
  border-top: 1px solid var(--line-gold);
  margin-top: 30px; padding-top: 22px;
}
.seo-sitemap summary {
  cursor: pointer; list-style: none;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,237,217,0.3); font-weight: 500;
}
.seo-sitemap summary::-webkit-details-marker { display:none; }
.seo-sitemap .links {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.seo-sitemap .links a { font-size: 11px; color: rgba(245,237,217,0.32); font-weight: 300; }
.seo-sitemap .links a:hover { color: var(--ivoire-dim); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.stack-sm > * + * { margin-top: 16px; }
.divider-gold { width: 56px; height: 1px; background: var(--accent); border: 0; margin: 28px 0; }
.center .divider-gold { margin-inline: auto; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { height: 72px; }
  .nav { gap: 18px; }
  .nav .navlink { display: none; }
  .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .brandmark .logo-svg { height: 20px; width: auto; }
  .mobile-nav { inset: 72px 0 0 0; }
}

@media (max-width: 560px) {
  /* PRD §3.1 M-03 — footer responsive mobile */
  .footer-grid { grid-template-columns: 1fr; }
}
