/* ============================================================
   Fauteuil-Allaitement.fr — feuille de style complémentaire
   Palette : sauge #8FA98F / #6E8A6E, lin #F7F3EC, terracotta #C98A6B
   ============================================================ */

:root {
  --fa-primary: #8FA98F;
  --fa-primary-dark: #6E8A6E;
  --fa-primary-light: #E4EDE4;
  --fa-secondary: #F7F3EC;
  --fa-accent: #C98A6B;
  --fa-accent-dark: #A96B4C;
  --fa-ink: #3A3532;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', system-ui, sans-serif;
  color: #3A3532;
  background-color: #FBF9F5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Fraunces', Georgia, serif; }

/* Correctif : Tailwind Play CDN ne réinitialise pas entièrement ul/ol */
ul { list-style: none; margin: 0; padding: 0; }
ol, .ol-decimal { list-style: decimal; }

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background-color: #A96B4C; color: #fff;
  border-radius: 9999px; padding: .75rem 1.75rem;
  font-weight: 700; transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(169, 107, 76, .28);
}
.btn-primary:hover { background-color: #C98A6B; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(169, 107, 76, .32); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1.5px solid #8FA98F; color: #4F6B4F;
  border-radius: 9999px; padding: .7rem 1.6rem;
  font-weight: 700; transition: background-color .2s ease, border-color .2s ease;
}
.btn-secondary:hover { background-color: #E4EDE4; border-color: #6E8A6E; }

/* ---------- Focus visible ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #A96B4C; outline-offset: 2px; border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header { background-color: #FBF9F5; border-bottom: 1px solid #E9E4DC; }
.nav-link { color: #4F6B4F; font-weight: 600; padding: .4rem .7rem; border-radius: .5rem; transition: background-color .2s ease, color .2s ease; }
.nav-link:hover { background-color: #E4EDE4; color: #3A3532; }
.nav-link[aria-current="page"] { background-color: #E4EDE4; color: #3A3532; }
[data-dropdown-menu] { visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
[data-dropdown][data-open="true"] [data-dropdown-menu] { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-item { padding: .55rem .9rem; border-radius: .5rem; font-weight: 600; color: #3A3532; }
.dropdown-item:hover { background-color: #E4EDE4; }

/* ---------- Menu mobile ---------- */
#mobile-panel { display: none; }
#mobile-panel.is-open { display: block; }

/* ---------- Cartes ---------- */
.card-product {
  background: #fff; border: 1px solid #E9E4DC; border-radius: 1.25rem;
  overflow: hidden; transition: box-shadow .25s ease, transform .25s ease;
}
.card-product:hover { box-shadow: 0 16px 36px rgba(58, 53, 50, .12); transform: translateY(-4px); }
.card-product .illus { transition: transform .35s ease; }
.card-product:hover .illus { transform: scale(1.03); }
.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 9999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-sauge { background: #E4EDE4; color: #4F6B4F; }
.badge-terra { background: #F3E2D7; color: #8A4F30; }

/* ---------- Encadrés conseil ---------- */
.encadre {
  border-left: 4px solid #8FA98F; background: #F1F5F1;
  border-radius: 0 .75rem .75rem 0; padding: 1rem 1.25rem;
}
.encadre-terra { border-left-color: #C98A6B; background: #F9EFE8; }

/* ---------- Accordéons ---------- */
.acc-trigger { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; padding: 1.1rem 0; border-bottom: 1px solid #E9E4DC; font-weight: 700; color: #3A3532; }
.acc-trigger:hover { color: #6E8A6E; }
.acc-icon { color: #A96B4C; font-size: 1.4rem; line-height: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-product, .card-product .illus { transition: none; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; background: #FBF9F5; padding: .6rem 1rem; border: 2px solid #A96B4C; border-radius: .5rem; }

/* ---------- Prose éditorial ---------- */
.prose-fa h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; font-weight: 600; color: #3A3532; margin: 2.5rem 0 .9rem; line-height: 1.25; }
.prose-fa h3 { font-weight: 700; font-size: 1.15rem; color: #3A3532; margin: 1.8rem 0 .6rem; }
.prose-fa p { margin: .8rem 0; line-height: 1.75; color: #57534E; }
.prose-fa ul { margin: .8rem 0; }
.prose-fa ul li { position: relative; padding-left: 1.3rem; margin: .45rem 0; color: #57534E; line-height: 1.65; }
.prose-fa ul li::before { content: '·'; position: absolute; left: .3rem; color: #A96B4C; font-weight: 900; }
.prose-fa table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.prose-fa th { text-align: left; background: #E4EDE4; color: #3A3532; padding: .6rem .75rem; font-weight: 700; }
.prose-fa td { border-bottom: 1px solid #E9E4DC; padding: .6rem .75rem; color: #57534E; }

/* ---------- Divers ---------- */
body.overflow-hidden { overflow: hidden; }
.text-balance { text-wrap: balance; }
.li-dot li::before { content: '·'; color: #A96B4C; font-weight: 900; margin-right: .5rem; }
