/* ===== Maison Chems — style.css (Clean / Pro) ===== */

/* Reset */
*,
*::before,
*::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; }

:root{
  --bg:#0f0f0f;
  --bg2:#111;
  --panel: rgba(0,0,0,.35);
  --panel2: rgba(0,0,0,.25);

  --gold:#d4af37;
  --gold2:#f6e27a;
  --goldSolid:#ffd700;

  --borderGold: rgba(255,215,0,.12);
  --shadow: 0 22px 70px rgba(0,0,0,.38);
  --shadow2: 0 18px 60px rgba(0,0,0,.30);
}

body{
  font-family:'Poppins', sans-serif;
  background: var(--bg);
  color:#fff;
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width:100%; display:block; }

/* ===== Header / Nav ===== */
header{
  position: fixed;
  top: 0; left: 0; right: 0;
  width:100%;
  padding: 20px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  background: rgba(0,0,0,0.60);
  border-bottom: 1px solid rgba(255,215,0,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index:1000;
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
  transform: translateZ(0);
  will-change: transform;
}

header.scrolled{
  padding: 10px 30px;
  background: rgba(0,0,0,0.85);
  box-shadow: 0 10px 40px rgba(0,0,0,0.60);
}

header h1{
  font-weight:700;
  letter-spacing:2px;
  font-size:20px;
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

header h1 a{
  text-decoration:none;
  color: inherit;
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  cursor:pointer;
}

header h1 a:hover{ opacity:.85; }

nav{
  display:flex;
  align-items:center;
  gap: 16px;
}

nav a{
  text-decoration:none;
  color:#fff;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(0,0,0,0.10);
  box-shadow: 0 0 12px rgba(255,215,0,0.14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
  letter-spacing: .2px;
}

nav a:hover{
  transform: translateY(-2px);
  border-color: rgba(255,215,0,0.65);
  box-shadow: 0 0 24px rgba(255,215,0,0.50);
  color: var(--goldSolid);
  background: rgba(255,215,0,0.06);
}

/* Cart button in header */
.cart-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.28);
  background: rgba(0,0,0,0.10);
  color:#fff;
  cursor:pointer;
  box-shadow: 0 0 12px rgba(255,215,0,0.14);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}

.cart-btn i{ font-size:15px; }

.cart-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(255,215,0,0.65);
  box-shadow: 0 0 24px rgba(255,215,0,0.50);
  color: var(--goldSolid);
  background: rgba(255,215,0,0.06);
}

.cart-count{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,215,0,0.92);
  color:#000;
}

/* ===== Sections ===== */
section{
  min-height: 100vh;
  padding: 150px 60px 80px;
}

/* ===== Hero ===== */
#home{
  position: relative;
  min-height: 100vh;
  background:
          linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.75)),
          url("../assets/images/landscape.jpg") center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
}

#home::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at center,
  rgba(0,0,0,0.10) 0%,
  rgba(0,0,0,0.60) 60%,
  rgba(0,0,0,0.90) 100%);
  pointer-events:none;
}

#home > *{ position:relative; z-index:2; }

.hero-text{
  max-width: 620px;
  display:flex;
  flex-direction:column;
  gap: 18px;
  text-align:left;
}

.hero-text h2{
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 5px 25px rgba(0,0,0,0.80);
}

.hero-text p{
  opacity: .82;
  line-height: 1.6;
  text-shadow: 0 3px 15px rgba(0,0,0,0.60);
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 24px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,215,0,0.60);
  background: rgba(0,0,0,0.35);
  color:#fff;
  text-decoration:none;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 0 18px rgba(255,215,0,0.25), 0 12px 30px rgba(0,0,0,0.40);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.cta-btn:hover{
  transform: translateY(-3px);
  border-color: var(--goldSolid);
  background: rgba(255,215,0,0.92);
  color:#000;
  box-shadow: 0 0 30px rgba(255,215,0,0.65), 0 18px 45px rgba(0,0,0,0.55);
}

/* Hero logo */
.logo-hero{
  position: absolute !important;
  left: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  right: auto !important;
  z-index: 12;
  display: block;
  text-decoration: none;
  max-width: 190px;
}

