/* =====================================================================
   Boutique Château Lamothe — thème V2 (06/11/2026)
   Une seule palette (noir chaud + or), polices Playfair (titres) et Lora (texte),
   pensé d'abord pour le téléphone. S'appuie sur Bootstrap 3 (grille, carrousel, menus).
   ===================================================================== */

:root {
  --fond: #141210;
  --surface: #1e1b18;
  --surface-2: #27231f;
  --ligne: #3a342d;
  --texte: #ece6da;
  --texte-doux: #b3a998;
  --or: #c9a24a;
  --or-clair: #e2c27a;
  --or-fonce: #a8832f;
  --ok: #7fb069;
  --alerte: #e07a5f;
  --rayon: 6px;
  --titres: 'Playfair Display', Georgia, serif;
  --corps: 'Lora', Georgia, serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.6;
}
header, footer, main, .container { background-color: transparent; color: inherit; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 {
  font-family: var(--titres);
  color: var(--texte);
  font-weight: 600;
  line-height: 1.25;
}
h1, .h1 { font-size: 32px; }
h2, .h2 { font-size: 28px; }
a { color: var(--or); }
a:hover, a:focus { color: var(--or-clair); }
img { max-width: 100%; height: auto; }
hr { border-top-color: var(--ligne); }
.text-muted { color: var(--texte-doux); }
.lead { font-family: var(--titres); font-size: 20px; color: var(--or-clair); margin: 24px 0 10px; }
::selection { background: var(--or); color: #1a1a1a; }

/* Masqué à l'écran mais lu par les lecteurs d'écran (avant : display:none) */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ---------- */
.btn { border-radius: var(--rayon); font-family: var(--corps); font-weight: 600; padding: 10px 18px; transition: background-color .2s, border-color .2s, color .2s; }
.btn-primary, .btn-primary:focus {
  background: var(--or); border-color: var(--or); color: #17140f;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary:active:focus {
  background: var(--or-clair); border-color: var(--or-clair); color: #17140f;
}
.btn-primary[disabled], .btn-primary.disabled { background: var(--or-fonce); border-color: var(--or-fonce); color: #17140f; opacity: .7; }
.btn-default, .btn-default:focus {
  background: transparent; border-color: var(--ligne); color: var(--texte);
}
.btn-default:hover, .btn-default:active { background: var(--surface-2); border-color: var(--or); color: var(--texte); }
.btn-lg { padding: 14px 22px; font-size: 17px; }
.btn-block + .btn-block { margin-top: 10px; }

/* ---------- Formulaires ---------- */
.form-control {
  background: var(--surface); border: 1px solid var(--ligne); color: var(--texte);
  border-radius: var(--rayon); height: 44px; font-size: 16px; box-shadow: none;
}
.form-control:focus { border-color: var(--or); box-shadow: 0 0 0 2px rgba(201,162,74,.25); }
select.form-control { padding-right: 30px; }
textarea.form-control { height: auto; }
label { font-weight: 600; color: var(--texte-doux); }

/* ---------- En-tête ---------- */
.header { border-bottom: 1px solid var(--ligne); padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-inner:before, .header-inner:after { display: none; }
.brand { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.brand:hover, .brand:focus { text-decoration: none; }
.brand-name { font-family: var(--titres); font-size: 26px; letter-spacing: 1px; color: var(--or); text-transform: uppercase; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--texte-doux); letter-spacing: .5px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--rayon);
  color: var(--texte); text-decoration: none; white-space: nowrap;
}
.header-link:hover, .header-link:focus, .open > .header-link { background: var(--surface-2); color: var(--or-clair); text-decoration: none; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pastille {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--or); color: #17140f;
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-family: Arial, sans-serif;
}
.pastille.vide { background: var(--surface-2); color: var(--texte-doux); }
.header-montant { color: var(--texte-doux); font-size: 14px; }
.pastille.anime { animation: pulse .6s ease; }
@keyframes pulse { 50% { transform: scale(1.3); } }

.dropdown-menu {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); padding: 6px 0; min-width: 200px;
}
.dropdown-menu > li > a { color: var(--texte); padding: 10px 18px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--surface-2); color: var(--or-clair); }

/* ---------- Menu principal ---------- */
.website-navbar.navbar-default { background: transparent; border: 0; border-bottom: 1px solid var(--ligne); margin-bottom: 24px; min-height: 0; }
.website-navbar .navbar-nav > li > a { color: var(--texte-doux); font-size: 15px; padding: 12px 16px; letter-spacing: .3px; }
.website-navbar .navbar-nav > li > a:hover, .website-navbar .navbar-nav > li > a:focus { color: var(--or-clair); background: transparent; }
.website-navbar .navbar-nav > .active > a, .website-navbar .navbar-nav > .active > a:hover, .website-navbar .navbar-nav > .active > a:focus,
.website-navbar .navbar-nav > .open > a, .website-navbar .navbar-nav > .open > a:hover, .website-navbar .navbar-nav > .open > a:focus {
  color: var(--or); background: transparent; box-shadow: inset 0 -2px 0 var(--or);
}
.website-navbar .navbar-toggle { border-color: var(--ligne); margin: 8px 0; }
.website-navbar .navbar-toggle .icon-bar { background: var(--texte); }
.website-navbar .navbar-toggle:hover, .website-navbar .navbar-toggle:focus { background: var(--surface-2); }
.website-navbar .navbar-collapse { border-color: var(--ligne); box-shadow: none; }

/* ---------- Messages Baqio (flashes) ---------- */
.alert-flash { border-radius: var(--rayon); border: 1px solid; }
.alert-success { background: rgba(127,176,105,.12); border-color: var(--ok); color: var(--texte); }
.alert-danger { background: rgba(224,122,95,.12); border-color: var(--alerte); color: var(--texte); }

/* ---------- Grille des produits (accueil + collections) ---------- */
.products { padding-bottom: 24px; }
.grille-produits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.carte-produit {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne);
  border-radius: var(--rayon); overflow: hidden; color: var(--texte); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.carte-produit:hover, .carte-produit:focus { border-color: var(--or); transform: translateY(-2px); color: var(--texte); text-decoration: none; }
.carte-produit-image { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(circle at 50% 40%, #2b2621, var(--surface) 70%); }
.carte-produit-image { position: relative; overflow: hidden; }
.carte-produit-image img { position: absolute; top: 12px; left: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; transition: transform .3s; }
.carte-produit:hover .carte-produit-image img { transform: scale(1.04); }
.carte-produit-texte { padding: 12px 14px 16px; text-align: center; border-top: 1px solid var(--ligne); }
.carte-produit-titre { display: block; font-family: var(--titres); font-size: 18px; line-height: 1.3; }
.carte-produit-prix { display: block; margin-top: 6px; color: var(--or); font-size: 15px; }

/* ---------- Fiche produit ---------- */
.fil-ariane { font-size: 14px; color: var(--texte-doux); margin-bottom: 16px; }
.fil-ariane a { color: var(--texte-doux); }
.fil-ariane a:hover { color: var(--or-clair); }
.produit-titre { margin-top: 0; font-size: 34px; }
.produit-prix { font-family: var(--titres); font-size: 30px; color: var(--or); margin: 6px 0 4px; display: inline-block; }
.produit-prix-barre { color: var(--texte-doux); text-decoration: line-through; margin-left: 10px; }
.add-to-cart-form { margin: 16px 0 12px; }
.ligne-achat { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ligne-achat .input-group { width: 140px; }
.ligne-achat .input-group .btn { height: 44px; padding: 0 14px; }
.ligne-achat #Quantity { text-align: center; }
.ligne-achat #AddToCart { flex: 1 1 200px; height: 44px; }
.ajout-retour { margin-top: 12px; padding: 12px 14px; border-radius: var(--rayon); border: 1px solid; display: none; }
.ajout-retour.ok { border-color: var(--ok); background: rgba(127,176,105,.1); }
.ajout-retour.erreur { border-color: var(--alerte); background: rgba(224,122,95,.1); }
.ajout-retour .btn { margin: 8px 8px 0 0; }
.encart-info {
  margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--or); background: var(--surface);
  border-radius: 0 var(--rayon) var(--rayon) 0; font-size: 15px; color: var(--texte-doux);
}
.encart-info strong { color: var(--texte); }
.product-description, .product-vintage-description { font-size: 16.5px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ligne); }
.fiche-technique { margin: 0; }
.product-characteristic { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--ligne); margin: 0; }
.product-label { flex: 0 0 34%; letter-spacing: 1px; color: var(--texte-doux); font-size: 12px; text-transform: uppercase; padding-top: 3px; }
.product-value { flex: 1; }

/* Descriptions de millésime saisies dans Baqio (blocs .section, .citation…) : même habillage que le site */
.description-riche { font-size: 16px; }
.description-riche h1 { font-size: 22px; color: var(--or); margin: 6px 0 12px; }
.description-riche h2 { font-size: 20px; color: var(--or-clair); margin: 0 0 10px; }
.description-riche h3 { font-size: 18px; color: var(--or-clair); }
.description-riche p { text-align: left; font-size: 16px; margin: 0 0 10px; }
.description-riche .section, .description-riche .sectionprimeur {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 16px 18px; margin: 14px 0; box-shadow: none; color: var(--texte);
}
.description-riche .sectionprimeur { border-left: 3px solid var(--or); }
.description-riche .citation { font-style: italic; color: var(--or-clair); }
.description-riche .highlight { font-weight: 600; color: var(--texte); }
.description-riche b, .description-riche strong { color: var(--texte); }
.description-riche img { border-radius: var(--rayon); }
.description-riche .btnn { display: none; } /* remplacés par « Le millésime … dans nos autres gammes » */

/* Produits liés (même millésime) */
.produits-lies { margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.produits-lies h2 { font-size: 24px; margin: 0 0 16px; }

/* Carrousel photo */
.product-carousel { margin-bottom: 8px; }
.product-carousel .carousel-inner > .item { height: 560px; }
.product-carousel .carousel-inner > .item > img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-height: 540px; width: auto; max-width: 100%;
}
.product-carousel .carousel-control { background: none; width: 12%; color: var(--or); text-shadow: none; }
.product-carousel .carousel-indicators li { border-color: var(--or); }
.product-carousel .carousel-indicators .active { background: var(--or); }
.legal-note { font-size: 12px; color: var(--texte-doux); text-align: center; margin-bottom: 16px; }

/* ---------- Panier ---------- */
.panier-titre { margin-top: 0; }
.cart .table { background: transparent; }
.cart .table > thead > tr > th { border-bottom: 1px solid var(--ligne); color: var(--texte-doux); font-weight: 600; font-family: var(--corps); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.cart .table > tbody > tr > td { border-top: 1px solid var(--ligne); vertical-align: middle; }
.cart .table-bordered, .cart .table-bordered > thead > tr > th, .cart .table-bordered > tbody > tr > td { border-left: 0; border-right: 0; }
.cart__image img { max-height: 90px; width: auto; }
.cart__remove { display: inline-block; margin-top: 6px; color: var(--texte-doux); font-size: 14px; }
.cart__remove:hover { color: var(--alerte); }
.cart input[name="updates[]"] { width: 90px; text-align: center; display: inline-block; }
.cart-item__original-price { color: var(--texte-doux); display: block; }
.cart-item__discount { color: var(--ok); display: block; font-size: 13px; }
.cart-ligne-maj { font-size: 13px; color: var(--texte-doux); display: none; }
.recap-panier { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 28px; margin-top: 12px; }
.recap-bloc { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 18px; }
.recap-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.recap-total { font-family: var(--titres); font-size: 26px; color: var(--or); }
.jauge-livraison { margin: 12px 0 4px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.jauge-livraison span { display: block; height: 100%; background: var(--or); }
.livraison-msg { font-size: 14px; color: var(--texte-doux); margin: 4px 0 0; }
.livraison-msg.offerte { color: var(--ok); }
.choix-compte h3 { font-size: 20px; margin-top: 0; }
.choix-compte p { font-size: 14px; color: var(--texte-doux); }
.lien-sans-compte { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--texte-doux); background: none; border: 0; padding: 0; text-decoration: underline; }
.lien-sans-compte:hover { color: var(--texte); }
.paiement-info { font-size: 14px; color: var(--texte-doux); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ligne); }
.paiement-info strong { color: var(--texte); }
.panier-vide { text-align: center; padding: 40px 0 60px; }

/* ---------- Pages, contact, blog ---------- */
.page h1.page-title, h1.page-title { margin: 0 0 20px; }
.page { padding-bottom: 32px; }
.page table { width: 100%; }
.page td, .page th { border-color: var(--ligne) !important; padding: 6px; }
.article-item { margin-bottom: 28px; }
ul.no-bullets { list-style: none outside; margin-left: 0; padding: 0; }
.thumbnail { background: var(--surface); border-color: var(--ligne); }

/* ---------- Pied de page ---------- */
.footer { margin-top: 40px; padding: 40px 0 24px; background: #0d0c0a; border-top: 1px solid var(--ligne); color: var(--texte-doux); font-size: 15px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer h3 { font-size: 18px; margin: 0 0 12px; color: var(--or); }
.footer a { display: block; margin-bottom: 6px; color: var(--texte-doux); }
.footer a:hover { color: var(--or-clair); }
.footer p { margin: 0 0 6px; }
.livraison-regles { margin: 6px 0 0; padding-left: 18px; }
.livraison-regles li { margin-bottom: 4px; }
.livraison-regles .offert { color: var(--or-clair); }
.social-icons { display: flex; gap: 12px; margin-top: 12px; }
.social-icons a { display: inline-flex; width: 40px; height: 40px; border: 1px solid var(--ligne); border-radius: 50%; align-items: center; justify-content: center; margin: 0; }
.social-icons a:hover { border-color: var(--or); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bas { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: 12px; text-align: center; }

/* ---------- Bouton WhatsApp ---------- */
.bouton-whatsapp {
  position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.45); z-index: 1000; transition: transform .2s;
}
.bouton-whatsapp:hover { transform: scale(1.08); }
.bouton-whatsapp svg { width: 32px; height: 32px; }
body.page-panier .bouton-whatsapp { display: none; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 991px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .recap-panier { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  h1, .h1 { font-size: 26px; }
  .produit-titre { font-size: 26px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 11px; }
  .header-label, .header-montant { display: none; }
  .header-link { padding: 8px; }
  /* Menu court (2 liens) : toujours visible, sans bouton hamburger */
  .website-navbar .navbar-header { display: none; }
  .website-navbar .navbar-collapse.collapse { display: block !important; height: auto !important; padding: 0; border: 0; }
  .website-navbar .navbar-nav { margin: 0; display: flex; overflow-x: auto; white-space: nowrap; }
  .website-navbar .navbar-nav > li > a { padding: 12px 10px; font-size: 14px; }
  .website-navbar { margin-bottom: 16px; }
  .grille-produits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .carte-produit-image { padding: 10px; }
  .carte-produit-titre { font-size: 16px; }
  .product-carousel .carousel-inner > .item { height: 360px; }
  .product-carousel .carousel-inner > .item > img { max-height: 340px; }
  .product-label { flex-basis: 40%; }
  .footer-columns { grid-template-columns: 1fr; gap: 20px; }
  .bouton-whatsapp { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .bouton-whatsapp svg { width: 28px; height: 28px; }

  /* Panier : chaque article devient une carte */
  .cart .table > thead { display: none; }
  .cart .table, .cart .table > tbody, .cart .table > tbody > tr, .cart .table > tbody > tr > td { display: block; width: 100%; }
  .cart .table > tbody > tr { border: 1px solid var(--ligne); border-radius: var(--rayon); margin-bottom: 12px; padding: 10px; position: relative; }
  .cart .table > tbody > tr > td { border: 0 !important; padding: 4px 0; text-align: left !important; }
  .cart .table > tbody > tr > td:first-child { float: left; width: 70px; margin-right: 12px; }
  .cart .table > tbody > tr > td[data-label]:not(:first-child):before { content: attr(data-label) " : "; color: var(--texte-doux); font-size: 13px; }
  .cart .table > tbody > tr:after { content: ''; display: table; clear: both; }
  .cart .table .h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

