/**
 * Terravino Header Styles
 * Responsive & Mobile-Friendly
 * CSS pur - Pas besoin de compilation
 */
*{
  color: white!important;
}

.tv-newsletter__submit{
  color:black!important;
}

.ps_checkout-payment-option label{
   line-height: 1.1!important;
}

.payment__option{
   margin-bottom: 2.5rem!important;
}

/* ===== Global top gradient overlay (except homepage) ===== */
/* Default (sm/md): header ~72px, overlap 12px */
:root { --tv-header-h: 72px; --tv-header-overlap: 12px; --terravino-secondary: #d4af37;}
/* xs */
@media (max-width: 575.98px) { :root { --tv-header-h: 64px; --tv-header-overlap: 12px; } }
/* md range */
@media (min-width: 576px) and (max-width: 991.98px) { :root { --tv-header-h: 72px; --tv-header-overlap: 12px; } }
/* lg+ */
@media (min-width: 992px) { :root { --tv-header-h: 88px; --tv-header-overlap: 11px; } }
body:not(#index):not(#checkout) {
  position: relative;
}
body:not(#index):not(#checkout)::before {
  content: "";
  position: fixed;
  top: calc(var(--tv-header-h, 72px) - var(--tv-header-overlap, 12px));
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1025; /* below sticky header (1030), above page bg */
}
@media (max-width: 575.98px) { body:not(#index):not(#checkout)::before { height: 160px; } }

/* Outline primary adapted to dark theme */
.btn-outline-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-border-color: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-hover-border-color: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-focus-shadow-rgb: 0, 0, 0 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: rgba(0, 0, 0, 0.7) !important;
    --bs-btn-active-border-color: rgba(0, 0, 0, 0.7) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: rgba(0, 0, 0, 0.6) !important;
    --bs-gradient: none !important;
}

/* Normalize generic .btn variables with !important to ensure overrides */
.btn {
    --bs-btn-padding-x: 0.75rem !important;
    --bs-btn-padding-y: 0.375rem !important;
    --bs-btn-font-family:  !important;
    --bs-btn-font-size: 1rem !important;
    --bs-btn-font-weight: 400 !important;
    --bs-btn-line-height: 1.5 !important;
    --bs-btn-color: var(--bs-body-color) !important;
    --bs-btn-bg: transparent !important;
    --bs-btn-border-width: var(--bs-border-width) !important;
    --bs-btn-border-color: transparent !important;
    --bs-btn-border-radius: 4px !important;
    --bs-btn-hover-border-color: transparent !important;
    --bs-btn-box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, .15), 0 1px 1px rgba(0, 0, 0, .075) !important;
    --bs-btn-disabled-opacity: 0.65 !important;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5) !important;
}

.dropdown-menu{
  background-color: rgba(0, 0, 0, 0.6)!important;
}
.dropdown-item:hover{
  background-color: rgba(0, 0, 0, 0.7)!important;
}
.dropdown-item.active{
  background-color: rgba(0, 0, 0, 0.7)!important;
}
.text-primary {
    color: #fff !important;
}

.express-checkout-block{
    background-color: transparent!important;
}

/* ===== Pagination (yellow) ===== */
.pagination {
  --bs-pagination-color: var(--terravino-secondary) !important;
  --bs-pagination-bg: transparent !important;
  --bs-pagination-border-color: var(--terravino-secondary) !important;
  --bs-pagination-hover-color: var(--terravino-secondary) !important;
  --bs-pagination-hover-bg: rgba(0,0,0,0.6) !important;
  --bs-pagination-hover-border-color: var(--terravino-secondary) !important;
  --bs-pagination-focus-color: var(--terravino-secondary) !important;
  --bs-pagination-focus-bg: rgba(0,0,0,0.6) !important;
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, .25) !important;
  --bs-pagination-active-color: #000 !important;
  --bs-pagination-active-bg: var(--terravino-secondary) !important;
  --bs-pagination-active-border-color: var(--terravino-secondary) !important;
  --bs-pagination-disabled-color: rgba(255,215,0,0.5) !important;
  --bs-pagination-disabled-bg: transparent !important;
  --bs-pagination-disabled-border-color: rgba(255,215,0,0.3) !important;
}
#mondialrelay_widget *{
  color: inherit!important;
}

