/* ══════════════════════════════════════════════════════
   PROJECTS — Ombre Premium Bois Légendaire
   Ombre multicouche dorée pour faire ressortir les cartes
   ══════════════════════════════════════════════════════ */

[data-theme="wood-legendary"] .project-card {
  border-radius: 18px !important;
  border: 1px solid rgba(212,164,76,0.3) !important;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.45),
    0 8px 24px rgba(0,0,0,0.55),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212,164,76,0.2),
    inset 0 1px 0 rgba(255,245,220,0.1)
    !important;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease !important;
}

[data-theme="wood-legendary"] .project-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(212,164,76,0.55) !important;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.5),
    0 16px 40px rgba(0,0,0,0.6),
    0 32px 80px rgba(0,0,0,0.45),
    0 0 0 1px rgba(212,164,76,0.45),
    0 0 28px rgba(212,164,76,0.18),
    inset 0 1px 0 rgba(255,245,220,0.15)
    !important;
}

/* Carte "Nouveau projet" — ombre plus subtile */
[data-theme="wood-legendary"] .project-card.new {
  box-shadow:
    0 2px 12px rgba(0,0,0,0.3),
    0 0 0 1px rgba(212,164,76,0.15),
    inset 0 1px 0 rgba(255,245,220,0.06)
    !important;
}

[data-theme="wood-legendary"] .project-card.new:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212,164,76,0.4) !important;
  box-shadow:
    0 8px 28px rgba(0,0,0,0.4),
    0 0 0 1px rgba(212,164,76,0.35),
    0 0 16px rgba(212,164,76,0.12)
    !important;
}

/* ══════════════════════════════════════════════════════
   NOTES — Command Bar Premium (Bois Légendaire)
   Barre du haut : texture bois clair, dorures subtiles
   ══════════════════════════════════════════════════════ */

[data-theme=wood-legendary] .notes-v6-command-bar {
  background: url('../css/textures/wood-light-premium.jpg') center / cover no-repeat !important;
  border-bottom: 1px solid rgba(180,130,70,0.35) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 -1px 0 rgba(212,164,76,0.15) !important;
  padding: 8px 14px !important;
  gap: 10px !important;
}

