/*
Theme Name: L DECO
Theme URI: https://ldeco.store/
Author: L DECO
Description: Thème WordPress vitrine pour le Salon L NUDE.
Version: 1.5.0
Text Domain: l-deco
*/

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-050: #fafafa;
  --gray-100: #f0f0f0;
  --gray-200: #e2e2e2;
  --gray-300: #cfcfcf;
  --gray-500: #8a8a8a;
  --gray-700: #333333;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--black);
}

.logo svg {
  height: 30px;
  width: auto;
  display: block;
}

.footer-inner .logo { color: var(--white); }
.footer-inner .logo svg { height: 40px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s;
}

.nav a:hover { color: var(--black); }

.nav-cta { display: inline-block; }

@media (max-width: 780px) {
  .nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.28); }

.btn-outline {
  border: 1.5px solid var(--black);
  color: var(--black);
  padding: 10px 22px;
  font-size: 14px;
}

.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-ghost {
  color: var(--black);
  padding: 14px 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 64px 0;
  background: var(--black);
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: 56px;
  letter-spacing: 3px;
  color: var(--white);
  font-weight: 600;
}

.divider {
  margin: 18px 0;
  color: var(--gray-300);
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gray-500);
  vertical-align: middle;
  margin: 0 10px;
}

.hero-desc {
  color: var(--gray-300);
  font-size: 16px;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}

.price-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.price-value {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
}

.price-value small {
  font-size: 18px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-actions .btn-primary {
  background: var(--white);
  color: var(--black);
}

.hero-actions .btn-primary:hover { box-shadow: 0 14px 34px rgba(255,255,255,0.2); }

.hero-actions .btn-ghost { color: var(--white); }

.hero-badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 500;
}

/* Gallery */
.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.main-image img,
.main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.main-image video { background: #000; }

.main-image [hidden] { display: none !important; }

.thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--white);
  opacity: 0.6;
  transition: all 0.2s;
}

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

.thumb-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  color: #fff;
  font-size: 24px;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding-left: 2px;
  pointer-events: none;
}

.thumb.active,
.thumb:hover {
  border-color: var(--white);
  opacity: 1;
}

/* Details */
.details { padding: 70px 0; background: var(--white); }

.section-title {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--black);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.section-title.light { color: var(--white); text-align: left; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

@media (max-width: 780px) {
  .details-grid { grid-template-columns: repeat(2, 1fr); }
}

.detail-card {
  background: var(--gray-050);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.detail-icon { font-size: 30px; margin-bottom: 12px; filter: grayscale(1); }

.detail-card h3 {
  font-size: 15px;
  color: var(--black);
  margin-bottom: 6px;
}

.detail-card p {
  font-size: 14px;
  color: var(--gray-500);
}

.perks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.perk {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--black);
  color: var(--white);
  padding: 18px 26px;
  border-radius: 14px;
  min-width: 280px;
}

.perk-icon {
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  filter: grayscale(1);
}

.perk h4 { font-size: 15px; color: var(--white); }
.perk p { font-size: 13px; color: var(--gray-300); }

/* Order */
.order {
  background: var(--black);
  padding: 70px 0;
  color: var(--white);
}

.order-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

@media (max-width: 900px) {
  .order-inner { grid-template-columns: 1fr; }
}

.order-info p {
  color: var(--gray-300);
  margin-bottom: 26px;
  max-width: 420px;
}

.order-price-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 420px;
}

.order-price-box span { font-size: 14px; color: var(--gray-300); }
.order-price-box strong { font-family: var(--serif); font-size: 26px; color: var(--white); }

.order-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  color: var(--black);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  resize: vertical;
  background: var(--gray-050);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-note {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
}

/* Confirmation overlay */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.confirm-overlay.show { display: flex; }

.confirm-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow);
}

.confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-box h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--black);
  margin-bottom: 10px;
}

.confirm-box p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 22px;
}

/* WhatsApp floating button */
.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 2.4s infinite;
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
  .whatsapp-btn {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-btn svg { width: 26px; height: 26px; }
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 30px 0;
  border-top: 1px solid #1f1f1f;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-inner p { font-size: 13px; color: var(--gray-500); }

/* Force the French storefront to remain left-to-right even when WordPress is set to Arabic. */
.site-header,
.hero,
.details,
.order,
.site-footer,
.confirm-overlay,
.whatsapp-btn {
  direction: ltr;
  text-align: left;
}

/* Keep the product layout and navigation in their intended LTR order. */
.header-inner,
.hero-inner,
.details-grid,
.perks,
.order-inner,
.footer-inner {
  direction: ltr;
}
