/* ==============================================
   PROFILE SELECTOR - Page de sélection de profil
   Style moderne et fluide pour l'expérience centrée client
   ============================================== */

/* Page principale */
.profile-selector-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* Skip button */
.skip-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skip-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.skip-btn i {
  font-size: 1rem;
}

/* Container principal */
.profile-container {
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Logo */
.profile-logo {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.8s ease-out;
}

.profile-logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Header */
.profile-header {
  text-align: center;
  color: white;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.profile-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.profile-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Grid de profils */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card profil */
.profile-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  animation: fadeInUp 0.8s ease-out both;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.profile-card:hover::before {
  transform: scaleX(1);
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }
.profile-card:nth-child(5) { animation-delay: 0.5s; }
.profile-card:nth-child(6) { animation-delay: 0.6s; }

.profile-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(228, 3, 46, 0.3);
  border-color: var(--color-secondary);
}

.profile-card:active {
  transform: translateY(-5px) scale(1.01);
}

/* Icon de la card */
.profile-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.profile-card:hover .profile-card-icon {
  transform: rotate(360deg) scale(1.1);
}

.profile-card-icon i {
  font-size: 2rem;
  color: white;
}

/* Titre de la card */
.profile-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

/* Description */
.profile-card-description {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Features list */
.profile-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-card-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.profile-card-features i {
  color: var(--color-secondary);
  font-size: 0.875rem;
  width: 16px;
}

/* Arrow */
.profile-card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.profile-card:hover .profile-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.profile-card-arrow i {
  color: white;
  font-size: 1.25rem;
}

/* Footer */
.profile-footer {
  text-align: center;
  color: white;
  opacity: 0.8;
  font-size: 0.875rem;
  animation: fadeIn 1s ease-out 0.8s both;
}

/* Background animated planes */
.profile-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.profile-bg-plane {
  position: absolute;
  color: rgba(255, 255, 255, 0.05);
  font-size: 4rem;
  animation: floatPlane 20s infinite ease-in-out;
}

.profile-bg-plane-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.profile-bg-plane-2 {
  top: 60%;
  right: -10%;
  animation-delay: 7s;
}

.profile-bg-plane-3 {
  bottom: 10%;
  left: 50%;
  animation-delay: 14s;
}

@keyframes floatPlane {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, -50px) rotate(10deg);
  }
  50% {
    transform: translate(200px, 0) rotate(-5deg);
  }
  75% {
    transform: translate(100px, 50px) rotate(5deg);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-header h1 {
    font-size: 2rem;
  }
  
  .profile-subtitle {
    font-size: 1rem;
  }
  
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .profile-card {
    padding: 2rem;
  }
  
  .skip-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
  }
  
  .profile-logo img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .profile-selector-page {
    padding: 1rem 0.75rem;
  }
  
  .profile-header h1 {
    font-size: 1.75rem;
  }
  
  .profile-card-title {
    font-size: 1.25rem;
  }
  
  .profile-card-icon {
    width: 60px;
    height: 60px;
  }
  
  .profile-card-icon i {
    font-size: 1.5rem;
  }
}

/* États de sélection */
.profile-card.selected {
  border-color: var(--color-secondary);
  background: rgba(228, 3, 46, 0.05);
}

.profile-card.selecting {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Accessibilité */
.profile-card:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
}

.skip-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
}
