/* Forage Bamako — style éditorial chaleureux (crème / rouge / jaune), mobile-first, léger */
:root {
  --creme: #fbf6ee;
  --creme-2: #f6efe3;
  --encre: #2b1d16;        /* brun très foncé */
  --encre-2: #6f6259;      /* brun-gris secondaire */
  --rouge: #d43425;
  --rouge-fonce: #b02417;
  --jaune: #f7c928;
  --jaune-clair: #fdeeb8;
  --bord: #e7ddd0;
  --blanc: #fffdf9;
  --vert-wa: #188038;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--encre);
  background: var(--creme);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--rouge); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.02rem; font-weight: 700; }
.conteneur { max-width: 1024px; margin: 0 auto; padding: 0 1.1rem; }

/* ---------- Barre supérieure ---------- */
.gtopbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid var(--bord);
}
.gtopbar .conteneur {
  display: flex; align-items: center; gap: .9rem;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: .4rem;
  font-size: 1.02rem; color: var(--encre); text-decoration: none;
  font-weight: 800; white-space: nowrap;
  background: var(--blanc); border: 1px solid var(--bord);
  border-radius: 100px; padding: .3rem .75rem .3rem .5rem;
}
.logo:hover { text-decoration: none; }
.logo .goutte { flex: none; }
.logo b { color: var(--rouge); font-weight: 800; }
.gnav { display: none; gap: .55rem; flex: 1; justify-content: center; }
.gnav a {
  display: inline-flex; align-items: center;
  background: var(--blanc);
  border: 1px solid var(--bord); border-radius: 100px;
  padding: .5rem 1.15rem; font-size: .92rem; color: var(--encre);
}
.gnav a:hover { border-color: var(--encre); text-decoration: none; }
.gnav a.actif { border-color: var(--encre); font-weight: 600; }
.btn-tel-entete {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--jaune); color: var(--encre);
  padding: .4rem .45rem .4rem .95rem; border-radius: 100px;
  font-weight: 800; font-size: .84rem;
  white-space: nowrap;
}
.btn-tel-entete:hover { text-decoration: none; filter: brightness(1.04); }
.btn-tel-entete::after {
  content: "↗"; display: flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--encre); color: var(--jaune); font-size: .95rem;
}

/* ---------- Héro éditorial ---------- */
.hero {
  padding: 3rem 0 1rem;
  display: grid; gap: 1.8rem; grid-template-columns: 1fr;
  align-items: center;
}
.hero-img {
  width: 100%; height: 300px; object-fit: cover; object-position: center 35%;
  border-radius: 18px; border: 1px solid var(--bord);
  background: var(--creme-2);
}
.kicker {
  color: var(--rouge); font-size: .95rem; font-weight: 600;
  margin: 0 0 .8rem;
}
.kicker::before { content: "/ "; }
.hero-titre {
  font-size: 2.6rem; margin: 0 0 1rem;
  max-width: 14ch;
}
.hero-sous {
  color: var(--encre-2); max-width: 46ch;
  font-size: .98rem; margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.hero-note { color: var(--encre-2); font-size: .88rem; margin: 1.2rem 0 0; }

/* ---------- Boutons & liens ---------- */
.btn-jaune {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--jaune); color: var(--encre);
  padding: .55rem .55rem .55rem 1.3rem; border-radius: 100px;
  font-weight: 800; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.btn-jaune:hover { text-decoration: none; filter: brightness(1.04); }
.btn-jaune::after {
  content: "↗"; display: flex; align-items: center; justify-content: center;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--encre); color: var(--jaune);
}
.btn-sombre {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--encre); color: var(--creme);
  padding: .7rem 1.5rem; border-radius: 100px;
  font-weight: 700; font-size: .95rem;
}
.btn-sombre:hover { text-decoration: none; background: #43302a; }
.lien-rouge {
  color: var(--rouge); font-weight: 700; font-size: .98rem;
}
.lien-rouge::after { content: " ›"; font-weight: 800; }
.lien-rouge:hover { color: var(--rouge-fonce); }
.btn-pilule {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--bord); background: var(--blanc); color: var(--encre);
  border-radius: 100px; padding: .55rem 1.2rem;
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.btn-pilule:hover { border-color: var(--encre); text-decoration: none; }
.btn-pilule.verte { color: var(--vert-wa); }

/* ---------- Atouts (liste éditoriale à séparateurs) ---------- */
.atouts {
  display: grid; gap: 0; grid-template-columns: 1fr;
  border-top: 1px solid var(--bord);
  margin-top: 2.5rem;
}
.atout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem .2rem;
  border-bottom: 1px solid var(--bord);
}
.atout .ico {
  flex: none; width: 2.7rem; height: 2.7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 10px;
}
.atout .ico svg { width: 26px; height: 26px; display: block; }
.atout h3 { margin: 0 0 .2rem; }
.atout p { margin: 0; color: var(--encre-2); font-size: .9rem; }

