/* ══════════════════════════════════════════════════════════════
   Blog : liste d'articles et article.
   Deux colonnes : le contenu à gauche, une colonne sombre à droite
   (catégories ou autres articles, présentation, bouton de devis).
   Couleurs et polices du site : brun, doré, Cormorant et Jost.
   ══════════════════════════════════════════════════════════════ */

.hdr-nav a.is-here { color: #9A7B42; }

.bl-page {
  max-width: 1240px; margin: 0 auto;
  padding: calc(72px + clamp(2.5rem, 6vh, 4.5rem)) clamp(1.4rem, 4vw, 3rem) clamp(4rem, 8vw, 6.5rem);
}
.bl-titre {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem); line-height: 1.05;
  color: var(--dark); margin-bottom: clamp(2rem, 4vw, 3rem);
}
.bl-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2.5rem, 4.5vw, 4.5rem); align-items: start;
}

/* ── Liste ── */
.bl-liste {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.8rem, 4.5vw, 3.8rem) clamp(1.5rem, 3vw, 2.6rem);
}
.bl-vide { font-family: var(--serif); font-size: 1.5rem; color: rgba(28,20,16,.55); padding: 2rem 0; }

.bl-carte-visuel { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f4efe7; }
.bl-carte-visuel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.bl-carte:hover .bl-carte-visuel img { transform: scale(1.03); }
.bl-carte-titre {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.22;
  margin-top: 1.3rem; text-wrap: balance;
}
.bl-carte-titre a { color: var(--dark); text-decoration: none; transition: color .3s; }
.bl-carte-titre a:hover, .bl-carte-titre a:focus-visible { color: #9A7B42; }

.bl-meta, .bl-infos {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .85rem; color: rgba(28,20,16,.5);
}
.bl-meta { margin-top: .75rem; }
.bl-meta-cat { color: #9A7B42; font-weight: 500; text-decoration: none; }
.bl-meta-cat:hover { color: var(--dark); }
.bl-point { color: rgba(28,20,16,.3); }

.bl-pages { margin-top: clamp(3rem, 6vw, 4.5rem); }
.bl-pages .nav-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-family: var(--sans); font-size: .85rem; }
.bl-pages a, .bl-pages span { color: rgba(28,20,16,.6); text-decoration: none; padding: .3rem .5rem; }
.bl-pages .current { color: var(--dark); font-weight: 500; }
.bl-pages a:hover { color: #9A7B42; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Colonne de droite ── */
.bl-barre {
  background: var(--dark); color: rgba(253,250,247,.68);
  padding: clamp(2rem, 3vw, 2.8rem);
  position: sticky; top: 100px;
}
.bl-barre-titre {
  display: inline-block;
  font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.1;
  color: #fff; padding-bottom: .65rem; margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--gold);
}
.bl-barre-liste { list-style: none; margin: 0; padding: 0; }
.bl-barre-liste li + li { border-top: 1px solid rgba(255,255,255,.09); }
.bl-barre-liste a {
  display: block; padding: .85rem 0;
  font-family: var(--sans); font-size: .95rem; font-weight: 300; line-height: 1.5;
  color: rgba(253,250,247,.7); text-decoration: none; transition: color .2s;
}
.bl-barre-articles a { font-size: .88rem; }
.bl-barre-liste a:hover { color: #fff; }
.bl-barre-liste a.is-here { color: var(--gold-lt); font-weight: 400; }
.bl-barre-bloc { margin-top: 1.8rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.bl-barre-texte { font-family: var(--sans); font-weight: 300; font-size: .95rem; line-height: 1.8; }
.bl-barre-texte strong { color: #fff; font-weight: 500; }
.bl-barre-bouton {
  display: block; margin-top: 1.6rem; padding: 1rem 1.2rem; text-align: center;
  background: var(--gold); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .3s;
}
.bl-barre-bouton:hover { background: #9A7B42; }

/* ── Article ── */
.bl-page-article { padding-top: calc(72px + clamp(2rem, 4vh, 3rem)); }
.bl-ariane {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem;
  font-family: var(--sans); font-size: .78rem; color: rgba(28,20,16,.45);
}
.bl-ariane a { color: inherit; text-decoration: none; }
.bl-ariane a:hover { color: #9A7B42; }
.bl-ariane [aria-current] { color: rgba(28,20,16,.75); }

.bl-une { margin: 0 0 1.8rem; }
.bl-une img { width: 100%; height: auto; max-height: 540px; object-fit: cover; display: block; }

.bl-badge {
  display: inline-block; padding: .45rem .95rem; border-radius: 999px;
  background: rgba(184,151,90,.14); color: #9A7B42; text-decoration: none;
  font-family: var(--sans); font-size: .62rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.bl-article-titre {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08;
  color: var(--dark); margin: 1.1rem 0 1rem; text-wrap: balance;
}
.bl-infos { padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(184,151,90,.25); }

.bl-texte { font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.85; color: rgba(28,20,16,.82); }
.bl-texte > * + * { margin-top: 1.1rem; }
.bl-texte h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 1.95rem);
  line-height: 1.2; color: var(--dark); margin-top: 2.6rem;
}
.bl-texte h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  line-height: 1.3; color: var(--dark); margin-top: 1.9rem;
}
.bl-texte h2 + *, .bl-texte h3 + * { margin-top: .6rem; }
.bl-texte ul, .bl-texte ol { padding-left: 1.3rem; }
.bl-texte ul { list-style: disc; }
.bl-texte li { margin-bottom: .55rem; padding-left: .2rem; }
.bl-texte li::marker { color: var(--gold); }
.bl-texte strong, .bl-texte b { font-weight: 500; color: var(--dark); }
.bl-texte a { color: #9A7B42; text-decoration: none; border-bottom: 1px solid rgba(184,151,90,.4); }
.bl-texte a:hover { color: var(--dark); border-color: var(--dark); }
.bl-texte img { max-width: 100%; height: auto; display: block; }
.bl-texte figure { margin: 2rem 0; }
.bl-texte figcaption { font-size: .78rem; color: rgba(28,20,16,.55); margin-top: .6rem; text-align: center; }

/* Encadré (bloc « Citation » de l'éditeur) */
.bl-texte blockquote {
  margin: 2rem 0; padding: 1.2rem 1.5rem;
  background: rgba(184,151,90,.1); border-left: 3px solid var(--gold);
  font-size: .95rem; line-height: 1.75; color: rgba(28,20,16,.8); font-style: normal;
}
.bl-texte blockquote p + p { margin-top: .6rem; }
.bl-texte blockquote cite { display: block; margin-top: .6rem; font-size: .8rem; font-style: normal; color: rgba(28,20,16,.5); }

/* Tableau */
.bl-texte table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bl-texte th {
  background: var(--dark); color: #fff; text-align: left; padding: .9rem 1rem;
  font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.bl-texte td { padding: .85rem 1rem; border-bottom: 1px solid rgba(184,151,90,.18); }
.bl-texte tr:nth-child(even) td { background: #faf7f2; }
.bl-texte .wp-block-table { overflow-x: auto; }

/* Encadré de devis en fin d'article */
.bl-appel { margin-top: 3rem; padding: 2.4rem 1.6rem; background: var(--dark); text-align: center; }
.bl-appel-titre { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 1.85rem); color: #fff; }
.bl-appel-texte { margin-top: .5rem; font-family: var(--sans); font-weight: 300; font-size: .9rem; color: rgba(253,250,247,.65); }
.bl-appel-bouton {
  display: inline-block; margin-top: 1.4rem; padding: .95rem 1.8rem;
  background: var(--gold); color: #fff; text-decoration: none;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; transition: background .3s;
}
.bl-appel-bouton:hover { background: #9A7B42; }

/* ── Vidéos (page Blog) ── */
.bl-videos { margin-top: clamp(4rem, 8vw, 6.5rem); }
.bl-videos-titre {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05;
  color: var(--dark); margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.bl-videos-rail {
  display: flex; gap: clamp(1rem, 1.8vw, 1.6rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: .4rem;
  scrollbar-width: none; cursor: grab;
}
.bl-videos-rail::-webkit-scrollbar { display: none; }
.bl-videos-rail.is-glisse { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.bl-video {
  position: relative; flex: 0 0 clamp(200px, 19vw, 270px); aspect-ratio: 9 / 16;
  scroll-snap-align: start; overflow: hidden; background: #1C1410;
  border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; text-align: left;
}
.bl-video video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.bl-video::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(28,20,16,.72) 0%, rgba(28,20,16,0) 45%);
}
.bl-video-lecture {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.88); transition: opacity .3s, transform .3s;
}
.bl-video-lecture::before {
  content: ''; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--dark);
}
.bl-video:hover .bl-video-lecture { opacity: 0; transform: scale(.9); }
.bl-video:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bl-video-nom {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1;
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; color: #fff;
}

/* Lecture en grand */
.bl-lecteur {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: 100vw; height: 100vh; margin: 0;
}
.bl-lecteur[open] { display: flex; align-items: center; justify-content: center; }
.bl-lecteur::backdrop { background: rgba(20,14,11,.92); }
.bl-lecteur-video { max-width: min(92vw, 540px); max-height: 88vh; width: auto; height: auto; background: #000; }
.bl-lecteur-fermer {
  position: fixed; top: 1.2rem; right: 1.4rem; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.9rem; line-height: 1;
}
.bl-lecteur-fermer:hover { background: rgba(255,255,255,.25); }

/* ── Page introuvable (404.php) ── */
.bl-intro { max-width: 60ch; margin: 1.2rem auto 0; font-family: var(--sans); font-weight: 300; font-size: .98rem; line-height: 1.75; color: rgba(28,20,16,.72); }
.bl-404-liens { margin-top: 2.2rem; }

/* ── Liste sur ordinateur : la colonne sombre passe à gauche ── */
@media (min-width: 1001px) {
  .bl-page:not(.bl-page-article) .bl-grille { grid-template-columns: 300px minmax(0, 1fr); }
  .bl-page:not(.bl-page-article) .bl-barre { order: -1; }
}

/* ── Tablettes et téléphones ── */
@media (max-width: 1000px) {
  .bl-grille { grid-template-columns: 1fr; }
  .bl-barre { position: static; }
}
@media (max-width: 640px) {
  .bl-liste { grid-template-columns: 1fr; }
  .bl-video { flex-basis: 58vw; }
  .bl-barre { padding: 2rem 1.5rem; }
}
