/* ============================================================
   Mustafa Kafa — Plâtrerie / Plaquiste
   Maquette ATOM Studios — design system
   ============================================================ */

:root {
  /* Palette : sobre bâtiment + accent ocre (plâtre) */
  --slate: #344b5e;        /* bleu ardoise — couleur de marque */
  --slate-d: #273947;      /* ardoise foncée */
  --slate-l: #4d6a82;
  --ocre: #d8a657;         /* accent ocre/plâtre */
  --ocre-d: #c79141;
  --beige: #f6f2ec;        /* fond clair plâtre */
  --beige-2: #ece4d7;
  --paper: #ffffff;
  --ink: #20303b;          /* texte principal */
  --ink-soft: #54636d;     /* texte secondaire */
  --line: #e3ddd2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(39, 57, 71, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(39, 57, 71, 0.22);
  --shadow-lg: 0 30px 60px -24px rgba(39, 57, 71, 0.32);
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--beige);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .form-title {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7em 1.4em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-accent {
  background: var(--ocre);
  color: var(--slate-d);
  box-shadow: 0 8px 18px -8px rgba(216, 166, 87, 0.7);
}
.btn-accent:hover { background: var(--ocre-d); transform: translateY(-2px); box-shadow: 0 14px 24px -10px rgba(216, 166, 87, 0.8); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 0.95em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; padding: 0.95em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { display: flex; }
.brand-mark svg { filter: drop-shadow(0 4px 8px rgba(39,57,71,0.18)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: "Fraunces", serif; font-size: 1.18rem; color: var(--slate-d); }
.brand-text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--ocre); transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--ink); }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { color: var(--slate-d) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { width: 24px; height: 2.5px; background: var(--slate-d); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0 5.5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-svg { width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 80% 0%, rgba(216,166,87,0.22), transparent 55%);
}
.hero-inner { position: relative; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  margin-bottom: 1.6rem; backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ocre); box-shadow: 0 0 0 4px rgba(216,166,87,0.3); }
.hero-title {
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-title .accent { color: var(--ocre); }
.hero-sub { font-size: clamp(1.02rem, 2vw, 1.22rem); color: rgba(255,255,255,0.88); max-width: 580px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 2.4rem; }
.hero-mini li { display: flex; flex-direction: column; }
.hero-mini strong { font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--ocre); }
.hero-mini span { font-size: 0.8rem; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--beige); padding: 1.6rem 0; }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  margin-top: -3.5rem;
  position: relative;
}
.trust-item { display: flex; align-items: center; gap: 0.7rem; justify-content: center; color: var(--slate); font-weight: 600; font-size: 0.94rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--ocre-d); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ocre-d); margin-bottom: 0.7rem;
}
.eyebrow-light { color: var(--ocre); }
.section-head h2, .section .why-text h2, .zone-text h2, .contact-intro h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; }
.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.9rem; }

/* ---------- Services grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
  background: var(--ocre); transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--beige-2); }
.card:hover::before { transform: scaleY(1); }
.card-icon {
  display: inline-flex; width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-2) 100%);
  color: var(--slate); align-items: center; justify-content: center; margin-bottom: 1.2rem;
  transition: background 0.3s, color 0.3s;
}
.card-icon svg { width: 32px; height: 32px; }
.card:hover .card-icon { background: var(--slate); color: var(--ocre); }
.card h3 { font-size: 1.22rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Pourquoi nous ---------- */
.why { background: var(--slate-d); color: #fff; }
.why-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; }
.why-text h2 { color: #fff; }
.why .section-lead { color: rgba(255,255,255,0.78); }
.why-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.why-list li { display: flex; gap: 1rem; }
.why-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(216,166,87,0.16); color: var(--ocre);
  display: flex; align-items: center; justify-content: center;
}
.why-ico svg { width: 24px; height: 24px; }
.why-list strong { display: block; font-size: 1.08rem; margin-bottom: 0.2rem; }
.why-list p { color: rgba(255,255,255,0.74); font-size: 0.95rem; }
.why-visual { display: flex; justify-content: center; }
.why-art { width: 100%; max-width: 360px; filter: drop-shadow(var(--shadow-lg)); }

/* ---------- Stats ---------- */
.stats { background: var(--ocre); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0;
}
.stat { text-align: center; color: var(--slate-d); }
.stat-num { font-family: "Fraunces", serif; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; display: block; line-height: 1; }
.stat-num small { font-size: 1rem; font-weight: 600; margin-left: 0.15em; }
.stat-label { font-size: 0.9rem; font-weight: 500; color: rgba(39,57,71,0.82); }
.stat-label em { font-style: italic; opacity: 0.7; }

/* ---------- Zone d'intervention ---------- */
.zone { background: var(--beige); }
.zone-inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: 3rem; align-items: center; }
.zone-map { display: flex; justify-content: center; }
.map-art { width: 100%; max-width: 360px; filter: drop-shadow(var(--shadow-md)); }
.zone-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.zone-tags li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-size: 0.88rem; font-weight: 500; color: var(--slate);
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.contact-coords { list-style: none; margin-top: 2rem; display: grid; gap: 1.3rem; }
.contact-coords li { display: flex; gap: 1rem; align-items: flex-start; }
.cc-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--beige); color: var(--slate);
  display: flex; align-items: center; justify-content: center;
}
.cc-ico svg { width: 24px; height: 24px; }
.contact-coords strong { display: block; font-size: 0.98rem; }
.contact-coords span { color: var(--ink-soft); font-size: 0.94rem; }
.contact-coords .muted { font-style: italic; color: #97a0a7; }

/* Form */
.contact-form-wrap {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.form-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--slate-d); margin-bottom: 0.4rem; }
.field label span { color: var(--ocre-d); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.96rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7em 0.9em; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #aab2b8; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ocre);
  box-shadow: 0 0 0 3px rgba(216,166,87,0.22);
}
.field input.invalid, .field textarea.invalid { border-color: #c4564b; box-shadow: 0 0 0 3px rgba(196,86,75,0.16); }
.form-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.9rem; }
.form-success {
  display: flex; align-items: center; gap: 0.6rem; justify-content: center;
  margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm);
  background: #e7f3ec; color: #1f6342; font-size: 0.92rem; font-weight: 500;
  border: 1px solid #bfe0cd;
}
.form-success svg { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-d); color: rgba(255,255,255,0.8); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding: 3rem 0 2rem; }
.footer-brand .brand-text strong { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-text em { color: var(--ocre); }
.footer-addr { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-top: 0.6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-nav a { font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ocre); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-credit { color: rgba(255,255,255,0.45); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .why-inner, .zone-inner, .contact-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .why-visual, .zone-map { order: -1; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--beige); border-bottom: 1px solid var(--line);
    padding: 0.5rem 22px 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
  .burger { display: flex; }
  .field-row { grid-template-columns: 1fr; }
  .hero-mini { gap: 1.6rem; }
}

@media (max-width: 460px) {
  .trust-inner { grid-template-columns: 1fr; margin-top: -2.5rem; }
  .stats-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

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