/* ═══════════════════════════════════════════════════════
   FIRMIN JOUBERT — Design System
   Univers : Bien-être · Nature · Sérénité
   ═══════════════════════════════════════════════════════ */

/* ── Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Nunito:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --foret:       #2d5a3d;
  --foret-dark:  #1a3826;
  --foret-light: #4a7c5f;
  --sauge:       #7a9e7e;
  --menthe:      #a8c5a0;
  --creme:       #f7f3ed;
  --ecorce:      #8b6f47;
  --or-nature:   #c9a84c;
  --terre:       #5c4a2a;
  --blanc:       #ffffff;
  --texte:       #2c2c2c;
  --texte-light: #6b7280;
  --gris-doux:   #f0ebe3;

  --font-titre:  'Cormorant Garamond', Georgia, serif;
  --font-corps:  'Nunito', sans-serif;

  --nav-h: 70px;
  --gap:    clamp(40px, 6vw, 80px);
  --gap-lg: clamp(60px, 8vw, 120px);
  --radius: 18px;
  --shadow: 0 4px 24px rgba(45,90,61,0.10);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corps);
  background: var(--creme);
  color: var(--texte);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(26,56,38,0.96);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid rgba(169,197,160,0.2);
}
.nav-logo {
  font-family: var(--font-titre); font-size: 1.5rem; font-weight: 700;
  color: #fff; letter-spacing: 0.5px;
}
.nav-logo span { color: var(--menthe); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--menthe);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.btn-nav-cta {
  background: var(--or-nature) !important; color: #1a3826 !important;
  padding: 9px 22px !important; border-radius: 25px !important;
  font-weight: 700 !important; letter-spacing: 0.5px !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-nav-cta::after { display: none !important; }
.btn-nav-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(201,168,76,0.35) !important; }

/* ── HAMBURGER MOBILE ── */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.3s;
}
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--foret-dark);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  font-family: var(--font-titre); font-size: 2.2rem; font-weight: 600;
  color: #fff; letter-spacing: 1px;
  transition: color 0.2s;
}
.nav-mobile-overlay a:hover, .nav-mobile-overlay a.active { color: var(--menthe); }
.nav-mobile-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.8rem; cursor: pointer;
}

/* ── PAGE BODY ── */
.page-body { padding-top: var(--nav-h); }

