/* Menu des fêtes (Noël 2026), Lumi 20/10/2026. S'appuie sur accueil.css : couleurs, titres, boutons, bandeau bois. */

body.page-template-template-noel { overflow-x: hidden; }
body.page-template-template-noel .poco-breadcrumb { display: none; }
body.page-template-template-noel #content.site-content { padding-top: 0; }

.vn { gap: 56px; }

/* Bandeau d'aperçu (copie de travail, prix de l'an dernier) : collé à la photo d'ouverture.
   « .vn » devant : accueil.css remet toutes les marges des paragraphes de .vh à zéro. */
.vn .vn-apercu {
  margin: 0 calc(50% - 50vw) -56px;
  padding: 10px 24px;
  background: var(--jaune);
  color: var(--encre);
  font-size: 14px;
  font-weight: 700;
}

.vn-ouverture { min-height: 520px; }
.vn-ouverture .vh-ouverture__photo { object-position: 72% 60%; }
.vn-infos .vh-lieu p + p { font-size: 15px; color: rgba(255,255,255,.75); }

/* Rubriques : barre de liens qui reste en haut de l'écran pendant la lecture du menu */
.vn-nav {
  position: sticky; top: 0; z-index: 20;
  margin: 0 calc(50% - 50vw) -24px;
  background: #fff;
  border-bottom: 1px solid var(--trait);
}
.vn-nav__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vn-nav__inner::-webkit-scrollbar { display: none; }
.vn-nav a {
  flex: none;
  padding: 15px 0 12px;
  font-size: 15px; font-weight: 700;
  color: var(--encre);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.vn-nav a:hover, .vn-nav a:focus-visible { border-bottom-color: var(--jaune); }

/* Le menu, présenté comme une carte : une ligne par produit */
.vn-menu { display: flex; flex-direction: column; gap: 64px; }
.vn-section { gap: 14px; scroll-margin-top: 64px; }
.vn-note { color: var(--gris); font-size: 15px; line-height: 1.5; max-width: 720px; }
.vn-photo { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 430; object-fit: cover; border-radius: 8px; }
.vn .vn-rubrique { margin: 14px 0 0; font-family: var(--titre); font-weight: 400; font-size: 22px; color: var(--bois); }

.vn-lignes { list-style: none; margin: 0; padding: 0; }
.vn-ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--trait);
}
.vn-ligne__texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vn-ligne__nom { font-size: 17px; font-weight: 600; line-height: 1.35; }
.vn-ligne__prix { font-size: 15px; font-weight: 700; color: var(--bois); font-variant-numeric: tabular-nums; }
.vn-ligne__attente { font-size: 14px; color: var(--gris); }