#mondialrelay_widget{
  color: black!important;
}



.address{
  background-color: rgba(0, 0, 0, 0.6)!important;
}

.rich-text table>:not(caption)>*>*, .table>:not(caption)>*>* {
  background-color: transparent!important;
}

.step .address.selected{
  border-color: var(--terravino-secondary)!important;
}
.page-product .product__images__modal-opener {
  background-color: var(--terravino-secondary)!important;
}

.form-check-input:checked {
    background-color: var(--terravino-secondary)!important;
    border-color: var(--terravino-secondary)!important;
}

@media screen and (max-width: 768px) {
    .wishlist-container .page-content.card {
        background-color: rgba(0, 0, 0, 0.6)!important;
    }
}
.page-link {
  color: var(--terravino-secondary) !important;
  background-color: transparent !important;
  border: 1px solid var(--terravino-secondary) !important;
}
.page-link:hover { color: var(--terravino-secondary) !important; }
.page-item.active .page-link {
  color: #000 !important;
  background-color: var(--terravino-secondary) !important;
  border-color: var(--terravino-secondary) !important;
}
.page-item.disabled .page-link {
  color: rgba(255,215,0,0.5) !important;
  border-color: rgba(255,215,0,0.3) !important;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
  background-color: transparent!important;
  border-color: var(--terravino-secondary)!important;
}

.customer-link a span, .customer-link__link span {
    background: rgba(0, 0, 0, 0.6)!important;
    border: none!important;
    color: #fff!important;
}

.customer-link a span:hover, .customer-link__link span:hover {
    background: rgba(0, 0, 0, 0.7)!important;
}

.cart-summary, .cart-summary{
    background: rgba(0, 0, 0, 0.6)!important;
}
.cart-summary .card-footer{
    background: transparent!important;
}
.badge.discount, .badge{
    background: var(--terravino-secondary)!important;
    border:none!important;
}

.tv-bg-dark, .card{
  background: rgba(0, 0, 0, 0.6)!important;
}


.alert{
  background-color: transparent;
}

.form-control{
  background-color: transparent!important;
}

.page-history .orders .order, .page-order-detail .orders .order ,.table-wrapper {
  background: rgba(0,0,0,0.6);
}

.form-select, .form-select option{
  color: #000!important;
}
.accordion-item {
  background: transparent!important;
}
.accordion-item .accordion-button {
  color: #fff!important;
  background-color: transparent!important;
  --bs-accordion-btn-bg: white!important;
}
.wishlist-button-add {
  color: #fff!important;
  background-color: var(--terravino-secondary)!important;
}
.product__details, .product__features {
  background: transparent!important;
}
.rounded-pill{
  background-color: var(--terravino-secondary)!important;
}

.modal-content {
  background-image: url(/themes/terravino/assets/img-dist/bg.svg) !important;
}

.checkout__steps--current:before, .checkout__steps--success .checkout__steps__number {
  background-color: var(--terravino-secondary)!important;
}

.checkout__steps--success:after, .checkout__steps--success:before {
  background-color: var(--terravino-secondary)!important;
}
.paypal-button-text{
  color: black!important;
}
/* Polices */
.font-primary {
  font-family: 'Playfair Display', serif;
}


.account-menu>a.active, .account-menu>a:hover {
    background: rgba(0, 0, 0, 0.6)!important;
}

.alert-info {
    --bs-alert-bg: rgba(0, 0, 0, 0.6)!important;
    border: none!important;
}

.cart__item .product-line__actions a:after {
   background-color: var(--terravino-secondary)!important;
}
input{
  color: #FFFFFF!important;
}

div#lp-map *{
  color: black!important;
}
.btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-border-color: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: rgba(0, 0, 0, 0.7) !important;
    --bs-btn-hover-border-color: rgba(0, 0, 0, 0.7) !important;
    --bs-btn-focus-shadow-rgb: 0, 0, 0 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: rgba(0, 0, 0, 0.75) !important;
    --bs-btn-active-border-color: rgba(0, 0, 0, 0.75) !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: rgba(0, 0, 0, 0.6) !important;
    --bs-btn-disabled-border-color: rgba(0, 0, 0, 0.6) !important;
}

