/* Page Enquêtes (maquette « Enquetes-v12 », 16/10/2026) : grammaire « magazine ». Chargée après accueil.css (socle dbh-…).
   Mode clair ; une seule bande charbon (la lettre du marché). Tout est préfixé par dbh-eq-. */

.dbh-eq-tete .uk-container { padding-top: 26px; padding-bottom: 46px; }
.dbh-eq-edition { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 14px; margin-bottom: 36px; border-bottom: 1px solid var(--dbh-trait2); font-size: 13px; color: var(--dbh-gris); animation: dbh-fondu .8s .1s var(--dbh-doux) both; }
.dbh-eq-edition a { color: var(--dbh-gris); text-decoration: none; border-bottom: 1px solid var(--dbh-trait); }
.dbh-eq-edition a:hover { color: var(--dbh-action); border-bottom-color: var(--dbh-action); }
.dbh-eq-edition-titre { font-family: var(--dbh-titre); font-size: 15px; letter-spacing: .02em; color: var(--dbh-encre); }
.dbh-eq-titre-rangee { align-items: flex-end; }
.dbh-eq-tete .dbh-t, .dbh-eq-tete h1.dbh-t, .dbh-eq-tete .dbh-t :where(h1) { font-size: clamp(42px, 5.3vw, 76px); line-height: 1.02; }
.dbh-eq-tete { --dbh-g: 30px; }
@media (min-width: 1200px) { .dbh-eq-tete { --dbh-g: 40px; } }
/* Filet à gauche du chapeau, posé après la gouttière de la grille (qui reste intacte) */
.dbh-s .uk-grid > .dbh-eq-cote { padding-left: calc(var(--dbh-g) + 30px); background: linear-gradient(var(--dbh-trait), var(--dbh-trait)) var(--dbh-g) 0 / 1px 100% no-repeat; }
.dbh-s .dbh-eq-chapo p { margin: 0 0 18px; font-family: var(--dbh-titre); font-weight: 300; font-size: 21px; line-height: 1.45; color: #26292C; }
.dbh-s .dbh-eq-signature p { margin: 0; font-size: 13px; color: var(--dbh-gris); }
.dbh-eq-tete .uk-grid > * { animation: dbh-fondu 1s .2s var(--dbh-doux) both; }
.dbh-eq-tete .uk-grid > .dbh-eq-cote { animation-delay: .35s; }

/* ── Filtres (seulement si des thèmes existent) ─────────────────────────── */
.dbh-eq-filtres { position: sticky; top: 80px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: -40px 0 48px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--dbh-encre); border-bottom: 1px solid var(--dbh-trait2); }
.dbh-eq-filtres-rang { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.dbh-eq-ft { position: relative; min-height: 44px; padding: 20px 2px; margin-right: 34px; background: none; border: 0; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--dbh-gris2); cursor: pointer; white-space: nowrap; transition: color .3s; }
.dbh-eq-ft sup { margin-left: 4px; font-size: 11px; color: #A9AEB2; }
.dbh-eq-ft::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--dbh-action); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--dbh-doux); }
.dbh-eq-ft:hover { color: var(--dbh-encre); }
.dbh-eq-ft:hover::after { transform: scaleX(.35); }
.dbh-eq-ft.is-on { color: var(--dbh-encre); }
.dbh-eq-ft.is-on sup { color: var(--dbh-action); }
.dbh-eq-ft.is-on::after { transform: scaleX(1); }
.dbh-eq-compte { margin: 0; font-size: 13px; color: var(--dbh-gris); white-space: nowrap; }

