/* ══════════════════════════════════════════════════════
   PALAMA-TV — Device Gate (sélecteur d'appareil)
   Injecté dans la landing page — n'affecte PAS le CSS PC
   ══════════════════════════════════════════════════════ */

/* ── Landing override : remplace le bouton "Commencer" ── */
.landing-devices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Sous-titre au dessus des cards */
.landing-device-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ── Grille des 3 cards ── */
.device-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* ── Chaque card ── */
.device-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 28px 20px 22px;
  cursor: pointer;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  color: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.device-card:hover {
  border-color: rgba(124,106,255,0.55);
  background: rgba(124,106,255,0.07);
  color: rgba(255,255,255,0.9);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.device-card:active {
  transform: translateY(-2px) scale(0.98);
}

.device-card.selected {
  border-color: rgba(124,106,255,0.9);
  background: rgba(124,106,255,0.13);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(124,106,255,0.2), 0 12px 40px rgba(0,0,0,0.45);
}

/* Checkmark on selected */
.device-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #7c6aff;
  background: rgba(124,106,255,0.2);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}

/* ── SVG illustration container ── */
.device-card-svg {
  width: 90px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}
.device-card:hover .device-card-svg,
.device-card.selected .device-card-svg {
  transform: scale(1.06);
}

.device-card-svg svg {
  filter: drop-shadow(0 2px 8px rgba(124,106,255,0.25));
  transition: filter 0.22s ease;
}
.device-card.selected .device-card-svg svg {
  filter: drop-shadow(0 2px 16px rgba(124,106,255,0.5));
}

/* ── Textes ── */
.device-card-name {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}

.device-card-desc {
  font-size: 11px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.device-card.selected .device-card-desc {
  color: rgba(255,255,255,0.65);
}

/* Badge qualité */
.device-card-quality {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: rgba(255,255,255,0.5);
  margin-top: -4px;
}
.device-card.selected .device-card-quality {
  background: rgba(124,106,255,0.2);
  border-color: rgba(124,106,255,0.4);
  color: #a89fff;
}

/* ── Bouton "Continuer" (visite retour) ── */
.device-continue-btn {
  margin-top: 6px;
  padding: 13px 36px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.device-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,0.55);
}
.device-continue-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── Lien "Changer d'appareil" ── */
.device-change-link {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color 0.15s;
  margin-top: 2px;
}
.device-change-link:hover {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}

/* ── Animation d'entrée des cards ── */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.device-card:nth-child(1) { animation: cardFadeIn 0.5s ease 0.1s both; }
.device-card:nth-child(2) { animation: cardFadeIn 0.5s ease 0.2s both; }
.device-card:nth-child(3) { animation: cardFadeIn 0.5s ease 0.3s both; }

/* ── Responsive: 2 colonnes < 600px, 1 colonne < 400px ── */
@media (max-width: 600px) {
  .device-cards {
    gap: 12px;
  }
  .device-card {
    width: 150px;
    padding: 22px 14px 18px;
    gap: 10px;
    border-radius: 16px;
  }
  .device-card-svg {
    width: 70px;
    height: 58px;
  }
  .device-card-name {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .device-cards {
    flex-direction: column;
    align-items: center;
  }
  .device-card {
    width: 85%;
    max-width: 280px;
    flex-direction: row;
    padding: 16px 20px;
    gap: 16px;
    text-align: left;
    align-items: center;
  }
  .device-card-svg { width: 50px; height: 42px; flex-shrink: 0; }
  .device-card-desc { text-align: left; }
  .device-card-quality { align-self: flex-start; }
}
