/* =====================================================================
   THÈMES DE VITRINE (site templates)
   Chaque thème s'active via une classe sur <body> : site-template-<nom>.
   « classic » = design de base (aucune règle ici).
   Les thèmes réutilisent le DOM existant et surchargent variables + styles.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

/* ---------------------------------------------------------------------
   CLAIR ÉDITORIAL — clair, raffiné, accent rose poudré, titres serif.
   Fond clair : lisibilité conservée, faible risque.
   --------------------------------------------------------------------- */
body.site-template-clair-editorial {
  --gold: #c8607a;             /* accent : rose poudré */
  --primary-dark: #1a1714;
  --border-color: #e7ddd2;
  --accent-blush: #faf1ef;
  background: #faf6f1;
  font-family: 'Inter', sans-serif;
}
body.site-template-clair-editorial h1,
body.site-template-clair-editorial h2,
body.site-template-clair-editorial h3,
body.site-template-clair-editorial .logo-title,
body.site-template-clair-editorial .product-title,
body.site-template-clair-editorial .product-category {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: .01em;
}
body.site-template-clair-editorial .luxury-header {
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7ddd2;
}
body.site-template-clair-editorial .logo-title { font-size: 27px; }
body.site-template-clair-editorial .logo-subtitle { letter-spacing: .35em; color: #b98; }
body.site-template-clair-editorial .nav-links a {
  position: relative;
  text-transform: none;
  font-weight: 400;
}
body.site-template-clair-editorial .nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s;
}
body.site-template-clair-editorial .nav-links a:hover::after { width: 100%; }

/* Héros plein cadre, superposition douce, titre serif large */
body.site-template-clair-editorial .hero-section {
  min-height: 82vh;
  background-blend-mode: multiply;
  background-color: rgba(26, 23, 20, .18);
}
body.site-template-clair-editorial .hero-section h1 {
  font-size: 62px; line-height: 1.05; font-weight: 500;
}
body.site-template-clair-editorial .hero-section .eyebrow,
body.site-template-clair-editorial .hero-section .hero-eyebrow {
  color: var(--gold); letter-spacing: .28em; text-transform: uppercase;
}