/* ── Le mur éditorial ───────────────────────────────────────────────────── */
.dbh-eq-articles .uk-container { padding-top: 38px; padding-bottom: 82px; }
.dbh-eq-mur { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 36px; }
.dbh-eq-mur [hidden], .dbh-eq-src[hidden] { display: none !important; }
.dbh-eq-art { position: relative; display: block; min-width: 0; color: inherit !important; text-decoration: none !important; }
.dbh-eq-mur > .sp-4 { grid-column: span 4; } .dbh-eq-mur > .sp-8 { grid-column: span 8; } .dbh-eq-mur > .sp-12 { grid-column: span 12; } .dbh-eq-mur > .r-2 { grid-row: span 2; }
.dbh-eq-ph { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--dbh-trait2); }
.dbh-eq-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--dbh-doux); }
.dbh-eq-art:hover .dbh-eq-ph img { transform: scale(1.045); }
.dbh-eq-rub { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dbh-action); }
.dbh-eq-ti { display: block; margin-bottom: 10px; font-family: var(--dbh-titre); font-weight: 360; letter-spacing: -.02em; line-height: 1.15; font-size: 25px; color: var(--dbh-encre); transition: color .3s; }
.dbh-eq-art:hover .dbh-eq-ti { color: var(--dbh-action); }
.dbh-eq-chapeau { display: block; margin-bottom: 12px; font-size: 16px; line-height: 1.55; color: var(--dbh-texte); }
.dbh-eq-meta { display: block; font-size: 13px; color: var(--dbh-gris); }
.dbh-eq-action { display: none; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--dbh-action); }
.dbh-eq-art:hover .dbh-fl { transform: translateX(5px); }
.dbh-eq-badge { display: none; }

