/* Ajouts pour WordPress : textes anciens des billets et des pages, formulaires de l'extension Newsletter. */

/* Accueil sans rubrique Musique : le club prend toute la largeur. */
.duo-grid.duo-solo { grid-template-columns: minmax(0, 1fr); }

/* Couleur rosé (si une rubrique en contient). */
.sw-rose { background: #e6a6a1; }

/* Champ piège pour les robots, invisible. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Billets : liste vide pour une rubrique. */
.b-empty { padding: 24px 0 var(--sec); font-size: 19px; }

/* Images dans les textes anciens. */
.art-body img { max-width: 100%; height: auto; border-radius: var(--r); }
.art-body .fig-in img { display: block; }
.art-body .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 45%; }
.art-body .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 45%; }
.art-body .aligncenter { display: block; margin: 1.6em auto; }
.art-body p:has(> img.alignleft), .art-body p:has(> img.alignright) { display: flow-root; }
.art-body .wp-caption { max-width: 100%; margin: 2em 0; }
.art-body .wp-caption img { display: block; }
.art-body .wp-caption-text, .art-body figcaption { font-size: 15px; color: var(--ink-2); margin-top: .5em; }
.art-body h2, .art-body h3 { line-height: 1.2; }
.art-body ul, .art-body ol { padding-left: 1.2em; }
.art-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-body iframe { max-width: 100%; }
@media (max-width: 560px) { .art-body .alignleft, .art-body .alignright { float: none; max-width: 100%; margin: 1.4em 0; } }

/* Anciennes pages de vins hors catalogue (tableaux). */
.art-body table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; margin: 1.4em 0; }
.art-body td, .art-body th { padding: 8px 10px; border-bottom: 1px solid rgba(30,45,52,.2); text-align: left; vertical-align: top; }
.art-body td:nth-child(n+2) { white-space: nowrap; }
.art-body tr:first-child td { font-weight: 700; }

/* Billet « Les millésimes » : la barre des années reste sous l'en-tête. */
.art-mil .pn { margin-top: 2em; }

/* Pages de l'extension Newsletter (inscription, confirmation, profil, désinscription). */
.nl-page { max-width: 640px; }
.nl-page form { margin: 1em 0 2em; }
.nl-page .tnp-field { margin: 0 0 16px; }
.nl-page .tnp-field label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.nl-page .tnp-field input[type=text], .nl-page .tnp-field input[type=email], .nl-page .tnp-field select, .nl-page .tnp-field textarea {
  width: 100%; min-height: 48px; border: 1.5px solid rgba(30,45,52,.45); border-radius: var(--r); background: var(--stone-hi);
  font: inherit; font-size: 17px; padding: 10px 12px; color: var(--slate);
}
.nl-page .tnp-field input:focus, .nl-page .tnp-field select:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 2px var(--slate); }
.nl-page .tnp-privacy-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.4; }
.nl-page .tnp-privacy-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--slate); flex: none; }
.nl-page .tnp-submit, .nl-page input[type=submit], .nl-page button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r);
  background: var(--slate); color: var(--stone); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.nl-page .tnp-submit:hover, .nl-page input[type=submit]:hover { background: var(--slate-2); }

/* Billet sans image : le monogramme de la maison sur fond d'ardoise. */
.noimg { display: block; position: relative; background: var(--slate); border-radius: var(--r); }
.noimg::after { content: ""; position: absolute; inset: 22%; background: var(--stone); -webkit-mask: var(--mono) center / contain no-repeat; mask: var(--mono) center / contain no-repeat; opacity: .85; }
.blist .noimg { width: 100%; aspect-ratio: 3 / 2; margin-bottom: 14px; }
.blist li:first-child .noimg { grid-row: span 3; aspect-ratio: 16 / 10; margin: 0; }
.post-lead .noimg { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; background: var(--slate-2); }
.post-list .noimg { grid-row: span 2; width: 104px; height: 104px; background: var(--slate-2); }
@media (max-width: 760px) { .blist li:first-child .noimg { margin-bottom: 14px; } }

/* En-tête collé en haut de l'écran pendant le défilement.
   --adm : hauteur de la barre d'administration WordPress (visible seulement quand on est connecté). */
:root { --bar-h: 78px; --adm: 0px; }
html:has(body.admin-bar) { --adm: 32px; }
@media (max-width: 782px) { html:has(body.admin-bar) { --adm: 46px; } }
@media (max-width: 600px) { html:has(body.admin-bar) { --adm: 0px; } } /* la barre d'admin défile avec la page */
html { scroll-padding-top: calc(var(--adm) + var(--bar-h) + 12px); }
.bar { position: sticky; top: var(--adm); box-shadow: 0 1px 0 rgba(30,45,52,.14); }
.t-cellar .bar { box-shadow: 0 1px 0 var(--slate-3); }
.nav.open { max-height: calc(100dvh - var(--adm) - var(--bar-h)); overflow-y: auto; }
/* Les autres éléments collants se placent sous l'en-tête. */
.yrail { top: calc(var(--adm) + var(--bar-h)); }
.filters { top: calc(var(--adm) + var(--bar-h) + 16px); max-height: calc(100dvh - var(--adm) - var(--bar-h) - 32px); }
.mil-y { top: calc(var(--adm) + var(--bar-h) + 72px); }
.art-side .fig, .club-side { top: calc(var(--adm) + var(--bar-h) + 24px); }

/* Mosaïque des terroirs : le nom s'adapte à la largeur de sa case, et aucune case vide. */
.bento { grid-auto-flow: dense; }
.cell { container-type: inline-size; }
.cell-n { font-size: clamp(15px, 8.4cqi, 32px); }
.c-big .cell-n { font-size: clamp(28px, 10cqi, 64px); }
.c-wide .cell-n { font-size: clamp(18px, 6.2cqi, 38px); }
.c-type .cell-n { font-size: clamp(18px, 9.5cqi, 38px); }
@media (max-width: 900px) {
  .cell-n { font-size: clamp(14px, 8.4cqi, 24px); }
  .c-big .cell-n { font-size: clamp(26px, 10cqi, 46px); }
  .c-type .cell-n { font-size: clamp(16px, 9.5cqi, 28px); }
}