/* ===== Product miniature (simplified card) ===== */
.tv-product-miniature {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tv-pm__image-link { display: block; text-decoration: none; position: relative; }
.tv-pm__image { position: relative; width: 100%; height: 224px; border-radius: 12px; overflow: hidden; background: #fff; }
.tv-pm__image img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Ensure default product flags show nicely over the image */
.tv-pm__image-link .product-flags { position: absolute; top: 12px; left: 12px; z-index: 2; }

.tv-pm__body { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.tv-pm__title { color: #ffffff; font-size: 1.125rem; line-height: 1.4; font-weight: 700; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.4em * 2); }
.tv-pm__title:hover { color: var(--terravino-secondary); }
.tv-pm__subtitle { color: rgba(255,255,255,0.6)!important; font-size: 0.95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.3em; }

.tv-pm__prices { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; min-height: 1.75rem; }
.tv-pm__price { color: #ffffff; font-weight: 800; font-size: 1.25rem; }
.tv-pm__regular-price { color: rgba(255,255,255,0.4); text-decoration: line-through; font-size: 1rem; }
/* Discount percentage pill next to price */
.tv-pm__discount {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #d32f2f;
  border-radius: 999px;
}

.tv-pm__actions { margin-top: auto; min-height: 42px; display: flex; align-items: center; }
.tv-pm__actions .tv-btn--ghost { border-color: #ffffff; color: #ffffff; padding: 8px 14px; border-radius: 10px; }
.tv-pm__actions .tv-btn--ghost:hover { background: #ffffff; color: #1a1a1a!important; }

/* Category line 'Nouveau' tag */
.tv-pm__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
}
.tv-pm__tag--new {
  background: rgba(255, 215, 0, 0.2);
  color: var(--terravino-secondary) !important;
  border: 1px solid rgba(255, 215, 0, 0.5);
}

@media (max-width: 575.98px) {
  .tv-pm__image { height: 200px; }
}
/* ===== Custom Text block minimal utilities ===== */
#custom-text .grid { display: grid; }
#custom-text .grid-cols-1 { grid-template-columns: 1fr; }
#custom-text .gap-0 { gap: 0; }
#custom-text {padding: 0;}
@media (min-width: 1024px) {
  #custom-text .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
#custom-text .gap-6 { gap: 1.5rem; }
#custom-text .rounded-2xl { border-radius: 1rem; }
#custom-text .border-2 { border-width: 2px; }
#custom-text .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
#custom-text .p-6 { padding: 1.5rem; }
#custom-text .px-8 { padding-left: 2rem; padding-right: 2rem; }
#custom-text .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
#custom-text .mb-10 { margin-bottom: 2.5rem; }
#custom-text .mi-10 { margin-inline: 2.5rem; }
#custom-text .mb-3 { margin-bottom: 0.75rem; }
#custom-text .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
#custom-text .text-base { font-size: 1rem; line-height: 1.5rem; }
#custom-text .leading-9 { line-height: 2.25rem; }
#custom-text .bg-gradient-to-t { background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.0) 100%); }

/* Additional utilities used by ps_customtext.tpl */
#custom-text .w-full { width: 100%; }
#custom-text .mx-auto { margin-left: auto; margin-right: auto; }
#custom-text .max-w-\[1440px\] { max-width: 1440px; }
#custom-text .px-4 { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { /* sm */
  #custom-text .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) { /* lg */
  #custom-text .lg\:px-20 { padding-left: 5rem; padding-right: 5rem; }
}
#custom-text .relative { position: relative; }
#custom-text .absolute { position: absolute; }
#custom-text .overflow-hidden { overflow: hidden; }
#custom-text .border { border-width: 1px; }
#custom-text .border-white\/10 { border-color: rgba(255,255,255,0.1); }
#custom-text .text-center { text-align: center; }
#custom-text .text-white { color: #ffffff; }
#custom-text .text-white\/80 { color: rgba(255,255,255,0.8); }
#custom-text .text-white\/90 { color: rgba(255,255,255,0.9); }
#custom-text .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
#custom-text .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
#custom-text .font-normal { font-weight: 400; }
#custom-text .font-semibold { font-weight: 600; }
#custom-text .font-bold { font-weight: 700; }
#custom-text .leading-7 { line-height: 1.75rem; }
#custom-text .block { display: block; }
#custom-text .flex { display: flex; }
#custom-text .items-center { align-items: center; }
#custom-text .gap-4 { gap: 1rem; }
#custom-text .mb-6 { margin-bottom: 1.5rem; }
#custom-text .w-6 { width: 1.5rem; }
#custom-text .h-6 { height: 1.5rem; }
#custom-text .w-3\.5 { width: 0.875rem; }

/* Full-bleed helper: make elements occupy full width without margins/padding */
#custom-text { margin: 0; padding: 0; border: 0; }
#custom-text.full-bleed,
#custom-text .full-bleed { width: 100%; margin: 0; padding: 0; }
#custom-text .grid { margin: 0; }

/* Cards row: space-around distribution with responsive wrapping */
#custom-text .cards-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
  margin: 0; padding: 0;
}
#custom-text .cards-row > a {
  flex: 0 1 24%;
  min-width: 240px;
  max-width: 360px;
  aspect-ratio: 1 / 1; /* make height == width */
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1023.98px) {
  #custom-text .cards-row > a { flex-basis: 100%; min-width: 0; }
}

/* Legacy wrapper fallback: if grid remains in template, force flex space-around via CSS */
#custom-text .grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}
#custom-text .grid > a {
  flex: 0 1 24%;
  min-width: 240px;
  max-width: 360px;
  aspect-ratio: 1 / 1; /* make height == width */
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 1023.98px) {
  #custom-text .grid > a { flex-basis: 100%; min-width: 0; }
}

/* Set section background via CSS (override any inline) */
#custom-text {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

/* Assign local images to cards purely via CSS (override any inline) */
#custom-text .cards-row > a:nth-child(1),
#custom-text .grid > a:nth-child(1) {
  background-image: url('/themes/terravino/assets/img-dist/vin_blanc.svg') !important;
  background-size: cover;
  background-position: center;
  min-height: 18rem; /* fallback for older browsers */
}
#custom-text .cards-row > a:nth-child(2),
#custom-text .grid > a:nth-child(2) {
  background-image: url('/themes/terravino/assets/img-dist/vin_rouge.svg') !important;
  background-size: cover;
  background-position: center;
  min-height: 18rem;
}
#custom-text .cards-row > a:nth-child(3),
#custom-text .grid > a:nth-child(3) {
  background-size: cover;
  background-position: center;
  min-height: 18rem;
}