/* Grand dossier : photo pleine, texte posé dessus */
.dbh-eq-art.is-une { min-height: 640px; overflow: hidden; border-radius: 4px; }
.dbh-eq-art.is-une.sp-12 { min-height: 520px; }
.is-une .dbh-eq-ph { position: absolute; inset: 0; }
.is-une .dbh-eq-ph::after { content: ""; position: absolute; inset: 12px; z-index: 1; border: 1px solid rgba(255,255,255,.85); border-radius: 2px; pointer-events: none; }
.is-une::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(23,25,27,0) 22%, rgba(23,25,27,.86) 100%); pointer-events: none; }
.is-une .dbh-eq-badge { position: absolute; left: 48px; top: 44px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fff; border: 1px solid #E1E5EA; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--dbh-encre); }
.is-une .dbh-eq-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--dbh-action); }
.is-une .dbh-eq-corps { position: absolute; left: 48px; right: 48px; bottom: 46px; z-index: 2; }
.is-une .dbh-eq-rub { margin-bottom: 14px; color: #F2C7B3; }
.is-une .dbh-eq-ti, .dbh-eq-art.is-une:hover .dbh-eq-ti { max-width: 720px; margin-bottom: 16px; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.08; color: #fff; }
.is-une .dbh-eq-chapeau { max-width: 640px; margin-bottom: 22px; font-family: var(--dbh-titre); font-weight: 300; font-size: 19px; line-height: 1.45; color: #E4E6E7; }
.is-une .dbh-eq-meta { display: none; }
.is-une .dbh-eq-action { display: inline-flex; color: #fff; }

/* Analyses : trait noir, texte et vignette carrée */
.dbh-eq-art.is-analyse, .dbh-eq-art.is-large { border-top: 1px solid var(--dbh-encre); padding-top: 18px; }
.is-analyse { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 22px; align-items: start; }
.is-analyse .dbh-eq-ph { grid-column: 2; grid-row: 1; aspect-ratio: 1 / 1; }
.is-analyse .dbh-eq-corps { grid-column: 1; grid-row: 1; }

/* Cartes : photo 3/2 au-dessus */
.is-carte .dbh-eq-ph { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.is-carte .dbh-eq-ti { font-size: 27px; line-height: 1.14; }

/* Dernière rangée incomplète : texte et photo côte à côte */
.is-large { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.is-large .dbh-eq-ph { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.is-large .dbh-eq-corps { grid-column: 1; grid-row: 1; }
.is-large .dbh-eq-ti { font-size: 30px; line-height: 1.12; }
.is-large .dbh-eq-action { display: inline-flex; margin-top: 16px; }

/* Données locales (Groléjac) : chiffres réels DVF */
.dbh-eq-donnees { align-self: start; padding: 30px 30px 28px; background: var(--dbh-mineral); border-radius: 4px; }
.dbh-eq-donnees .dbh-eq-ti { margin-bottom: 22px; font-size: 27px; line-height: 1.14; }
.dbh-eq-chiffres { display: block; border-top: 1px solid var(--dbh-encre); }
.dbh-eq-chiffre { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--dbh-trait); }
.dbh-eq-chiffre > span { font-size: 14px; }
.dbh-eq-chiffre b { font-family: 'Manrope', Arial, sans-serif; font-size: 26px; font-weight: 300; letter-spacing: -.02em; color: var(--dbh-encre); white-space: nowrap; }
.dbh-eq-source { display: block; margin: 12px 0 18px; font-size: 12px; line-height: 1.5; color: var(--dbh-gris); }
.dbh-eq-donnees .dbh-eq-action { display: inline-flex; }

/* Entrée des cartes : une seule fois, animation complète */
@keyframes dbh-eq-apparait { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
.dbh-eq-mur.is-pret .dbh-eq-art:not(.is-vu) { opacity: 0; }
.dbh-eq-mur.is-pret .dbh-eq-art.is-vu { animation: dbh-eq-apparait .55s var(--dbh-doux) both; animation-delay: calc(min(var(--i, 0), 6) * 60ms); }
.dbh-eq-vide { font-size: 17px; color: var(--dbh-gris); }

/* ── Sources ────────────────────────────────────────────────────────────── */
.dbh-eq-sources .uk-container { padding-top: 57px; padding-bottom: 61px; }
.dbh-eq-sources .uk-grid { align-items: start; }
.dbh-eq-sources .dbh-t, .dbh-eq-sources h2.dbh-t { font-size: clamp(30px, 2.8vw, 40px); }
.dbh-eq-note-sources { margin: 26px 0 0; font-size: 26px; transform: rotate(-2deg); }
.dbh-eq-src-resume { margin: 0 0 12px; font-size: 13px; color: var(--dbh-gris); }
.dbh-eq-src-lignes { border-top: 1px solid var(--dbh-encre); }
.dbh-eq-src { display: grid; grid-template-columns: 76px minmax(0, 1fr) 170px; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--dbh-trait); animation: dbh-fondu .5s ease both; }
.dbh-eq-src-an { font-family: var(--dbh-titre); font-size: 26px; font-weight: 300; color: var(--dbh-action); }
.dbh-eq-src a { display: block; text-decoration: none !important; color: inherit; }
.dbh-eq-src a b { display: block; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--dbh-encre); }
.dbh-eq-src a span { display: block; font-family: var(--dbh-titre); font-weight: 300; font-size: 16px; line-height: 1.45; color: var(--dbh-texte); transition: color .3s; }
.dbh-eq-src a:hover span { color: var(--dbh-action); }
.dbh-eq-src-cite { font-size: 13px; color: var(--dbh-gris); }
.dbh-eq-voir { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 18px; padding: 6px 0; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--dbh-action); cursor: pointer; }
.dbh-eq-voir .dbh-fl { transition: transform .35s var(--dbh-doux); }
.dbh-eq-voir:hover .dbh-fl { transform: translateX(5px); }
.dbh-eq-voir.is-ouvert .dbh-fl { transform: rotate(-90deg); }

/* ── La lettre du marché : la seule bande charbon ───────────────────────── */
.dbh-s.dbh-eq-lettre, .dbh-s.dbh-eq-lettre .uk-section { background: var(--dbh-encre); color: #A9AEB2; overflow: hidden; }
.dbh-eq-lettre .uk-container { padding-top: 75px; padding-bottom: 75px; }
@media (min-width: 960px) {
  .dbh-eq-lettre .uk-container { padding-right: calc(40% + 40px); min-height: 560px; box-sizing: border-box; }
  .dbh-eq-lettre .uk-grid > :first-child { width: 100%; }
  .dbh-eq-lettre .dbh-eq-col-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 40%; padding: 0; margin: 0; }
  .dbh-eq-lettre .dbh-eq-col-photo > *, .dbh-eq-lettre .dbh-eq-col-photo .dbh-html { height: 100%; margin: 0; }
}
.dbh-eq-lettre .dbh-k, .dbh-eq-lettre .dbh-k p { color: #E9A07F; }
.dbh-eq-lettre .dbh-t, .dbh-eq-lettre h2.dbh-t, .dbh-eq-lettre .dbh-t :where(h2) { color: #fff; font-size: clamp(34px, 3.6vw, 52px); }
.dbh-s.dbh-eq-lettre .dbh-p p { max-width: 540px; color: #D5D8DB; }
.dbh-s.dbh-eq-lettre .dbh-eq-lettre-comment p { font-size: 15px; color: #A9AEB2; }
.dbh-s.dbh-eq-lettre .dbh-eq-lettre-aide p { margin-top: 0; font-size: 14px; color: #A9AEB2; }
.dbh-eq-lettre-aide a { color: #D5D8DB; }
.dbh-s.dbh-eq-lettre .uk-button.uk-button-default { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.dbh-s.dbh-eq-lettre .uk-button.uk-button-default:hover { background: #fff; color: var(--dbh-encre); }
.dbh-eq-lettre-photo { position: relative; height: 100%; min-height: 380px; }
.dbh-eq-lettre-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dbh-eq-lettre-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--dbh-encre) 0%, rgba(23,25,27,0) 35%); }
.dbh-eq-lettre-photo .dbh-note { position: absolute; right: 40px; bottom: 40px; z-index: 2; font-size: 30px; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.5); text-align: right; }

/* ── Téléphone et tablette ──────────────────────────────────────────────── */
@media (max-width: 959px) {
  .dbh-eq-tete .uk-container { padding-top: 20px; padding-bottom: 32px; }
  .dbh-eq-edition { margin-bottom: 24px; }
  .dbh-eq-edition-titre { order: -1; width: 100%; }
  .dbh-s .uk-grid > .dbh-eq-cote { padding-left: 0; padding-top: 18px; background: none; border-top: 1px solid var(--dbh-trait); margin-left: var(--dbh-g); width: calc(100% - var(--dbh-g)); }
  .dbh-s .dbh-eq-chapo p { font-size: 19px; }
  .dbh-eq-filtres { top: 64px; margin: -24px -20px 32px; padding: 0 20px; }
  .dbh-eq-compte { display: none; }
  .dbh-eq-ft { margin-right: 22px; padding: 14px 2px; }
  .dbh-eq-articles .uk-container { padding-top: 32px; padding-bottom: 49px; }
  .dbh-eq-mur { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .dbh-eq-mur > * { grid-column: auto !important; grid-row: auto !important; }
  .dbh-eq-art.is-une, .dbh-eq-art.is-une.sp-12 { min-height: 460px; }
  .is-une .dbh-eq-badge { left: 24px; top: 24px; }
  .is-une .dbh-eq-corps { left: 24px; right: 24px; bottom: 28px; }
  .is-une .dbh-eq-ti, .dbh-eq-art.is-une:hover .dbh-eq-ti { font-size: 28px; }
  .is-une .dbh-eq-chapeau { font-size: 17px; }
  .is-analyse { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; }
  .is-large { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .is-large .dbh-eq-ph { grid-column: 1; grid-row: 1; aspect-ratio: 3 / 2; }
  .is-large .dbh-eq-corps { grid-row: 2; }
  .is-large .dbh-eq-ti, .is-carte .dbh-eq-ti, .dbh-eq-donnees .dbh-eq-ti { font-size: 24px; }
  .dbh-eq-donnees { padding: 24px 20px 22px; }
  .dbh-eq-chiffre b { font-size: 22px; }
  .dbh-eq-sources .uk-container { padding-top: 38px; padding-bottom: 38px; }
  .dbh-eq-src { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .dbh-eq-src-cite { grid-column: 2; }
  .dbh-eq-lettre .uk-container { padding-top: 44px; padding-bottom: 32px; }
  .dbh-eq-lettre .dbh-eq-col-photo { margin-top: 24px; }
  .dbh-eq-lettre-photo { min-height: 260px; margin: 0 -20px; }
  .dbh-eq-lettre-photo::before { background: linear-gradient(180deg, var(--dbh-encre) 0%, rgba(23,25,27,0) 40%); }
  .dbh-eq-lettre-photo .dbh-note { right: 20px; bottom: 24px; font-size: 26px; }
  .dbh-s.dbh-eq-lettre .uk-button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .dbh-eq-mur.is-pret .dbh-eq-art:not(.is-vu) { opacity: 1; }
}

/* 26/10/2026 (Vincent : « le script sur la photo trop près du bord ») : note manuscrite plus loin des bords, proportionnée à l'écran */
@media (min-width: 960px) { .dbh-eq-lettre-photo .dbh-note { right: clamp(48px, 4.5vw, 96px); bottom: clamp(56px, 5vw, 104px); } }
@media (max-width: 959px) { .dbh-eq-lettre-photo .dbh-note { right: 28px; bottom: 30px; } }
