/* =========================================================
   Toilettage M&M — feuille de style
   Palette : gris charbon chaud, accents ambre
   ========================================================= */

:root {
  --bg: #232020;
  --bg-2: #2c2927;
  --bg-3: #37332f;
  --ink: #efe9e0;
  --ink-soft: #c9c2b7;
  --ink-faint: #8f8a80;
  --accent: #d9a648;
  --accent-soft: #e8c983;
  --hero-title: #f3ecdf;
  --nav-height: 74px;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #232020; }

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

a { color: var(--accent); text-decoration: none; }

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:active { transform: scale(.97); }

.btn-solid {
  background: var(--accent);
  color: #241f19;
  box-shadow: 0 6px 20px rgba(217, 166, 72, .28);
}

.btn-solid:hover { background: var(--accent-soft); transform: translateY(-2px); }

.btn-ghost {
  border: 1.5px solid var(--ink-faint);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-sm { padding: .55em 1.25em; font-size: .95rem; }

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(35, 32, 32, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239, 233, 224, .08);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img { height: 54px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; }

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  transition: color .15s ease;
}

.main-nav a:hover { color: var(--accent); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--ink);
  font-weight: 700;
}

.nav-phone .icon { color: var(--accent); }

/* Bouton ambre contour : texte lumineux, lisible sur fond sombre */
.btn-accent {
  background: rgba(217, 166, 72, .08);
  border: 1.5px solid var(--accent);
  color: var(--accent-soft);
}

.btn-accent:hover { background: rgba(217, 166, 72, .18); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 0 40px;
  overflow: hidden;
}

.hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  color: var(--hero-title);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(239, 233, 224, .18);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .9rem;
  color: var(--ink-soft);
}

.chip .icon { color: var(--accent); }

.note-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .95rem;
  color: var(--ink-soft);
}

.note-link .icon { color: var(--accent); }

.note-link:hover { color: var(--accent); }

/* ---------- Figures ---------- */

.hero-figure { position: relative; margin: 0; }

.arch {
  border-radius: 160px 160px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
}

.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--accent);
  padding: .3em 0;
}

.hero-phone .icon { width: .85em; height: .85em; }

/* ---------- Diviseur empreintes ---------- */

.paw-divider {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 54px 0 8px;
  color: var(--ink-faint);
  opacity: .5;
}

.paw-divider .icon { width: 20px; height: 20px; transform: rotate(-18deg); }

.paw-divider .icon.mid { width: 26px; height: 26px; color: var(--accent); opacity: .75; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }

.section.alt { background: var(--bg-2); }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-grid h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.22;
  color: var(--hero-title);
  margin-bottom: 20px;
}

.section-grid p { color: var(--ink-soft); }

.stack { position: relative; }

.stack .main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.stack .main img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galerie ---------- */

.gallery-head { text-align: center; margin-bottom: 44px; }

.gallery-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--hero-title);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.gallery-item {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Contact ---------- */

.section-contact {
  position: relative;
  background: var(--bg-3);
  padding-top: 120px;
}

.wave { position: absolute; top: -1px; left: 0; right: 0; line-height: 0; }

.wave svg { width: 100%; height: 70px; display: block; }

.contact-head { text-align: center; margin-bottom: 46px; }

.contact-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--hero-title);
  margin-bottom: 14px;
}

.rdv-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.rdv-note .icon { color: var(--accent); }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--accent);
}

.contact-phone:hover { color: var(--accent-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: rgba(239, 233, 224, .045);
  border: 1px solid rgba(239, 233, 224, .09);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--ink);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(239, 233, 224, .075);
  border-color: rgba(217, 166, 72, .5);
}

.card-icon .icon { width: 24px; height: 24px; color: var(--accent); }

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

.card-value { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

.card-hint {
  font-size: .82rem;
  color: var(--accent);
  margin-top: 2px;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: #1b1918;
  border-top: 1px solid rgba(239, 233, 224, .07);
  padding: 48px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand img { height: 46px; margin-bottom: 14px; }

.footer-brand p { color: var(--ink-faint); font-size: .92rem; }

.footer-credit p { color: var(--ink-faint); font-size: .92rem; }

.footer-credit a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

.footer-credit a:hover { color: var(--accent); }

/* ---------- Visionneuse ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 17, .93);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-figure { margin: 0; max-width: 100%; max-height: 100%; line-height: 0; }

.lb-figure img {
  max-height: calc(100vh - 96px);
  max-height: calc(100dvh - 96px);
  max-width: calc(100vw - 180px);
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lb-btn {
  background: rgba(239, 233, 224, .08);
  border: none;
  color: var(--ink);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s ease;
}

.lb-btn:hover { background: rgba(239, 233, 224, .16); }

.lb-btn .icon { width: 24px; height: 24px; }

.lb-close { position: absolute; top: 22px; right: 26px; }

.lb-prev { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); }

.lb-next { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-size: .95rem;
  letter-spacing: .06em;
}

.lb-enter-active, .lb-leave-active { transition: opacity .25s ease; }

.lb-enter-from, .lb-leave-to { opacity: 0; }

.lbimg-enter-active, .lbimg-leave-active { transition: opacity .18s ease; }

.lbimg-enter-from, .lbimg-leave-to { opacity: 0; }

/* ---------- Décor patounes ---------- */

.paw-decor {
  position: absolute;
  color: var(--ink-faint);
  opacity: .12;
  pointer-events: none;
}

.paw-1 { width: 110px; height: 110px; top: 16%; left: 3%; transform: rotate(-24deg); }

.paw-2 { width: 70px; height: 70px; bottom: 10%; left: 42%; transform: rotate(14deg); }

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img, .btn { transition: none; }
}

/* ---------- Adaptatif ---------- */

@media (max-width: 900px) {
  .hero-grid, .section-grid { grid-template-columns: 1fr; }

  .hero-grid { gap: 64px; }

  .section { padding: 64px 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(35, 32, 32, .97);
    border-bottom: 1px solid rgba(239, 233, 224, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .main-nav.open { max-height: 300px; }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px 28px;
    gap: 20px;
  }

  .nav-toggle { display: block; }

  .hero { padding-top: calc(var(--nav-height) + 44px); }

  .hero h1 { font-size: clamp(2.3rem, 9vw, 2.9rem); }

  .paw-divider { gap: 24px; padding: 40px 0 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .contact-grid { grid-template-columns: 1fr; }

  .section-contact { padding-top: 96px; }

  .wave svg { height: 44px; }

  .footer-grid { flex-direction: column; align-items: flex-start; }

  .lb-figure img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
  }

  .lb-prev { left: 8px; }

  .lb-next { right: 8px; }

  .lb-btn { width: 44px; height: 44px; }

  .lb-close { top: 14px; right: 14px; }

  .lb-count { bottom: 14px; }
}
