/* ============================================================
   Le Barbier du Molard — démo one-pager
   Inspiré du starter Landing Craft v2 + patterns signature typo
   ============================================================ */

:root {
  --primary: #1c2430;
  --primary-d: #121820;
  --accent: #b3823f;
  --accent-d: #8f6630;
  --accent-soft: rgba(179, 130, 63, .10);
  --ink: #20242a;
  --ink-soft: #4a4f58;
  --muted: #8b8276;
  --bg: #faf7f2;
  --bg-soft: #f0eae0;
  --line: #e2dacc;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 60px rgba(28, 36, 48, .14);
  --shadow-sm: 0 8px 26px rgba(28, 36, 48, .08);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wordmark {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: inherit;
  color: var(--accent);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--maxw), 92%); margin-inline: auto; }

/* Eyebrow avec liseret coloré */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent);
}
.eyebrow.light { color: var(--bg-soft); }
.eyebrow.light::before { background: var(--accent); }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec-head p { color: var(--ink-soft); margin-top: 18px; font-size: 1.08rem; }

.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-primary { background: var(--primary); color: var(--bg-soft); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .96rem;
  padding: 15px 28px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px rgba(179,130,63,.28); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-d); transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* Top bar */
.topbar { background: var(--primary-d); color: #cfc9c2; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.topbar-inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 10px 0; }
.topbar-inner span { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.12); }
.topbar-inner span:last-child { border-right: none; }
.topbar-inner svg { width: 14px; height: 14px; color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.nav-logo .wordmark { font-size: 1.35rem; line-height: 1; color: var(--primary); }
.nav-logo .wordmark em { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .9rem; letter-spacing: .02em; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn-sm { padding: 11px 22px; font-size: .86rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 26px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* Hero plein cadre */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,24,32,.78) 0%, rgba(18,24,32,.42) 45%, rgba(18,24,32,.25) 100%);
}
.hero-inner { padding: 0 0 110px; width: min(var(--maxw), 92%); margin-inline: auto; }
.hero h1 {
  color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.6rem);
  max-width: 15ch; line-height: 1.02;
}
.hero h1 em { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e6e0d8;
  margin: 24px 0 36px; max-width: 50ch; font-weight: 300;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-signals { display: flex; gap: 18px; margin-top: 46px; flex-wrap: wrap; }
.hero-signals span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #e6e0d8;
}
.hero-signals span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* WOW gate — deux battants (injecté via JS) */
.wow-gate {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
}
.wow-gate .wing {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--primary);
  will-change: transform;
}
.wow-gate .wing-left { left: 0; border-right: 1px solid rgba(179,130,63,.35); }
.wow-gate .wing-right { right: 0; border-left: 1px solid rgba(179,130,63,.35); }

/* Bento services */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tile-feature { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile .ico {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 18px;
}
.tile .ico svg { width: 26px; height: 26px; color: var(--accent); }
.tile h3 { font-size: 1.35rem; margin-bottom: 10px; }
.tile p { color: var(--ink-soft); font-size: .98rem; }
.tile .meta {
  margin-top: auto; padding-top: 18px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.tile-photo { padding: 0; min-height: 260px; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.tile-photo .tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px; background: linear-gradient(0deg, rgba(18,24,32,.88) 0%, rgba(18,24,32,0) 100%);
  color: #fff;
}
.tile-photo .tile-caption h3 { color: #fff; font-size: 1.2rem; }
.tile-photo .tile-caption p { color: rgba(255,255,255,.78); font-size: .9rem; }

/* À propos split */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-text ul { list-style: none; margin: 24px 0 32px; display: grid; gap: 14px; }
.about-text li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.about-text li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.about-collage { position: relative; min-height: 520px; }
.about-collage .ph {
  position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.about-collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.about-collage .ph-a { width: 58%; top: 0; left: 0; aspect-ratio: 4/5; z-index: 1; }
.about-collage .ph-b { width: 50%; bottom: 0; right: 0; aspect-ratio: 3/4; z-index: 2; border: 6px solid var(--bg); }
.about-card {
  position: absolute; left: 44%; top: 50%; transform: translateY(-50%);
  background: var(--white); border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); z-index: 3;
}
.about-card b { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--primary); line-height: 1; }
.about-card span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* Preuve : citation + compteurs */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.proof-quote {
  border-left: 3px solid var(--accent); padding-left: 28px;
}
.proof-quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--primary); line-height: 1.3;
}
.proof-quote cite {
  display: block; margin-top: 18px; font-style: normal;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.proof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card b {
  display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--primary); line-height: 1;
}
.stat-card b span { color: var(--accent); }
.stat-card span { display: block; margin-top: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); transition: transform .25s; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 26px 24px; color: var(--ink-soft); font-size: .97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.form-card label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; background: var(--bg); color: var(--ink);
  transition: border-color .15s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: none; border-color: var(--accent); }
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card .field { margin-bottom: 18px; }
.form-success {
  display: none; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 26px; color: var(--primary); font-weight: 600;
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 14px; color: #fff; }
.contact-info p { color: rgba(255,255,255,.72); margin-bottom: 28px; }
.contact-block { margin-bottom: 24px; }
.contact-block h4 { color: var(--accent); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.contact-block a, .contact-block p { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.contact-block a:hover { color: var(--accent); }

/* Footer */
.footer { background: var(--primary-d); color: #b5afa7; padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .wordmark { color: #fff; font-size: 1.5rem; display: inline-block; margin-bottom: 14px; }
.footer .wordmark em { color: var(--accent); font-style: italic; }
.footer p { font-size: .94rem; line-height: 1.6; color: #9b958e; }
.footer h5 { color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { display: block; padding: 5px 0; font-size: .92rem; color: #b5afa7; transition: color .15s; }
.footer a:hover { color: var(--accent); }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); color: #fff; padding: 0; }
.footer .socials a:hover { border-color: var(--accent); color: var(--accent); }
.footer .socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 50px; padding-top: 22px; font-size: .82rem; color: #7d786f; }

/* Reveal au scroll — visible par défaut, animé seulement quand js-ready */
.reveal {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
html.js-ready .reveal { opacity: 0; transform: translateY(30px); }
html.js-ready .reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .section { padding: 76px 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-column: span 2; grid-row: span 1; }
  .tile-wide { grid-column: span 2; }
  .about-grid, .contact-grid, .proof-grid { grid-template-columns: 1fr; }
  .about-collage { min-height: 440px; }
  .about-card { left: auto; right: 6%; }
  .proof-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner span { border-right: none; padding: 4px 12px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    flex-direction: column; gap: 0; padding: 0 6%; max-height: 0; overflow: hidden;
    transition: max-height .35s; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { max-height: 420px; padding: 12px 6%; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta .btn:not(.burger) { display: none; }
  .burger { display: flex; }
  .hero h1 { max-width: 100%; }
  .hero-signals { gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile-feature, .tile-wide { grid-column: span 1; grid-row: span 1; }
  .tile-photo { min-height: 220px; }
  .about-collage { min-height: 380px; }
  .about-collage .ph-a { width: 64%; }
  .about-collage .ph-b { width: 56%; }
  .about-card { left: 6%; right: auto; top: auto; bottom: 14%; transform: none; }
  .proof-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card .row2 { grid-template-columns: 1fr; }
}
