/* =========================================================
   Les Balades de David — feuille de style
   Palette nature, 100% statique, sans dépendance externe.
   Objectif : tout ramener vers la page Facebook (@byDavidRigo).
   ========================================================= */

:root {
  --forest:      #2f5d3a;
  --forest-dark: #234a2d;
  --moss:        #6a8f4f;
  --sun:         #e0a43b;
  --sky:         #4a7ba6;
  --bark:        #3b3227;
  --cream:       #f7f4ec;
  --paper:       #fffdf8;
  --ink:         #2a2a24;
  --muted:       #6b6a60;
  --line:        #e4ddcd;

  --fb:          #1877f2;
  --fb-dark:     #0e5fd8;

  --radius:      16px;
  --shadow:      0 10px 30px rgba(35, 74, 45, .12);
  --shadow-sm:   0 4px 14px rgba(35, 74, 45, .10);
  --wrap:        1120px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--forest-dark); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: .6em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .85em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-fb {
  background: var(--fb);
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 119, 242, .35);
}
.btn-fb:hover { background: var(--fb-dark); }

.btn-outline {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }

.btn-wa {
  background: #25d366;
  color: #073;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-wa:hover { background: #1eb858; color: #062; }

.btn-lg { padding: 1.05em 2em; font-size: 1.12rem; }

.fb-icon { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--forest-dark);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand .mark { font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a.link {
  text-decoration: none;
  color: var(--bark);
  font-weight: 600;
  font-size: .98rem;
}
.nav a.link:hover { color: var(--forest); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav .link { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3.5rem, 9vw, 6rem);
  background:
    linear-gradient(rgba(35, 74, 45, .72), rgba(35, 74, 45, .82)),
    radial-gradient(circle at 30% 20%, #4d7a4f, #234a2d 70%);
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #cfe6c2; }
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #eef4ea;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note {
  margin-top: 1.4rem;
  font-size: .92rem;
  color: #cfe6c2;
}

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.alt { background: var(--paper); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card .ico { font-size: 2rem; margin-bottom: .5rem; }
.card h3 { color: var(--forest-dark); }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Info stats (rando pratique) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}
.stat {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--forest); }
.stat .lbl { color: var(--muted); font-size: .95rem; }

/* ---------- Facebook funnel band ---------- */
.fb-band {
  background: linear-gradient(135deg, var(--fb), #3b5998);
  color: #fff;
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  box-shadow: var(--shadow);
}
.fb-band h2 { color: #fff; }
.fb-band p { color: #eaf1ff; max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.fb-band .btn-outline { color: #fff; border-color: #fff; }
.fb-band .btn-outline:hover { background: #fff; color: var(--fb); }
.fb-band .btn-white { background: #fff; color: var(--fb); }
.fb-band .btn-white:hover { background: #eaf1ff; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; max-width: 760px; margin-inline: auto; }
.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
}
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.4rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
}
details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--forest-dark);
  padding: 1.1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.5rem; color: var(--moss); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details .answer { padding-bottom: 1.2rem; color: var(--muted); }
details .answer p { margin-bottom: .6em; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about .portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) { .about { grid-template-columns: 1fr; } }

/* ---------- Gallery (masonry via CSS columns) ---------- */
.gallery {
  columns: 3 260px;
  column-gap: 1rem;
}
.gallery figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery img {
  width: 100%;
  display: block;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Photo hero overlay helper ---------- */
.hero--photo {
  background-size: cover;
  background-position: center;
}

/* ---------- Ambiance split (image + texte) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split .pics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split .pics img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: #d7e5d0;
  padding: 3rem 0 2rem;
  text-align: center;
}
.site-footer .brand { color: #fff; justify-content: center; margin-bottom: 1rem; }
.site-footer a { color: #fff; }
.site-footer .social { display: flex; gap: 1rem; justify-content: center; margin: 1.2rem 0; }
.site-footer .fine { color: #9fbd97; font-size: .85rem; margin-top: 1.5rem; }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--forest-dark);
  color: #eaf1e6;
  position: relative;
}
.testimonials h2 { color: #fff; }
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}
.quote { text-align: center; }
.quote p { font-style: italic; font-size: 1.08rem; color: #dfeadb; }
.quote .who { font-weight: 800; letter-spacing: 1px; color: var(--sun); margin-top: .6rem; }
.quote .mark { font-size: 2.4rem; color: var(--sky); line-height: 1; }
@media (max-width: 700px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Services intro list ---------- */
.svc-intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.svc-intro p { color: var(--muted); font-size: 1.08rem; }
.svc-intro hr { border: 0; border-top: 1px solid var(--line); width: 90px; margin: 1.4rem auto; }

/* ---------- Blog teasers ---------- */
.tag {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .25em .7em;
  border-radius: 6px;
  margin-bottom: .6rem;
}
.card .meta { color: var(--muted); font-size: .85rem; margin: .2rem 0 .6rem; }
.card .thumb { border-radius: 10px; overflow: hidden; margin: -1.6rem -1.6rem 1rem; aspect-ratio: 16/10; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Prose (Mon histoire) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose p { font-size: 1.12rem; color: var(--ink); margin-bottom: 1.2em; }
.prose .lead-first::first-letter { }
.signature { font-weight: 800; color: var(--forest-dark); font-size: 1.15rem; margin-top: 1.5rem; }
