/* Domaine Dubost : retouches posées sur le thème WordPress d'origine.
   En-tête et menu refaits, page Notes, recherche. Angles droits partout. */

:root {
  --encre: #1d1c1a;
  --texte: #666;
  --or: #c8a47d;
  --or-texte: #8c6d3f; /* or assez foncé pour du petit texte sur blanc (AA) */
  --filet: #ebe7e1;
  --dbh-haut: 84px;
  --dbh-compact: 64px;
}

/* ------------------------------------------------------------ en-tête */

.dbh {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.dbh.compact {
  border-bottom-color: var(--filet);
  box-shadow: 0 6px 24px rgba(29, 28, 26, .05);
}
.dbh-barre {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1240px;
  height: var(--dbh-haut);
  margin: 0 auto;
  padding: 0 32px;
  transition: height .3s cubic-bezier(.16, 1, .3, 1);
}
.dbh.compact .dbh-barre { height: var(--dbh-compact); }

.dbh-logo { display: block; line-height: 0; }
.dbh-logo img {
  display: block;
  width: auto;
  height: 64px;
  transition: height .3s cubic-bezier(.16, 1, .3, 1);
}
.dbh.compact .dbh-logo img { height: 46px; }

.dbh-nav { display: flex; align-items: center; gap: 30px; }
.dbh-gauche { justify-content: flex-end; }
.dbh-droite { justify-content: flex-start; }

.dbh-lien {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-family: "Arapey", serif;
  font-size: 17px;
  line-height: 1;
  color: var(--encre);
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s;
}
.dbh-lien::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.dbh-lien:hover, .dbh-lien:focus-visible { color: var(--or-texte); }
.dbh-lien:hover::after, .dbh-lien.actif::after, .dbh-deroulant:focus-within > .dbh-lien::after { transform: scaleX(1); }

/* menus déroulants */
.dbh-deroulant { position: relative; }
.dbh-deroulant > .dbh-lien { padding-right: 16px; }
.dbh-deroulant > .dbh-lien::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.dbh-sous {
  position: absolute;
  top: 100%;
  left: -24px;
  min-width: 240px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--filet);
  box-shadow: 0 16px 40px rgba(29, 28, 26, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s .25s;
}
.dbh-deroulant:hover .dbh-sous, .dbh-deroulant:focus-within .dbh-sous {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.dbh-sous li { margin: 0; }
.dbh-sous a {
  display: block;
  padding: 9px 24px;
  font-family: "Arapey", serif;
  font-size: 16px;
  color: var(--texte);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.dbh-sous a:hover, .dbh-sous a:focus-visible { color: var(--encre); background: #faf9f7; }
.dbh-sous a.actif { color: var(--or-texte); }

/* recherche */
.dbh-loupe, .dbh-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 0 -8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--encre);
  cursor: pointer;
}
.dbh-loupe-icone {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url(../wp-content/themes/dubost/assets/images/search-icon.svg) center / contain no-repeat;
  mask: url(../wp-content/themes/dubost/assets/images/search-icon.svg) center / contain no-repeat;
  transition: background-color .2s;
}
.dbh-loupe:hover { color: var(--or-texte); }
.dbh-loupe:active, .dbh-burger:active { transform: translateY(1px); }

.dbh-recherche {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 32px 28px;
}
.dbh-recherche[hidden] { display: none; }
.dbh-recherche input {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--encre);
  border-radius: 0;
  background: transparent;
  font-family: "Arapey", serif;
  font-size: 22px;
  font-style: italic;
  color: var(--encre);
  outline: none;
}
.dbh-recherche input::placeholder { color: #8a8580; }
.dbh-recherche input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.dbh-recherche input:focus-visible { border-bottom-color: var(--or); box-shadow: 0 1px 0 var(--or); }
.dbh-resultats { margin: 18px 0 0; padding: 0; list-style: none; }
.dbh-resultats a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--filet);
  text-decoration: none;
}
.dbh-resultats strong {
  display: block;
  font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--encre);
}
.dbh-resultats span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--texte); }
.dbh-resultats a:hover strong, .dbh-resultats a:focus-visible strong { color: var(--or-texte); }
.dbh-recherche-vide { margin: 16px 0 0; font-style: italic; color: var(--texte); }