/* Boutons icônes — raffinés */
[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-btn-icon {
  color: #3B1A00 !important;
  background: rgba(60,35,10,0.08) !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  width: 30px !important;
  height: 30px !important;
  transition: all 0.2s ease !important;
}

[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-btn-icon:hover {
  background: rgba(212,164,76,0.15) !important;
  border-color: rgba(212,164,76,0.4) !important;
  color: #1A0800 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), 0 0 8px rgba(212,164,76,0.1) !important;
}

[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-btn-icon svg {
  stroke: currentColor !important;
  width: 15px !important;
  height: 15px !important;
}

/* Barre de recherche — premium */
[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-quick-search {
  background: rgba(60,35,10,0.08) !important;
  border: 1px solid rgba(180,130,70,0.3) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), inset 0 -1px 0 rgba(255,220,150,0.1) !important;
  padding: 6px 12px !important;
  transition: all 0.25s ease !important;
}

[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-quick-search:hover {
  background: rgba(212,164,76,0.1) !important;
  border-color: rgba(212,164,76,0.5) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(212,164,76,0.1) !important;
}

[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-quick-search svg {
  color: rgba(58,26,0,0.5) !important;
  stroke: rgba(58,26,0,0.5) !important;
}

[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-search-placeholder {
  color: rgba(58,26,0,0.5) !important;
  font-size: 13px !important;
}

/* Raccourci clavier Ctrl+P */
[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-quick-search kbd {
  background: rgba(180,130,70,0.15) !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  border-radius: 4px !important;
  color: rgba(58,26,0,0.6) !important;
  font-size: 11px !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15) !important;
}

/* Séparateurs view-controls */
[data-theme=wood-legendary] .notes-v6-command-bar .notes-v6-view-controls {
  border-left-color: rgba(180,130,70,0.25) !important;
  border-right-color: rgba(180,130,70,0.25) !important;
}

/* Barre onglets (tabs) — cohérente */
[data-theme=wood-legendary] .notes-v6-tabs {
  background: url('../css/textures/wood-light-premium.jpg') center / cover no-repeat !important;
  border-bottom: 1px solid rgba(180,130,70,0.3) !important;
  padding: 6px 10px !important;
}

/* ══════════════════════════════════════════════════════
   GIRI STORE — Boutons Page de vente IA + Machine de vente
   Style bois très clair premium
   ══════════════════════════════════════════════════════ */

[data-theme=wood-legendary] .gs-btn--ai-generate,
[data-theme=wood-legendary] [data-action=email-machine] {
  background: url('../css/textures/wood-light-premium.jpg') center / cover no-repeat !important;
  background-color: transparent !important;
  background-image: url('../css/textures/wood-light-premium.jpg') !important;
  color: #2A1000 !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 0 rgba(255,220,140,0.4) !important;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.2),
    0 2px 8px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,240,180,0.35),
    inset 0 -1px 0 rgba(100,60,10,0.1)
    !important;
  transition: all 0.25s ease !important;
}

[data-theme=wood-legendary] .gs-btn--ai-generate:hover,
[data-theme=wood-legendary] [data-action=email-machine]:hover {
  border-color: rgba(212,164,76,0.7) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.25),
    0 4px 14px rgba(0,0,0,0.2),
    0 0 14px rgba(212,164,76,0.15),
    inset 0 1px 0 rgba(255,240,180,0.45),
    inset 0 -1px 0 rgba(100,60,10,0.12)
    !important;
  transform: translateY(-1px) !important;
  color: #1A0800 !important;
}

[data-theme=wood-legendary] .gs-btn--ai-generate:active,
[data-theme=wood-legendary] [data-action=email-machine]:active {
  transform: translateY(0px) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Texte marron très foncé sur les boutons GiriStore bois */
[data-theme=wood-legendary] .gs-btn--ai-generate,
[data-theme=wood-legendary] [data-action=email-machine] {
  color: #0F0500 !important;
  text-shadow: none !important;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD — Actions Rapides : mosaïque exceptionnelle
   ══════════════════════════════════════════════════════ */

[data-theme=wood-legendary] .db-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 4px 0 !important;
}

[data-theme=wood-legendary] .db-qa-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 18px 10px 14px !important;
  min-height: 88px !important;
  background-image: url('textures/wood-light-premium.jpg') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-radius: 14px !important;
  border: 1px solid rgba(180,130,70,0.35) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.25),
    0 6px 18px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,240,180,0.35)
    !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
}

[data-theme=wood-legendary] .db-qa-item:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.3),
    0 10px 28px rgba(0,0,0,0.25),
    0 0 14px rgba(212,164,76,0.15),
    inset 0 1px 0 rgba(255,240,180,0.45)
    !important;
}

[data-theme=wood-legendary] .db-qa-icon {
  font-size: 30px !important;
  line-height: 1 !important;
  filter:
    drop-shadow(0 3px 6px rgba(0,0,0,0.5))
    drop-shadow(0 0 10px rgba(212,164,76,0.2))
    !important;
}

[data-theme=wood-legendary] .db-qa-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #1A0800 !important;
  text-shadow: 0 1px 0 rgba(255,200,100,0.3) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

[data-theme=wood-legendary] .db-qa-item.db-qa-item--hl {
  border-color: rgba(212,164,76,0.6) !important;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.3),
    0 6px 20px rgba(0,0,0,0.25),
    0 0 16px rgba(212,164,76,0.2),
    inset 0 1px 0 rgba(255,240,180,0.45)
    !important;
}


/* ============================================================
   GIRI STORE — BOIS LÉGENDAIRE
   Sous-onglets : Analytics · Mes Ventes · Ma boutique
                  Codes Promo · Séquences
   ============================================================ */

/* --- Wrapper général --- */
[data-theme=wood-legendary] .gs-wrap {
  background: transparent !important;
}

/* --- Header Store --- */
[data-theme=wood-legendary] .gs-header {
  background: linear-gradient(135deg, rgba(15,5,0,0.85) 0%, rgba(40,20,0,0.7) 100%) !important;
  border: 1px solid rgba(212,164,76,0.25) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(6px) !important;
}
[data-theme=wood-legendary] .gs-header__title,
[data-theme=wood-legendary] .gs-title {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gs-header__sub,
[data-theme=wood-legendary] .gs-subtitle {
  color: rgba(255,245,220,0.6) !important;
}

/* --- KPI cards --- */
[data-theme=wood-legendary] .gs-kpi {
  background: var(--wood-light) !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,245,220,0.15) !important;
}
[data-theme=wood-legendary] .gs-kpi__value {
  color: #2A1200 !important;
  font-weight: 800 !important;
}
[data-theme=wood-legendary] .gs-kpi__label {
  color: #4A2A00 !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gs-kpi__icon-wrap {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
}