.vn-ligne__choix { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.vn-champ { margin: 0; }
.vn .vn-champ select,
.vn .vn-champ input {
  height: 44px; margin: 0;
  padding: 0 10px;
  border: 1px solid #cfc7be; border-radius: 6px;
  background: #fff;
  color: var(--encre);
  font-size: 15px;
  box-shadow: none;
}
.vn .vn-poids { min-width: 220px; }
.vn .vn-qte { width: 64px; text-align: center; padding: 0 4px; }
/* Un bouton par ligne : plus discret que le jaune des boutons principaux, jaune au survol et une fois ajouté */
.vn .vn-ajouter {
  min-width: 104px;
  text-align: center;
  background: #fff;
  border: 1px solid #cfc7be;
  border-bottom: 2px solid #b8aea3;
}
.vn .vn-ajouter:hover, .vn .vn-ajouter.added { background: var(--jaune); border-color: var(--jaune-f); }
.vn-ajouter.loading { opacity: .6; pointer-events: none; }
.vn-ligne .added_to_cart { flex-basis: 100%; text-align: right; font-size: 14px; font-weight: 700; color: var(--bois); }

.vn-fin__texte { font-size: 17px; line-height: 1.5; max-width: 720px; }

/* Carte de la Rôtisserie (template-rotisserie.php, 20/10/2026) : même carte, avec la photo de chaque produit */
body.page-template-template-rotisserie { overflow-x: hidden; }
body.page-template-template-rotisserie .poco-breadcrumb { display: none; }
body.page-template-template-rotisserie #content.site-content { padding-top: 0; }
.vr-tete .vh-retrait__inner { align-items: end; }
.vr-tete__texte { display: flex; flex-direction: column; gap: 14px; }
.vr .vr-tete h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); }
.vr .vr-chapo { font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.88); }
/* Miniatures agrandies le 29/10/2026 (RDV JC du 22/10 : « les photos produits en plus grand ») */
.vn-ligne--vignette { grid-template-columns: 128px minmax(0, 1fr) auto; }
.vn-ligne__vignette { display: block; width: 128px; height: 128px; border-radius: 8px; overflow: hidden; background: #efe9e2; }
.vn-ligne__vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn a.vn-ligne__nom { color: var(--encre); }
.vn a.vn-ligne__nom:hover { color: var(--bois); }
.vn-ligne__detail { font-size: 14px; line-height: 1.4; color: var(--gris); }
.vn-nav a.vr-nav-noel { color: var(--bois); }
@media (max-width: 760px) {
  /* .vn-ligne.vn-ligne--vignette : plus précis que la règle « .vn-ligne { 1fr } » plus bas, qui mettait la photo seule sur sa ligne (29/10) */
  .vn-ligne.vn-ligne--vignette { grid-template-columns: 96px minmax(0, 1fr); }
  .vn-ligne__vignette { width: 96px; height: 96px; }
  .vn-ligne--vignette .vn-ligne__choix, .vn-ligne--vignette .vn-ligne__attente { grid-column: 1 / -1; }
}

/* Sur ordinateur, toutes les rubriques restent visibles (deux lignes au besoin) ; sur téléphone, la barre défile */
@media (min-width: 901px) {
  .vn-nav__inner { flex-wrap: wrap; overflow: visible; gap: 0 20px; }
}
.vn-fin .vh-bouton { align-self: flex-start; }

@media (max-width: 760px) {
  .vn-ligne { grid-template-columns: 1fr; }
  .vn-ligne__choix { justify-content: flex-start; }
  .vn .vn-poids { min-width: 0; width: 100%; }
  .vn-champ:not(.vn-champ--qte) { flex: 1 1 100%; }
  .vn-ajouter { flex: 1 1 auto; }
  .vn-ligne .added_to_cart { text-align: left; }
}
@media (max-width: 600px) {
  .vn-apercu { padding: 10px 16px; }
  .vn-nav__inner { padding: 0 16px; gap: 22px; }
  .vn-ouverture .vh-ouverture__photo { object-position: 64% 50%; }
}

/* 16/11/2026 : photo en tête de la rubrique « Produits farcis » (une seule photo plutôt que la même vignette sur chaque rôti). */
.vn-intro { display: flex; align-items: center; gap: 24px; }
.vn-intro__photo { flex: none; width: 240px; height: 240px; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .vn-intro { gap: 16px; } .vn-intro__photo { width: 112px; height: 112px; } }


/* 17/11/2026 (Thibault) : forme du dépliant pour les familles dont des photos manquent. En tête, la photo du produit qui
   représente la famille ; puis une ligne par produit : nom, points de conduite, prix ; commande à droite (dessous sur téléphone). */
.vn-intro__photo { object-fit: contain; background: #fff; }
@media (min-width: 601px) { .vn-intro { gap: 32px; } .vn-intro__photo { width: 280px; height: 280px; } }
.vn-lignes--liste .vn-ligne { padding: 12px 0; }
.vn-ligne__tete { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vn-ligne--liste .vn-ligne__nom { flex: 0 1 auto; }
.vn-ligne__points { flex: 1 1 auto; min-width: 16px; border-bottom: 2px dotted #b8aea3; transform: translateY(-4px); }
.vn-ligne--liste .vn-ligne__prix { flex: none; white-space: nowrap; font-size: 16px; }
@media (max-width: 600px) {
  /* Sur téléphone, la photo de la famille passe au-dessus de la note, sur toute la largeur (112 px, elle ne se voyait pas). */
  .vn-intro { flex-direction: column; align-items: stretch; gap: 12px; }
  .vn-intro__photo { width: 100%; height: 200px; }
}