#home .logo-hero{
  margin: 0 !important;
  align-self: auto !important;
}
.logo-hero::before{
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,215,0,.22) 0%, rgba(255,215,0,.10) 35%, rgba(255,215,0,0) 72%);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  z-index: -1;
}
.logo-hero img{
  width: 116px;
  height: auto;
  object-fit: contain;
  opacity: .96;
  transform-origin: center;
  transform: scale(0.94);
  transition: transform .45s ease, opacity .3s ease, filter .35s ease;
  filter: drop-shadow(0 0 10px rgba(255,215,0,.18));
  mix-blend-mode: screen;
}

.logo-hero:hover::before{
  opacity: 1;
  transform: scale(1);
}

.logo-hero:hover img{
  transform: rotate(10deg) scale(1.04);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(255,215,0,.30)) drop-shadow(0 0 34px rgba(255,215,0,.18));
}

/* ===== Products / Showroom ===== */
#products{ background: var(--bg2); }

.products-toolbar{
  display:flex;
  gap:12px;
  margin: 16px 0 28px;
  flex-wrap:wrap;
}

.filter-btn{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.20);
  background: rgba(0,0,0,0.30);
  color:#fff;
  cursor:pointer;
  box-shadow: 0 0 10px rgba(255,215,0,0.10);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.filter-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,215,0,0.10);
  border-color: rgba(255,215,0,0.45);
  box-shadow: 0 0 18px rgba(255,215,0,0.25);
}

.filter-btn.active{
  background: rgba(255,215,0,0.92);
  color:#000;
  border-color: rgba(255,215,0,0.75);
  box-shadow: 0 0 24px rgba(255,215,0,0.40);
}

.showroom{
  display:grid;
  gap: 120px;
}

.shelf, .counter{
  padding: 18px;
  border-radius: 22px;
  background: var(--panel2);
  border: 1px solid rgba(255,215,0,0.10);
  box-shadow: 0 22px 70px rgba(0,0,0,0.35);
}

.shelf-head, .counter-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom: 16px;
}

.shelf-head h3, .counter-head h3{
  font-size: 16px;
  letter-spacing: .3px;
}

.shelf-line, .counter-line{
  flex:1;
  height:1px;
  background: linear-gradient(90deg, rgba(255,215,0,0.35), transparent);
  opacity:.8;
}

.shelf-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 40px;
}

.shelf-base{
  margin-top: 16px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,215,0,0.10), rgba(255,255,255,0.06), rgba(255,215,0,0.10));
  opacity: .7;
}

.counter-glass{
  position:relative;
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 18px;
}

.counter-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.glass-shine{
  position:absolute;
  inset:-40% -40% auto auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,215,0,0.18), transparent 60%);
  transform: rotate(18deg);
  pointer-events:none;
}

.glass-fade{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.40));
  pointer-events:none;
}

.counter-base{
  margin-top: 16px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,0,0,0.65), rgba(255,215,0,0.10), rgba(0,0,0,0.65));
  opacity: .9;
}

/* ===== Product Cards ===== */
.product-card{
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 22px;
  overflow: hidden;

  transform-style: preserve-3d;
  perspective: 1000px;

  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card::before{
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.10) 0%, transparent 70%);
  transform: rotate(30deg);
  pointer-events: none;
  transition: transform 0.6s ease;
}

.product-card:hover::before{
  transform: rotate(30deg) translate(20%, 20%);
}

.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}

