:root {
  --black: #111;
  --gray: #8a7b78;
  --light-gray: #f7efec;
  --border: #ecdcd8;
  --gold: #d4af37;
  --rose: #d9a6a6;
  --rose-soft: #f6e7e4;
  --max-width: 1280px;
  /* Couleurs de thème (mode clair par défaut) — tons doux et féminins */
  --bg: #fdf8f6;
  --surface: #ffffff;
  --text: #2b2320;
  --text-soft: #6d5f5b;
  --btn-bg: #2b2320;
  --btn-text: #ffffff;
  /* Petit motif de fleurs en arrière-plan */
  --floral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg fill='%23d9a6a6' opacity='0.16'%3E%3Cg transform='translate(40 42)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3Cg transform='rotate(72)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(144)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(216)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(288)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Ccircle r='1.8' fill='%23c98d8d'/%3E%3C/g%3E%3Cg transform='translate(136 128) scale(0.8)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3Cg transform='rotate(72)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(144)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(216)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(288)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Ccircle r='1.8' fill='%23c98d8d'/%3E%3C/g%3E%3Ccircle cx='140' cy='40' r='1.8'/%3E%3Ccircle cx='44' cy='142' r='1.6'/%3E%3Cellipse cx='92' cy='88' rx='1.6' ry='3.4' transform='rotate(35 92 88)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Mode sombre */
:root[data-theme="dark"] {
  --bg: #262120;
  --surface: #322b29;
  --text: #f7f3f1;
  --text-soft: #dccfcb;
  --gray: #b3a5a1;
  --light-gray: #3b3331;
  --border: #514746;
  --gold: #e4c45a;
  --rose: #e0aaaa;
  --rose-soft: #3b3331;
  --btn-bg: #f7f3f1;
  --btn-text: #241f1e;
  --floral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190' viewBox='0 0 190 190'%3E%3Cg fill='%23e8c7c7' opacity='0.13'%3E%3Cg transform='translate(40 42)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3Cg transform='rotate(72)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(144)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(216)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(288)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Ccircle r='1.8'/%3E%3C/g%3E%3Cg transform='translate(136 128) scale(0.8)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3Cg transform='rotate(72)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(144)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(216)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Cg transform='rotate(288)'%3E%3Cellipse cx='0' cy='-5.6' rx='2.5' ry='5.2'/%3E%3C/g%3E%3Ccircle r='1.8'/%3E%3C/g%3E%3Ccircle cx='140' cy='40' r='1.8'/%3E%3Ccircle cx='44' cy='142' r='1.6'/%3E%3Cellipse cx='92' cy='88' rx='1.6' ry='3.4' transform='rotate(35 92 88)'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--floral);
  background-repeat: repeat;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bouton mode clair / sombre */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #fff;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; color: #222; }
:root[data-theme="dark"] .theme-toggle { background: #3b3331; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; color: var(--gold); }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Bouton « Ma sélection » (panier) */
.cart-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.cart-toggle svg { width: 20px; height: 20px; display: block; }
:root[data-theme="dark"] .cart-toggle { background: #3b3331; color: var(--gold); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* Actions de l'en-tête (langue + thème) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Bouton de langue FR / EN */
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: #fff;
  border: none;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
}
.lang-toggle button.active {
  background: var(--gold);
  color: #111;
}

header.site-header .logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
}

header.site-header .tagline {
  font-size: 11px;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

/* Bannière d'accueil (hero) */
.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--floral),
    radial-gradient(1100px 460px at 100% -10%, rgba(217, 166, 166, 0.28), transparent 62%),
    linear-gradient(180deg, #fffdfc 0%, #fbeeea 100%);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .hero {
  background:
    var(--floral),
    radial-gradient(1100px 460px at 100% -10%, rgba(224, 170, 170, 0.20), transparent 62%),
    linear-gradient(180deg, #362e2c 0%, #262120 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(217, 166, 166, 0.45);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 166, 166, 0.18);
  color: #a86b6b;
  border: 1px solid rgba(217, 166, 166, 0.55);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

:root[data-theme="dark"] .hero-badge { color: var(--rose); }

.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-btn.primary { background: var(--btn-bg); color: var(--btn-text); }
.hero-btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--text); }
/* Effets de survol uniquement sur ordinateur (évite l'effet "collé" au toucher) */
@media (hover: hover) {
  .hero-btn.primary:hover { opacity: 0.88; }
  .hero-btn.ghost:hover { background: var(--text); color: var(--bg); }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.hero-stats > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.hero-stats strong { font-size: 20px; }

#catalogue { scroll-margin-top: 90px; }

@media (max-width: 600px) {
  .hero-inner { padding: 44px 20px 36px; }
  .hero-actions .hero-btn { flex: 1 1 auto; }
}

/* Grille catalogue */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px 16px;
}

.product-card {
  display: block;
}

.product-card .thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--light-gray);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card .name {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
}

.product-card .price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

/* Page produit */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
}

