/* Fenetre en surimpression (pop-up) : masquee par defaut, ouverte en
   ajoutant la classe .vss-modal-open sur <body>. Le contenu du
   simulateur (#vss-root) est le meme, qu'il soit affiche inline via
   le shortcode ou dans cette fenetre. */
.vss-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(11, 10, 9, 0.82);
  padding: 24px;
  overflow-y: auto;
}
body.vss-modal-open .vss-modal-backdrop { display: flex; align-items: flex-start; justify-content: center; }
body.vss-modal-open { overflow: hidden; }

.vss-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 40px auto;
}

.vss-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0B0A09;
  border: 1px solid rgba(245, 241, 233, 0.25);
  color: #F5F1E9;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.vss-modal-close:hover { border-color: #D6BD91; color: #D6BD91; }

.vss-trigger-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid #D6BD91;
  color: #D6BD91;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.vss-trigger-btn:hover { background: #D6BD91; color: #0B0A09; }

.vss-root {
  font-family: 'Manrope', sans-serif;
  color: #F5F1E9;
  background: #0B0A09;
  border: 1px solid rgba(245, 241, 233, 0.13);
  border-radius: 4px;
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.vss-loading { text-align: center; opacity: 0.6; padding: 40px 0; }

.vss-step { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(245, 241, 233, 0.1); }
.vss-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.vss-h {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: #D6BD91;
  margin: 0 0 16px;
}

.vss-note {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 10px;
  line-height: 1.5;
}

.vss-plan-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.vss-plan-btn {
  flex: 1;
  min-width: 100px;
  background: rgba(245, 241, 233, 0.04);
  border: 1px solid rgba(245, 241, 233, 0.18);
  border-radius: 2px;
  color: #F5F1E9;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.vss-plan-btn:hover { border-color: #D6BD91; }
.vss-plan-btn.is-active {
  background: rgba(214, 189, 145, 0.12);
  border-color: #D6BD91;
  color: #D6BD91;
}

.vss-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.vss-fields:last-child { margin-bottom: 0; }
.vss-fields-solo { grid-template-columns: 1fr; }
@media (max-width: 640px) { .vss-fields { grid-template-columns: 1fr; } }

.vss-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #D6BD91;
  text-transform: uppercase;
}

.vss-fields input,
.vss-email-step input {
  background: rgba(245, 241, 233, 0.04);
  border: 1px solid rgba(245, 241, 233, 0.18);
  border-radius: 2px;
  color: #F5F1E9;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  padding: 12px 14px;
}
.vss-fields input:focus,
.vss-email-step input:focus {
  outline: none;
  border-color: #D6BD91;
  background: rgba(245, 241, 233, 0.07);
}

.vss-need-summary { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.vss-need-summary > div { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.vss-need-summary span { opacity: 0.65; }
.vss-need-remaining { border-top: 1px solid rgba(245, 241, 233, 0.13); padding-top: 12px !important; margin-top: 4px; }
.vss-need-remaining strong { color: #C8763A; font-size: 17px; }

.vss-sufficient {
  background: rgba(214, 189, 145, 0.1);
  border: 1px solid #D6BD91;
  color: #D6BD91;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0;
}

.vss-reco-events {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 241, 233, 0.1);
}
.vss-reco-events .vss-note { margin-top: 0; margin-bottom: 14px; }

.vss-reco h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #D6BD91;
  margin: 0 0 12px;
}

.vss-pack-list { list-style: none; margin: 0 0 16px; padding: 0; }
.vss-pack-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.08);
  font-size: 14px;
}

.vss-reco-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.vss-reco-totals > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.vss-reco-totals span { opacity: 0.65; }
.vss-reco-totals em { font-style: normal; font-size: 11px; opacity: 0.5; margin-left: 8px; }

.vss-comparison {
  background: rgba(200, 118, 58, 0.1);
  border: 1px solid #C8763A;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.vss-comparison strong { color: #C8763A; }

.vss-price-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.vss-price-mode-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.vss-price-mode-label.is-active { opacity: 1; color: #D6BD91; }

.vss-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.vss-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.vss-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(245, 241, 233, 0.18);
  border: 1px solid rgba(245, 241, 233, 0.25);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.vss-switch-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #F5F1E9;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.vss-switch input:checked + .vss-switch-slider { background: #C8763A; border-color: #C8763A; }
.vss-switch input:checked + .vss-switch-slider::before { transform: translateX(18px); }

.vss-cart-list { list-style: none; margin: 0 0 16px; padding: 0; }
.vss-cart-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 241, 233, 0.08);
  font-size: 15px;
}
.vss-cart-sub {
  display: block;
  font-style: normal;
  font-size: 12px;
  opacity: 0.5;
  margin-top: 3px;
}

.vss-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  margin-bottom: 20px;
  font-size: 17px;
  font-weight: 700;
}
.vss-cart-total strong { color: #D6BD91; font-size: 22px; }

.vss-email-step { margin-bottom: 16px; }
.vss-email-step label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #D6BD91;
  text-transform: uppercase;
}

/*
 * Cases de consentement (CGU/CGV + renonciation au droit de
 * retractation), ajoutees le 27/09/2026 (note section 11.3). Doivent
 * rester lisibles en texte normal, pas en majuscules/gras comme le
 * libelle du champ email juste au-dessus : on repart d'un layout en
 * ligne, interrupteur aligne avec la premiere ligne de texte.
 *
 * Passees en interrupteurs (comme cote admin, note section 12.1) le
 * 27/09/2026 : on reutilise ici le composant .vss-switch deja present
 * dans ce fichier pour le bascule TTC/HT plutot que d'en creer un
 * second, pour ne pas dupliquer la meme mecanique de "case a cocher
 * masquee + curseur coulissant en ::before". La couleur active reste
 * la terracotta deja utilisee par .vss-switch sur ce simulateur (pas
 * l'ambre du cote admin) : coherence avec l'unique autre interrupteur
 * deja present ici, plutot qu'avec l'admin, purement cosmetique.
 */
.vss-email-step label.vss-consent-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  color: #F5F1E9;
  text-transform: none;
  line-height: 1.5;
  opacity: 0.85;
}
.vss-consent-row .vss-consent-switch {
  margin-top: 1px;
}
.vss-consent-row a { color: #D6BD91; text-decoration: underline; }
.vss-consent-row a:hover { color: #F5F1E9; }

.vss-order-btn {
  width: 100%;
  background: #C8763A;
  border: none;
  border-radius: 2px;
  color: #F5F1E9;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.vss-order-btn:hover:not(:disabled) { background: #b8652c; transform: translateY(-1px); }
.vss-order-btn:disabled { background: transparent; border: 1px solid rgba(245, 241, 233, 0.18); color: inherit; opacity: 0.4; cursor: not-allowed; }

.vss-order-error {
  color: #d98b83;
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}