/* burger (mobile) */
.dbh-burger { display: none; position: relative; }
.dbh-burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.dbh-burger span:first-child { top: 18px; }
.dbh-burger span:last-child { top: 25px; }
.dbh-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.dbh-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* menu plein écran (mobile) */
.dbm {
  position: fixed;
  inset: var(--dbh-compact) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding: 28px 24px 32px;
  background: #fff;
  animation: dbm-entree .3s cubic-bezier(.16, 1, .3, 1);
}
.dbm[hidden] { display: none; }
@keyframes dbm-entree { from { opacity: 0; transform: translateY(-8px); } }
.dbm-liste, .dbm-liste ul { margin: 0; padding: 0; list-style: none; }
.dbm-liste > li { padding: 14px 0; border-bottom: 1px solid var(--filet); }
.dbm-liste > li > a, .dbm-groupe {
  display: block;
  font-family: "Old Standard TT", serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--encre);
  text-decoration: none;
}
.dbm-liste ul { margin-top: 8px; }
.dbm-liste ul a {
  display: block;
  padding: 7px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--texte);
  text-decoration: none;
}
.dbm-liste a.actif { color: var(--or-texte); }
.dbm-pied { display: grid; gap: 10px; padding-top: 28px; }
.dbm-pied a { font-size: 17px; color: var(--encre); text-decoration: none; }

/* lien d'évitement */
.dbh-evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--encre);
  color: #fff;
  text-decoration: none;
}
.dbh-evitement:focus { top: 12px; color: #fff; }

.dbh a:focus-visible, .dbh button:focus-visible, .dbm a:focus-visible {
  outline: 1px solid var(--or);
  outline-offset: 4px;
}

@media (max-width: 1099px) {
  .dbh-barre { grid-template-columns: auto 1fr auto auto; height: var(--dbh-compact); padding: 0 12px 0 20px; gap: 8px; }
  .dbh.compact .dbh-barre { height: var(--dbh-compact); }
  .dbh-gauche, .dbh-droite .dbh-lien, .dbh-droite .dbh-deroulant { display: none; }
  .dbh-logo { grid-column: 1; grid-row: 1; }
  .dbh-logo img, .dbh.compact .dbh-logo img { height: 44px; }
  .dbh-droite { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 0; }
  .dbh-burger { display: inline-flex; grid-column: 4; grid-row: 1; margin: 0; }
  .dbh-recherche { padding: 4px 20px 20px; }
  .dbh-recherche input { font-size: 19px; }
}
@media (min-width: 1100px) { .dbm { display: none !important; } }

body.dbm-ouvert { overflow: hidden; }

/* ------------------------------------------------------------ renvoi vers les notes */

.dbn-renvoi { padding: 8px 0 72px; }

/* ------------------------------------------------------------ page Notes */

.dbn { max-width: 1080px; margin: 0 auto; padding: 72px 0 40px; }
.dbn-intro { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.dbn-intro p { margin: 1.2em auto 0; text-wrap: pretty; }

.dbn-gamme { margin-bottom: 72px; }
.dbn-gamme-titre {
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--encre);
  font-family: "Old Standard TT", serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--encre);
}
.dbn-entetes, .dbn-vin {
  display: grid;
  grid-template-columns: 56px minmax(170px, 1fr) 1.45fr 1.15fr 1.1fr;
  align-items: center;
  column-gap: 28px;
}
.dbn-entetes { padding: 14px 0 6px; }
.dbn-entetes img { display: block; height: auto; }
.dbn-entetes span:nth-child(3) img { width: 96px; }
.dbn-entetes span:nth-child(4) img { width: 66px; }
.dbn-entete-texte { font-family: "Old Standard TT", serif; font-size: 15px; font-style: italic; color: var(--encre); }
.dbn-nom a { display: block; color: inherit; text-decoration: none; }
.dbn-nom a:hover .dbn-appellation, .dbn-nom a:focus-visible .dbn-appellation { color: var(--or-texte); }
.dbn-autres .dbn-note small { white-space: nowrap; }

.dbn-liste { margin: 0; padding: 0; list-style: none; }
.dbn-vin { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.dbn-vin:last-child { border-bottom: 0; }
.dbn-bouteille { display: block; width: 44px; height: auto; margin: 0 auto; }
.dbn-appellation {
  display: block;
  font-family: "Old Standard TT", serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--encre);
}
.dbn-cuvee { display: block; margin-top: 2px; font-style: italic; color: var(--texte); }

