/* ===== Zest Corner — habillage des fenêtres modales ===== */

/* La fenêtre ouverte passe au-dessus des décors (miroir, bureau, bornes...) */
.artefacts-reference:has(.app-modal-wrapper) {
  z-index: 900 !important;
}

/* Habillage parchemin de la fenêtre */
.app-modal-wrapper .modal {
  background: linear-gradient(180deg, #fdf3e0 0%, #f9e8c8 100%) !important;
  border: 6px solid #b07b46;
  border-radius: 18px;
  color: #4a3220;
}

/* Titres */
.app-modal-wrapper .modal h2 {
  color: #b05e10;
  text-align: center;
  font-weight: 800;
  letter-spacing: .5px;
  margin: 4px 0 6px;
}
.app-modal-wrapper .modal h3 {
  color: #b05e10;
  text-align: center;
  font-weight: 800;
  margin: 20px 0 10px;
}

.app-modal-wrapper .modal p {
  text-align: center;
  margin: 0 0 12px;
}

/* Étapes numérotées : cartes blanches avec badge orange */
.app-modal-wrapper .modal ol {
  list-style: none;
  counter-reset: zc-step;
  margin: 0;
  padding: 0;
}
.app-modal-wrapper .modal ol li {
  counter-increment: zc-step;
  background: #fff;
  border-left: 6px solid #f39200;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  padding: 10px 14px 10px 48px;
  margin-bottom: 8px;
  position: relative;
  text-align: left;
}
.app-modal-wrapper .modal ol li::before {
  content: counter(zc-step);
  position: absolute;
  left: 12px;
  top: 10px;
  background: #f39200;
  color: #fff;
  font-weight: 800;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  text-align: center;
}

/* Encarts offres : tableau à 2 colonnes en cartes pointillées */
.app-modal-wrapper .modal table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px 0;
  margin: 0 0 8px;
}
.app-modal-wrapper .modal table td {
  background: #fff7ea;
  border: 2px dashed #f39200;
  border-radius: 12px;
  padding: 12px;
  width: 50%;
  vertical-align: top;
  text-align: left;
}

/* Bloc "ingrédient secret" */
.app-modal-wrapper .modal blockquote {
  background: #4a3220;
  color: #fdf3e0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  text-align: left;
}

/* ===== Le miroir appelle au clic : halo doré + étiquette flottante ===== */
img[src*="miroir"] {
  animation: zc-glow 2.8s ease-in-out infinite;
  cursor: pointer;
}
@keyframes zc-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(243, 146, 0, .25)); }
  50% { filter: drop-shadow(0 0 20px rgba(243, 146, 0, .85)); }
}
app-artefact:has(> img[src*="miroir"])::after,
.app-artefact:has(img[src*="miroir"])::after {
  content: "✨ Osez le test !";
  position: absolute;
  left: 50%;
  bottom: -10px;
  background: linear-gradient(180deg, #fdf3e0, #f9e8c8);
  border: 2px solid #b07b46;
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 13px;
  color: #b05e10;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  pointer-events: none;
  z-index: 5;
  animation: zc-bob 2s ease-in-out infinite;
}
@keyframes zc-bob {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-3deg) translateY(-6px); }
}

/* ===== Bulles (tooltips) — style parchemin par défaut ===== */
.app-tooltip {
  background: linear-gradient(180deg, #fdf3e0 0%, #f9e8c8 100%) !important;
  border: 3px solid #b07b46;
  border-radius: 14px;
  color: #4a3220 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.app-tooltip .tooltip-content {
  color: #4a3220;
}
.app-tooltip h4 {
  margin: 0 0 6px;
  color: #b05e10;
  font-weight: 800;
  font-size: 1.1em;
  letter-spacing: .3px;
}
.app-tooltip .tooltip-action button {
  background: #f39200;
  color: #fff;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}

/* ===== Bulle du Jeu du Miroir (diamant) — habillage bleu diamant ===== */
.app-tooltip:has(blockquote) {
  background: linear-gradient(160deg, #0f2f8a 0%, #2a6be8 55%, #59b8ff 100%) !important;
  border: 2px solid #bfe3ff;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(21, 80, 200, .45);
}
.app-tooltip:has(blockquote) .tooltip-content {
  color: #ffffff;
}
.app-tooltip:has(blockquote) blockquote {
  margin: 0;
  padding: 0;
  background: none;
  color: #ffffff;
}
.app-tooltip:has(blockquote) h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.15em;
  letter-spacing: .5px;
  text-shadow: 0 1px 4px rgba(0, 0, 40, .4);
}
.app-tooltip:has(blockquote) .tooltip-action button {
  background: #ffffff !important;
  color: #1a49c2 !important;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  padding: 10px 26px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.app-tooltip:has(blockquote)::after,
.app-tooltip:has(blockquote)::before {
  border-top-color: #2a6be8 !important;
  border-bottom-color: #2a6be8 !important;
}

/* Boutons d'action téléphone / email */
.app-modal-wrapper .modal a[href^="tel:"],
.app-modal-wrapper .modal a[href^="mailto:"] {
  display: inline-block;
  background: #f39200;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  margin: 4px;
}
.app-modal-wrapper .modal a[href^="mailto:"] {
  background: #4a3220;
  color: #fdf3e0 !important;
}
.app-modal-wrapper .modal a[href*="contact-entreprises"] {
  display: inline-block;
  background: #2e7d32;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  margin: 4px;
}