.product-detail .image-col img {
  width: 100%;
  display: block;
  background: var(--light-gray);
}

/* Galerie photos (photo principale + miniatures) */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  padding: 0;
  border: 1px solid var(--border);
  background: var(--light-gray);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.gallery-thumb.active { border-color: var(--text); border-width: 2px; }

.product-detail .info-col {
  max-width: 460px;
}

.product-detail h1 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.product-detail .price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.product-detail .field-label {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-detail .color-value {
  margin-bottom: 24px;
  font-size: 14px;
}

/* Six tailles (S à 3XL) : une seule rangée sur grand écran,
   deux rangées de trois sur téléphone — jamais une ligne orpheline. */
.size-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  max-width: 480px;
}

@media (max-width: 640px) {
  .size-grid { grid-template-columns: repeat(3, 1fr); }
}

.size-grid .size-box {
  border: 1px solid var(--border);
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  cursor: pointer;
}

/* Aucune taille n'étant choisie au départ, la sélection doit se voir nettement. */
.size-grid .size-box.selected {
  border-color: var(--text);
  border-width: 2px;
  font-weight: 700;
  background: var(--rose-soft);
}

/* Message affiché si on tente de commander sans avoir choisi de taille */
.size-error {
  max-width: 320px;
  margin: -16px 0 20px;
  padding: 10px 12px;
  border-radius: 2px;
  background: #fdecea;
  color: #b3261e;
  font-size: 13px;
}

.size-grid .size-box.sold-out {
  color: var(--gray);
  text-decoration: line-through;
  background: var(--light-gray);
  cursor: not-allowed;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}

.contact-box {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.contact-box .field-label { margin-bottom: 12px; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.btn-whatsapp:hover { opacity: 0.88; }

/* Bouton « Partager » (sous le bouton de commande) */
.btn-share {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 16px;
}

@media (hover: hover) {
  .btn-share:hover { background: var(--text); color: var(--bg); }
}

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.wa-float svg { width: 32px; height: 32px; display: block; }

@media (hover: hover) {
  .wa-float:hover { background: #1fb855; }
}

@media (max-width: 600px) {
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 29px; height: 29px; }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.contact-links a { color: var(--text); }
.contact-links a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--gray);
}

.back-link:hover { color: var(--text); }

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

/* Formulaire de commande (fenêtre modale) */
.order-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.order-modal {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 28px 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.order-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--gray);
  cursor: pointer;
  padding: 4px;
}

.order-close:hover { color: var(--text); }

.order-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.order-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--light-gray);
  padding: 12px;
  margin-bottom: 20px;
}

.order-form label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* Mention « facultatif » à côté du nom du champ */
.order-form .opt {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.75;
}

.order-form input,
.order-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

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

.order-form textarea { resize: vertical; }

.order-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-bottom: 0;
}

/* Récapitulatif d'une commande à plusieurs articles */
.order-recap-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.order-recap-row:last-of-type { border-bottom: none; }

.order-recap-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
  padding-top: 10px;
  border-top: 2px solid var(--text);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fenêtre « Ma sélection » */
.cart-empty {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 8px;
}

.cart-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }

.cart-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cart-row img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  flex: none;
  background: var(--light-gray);
}

.cart-info { flex: 1; min-width: 0; }
.cart-name { font-size: 14px; line-height: 1.3; margin-bottom: 3px; }
.cart-meta { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }

.cart-qty { display: flex; align-items: center; gap: 10px; }
.cart-qty span { min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.qty-btn:hover { border-color: var(--text); }

.cart-remove {
  flex: none;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.cart-remove:hover { color: #c0392b; }

.cart-order { width: 100%; border: none; cursor: pointer; margin-bottom: 0; }

/* Bouton « Ajouter à ma sélection » (fiche article) */
.btn-add-cart {
  display: block;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-add-cart:disabled { opacity: 0.65; cursor: default; }

@media (hover: hover) {
  .btn-add-cart:not(:disabled):hover { background: var(--text); color: var(--bg); }
}

/* Bloc paiement Mobile Money */
.order-pay {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  background: var(--light-gray);
  padding: 14px;
  margin-bottom: 18px;
}

.order-pay-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.order-pay-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.order-pay-number {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.order-copy {
  flex: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.order-copy:hover { opacity: 0.88; }

.order-wave-btn {
  display: block;
  text-align: center;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.order-wave-btn:hover { filter: brightness(0.95); }

.order-pay-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
  margin-top: 10px;
}