.product-card img{
  width:100%;
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.product-card:hover img{
  transform: scale(1);
}

.counter .product-card img{
  width:100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

.product-info{
  padding: 14px 14px 16px;
  display:grid;
  gap: 6px;
}

.product-name{ font-weight: 600; letter-spacing: .2px; }
.product-price{ color: var(--goldSolid); opacity: .95; font-weight: 700; }
.tilt{
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.tilt.is-tilting{
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
  filter: saturate(1.05);
}

/* ===== Add-to-cart button (unified) ===== */
.add-cart-btn,
.add-to-cart{
  width: 100%;
  margin-top: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 16px;

  border: 1.5px solid rgba(255,215,0,0.22);
  background: rgba(0,0,0,0.35);
  color:#fff;

  cursor:pointer;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;

  box-shadow: 0 0 14px rgba(255,215,0,0.14), 0 12px 30px rgba(0,0,0,0.45);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.add-to-cart i{ color: rgba(255,215,0,.95); }

.add-cart-btn:hover,
.add-to-cart:hover{
  transform: translateY(-2px);
  border-color: rgba(255,215,0,0.45);
  background: rgba(0,0,0,0.48);
  box-shadow: 0 0 22px rgba(255,215,0,0.25), 0 18px 45px rgba(0,0,0,0.55);
}

.add-cart-btn:active,
.add-to-cart:active{
  transform: translateY(0px) scale(.99);
}

/* ===== Product Modal ===== */
.modal{
  position: fixed;
  inset:0;
  display:none;
  z-index: 9999;
}
.modal.open{
  display:flex;
  align-items:center;
  justify-content:center;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card{
  position: relative;
  width: min(980px, calc(100% - 32px));
  min-height: 520px;

  display:flex;
  flex-direction: row;

  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: 22px;
  box-shadow: 0 30px 120px rgba(0,0,0,0.70);
  overflow: hidden;
  z-index: 10001;

  transform: perspective(1200px) rotateX(12deg) scale(0.92);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
}

.modal.open .modal-card{
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) scale(1);
}

.modal-content{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: 100%;
}

.modal-img img{
  width:100%;
  height: 520px;
  object-fit: cover;
}

.modal-info{
  padding: 22px;
  display:grid;
  gap: 10px;
}

.modal-title{
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold2);
}
.modal-price{
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.modal-desc{
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
}
.modal-actions{ margin-top: 10px; }

/* ===== Cart Drawer ===== */
.cart-modal{
  position: fixed;
  inset:0;
  display:none;
  z-index: 99999;
}
.cart-modal.open{ display:block; }

.cart-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cart-panel{
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 92vw);

  border-left: 1px solid rgba(255,215,0,0.12);
  background: rgba(0,0,0,0.72);
  box-shadow: -30px 0 120px rgba(0,0,0,0.70);
  overflow: hidden;

  transform: translateX(110%);
  transition: transform .35s ease;

  display:flex;
  flex-direction:column;
}

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

.cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,215,0,0.10);
}

.cart-title{ font-weight: 800; letter-spacing: .2px; }
.cart-sub{ font-size: 12px; opacity: .7; margin-top: 2px; }

.cart-close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,215,0,0.12);
  background: rgba(0,0,0,0.35);
  color:#fff;
  cursor:pointer;
}

.cart-body{
  max-height: 52vh;
  overflow:auto;
  padding: 14px 18px;
  display:grid;
  gap: 12px;
}

.cart-item{
  display:grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.10);
  background: rgba(0,0,0,0.25);
}

.cart-thumb{
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,215,0,0.10);
}

.cart-thumb img{
  width:100%;
  height: 86px;
  object-fit: cover;
}

.cart-name{ font-weight: 800; }
.cart-price{ color: var(--goldSolid); font-weight: 800; margin-top: 4px; }

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

.qty-btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.18);
  background: rgba(0,0,0,0.25);
  color:#fff;
  cursor:pointer;
}

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

.remove-btn{
  margin-left:auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.12);
  background: rgba(255,255,255,0.06);
  color:#fff;
  cursor:pointer;
  opacity:.9;
}

.cart-foot{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,215,0,0.10);
  display:grid;
  gap: 10px;
}

.cart-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight: 800;
}

.cart-checkout{ width: 100%; }

.cart-clear{
  width:100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.12);
  background: rgba(0,0,0,0.20);
  color:#fff;
  cursor:pointer;
  opacity:.9;
}

.cart-empty{ padding: 24px 6px; text-align:center; }
.cart-empty-title{ font-weight: 800; }
.cart-empty-sub{ opacity: .7; margin-top: 6px; }

/* ===== Contact / Map / Gallery / Footer (unchanged spirit) ===== */
.contact-modern{ background: var(--bg2); padding-bottom: 40px; }

.gold{
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

footer{
  text-align:center;
  padding: 30px;
  background:#000;
  font-size: 14px;
  opacity: .6;
}

/* ===== Page Transition (Gold Sweep) — matches index.html script ===== */
.page-transition{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
}

.page-transition .sweep{
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(90deg,
  rgba(255,215,0,0) 0%,
  rgba(255,215,0,.85) 35%,
  rgba(255,215,0,.45) 60%,
  rgba(255,215,0,0) 100%);
  will-change: transform, opacity;
}

@keyframes goldSweep{
  0%   { left:-110%; opacity:0; }
  10%  { opacity:1; }
  60%  { opacity:1; }
  100% { left:110%; opacity:0; }
}

/* ===== Responsive ===== */
@media (max-width: 992px){
  header{ padding: 14px 18px; }
  nav a{ padding: 8px 12px; }
  section{ padding: 120px 18px 50px; }

  #home{
    flex-direction:column;
    text-align:center;
    gap: 28px;
  }

  .hero-text{ max-width: 720px; text-align:center; }
  .hero-text h2{ font-size: 34px; }
}