/* ── HERO PAGE INTÉRIEURE ── */
.page-hero {
  background: linear-gradient(135deg, var(--foret-dark) 0%, var(--foret) 60%, var(--foret-light) 100%);
  color: #fff; text-align: center;
  padding: clamp(60px, 10vw, 120px) 40px clamp(50px, 8vw, 100px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .hero-badge {
  display: inline-block;
  background: rgba(169,197,160,0.2); border: 1px solid rgba(169,197,160,0.4);
  color: var(--menthe); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-titre); font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 16px;
  color: #fff;
}
.page-hero h1 em { font-style: italic; color: var(--menthe); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── SECTIONS ── */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: var(--gap) 40px;
}
.section-titre {
  font-family: var(--font-titre); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: var(--foret-dark); margin-bottom: 8px;
}
.section-titre em { font-style: italic; color: var(--sauge); }
.section-sous-titre { color: var(--texte-light); margin-bottom: 40px; font-size: 1.02rem; }

/* ── BOUTONS ── */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-foret {
  background: var(--foret); color: #fff;
  box-shadow: 0 4px 16px rgba(45,90,61,0.3);
}
.btn-foret:hover { background: var(--foret-dark); color: #fff; box-shadow: 0 8px 24px rgba(45,90,61,0.4); }
.btn-or {
  background: var(--or-nature); color: var(--foret-dark);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}
.btn-or:hover { box-shadow: 0 8px 24px rgba(201,168,76,0.45); color: var(--foret-dark); }
.btn-light {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-light:hover { background: rgba(255,255,255,0.25); color: #fff; }
.btn-dark {
  background: var(--foret-dark); color: #fff;
  box-shadow: 0 4px 14px rgba(26,56,38,0.25);
}
.btn-dark:hover { color: #fff; box-shadow: 0 8px 22px rgba(26,56,38,0.35); }

/* ── FOOTER ── */
.site-footer {
  background: var(--foret-dark); color: rgba(255,255,255,0.7);
  text-align: center; padding: 56px 40px 40px;
  margin-top: var(--gap-lg);
}
.footer-logo {
  font-family: var(--font-titre); font-size: 1.8rem; font-weight: 700;
  color: #fff; margin-bottom: 24px;
}
.footer-logo span { color: var(--menthe); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; margin-bottom: 28px; }
.footer-nav a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-nav a:hover { color: var(--menthe); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-copy a { color: var(--or-nature); }

/* ── BOUTON RETOUR EN HAUT ── */
#btn-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--foret); color: #fff; border: none;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,90,61,0.35);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
#btn-top.show { opacity: 1; transform: translateY(0); }

/* ── CAT PILLS ── */
.cat-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; margin-top: 40px; }
.cat-pill {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 20px; white-space: nowrap;
}
.cat-developpement { background: rgba(201,168,76,0.15); color: #a07828; border: 1px solid rgba(201,168,76,0.3); }
.cat-nature        { background: rgba(74,124,95,0.15);  color: var(--foret); border: 1px solid rgba(74,124,95,0.3); }
.cat-sante         { background: rgba(122,158,126,0.2); color: #4a6b4e; border: 1px solid rgba(122,158,126,0.35); }
.cat-line { flex: 1; height: 1px; background: #e0d8cc; }
.cat-count { font-size: 0.78rem; color: var(--texte-light); white-space: nowrap; }

/* ── CARTES LIVRES ── */
.livres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px; margin-bottom: 48px;
}
.livre-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid #e0d8cc;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.32s cubic-bezier(.22,.68,0,1.2), box-shadow 0.32s ease;
  cursor: pointer;
}
.livre-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 20px 50px rgba(45,90,61,0.15);
}
.livre-cover {
  background: var(--foret-dark);
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 20px 16px 0;
}
.livre-cover img {
  width: auto; max-width: 160px; height: auto;
  max-height: 230px; object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.45));
  transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), filter 0.4s ease;
}
.livre-card:hover .livre-cover img {
  transform: translateX(-8px);
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.6));
}
.livre-cover-badge {
  position: static; display: block;
  margin-top: 12px; padding: 7px 0 10px;
  width: 100%; text-align: center;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.livre-body {
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.livre-title {
  font-family: var(--font-titre); font-size: 1.18rem;
  font-weight: 700; color: var(--foret-dark);
  line-height: 1.25; margin-bottom: 8px;
}
.livre-desc { font-size: 0.86rem; color: var(--texte-light); line-height: 1.6; margin-bottom: 10px; flex: 1; }
.livre-meta { font-size: 0.76rem; color: #bbb; margin-bottom: 12px; }
.livre-prix-wrap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.livre-prix-val {
  font-family: var(--font-titre); font-size: 1.9rem;
  font-weight: 700; color: var(--foret-dark); letter-spacing: -0.5px; line-height: 1;
}
.livre-prix-val sup { font-size: 0.8rem; }
.livre-prix-val .devise { font-size: 0.85rem; font-weight: 500; color: var(--texte-light); margin-left: 2px; }
.livre-dispo {
  font-size: 0.7rem; font-weight: 700; color: #2a7d4e;
  background: rgba(42,125,78,0.1); border: 1px solid rgba(42,125,78,0.2);
  padding: 4px 10px; border-radius: 20px;
}
.livre-actions { display: flex; flex-direction: column; gap: 7px; }
.btn-amazon-card {
  display: block; text-align: center;
  background: #ff9900; color: #000;
  font-weight: 700; font-size: 0.88rem;
  padding: 11px 14px; border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-amazon-card:hover { background: #e68900; color: #000; transform: scale(1.02); }
.btn-feuilleter-card {
  display: block; text-align: center;
  background: var(--foret-dark); color: rgba(255,255,255,0.85);
  font-weight: 600; font-size: 0.8rem;
  padding: 9px 14px; border-radius: 10px;
  transition: background 0.2s;
}
.btn-feuilleter-card:hover { background: var(--foret); color: #fff; }
.btn-video-card {
  display: block; text-align: center;
  background: #ff0000; color: #fff;
  font-weight: 600; font-size: 0.8rem;
  padding: 9px 14px; border-radius: 10px;
  transition: background 0.2s;
}
.btn-video-card:hover { background: #cc0000; color: #fff; }
.btn-detail-card {
  display: block; text-align: center;
  border: 1.5px solid #ddd; color: var(--texte-light);
  font-weight: 600; font-size: 0.76rem;
  padding: 8px 14px; border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-detail-card:hover { border-color: var(--foret); color: var(--foret); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section { padding: var(--gap) 20px; }
  .page-hero { padding: 60px 20px 50px; }
  .site-footer { padding: 48px 20px 32px; }
}

/* ══════════════════════════════════════════════════════════
   ❓ FAQ — Design moderne
   ══════════════════════════════════════════════════════════ */

.faq-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 80px;
}
.faq-section-titre {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--foret-dark);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}
.faq-section-titre em {
  font-style: italic;
  color: var(--sauge);
}
.faq-section-sous {
  text-align: center;
  color: var(--texte-light);
  font-size: 1.05rem;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* Titre de groupe */
.faq-groupe-titre {
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foret);
  margin: 40px 0 14px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--menthe);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.faq-groupe-titre:first-child { margin-top: 0; }

/* Item accordion */
.faq-item {
  margin-bottom: 6px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(45,90,61,0.07);
  transition: box-shadow 0.25s;
}
.faq-item:hover {
  box-shadow: 0 4px 20px rgba(45,90,61,0.14);
}
.faq-item.active {
  box-shadow: 0 6px 28px rgba(26,56,38,0.18);
}

/* Bouton question */
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: #fff;
  border: none;
  border-left: 4px solid transparent;
  font-family: var(--font-corps);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--foret-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1.4;
}
.faq-q:hover {
  background: #f0f8ec;
  border-left-color: var(--menthe);
}
.faq-item.active .faq-q {
  background: var(--foret-dark);
  color: #fff;
  border-left-color: var(--menthe);
}

/* Icône +/− */
.faq-q .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--menthe);
  color: var(--foret-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s;
  line-height: 1;
}
.faq-item.active .faq-q .faq-icon {
  transform: rotate(45deg);
  background: var(--sauge);
  color: #fff;
}

/* Réponse */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: #fff;
  border-left: 4px solid var(--menthe);
}
.faq-item.active .faq-a {
  max-height: 400px;
}
.faq-a p {
  padding: 18px 22px 22px;
  color: var(--texte);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  border-top: 1px solid #eaf3e4;
}

/* CTA bas de FAQ */
.faq-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e0ead8;
}

@media (max-width: 600px) {
  .faq-section { padding: 48px 20px 56px; }
  .faq-q { font-size: 0.9rem; padding: 15px 16px; }
  .faq-a p { padding: 14px 16px 18px; }
}