/* --- Boutons nav (tabs du header) --- */
[data-theme=wood-legendary] .gs-btn--ghost-premium {
  background: rgba(20,10,0,0.35) !important;
  border-color: rgba(212,164,76,0.3) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gs-btn--ghost-premium:hover {
  background: rgba(212,164,76,0.15) !important;
  border-color: rgba(212,164,76,0.6) !important;
}

/* --- Boutons CTA / Primary → doré bois --- */
[data-theme=wood-legendary] .gs-btn--cta,
[data-theme=wood-legendary] .gs-btn--primary {
  background: linear-gradient(135deg, #C9A84C 0%, #8B6914 100%) !important;
  color: #2A1200 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 12px rgba(139,105,20,0.4) !important;
}
[data-theme=wood-legendary] .gs-btn--cta:hover,
[data-theme=wood-legendary] .gs-btn--primary:hover {
  background: linear-gradient(135deg, #D4B85A 0%, #9A7820 100%) !important;
  box-shadow: 0 4px 20px rgba(139,105,20,0.6) !important;
}

/* --- Inputs / Selects --- */
[data-theme=wood-legendary] .gs-input {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(212,164,76,0.3) !important;
  color: #FFF5DC !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .gs-input:focus {
  border-color: #C9A84C !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2) !important;
}
[data-theme=wood-legendary] .gs-input::placeholder {
  color: rgba(255,245,220,0.35) !important;
}
[data-theme=wood-legendary] .gs-input option {
  background: #1A0800 !important;
  color: #FFF5DC !important;
}

/* --- Search ventes --- */
[data-theme=wood-legendary] .gs-sales-search {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(212,164,76,0.3) !important;
  color: #FFF5DC !important;
  border-radius: 12px !important;
}
[data-theme=wood-legendary] .gs-sales-search::placeholder {
  color: rgba(255,245,220,0.35) !important;
}

/* --- Labels formulaires --- */
[data-theme=wood-legendary] .gs-form-group label {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gs-hint {
  color: rgba(255,245,220,0.45) !important;
}

/* --- Filtres Analytics (période) --- */
[data-theme=wood-legendary] .gs-analytics-period {
  background: rgba(20,10,0,0.45) !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
  color: #FFF5DC !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}
[data-theme=wood-legendary] .gs-analytics-period:hover {
  background: rgba(212,164,76,0.18) !important;
  border-color: rgba(212,164,76,0.5) !important;
}

/* --- Tableaux Analytics & Mes Ventes --- */
[data-theme=wood-legendary] .gs-wrap table {
  background: rgba(15,5,0,0.2) !important;
}
[data-theme=wood-legendary] .gs-wrap table thead tr {
  background: rgba(201,168,76,0.12) !important;
}
[data-theme=wood-legendary] .gs-wrap table thead th {
  color: #C9A84C !important;
  background: rgba(201,168,76,0.1) !important;
  border-bottom: 1px solid rgba(201,168,76,0.2) !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gs-wrap table tbody tr {
  border-bottom: 1px solid rgba(212,164,76,0.07) !important;
}
[data-theme=wood-legendary] .gs-wrap table tbody tr:hover {
  background: rgba(212,164,76,0.06) !important;
}
[data-theme=wood-legendary] .gs-wrap table td {
  color: #FFF5DC !important;
  border-bottom: 1px solid rgba(212,164,76,0.06) !important;
}

/* --- Containers funnel / performance --- */
[data-theme=wood-legendary] .gs-wrap > div[style*="overflow-x:auto"],
[data-theme=wood-legendary] .gs-wrap > div > div[style*="overflow-x:auto"] {
  background: rgba(15,5,0,0.35) !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
  border-radius: 16px !important;
}

/* --- Cartes produits & coupons --- */
[data-theme=wood-legendary] .gs-card {
  background: var(--wood-medium) !important;
  border: 1px solid rgba(212,164,76,0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5) !important;
}
[data-theme=wood-legendary] .gs-card__title {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gs-card__desc {
  color: rgba(255,245,220,0.65) !important;
}
[data-theme=wood-legendary] .gs-card__price {
  color: #C9A84C !important;
  font-weight: 700 !important;
}
[data-theme=wood-legendary] .gs-card__sales-badge {
  background: rgba(201,168,76,0.15) !important;
  color: #C9A84C !important;
  border-radius: 8px !important;
  padding: 2px 8px !important;
}
[data-theme=wood-legendary] .gs-card__status-badge--live {
  background: rgba(20,80,20,0.6) !important;
  color: #a8f0a8 !important;
}
[data-theme=wood-legendary] .gs-card__status-badge--draft {
  background: rgba(80,40,0,0.6) !important;
  color: rgba(255,245,220,0.7) !important;
}

/* --- Séquences email --- */
[data-theme=wood-legendary] #gs-seq-list > div {
  background: var(--wood-medium) !important;
  border: 1px solid rgba(212,164,76,0.25) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

/* --- Modal Ma Boutique (gsm-v2) --- */
[data-theme=wood-legendary] .gsm-v2-modal {
  background: linear-gradient(160deg, #1A0800 0%, #0F0500 100%) !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-col {
  background-image: url('textures/wood-medium.jpg?v=1774293320') !important;
  background-color: #8B6020 !important;
  background-size: cover !important;
  background-position: center !important;
  border-right: 1px solid rgba(212,164,76,0.25) !important;
}
[data-theme=wood-legendary] .gsm-v2-title {
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-footer {
  border-top: 1px solid rgba(212,164,76,0.15) !important;
  background: rgba(10,5,0,0.4) !important;
}
[data-theme=wood-legendary] .gsm-v2-close {
  color: rgba(255,245,220,0.6) !important;
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .gsm-v2-device-btn {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(212,164,76,0.2) !important;
  color: rgba(255,245,220,0.7) !important;
  border-radius: 8px !important;
}
[data-theme=wood-legendary] .gsm-v2-device-btn--active {
  background: rgba(201,168,76,0.2) !important;
  border-color: rgba(212,164,76,0.5) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gsm-v2-store-link {
  color: #C9A84C !important;
  text-decoration: none !important;
}
[data-theme=wood-legendary] .gsm-v2-preview-label {
  color: rgba(255,245,220,0.6) !important;
  font-size: 0.8rem !important;
}


/* ============================================================
   SÉQUENCES — Retour + Cartes : bois clair
   ============================================================ */

/* Bouton ← Retour dans Séquences → bois très clair */
[data-theme=wood-legendary] .gs-actions [data-action="back-to-products"],
[data-theme=wood-legendary] .gs-header [data-action="back-to-products"] {
  background: var(--wood-light) !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,245,220,0.25) !important;
}
[data-theme=wood-legendary] .gs-actions [data-action="back-to-products"]:hover,
[data-theme=wood-legendary] .gs-header [data-action="back-to-products"]:hover {
  background: var(--wood-medium) !important;
  color: #FFF5DC !important;
}

/* Cartes Machines de vente → bois clair (override wood-medium précédent) */
[data-theme=wood-legendary] #gs-seq-list > div {
  background: var(--wood-light) !important;
  border: 1px solid rgba(212,164,76,0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,245,220,0.2) !important;
}

/* Titre du projet → brun foncé sur fond clair */
[data-theme=wood-legendary] #gs-seq-list > div strong {
  color: #2A1200 !important;
}

/* Chips emails (J1, J3…) → fond sombre pour contraste sur bois clair */
[data-theme=wood-legendary] #gs-seq-list > div > div > div[style*="rgba(255,255,255,0.04)"] {
  background: rgba(0,0,0,0.12) !important;
  border-color: rgba(0,0,0,0.1) !important;
}


/* Bouton "Générer les emails" → bois clair */
[data-theme=wood-legendary] [data-action="seq-generate"] {
  background-image: url('textures/wood-medium.jpg?v=1774293320') !important;
  background-color: #8B6020 !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,245,220,0.25) !important;
  text-shadow: 0 1px 0 rgba(255,220,150,0.3) !important;
}
[data-theme=wood-legendary] [data-action="seq-generate"]:hover {
  background-image: url('textures/wood-medium.jpg?v=1774293320') !important;
  background-color: #8B6020 !important;
  background-size: cover !important;
  color: #FFF5DC !important;
  border-color: rgba(212,164,76,0.7) !important;
}


/* OVERRIDE FINAL — Bouton Générer les emails → bois clair doré */
[data-theme=wood-legendary] [data-action="seq-generate"].gs-btn {
  background: linear-gradient(135deg, #D4B060 0%, #B8872A 50%, #D4B060 100%) !important;
  background-image: none !important;
  border: 1.5px solid rgba(212,164,76,0.6) !important;
  color: #2A1200 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,230,150,0.4) !important;
  text-shadow: 0 1px 0 rgba(255,220,130,0.4) !important;
}
[data-theme=wood-legendary] [data-action="seq-generate"].gs-btn:hover {
  background: linear-gradient(135deg, #C9A040 0%, #9A6818 50%, #C9A040 100%) !important;
  background-image: none !important;
  color: #FFF5DC !important;
}


/* Bouton poubelle Séquences → marron foncé visible */
[data-theme=wood-legendary] #gs-seq-list .gs-btn--trash {
  color: #5A1A00 !important;
  background: rgba(90,26,0,0.15) !important;
  border: 1px solid rgba(90,26,0,0.3) !important;
  opacity: 1 !important;
  filter: none !important;
}
[data-theme=wood-legendary] #gs-seq-list .gs-btn--trash:hover {
  background: rgba(139,30,0,0.3) !important;
  color: #8B1A00 !important;
  border-color: rgba(139,30,0,0.5) !important;
}


/* AFFILIATIONS — gsa-panel (2e cadre) → transparent, sans filet */
[data-theme=wood-legendary] .gsa-panel {
  background-image: none !important;
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
}


/* AFFILIATIONS — filet doré modal externe supprimé */
[data-theme=wood-legendary] .gs-modal-overlay > div {
  border: none !important;
}


/* AFFILIATIONS — filet doré des sections supprimé */
[data-theme=wood-legendary] .gsa-section {
  border: none !important;
}


/* AFFILIATIONS — fond des sections → transparent */
[data-theme=wood-legendary] .gsa-section {
  background: transparent !important;
}


/* AFFILIATIONS — textes gris → crème clair lisible */
[data-theme=wood-legendary] .gsa-subtitle,
[data-theme=wood-legendary] .gsa-switch-text,
[data-theme=wood-legendary] .gsa-aff-email,
[data-theme=wood-legendary] .gsa-aff-stat-lbl,
[data-theme=wood-legendary] .gsa-range-labels span,
[data-theme=wood-legendary] .gsa-invite-hint,
[data-theme=wood-legendary] .gsa-public-hint,
[data-theme=wood-legendary] .gsa-empty-state p,
[data-theme=wood-legendary] .gsa-disabled-state > p,
[data-theme=wood-legendary] .gsa-feature,
[data-theme=wood-legendary] .gsa-link-input {
  color: rgba(255, 245, 220, 0.80) !important;
}


/* AFFILIATIONS — Taux de commission label → clair */
[data-theme=wood-legendary] .gsa-commission-label {
  color: #FFF5DC !important;
}


/* AFFILIATIONS — bouton Enregistrer le taux → bois très clair */
/* AFFILIATIONS — Enregistrer le taux → bois très clair */
[data-theme=wood-legendary] #gsa-save.gsa-save-btn {
  background: linear-gradient(135deg, #EDD080 0%, #D4A84C 40%, #EDD080 100%) !important;
  color: #2A1200 !important;
  border: 1.5px solid rgba(237,208,128,0.6) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.5) !important;
}


/* AFFILIATIONS — ovale Actif → opacité +40% */
[data-theme=wood-legendary] .gsa-status--active {
  background: rgba(16, 185, 129, 0.52) !important;
}


/* CODES PROMO — bouton + Nouveau coupon → bois très clair */
[data-theme=wood-legendary] #gs-add-coupon {
  background: linear-gradient(135deg, #EDD080 0%, #C9943A 50%, #EDD080 100%) !important;
  color: #2A1200 !important;
  border: 1.5px solid rgba(237,208,128,0.6) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.5) !important;
}
[data-theme=wood-legendary] #gs-add-coupon:hover {
  background: linear-gradient(135deg, #F5E09A 0%, #D4A84C 50%, #F5E09A 100%) !important;
}


/* CODES PROMO — fond bois foncé → transparent (uniquement vue coupons) */
[data-theme=wood-legendary] #view-giri-store:has(#gs-add-coupon) {
  background-image: none !important;
  background-color: transparent !important;
}


/* GIRI STORE — fond bois foncé page principale → transparent */
[data-theme=wood-legendary] #view-giri-store:has(.gs-products) {
  background-image: none !important;
  background-color: transparent !important;
}


/* ============================================================
   CODES PROMO — hiérarchie visuelle des cartes coupon
   ============================================================ */

/* Code coupon (MAHA, TESTAPITEST…) → blanc bold très visible */
[data-theme=wood-legendary] .gs-cpn-code {
  color: #FFFFFF !important;
  background: rgba(201,168,76,0.15) !important;
  border: 1px dashed rgba(201,168,76,0.55) !important;
  text-shadow: 0px 2px 8px rgba(0,0,0,0.95) !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
}

/* Pourcentage / montant de réduction → crème gras */
[data-theme=wood-legendary] .gs-cpn-discount {
  color: #FFF5DC !important;
  text-shadow: 0px 2px 6px rgba(0,0,0,0.99) !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
}

/* Badge statut Actif (vert) */
[data-theme=wood-legendary] .gs-cpn-badge[style*="#10b981"] {
  background: rgba(20,80,20,0.7) !important;
  border: 1px solid rgba(100,200,100,0.5) !important;
  color: #90EE90 !important;
  font-weight: 700 !important;
  text-shadow: 0px 1px 3px rgba(0,0,0,0.8) !important;
}

/* Badge statut Expiré (orange) */
[data-theme=wood-legendary] .gs-cpn-badge[style*="#f59e0b"] {
  background: rgba(80,50,0,0.7) !important;
  border: 1px solid rgba(245,158,11,0.5) !important;
  color: #FCD277 !important;
  font-weight: 700 !important;
}

/* Badge statut Inactif / Épuisé */
[data-theme=wood-legendary] .gs-cpn-badge[style*="#888"],
[data-theme=wood-legendary] .gs-cpn-badge[style*="#ef4444"] {
  background: rgba(80,20,20,0.6) !important;
  border: 1px solid rgba(200,80,80,0.4) !important;
  color: rgba(255,200,200,0.9) !important;
  font-weight: 700 !important;
}

/* Infos secondaires (utilisations, expiration…) → crème lisible */
[data-theme=wood-legendary] .gs-cpn-meta {
  opacity: 1 !important;
  color: rgba(255,245,220,0.80) !important;
}
[data-theme=wood-legendary] .gs-cpn-meta span {
  color: rgba(255,245,220,0.80) !important;
  text-shadow: 0px 1px 4px rgba(0,0,0,0.9) !important;
}

/* Bouton Lien */
[data-theme=wood-legendary] .gs-cpn-copy {
  background: rgba(20,10,0,0.5) !important;
  border: 1px solid rgba(201,168,76,0.4) !important;
  color: #C9A84C !important;
  font-weight: 600 !important;
}


/* CODES PROMO — centrer pourcentage + badge Actif */
[data-theme=wood-legendary] div:has(> .gs-cpn-discount) {
  justify-content: center !important;
}


/* MA BOUTIQUE — bouton Enregistrer → bois très clair */
[data-theme=wood-legendary] #gsm-v2-save {
  background: linear-gradient(135deg, #EDD080 0%, #C9943A 50%, #EDD080 100%) !important;
  color: #2A1200 !important;
  border: 1.5px solid rgba(237,208,128,0.6) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.5) !important;
}
[data-theme=wood-legendary] #gsm-v2-save:hover {
  background: linear-gradient(135deg, #F5E09A 0%, #D4A84C 50%, #F5E09A 100%) !important;
}


/* ============================================================
   MA BOUTIQUE — Colonne gauche : lisibilité sur wood-medium
   ============================================================ */

/* En-tête de la colonne */
[data-theme=wood-legendary] .gsm-v2-settings-header {
  border-bottom: 1px solid rgba(255,245,220,0.2) !important;
  padding-bottom: 12px !important;
}
[data-theme=wood-legendary] .gsm-v2-title {
  color: #FFF5DC !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
  font-weight: 800 !important;
}

/* Chaque section → texture bois très foncé */
[data-theme=wood-legendary] .gsm-v2-section {
  background-image: url('textures/wood-dark.jpg?v=1774293320') !important;
  background-color: #0F0500 !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(201,168,76,0.25) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,245,220,0.08) !important;
}

/* Titres de section → blanc crème + shadow forte */
[data-theme=wood-legendary] .gsm-v2-section-title {
  color: #FFF5DC !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 12px !important;
}

/* Texte descriptif des sections */
[data-theme=wood-legendary] .gsm-v2-section-desc,
[data-theme=wood-legendary] .gsm-v2-settings-body p {
  color: rgba(255,245,220,0.75) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

/* Labels */
[data-theme=wood-legendary] .gsm-v2-settings-body label {
  color: #EDD080 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}

/* Inputs, selects, textareas → fond bois très clair */
[data-theme=wood-legendary] .gsm-v2-settings-body .gs-input,
[data-theme=wood-legendary] .gsm-v2-settings-body input:not([type=color]),
[data-theme=wood-legendary] .gsm-v2-settings-body textarea,
[data-theme=wood-legendary] .gsm-v2-settings-body select {
  background: rgba(255,245,220,0.15) !important;
  border: 1px solid rgba(255,245,220,0.3) !important;
  color: #FFF5DC !important;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3) !important;
}
[data-theme=wood-legendary] .gsm-v2-settings-body input::placeholder,
[data-theme=wood-legendary] .gsm-v2-settings-body textarea::placeholder {
  color: rgba(255,245,220,0.4) !important;
}

/* Options de police → bois très clair */
[data-theme=wood-legendary] .gsm-v2-font-option {
  background: rgba(255,245,220,0.10) !important;
  border: 1px solid rgba(255,245,220,0.2) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
}
[data-theme=wood-legendary] .gsm-v2-font-option--active {
  background: rgba(237,208,128,0.25) !important;
  border-color: rgba(237,208,128,0.6) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,240,180,0.3) !important;
}
[data-theme=wood-legendary] .gsm-v2-font-sample {
  color: #FFF5DC !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
}
[data-theme=wood-legendary] .gsm-v2-font-desc {
  color: rgba(255,245,220,0.65) !important;
}

/* Boutons device (Desktop / Mobile) */
[data-theme=wood-legendary] .gsm-v2-device-btn {
  background: rgba(255,245,220,0.1) !important;
  border: 1px solid rgba(255,245,220,0.2) !important;
  color: rgba(255,245,220,0.8) !important;
}
[data-theme=wood-legendary] .gsm-v2-device-btn--active {
  background: rgba(237,208,128,0.3) !important;
  border-color: rgba(237,208,128,0.6) !important;
  color: #FFF5DC !important;
}


/* MA BOUTIQUE — boutons → bois très clair */
[data-theme=wood-legendary] #gsm-v2-save,
[data-theme=wood-legendary] #gsm-add-domain-btn,
[data-theme=wood-legendary] #gsm-v2-ai-banner-gen,
[data-theme=wood-legendary] .gsm-domain-verify {
  background: linear-gradient(135deg, #EDD080 0%, #C9943A 50%, #EDD080 100%) !important;
  color: #2A1200 !important;
  border: 1.5px solid rgba(237,208,128,0.6) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,240,180,0.5) !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] #gsm-v2-save:hover,
[data-theme=wood-legendary] #gsm-add-domain-btn:hover,
[data-theme=wood-legendary] #gsm-v2-ai-banner-gen:hover,
[data-theme=wood-legendary] .gsm-domain-verify:hover {
  background: linear-gradient(135deg, #F5E09A 0%, #D4A84C 50%, #F5E09A 100%) !important;
}


/* MA BOUTIQUE — cadre ✨ Générer avec l'IA → bois clair */
[data-theme=wood-legendary] .gsm-v2-ai-banner {
  background-image: url('textures/wood-light-premium.jpg?v=1774293320') !important;
  background-color: #C8A84A !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(212,164,76,0.4) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,245,220,0.2) !important;
}

/* Boutons d'inspiration → quasi opaques sur fond bois clair */
[data-theme=wood-legendary] .gsm-v2-inspo-btn {
  background: rgba(15,5,0,0.72) !important;
  border: 1px solid rgba(212,164,76,0.45) !important;
  color: #FFF5DC !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
  border-radius: 10px !important;
}
[data-theme=wood-legendary] .gsm-v2-inspo-btn:hover {
  background: rgba(201,168,76,0.3) !important;
  border-color: rgba(212,164,76,0.7) !important;
  color: #FFF5DC !important;
}


/* MA BOUTIQUE — section Thèmes & Univers → remplissage mosaïque */
[data-theme=wood-legendary] .gsm-section--themes {
  background-image: url('textures/wood-dark.jpg?v=1774293320') !important;
  background-size: auto auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
}


/* Cadre ✨ Générer avec l'IA — textes foncés sur fond bois clair */
[data-theme=wood-legendary] .gsm-v2-ai-banner label,
[data-theme=wood-legendary] .gsm-v2-ai-banner strong,
[data-theme=wood-legendary] .gsm-v2-ai-banner span,
[data-theme=wood-legendary] .gsm-v2-ai-banner p {
  color: #2A1200 !important;
  text-shadow: none !important;
}
[data-theme=wood-legendary] .gsm-v2-ai-banner .gs-input,
[data-theme=wood-legendary] .gsm-v2-ai-banner input {
  background: rgba(15,5,0,0.55) !important;
  border: 1px solid rgba(42,18,0,0.4) !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gsm-v2-ai-banner input::placeholder {
  color: rgba(42,18,0,0.5) !important;
}
/* Style buttons (Réaliste, Artistique…) dans le cadre IA → foncés */
[data-theme=wood-legendary] .gsm-v2-ai-banner [data-banner-style] {
  color: #2A1200 !important;
  background: rgba(255,245,220,0.45) !important;
  border-color: rgba(42,18,0,0.3) !important;
}
[data-theme=wood-legendary] .gsm-v2-ai-banner [data-banner-style].gs-btn--primary {
  background: linear-gradient(135deg, #C9943A, #8B6014) !important;
  color: #FFF5DC !important;
  border-color: rgba(201,148,58,0.6) !important;
}

/* ============================================================ */
/* === Ma Boutique — Cadre Aperçu en direct (côté droit)    === */
/* ============================================================ */

/* Colonne entière Aperçu */
[data-theme=wood-legendary] .gsm-v2-preview-col {
  background-image: url('textures/wood-dark.jpg?v=1774293320') !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-left: 1px solid rgba(201,168,76,0.3) !important;
}

/* Toolbar Aperçu en direct */
[data-theme=wood-legendary] .gsm-v2-preview-toolbar {
  background-image: url('textures/wood-medium.jpg?v=1774293320') !important;
  background-size: cover !important;
  background-attachment: scroll !important;
  background-color: transparent !important;
  border-bottom: 1px solid rgba(201,168,76,0.3) !important;
}
[data-theme=wood-legendary] .gsm-v2-preview-label {
  color: #FFF5DC !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
}

/* Boutons desktop / mobile */
[data-theme=wood-legendary] .gsm-v2-device-btn {
  background: rgba(20,10,0,0.4) !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 8px !important;
  color: #FFF5DC !important;
}
[data-theme=wood-legendary] .gsm-v2-device-btn.gsm-v2-device-btn--active {
  background: linear-gradient(135deg, #C9A84C, #8B6914) !important;
  border-color: rgba(201,168,76,0.8) !important;
  color: #2A1200 !important;
}

/* Lien Ouvrir la boutique publique */
[data-theme=wood-legendary] .gsm-v2-store-link {
  background-image: url('textures/wood-medium.jpg?v=1774293320') !important;
  background-size: cover !important;
  background-color: transparent !important;
  border-top: 1px solid rgba(201,168,76,0.3) !important;
  color: #C9A84C !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  font-weight: 600 !important;
  display: block !important;
}

/* Ma Boutique — Header "✨ Personnaliser" : ombre douce vers le bas */
[data-theme=wood-legendary] .gsm-v2-settings-header {
  border-bottom: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5),
              0 2px 6px rgba(0,0,0,0.4),
              0 1px 0px rgba(201,168,76,0.2) !important;
  position: relative !important;
  z-index: 1 !important;
}