@media (max-width: 900px){
  header{ backdrop-filter: none; -webkit-backdrop-filter: none; }

  .shelf-grid{ grid-template-columns: 1fr; }
  .counter-grid{ grid-template-columns: 1fr 1fr; }

  .product-card img{
    aspect-ratio: 3 / 4;
    width:100%;
    object-fit: cover;
    object-position: center;
  }
  .counter .product-card img{ height: 260px; }

  .modal-card{ margin: 70px 16px; }
  .modal-content{ grid-template-columns: 1fr; }
  .modal-img img{ height: 360px; }
}

@media (max-width: 768px){
  .logo-hero{
    left: 10px !important;
    bottom: 10px !important;
    top: auto !important;
    right: auto !important;
    max-width: 140px;
  }

  .logo-hero img{
    width: 78px;
  }

  /* produits mobile */
  .shelf-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .counter-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card .product-img{
    overflow: hidden;
  }

  .product-card img{
    aspect-ratio: 3 / 4;
    width:100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
  }

  .shelf-grid .product-card img{
    height: 340px !important;
  }

  #accessoriesGrid .product-card{
    max-width: 100%;
  }

  #accessoriesGrid .product-card img{
    height: 150px !important;
    width: calc(100% - 16px);
    margin: 8px auto 6px;
    border-radius: 999px;
  }

  #accessoriesGrid .add-to-cart,
  #accessoriesGrid .add-cart-btn{
    width: 42px;
    height: 42px;
  }

  /* galerie mobile */
  .gallery-row{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-item img{
    height: 360px !important;
    object-fit: cover;
    object-position: center;
  }
}
@media (max-width: 600px){
  header h1{ font-size:16px; letter-spacing:1px; }
  nav{ gap: 8px; }

  nav a{
    font-size: 11px;
    padding: 7px 9px;
    box-shadow: 0 0 8px rgba(255,215,0,0.10);
    border-color: rgba(255,215,0,0.22);
  }

  .cart-btn{ padding: 7px 9px; }
  .cart-btn i{ font-size: 13px; }
  .cart-count{ min-width: 18px; height: 18px; font-size: 10px; }

  .hero-text{ text-align:center; align-items:center; }
  .hero-text h2{ font-size: 28px; }

  .cta-btn{ width:100%; max-width: 320px; margin: 0 auto; }

  /* produits téléphone */
  .showroom{ gap: 56px; }
  .shelf, .counter{ padding: 14px; }
  .shelf-grid{ gap: 18px; }
  .counter-grid{ gap: 12px; }

  .product-card{
    border-radius: 18px;
  }

  .product-card img{
    aspect-ratio: 3 / 4;
    width:100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
  }

  .shelf-grid .product-card img{
    height: 300px !important;
  }

  .product-info{
    padding: 12px 12px 14px;
  }

  #accessoriesGrid .product-card img{
    height: 132px !important;
    width: calc(100% - 12px);
  }

  #accessoriesGrid .product-name{
    font-size: 11px;
    letter-spacing: 1px;
  }

  #accessoriesGrid .add-to-cart,
  #accessoriesGrid .add-cart-btn{
    width: 38px;
    height: 38px;
    margin-top: 10px;
  }

  /* galerie téléphone */
  .full-gallery{
    padding: 110px 16px 60px;
  }

  .gallery-intro{
    margin-bottom: 28px;
  }

  .gallery-item{
    border-radius: 20px;
  }

  .gallery-item img{
    height: 300px !important;
    object-fit: cover;
    object-position: center;
  }

  .gallery-caption{
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }

  .gallery-badge{
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }
}


/* ===== Palace Gate Intro (AUTO) ===== */
.palace-gate{
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  overflow: hidden;
  display: block;
  pointer-events: none;
}

.gate-leaf{
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, #0b0b0b, #171717);
}

.left-leaf{ left: 0; border-right: 2px solid rgba(212,175,55,.85); }
.right-leaf{ right: 0; border-left: 2px solid rgba(212,175,55,.85); }

