/* ============================================================
   BABOO DE GYCER — ACCUEIL-VITRINE MINIMALISTE LUXE
   Port fidèle de index.html → classes bdg-.
   Dépend de baboo-base.css pour les tokens et .bdg-reveal.
   ============================================================ */

/* ===== HERO ===== */
.bdg-hero {
  min-height: 100dvh;
  background: var(--bdg-creme-2);
  color: var(--bdg-noir);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8vw 90px;
  position: sticky;
  top: 0;
  overflow: hidden;
}
.bdg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 82% 6%, rgba(58,70,50,.06), transparent 55%);
}
/* eyebrow reuses .bdg-eyebrow from base; override colour for light hero */
.bdg-hero .bdg-eyebrow { color: #A97E17; margin-bottom: 30px; }

.bdg-hero__title {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 10vw, 6rem);
  max-width: 14ch;
  font-weight: 340;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.bdg-hero__title em {
  font-style: italic;
  color: var(--bdg-vert-hero);
  font-weight: 500;
}
.bdg-hero__sub {
  margin-top: 38px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--bdg-gris);
  font-weight: 300;
  line-height: 1.7;
}
.bdg-hero__actions {
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
/* Quiet text-link below the CTA */
.bdg-hero__link-quiet {
  font-size: 14px;
  color: var(--bdg-noir);
  border-bottom: 1px solid rgba(221,168,44,.5);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color .4s var(--ease);
}
.bdg-hero__link-quiet:hover { color: var(--bdg-or-fonce); }

.bdg-hero__scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 8vw;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(35,39,31,.68); /* contraste AA (4.5:1) sur le hero crème */
}

/* ===== BANDEAU COUVERTURES (marquee) — fond clair =====
   Une couverture réelle par catégorie, défilement continu. Cadre foncé pour
   détacher les couvertures du hero crème. Porté depuis la maquette index.html. */
.bdg-hero__marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bdg-hm__track {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  width: max-content;
  animation: bdg-hm-scroll 42s linear infinite;
  will-change: transform;
}
.bdg-hero__marquee:hover .bdg-hm__track,
.bdg-hero__marquee:focus-within .bdg-hm__track { animation-play-state: paused; }
.bdg-hm__item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.bdg-hm__item img {
  height: clamp(116px, 15vw, 170px);
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(35,39,31,.18);
  box-shadow: 0 20px 34px -20px rgba(35,39,31,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.bdg-hm__item:hover img {
  transform: translateY(-6px);
  border-color: rgba(35,39,31,.42);
  box-shadow: 0 30px 44px -22px rgba(35,39,31,.45);
}
.bdg-hm__cat {
  font-family: var(--font-corps);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #6b6a61; /* contraste AA (4.5:1) sur le crème — libellés du bandeau */
  transition: color .4s var(--ease);
}
.bdg-hm__item:hover .bdg-hm__cat,
.bdg-hm__item:focus-visible .bdg-hm__cat { color: var(--bdg-or-fonce); }
.bdg-hm__item:focus-visible {
  outline: 2px solid var(--bdg-or-fonce);
  outline-offset: 4px;
  border-radius: 10px;
}
@keyframes bdg-hm-scroll { to { transform: translateX(-50%); } }

/* ===== MANIFESTO ===== */
.bdg-manifesto {
  padding: clamp(110px, 16vw, 220px) 8vw;
  text-align: center;
  background: var(--bdg-creme);
}
.bdg-manifesto__rule {
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--bdg-or), transparent);
  margin: 0 auto 46px;
}
.bdg-manifesto__text {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.28;
  max-width: 20ch;
  margin: 0 auto;
  font-weight: 340;
  letter-spacing: -.01em;
}
.bdg-manifesto__text em {
  font-style: italic;
  color: var(--bdg-or);
}

/* ===== LIVRES À LA UNE ===== */
.bdg-books {
  padding: clamp(80px, 10vw, 140px) 8vw;
  background: var(--bdg-creme-2);
}
.bdg-books__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 74px;
  flex-wrap: wrap;
}
.bdg-books__head-h2 {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 340;
  max-width: 16ch;
  line-height: 1.05;
}
.bdg-books__head-p {
  max-width: 32ch;
  color: #6b6a61; /* contraste AA (4.5:1) sur le crème */
  font-size: 15px;
  font-weight: 300;
}
/* Grille 3 colonnes — aussi ciblée par le shortcode WooCommerce via class="bdg-book-grid" */
.bdg-book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
}
/* Carte livre */
.bdg-book { cursor: pointer; }
.bdg-book__frame {
  padding: 14px;
  border-radius: 22px;
  background: rgba(58,70,50,.05);
  border: 1px solid rgba(58,70,50,.09);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.bdg-book:hover .bdg-book__frame {
  transform: translateY(-8px);
  box-shadow: 0 40px 60px -30px rgba(44,54,39,.4);
}
.bdg-book__cover {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 26px;
  color: var(--bdg-creme);
}
/* Vraie couverture en fond : texture discrète en haut (zone kicker) qui vire
   à quasi opaque dès le milieu → le titre propre de la couverture disparaît,
   le titre éditorial reste net. */
.bdg-book__cover--c1 { background: linear-gradient(to bottom, rgba(50,62,44,.5) 0%, rgba(32,40,28,.93) 44%, rgba(24,30,20,.99) 100%), url('../covers/final-observer.jpg') center top/cover no-repeat; }
.bdg-book__cover--c2 { background: linear-gradient(to bottom, rgba(62,74,52,.5) 0%, rgba(36,44,30,.93) 44%, rgba(26,32,22,.99) 100%), url('../covers/final-5h.jpg') center top/cover no-repeat; }
.bdg-book__cover--c3 { background: linear-gradient(to bottom, rgba(120,94,34,.48) 0%, rgba(64,50,18,.93) 44%, rgba(44,34,12,.99) 100%), url('../covers/final-methode.jpg') center top/cover no-repeat; }
.bdg-book__kicker {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(253,251,247,.65);
}
.bdg-book__ct {
  font-family: var(--font-title);
  font-size: 1.9rem;
  line-height: 1.1;
  font-weight: 400;
}
.bdg-book__cnum {
  font-family: var(--font-title);
  font-size: .9rem;
  color: var(--bdg-or-clair);
  opacity: .8;
}
.bdg-book__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 22px;
  padding: 0 4px;
}
.bdg-book__meta-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 400;
}
.bdg-book__meta-cat {
  font-size: 12px;
  color: var(--bdg-gris);
  letter-spacing: .04em;
}
.bdg-book__price {
  font-size: 1rem;
  color: var(--bdg-vert-hero);
  font-weight: 600;
}
/* CTA bas de section */
.bdg-books__cta {
  text-align: center;
  margin-top: 52px;
}