.dbn-critique { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.dbn-qui { display: none; }
.dbn-note {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Old Standard TT", serif;
  font-size: 26px;
  line-height: 1;
  color: var(--encre);
  font-variant-numeric: lining-nums tabular-nums;
}
.dbn-note small {
  margin-bottom: 4px;
  font-family: "Arapey", serif;
  font-size: 14px;
  font-style: italic;
  color: var(--texte);
}

.dbn-fiches { padding-top: 24px; }
.dbn-grille {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 36px 24px;
  margin-top: 48px;
}
.dbn-fiche { display: block; text-decoration: none; }
.dbn-fiche img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--filet);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s;
}
.dbn-fiche:hover img, .dbn-fiche:focus-visible img { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(29, 28, 26, .1); }
.dbn-fiche span { display: block; margin-top: 12px; font-size: 15px; line-height: 1.35; color: var(--texte); }
.dbn-fiche:focus-visible { outline: 1px solid var(--or); outline-offset: 6px; }

/* agrandissement d'une fiche */
.dbn-loupe {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 19, 18, .86);
  cursor: zoom-out;
  animation: dbm-entree .25s ease-out;
}
.dbn-loupe img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }

@media (max-width: 899px) {
  .dbn { padding-top: 48px; }
  .dbn-entetes { display: none; }
  .dbn-vin { grid-template-columns: 44px 1fr; row-gap: 12px; column-gap: 18px; align-items: start; padding: 20px 0; }
  .dbn-bouteille { grid-row: 1 / span 3; width: 40px; }
  .dbn-critique { grid-column: 2; }
  .dbn-vide { display: none; }
  .dbn-qui {
    display: block;
    flex-basis: 100%;
    font-size: 14px;
    font-style: italic;
    color: var(--or-texte);
  }
  .dbn-grille { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ------------------------------------------------------------ page Vins */

.dbv { max-width: 1120px; margin: 0 auto; padding: 72px 0 8px; }
.dbv-gamme { margin-bottom: 104px; }
.dbv-texte { max-width: 560px; margin: 1.1em auto 0; text-align: center; text-wrap: pretty; }
.dbv-grille {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* la dernière rangée incomplète reste centrée */
  gap: 56px 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.dbv-vin {
  flex: 0 0 calc((100% - 3 * 32px) / 4);
  margin: 0;
  text-align: center;
}
.dbv-vin img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  aspect-ratio: 740 / 1000;
  margin: 0 auto 22px;
}
.dbv-cepage {
  display: block;
  font-family: "Old Standard TT", serif;
  font-size: 15px;
  font-style: italic;
  color: var(--or-texte);
}
.dbv-nom {
  margin: 4px 0 0;
  font-family: "Old Standard TT", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--encre);
}
.dbv-detail { display: block; margin-top: 4px; font-style: italic; color: var(--texte); }

@media (max-width: 991px) {
  .dbv-vin { flex-basis: calc((100% - 2 * 32px) / 3); }
}
@media (max-width: 600px) {
  .dbv { padding-top: 48px; }
  .dbv-gamme { margin-bottom: 72px; }
  .dbv-grille { gap: 40px 16px; margin-top: 36px; }
  .dbv-vin { flex-basis: calc((100% - 16px) / 2); }
  .dbv-nom { font-size: 19px; }
  .dbv-detail { font-size: 16px; }
}

/* cartes de la grille Vins qui mènent à une fiche */
.dbv-lien { display: block; color: inherit; text-decoration: none; }
.dbv-lien:hover, .dbv-lien:focus { color: inherit; text-decoration: none; }
.dbv-lien img { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.dbv-lien:hover img, .dbv-lien:focus-visible img { transform: translateY(-6px); }
.dbv-voir {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-style: italic;
  color: var(--or-texte);
}
.dbv-voir::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.dbv-lien:hover .dbv-voir::after, .dbv-lien:focus-visible .dbv-voir::after { transform: scaleX(1); }
.dbv-lien:focus-visible { outline: 1px solid var(--or); outline-offset: 8px; }

/* ------------------------------------------------------------ page détail d'un vin */

.dbf { max-width: 1160px; margin: 0 auto; padding: 40px 0 112px; }
.dbf-retour {
  position: relative;
  display: inline-block;
  padding-left: 16px;
  font-size: 16px;
  font-style: italic;
  color: var(--texte);
  text-decoration: none;
}
.dbf-retour::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.dbf-retour:hover, .dbf-retour:focus-visible { color: var(--or-texte); }

.dbf-haut {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: start;
  margin-top: 24px;
}
.dbf-photo { position: sticky; top: 96px; }
.dbf-photo img { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.dbf-texte { padding-top: 48px; }
.dbf-gamme {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-size: 20px;
  font-style: italic;
  color: var(--or-texte);
}
.dbf-titre {
  margin: 6px 0 0;
  font-family: "Old Standard TT", serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--encre);
  text-wrap: balance;
}
.dbf-titre span {
  display: block;
  margin-top: 6px;
  padding-bottom: 4px;
  font-size: 32px;
  font-style: italic;
  line-height: 1.15;
  color: var(--texte);
}
.dbf-degustation {
  max-width: 60ch;
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.65;
  color: #555;
  text-wrap: pretty;
}
.dbf-cles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin: 40px 0 0;
  border-top: 1px solid var(--encre);
}
.dbf-cles div { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.dbf-cles dt, .dbf-liste dt {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--or-texte);
}
.dbf-cles dd {
  margin: 4px 0 0;
  font-family: "Old Standard TT", serif;
  font-size: 19px;
  line-height: 1.3;
  color: var(--encre);
}

.dbf-h2 {
  margin: 0 0 36px;
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--encre);
}
.dbf-technique { margin-top: 112px; padding-top: 48px; border-top: 1px solid var(--filet); }
.dbf-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.dbf-colonnes h3 {
  margin: 0 0 18px;
  font-family: "Old Standard TT", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--encre);
}
.dbf-liste { margin: 0; }
.dbf-liste div + div { margin-top: 20px; }
.dbf-liste dd { margin: 4px 0 0; font-size: 18px; line-height: 1.55; color: #555; }

.dbf-encours {
  max-width: 720px;
  padding: 28px 32px;
  background: #faf9f7;
  border-left: 2px solid var(--or);
}
.dbf-encours p { margin: 0; font-size: 18px; line-height: 1.6; color: #555; }
.dbf-encours .dbf-encours-titre {
  margin-bottom: 8px;
  font-family: "Old Standard TT", serif;
  font-size: 24px;
  font-style: italic;
  color: var(--encre);
}
.dbf-encours a { color: var(--or-texte); white-space: nowrap; }

.dbf-notes { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--filet); }
.dbf-critique {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
}
.dbf-critique h3 {
  margin: 0;
  font-family: "Old Standard TT", serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--encre);
}
.dbf-puces { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.dbf-plus { margin: 24px 0 0; }
.dbf-plus a { font-style: italic; color: var(--or-texte); }

.dbf-gamme-autres { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--filet); }
.dbf-gamme-autres .dbf-h2 { text-align: center; }
.dbv-petite { margin-top: 0; gap: 40px 28px; }
.dbv-petite .dbv-vin { flex-basis: 180px; }
.dbv-petite img { max-width: 160px; margin-bottom: 16px; }
.dbv-petite .dbv-nom { display: block; font-size: 19px; }

