/**
 * bh-shortcodes.css
 * CSS global centralisé — Bien-Hêtre
 * Enqueue via Code Snippets (voir snippet bh-enqueue-styles.php)
 *
 * Contient :
 * 1. Variables CSS (tokens design)
 * 2. Reset minimal pour les wrappers
 * 3. Typographie commune
 * 4. Boutons communs
 * 5. Utilitaires (label, h2, badge, pill)
 * 6. Hero commun
 * 7. Breadcrumb commun
 * 8. Filtres communs
 * 9. Animations reveal
 */

/* ══════════════════════════════════════════
   1. VARIABLES CSS — DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  --forest: #2a3828;
  --moss:   #3f5538;
  --sage:   #6b7d60;
  --clay:   #c4896a;
  --gold:   #b89a5a;
  --cream:  #f4efe5;
  --ecru:   #ede6d4;
  --paper:  #faf7f1;
  --ink:    #1c2618;
  --muted:  #7a8a70;
  --font:   'CocomatPro', Georgia, serif;
  --r:      3px;
}

/* ══════════════════════════════════════════
   2. RESET MINIMAL — WRAPPERS SHORTCODES
══════════════════════════════════════════ */
[class*="-wrap"] {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[class*="-wrap"] *,
[class*="-wrap"] *::before,
[class*="-wrap"] *::after {
  box-sizing: border-box;
}
[class*="-wrap"] img {
  display: block;
  max-width: 100%;
  width: 100%;
}
[class*="-wrap"] a {
  color: inherit;
  text-decoration: none;
}

/* ══════════════════════════════════════════
   3. TYPOGRAPHIE COMMUNE
══════════════════════════════════════════ */

/* Label — texte chapeau en uppercase */
.bh-label {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
}

/* H2 générique */
.bh-h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}
.bh-h2 em {
  font-style: italic;
  color: var(--gold);
}

/* Corps de texte */
.bh-body {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
}

/* ══════════════════════════════════════════
   4. BOUTONS COMMUNS
══════════════════════════════════════════ */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 2rem;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: all .2s;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  min-height: 44px;
}
.bh-btn-gold {
  background: var(--gold);
  color: #fff !important;
}
.bh-btn-gold:hover {
  background: var(--clay);
  color: #fff !important;
}
.bh-btn-dark {
  background: var(--forest);
  color: var(--cream) !important;
}
.bh-btn-dark:hover {
  background: var(--moss);
  color: var(--cream) !important;
}
.bh-btn-ghost {
  border: 1px solid rgba(244,239,229,.4);
  color: rgba(244,239,229,.85) !important;
  background: transparent;
}
.bh-btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}
.bh-btn-outline {
  border: 1px solid var(--forest);
  color: var(--forest) !important;
  background: transparent;
}
.bh-btn-outline:hover {
  background: var(--forest);
  color: var(--cream) !important;
}

/* ══════════════════════════════════════════
   5. UTILITAIRES
══════════════════════════════════════════ */

/* Badge pill */
.bh-badge {
  display: inline-block;
  background: rgba(184,154,90,.15);
  border: 1px solid rgba(184,154,90,.4);
  color: var(--gold);
  padding: .28rem .85rem;
  border-radius: 100px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Badge forêt */
.bh-badge-dark {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  padding: .28rem .85rem;
  border-radius: 100px;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Séparateur ornement */
.bh-ornement {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bh-ornement::before,
.bh-ornement::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(184,154,90,.25);
}
.bh-ornement-text {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ══════════════════════════════════════════
   6. HERO COMMUN
══════════════════════════════════════════ */
.bh-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bh-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.bh-hero:hover .bh-hero-bg {
  transform: scale(1.03);
}
.bh-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28,38,24,.90) 0%,
    rgba(28,38,24,.4) 50%,
    rgba(28,38,24,.05) 100%
  );
}
.bh-hero-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem;
}
.bh-hero-label {
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(244,239,229,.5);
  display: block;
  margin-bottom: .8rem;
}
.bh-hero-h1 {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  font-weight: 300 !important;
  color: #fff !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  margin: 0 0 .8rem !important;
}
.bh-hero-h1 em {
  font-style: italic;
  color: var(--gold);
}
.bh-hero-sub {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(244,239,229,.7);
  max-width: 520px;
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   7. BREADCRUMB COMMUN
══════════════════════════════════════════ */
.bh-breadcrumb {
  background: var(--ecru);
  border-bottom: 1px solid rgba(184,154,90,.2);
  padding: .9rem 3.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  font-family: var(--font);
}
.bh-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.bh-breadcrumb a:hover {
  color: var(--forest) !important;
}
.bh-breadcrumb-sep {
  color: rgba(107,125,96,.4);
}

/* ══════════════════════════════════════════
   8. FILTRES COMMUNS
══════════════════════════════════════════ */
.bh-filtres {
  background: var(--ecru);
  border-bottom: 1px solid rgba(184,154,90,.2);
  padding: 1rem 3.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.bh-filtre-label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.bh-filtre-btn {
  padding: .38rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(184,154,90,.35);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.bh-filtre-btn:hover,
.bh-filtre-btn.active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

/* ══════════════════════════════════════════
   9. ANIMATIONS REVEAL
══════════════════════════════════════════ */
.bh-r {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.bh-r.in {
  opacity: 1;
  transform: none;
}
.bh-d1 { transition-delay: .1s; }
.bh-d2 { transition-delay: .2s; }
.bh-d3 { transition-delay: .3s; }

/* ══════════════════════════════════════════
   10. RESPONSIVE COMMUN
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .bh-hero-content { padding: 2rem 1.4rem; }
  .bh-breadcrumb { padding: .9rem 1.4rem; }
  .bh-filtres {
    padding: .9rem 1.4rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .bh-filtres::-webkit-scrollbar { display: none; }
  .bh-filtre-label { display: none; }
  .bh-filtre-btn { flex-shrink: 0; min-height: 36px; }
  .bh-btn { min-height: 44px; }
}