/* Boutons : noir plein, coins nets, hover rose */
body.site-template-clair-editorial .gold-btn {
  background: #1a1714; color: #faf6f1; border: none; border-radius: 2px;
  letter-spacing: .14em; text-transform: uppercase;
}
body.site-template-clair-editorial .gold-btn:hover { background: var(--gold); color: #fff; }
body.site-template-clair-editorial .outline-btn { border-radius: 2px; }

/* Cartes produit : image arrondie, titres serif, prix en accent */
body.site-template-clair-editorial .product-card .card-img-wrapper img { border-radius: 6px; }
body.site-template-clair-editorial .product-title { font-size: 18px; }
body.site-template-clair-editorial .product-price { color: var(--gold); font-weight: 600; }

/* Pied de page sombre, contraste éditorial */
body.site-template-clair-editorial .luxury-footer {
  background: #1a1714; color: #cbbfb2;
}
body.site-template-clair-editorial .luxury-footer a { color: #e7ddd2; }

/* Catalogue + fiches produit en cohérence (Clair Éditorial) */
body.site-template-clair-editorial .luxury-footer { background: #1a1714; }
body.site-template-clair-editorial .product-card { border-radius: 6px; }
body.site-template-clair-editorial .gold-btn,
body.site-template-clair-editorial .add-to-cart-btn { background: #1a1714; color: #faf6f1; }
body.site-template-clair-editorial .gold-btn:hover { background: var(--gold); }

/* ---------------------------------------------------------------------
   NOIR & OR — thème SOMBRE de bout en bout.
   On redéfinit les variables : la majorité des textes/surfaces suivent.
   Puis quelques surcharges ciblées pour les composants clés.
   --------------------------------------------------------------------- */
body.site-template-noir-or {
  --bg-color: #0d0b0a;
  --card-bg: #17120d;
  --secondary-dark: #17120d;
  --accent-blush: #1b1610;
  --border-color: #2b241c;
  --text-dark: #ece4d6;     /* texte courant clair */
  --text-muted: #a79f8f;
  --primary-dark: #f2ead9;  /* utilisé surtout comme couleur de TEXTE → clair */
  --gold: #c9a24b;
  --gold-hover: #d9b661;
  --footer-bg: #0a0807;
  font-family: 'Jost', sans-serif;
}
body.site-template-noir-or h1,
body.site-template-noir-or h2,
body.site-template-noir-or h3,
body.site-template-noir-or .logo-title,
body.site-template-noir-or .product-title,
body.site-template-noir-or .product-category {
  font-family: 'Cormorant Garamond', serif;
  color: #f4ecdb;
}
body.site-template-noir-or .luxury-header {
  background: rgba(13, 11, 10, .96);
  border-bottom: 1px solid rgba(201, 162, 75, .22);
}
body.site-template-noir-or .logo-title { color: var(--gold); font-size: 26px; }
body.site-template-noir-or .logo-subtitle { color: #b7ad9c; letter-spacing: .4em; }
body.site-template-noir-or .nav-links a { color: #e8e0d2; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
body.site-template-noir-or .nav-links a:hover { color: var(--gold); }
body.site-template-noir-or .icon-btn { color: #e8e0d2; }
/* Cartes & panneaux sombres (couvre aussi les fonds blancs inline courants) */
body.site-template-noir-or .product-card,
body.site-template-noir-or [style*="background: white"],
body.site-template-noir-or [style*="background:white"],
body.site-template-noir-or [style*="background: #fff"],
body.site-template-noir-or [style*="background:#fff"],
body.site-template-noir-or [style*="background-color: white"],
body.site-template-noir-or [style*="background-color:#fff"],
body.site-template-noir-or [style*="#faf9f6"],
body.site-template-noir-or [style*="#faf8f5"],
body.site-template-noir-or [style*="#fafafa"],
body.site-template-noir-or [style*="#f9f9f9"],
body.site-template-noir-or [style*="#f5f5f5"],
body.site-template-noir-or [style*="#fff8f0"],
body.site-template-noir-or [style*="#fffdf2"],
body.site-template-noir-or [style*="#fffbf0"],
body.site-template-noir-or [style*="#fafbfc"] {
  background: var(--card-bg) !important;
  border-color: var(--border-color);
}
body.site-template-noir-or .product-price { color: var(--gold); }
body.site-template-noir-or .gold-btn,
body.site-template-noir-or .add-to-cart-btn { background: var(--gold); color: #0d0b0a; }
body.site-template-noir-or .gold-btn:hover { background: var(--gold-hover); }
body.site-template-noir-or .outline-btn { color: var(--gold); border-color: var(--gold); background: transparent; }
body.site-template-noir-or input,
body.site-template-noir-or select,
body.site-template-noir-or textarea {
  background: #17120d; color: #ece4d6; border-color: #2b241c;
}
body.site-template-noir-or .luxury-footer { background: #0a0807; color: #b7ad9c; }
body.site-template-noir-or .luxury-footer a { color: #e2dacb; }
/* Menus déroulants de l'en-tête (compte utilisateur + langue) */
body.site-template-noir-or .lang-btn { background: #17120d !important; color: #ece4d6 !important; border-color: #2b241c !important; }
body.site-template-noir-or .lang-dropdown { background: #17120d; border: 1px solid #2b241c; }
body.site-template-noir-or .lang-dropdown button { color: #ece4d6; }
body.site-template-noir-or .lang-dropdown button:hover { background: #241d15; color: var(--gold); }

/* ---------------------------------------------------------------------
   MODE VIF — blanc, moderne, sans-serif, accent turquoise, coins arrondis.
   Thème clair : lisibilité conservée.
   --------------------------------------------------------------------- */
body.site-template-mode-vif {
  --gold: #0ea5a3;              /* accent : turquoise */
  --gold-hover: #0c8f8d;
  --primary-dark: #17171b;
  --border-color: #ececf0;
  --accent-blush: #e9fbfa;
  --bg-color: #ffffff;
  font-family: 'Inter', sans-serif;
}
body.site-template-mode-vif h1,
body.site-template-mode-vif h2,
body.site-template-mode-vif h3,
body.site-template-mode-vif .logo-title,
body.site-template-mode-vif .product-title {
  font-family: 'Jost', sans-serif; font-weight: 600; letter-spacing: 0;
}
body.site-template-mode-vif .luxury-header {
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid #ececf0;
}
body.site-template-mode-vif .nav-links a { text-transform: none; font-weight: 500; }
body.site-template-mode-vif .product-card { border-radius: 14px; overflow: hidden; }
body.site-template-mode-vif .product-price { color: var(--gold); font-weight: 600; }
body.site-template-mode-vif .gold-btn,
body.site-template-mode-vif .add-to-cart-btn { background: var(--gold); color: #fff; border-radius: 8px; }
body.site-template-mode-vif .gold-btn:hover { background: var(--gold-hover); }
body.site-template-mode-vif .outline-btn { border-radius: 8px; }
body.site-template-mode-vif .luxury-footer { background: #0f1013; }

/* ---------------------------------------------------------------------
   MAISON PREMIUM — ivoire chaud, aubergine et laiton vieilli.
   Règles de composition : angles droits, filets fins, ombres très rares,
   grands titres éditoriaux et photographies prioritaires. Le thème ne
   s'applique jamais au back-office (géré par applySiteTemplate).
   --------------------------------------------------------------------- */
body.site-template-premium-editorial {
  --bg-color: #f4f0e9;
  --card-bg: #f4f0e9;
  --secondary-dark: #2b1823;
  --accent-blush: #eee7df;
  --border-color: #c9c0b5;
  --text-dark: #241820;
  --text-muted: #776c70;
  --primary-dark: #241820;
  --gold: #a88755;
  --gold-hover: #8f6d3f;
  --footer-bg: #241820;
  background: #f4f0e9;
  color: #241820;
  font-family: 'Inter', sans-serif;
}

body.site-template-premium-editorial h1,
body.site-template-premium-editorial h2,
body.site-template-premium-editorial h3,
body.site-template-premium-editorial .logo-title,
body.site-template-premium-editorial .product-title,
body.site-template-premium-editorial .product-category,
body.site-template-premium-editorial .detail-title,
body.site-template-premium-editorial .detail-price {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -.015em;
}

body.site-template-premium-editorial .luxury-header {
  background: rgba(244, 240, 233, .96);
  border-bottom: 1px solid #c9c0b5;
  backdrop-filter: blur(12px);
}
body.site-template-premium-editorial .header-container { max-width: 1500px; }
body.site-template-premium-editorial .logo-title { font-size: 30px; letter-spacing: .015em; }
body.site-template-premium-editorial .logo-subtitle { display: none; }
body.site-template-premium-editorial .nav-links a {
  position: relative;
  color: #241820;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .025em;
  text-transform: none;
}
body.site-template-premium-editorial .nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: #2b1823;
  transform: scaleX(0);
  transition: transform .22s ease;
}
body.site-template-premium-editorial .nav-links a:hover::after { transform: scaleX(1); }
body.site-template-premium-editorial .icon-btn,
body.site-template-premium-editorial .lang-btn { color: #241820; }

body.site-template-premium-editorial .catalog-container {
  max-width: 1500px;
  padding-top: 58px;
  padding-bottom: 90px;
}
body.site-template-premium-editorial .catalog-container > div[style*="text-align: center"] {
  text-align: left !important;
  padding: 30px 4px 38px;
  border-bottom: 1px solid #c9c0b5;
}
body.site-template-premium-editorial .catalog-container > div[style*="text-align: center"] h1 {
  font-size: clamp(52px, 7vw, 92px) !important;
  line-height: .95;
}
body.site-template-premium-editorial .catalog-group-description {
  max-width: 620px;
  margin-right: 0;
  margin-left: 0;
  color: #776c70;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
}
body.site-template-premium-editorial .catalog-layout {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
}
body.site-template-premium-editorial .catalog-sidebar > div,
body.site-template-premium-editorial .filter-bar {
  background: transparent !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.site-template-premium-editorial .filter-bar {
  padding: 14px 0 !important;
  border-bottom: 1px solid #c9c0b5 !important;
}
body.site-template-premium-editorial input,
body.site-template-premium-editorial select,
body.site-template-premium-editorial textarea {
  border-radius: 0 !important;
  background: rgba(255,255,255,.28);
  border-color: #c9c0b5 !important;
  color: #241820;
}
body.site-template-premium-editorial .product-grid { gap: 32px 18px; }
body.site-template-premium-editorial .product-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.site-template-premium-editorial .product-card:hover { transform: none; box-shadow: none; }
body.site-template-premium-editorial .card-img-wrapper,
body.site-template-premium-editorial .product-card .card-img-wrapper img { border-radius: 0; }
body.site-template-premium-editorial .product-title { font-size: 20px; }
body.site-template-premium-editorial .product-price { color: #241820; font-weight: 400; }
body.site-template-premium-editorial .points-pill { border-radius: 0; }

body.site-template-premium-editorial .detail-grid {
  max-width: 1500px;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, .75fr);
  gap: 48px;
  padding: 46px 30px 90px;
}
body.site-template-premium-editorial .main-image-wrapper {
  padding-bottom: 104%;
  border: 0;
  background: #ebe4db;
}
body.site-template-premium-editorial .main-image-wrapper img { object-fit: cover; }
body.site-template-premium-editorial .thumb-strip { grid-template-columns: repeat(4, minmax(60px, 1fr)) !important; }
body.site-template-premium-editorial .product-gallery-thumb { border-radius: 0; }
body.site-template-premium-editorial .detail-title { font-size: clamp(38px, 4vw, 58px); }
body.site-template-premium-editorial .detail-price { font-size: 28px; font-weight: 400; }
body.site-template-premium-editorial .loyalty-banner-detail,
body.site-template-premium-editorial #stock-alert-box {
  border-width: 1px 0;
  background: #eee7df !important;
}
body.site-template-premium-editorial .gold-btn,
body.site-template-premium-editorial .add-to-cart-btn {
  border-radius: 0;
  background: #2b1823;
  color: #f4f0e9;
  letter-spacing: .02em;
  text-transform: none;
}
body.site-template-premium-editorial .gold-btn:hover,
body.site-template-premium-editorial .add-to-cart-btn:hover { background: #a88755; color: #241820; }
body.site-template-premium-editorial .outline-btn { border-radius: 0; }
body.site-template-premium-editorial .detail-grid > section {
  border-color: #c9c0b5 !important;
  margin-top: 54px !important;
  padding-top: 34px !important;
}
body.site-template-premium-editorial .detail-grid > section h3 {
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: -.02em !important;
  text-transform: none !important;
}
body.site-template-premium-editorial .luxury-footer { background: #241820; color: #c9c0b5; }
body.site-template-premium-editorial .luxury-footer a { color: #f4f0e9; }

@media (max-width: 900px) {
  body.site-template-premium-editorial .catalog-container { padding-top: 28px; }
  body.site-template-premium-editorial .catalog-layout { display: block; }
  body.site-template-premium-editorial .detail-grid { grid-template-columns: 1fr; padding: 26px 16px 60px; }
  body.site-template-premium-editorial .detail-info { padding-top: 10px; }
}