@media (max-width: 899px) {
  .dbf { padding-top: 24px; }
  .dbf-haut { grid-template-columns: 1fr; gap: 0; }
  .dbf-photo { position: static; }
  .dbf-photo img { max-width: 300px; }
  .dbf-texte { padding-top: 8px; text-align: center; }
  .dbf-titre { font-size: 40px; }
  .dbf-titre span { font-size: 26px; }
  .dbf-degustation { margin-left: auto; margin-right: auto; font-size: 18px; text-align: left; }
  .dbf-cles { text-align: left; }
  .dbf-technique, .dbf-notes, .dbf-gamme-autres { margin-top: 64px; padding-top: 36px; }
  .dbf-h2 { font-size: 30px; margin-bottom: 24px; }
  .dbf-colonnes { grid-template-columns: 1fr; gap: 40px; }
  .dbf-critique { grid-template-columns: 1fr; gap: 10px; }
  .dbv-petite .dbv-vin { flex-basis: calc((100% - 16px) / 2); }
}

/* ------------------------------------------------------------ accueil : section des bouteilles */

.dbg h6.special-title {
  margin: 0;
  padding: 120px 0 56px;
  font-size: 46px;
  line-height: 1.1;
}
.dbg .wpb_wrapper > .title-subtitle-box:first-child h6.special-title { padding-top: 56px; }
.dbg h6.special-title span { margin-bottom: 8px; font-size: 20px; }

