/*
Theme Name: La Belle Heure
Template: astra
Description: Theme enfant du magazine feminin bien-etre La Belle Heure. Prefixe lbh-.
Version: 1.0.0
*/

/* --------------------------------------------------------------------------
   Systeme
   Signature visuelle du site : l ARCHE. Les vignettes de rubrique et la photo
   de une sont arrondies en plein cintre en haut. C est ce qui distingue ce
   magazine des autres du parc, avec le filet brique et les serifs contrastes.
   -------------------------------------------------------------------------- */
:root {
  --lbh-sable:    #FBF7F3;
  --lbh-ivoire:   #FFFFFF;
  --lbh-encre:    #241D20;
  --lbh-brique:   #B25A4E;
  --lbh-brique-c: #9A4941;
  --lbh-bordeaux: #5E2B33;
  --lbh-sauge:    #7E8F76;
  --lbh-muted:    #8B7F82;
  --lbh-ligne:    #EAE0D9;
  --lbh-voile:    #F3EBE4;
  --lbh-large:    1180px;
  --lbh-texte:    720px;
  --lbh-ombre:    0 10px 30px rgba(94, 43, 51, .07);
  --lbh-ombre-f:  0 20px 50px rgba(94, 43, 51, .12);
}

@font-face { font-display: swap; }

body.lbh,
body.lbh .ast-container {
  background: var(--lbh-sable);
  color: var(--lbh-encre);
  font-family: 'Karla', 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
body.lbh { overflow-x: hidden; }

/* Astra pose une grille et des paddings dont le magazine n a pas besoin. */
body.lbh .ast-container { display: block !important; max-width: none; padding: 0 !important; }
body.lbh #primary, body.lbh #content .ast-container { margin: 0; padding: 0 !important; }
body.lbh .entry-header, body.lbh .ast-single-post-order, body.lbh .post-navigation { display: none; }
body.lbh .site-content > .ast-container { max-width: none; }

/*
 * Specificite volontairement basse (une classe + un element) : les regles de composants
 * qui suivent doivent pouvoir imposer leur propre interligne. Avec « body.lbh h2 » elles
 * perdaient, et les hampes de Bodoni se faisaient couper en haut des titres.
 */
.lbh h1, .lbh h2, .lbh h3, .lbh h4, .lbh .lbh-serif {
  font-family: 'Bodoni Moda', 'Didot', Georgia, serif;
  color: var(--lbh-encre);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.24;
}

.lbh-wrap { max-width: var(--lbh-large); margin: 0 auto; padding: 0 24px; }

.lbh-kicker {
  font-family: 'Karla', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--lbh-brique);
}

.lbh-lien { color: var(--lbh-brique-c); text-decoration: none; border-bottom: 1px solid rgba(178,90,78,.35); }
.lbh-lien:hover { color: var(--lbh-bordeaux); border-bottom-color: var(--lbh-bordeaux); }

.lbh-btn {
  display: inline-block; padding: 13px 26px;
  background: var(--lbh-brique); color: #fff !important;
  border-radius: 2px; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
  transition: background .18s ease, transform .18s ease;
}
.lbh-btn:hover { background: var(--lbh-bordeaux); transform: translateY(-1px); }
.lbh-btn--ligne { background: transparent; color: var(--lbh-bordeaux) !important; border: 1px solid var(--lbh-ligne); }
.lbh-btn--ligne:hover { background: var(--lbh-voile); border-color: var(--lbh-brique); }

/* --------------------------------------------------------------------------
   Entete
   -------------------------------------------------------------------------- */
.lbh-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251,247,243,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--lbh-ligne);
}
.lbh-head-in {
  max-width: var(--lbh-large); margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lbh-marque { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lbh-sceau {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 19px 19px 3px 3px;              /* l arche, en miniature */
  background: linear-gradient(160deg, var(--lbh-brique), var(--lbh-bordeaux));
  color: #fff; display: grid; place-items: center;
  font-family: 'Bodoni Moda', Georgia, serif; font-size: 17px; line-height: 1;
}
.lbh-marque-txt { display: flex; flex-direction: column; line-height: 1.05; }
.lbh-marque-nom { font-family: 'Bodoni Moda', Georgia, serif; font-size: 21px; color: var(--lbh-encre); }
.lbh-marque-sur { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--lbh-muted); margin-top: 3px; }

.lbh-nav { display: flex; align-items: center; gap: 26px; }
.lbh-nav a {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lbh-encre); text-decoration: none; padding: 6px 0; position: relative;
}
.lbh-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--lbh-brique); transition: right .22s ease;
}
.lbh-nav a:hover::after, .lbh-nav a.actif::after { right: 0; }