/* Make inner content fill and CTA stay at bottom */
#custom-text .cards-row > a > .relative,
#custom-text .grid > a > .relative {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#custom-text .cards-row > a > .relative > .flex:last-child,
#custom-text .grid > a > .relative > .flex:last-child {
  margin-top: auto;
}

/* Extra spacing rules for customcards: left margin for content and CTA offset */
#custom-text .cards-row > a > .relative,
#custom-text .grid > a > .relative {
  padding-left: 1.25rem; /* ensure left margin inside cards */
}

#custom-text .cards-row > a > .relative > .flex:last-child,
#custom-text .grid > a > .relative > .flex:last-child {
  margin-left: 0.25rem; /* slight left offset for CTA row */
  padding-bottom: 0.5rem; /* breathing room at bottom */
}


.font-secondary, .tv-btn-primary, .tv-btn-secondary, h2 {
  font-family: 'Georgia', sans-serif!important;
}

/* Header principal */
.terravino-header {
  position: sticky;
  background-color: #16181c!important; 
  top: 0;
  z-index: 1030;
  width: 100%;
}

/* ===== Featured products (ps_featuredproducts) ===== */
.featured-products {
  background: transparent;
}
.featured-products .section-title,
.featured-products .section-title h2,
.featured-products .section-title .h2 {
  color: #ffffff !important;
}
.featured-products .all-product-link.btn {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
}
.featured-products .all-product-link.btn .material-icons { color: #ffffff; }
.featured-products .all-product-link.btn:hover,
.featured-products .all-product-link.btn:focus {
  border-color: var(--terravino-secondary);
  background: var(--terravino-secondary);
  color: #1a1a1a;
}
.featured-products .all-product-link.btn:hover .material-icons,
.featured-products .all-product-link.btn:focus .material-icons {
  color: #1a1a1a;
}

/* ===== New products (ps_newproducts) ===== */
.new-products { background: transparent; }
.new-products .section-title,
.new-products .section-title h2,
.new-products .section-title .h2 { color: #ffffff !important; }
.new-products .all-product-link.btn {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
}
.new-products .all-product-link.btn .material-icons { color: #ffffff; }
.new-products .all-product-link.btn:hover,
.new-products .all-product-link.btn:focus {
  border-color: var(--terravino-secondary);
  background: var(--terravino-secondary);
  color: #1a1a1a;
}
.new-products .all-product-link.btn:hover .material-icons,
.new-products .all-product-link.btn:focus .material-icons { color: #1a1a1a; }

.terravino-logo{
  display: flex;
  align-items: center;
  margin: 0;
}

.terravino-button{
  border: none;
  background-color: transparent;
  color: white;
}

/* ===== Promo section (ps_banner replaced) ===== */
.tv-promo {
  background: rgba(0,0,0,0.4);
  padding: 3rem 0;
}
.tv-promo__inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1rem; }
.tv-promo__head { text-align: center; margin-bottom: 2.5rem; }
.tv-promo__title { color: #ffffff; font-size: 2.5rem; line-height: 1.2; font-weight: 800; margin: 0 0 0.75rem; }
.tv-promo__sub { color: rgba(255,255,255,0.8); font-size: 1.25rem; line-height: 1.75rem; margin: 0; }

.tv-promo__cards { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 2rem; }
.tv-promo__card {
  flex: 0 1 48%;
  min-width: 300px;
  max-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 2rem;
  display: flex; flex-direction: column; min-height: 22rem;
}
.tv-promo__card--wine {
  background: linear-gradient(135deg, #722f37 0%, #980d33 50%, #5c061b 100%);
}
.tv-promo__card--delivery {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  border: 1px solid rgba(212,175,55,0.3);
}

.tv-promo__badge { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.tv-promo__badge-sub { display: block; font-size: 1rem; font-weight: 600; opacity: 0.9; }
.tv-promo__badge-icon { display: inline-block; font-size: 4rem; line-height: 1; margin-right: 0.5rem; vertical-align: middle; }
.tv-promo__card-title { color: #ffffff; font-size: 2rem; line-height: 2.5rem; font-weight: 800; margin: 0.25rem 0 0.75rem; }
.tv-promo__card-text { color: rgba(255,255,255,0.9); font-size: 1.125rem; line-height: 1.75rem; margin: 0 0 1rem; }

.tv-promo__card--delivery .tv-promo__card-title { color: #1a1a1a; }
.tv-promo__card--delivery .tv-promo__card-text { color: rgba(26,26,26,0.8); }

/* Giant delivery icon */
.tv-promo__icon-delivery { position: absolute; top: 1rem; right: 1rem; width: 120px; height: 120px; opacity: 0.2; color: #1a1a1a; }
.tv-promo__card--wine .tv-promo__icon-delivery { color: #ffffff; opacity: 0.25; }
.tv-promo__icon-delivery svg { width: 100%; height: 100%; display: block; }

.tv-promo__cta-row { margin-top: auto; display: flex; gap: 1rem; flex-wrap: wrap; }

.tv-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.25rem; border-radius: 10px; font-weight: 700; border: 2px solid transparent; text-decoration: none; transition: all 0.2s ease; }
.tv-btn--primary { background: #ffffff; color: #1a1a1a; }
.tv-btn--primary:hover { background: var(--terravino-secondary); color: #1a1a1a; }
.tv-btn--ghost { background: transparent; color: #ffffff; border-color: #ffffff; }
.tv-btn--ghost:hover { background: #ffffff; color: #1a1a1a; }
.tv-btn--dark { background: #1a1a1a; color: #ffffff; }
.tv-btn--dark:hover { background: #333; }
.tv-btn--outline-dark { background: transparent; color: #1a1a1a; border-color: #1a1a1a; }
.tv-btn--outline-dark:hover { background: #1a1a1a; color: #ffffff; }

@media (max-width: 1023.98px) {
  .tv-promo__card { flex-basis: 100%; max-width: none; }
}

.terravino-header a {
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Navigation */
.terravino-header nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

.terravino-title{
  margin: 0;
}

.space-around{
  justify-content: space-around;
}
@media (min-width: 640px) {
  .terravino-header nav {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .terravino-header nav {
    padding: 0 5rem;
  }
}

/* Utilitaires Flexbox */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

@media (min-width: 640px) {
  .sm\:gap-4 {
    gap: 1rem;
  }
}

@media (min-width: 1280px) {
  .xl\:gap-10 {
    gap: 2.5rem;
  }
}

/* Hauteur */
.h-16 {
  height: 4rem;
}

@media (min-width: 1024px) {
  .lg\:h-\[77px\] {
    height: 77px;
  }
}

/* Largeur */
.w-full {
  width: 100%;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

@media (min-width: 640px) {
  .sm\:w-\[60px\] {
    width: 60px;
  }
  .sm\:w-80 {
    width: 20rem;
  }
}

/* Hauteur */
.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-7 {
  height: 1.75rem;
}

@media (min-width: 640px) {
  .sm\:h-9 {
    height: 2.25rem;
  }
}

/* Texte */
.text-white {
  color: white;
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-black {
  color: black;
}

.text-\[\#ffd700\] {
  color: var(--terravino-secondary);
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

@media (min-width: 640px) {
  .sm\:text-xl {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .lg\:text-2xl {
    font-size: 1.5rem;
  }
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.leading-tight {
  line-height: 1.25;
}

.leading-7 {
  line-height: 1.75rem;
}

.leading-\[22px\] {
  line-height: 22px;
}

.tracking-\[0\.03em\] {
  letter-spacing: 0.03em;
}

/* Visibilité */
.hidden {
  display: none;
}

#terravino-hamburger-icon { display: block !important; }
#terravino-close-icon { display: none !important; }

@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }
  .sm\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }
  .lg\:hidden {
    display: none;
  }
}

/* Bordures */
.border-b {
  border-bottom-width: 1px;
}

.border-b-2 {
  border-bottom-width: 2px;
}

.border-white {
  border-color: white;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.border-\[\#ffd700\] {
  border-color: var(--terravino-secondary);
}

.border-\[\#ffd700\]\/20 {
  border-color: rgba(255, 215, 0, 0.2);
}

.border-l {
  border-left-width: 1px;
}

/* Padding */
.py-\[3px\] {
  padding-top: 3px;
  padding-bottom: 3px;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.pt-4 {
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Background */
.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-black\/90 {
  background-color: rgba(0, 0, 0, 0.9);
}

.bg-black\/95 {
  background-color: rgba(0, 0, 0, 0.95);
}

.bg-white {
  background-color: white;
}

.bg-\[\#ffd700\] {
  background-color: var(--terravino-secondary);
}

.bg-\[\#ffd700\]\/10 {
  background-color: rgba(255, 215, 0, 0.1);
}

.bg-\[\#ffd700\]\/20 {
  background-color: rgba(255, 215, 0, 0.2);
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.-top-2 {
  top: -0.5rem;
}

.-right-2 {
  right: -0.5rem;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

.right-0 {
  right: 0;
}

/* Z-index */
.z-50 {
  z-index: 50;
}

/* Rounded */
.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

/* Flex */
.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-col {
  flex-direction: column;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Object fit */
.object-contain {
  object-fit: contain;
}

/* Overflow */
.overflow-y-auto {
  overflow-y: auto;
}

/* Transitions */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Hover states */
.hover\:text-white:hover {
  color: white;
}

.hover\:text-\[\#ffd700\]:hover {
  color: var(--terravino-secondary);
}

.hover\:border-\[\#ffd700\]:hover {
  border-color: var(--terravino-secondary);
}

.hover\:bg-\[\#ffd700\]\/20:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

/* Focus */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* No underline */
.no-underline {
  text-decoration: none;
}

/* Underline hover utility (2px white bar) */
.underline-hover {
  border-bottom: 2px solid transparent;
}
.underline-hover:hover {
  border-bottom-color: #ffffff;
}

/* Active state: persistent 2px white underline */
.is-active {
  border-bottom: 2px solid #ffffff;
}

/* Menu mobile */
.terravino-mobile-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 215, 0, 0.2);
  overflow-y: auto;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  z-index: 1040;
}

/* Overlay text in white */
.terravino-mobile-menu a,
.terravino-mobile-menu span,
.terravino-mobile-menu button,
.terravino-mobile-menu h2 {
  color: #fff !important;
}

@media (min-width: 640px) {
  .terravino-mobile-menu {
    width: 20rem;
  }
}

.terravino-mobile-menu.hidden {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.terravino-mobile-menu.show {
  transform: translateX(0);
  opacity: 1;
}

/* Offcanvas recherche */
.search__offcanvas .offcanvas-header {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  padding: 1rem 1.5rem;
}

/* Max width */
.max-w-\[1440px\] {
  max-width: 1440px;
}

/* Margin */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.ml-auto {
  margin-left: auto;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ms-3 {
  margin-left: 0.75rem;
}

/* Backdrop blur */
.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

/* Height auto */
.h-auto {
  height: auto;
}

/* ===== Global page background ===== */
html, body {
  margin: 0; /* remove browser default margins to avoid left white strip */
  min-height: 100%;
  background-color: #0b0b0d;
  background-image: url('/themes/terravino/assets/img-dist/bg.svg') !important;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}
/* Hide scrollbars globally (optional per user request) */
html::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
/* Improve mobile performance: avoid fixed background */
@media (max-width: 767.98px) {
  html, body { background-attachment: scroll; background-size: cover; }
}

/* ===== Home slider styles ===== */
#home-slider .carousel-item {
  position: relative;
}
#home-slider .carousel-content img {
  display: block;
  width: 100%;
  height: auto;
}
#home-slider .tv-slider-gradient {
  position: absolute;
  inset: 0;
  /* Bordeaux gradient overlay */
  background: linear-gradient(90deg, rgba(109,7,26,0.80) 0%, rgba(109,7,26,0.55) 35%, rgba(109,7,26,0.30) 60%, rgba(109,7,26,0.00) 100%);
  pointer-events: none;
  z-index: 1;
}
#home-slider .tv-slider-caption {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 680px;
  z-index: 2;
}
@media (max-width: 767.98px) {
  #home-slider .tv-slider-caption {
    left: 12px;
    right: 12px;
    bottom: 16px;
    top: auto;
    transform: none;
    max-width: none;
  }
  #home-slider .tv-slider-caption h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
}

/* Increase slider height and ensure image covers */
#home-slider {
  height: 35vh;
  min-height: 100px;
  max-width: 100%;
}
#home-slider .carousel,
#home-slider .carousel-inner,
#home-slider .carousel-item,
#home-slider .carousel-content,
#home-slider .carousel-content img {
  height: 100%;
}
#home-slider .carousel-content img {
  object-fit: cover;
}

/* Carousel arrows: no round background, pushed to extremes */
#home-slider .carousel-control-prev,
#home-slider .carousel-control-next {
  width: auto;
  padding: 0 8px;
  background: transparent;
  color: white;
  border-radius: 0;
  opacity: 0.85;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
#home-slider .carousel-control-prev { left: 12px; right: auto; }
#home-slider .carousel-control-next { right: 12px; left: auto; }
#home-slider .carousel-control-prev:hover,
#home-slider .carousel-control-next:hover { opacity: 1; }

#home-slider .carousel-control-prev-icon,
#home-slider .carousel-control-next-icon {
  width: 2.25rem;
  height: 2.25rem;
  background-size: 100% 100%;
  background-color: transparent;
  filter: none;
}

/* Larger screens: make slider taller */
@media (min-width: 1536px) {
  #home-slider { height: 55vh; }
}

/* Force arrow icons to white using custom SVGs */
#home-slider .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}
#home-slider .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Mobile adjustments: contain images and reduce slider height */
@media (max-width: 767.98px) {
  #home-slider {
    height: 45vh;
    min-height: 240px;
  }
  #home-slider .carousel-content img {
    background-color: #000;
  }
  /* Make the gradient a bottom band on mobile for better contrast */
  #home-slider .tv-slider-gradient {
    background: linear-gradient(0deg, rgba(109,7,26,0.90) 0%, rgba(109,7,26,0.60) 40%, rgba(109,7,26,0.00) 100%);
  }
  /* Smaller CTA buttons on mobile */
  .tv-btn-primary,
  .tv-btn-secondary {
    padding: 8px 14px;
    font-size: 0.95rem;
    line-height: 1.1rem;
    border-radius: 6px;
  }
}

/* Slider CTA buttons (smaller, custom) */
.tv-btn-primary,
.tv-btn-secondary {
  padding: 10px 18px;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 700;
  border-radius: 8px;
}
.tv-btn-primary {
  background-color: #ffffff;
  color: #1a1a1a!important;
  border: 2px solid #ffffff;
}
.tv-btn-primary:hover {
  background-color: #f0f0f0;
  color: #000000!important;
  border-color: #f0f0f0;
}
.tv-btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.tv-btn-secondary:hover {
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  border-color: #ffffff;
}

/* ===== Newsletter (ps_emailsubscription) ===== */
.tv-newsletter {
  background: rgba(0,0,0,0.6);
  border-radius: 16px;
  padding: 40px 24px;
  width: 100%;
  max-width: 1216px; /* not full page */
  margin: 0 auto;
  margin-bottom: 4rem;
}
.tv-newsletter__inner { max-width: 896px; margin: 0 auto; }
.tv-newsletter__head { text-align: center; margin-bottom: 24px; }
.tv-newsletter__title { color: #ffffff; font-size: 2.5rem; line-height: 1.2; font-weight: 800; margin: 0 0 12px; }
.tv-newsletter__sub { color: rgba(255,255,255,0.8); font-size: 1.25rem; line-height: 1.75rem; margin: 0; }
.tv-newsletter__icon { width: 48px;margin-bottom: 12px; }
.tv-newsletter__form { margin-top: 20px; }
.tv-newsletter__inputs { display: flex; align-items: stretch; gap: 0; }
.tv-newsletter__input {
  flex: 1 1 auto;
  height: 62px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  outline: none;
}
.tv-newsletter__input::placeholder { color: #adaebc; }
.tv-newsletter__submit {
  height: 62px;
  padding: 0 28px;
  font-weight: 700;
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #ffffff;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  cursor: pointer;
}
.tv-newsletter__submit:hover { background: var(--terravino-secondary); border-color: var(--terravino-secondary); color: #1a1a1a; }
.tv-newsletter__trust { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 16px; }

/* Compact variant (column hook) */
.tv-newsletter--compact { padding: 20px; max-width: 100%; }
.tv-newsletter--compact .tv-newsletter__inner { max-width: none; }
.tv-newsletter--compact .tv-newsletter__title { font-size: 1.5rem; }
.tv-newsletter--compact .tv-newsletter__sub { font-size: 1rem; }
.tv-newsletter--compact .tv-newsletter__input, .tv-newsletter--compact .tv-newsletter__submit { height: 48px; }

@media (max-width: 767.98px) {
  .tv-newsletter__inputs { flex-direction: column; gap: 12px; }
  .tv-newsletter__input { border-right: 1px solid rgba(255,255,255,0.2); border-radius: 12px; }
  .tv-newsletter__submit { border-radius: 12px; }
}

/* ===== Breadcrumb ===== */
nav[aria-label="breadcrumb"],
.breadcrumb__wrapper {
  background: transparent !important;
}
.breadcrumb__wrapper .container { background: transparent; }
.breadcrumb { background: transparent; margin: 0; padding: 0.5rem 0; }
.breadcrumb, .breadcrumb a, .breadcrumb span { color: #ffffff !important; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--terravino-secondary) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }
