/**
 * components.css
 * Reusable UI components — buttons (.porta-btn), cards, badges, trust bar,
 * and other shared patterns used across multiple pages.
 *
 * @package astra-child
 */

/* ── Buttons ─────────────────────────────────────────────────────────────── */

/* Base button — all variants extend this */
.porta-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  /* 0.3s matches design.md §6.1 — all interactive elements use 0.3s ease */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Primary — burgundy fill, white text */
.porta-btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.porta-btn--primary:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

/* Secondary — gold fill, white text */
.porta-btn--secondary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.porta-btn--secondary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Outline — transparent fill, burgundy border and text */
.porta-btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.porta-btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Light — for use on dark/burgundy backgrounds */
.porta-btn--light {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.porta-btn--light:hover {
  background-color: var(--color-white);
  color: var(--color-accent);
}

/*
 * Contact Form 7 submit button.
 * CF7 outputs <input type="submit" class="wpcf7-submit"> — not a WC button, not
 * inside .woocommerce, so woocommerce.css doesn't cover it. Style here (globally
 * loaded) to match .porta-btn--primary appearance.
 */
/*
 * Astra ships contact-form-7-main.min.css which styles .wpcf7-submit with
 * the Customizer accent color (WooCommerce blue by default).
 * !important is required on background/border because Astra's compatibility
 * stylesheet loads after ours and uses the same class specificity.
 */
.wpcf7-submit {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--color-accent) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-accent) !important;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: var(--color-gold) !important;
  border-color: var(--color-gold) !important;
  color: var(--color-white) !important;
}

/* White — solid white fill for very dark backgrounds (e.g. --color-earth CTA) */
.porta-btn--white {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}

.porta-btn--white:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ── Full-bleed sections ─────────────────────────────────────────────────── */

/*
 * Sections with colored backgrounds must span the full viewport, but Astra Free
 * wraps all content in .ast-container (max-width: ~1240px, margin: auto).
 * Negative margins push each section's edges to the viewport boundary — the same
 * technique Astra uses internally for .alignfull Gutenberg blocks.
 * Requires overflow-x: hidden on body (set in base.css).
 */
.porta-hero,
.porta-trust,
.porta-wine-lineup,
.porta-visit,
.porta-degustation__header,
.porta-degustation-cta {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.porta-hero {
  position: relative;
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Background image path relative to this CSS file (assets/css/ → assets/images/) */
  background-image: url('../images/hero-accueil.jpg');
  background-size: cover;
  background-position: center;
  /* Fallback color shown before image loads or when file is not yet uploaded */
  background-color: var(--color-accent);
  overflow: hidden;
}

/* Dark overlay for text legibility over photography.
   rgba() is used intentionally — CSS custom properties cannot express alpha alone. */
.porta-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.porta-hero__content {
  position: relative;
  z-index: 1;
  padding-inline: 1.5rem;
  max-width: 720px;
}

.porta-hero__logo {
  width: 80px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.porta-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.porta-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.porta-hero__tagline {
  font-size: var(--text-lg);
  color: var(--color-white);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.porta-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .porta-hero__title {
    font-size: var(--text-5xl);
  }

  .porta-hero__logo {
    width: 110px;
  }
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */

.porta-trust {
  background-color: var(--color-accent);
  padding-block: 1.5rem;
}

.porta-trust__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

/* Reset list styles — Astra's global ul adds bullets and padding */
.porta-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents; /* lets the li items participate in the parent flex layout */
}

.porta-trust__item {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .porta-trust__inner {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }

  .porta-trust__item + .porta-trust__item {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 2rem;
    margin-left: 2rem;
  }
}

/* ── Brand story teaser ──────────────────────────────────────────────────── */

.porta-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.porta-story__image {
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.porta-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder shown when no image is set */
.porta-story__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--text-sm);
}

.porta-story__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.porta-story__title {
  font-size: var(--text-3xl);
  margin-bottom: 1.25rem;
}

.porta-story__body {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .porta-story__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .porta-story__title {
    font-size: var(--text-4xl);
  }
}

/* ── Section headings (shared pattern) ───────────────────────────────────── */

.porta-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.porta-section-header__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.porta-section-header__title {
  font-size: var(--text-3xl);
}

@media (min-width: 768px) {
  .porta-section-header__title {
    font-size: var(--text-4xl);
  }
}

/* ── Featured wines grid ─────────────────────────────────────────────────── */

/* ── Wine lineup (homepage section 4) ───────────────────────────────────── */
/*
 * Full-bleed image section. Fixed height; the <img> is absolutely positioned
 * at 130% of section height (extra 15% top + bottom) so the parallax JS
 * has room to translate it vertically without exposing gaps.
 *
 * Tinted placeholder (--color-bg-alt) shows until lineup-vins.jpg is dropped
 * in assets/images/ — no code change needed when the file lands.
 */
.porta-wine-lineup {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background-color: var(--color-earth); /* placeholder until image is present */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .porta-wine-lineup {
    min-height: 500px;
  }
}

/* The actual bottle-lineup photo. Sized taller than the container so
   the parallax translation never reveals a gap at top or bottom. */
.porta-wine-lineup__image {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: center center;
  display: block;
  will-change: transform; /* hint browser to composite on GPU for smooth scroll */
}

/* Subtle dark overlay — ensures button and title are readable over any image */
.porta-wine-lineup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

/* Text + CTA stacked and centred in the section */
.porta-wine-lineup__content {
  position: relative; /* above the overlay (no z-index needed — DOM order) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* ── Events carousel ─────────────────────────────────────────────────────── */

/* Header row: title left, arrow buttons right */
.porta-events__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.porta-events__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin: 0;
}

@media (min-width: 768px) {
  .porta-events__title {
    font-size: var(--text-3xl);
  }
}

/* Arrow buttons — circular, burgundy outline */
.porta-events__arrows {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.porta-events__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.porta-events__arrow:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-white);
}