.lbh-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.lbh-burger span { display: block; width: 22px; height: 1.5px; background: var(--lbh-encre); margin: 5px 0; transition: .2s; }

/* --------------------------------------------------------------------------
   Home — la une editoriale
   -------------------------------------------------------------------------- */
.lbh-une { padding: 54px 0 20px; }
.lbh-une-grille { display: grid; grid-template-columns: 1.55fr 1fr; gap: 46px; align-items: start; }

.lbh-une-vedette { text-decoration: none; display: block; }
.lbh-arche {
  position: relative; overflow: hidden;
  border-radius: 200px 200px 4px 4px;            /* signature du site */
  background: var(--lbh-voile);
  box-shadow: var(--lbh-ombre);
}
.lbh-arche img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lbh-une-vedette:hover .lbh-arche img { transform: scale(1.03); }
.lbh-une-vedette .lbh-arche { aspect-ratio: 4/3.2; }
.lbh-une-titre { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin: 22px 0 10px; }
.lbh-une-vedette:hover .lbh-une-titre { color: var(--lbh-bordeaux); }
.lbh-une-chapo { color: var(--lbh-muted); font-size: 16.5px; margin: 0; }
.lbh-meta { font-size: 12.5px; color: var(--lbh-muted); display: flex; gap: 10px; align-items: center; }
.lbh-meta .pt { width: 3px; height: 3px; border-radius: 50%; background: var(--lbh-brique); display: inline-block; }

.lbh-semaine { border-left: 1px solid var(--lbh-ligne); padding-left: 34px; }
.lbh-semaine h2 { font-size: 22px; margin: 8px 0 22px; }
.lbh-breve { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--lbh-ligne); text-decoration: none; }
.lbh-breve:last-child { border-bottom: 0; }
.lbh-breve-num { font-family: 'Bodoni Moda', Georgia, serif; font-size: 26px; color: var(--lbh-voile); line-height: 1; transition: color .2s; }
.lbh-breve:hover .lbh-breve-num { color: var(--lbh-brique); }
.lbh-breve-t { font-family: 'Bodoni Moda', Georgia, serif; font-size: 17.5px; line-height: 1.32; color: var(--lbh-encre); margin: 0 0 6px; }
.lbh-breve:hover .lbh-breve-t { color: var(--lbh-bordeaux); }

/* --------------------------------------------------------------------------
   Ruban des rubriques
   -------------------------------------------------------------------------- */
.lbh-rubriques { padding: 60px 0 10px; }
.lbh-rub-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lbh-rub { text-decoration: none; text-align: center; display: block; }
.lbh-rub .lbh-arche { aspect-ratio: 3/3.6; border-radius: 160px 160px 4px 4px; }
.lbh-rub-nom { font-family: 'Bodoni Moda', Georgia, serif; font-size: 20px; margin: 16px 0 6px; color: var(--lbh-encre); }
.lbh-rub:hover .lbh-rub-nom { color: var(--lbh-brique); }
.lbh-rub-desc { font-size: 13.5px; color: var(--lbh-muted); line-height: 1.55; margin: 0; }

/* --------------------------------------------------------------------------
   Le rituel de la semaine — bloc signature
   -------------------------------------------------------------------------- */