/* Moroccan pattern feel */
.gate-leaf::before{
  content:"";
  position:absolute;
  inset: 24px;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,.10);
  background-image: radial-gradient(circle, rgba(212,175,55,.9) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .18;
}

.gate-content{
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--gold);
}

.gate-logo{
  font-size: 2.4rem;
  letter-spacing: 12px;
  font-weight: 700;
  text-shadow: 0 0 26px rgba(212,175,55,.35);
}

.gate-subtitle{
  margin-top: 10px;
  font-size: .9rem;
  letter-spacing: 5px;
  opacity: .78;
}
.key-scene{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index: 20;
  pointer-events:none;
}

.lock-ring{
  position:absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,.25);
  box-shadow: 0 0 40px rgba(255,215,0,.12), inset 0 0 25px rgba(255,215,0,.10);
  transform: translateY(10px);
  opacity:.9;
}

.gold-key{
  position: relative;
  width: 220px;
  height: 80px;
  transform-origin: 60px 40px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

.gold-key *{
  position:absolute;
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  box-shadow: 0 0 22px rgba(255,215,0,.18);
}

.key-head{
  width: 78px; height: 78px;
  border-radius: 22px;
  left: 0; top: 1px;
  border: 1px solid rgba(0,0,0,.25);
}

.key-shaft{
  width: 140px; height: 22px;
  border-radius: 14px;
  left: 70px; top: 29px;
  border: 1px solid rgba(0,0,0,.20);
}

.key-teeth{
  width: 42px; height: 42px;
  right: 0; top: 19px;
  clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 0, 100% 100%, 60% 100%, 60% 70%, 0 70%);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.20);
}

.key-spark{
  position:absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,215,0,.95);
  box-shadow: 0 0 35px rgba(255,215,0,.65);
  opacity: 0;
  transform: translate(90px, -10px);
}

/* Animation states */
#palace-gate.unlocking .gold-key{
  animation: keyTurn 900ms cubic-bezier(.2,.9,.2,1) forwards;
}
#palace-gate.unlocking .lock-ring{
  animation: ringPulse 900ms ease forwards;
}
#palace-gate.unlocking .key-spark{
  animation: spark 900ms ease forwards;
}

@keyframes keyTurn{
  0%{ transform: rotate(0deg) scale(1); }
  60%{ transform: rotate(110deg) scale(1.03); }
  100%{ transform: rotate(95deg) scale(1); }
}
@keyframes ringPulse{
  0%{ transform: translateY(10px) scale(1); opacity:.9; }
  60%{ transform: translateY(10px) scale(1.05); opacity:1; border-color: rgba(255,215,0,.45); }
  100%{ transform: translateY(10px) scale(1); opacity:.85; }
}
@keyframes spark{
  0%{ opacity:0; transform: translate(90px, -10px) scale(.7); }
  40%{ opacity:1; }
  100%{ opacity:0; transform: translate(110px, -30px) scale(1.6); }
}

/* Auto open animation */
#palace-gate .left-leaf{ animation: gateLeft 1.65s cubic-bezier(.7,0,.2,1) .25s forwards; }
#palace-gate .right-leaf{ animation: gateRight 1.65s cubic-bezier(.7,0,.2,1) .25s forwards; }
#palace-gate .gate-content{ animation: gateText .7s ease 1.1s forwards; }
#palace-gate{ animation: gateHide .55s ease 1.95s forwards; }

@keyframes gateLeft{ to{ transform: translateX(-100%); } }
@keyframes gateRight{ to{ transform: translateX(100%); } }
@keyframes gateText{ to{ opacity: 0; transform: translate(-50%,-60%); } }
@keyframes gateHide{ to{ opacity:0; visibility:hidden; } }
/* ===== Gallery (Découvrir) — premium 3 tiles ===== */
.full-gallery{
  padding: 120px 40px 80px;
  min-height: 100vh;
  background: #000;
}

.gallery-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,215,0,0.16);
  box-shadow: 0 30px 95px rgba(0,0,0,0.60);
}

.gallery-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:
          radial-gradient(circle at 30% 20%, rgba(255,215,0,0.16), transparent 45%),
          linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.65));
  opacity:.65;
  pointer-events:none;
  transition: opacity .4s ease;
}

.gallery-item:hover::before{ opacity:.35; }

.gallery-item img{
  width:100%;
  height: 520px;
  object-fit: cover;
  transition: transform .75s ease;
}