/* ---------- Sections & cartes ---------- */
.cartes { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--bord); margin-top: 1.4rem; }
.carte {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem .2rem; border-bottom: 1px solid var(--bord);
}
.carte .ico {
  flex: none; width: 2.7rem; height: 2.7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 10px;
}
.carte .ico svg { width: 26px; height: 26px; display: block; }
.carte h3 { margin: 0 0 .3rem; }
.carte p { margin: 0; color: var(--encre-2); font-size: .92rem; }

/* ---------- Étapes ---------- */
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.etapes li { counter-increment: etape; position: relative; padding-left: 3.1rem; color: var(--encre-2); font-size: .95rem; }
.etapes li::before {
  content: counter(etape);
  position: absolute; left: 0; top: .05rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--jaune); color: var(--encre); font-weight: 800;
  font-family: var(--serif); font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.etapes strong { color: var(--encre); font-weight: 700; }

/* ---------- Tableau (page prix) ---------- */
.tableau-scroll { overflow-x: auto; border: 1px solid var(--bord); border-radius: 14px; margin-top: 1.2rem; background: var(--blanc); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--bord); }
thead th { background: var(--creme-2); color: var(--encre); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { font-weight: 700; white-space: nowrap; }

/* ---------- Chips (zones) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.2rem 0 0; }
.chip {
  border: 1px solid var(--bord); border-radius: 100px;
  padding: .35rem 1rem; font-size: .88rem; color: var(--encre);
  background: var(--blanc);
}

/* ---------- FAQ ---------- */
.gfaq { border-top: 1px solid var(--bord); margin-top: 1rem; }
.gfaq details { border-bottom: 1px solid var(--bord); }
.gfaq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem .2rem; font-size: 1rem; font-weight: 600;
}
.gfaq summary::-webkit-details-marker { display: none; }
.gfaq summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--rouge); border-bottom: 2px solid var(--rouge);
  transform: rotate(45deg); transition: transform .18s;
  margin-right: .3rem;
}
.gfaq details[open] summary::after { transform: rotate(225deg); }
.gfaq details p { margin: 0 0 1.2rem; padding: 0 .2rem; color: var(--encre-2); font-size: .93rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--encre); color: var(--creme);
  border-radius: 18px;
  padding: 2.4rem 1.4rem; margin: 3.2rem 0 2rem;
  text-align: center;
}
.cta-final h2 { margin-top: 0; color: var(--blanc); }
.cta-final p { color: #cfc2b8; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-final .actions { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; justify-content: center; align-items: center; margin-top: 1.4rem; }
.cta-final .lien-rouge { color: var(--jaune); }
.cta-final .lien-rouge:hover { color: var(--jaune-clair); }

/* ---------- Pied de page ---------- */
.gfooter {
  border-top: 1px solid var(--bord);
  margin-top: 2.5rem; padding: 2rem 0 5.8rem;
  font-size: .85rem; color: var(--encre-2); text-align: center;
}
.gfooter .pilules { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1.3rem; }
.gfooter .legal { max-width: 760px; margin: 0 auto 1rem; }
.gfooter .liens { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: center; }
.gfooter .liens a { color: var(--encre); }

/* ---------- Barre d'appel fixe mobile ---------- */
.barre-appel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 1px; box-shadow: 0 -1px 8px rgba(43,29,22,.22);
}
.barre-appel a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem .5rem;
  font-weight: 800; font-size: .98rem;
}
.barre-appel a:hover { text-decoration: none; }
.barre-appel .tel { background: var(--rouge); color: #fff; }
.barre-appel .wa { background: var(--jaune); color: var(--encre); }

/* ---------- Icônes SVG ---------- */
.i-btn, .i-pill, .i-bar { width: 16px; height: 16px; flex: none; }
.i-chip { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.sprite { display: none; }

/* Les ancres s'arrêtent sous la barre collante au lieu de passer dessous */
section[id] { scroll-margin-top: 76px; }

/* ---------- Accessibilité ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rouge); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  body { font-size: 16.5px; }
  .gnav { display: flex; }
  .logo { font-size: 1.2rem; padding: .35rem .95rem .35rem .6rem; }
  .btn-tel-entete { font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; padding: .45rem .5rem .45rem 1.15rem; }
  .hero { padding: 4rem 0 1.5rem; }
  .hero--photo { grid-template-columns: 1fr 350px; gap: 3rem; }
  .hero-img { height: 460px; }
  .hero-titre { font-size: 3.6rem; }
  .hero-sous { font-size: 1.02rem; }
  h2 { font-size: 2.3rem; }
  .atouts { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .cartes { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .barre-appel { display: none; }
  .gfooter { padding-bottom: 2rem; }
}
