/* ============================================================
   Sapé - BASE partagée pour les itérations de design
   Tokens, reset, header, footer, boutons, motif, placeholders.
   La mise en page des SECTIONS vit dans var-a/b/c.css.
   ============================================================ */

:root {
  --bg: #FBF6EA;
  --bg-alt: #F4EBD7;
  --ink: #1D1D1B;
  --ink-70: rgba(29, 29, 27, 0.80);
  --ink-45: rgba(29, 29, 27, 0.45);
  --line: rgba(29, 29, 27, 0.13);
  --line-strong: rgba(29, 29, 27, 0.24);
  --orange: #DC5A30;
  --green: #0A6049;
  --rose: #F3AFC0;          /* accent de respiration */
  --cta: var(--orange);
  --cta-ink: #FBF6EA;
  --radius: 3px;
  --radius-lg: 5px;
  --pattern-opacity: 0.07;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --fs-body: clamp(1rem, 1.25vw, 1.15rem);
  --fs-sub: 1.45rem;
  --fs-label: 0.8rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
/* Titres orange devenus <p> décoratifs : on conserve le rendu d'un titre */
.display, .h2 { margin: 0; line-height: 1.04; text-wrap: balance; }
.display { font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 700; letter-spacing: -0.04em; color: var(--orange); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; color: var(--orange); }
.hero-em { color: inherit; font-style: normal; font-weight: inherit; }
.lead { font-size: var(--fs-body); line-height: 1.62; color: var(--ink-70); font-weight: 400; max-width: 46ch; }
.lead + .lead { margin-top: 1.1rem; }
.kicker-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1.02rem 1.7rem;
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, filter .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: #F4ECDC; }

.btn-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 6px;
  transition: gap 0.25s ease, border-color 0.25s ease, color .25s ease;
}
.btn-link:hover { gap: 0.95rem; color: var(--orange); border-color: var(--orange); }
.btn-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: transparent; padding-block: 0.7rem;
}
.brand img { height: 38px; width: auto; transition: height .35s ease; }
.site-header.scrolled .brand img { height: 32px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav a { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.01em; color: var(--ink-70); position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-label); font-weight: 600; color: var(--ink); }
.header-phone svg { width: 15px; height: 15px; color: var(--orange); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }
.burger svg { width: 26px; height: 26px; }

/* ---------- Pattern texture ---------- */
.pattern-bg {
  position: absolute; pointer-events: none;
  background-image: var(--pattern-url); background-size: cover; background-position: center;
  opacity: var(--pattern-opacity); mix-blend-mode: multiply; z-index: 0;
}

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(-45deg, transparent 0, transparent 11px, rgba(220, 90, 48, 0.10) 11px, rgba(220, 90, 48, 0.10) 12px);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label); font-family: "Montserrat", monospace; font-size: var(--fs-label);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45);
  background: var(--bg); padding: 6px 12px; border-radius: 2px; border: 1px solid var(--line);
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(70px, 10vw, 140px); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.bg-alt { background: var(--bg-alt); }

.reveal { opacity: 1; }

/* ============================================================
   STRUCTURE SKELETON (mise en page par défaut des sections)
   Les variations (var-a/b/c) restylent par-dessus.
   ============================================================ */