.gallery-item:hover img{ transform: scale(1.06); }
/* =========================
   CONTACT — CLEAN LUXURY
========================= */

#contact.contact-modern{
  background: var(--bg2);
  padding: 140px 60px 90px;
}

.contact-top{
  max-width: 1180px;
  margin: 0 auto 26px;
}

.contact-title h2{
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: .2px;
}

.contact-sub{
  margin: 0;
  max-width: 820px;
  opacity: .78;
  line-height: 1.65;
}

.gold{
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,215,0,0.14);
  box-shadow: 0 16px 45px rgba(0,0,0,0.28);
  font-size: 13px;
  opacity: .95;
}

.badge i{
  color: var(--goldSolid);
  font-size: 14px;
  opacity: .95;
}

/* Layout */
.contact-layout{
  max-width: 1180px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 18px;
}

/* Glass cards */
.glass{
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,215,0,0.14);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-card{
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.contact-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle, rgba(255,215,0,0.12), transparent 60%);
  transform: rotate(18deg);
  opacity: .55;
  pointer-events:none;
}

.card-title{
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: .3px;
}

/* Left info lines */
.contact-lines{
  display:grid;
  gap: 14px;
}

.line{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.10);
  background: rgba(0,0,0,0.28);
}

.ico{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,215,0,0.10);
  border: 1px solid rgba(255,215,0,0.18);
  box-shadow: 0 0 18px rgba(255,215,0,0.16);
  flex: 0 0 auto;
}

.ico i{
  color: var(--goldSolid);
  font-size: 15px;
  opacity: .95;
}

.line-label{
  font-size: 11px;
  opacity: .65;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.line-value{
  font-size: 15px;
  opacity: .95;
  line-height: 1.4;
}

/* Form */
.modern-form{
  display:grid;
  gap: 14px;
}

.input-group.modern{
  position:relative;
}

.input-group.modern i{
  position:absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--goldSolid);
  opacity: .95;
  pointer-events:none;
  font-size: 13px;
}

.input-group.modern.textarea-group i{
  top: 18px;
  transform:none;
}

.input-group.modern input,
.input-group.modern textarea{
  width:100%;
  padding: 15px 16px 15px 48px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,0.14);
  background: rgba(0,0,0,0.34);
  color:#fff;
  outline:none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.input-group.modern textarea{
  resize: vertical;
  min-height: 140px;
}

.input-group.modern input::placeholder,
.input-group.modern textarea::placeholder{
  color: rgba(255,255,255,0.58);
}

.input-group.modern input:focus,
.input-group.modern textarea:focus{
  border-color: rgba(255,215,0,0.42);
  box-shadow: 0 0 0 5px rgba(255,215,0,0.10);
}

/* Button aligns nice */
.contact-send{
  margin-top: 6px;
  width: 100%;
}

/* Map */
.map-card{
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 16px;
}

.map-head{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 6px 8px 14px;
}

.map-left{
  display:flex;
  align-items:center;
  gap: 12px;
}

.map-icon{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(255,215,0,0.10);
  border: 1px solid rgba(255,215,0,0.18);
  box-shadow: 0 0 18px rgba(255,215,0,0.16);
}

.map-icon i{
  color: var(--goldSolid);
  font-size: 16px;
}

.map-title{
  font-weight: 800;
  letter-spacing: .2px;
}

.map-sub{
  font-size: 12px;
  opacity: .65;
  margin-top: 2px;
}

.map-frame{
  position:relative;
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(255,215,0,0.12);
  box-shadow: 0 30px 110px rgba(0,0,0,0.60);
}

.map-frame iframe{
  width:100%;
  height: 380px;
  border:0;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

.map-fade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
          radial-gradient(circle at 30% 20%, rgba(255,215,0,0.14), transparent 40%),
          linear-gradient(to bottom, rgba(0,0,0,0.03), rgba(0,0,0,0.62));
}

/* Responsive */
@media (max-width: 900px){
  #contact.contact-modern{ padding: 120px 18px 70px; }
  .contact-layout{ grid-template-columns: 1fr; }
  .contact-title h2{ font-size: 30px; }
  .map-card{ margin: 14px auto 0; }
  .map-frame iframe{ height: 320px; }
}
/* =========================
   ACCESSOIRES — DIFFERENT LOOK
   (Only the #accessoriesGrid section)
========================= */

