/* ============================================================
   Massage naturiste Montpellier — feuille de style partagée
   Ambiance : chaleureuse, naturelle, artisanale et accessible
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Work+Sans:wght@400;500&display=swap');

:root {
  --bg: #f4eee3;          /* Beige clair chaleureux */
  --bg-alt: #e8dfd0;      /* Beige un peu plus soutenu pour les sections */
  --bg-card: #fcf9f4;     /* Ton crème doux pour les cartes */
  --text: #2c2218;        /* Brun très foncé (plus doux que le noir) */
  --text-muted: #635343;  /* Brun moyen lisible */
  --accent: #8c531b;      /* Terre de sienne / terre cuite */
  --accent-soft: #c4a175; /* Ocre doux */
  --line: #d8caba;        /* Ligne discrète et naturelle */
  --radius: 6px;          /* Arrondis légèrement plus doux */
  --maxw: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; color: var(--accent); }

p { margin: 0 0 1.1em; color: var(--text); }
p.lead { color: var(--text-muted); font-size: 1.1rem; }

/* Liens traditionnels soulignés */
a { color: var(--accent); text-decoration: underline; }
a:hover, a:focus-visible { text-decoration: none; color: #59310d; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
header.site {
  border-bottom: 2px solid var(--line);
  background: var(--bg-alt);
}

.nav-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text);
}
.brand strong { color: var(--accent); font-weight: 600; }

nav.primary ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.primary a {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}
nav.primary a[aria-current="page"],
nav.primary a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 48px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

/* ---------- Image d'arrière-plan estompable ---------- */
.bg-image-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bg-image-container .container {
  position: relative;
  z-index: 2;
}

.bg-image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('../images/Massage_naturiste_integral_homme_finition_Montpellier.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
}

/* ---------- Sections ---------- */
section { padding: 48px 0; }
section.alt { background: var(--bg-alt); }
.divider {
  width: 60px;
  height: 2px;
  background: var(--accent-soft);
  margin: 8px 0 24px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

/* ---------- FAQ ---------- */
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details.faq-item summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: bold;
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { color: var(--text-muted); margin-top: 10px; }

/* ---------- Avis ---------- */
blockquote.review {
  border-left: 3px solid var(--accent);
  margin: 0 0 20px;
  padding: 6px 0 6px 18px;
  color: var(--text-muted);
  font-style: italic;
  background: rgba(232, 223, 208, 0.4);
}

/* ---------- CTA ---------- */
.cta-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
}
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 24px;
  background: var(--accent);
  color: #ffffff !important;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
  background: #59310d;
  color: #ffffff !important;
  text-decoration: none;
}

/* ---------- Footer ---------- */
footer.site {
  text-align: center;
  border-top: 2px solid var(--line);
  background: var(--bg-alt);
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer.site a { color: var(--text-muted); text-decoration: underline; }
footer.site a:hover { color: var(--accent); }

/* ---------- Barre flottante mobile ---------- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
  z-index: 1000;
}

.btn-sticky {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
}

.btn-sticky.sms {
  background-color: var(--accent); /* Corrigé : utilise la variable --accent */
}

.btn-sticky.tel {
  background-color: #276749;
}

/* ---------- Responsive & Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
}

/* Écrans Mobiles (< 768px) */
@media (max-width: 767px) {
  footer.site {
    padding-bottom: 80px !important; /* Marge de sécurité pour la barre flottante */
  }

  .desktop-only-buttons {
    display: none !important; /* Masque les boutons statiques du footer sur mobile */
  }
}

/* Ordinateurs / Tablettes (>= 768px) */
@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none; /* Masque la barre flottante sur grand écran */
  }
}
