/* Envie en Vue — alpha103
   Cartes d’entrée des trois modes de décision.
   Palette strictement issue de la charte v1.4. */

.what-mode-showcase {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.what-mode-showcase .what-mode-card {
  position: relative;
  display: grid;
  min-height: 332px;
  grid-template-columns: 1fr;
  grid-template-rows: 190px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0 !important;
  border: 1px solid rgba(229, 221, 233, 0.95) !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: var(--eiv-plum);
  box-shadow: 0 10px 26px rgba(64, 58, 92, 0.08) !important;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.what-mode-showcase .what-mode-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--mode-accent);
  content: "";
}

.what-mode-showcase .what-mode-card:nth-child(1) {
  --mode-accent: var(--eiv-raspberry); /* #C64B67 */
  --mode-pale: var(--eiv-raspberry-pale);
  --mode-soft: #fff7f8;
}

.what-mode-showcase .what-mode-card:nth-child(2) {
  --mode-accent: var(--eiv-turquoise); /* #69C9C3 */
  --mode-pale: var(--eiv-turquoise-pale);
  --mode-soft: #f6fcfc;
}

.what-mode-showcase .what-mode-card:nth-child(3) {
  --mode-accent: var(--eiv-coral); /* #F3A483 */
  --mode-pale: var(--eiv-coral-pale);
  --mode-soft: #fffaf6;
}

.what-mode-showcase .what-mode-card:hover,
.what-mode-showcase .what-mode-card:focus-visible {
  transform: translateY(-3px) !important;
  border-color: var(--mode-accent) !important;
  box-shadow: 0 17px 34px rgba(64, 58, 92, 0.13) !important;
}

.what-mode-showcase .what-mode-card.is-active,
.what-mode-showcase .what-mode-card[aria-selected="true"] {
  border-color: var(--mode-accent) !important;
  background: #fff !important;
  box-shadow: 0 18px 38px rgba(64, 58, 92, 0.14), 0 0 0 2px var(--mode-accent) inset !important;
}

.what-mode-showcase .what-mode-card[aria-selected="true"]::after {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mode-pale);
  color: var(--mode-accent);
  box-shadow: 0 3px 10px rgba(64, 58, 92, 0.08);
  content: "Sélectionné";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.what-mode-showcase .what-mode-card__visual {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  margin: 10px 10px 0 !important;
  border: 1px solid rgba(229, 221, 233, 0.9) !important;
  border-radius: 17px;
  background: var(--mode-soft) !important;
}

.what-mode-showcase .what-mode-card__visual > img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.what-mode-showcase .what-mode-card:nth-child(1) .what-mode-card__visual > img {
  object-position: center 64% !important;
}

.what-mode-showcase .what-mode-card:hover .what-mode-card__visual > img,
.what-mode-showcase .what-mode-card:focus-visible .what-mode-card__visual > img {
  transform: scale(1.025);
}

.what-mode-showcase .what-mode-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px !important;
}

.what-mode-showcase .what-mode-card.is-active .what-mode-card__copy,
.what-mode-showcase .what-mode-card[aria-selected="true"] .what-mode-card__copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--mode-soft) 100%);
}

.what-mode-showcase .what-mode-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.what-mode-showcase .what-mode-card__title i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--mode-pale) !important;
  color: var(--mode-accent) !important;
}

.what-mode-showcase .what-mode-card__title .icon { width: 19px; height: 19px; }
.what-mode-showcase .what-mode-card strong { margin: 0 !important; font-size: 16px !important; line-height: 1.2; }
.what-mode-showcase .what-mode-card small { color: var(--eiv-text-secondary) !important; font-size: 11px !important; line-height: 1.55 !important; }
.what-mode-showcase .what-mode-card em {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--mode-accent) !important;
  font-size: 11px !important;
  font-style: normal;
  font-weight: 900;
}
.what-mode-showcase .what-mode-card em b { font-size: 18px; }
.what-mode-showcase .what-mode-card[aria-selected="true"] em {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .what-mode-showcase { grid-template-columns: 1fr !important; }
  .what-mode-showcase .what-mode-card {
    min-height: 220px;
    grid-template-columns: minmax(210px, 36%) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .what-mode-showcase .what-mode-card__visual { min-height: unset; height: auto; margin: 10px !important; }
  .what-mode-showcase .what-mode-card[aria-selected="true"]::after { top: 14px; right: 14px; }
}

@media (max-width: 760px) {
  .what-mode-showcase .what-mode-card { min-height: 0; grid-template-columns: 1fr; grid-template-rows: 165px auto; }
  .what-mode-showcase .what-mode-card__visual { min-height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .what-mode-showcase .what-mode-card,
  .what-mode-showcase .what-mode-card__visual > img { transition: none !important; transform: none !important; }
}
