:root{
  --bg: #0a0a0a;
  --bg-soft: #0f0f10;
  --panel: #0b0b0b;
  --panel-2: #101012;
  --border: #1f1f22;

  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.55);

  --accent: #c08457;
  --accent-2: #b46a3c;

  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

*{ box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 50% -20%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(900px 600px at 50% 20%, rgba(192,132,87,.10), transparent 60%),
    var(--bg);
  color: var(--text);
}

a{ color: inherit; }
p{ margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
h1,h2,h3{ margin: 0 0 10px; letter-spacing: .02em; }
h1{ font-size: clamp(28px, 3.2vw, 44px); }
h2{ font-size: clamp(20px, 2.4vw, 28px); }
h3{ font-size: 16px; }

.tf-container{
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Onglets inline (sous le texte) */
.tf-top-tabs.tf-top-tabs-inline{  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-top: 14px;
  background: transparent;
  border: 0;
  width: 100%;
}

.tf-top-tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.tf-top-tab:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.16);
}

.tf-top-tab.is-active{
  background: rgba(192,132,87,.16);
  border-color: rgba(192,132,87,.55);
  color: #fff;
  box-shadow: 0 10px 30px rgba(192,132,87,.10);
}

.tf-header{
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.tf-header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.tf-logo{
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.tf-logo span{
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.tf-cart-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.tf-cart-btn:hover{
  border-color: rgba(192,132,87,.55);
  background: rgba(192,132,87,.12);
}

.tf-main{ padding-bottom: 80px; }

.tf-top-panel{ display: none; }
.tf-top-panel.is-active{ display: block; }

.tf-hero{
  padding: 36px 0 10px;
}

.tf-hero-inner{
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.tf-hero-note{
  color: var(--muted-2);
  font-size: 14px;
}

.tf-section{
  padding: 34px 0;
}

.tf-section-alt{
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.tf-section-header p{
  max-width: 64ch;
}

.tf-products-grid{
  display: grid;
  gap: 18px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tf-product-card{
  background: linear-gradient(180deg, rgba(11,11,11,.92), rgba(11,11,11,.80));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  display: flex;
  flex-direction: column;
}

.tf-product-img{
  height: 140px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,.08), transparent 60%),
    url("/assets/images/header-bouteille.jpg") center/cover no-repeat;
  filter: saturate(.92) contrast(1.05);
}

.tf-product-body{
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.tf-product-tag{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.tf-product-desc{
  color: rgba(255,255,255,.72);
  font-size: 14px;
}

.tf-product-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tf-product-price{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tf-price-main{
  font-weight: 800;
  letter-spacing: .01em;
}

.tf-price-note{
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .10em;
}

.tf-btn{
  appearance: none;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease;
}

.tf-btn:active{ transform: translateY(1px); }

.tf-btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 34px rgba(192,132,87,.14);
}

.tf-btn-primary:hover{ filter: brightness(1.06); }

.tf-btn-small{
  padding: 10px 14px;
  font-size: 13px;
}

.tf-btn-full{
  width: 100%;
  padding: 12px 14px;
}

.tf-info-card{
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(11,11,11,.75);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.tf-muted{ color: var(--muted-2); }

.tf-pro-block{
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(11,11,11,.75);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.tf-pro-intro{
  max-width: 70ch;
}

.tf-pro-card-grid{
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tf-pro-card{
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  padding: 16px;
}

.tf-pro-tag{
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255,255,255,.62);
  letter-spacing: .10em;
  text-transform: uppercase;
}

.tf-pro-card ul{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.72);
}

.tf-pro-cta{
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(192,132,87,.30);
  background: rgba(192,132,87,.08);
}

.tf-pro-cta-title{
  font-weight: 800;
  color: #fff;
}

.tf-pro-contact a{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.tf-pro-contact a:hover{
  border-bottom-color: rgba(192,132,87,.8);
}

/* PANIER */
.tf-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1200;
}

.tf-cart{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: rgba(11,11,11,.94);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255,255,255,.10);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 1300;
  display: flex;
  flex-direction: column;
}

.tf-cart.is-open{ transform: translateX(0); }
.tf-cart-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.tf-cart-header{
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.tf-cart-close{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}

.tf-cart-body{
  padding: 14px 16px;
  overflow: auto;
  flex: 1;
}

.tf-cart-empty{
  color: rgba(255,255,255,.65);
}

.tf-cart-footer{
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.tf-cart-total{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 10px;
}

.tf-cart-note{
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.tf-cart-item{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-bottom: 10px;
}

.tf-cart-item-main h4{
  margin: 0 0 6px;
  font-size: 14px;
}

.tf-cart-item-main p{
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255,255,255,.62);
}

.tf-cart-item-qty{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tf-cart-qty-btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  cursor: pointer;
}

.tf-cart-item-remove{
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.tf-cart-item-price{
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 520px){
  .tf-hero-inner{ padding: 18px; }
  .tf-product-footer{ flex-direction: column; align-items: stretch; }
  .tf-btn-small{ width: 100%; }
}


/* Compatibility: old JS used `.open` instead of `.is-open` */
.tf-cart.open{ transform: translateX(0); }
.tf-cart-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* --- Distributeur: espace + formulaire (connexion/inscription) --- */
.tf-distributor{
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.tf-distributor-head{ margin-bottom: 12px; }

.tf-distributor-title{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: .02em;
}

.tf-distributor-subtitle{
  margin: 0;
  color: rgba(255,255,255,.70);
  max-width: 85ch;
}

.tf-auth-tabs{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.tf-auth-tab{
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
}

.tf-auth-tab.is-active{
  background: rgba(192,132,87,.16);
  border-color: rgba(192,132,87,.55);
  color: #fff;
}

.tf-auth-title{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .02em;
  text-align: center;
}

.tf-auth-section{ display: none; }
.tf-auth-section.is-active{ display: block; }

.tf-login-form{
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.tf-input{
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}

.tf-input::placeholder{ color: rgba(255,255,255,.45); }

.tf-input:focus{
  border-color: rgba(192,132,87,.55);
  box-shadow: 0 0 0 3px rgba(192,132,87,.12);
}

.tf-login-help{
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.58);
  text-align: center;
}

.tf-login-help a{
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.tf-login-help a:hover{
  border-bottom-color: rgba(192,132,87,.8);
}