/* ===== PROMESSE ===== */
.bdg-promise {
  padding: clamp(90px, 12vw, 160px) 8vw;
  background: var(--bdg-vert-deep);
  color: var(--bdg-creme);
}
.bdg-promise .bdg-eyebrow {
  display: block;
  margin-bottom: 60px;
  color: var(--bdg-or);
}
.bdg-promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(221,168,44,.18);
}
.bdg-promise__cell {
  background: var(--bdg-vert-deep);
  padding: 44px 34px 50px;
}
.bdg-promise__num {
  font-family: var(--font-title);
  color: var(--bdg-or);
  font-size: 1rem;
  letter-spacing: .1em;
  display: block;
}
.bdg-promise__cell h3 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  margin: 26px 0 16px;
  font-weight: 400;
  line-height: 1.1;
  color: #fff; /* lisible sur le fond vert foncé (l'héritage était surchargé par Astra) */
}
.bdg-promise__cell p {
  color: rgba(253,251,247,.6);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
}

/* ===== TÉMOIGNAGE ===== */
.bdg-testi {
  padding: clamp(110px, 16vw, 220px) 8vw;
  text-align: center;
  background: var(--bdg-creme);
}
.bdg-testi__mark {
  font-family: var(--font-title);
  font-size: 5rem;
  color: var(--bdg-or);
  line-height: .5;
  height: 40px;
  display: block;
}
.bdg-testi__quote {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.35;
  max-width: 22ch;
  margin: 38px auto 40px;
  font-weight: 340;
  letter-spacing: -.01em;
}
.bdg-testi__quote em {
  font-style: italic;
  color: var(--bdg-or);
}
.bdg-testi__who {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bdg-gris);
}
.bdg-testi__who b {
  color: var(--bdg-vert-hero);
  font-weight: 600;
}

/* ===== SCROLL CINÉMATIQUE (héros) =====
   --scroll-p (0→1 sur la hauteur du héros) est écrit par baboo-base.js.
   Porté depuis la maquette index.html validée le 2026-07-07. */
:root { --scroll-p: 0; --bdg-amp: 1; }
@media (max-width: 768px) { :root { --bdg-amp: .5; } }

.bdg-hero::before {
  transform: translateY(calc(var(--scroll-p) * var(--bdg-amp) * -50vh));
  will-change: transform;
}
.bdg-hero .bdg-eyebrow,
.bdg-hero__title {
  transform: translateY(calc(var(--scroll-p) * var(--bdg-amp) * -30vh));
  opacity: calc(1 - var(--scroll-p) * .85);
  filter: blur(calc(var(--scroll-p) * 2px));
  will-change: transform, opacity;
}
.bdg-hero__sub,
.bdg-hero__marquee,
.bdg-hero__actions {
  transform: translateY(calc(var(--scroll-p) * var(--bdg-amp) * -40vh));
  opacity: calc(1 - var(--scroll-p) * 1.1);
  will-change: transform, opacity;
}
@keyframes bdg-hint-pulse {
  0%, 100% { opacity: .45; transform: translateY(0); }
  50%      { opacity: .8;  transform: translateY(6px); }
}
.bdg-hero__scroll-hint { animation: bdg-hint-pulse 2.6s var(--ease) infinite; }

/* Sections au-dessus du héros sticky (effet rideau) */
.bdg-manifesto, .bdg-books, .bdg-promise, .bdg-testi, .bdg-footer--store {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .bdg-hero { position: relative; }
  .bdg-hero__scroll-hint { animation: none; }
  .bdg-hero::before,
  .bdg-hero .bdg-eyebrow,
  .bdg-hero__title,
  .bdg-hero__sub,
  .bdg-hero__marquee,
  .bdg-hero__actions {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .bdg-hm__track { animation: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  /* Hero */
  .bdg-hero { padding: 100px 6vw 70px; }

  /* Books */
  .bdg-book-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .bdg-books__head { flex-direction: column; align-items: flex-start; }

  /* Promise */
  .bdg-promise__grid { grid-template-columns: 1fr; background: none; }
  .bdg-promise__cell {
    border-bottom: 1px solid rgba(221,168,44,.18);
  }
  .bdg-promise__cell:last-child { border-bottom: none; }
}
