/* Visuel personnalisé — charte Wooly : turquoise #6FD1D0, cartes #DAF3F3,
   magenta #E4177E, titres #17555C, gris #7C9598. */

.wp-onglet {
  --wp-turquoise: #6fd1d0;
  --wp-carte: #daf3f3;
  --wp-magenta: #e4177e;
  --wp-titre: #17555c;
  --wp-gris: #7c9598;
  color: var(--wp-titre);
}

.wp-intro {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.wp-regles {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.wp-regles li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.wp-puce {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--wp-magenta);
  color: #fff;
  font-weight: 700;
}

.wp-grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .wp-grille { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------ zone de dépôt */

.wp-depot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem 1.25rem;
  border: 2px dashed var(--wp-turquoise);
  border-radius: 1rem;
  background: var(--wp-carte);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wp-depot:hover,
.wp-depot:focus-visible,
.wp-depot.wp-survol {
  background: #cdeeee;
  border-color: var(--wp-magenta);
  outline: none;
}

.wp-icone {
  width: 48px;
  height: 48px;
  color: var(--wp-turquoise);
}

.wp-depot-titre { font-weight: 600; }

.wp-depot-formats {
  font-size: 0.85rem;
  color: var(--wp-gris);
}

.wp-champ {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ----------------------------------------------------------------- aperçu */

.wp-apercu {
  margin: 0;
  text-align: center;
}

.wp-apercu-titre {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wp-scene {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  background: var(--wp-carte);
  border-radius: 1rem;
  overflow: hidden;
}

.wp-support {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Le disque occupe 46 % de la scène : c'est la proportion du macaron
   posé sur le cupcake dessiné derrière lui. */
.wp-disque,
.wp-vide {
  position: absolute;
  left: 50%;
  top: 37%;
  width: 46%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(23, 85, 92, 0.25);
}

/* Sur un gâteau, rien n'est rond et rien n'est rogné : l'image entière
   remplit la scène, telle qu'elle sera imprimée avant découpe. */
.wp-scene--gateau .wp-disque,
.wp-scene--gateau .wp-vide {
  top: 50%;
  width: 88%;
  height: 88%;
  aspect-ratio: auto;
  border-radius: 0.6rem;
  object-fit: contain;
  box-shadow: none;
}

.wp-scene--gateau .wp-vide {
  border-style: dashed;
}

.wp-scene--gateau {
  background: #fff7ef;
}

.wp-vide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff7ef;
  border: 2px dashed var(--wp-gris);
  color: var(--wp-gris);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: none;
}

.wp-attente {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(218, 243, 243, 0.92);
  font-weight: 600;
}

.wp-tourne {
  width: 28px;
  height: 28px;
  border: 3px solid var(--wp-turquoise);
  border-top-color: var(--wp-magenta);
  border-radius: 50%;
  animation: wp-rotation 0.8s linear infinite;
}

@keyframes wp-rotation { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wp-tourne { animation-duration: 3s; }
}

.wp-apercu-legende {
  margin-top: 0.6rem;
  color: var(--wp-gris);
  font-size: 0.9rem;
}

.wp-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.wp-conseil {
  margin-top: 1.25rem;
  color: var(--wp-gris);
  font-size: 0.9rem;
}

.wp-message {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #fdecf3;
  color: #a3105a;
  font-weight: 600;
}

/* ------------------------------------------ rappel dans le bloc d'achat */

.wp-rappel {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #6fd1d0;
  background: #daf3f3;
  border-radius: 0.4rem;
  color: #17555c;
}

.wp-rappel p { margin: 0; }

.wp-rappel-ligne { font-weight: 600; }

.wp-rappel-etat {
  margin-top: 0.25rem !important;
  font-size: 0.9rem;
}

.wp-rappel-etat.wp-ok { color: #1a7a4a; font-weight: 600; }
.wp-rappel-etat.wp-attente-visuel { color: #7c9598; }

.wp-rappel-pastille {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #e2a628;
}