.dbg .vc_inner { margin-bottom: 56px; }
.dbg .vc_inner .wpb_single_image { margin-bottom: 18px !important; }
.dbg .vc_inner .vc_figure, .dbg .vc_inner .vc_single_image-wrapper { display: block; width: 100%; }
.dbg .vc_inner .wpb_single_image img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 5 / 8; /* la bouteille remplit le cadre : on rogne le blanc des côtés */
  margin: 0 auto;
  object-fit: cover;
}
.dbg .vc_inner .title-subtitle-box h1.special-title { font-size: 22px !important; line-height: 1.2 !important; }
.dbg .vc_inner .box-description { margin-top: 3px; }
.dbg .vc_inner .box-description p { margin: 0; font-size: 17px; }

.dbg-lien img { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.dbg-lien:hover img, .dbg-lien:focus-visible img { transform: translateY(-6px); }
.dbg-lien:focus-visible, .dbg-nom:focus-visible { outline: 1px solid var(--or); outline-offset: 6px; }
.dbg-nom, .dbg-nom:visited { color: inherit; text-decoration: none; transition: color .2s; }
.dbg-nom:hover, .dbg-nom:focus-visible { color: var(--or-texte); }

@media (max-width: 767px) {
  .dbg h6.special-title { padding: 80px 0 32px; font-size: 36px; }
  .dbg .wpb_wrapper > .title-subtitle-box:first-child h6.special-title { padding-top: 32px; }
  .dbg .vc_inner { display: flex; flex-wrap: wrap; margin-bottom: 0; }
  .dbg .vc_inner::before, .dbg .vc_inner::after { display: none; }
  .dbg .vc_inner .wpb_column { width: 50%; margin-bottom: 36px; }
  .dbg .vc_inner .wpb_single_image { margin-bottom: 12px !important; }
  .dbg .vc_inner .title-subtitle-box h1.special-title { font-size: 19px !important; }
  .dbg .vc_inner .box-description p { font-size: 15px; }
}

/* ------------------------------------------------------------ dérive au défilement
   Photos : le cadre reste fixe, la photo (120 %) glisse de haut en bas à l'intérieur.
   Titres de section : titre et sous-titre arrivent en sens opposés et se posent au milieu de l'écran. Animation CSS liée au défilement
   (navigateurs qui la connaissent ; ailleurs, tout reste immobile). */

html, body { overflow-x: clip; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dbd, .page-header-image, .swiper-slide {
      overflow: hidden;
      view-timeline: --dbd block;
    }
    .dbd > img, .page-header-image > img, .swiper-slide > img {
      animation: dbd-photo linear both;
      animation-timeline: --dbd;
    }
    /* Titres : le titre arrive de la gauche, le sous-titre (span) de la droite ;
       ils se rejoignent quand le titre atteint le milieu de l'écran, puis ne bougent plus. */
    #content .title-subtitle-box .special-title, .dbf-h2 {
      view-timeline: --dbt block;
      animation: dbd-titre linear both;
      animation-timeline: --dbt;
      animation-range: entry 0% cover 50%;
    }
    #content .title-subtitle-box .special-title > span {
      animation: dbd-sous-titre linear both;
      animation-timeline: --dbt;
      animation-range: entry 0% cover 50%;
    }
    /* pas sur les noms des vins sous les bouteilles de l'accueil : ce ne sont pas des titres de section */
    #content .dbg .vc_inner .special-title { animation: none; }
  }
}
@keyframes dbd-photo {
  from { transform: translateY(-8%) scale(1.2); }
  to { transform: translateY(8%) scale(1.2); }
}
:root { --dbt: 48px; } /* décalage de départ des titres */
@media (max-width: 767px) { :root { --dbt: 14px; } }
@keyframes dbd-titre {
  from { transform: translateX(calc(var(--dbt) * -1)); }
  to { transform: none; }
}
/* le span suit son titre : il part du double, à l'écran il est décalé de --dbt vers la droite */
@keyframes dbd-sous-titre {
  from { transform: translateX(calc(var(--dbt) * 2)); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dbh, .dbh *, .dbm, .dbn-fiche img, .dbn-loupe, .dbv-lien img, .dbv-voir::after, .dbg-lien img { transition: none !important; animation: none !important; }
}

/* boutons de l'en-tête : neutraliser le fond doré que le thème met sur les boutons */
.dbh .dbh-loupe, .dbh .dbh-burger,
.dbh .dbh-loupe:hover, .dbh .dbh-burger:hover,
.dbh .dbh-loupe:focus, .dbh .dbh-burger:focus,
.dbh .dbh-loupe:active, .dbh .dbh-burger:active { background: transparent; box-shadow: none; }

/* le lecteur de musique passe sous le menu mobile ouvert */
body.dbm-ouvert #themify-audio-dock { visibility: hidden; }