.porta-events__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Viewport clips overflow — shows only the visible card(s) */
.porta-events__viewport {
  overflow: hidden;
}

/* Track slides horizontally via JS transform */
.porta-events__track {
  display: flex;
  gap: 2rem;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Mobile: 1 card fills the full viewport */
.porta-events__track .porta-event-card {
  flex: 0 0 100%;
  min-width: 0;
}

/* Desktop: 2 cards side by side — each half minus half the gap */
@media (min-width: 768px) {
  .porta-events__track .porta-event-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

/* ── Agenda archive page — plain 2-col grid (not a carousel) ─────────────── */

.porta-events-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .porta-events-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Single evenement page ───────────────────────────────────────────────── */
/* Hide "By [author] / [date]" — not relevant context for event posts */
.single-evenement .entry-meta {
  display: none;
}

/* ── Visit band ──────────────────────────────────────────────────────────── */

.porta-visit {
  background-color: var(--color-accent);
  text-align: center;
  padding: var(--space-section-sm) 0;
}

@media (min-width: 768px) {
  .porta-visit {
    padding: var(--space-section) 0;
  }
}

.porta-visit__title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.porta-visit__hours {
  color: var(--color-white);
  opacity: 0.85;
  margin-bottom: 2rem;
  font-size: var(--text-lg);
}

.porta-visit__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .porta-visit__title {
    font-size: var(--text-4xl);
  }
}

/* ── Wine card ───────────────────────────────────────────────────────────── */

.porta-wine-card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Highlighted treatment for homepage featured products */
.porta-wine-card--featured {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.porta-wine-card__image {
  /*
   * Fixed height rather than aspect-ratio keeps the card compact at any column
   * width. With aspect-ratio: 3/4, a 580px desktop column produces a 773px-tall
   * image — card body (name, price, CTA) falls below the fold.
   * object-fit: contain on the img shows the full bottle without cropping
   * (correct for tall product images on a white background).
   * White background (not --color-bg-alt) so the bottle photo blends cleanly.
   */
  height: 280px;
  background-color: var(--color-white);
  overflow: hidden;
}

@media (min-width: 768px) {
  .porta-wine-card__image {
    height: 320px;
  }
}

.porta-wine-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* padding gives the bottle visual breathing room on the white background */
  padding: 0.75rem;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.porta-wine-card:hover .porta-wine-card__image img {
  transform: scale(1.03);
}

.porta-wine-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.porta-wine-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.porta-wine-card__title {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.porta-wine-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.porta-wine-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.porta-wine-card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
}

/* ── Event card ──────────────────────────────────────────────────────────── */

.porta-event-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  overflow: hidden;             /* image respects border-radius at top */
  display: flex;
  flex-direction: column;
  position: relative;           /* anchor for the stretched link ::after */
}

/* Thumbnail — 16:6 (≈ 16:9 height reduced by 1/3) */
.porta-event-card__image {
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background-color: var(--color-bg);
}

.porta-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.porta-event-card:hover .porta-event-card__image img {
  transform: scale(1.03);
}

/* Padded text content below the image */
.porta-event-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.porta-event-card__date {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.porta-event-card__title {
  font-size: var(--text-xl);
}

/* Stretched link: ::after covers the whole card, making it fully clickable.
   Screen readers see only the title text — no duplicate links. */
.porta-event-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.porta-event-card__lieu {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin: 0;
}

.porta-event-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── Agenda page ─────────────────────────────────────────────────────────── */

/* Full-bleed header — same negative-margin technique as .porta-catalog__header */
.porta-agenda__header {
  background-color: var(--color-bg-alt);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.porta-agenda__intro {
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* Empty state — shown when no events are published yet */
.porta-agenda__empty {
  text-align: center;
  padding-block: 4rem;
}

.porta-agenda__empty-text {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  max-width: var(--max-width-text);
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Contact page ────────────────────────────────────────────────────────── */

/* Full-bleed header — same negative-margin technique as .porta-agenda__header */
.porta-contact__header {
  background-color: var(--color-bg-alt);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.porta-contact__intro {
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* Two-column grid: form (wider) + info sidebar */
.porta-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .porta-contact__grid {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }
}

/* Info sidebar — each item is a label/value pair */
.porta-contact__info-item {
  margin-bottom: 1.75rem;
}

.porta-contact__info-item:last-child {
  margin-bottom: 0;
}

.porta-contact__info-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.porta-contact__info-value {
  color: var(--color-text);
  line-height: 1.7;
  font-style: normal; /* reset browser italic on <address> */
}

.porta-contact__info-value a {
  color: var(--color-accent);
  text-decoration: none;
}

.porta-contact__info-value a:hover {
  color: var(--color-gold);
}

.porta-contact__info-value em {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* Full-bleed map — no section padding, tiles fill edge to edge */
.porta-contact__map {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.porta-contact__map iframe {
  display: block;
  width: 100%;
  /* 300px mobile / 400px desktop — design.md §5.5 */
  height: 300px;
  border: none;
}

@media (min-width: 768px) {
  .porta-contact__map iframe {
    height: 400px;
  }
}

/* ── Degustation page ────────────────────────────────────────────────────── */

/* Full-bleed photo header — same negative-margin technique as .porta-hero.
   Drop assets/images/hero-degustation.jpg to activate the photo.
   Fallback background-color shows until the image is present. */
.porta-degustation__header {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-earth);  /* fallback until image is dropped in */
  background-image: url('../images/hero-degustation.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

/* Dark overlay for text legibility over photography */
.porta-degustation__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

/* Content sits above the overlay */
.porta-degustation__header .porta-container {
  position: relative;
  z-index: 1;
}

/* White text on photo background */
.porta-degustation__header .porta-section-header__label {
  color: var(--color-gold);
}

.porta-degustation__header .porta-section-header__title {
  color: var(--color-white);
}

/* Remove gold underline rule on H1 — it's decorative on flat-bg sections only */
.porta-degustation__header h1.porta-section-header__title::after {
  display: none;
}

.porta-degustation__intro {
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

/* ── Visit format cards ── */

.porta-formats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .porta-formats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.porta-format-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.porta-format-card__icon {
  /* Color is inherited by SVG currentColor — controls stroke color */
  color: var(--color-accent);
  margin-bottom: 1rem;
  /* Display SVG as block so it doesn't add inline descender space */
  display: block;
  line-height: 0;
}

.porta-format-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.porta-format-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.7;
  flex: 1; /* push detail to the bottom */
  margin-bottom: 1.25rem;
}

.porta-format-card__detail {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  border-top: 1px solid rgba(107, 26, 42, 0.15);
  padding-top: 1rem;
  margin-top: auto;
}

/* ── Includes (au programme) ── */

.porta-includes {
  background-color: var(--color-bg);
}

.porta-includes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .porta-includes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.porta-includes__item-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

.porta-includes__item-desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.porta-includes__item-desc:last-child {
  margin-bottom: 0;
}

/* ── Practical info / booking ── */

.porta-booking {
  background-color: var(--color-bg-alt);
}

.porta-booking__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .porta-booking__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.porta-booking__block-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

/* Hours list — day and time on the same line */
.porta-booking__hours {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.porta-booking__hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.4rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  font-size: var(--text-base);
}

.porta-booking__day {
  color: var(--color-text);
  font-weight: 500;
}

.porta-booking__time {
  color: var(--color-text-light);
}

.porta-booking__note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.75rem;
}

.porta-booking__desc {
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Contact links (phone + email) */
.porta-booking__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.porta-booking__contact li {
  margin-bottom: 0.35rem;
}

.porta-booking__contact a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  font-size: var(--text-base);
}

.porta-booking__contact a:hover {
  color: var(--color-gold);
}

.porta-booking__address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ── Degustation CTA band ── */

/* Full-bleed band — same technique and visual as .porta-visit on homepage */
.porta-degustation-cta {
  background-color: var(--color-accent);
  text-align: center;
}

.porta-degustation-cta__title {
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.porta-degustation-cta__text {
  color: var(--color-white);
  opacity: 0.85;
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .porta-degustation-cta__title {
    font-size: var(--text-4xl);
  }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

/*
 * .porta-footer renders outside .ast-container (after its closing tag in
 * footer.php), so it is a direct child of #page. No negative-margin
 * full-bleed needed — width: 100% fills the flex container (#page uses
 * display:flex; flex-direction:column to stretch to min-height: 100vh).
 */
.porta-footer {
  width: 100%;
  background-color: var(--color-earth);
  color: var(--color-white);
}

/* ── Three-column body ── */

.porta-footer__body {
  padding: var(--space-section-sm) 0;
}

@media (min-width: 768px) {
  .porta-footer__body {
    padding: var(--space-section) 0;
  }
}

.porta-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .porta-footer__grid {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ── Col 1 — Brand ── */

/* Invert dark logo to white on the dark footer background */
.porta-footer__logo img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 1.25rem;
}

/* Fallback: text logo when no image logo is set */
.porta-footer__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin: 0 0 0.75rem;
}

.porta-footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.porta-footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.porta-footer__region {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

/* ── Shared column heading ── */

.porta-footer__col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 1.25rem;
}

/* ── Social links (in brand column) ── */

.porta-footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.porta-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.porta-footer__social-link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── Col 2 — Contact ── */

.porta-footer__contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.porta-footer__contact-list li {
  margin-bottom: 0.35rem;
}

.porta-footer__contact-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}

.porta-footer__contact-list a:hover {
  color: var(--color-gold);
}

.porta-footer__hours-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.75rem;
}

.porta-footer__hours {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.porta-footer__hours li {
  margin-bottom: 0.45rem;
}

.porta-footer__hours-note {
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
  font-style: italic;
}

/* ── Bottom bar ── */

.porta-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.porta-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .porta-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.porta-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.porta-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.porta-footer__legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.porta-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Gold decorative rule under section H2s ─────────────────────────────── */

/*
 * Adds a 40×2px gold underline after H2 headings in content sections.
 * Applied only to h2.porta-section-header__title — not H1s, card titles,
 * or footer headings. The --center modifier centers the rule when the
 * heading is centered (the default for section headers).
 *
 * Design reference: design.md §2.3 / §1.3 (gold is a reward color,
 * used here as punctuation — like a wax seal on a letter).
 */
h2.porta-section-header__title::after,
h2.porta-events__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin-top: 0.75rem;
  /* Center by default — section headers are centered; left-aligned variants override below */
  margin-inline: auto;
}

/* Agenda title gold rule is left-aligned (header row uses flex, title is left) */
h2.porta-events__title::after {
  margin-inline: 0;
}

/* ── Card hover effects ──────────────────────────────────────────────────── */

/*
 * Cards lift 2px and deepen their shadow on hover — a subtle cue of
 * interactivity. Matches design.md §6.3.
 * Note: image-level zoom (scale 1.03 on img) is already defined per card type
 * above. These rules add the card-level shadow + lift on top.
 */

/* Wine card */
.porta-wine-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.porta-wine-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Event card */
.porta-event-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.porta-event-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Article card */
.porta-article-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.porta-article-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Formula card (dégustation) */
.porta-format-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.porta-format-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ── Contact form input styling ──────────────────────────────────────────── */

/*
 * CF7 outputs standard <input>, <textarea> wrapped in <label>/<span> elements.
 * We override the browser default box styles with a clean bottom-border-only
 * treatment — matches design.md §5.5 and the winery's understated aesthetic.
 *
 * No !important needed here — CF7's own stylesheet (.wpcf7-form) has lower
 * specificity than these more specific selectors.
 */
.porta-contact__form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0; /* remove any browser rounding */
  background: transparent;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
  box-shadow: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.porta-contact__form .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-bottom-color: var(--color-accent);
}

/* Textarea — constrain resize to vertical only */
.porta-contact__form textarea.wpcf7-form-control {
  resize: vertical;
  height: 160px;
  min-height: 80px;
}

/* Label text — smaller, spaced, accent color to match sidebar kicker style */
.porta-contact__form .wpcf7 label {
  display: block;
  margin-bottom: 0.875rem;
  font-size: var(--text-sm);
  color: var(--color-text);
}

/*
 * Contact form section — tighter vertical padding than the generic .porta-section.
 * The form has 4 fields + a button; at 5rem padding the button falls below the fold.
 * This targets the second <section class="porta-section"> inside .porta-contact only.
 */
.porta-contact > .porta-section {
  padding-block: 1.75rem;
}

@media (min-width: 768px) {
  .porta-contact > .porta-section {
    padding-block: 2.5rem;
  }
}

/* ── Notice / dev placeholder ────────────────────────────────────────────── */

/* Generic notice bar used to surface messages within templates */
.porta-notice {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  margin-block: 1rem;
}

/* Development-only placeholder — styled to be visually distinct */
.porta-notice--dev {
  background-color: var(--color-bg-alt);
  border: 1px dashed var(--color-text-light);
  color: var(--color-text-light);
  text-align: center;
  padding: 2rem;
}

/* ── Actualités page ─────────────────────────────────────────────────────── */

/* Full-bleed header — same negative-margin technique as .porta-agenda__header */
.porta-actualites__header {
  background-color: var(--color-bg-alt);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.porta-actualites__intro {
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* "Chroniques" subtitle — matches Agenda title size and left-alignment */
.porta-actualites__archive-header {
  text-align: left;
  margin-bottom: 2rem;
}

.porta-actualites__archive-header .porta-section-header__title {
  font-size: var(--text-2xl);
}

@media (min-width: 768px) {
  .porta-actualites__archive-header .porta-section-header__title {
    font-size: var(--text-3xl);
  }
}

/* Left-align the gold underline rule to match */
.porta-actualites__archive-header .porta-section-header__title::after {
  margin-inline: 0;
}

/* ── Articles grid ── */

.porta-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .porta-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .porta-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Article card ── */
/* Same visual treatment as .porta-event-card — bg-alt, no shadow, gold date */

.porta-article-card {
  position: relative;          /* anchor for the stretched link ::after */
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Thumbnail — same ratio as event card (16:6) for visual consistency */
.porta-article-card__image {
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background-color: var(--color-bg);
}

.porta-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.porta-article-card:hover .porta-article-card__image img {
  transform: scale(1.03);
}

.porta-article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Date + category on the same row */
.porta-article-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Gold uppercase date — mirrors .porta-event-card__date */
.porta-article-card__date {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Category label — subtle accent pill */
.porta-article-card__category {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.porta-article-card__title {
  font-size: var(--text-xl);
}

/* Stretched link — ::after covers the whole card, making it fully clickable */
.porta-article-card__link {
  color: inherit;
  text-decoration: none;
}

.porta-article-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.porta-article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── Pagination ── */

.porta-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.porta-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.porta-pagination .page-numbers:hover {
  background-color: var(--color-bg-alt);
}

.porta-pagination .page-numbers.current {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* ── Empty state ── */

.porta-actualites__empty {
  text-align: center;
  padding-block: 4rem;
}

.porta-actualites__empty-text {
  color: var(--color-text-light);
  font-size: var(--text-lg);
  max-width: var(--max-width-text);
  margin-inline: auto;
  line-height: 1.7;
}

/* Hide Astra's "by author / date" meta on standard post pages accessed via /actualites */
.page-template-templates-page-actualites .entry-meta {
  display: none;
}

/* ── Single post page (single.php) ──────────────────────────────────────── */

/* Full-bleed off-white header — same negative-margin technique as other page headers */
.porta-single-post__header {
  background-color: var(--color-bg-alt);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Meta row: category badge + date, above the title */
.porta-single-post__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.porta-single-post__date {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.porta-single-post__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1.2;
  margin: 0;
}

@media (min-width: 768px) {
  .porta-single-post__title {
    font-size: var(--text-4xl);
  }
}

/* Prose content — generous line-height, paragraph spacing */
.porta-single-post__content {
  margin-top: 1.5rem;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text);
}

.porta-single-post__content p {
  margin-bottom: 1.5rem;
}

.porta-single-post__content h2,
.porta-single-post__content h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.porta-single-post__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.porta-single-post__content a:hover {
  color: var(--color-gold);
}

/* Images inside post content — full width of the prose column, rounded */
.porta-single-post__content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
  margin-block: 1.5rem;
}

/* Back link — subtle, below content */
.porta-single-post__back {
  display: inline-block;
  margin-top: 3rem;
  padding-bottom: 3rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.porta-single-post__back:hover {
  color: var(--color-accent);
}

/* ── Scroll-entrance animations (global) ─────────────────────────────────── */
/*
 * Used on /domaine, /nos-vins, /degustation.
 * JS (scroll-entrance.js) adds .scroll-reveal to targets before observing,
 * then adds .scroll-reveal--visible when the element enters the viewport.
 * Animates once only. prefers-reduced-motion: JS exits before adding any class.
 * Page-specific stagger delays live in domaine.css for /domaine targets.
 */

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger wine cards on /nos-vins */
.porta-wine-card:nth-child(2).scroll-reveal { transition-delay: 0.08s; }
.porta-wine-card:nth-child(3).scroll-reveal { transition-delay: 0.16s; }
.porta-wine-card:nth-child(4).scroll-reveal { transition-delay: 0.08s; }
.porta-wine-card:nth-child(5).scroll-reveal { transition-delay: 0.16s; }
.porta-wine-card:nth-child(6).scroll-reveal { transition-delay: 0.24s; }

/* Stagger format cards on /degustation */
.porta-format-card:nth-child(2).scroll-reveal { transition-delay: 0.1s; }
.porta-format-card:nth-child(3).scroll-reveal { transition-delay: 0.2s; }

/* ── Legal pages (Mentions légales, Politique de confidentialité) ─────────── */

/* Full-bleed header — same negative-margin technique as .porta-agenda__header */
.porta-legal__header {
  background-color: var(--color-bg-alt);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.porta-legal__intro {
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-top: 1rem;
  color: var(--color-text-light);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/*
 * Content body — prose column constrained to readable width.
 * Sections use generous vertical spacing; no cards, no grid — pure editorial.
 */
.porta-legal__body {
  max-width: var(--max-width-text);
  margin-inline: auto;
}

/* Individual content section — heading + body text */
.porta-legal__section {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--color-bg-alt);
}

.porta-legal__section:last-of-type {
  border-bottom: none;
}

/* Section heading — Playfair, accent color, less dramatic than page h1 */
.porta-legal__section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Sub-heading — used for grouped data categories within a section */
.porta-legal__section h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraph spacing within a section */
.porta-legal__section p {
  line-height: 1.8;
  margin-bottom: 0.875rem;
  color: var(--color-text);
}

.porta-legal__section p:last-child {
  margin-bottom: 0;
}

/* Lists — used in rights section and cookies section */
.porta-legal__section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.porta-legal__section ul li {
  line-height: 1.8;
  margin-bottom: 0.375rem;
  color: var(--color-text);
}

/* ── Dégustation magazine photo grid (Option A) ───────────────────────────── */

/*
 * Asymmetric 3-col × 2-row CSS Grid.
 * img 1: 1 col × 2 rows (tall portrait — left column)
 * img 2: 2 cols × 1 row (wide landscape — top right)
 * img 3: 1 col × 1 row (square — bottom centre)
 * img 4: 1 col × 1 row (square — bottom right)
 *
 * Images: drop galerie-degustation-1.jpg through galerie-degustation-4.jpg
 * into assets/images/. Section renders only when at least one file is present.
 */
.porta-degustation-grid {
  background-color: var(--color-bg-alt);
  padding-block-start: 1rem;
  padding-block-end: 3rem;
}

.porta-degustation-grid__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px 180px 220px; /* mobile: row1+row2 for img1/2/3, row3 for img4 */
  gap: 0.5rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Each cell clips and covers its image */
.porta-degustation-grid__item {
  overflow: hidden;
  background-color: var(--color-bg);
}

.porta-degustation-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.porta-degustation-grid__item:hover img {
  transform: scale(1.04);
}

/* Mobile asymmetric placement (max-width guard keeps desktop untouched) */
@media (max-width: 767px) {
  .porta-degustation-grid__item:nth-child(1) { grid-row: 1 / 3; }        /* tall portrait, left col */
  .porta-degustation-grid__item:nth-child(4) { grid-column: 1 / 3; }     /* full width bottom */
}

/* Desktop: switch to 3-column asymmetric layout */
@media (min-width: 768px) {
  .porta-degustation-grid__inner {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 280px 280px;
  }

  /* img 1 — tall portrait, spans both rows */
  .porta-degustation-grid__item:nth-child(1) {
    grid-row: 1 / 3;
  }

  /* img 2 — wide landscape, spans last two columns */
  .porta-degustation-grid__item:nth-child(2) {
    grid-column: 2 / 4;
  }

  /* img 3 and img 4 fill the remaining cells automatically */
}

/* "Last updated" notice — small and muted, sits below all sections */
.porta-legal__updated {
  margin-top: 2rem;
  font-size: var(--text-sm);
  color: var(--color-text-light);
  font-style: italic;
}

/* ── Photo gallery carousel (used on /domaine #galerie) ──────────────────── */

/*
 * Full-bleed section — warm off-white background (same as alternate sections).
 * The negative-margin technique is the same used on .porta-visit, .porta-wine-lineup.
 * Also listed in domaine.css full-bleed rule so it stays in the correct stacking context.
 */
.porta-gallery-section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--color-bg-alt);
  padding-block: 3rem;
}

/* Outer wrapper — positions the dots below the stage */
.porta-gallery-carousel {
  position: relative;
  outline: none; /* suppress focus ring on keyboard-navigable div */
}

.porta-gallery-carousel:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

/*
 * Stage — clips the overflow so only the active slide + peeking edges are visible.
 * ::before / ::after create gradient veils on each side that dim the peeking images
 * and blend them into the dark background.
 */
.porta-gallery-carousel__stage {
  position: relative;
  overflow: hidden;
}

.porta-gallery-carousel__stage::before,
.porta-gallery-carousel__stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  /*
   * --peek-width is set by JS (update() in degustation-gallery.js) to the
   * exact visible width of the peeking side image = (stageWidth - slideWidth) / 2.
   * The gradient spans the full peek area so shading covers the entire peeking image.
   * Falls back to 80px on first paint (before JS runs).
   */
  width: calc(var(--peek-width, 80px) + 20px); /* +20px soft bleed into active image edge */
  z-index: 2;
  pointer-events: none; /* clicks pass through to the track and buttons */
}

.porta-gallery-carousel__stage::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-alt) 0%, transparent 100%);
}

.porta-gallery-carousel__stage::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-alt) 0%, transparent 100%);
}

/* Sliding track — JS sets transform: translateX() to center the active slide */
.porta-gallery-carousel__track {
  display: flex;
  column-gap: 1.25rem;
  /* transition is toggled by JS: on for animated moves, off for instant resize */
  will-change: transform;
}

/* Individual slide */
.porta-gallery-carousel__slide {
  /*
   * Active slide = content column width (--max-width = 1200px).
   * max-width uses 100vw (viewport) not 100% (flex track) — the flex track
   * width resolves to the sum of all slides, making 100% useless here.
   * At 1280px: min(1200px, 1200px) = 1200px, peek = 40px per side.
   * On mobile (375px): min(1200px, 315px) = 315px, peek = 30px per side.
   */
  flex: 0 0 var(--max-width);
  max-width: calc(100vw - 80px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  /* Dimmed by default; .--active class brings to full brightness */
  filter: brightness(0.6) saturate(0.7);
  transition: filter 0.55s ease;
}

.porta-gallery-carousel__slide--active {
  filter: brightness(1) saturate(1);
}

.porta-gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle zoom on the active image only — reinforces the "featured" feel */
  transition: transform 0.55s ease;
  transform: scale(1.02);
}

.porta-gallery-carousel__slide--active img {
  transform: scale(1);
}

/* ── Navigation arrows ────────────────────────────────────────────────────── */

.porta-gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3; /* above the gradient veils (z-index: 2) */
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important; /* override Astra's global button padding: 15px 30px */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(26, 26, 26, 0.15);
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.porta-gallery-carousel__btn:hover {
  background: var(--color-white);
  border-color: rgba(26, 26, 26, 0.3);
}

.porta-gallery-carousel__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.porta-gallery-carousel__btn--prev { left: 1.25rem; }
.porta-gallery-carousel__btn--next { right: 1.25rem; }

/* ── Dot indicators ───────────────────────────────────────────────────────── */

.porta-gallery-carousel__dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.porta-gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(26, 26, 26, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.porta-gallery-carousel__dot--active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .porta-gallery-section {
    padding-block: 2rem;
  }

  .porta-gallery-carousel__slide {
    /* On mobile, --max-width (1200px) is always wider than the viewport,
       so max-width: calc(100% - 60px) kicks in, leaving a 30px peek per side. */
    max-width: calc(100% - 60px);
    aspect-ratio: 4 / 3;
  }

  .porta-gallery-carousel__btn {
    width: 36px !important;
    height: 36px !important;
  }

  .porta-gallery-carousel__btn--prev { left: 0.5rem; }
  .porta-gallery-carousel__btn--next { right: 0.5rem; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .porta-gallery-carousel__track,
  .porta-gallery-carousel__slide,
  .porta-gallery-carousel__slide img {
    transition: none;
  }
}

/* ── Lightbox (reusable — any page) ─────────────────────────────────────────
 *
 * Full-screen overlay triggered by clicking a .porta-lightbox-item wrapper.
 * Built and controlled by assets/js/lightbox.js.
 * Enqueue the script per-page in inc/enqueue.php. Currently active on /degustation.
 * See lightbox.js header comment for full usage instructions.
 * ───────────────────────────────────────────────────────────────────────── */

/* Any clickable image wrapper signals interactivity */
.porta-lightbox-item {
  cursor: zoom-in;
}

/* Hidden images — loaded for lightbox navigation, never rendered on the page */
.porta-lightbox-extra {
  display: none;
}

/* Overlay */
.porta-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.porta-lightbox.is-open {
  opacity: 1;
}

/* Image */
.porta-lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: default;
  transform: scale(0.97);
  transition: transform 0.3s ease;
}

.porta-lightbox.is-open .porta-lightbox__img {
  transform: scale(1);
}

/* Close button */
.porta-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none !important;
  border: none !important;
  color: var(--color-white) !important;
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.porta-lightbox__close:hover {
  opacity: 1;
  background: none !important;
  color: var(--color-white) !important;
}

/* Prev / Next arrows */
.porta-lightbox__prev,
.porta-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: var(--color-white) !important;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem 1.25rem;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  user-select: none;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.porta-lightbox__prev:hover,
.porta-lightbox__next:hover {
  opacity: 1;
  background: none !important;
  color: var(--color-white) !important;
}

.porta-lightbox__prev { left: 0.5rem; }
.porta-lightbox__next { right: 0.5rem; }

/* Counter: "4 / 14" — bottom centre of the overlay */
.porta-lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  pointer-events: none;
  white-space: nowrap;
}

/* Grid hint — "Voir les N photos" below the mosaic */
.porta-degustation-grid__hint {
  display: block;
  margin: 0.6rem auto 0;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  text-align: center;
  transition: color 0.2s;
}

.porta-degustation-grid__hint::after {
  content: ' →';
}

.porta-degustation-grid__hint:hover,
.porta-degustation-grid__hint:focus,
.porta-degustation-grid__hint:active {
  color: var(--color-accent);
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .porta-lightbox,
  .porta-lightbox__img {
    transition: none;
  }
}

/* ── 404 error page ──────────────────────────────────────────────────────── */

.porta-404__header {
  background-color: var(--color-accent);
  text-align: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Muted white — visually distinct from the H1 without competing with it */
.porta-404__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.porta-404__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin: 0;
}

@media (min-width: 768px) {
  .porta-404__title { font-size: var(--text-5xl); }
}

.porta-404__body {
  text-align: center;
}

.porta-404__message {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.porta-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