/* Hero */
.hero { position: relative; padding-top: clamp(150px, 20vh, 220px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero .pattern-bg { top: -8%; right: -6%; width: 58%; height: 120%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero p.lead { margin: 1.9rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4 / 5; }
.hero-media .tag { position: absolute; left: -14px; bottom: 28px; background: var(--ink); color: var(--bg); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; padding: 0.7rem 1.1rem; border-radius: var(--radius); z-index: 2; }

/* Key facts */
.keyfacts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.kf { padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.4rem, 3vw, 2.6rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; }
.kf:first-child { border-left: 0; }
.kf-n { font-family: var(--sans); font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--orange); }
.kf-n span { font-weight: 500; }
.kf-l { font-size: var(--fs-body); line-height: 1.45; color: var(--ink-70); max-width: 22ch; }

/* Histoire */
.histoire-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2.4rem, 5vw, 5.5rem); align-items: center; }
.histoire-media .ph { aspect-ratio: 3 / 4; }
.histoire-body .h2 { margin-bottom: 1.7rem; }
.histoire-body p { color: var(--ink-70); font-size: var(--fs-body); line-height: 1.72; margin: 0 0 1.3rem; }
.sign { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--orange); }
.sign small { display: block; font-family: var(--sans); font-style: normal; font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); margin-top: 6px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { position: relative; padding: clamp(1.8rem, 3vw, 2.8rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background 0.3s ease; min-height: 280px; display: flex; flex-direction: column; }
.service:hover { background: color-mix(in srgb, var(--orange) 6%, transparent); }
.service .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.service h3 { font-size: var(--fs-sub); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.service p { color: var(--ink-70); font-size: var(--fs-body); line-height: 1.6; margin: 0; }
.service .soon { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); padding: 4px 9px; border-radius: 100px; font-weight: 600; }
.service .arrow { margin-top: auto; padding-top: 1.4rem; opacity: 0; transform: translateX(-6px); transition: all .3s ease; color: var(--orange); }
.service:hover .arrow { opacity: 1; transform: translateX(0); }
.service .arrow svg { width: 18px; height: 18px; }

/* Vestiaire */
.vestiaire { overflow: hidden; }
.vestiaire .pattern-bg { inset: 0; width: 100%; height: 100%; }
.vestiaire-inner { position: relative; z-index: 1; }
.vest-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-bottom: 3rem; }
.vest-gallery .ph { aspect-ratio: 3 / 4; }
.vest-gallery .ph:nth-child(2) { margin-top: 2.2rem; }
.vest-gallery .ph:nth-child(4) { margin-top: 2.2rem; }

/* Témoignages */
.temo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.temo { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 2.6vw, 2.4rem); display: flex; flex-direction: column; }
.temo .quote-mark { font-family: var(--serif); font-size: 3.4rem; line-height: 0.5; color: var(--orange); height: 26px; }
.temo p { font-size: var(--fs-body); line-height: 1.62; color: var(--ink-70); margin: 1.4rem 0 1.8rem; flex: 1; }
.temo .who { font-weight: 600; font-size: var(--fs-body); }
.temo .role { color: var(--ink-45); font-size: var(--fs-label); margin-top: 2px; }
.stars { display: flex; gap: 3px; margin-bottom: 0.4rem; color: var(--orange); }
.stars svg { width: 15px; height: 15px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); }
.cta-band .pattern-bg { inset: 0; width: 100%; height: 100%; opacity: calc(var(--pattern-opacity) * 2.4); mix-blend-mode: screen; }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-inner .h2 { color: var(--orange); }
.cta-inner p { color: rgba(251,246,234,0.72); font-size: var(--fs-body); margin: 1.6rem auto 2.6rem; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta-band .btn-ghost { color: var(--bg); border-color: rgba(251,246,234,0.32); }
.cta-band .btn-ghost:hover { border-color: var(--bg); }

/* Skeleton responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .histoire-grid { grid-template-columns: 1fr; }
  .histoire-media { order: -1; }
  .histoire-media .ph { aspect-ratio: 16/10; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .vest-gallery { grid-template-columns: repeat(2, 1fr); }
  .temo-grid { grid-template-columns: 1fr; }
  .keyfacts-grid { grid-template-columns: 1fr; }
  .kf { border-left: 0; border-top: 1px solid var(--line); }
  .kf:first-child { border-top: 0; }
  .vest-gallery .ph:nth-child(n) { margin-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); padding-top: clamp(60px, 8vw, 100px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 40px; margin-bottom: 1.4rem; }
.footer-brand p { color: var(--ink-70); max-width: 34ch; font-size: var(--fs-body); line-height: 1.6; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: all .25s ease; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 1.3rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col li { color: var(--ink-70); font-size: var(--fs-body); transition: color .2s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.8rem; font-size: var(--fs-label); color: var(--ink-45); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  overflow-y: auto;
  transform: translateY(-100%); transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a { font-size: 1.8rem; font-weight: 400; padding: 0.7rem 0; border-bottom: 1px solid var(--line); letter-spacing: -0.02em; }
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .close { position: absolute; top: 1.3rem; right: var(--gutter); background: none; border: 0; cursor: pointer; color: var(--ink); }
.mobile-menu .close svg { width: 28px; height: 28px; }
.mobile-menu .mm-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--ink-70); }

@media (max-width: 980px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}
