/* =========================================================
   VARIABLES
========================================================= */
:root{
  --bg-main: #f3f0ec;
  --text-main: #1c1a18;
  --text-muted: #5a534e;

  --gold-main: #c7a25a;
  --gold-dark: #a8833f;

  --white-card: #ffffff;
  --radius: 16px;

  --shadow-soft: 0 20px 50px rgba(0,0,0,.12);
  --shadow-light: 0 10px 30px rgba(0,0,0,.08);

  --max-width: 1180px;
}

/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html,body{
  margin: 0;
  padding: 0;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

/* =========================================================
   UTILITAIRES
========================================================= */
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

.text-center{ text-align: center; }
.uppercase{ text-transform: uppercase; }
.muted{ color: var(--text-muted); }

.serif{
  font-family: "Times New Roman", Times, serif;
}

/* =========================================================
   HERO (index) — image via style="" OU background CSS
========================================================= */
.hero{
  width: 100%;
  height: 55vh;
  min-height: 360px;
  max-height: 600px;
  position: relative;
  overflow: hidden;

  background-color: #ddd;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Si tu utilises <img class="hero__img"> quelque part */
.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   SECTION MARBRE (INDEX)
========================================================= */
.univers{
  position: relative;
  padding: 60px 18px 80px;
  overflow: hidden;

  /* CSS est dans /assets/css/ -> image dans /assets/img/ */
  background-image: url("../img/marbre.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.univers::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.45); /* ↓ = marbre plus visible */
  pointer-events:none;
}

.univers__inner{
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.univers__title{
  margin: 0 0 48px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  color: #7a5a2b;
}

/* =========================================================
   CARTES (INDEX)
========================================================= */
.cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card{
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--white-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* image gauche gérée en background-image (inline dans index.php) */
.card__media{
  background-color: #f0f0f0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* zone image verrouillée */
  min-height: 260px;
}

/* Sécurité si un <img> traîne encore dans le HTML */
.card__media img{
  display: none !important;
}

.card__content{
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__kicker{
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 700;
  text-transform: uppercase;
  color: #8a7d75;
  margin-bottom: 10px;
}

.card__title{
  margin: 0 0 16px;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.05;
  letter-spacing: .05em;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b4d23;
}

.card__text{
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 15px;
  color: var(--text-muted);
}

/* =========================================================
   BOUTONS — version plus élégante (moins “pâteux”)
========================================================= */
.btn{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(180deg, #d6b36a, #b8893a);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
}

.btn:active{
  transform: translateY(0);
}

/* variante sombre */
.btn--couture{
  background: linear-gradient(180deg, #1a1917, #0f0e0d);
  border: 1px solid rgba(199,162,90,.65);
  color: #f5f1ea;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE (INDEX)
========================================================= */
@media (max-width: 980px){
  .card{ grid-template-columns: 45% 55%; }
}

@media (max-width: 820px){
  .cards{ grid-template-columns: 1fr; }
  .card{ grid-template-columns: 1fr; }
  .card__media{ min-height: 220px; }
  .card__content{ padding: 26px; }
  .btn{
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }
}

/* =========================================================
   SHOP (particuliers.php)
========================================================= */

/* Header shop */
.shop-header{
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.shop-header__inner{
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.shop-header__logo{
  color: #fff;
  text-decoration: none;
  letter-spacing: .10em;
  font-weight: 600;
  text-transform: uppercase;
}

.shop-header__cartlink{
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .08em;
}

/* Bande marbre (titre boutique) */
.marble-band{
  padding: 42px 0;
  position: relative;
  overflow: hidden;

  background-image: url("../img/marbre.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.marble-band::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.55);
  pointer-events:none;
}
.marble-band > .container{
  position: relative;
  z-index: 1;
}

/* ✅ Fond marbre sous les cartes produits */
.products-area{
  position: relative;
  padding: 26px 0 60px;
  overflow: hidden;

  background-image: url("../img/marbre.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.products-area::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.45);
  pointer-events:none;
}
.products-area > .container{
  position: relative;
  z-index: 1;
}

/* Grille produits */
.products-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Cartes produits */
.product-card{
  background: rgba(255,255,255,.90);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  border: 1px solid rgba(199,162,90,.20);
  backdrop-filter: blur(1px);
  display: grid;
  grid-template-rows: 220px 1fr;
}

.product-card__media{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}

.product-card__body{
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}

.product-card__title{
  margin: 0 0 8px;
  letter-spacing: .03em;
  color: #2a241f;
}

.product-card__desc{
  margin: 0 0 14px;
  color: #6a625c;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.product-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__price{
  font-weight: 800;
  color: #6b4d23;
  white-space: nowrap;
}

/* Drawer panier */
.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 60;
}
.cart-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: #fff;
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
  transform: translateX(105%);
  transition: transform .25s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.cart-drawer.open{ transform: translateX(0); }

.cart-drawer__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.cart-drawer__close{
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.cart-items{
  padding: 16px 0;
  overflow: auto;
  flex: 1;
}

.cart-line{
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f1;
}

.cart-line__img{
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
}

.cart-line__title{
  font-weight: 800;
  margin-bottom: 4px;
  color: #2a241f;
}

.cart-line__meta{
  font-size: 12px;
  color: #6f6862;
  margin-bottom: 10px;
}

.cart-line__controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qty-btn{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}

.qty{
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.link-danger{
  border: none;
  background: transparent;
  color: #b23b3b;
  cursor: pointer;
  font-weight: 600;
}

.cart-line__price{
  font-weight: 900;
  color: #6b4d23;
  white-space: nowrap;
}

.cart-drawer__bottom{
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.cart-totals{
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  margin-bottom: 14px;
}

/* Responsive shop */
@media (max-width: 980px){
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .products-grid{ grid-template-columns: 1fr; }
  .product-card{ grid-template-rows: 200px 1fr; }
}

/* =========================================
   ESPACE CLIENT B2C — LFT Pro
   ========================================= */

.page-b2c-account .account-wrap{
  padding: 56px 0 80px;
}

/* --- (A) Conteneurs --- */

/* Cas 1: Utilisateur connecté ou Erreur (colonne unique centrée) */
.page-b2c-account .account-shell{
  max-width: 760px;
  margin: 0 auto;
}

/* Cas 2: Login / Register (Plus large pour le côte à côte) */
.page-b2c-account .account-shell-wide{
  max-width: 1100px;
  margin: 0 auto;
}

/* La grille pour mettre les 2 cartes côte à côte */
.page-b2c-account .login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* --- (B) Carte Style --- */
.page-b2c-account .account-card{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 22px 55px rgba(0,0,0,.10);
  backdrop-filter: blur(1px);
  
  /* Pour que les cartes aient la même hauteur dans la grille */
  height: 100%; 
}

/* Titres & Textes */
.page-b2c-account .account-title{
  margin: 0 0 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2a241f;
}

.page-b2c-account .account-subtitle{
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.page-b2c-account .account-section{
  margin-top: 22px;
}

.page-b2c-account .account-h4{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #2a241f;
}

.page-b2c-account .account-help{
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Champs (Inputs) */
.page-b2c-account .field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.page-b2c-account .field label{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.70);
}

.page-b2c-account .input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.16);
  background: rgba(255,255,255,.98);
  color: var(--text-main);
  font-size: 15px;
}

.page-b2c-account .input:focus{
  outline: none;
  border-color: rgba(199,162,90,.75);
  box-shadow: 0 0 0 3px rgba(199,162,90,.22);
}

/* Boutons */
.page-b2c-account .btn-row{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.page-b2c-account .btn-row .btn,
.page-b2c-account .btn-row .btn-ghost{
  width: 100%;
}

@media (min-width: 640px){
  .page-b2c-account .btn-row .btn,
  .page-b2c-account .btn-row .btn-ghost{
    width: auto;
  }
}

.page-b2c-account .btn-ghost{
  border: 1px solid rgba(0,0,0,.18);
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #2a241f;
  background: rgba(255,255,255,.70);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.page-b2c-account .btn-ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 26px rgba(0,0,0,.10);
}

/* Séparateur "OU" (gardé au cas où, même si plus utilisé sur le login) */
.page-b2c-account .or-divider{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
}

.page-b2c-account .or-divider::before,
.page-b2c-account .or-divider::after{
  content:"";
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(199,162,90,.65), transparent);
}

.page-b2c-account .or-divider span{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(107,77,35,.85);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(199,162,90,.35);
  background: rgba(255,255,255,.85);
}

.page-b2c-account .account-foot{
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive global du compte */
@media (max-width: 900px){
  /* On empile les cartes connexion/inscription sur tablette/mobile */
  .page-b2c-account .login-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .page-b2c-account .account-card{
    padding: 24px;
    border-radius: 18px;
  }
  .page-b2c-account .account-wrap{
    padding: 44px 0 70px;
  }
}
/* =========================================================
   ESPACE PRO (B2B) — LFT PRO
   Classes utilisées : .pro-auth-*, .pro-card, .pro-tabs...
========================================================= */

/* --- AUTH : LOGIN & REGISTER (GRID) --- */
.pro-auth-stage {
  padding: 60px 0 100px;
  background-image: url("../img/marbre.jpeg"); /* Assurez-vous que l'image existe */
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pro-auth-head {
  margin-bottom: 50px;
}

.pro-auth-title {
  font-size: clamp(30px, 4vw, 48px);
  color: #6b4d23; /* Marron doré */
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.pro-auth-grid2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Séparateur vertical */
.pro-auth-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pro-auth-sep__line {
  flex: 1;
  width: 1px;
  background: rgba(107, 77, 35, 0.2);
}
.pro-auth-sep__pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid rgba(107, 77, 35, 0.2);
  border-radius: 99px;
  color: #6b4d23;
}

/* Cartes Auth */
.pro-card {
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Carte Login (Clair) */
.pro-card--login {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Carte Register (Sombre / Gold) */
.pro-card--register {
  background: linear-gradient(145deg, #1c1a18, #2a2622);
  color: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(199, 162, 90, 0.1);
}

.pro-card__head { margin-bottom: 30px; }

.pro-chip {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #eee;
  color: #555;
}
.pro-chip--gold {
  background: linear-gradient(90deg, #c7a25a, #e6c885);
  color: #1a1917;
}

.pro-card__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.1;
}

.pro-card__sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.pro-card__sub--dark { color: rgba(255, 255, 255, 0.7); }

/* Formulaires Pro */
.pro-form { display: flex; flex-direction: column; gap: 18px; }

.pro-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(0, 0, 0, 0.6);
}
.pro-label-dark { color: rgba(255, 255, 255, 0.6) !important; }

.pro-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-size: 15px;
  transition: border 0.2s, box-shadow 0.2s;
}
.pro-field input:focus {
  outline: none;
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(199, 162, 90, 0.2);
}

.pro-btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 13px; }

.pro-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.pro-check input { margin-top: 3px; accent-color: var(--gold-main); }

.pro-note { font-size: 12px; color: var(--text-muted); margin: 10px 0 0; text-align: center; }
.pro-note--dark { color: rgba(255, 255, 255, 0.4); }

.pro-form-error {
  color: #b23b3b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  min-height: 20px;
}
.pro-form-error--dark { color: #ff6b6b; }

/* Overlay de chargement JS */
.pro-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease forwards;
}
.pro-auth-overlay__card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
  text-align: center;
}
.pro-auth-overlay__spinner {
  width: 40px; height: 40px; margin: 0 auto 20px;
  border: 4px solid #f3f3f3; border-top: 4px solid var(--gold-main);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* --- INTERFACE CONNECTÉE (TABS) --- */
.pro-tabs {
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,.05);
  display: inline-flex;
}

.pro-tab {
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.pro-tab:hover { color: var(--text-main); background: #f9f9f9; }

.pro-tab.is-active {
  background: var(--text-main);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.pro-tabpanel {
  display: none; /* géré par le JS (hidden) mais secure ici */
  animation: slideUp .3s ease forwards;
}
.pro-tabpanel.is-active { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pay pills (radio buttons stylisés) */
.pay-pill {
  flex: 1;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}
.pay-pill:has(input:checked) {
  border-color: var(--gold-main);
  background: rgba(199, 162, 90, 0.1);
  color: #6b4d23;
}
.pay-pill input { display: none; }

/* Responsive Grid Auth */
@media (max-width: 900px) {
  .pro-auth-grid2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pro-auth-sep {
    flex-direction: row;
    width: 100%;
  }
  .pro-auth-sep__line { height: 1px; width: 100%; }
}



