:root {
  --bg: #0b0705;
  --bg-soft: #15100d;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.08);
  --text: #f5efe9;
  --muted: #cbbfb3;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d79b52;
  --accent-strong: #f0b35e;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --container: 1180px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #24160f 0%, #120c09 35%, #090605 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ar {
  font-family: "Cairo", sans-serif;
}

body.ar .brand,
body.ar .nav,
body.ar .hero-content,
body.ar .section-heading,
body.ar .card,
body.ar .product-card,
body.ar .feature-item,
body.ar .custom-box,
body.ar .footer,
body.ar .catalog-card,
body.ar .catalog-body,
body.ar .products-page-section {
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 155, 82, 0.10), transparent 30%),
    radial-gradient(circle at 80% 25%, rgba(240, 179, 94, 0.06), transparent 30%);
  z-index: -1;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(8, 6, 5, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(215, 155, 82, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  letter-spacing: 0.3em;
  font-size: 1rem;
  font-weight: 600;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch:hover {
  border-color: rgba(215, 155, 82, 0.4);
}

.lang-option {
  opacity: 0.55;
  transition: var(--transition);
}

.lang-option.active {
  opacity: 1;
  color: var(--accent-strong);
}

.lang-divider {
  opacity: 0.4;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  padding: 86px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero-tag,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-strong);
  background: rgba(215, 155, 82, 0.08);
  border: 1px solid rgba(215, 155, 82, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 12ch;
}

.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1a1008;
  box-shadow: 0 10px 25px rgba(215, 155, 82, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(215, 155, 82, 0.28);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(215, 155, 82, 0.35);
  transform: translateY(-2px);
}

.hero-card {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.glow-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 179, 94, 0.35), rgba(240, 179, 94, 0.04), transparent 70%);
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(8px);
}

.hero-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px;
}

.hero-logo {
  width: 150px;
  margin: 0 auto 24px;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(215, 155, 82, 0.18);
}

.hero-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--muted);
  max-width: 30ch;
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.cards-grid,
.features-grid,
.products-grid {
  display: grid;
  gap: 20px;
}

.cards-grid {
  grid-template-columns: repeat(4, 1fr);
}

.products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.product-card,
.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover,
.product-card:hover,
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 155, 82, 0.25);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(215, 155, 82, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
}

.card h3,
.product-card h3,
.feature-item h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p,
.product-card p,
.feature-item p {
  color: var(--muted);
  font-size: 0.96rem;
}

.product-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(215, 155, 82, 0.10);
  color: var(--accent-strong);
  font-size: 0.84rem;
  border: 1px solid rgba(215, 155, 82, 0.18);
}

.custom-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.custom-box h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  margin-bottom: 12px;
}

.custom-box p {
  color: var(--muted);
  max-width: 65ch;
}

