/* ============================================
   VARIABLES & RESET
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blur-intensity: 10px; /* MODIFIER ICI : Intensité du flou (10px = moins flou, 20px = plus flou) */
  --glass-opacity: 0.25;
  --border-radius: 24px;
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BODY & BACKGROUND
   ============================================ */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* MODIFIER ICI : Image de fond */
.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(var(--blur-intensity));
  z-index: -2;
  transform: scale(1.1); /* Légèrement agrandi pour éviter les bords blancs lors du blur */
}

.background-blur::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* ============================================
   BOUTON MENU (haut à droite)
   ============================================ */

.menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-button:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.05);
}

/* ============================================
   CONTENU CENTRÉ
   ============================================ */

.content-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}

/* ============================================
   PHOTO DE PROFIL
   ============================================ */

/* MODIFIER ICI : Taille et style de la photo de profil */
.profile-picture {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: block;
}

/* ============================================
   NOM AVEC BADGE VÉRIFIÉ
   ============================================ */

/* MODIFIER ICI : Nom, emoji et style */
.name {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* ============================================
   BADGE VÉRIFIÉ ANIMÉ
   ============================================ */

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da6ff 0%, #1e88e5 100%);
  box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.3),
              0 0 20px rgba(77, 166, 255, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
  animation: verifiedPulse 2s ease-in-out infinite; /* MODIFIER ICI : Durée de l'animation (2s = plus lent, 1.5s = plus rapide) */
}

.verified-badge::before {
  content: '✓';
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.verified-badge::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da6ff 0%, #1e88e5 100%);
  opacity: 0;
  z-index: -1;
  animation: verifiedGlow 2s ease-in-out infinite; /* MODIFIER ICI : Intensité du glow (même durée que verifiedPulse) */
}

/* MODIFIER ICI : Puissance de l'animation - ajuster opacity (0.6 = plus fort, 0.3 = plus discret) et scale (1.4 = plus grand, 1.2 = plus petit) */
@keyframes verifiedPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.3),
                0 0 20px rgba(77, 166, 255, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(77, 166, 255, 0.5),
                0 0 30px rgba(77, 166, 255, 0.6),
                0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

@keyframes verifiedGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.4; /* MODIFIER ICI : Intensité du glow (0.6 = plus fort, 0.2 = plus discret) */
    transform: scale(1.3); /* MODIFIER ICI : Taille du glow (1.4 = plus grand, 1.2 = plus petit) */
  }
}

/* ============================================
   BADGE "EN LIGNE" STYLE LINKSCALE
   ============================================ */

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4cd964 0%, #3dd055 100%);
  box-shadow: 0 0 8px rgba(76, 217, 100, 0.6),
              0 0 4px rgba(76, 217, 100, 0.4);
  animation: onlinePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.online-text {
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  letter-spacing: 0.2px;
}

@keyframes onlinePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(76, 217, 100, 0.6),
                0 0 4px rgba(76, 217, 100, 0.4);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(76, 217, 100, 0.8),
                0 0 6px rgba(76, 217, 100, 0.6);
  }
}

/* ============================================
   TEXTE "JE RÉPONDS ICI"
   ============================================ */

/* MODIFIER ICI : Texte et emojis */
.respond-text {
  font-size: 18px;
  margin: 16px 0;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

/* ============================================
   BADGE TEMPS DE RÉPONSE
   ============================================ */

.time-badge {
  display: inline-block;
  margin: 12px auto;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: fit-content;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CARTE PROMO (GROS BLOC CLIQUABLE)
   ============================================ */

.promo-card {
  display: block;
  margin-top: 24px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 420px;
  text-decoration: none;
  color: inherit;
}

.promo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* MODIFIER ICI : Image de la carte promo */
.promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Logo en haut à droite du bloc promo */
.promo-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center;
  z-index: 10;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.promo-card:hover .promo-logo {
  opacity: 1;
}

.promo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 20px 16px 16px;
}

/* MODIFIER ICI : Texte de la carte promo */
.promo-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: block;
}

/* ============================================
   RESPONSIVE (MOBILE FIRST)
   ============================================ */

@media (max-width: 480px) {
  .content-wrapper {
    padding: 16px;
    max-width: 100%;
  }

  .profile-picture {
    width: 100px;
    height: 100px;
    border-width: 3px;
  }

  .name {
    font-size: 28px;
  }

  .verified-badge {
    width: 22px;
    height: 22px;
  }

  .verified-badge::before {
    font-size: 13px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    top: 16px;
    right: 16px;
    font-size: 20px;
  }

  .promo-card {
    max-width: 100%;
  }

  .promo-image {
    height: 160px;
  }

  .promo-text {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .content-wrapper {
    max-width: 480px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .name {
    font-size: 36px;
  }

  .verified-badge {
    width: 26px;
    height: 26px;
  }

  .verified-badge::before {
    font-size: 15px;
  }

  .promo-card {
    max-width: 480px;
  }
}