/* Keep caftans tall in the shelf */
.shelf-grid .product-card img{
  height: 520px;
}

/* Accessories grid layout (vitrine style) */
#accessoriesGrid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* Accessories cards: smaller + more "jewelry" feel */
#accessoriesGrid .product-card{
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid rgba(255,215,0,0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 22px 70px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* Accessories image: DIFFERENT SHAPE (round showcase) */
#accessoriesGrid .product-card img{
  height: 190px;
  width: calc(100% - 20px);
  margin: 12px auto 8px;
  object-fit: cover;
  border-radius: 999px; /* circle */
  border: 1px solid rgba(255,215,0,0.26);
  box-shadow: 0 18px 55px rgba(0,0,0,0.50);
}

/* A small "pedestal" under the circle image (vitrine base) */
#accessoriesGrid .product-card img::after{ content: none; }
#accessoriesGrid .product-card .product-info{
  padding: 10px 12px 14px;
  text-align: center;
}

#accessoriesGrid .product-name{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .95;
}

#accessoriesGrid .product-price{
  font-size: 14px;
  font-weight: 800;
}

/* Accessories add-to-cart: compact round button */
#accessoriesGrid .add-to-cart,
#accessoriesGrid .add-cart-btn{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  padding: 0;
  margin: 12px auto 0;
}

/* Make the icon centered if present */
#accessoriesGrid .add-to-cart i,
#accessoriesGrid .add-cart-btn i{
  font-size: 14px;
}

/* Hover: subtle lift (keep classy) */
#accessoriesGrid .product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
}

/* Responsive: accessories vitrines */
@media (max-width: 900px){
  #accessoriesGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #accessoriesGrid .product-card{ max-width: 100%; }
}

@media (max-width: 600px){
  #accessoriesGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #accessoriesGrid .product-card img{ height: 170px; }
}
/* ===== Premium Lightbox ===== */
.mc-lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.mc-lightbox.open{ display:block; }

.mc-lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mc-lightbox-card{
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1100px, calc(100% - 28px));
  height: min(84vh, 760px);
  border-radius: 28px;
  border: 1px solid rgba(255,215,0,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 40px 140px rgba(0,0,0,.70);
  overflow: hidden;

  transform: perspective(1200px) rotateX(10deg) scale(.96);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}

.mc-lightbox.open .mc-lightbox-card{
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) scale(1);
}

.mc-lb-media{
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.mc-lb-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.mc-lb-fade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
          radial-gradient(circle at 30% 20%, rgba(255,215,0,.14), transparent 45%),
          linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0.65));
}

.mc-lb-caption{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,.14);
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.50);
}

.mc-lb-title{
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(45deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mc-lb-sub{
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
}

.mc-lb-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 16px 55px rgba(0,0,0,.55);
}

.mc-lb-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid rgba(255,215,0,.14);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 16px 55px rgba(0,0,0,.55);
}

.mc-lb-prev{ left: 14px; }
.mc-lb-next{ right: 14px; }

.mc-lb-close:hover,
.mc-lb-nav:hover{
  border-color: rgba(255,215,0,.32);
}

@media (max-width: 600px){
  .mc-lightbox-card{
    height: min(86vh, 720px);
    border-radius: 22px;
  }
  .mc-lb-prev{ left: 10px; }
  .mc-lb-next{ right: 10px; }
}



/* ===== FINAL LUXURY POLISH ===== */

/* Dark luxury overlay on product hover */
.product-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,215,0,0.08), rgba(0,0,0,0.65));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.product-card:hover::after{
  opacity: 1;
}

/* Stronger premium lift for product cards */
.product-card:hover{
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 90px rgba(0,0,0,0.65);
}

/* Smooth image zoom refinement */
.product-card:hover img{
  transform: scale(1.04);
}

/* Subtle luxury glow border animation */
@keyframes goldGlow {
  0%{ box-shadow: 0 0 10px rgba(255,215,0,0.10); }
  50%{ box-shadow: 0 0 25px rgba(255,215,0,0.25); }
  100%{ box-shadow: 0 0 10px rgba(255,215,0,0.10); }
}

.product-card{
  animation: goldGlow 4s infinite ease-in-out;
}

/* Fade-up reveal effect (for JS scroll animation later if used) */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s ease;
}

.reveal.active{
  opacity: 1;
  transform: translateY(0);
}

/* Add subtle grain texture overlay for luxury feel */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  z-index: 9999;
}