.lbh-rituel { margin: 72px 0; background: var(--lbh-bordeaux); color: #F6EDE8; }
.lbh-rituel-in {
  max-width: var(--lbh-large); margin: 0 auto; padding: 52px 24px;
  display: grid; grid-template-columns: 1.05fr 1.35fr; gap: 48px; align-items: center;
}
.lbh-rituel .lbh-kicker { color: #E9B7A8; }
/* Bodoni a de longues hampes : sans interligne genereux le titre se coupe en haut. */
.lbh-rituel h2 { color: #fff; font-size: 29px; line-height: 1.38; margin: 12px 0 0; padding-top: 3px; }
.lbh-rituel p { margin: 0 0 20px; color: rgba(246,237,232,.86); }
.lbh-rituel .lbh-btn { background: #fff; color: var(--lbh-bordeaux) !important; }
.lbh-rituel .lbh-btn:hover { background: #F6EDE8; }

/* --------------------------------------------------------------------------
   Grille des guides
   -------------------------------------------------------------------------- */
.lbh-section { padding: 10px 0 30px; }
.lbh-section-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.lbh-section-tete h2 { font-size: 28px; margin: 8px 0 0; }

.lbh-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.lbh-carte { text-decoration: none; display: block; }
.lbh-carte .lbh-arche { aspect-ratio: 4/3; border-radius: 4px; }
.lbh-carte-cat { display: inline-block; margin: 15px 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lbh-sauge); }
.lbh-carte-t { font-family: 'Bodoni Moda', Georgia, serif; font-size: 19.5px; line-height: 1.3; margin: 0 0 9px; color: var(--lbh-encre); }
.lbh-carte:hover .lbh-carte-t { color: var(--lbh-bordeaux); }
.lbh-carte-x { font-size: 14.5px; color: var(--lbh-muted); margin: 0 0 10px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Redaction + newsletter
   -------------------------------------------------------------------------- */
.lbh-redac { margin: 76px 0; background: var(--lbh-voile); }
.lbh-redac-in {
  max-width: var(--lbh-large); margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 40px; align-items: center;
}
/* Tant que le portrait n est pas en ligne, le texte occupe toute la largeur. */
.lbh-redac-in.sans-portrait { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.lbh-portrait { width: 190px; aspect-ratio: 3/3.7; border-radius: 95px 95px 4px 4px; overflow: hidden; box-shadow: var(--lbh-ombre); }
.lbh-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbh-redac h2 { font-size: 26px; margin: 10px 0 12px; }
.lbh-redac p { color: #5B5054; margin: 0 0 16px; }

.lbh-lettre { text-align: center; padding: 20px 0 80px; }
.lbh-lettre-carte {
  max-width: 620px; margin: 0 auto; background: var(--lbh-ivoire);
  border: 1px solid var(--lbh-ligne); border-radius: 4px; padding: 40px 34px; box-shadow: var(--lbh-ombre);
}
.lbh-lettre h2 { font-size: 26px; margin: 10px 0 8px; }
.lbh-lettre p { color: var(--lbh-muted); font-size: 14.5px; margin: 0 0 22px; }

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.lbh-art-tete { padding: 46px 0 0; }
.lbh-art-tete-in { max-width: var(--lbh-texte); margin: 0 auto; padding: 0 24px; text-align: center; }
.lbh-art-h1 { font-size: clamp(29px, 3.6vw, 43px); line-height: 1.2; margin: 14px 0 18px; }
.lbh-art-sign { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--lbh-muted); font-size: 13.5px; }
.lbh-art-sign img { width: 34px; height: 34px; border-radius: 17px 17px 2px 2px; object-fit: cover; }
.lbh-art-cover { max-width: 980px; margin: 34px auto 0; padding: 0 24px; }
.lbh-art-cover .lbh-arche { aspect-ratio: 21/9; border-radius: 4px; }

.lbh-art-corps { max-width: var(--lbh-texte); margin: 0 auto; padding: 38px 24px 20px; }
.lbh-art-corps p { margin: 0 0 20px; }
.lbh-art-corps h2 { font-size: 27px; margin: 42px 0 14px; padding-top: 18px; border-top: 1px solid var(--lbh-ligne); }
.lbh-art-corps h3 { font-size: 20px; margin: 30px 0 10px; }
.lbh-art-corps img { max-width: 100%; height: auto; border-radius: 4px; }
.lbh-art-corps ul, .lbh-art-corps ol { margin: 0 0 20px; padding-left: 22px; }
.lbh-art-corps li { margin-bottom: 8px; }
.lbh-art-corps a { color: var(--lbh-brique-c); text-decoration: underline; text-underline-offset: 3px; }
.lbh-art-corps blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--lbh-brique);
  font-family: 'Bodoni Moda', Georgia, serif; font-size: 20px; font-style: italic; color: var(--lbh-bordeaux);
}

/* Encadre de synthese du parc (corr-essentiel) habille aux couleurs du site. */
.lbh-art-corps .corr-essentiel {
  background: var(--lbh-voile); border: 0; border-left: 3px solid var(--lbh-brique);
  border-radius: 0 4px 4px 0; padding: 22px 26px; margin: 0 0 30px;
}

/* Sommaire */
.lbh-toc { background: var(--lbh-ivoire); border: 1px solid var(--lbh-ligne); border-radius: 4px; padding: 22px 26px; margin: 0 0 32px; }
.lbh-toc-t { font-family: 'Karla', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--lbh-brique); margin: 0 0 12px; }
.lbh-toc ol { margin: 0; padding-left: 20px; }
.lbh-toc li { margin-bottom: 7px; }
.lbh-toc a { color: var(--lbh-encre); text-decoration: none; }
.lbh-toc a:hover { color: var(--lbh-brique); }

/* Bloc SEO : ecrit haut dans le code, remonte visuellement en bas (jamais masque). */
.lbh-flow { display: flex; flex-direction: column; }
.lbh-main { order: 1; }
.lbh-seo  { order: 9; max-width: var(--lbh-texte); margin: 20px auto 0; padding: 0 24px; }
.lbh-seo-in { background: var(--lbh-voile); border-radius: 4px; padding: 22px 26px; font-size: 15px; color: #5B5054; }

.lbh-auteur { max-width: var(--lbh-texte); margin: 40px auto 0; padding: 26px 24px; border-top: 1px solid var(--lbh-ligne); display: flex; gap: 18px; align-items: flex-start; }
.lbh-auteur img { width: 66px; height: 78px; border-radius: 33px 33px 3px 3px; object-fit: cover; flex: 0 0 66px; }
.lbh-auteur-n { font-family: 'Bodoni Moda', Georgia, serif; font-size: 18px; margin: 0 0 6px; }
.lbh-auteur-b { font-size: 14.5px; color: var(--lbh-muted); margin: 0; line-height: 1.6; }

.lbh-suite { max-width: var(--lbh-large); margin: 60px auto 0; padding: 0 24px 70px; }

/* --------------------------------------------------------------------------
   Archives
   -------------------------------------------------------------------------- */
.lbh-arch-tete { padding: 56px 0 34px; text-align: center; border-bottom: 1px solid var(--lbh-ligne); margin-bottom: 42px; }
.lbh-arch-tete h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; margin: 12px 0 12px; }
.lbh-arch-tete p { max-width: 640px; margin: 0 auto; color: var(--lbh-muted); }

.lbh-pagination { display: flex; justify-content: center; gap: 10px; padding: 46px 0 80px; }
.lbh-pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--lbh-ligne); border-radius: 2px; text-decoration: none; color: var(--lbh-encre); font-size: 14px; }
.lbh-pagination .page-numbers.current, .lbh-pagination .page-numbers:hover { background: var(--lbh-brique); color: #fff; border-color: var(--lbh-brique); }

/* --------------------------------------------------------------------------
   Pied
   -------------------------------------------------------------------------- */
.lbh-foot { background: var(--lbh-encre); color: #CFC4C7; padding: 54px 0 26px; margin-top: 40px; }
.lbh-foot-in { max-width: var(--lbh-large); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.lbh-foot h3 { color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-family: 'Karla', sans-serif; font-weight: 700; margin: 0 0 16px; }
.lbh-foot a { color: #CFC4C7; text-decoration: none; display: block; padding: 5px 0; font-size: 14.5px; }
.lbh-foot a:hover { color: #fff; }
.lbh-foot-marque .lbh-marque-nom { color: #fff; }
.lbh-foot-marque .lbh-marque-sur { color: #9C8E92; }
.lbh-foot-txt { font-size: 14px; color: #A9999E; margin: 14px 0 0; max-width: 330px; line-height: 1.66; }
.lbh-foot-bas {
  max-width: var(--lbh-large); margin: 34px auto 0; padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px; color: #8E7F84; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .lbh-une-grille { grid-template-columns: 1fr; gap: 34px; }
  .lbh-semaine { border-left: 0; border-top: 1px solid var(--lbh-ligne); padding-left: 0; padding-top: 22px; }
  .lbh-rub-grille { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .lbh-grille { grid-template-columns: repeat(2, 1fr); }
  .lbh-rituel-in, .lbh-redac-in { grid-template-columns: 1fr; gap: 26px; }
  .lbh-portrait { width: 150px; }
  .lbh-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.lbh { font-size: 16.5px; }
  .lbh-nav { display: none; }
  .lbh-nav.ouvert {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--lbh-sable); border-bottom: 1px solid var(--lbh-ligne); padding: 14px 24px 20px;
  }
  .lbh-nav.ouvert a { padding: 9px 0; width: 100%; }
  .lbh-burger { display: block; }
  .lbh-une { padding: 32px 0 10px; }
  .lbh-une-vedette .lbh-arche { border-radius: 130px 130px 4px 4px; }
  .lbh-grille { grid-template-columns: 1fr; gap: 30px; }
  .lbh-rub-grille { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .lbh-rub .lbh-arche { border-radius: 90px 90px 4px 4px; }
  .lbh-section-tete { flex-direction: column; align-items: flex-start; }
  .lbh-art-cover .lbh-arche { aspect-ratio: 3/2; }
  .lbh-foot-in { grid-template-columns: 1fr; gap: 26px; }
  .lbh-lettre-carte { padding: 30px 22px; }
}