.footer {
  padding: 48px 0 0;
  background: #080605;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-title {
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

.footer-text,
.footer-links a {
  color: var(--muted);
}

.footer-subtitle {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* HOME - PRODUITS PHARES */
.featured-products-grid {
  grid-template-columns: repeat(3, 1fr);
}

.featured-product-card {
  overflow: hidden;
  padding: 0;
}

.featured-product-link {
  display: block;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-product-card:hover .product-image {
  transform: scale(1.03);
}

.product-card-body {
  padding: 22px;
}

.featured-product-title {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  transition: var(--transition);
}

.featured-product-title:hover {
  color: var(--accent-strong);
}

/* PAGE PRODUITS */
.products-hero {
  padding-bottom: 30px;
}

.products-page-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.products-page-section {
  padding-top: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
}

.catalog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-width: 0;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 155, 82, 0.25);
}

.catalog-link {
  display: block;
  overflow: hidden;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-image {
  transform: scale(1.03);
}

.catalog-body {
  padding: 12px;
}

.catalog-title {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  transition: var(--transition);
  line-height: 1.3;
}

.catalog-title:hover {
  color: var(--accent-strong);
}

.catalog-price {
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1600px) {
  .catalog-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1300px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .cards-grid,
  .features-grid,
  .products-grid,
  .featured-products-grid,
  .footer-grid,
  .custom-box {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 360px;
  }

  .custom-box {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: rgba(10, 7, 6, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4%;
    gap: 16px;
  }

  .nav.open {
    display: flex;
  }

  body.ar .nav {
    align-items: flex-end;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    max-width: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-image {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .nav-container {
    min-height: 74px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .lang-switch {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .section {
    padding: 58px 0;
  }

  .hero-text,
  .section-heading p,
  .card p,
  .product-card p,
  .feature-item p,
  .custom-box p {
    font-size: 0.95rem;
  }

  .hero-card {
    min-height: 300px;
  }

  .hero-logo {
    width: 120px;
  }

  .custom-box {
    padding: 24px;
  }

  /* ✅ CORRECTION : 4 produits par ligne sur mobile */
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .catalog-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .catalog-body {
    padding: 6px;
  }

  .catalog-title {
    font-size: 0.65rem;
  }

  .catalog-price {
    font-size: 0.65rem;
  }
}
.custom-page-hero {
  padding-bottom: 30px;
}

.custom-form-section {
  padding-top: 20px;
}

.custom-form-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.custom-form-intro,
.custom-project-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.custom-form-intro {
  padding: 32px;
}

.custom-form-intro h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.custom-form-intro p {
  color: var(--muted);
  max-width: 56ch;
}

.custom-project-form {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(215, 155, 82, 0.45);
  box-shadow: 0 0 0 4px rgba(215, 155, 82, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 170px;
}

.form-group input[type="file"] {
  padding: 12px;
}

.form-help {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.custom-submit-btn {
  min-width: 220px;
}

.form-status {
  margin-top: 16px;
  min-height: 24px;
  color: var(--accent-strong);
  font-weight: 500;
}

.hidden-botcheck {
  display: none !important;
}

body.ar .custom-form-intro,
body.ar .custom-project-form,
body.ar .form-group,
body.ar .form-status {
  text-align: right;
}

@media (max-width: 992px) {
  .custom-form-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.product-page-section {
  padding-top: 30px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.product-gallery,
.single-product-gallery,
.product-details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.product-gallery,
.single-product-gallery {
  padding: 20px;
}

.product-details {
  padding: 30px;
}

.main-product-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 20px;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.product-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-thumb:hover,
.active-thumb {
  border-color: var(--accent-strong);
}

.product-page-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 14px;
}

.product-page-price {
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.product-page-text {
  color: var(--muted);
  margin-bottom: 22px;
}

.product-info-list {
  list-style: none;
  margin-bottom: 26px;
}

.product-info-list li {
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.product-info-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strong);
  position: absolute;
  left: 0;
  top: 10px;
}

.product-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

body.ar .product-details,
body.ar .product-info-list li {
  text-align: right;
}

body.ar .product-info-list li {
  padding-left: 0;
  padding-right: 18px;
}

body.ar .product-info-list li::before {
  left: auto;
  right: 0;
}

@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .main-product-image {
    height: 420px;
  }
}

@media (max-width: 576px) {
  .product-details,
  .product-gallery,
  .single-product-gallery {
    padding: 18px;
  }

  .main-product-image {
    height: 320px;
  }

  .product-thumb {
    width: 78px;
    height: 78px;
  }
}
.order-form-group input,
.order-form-group select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: var(--transition);
}
.order-form-group select {
  width: 100%;
  border: 1px solid #c9b8aa;
  background: #ffffff;
  color: #4b2e1f;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: var(--transition);
}

.order-form-group select option {
  background: #ffffff;
  color: #4b2e1f;
}
.order-form-group select {
  width: 100%;
  border: 1px solid #c9b8aa;
  background: #ffffff;
  color: #4b2e1f;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: var(--transition);
}

.order-form-group select option {
  background: #ffffff;
  color: #4b2e1f;
}

.order-form-group select:focus {
  border-color: rgba(215, 155, 82, 0.45);
  box-shadow: 0 0 0 4px rgba(215, 155, 82, 0.08);
}
#deliveryPrice[readonly] {
  background: #f7f2ed;
  color: #4b2e1f;
  font-weight: 700;
  cursor: not-allowed;
}
