html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Home Page Styles */
.min-vh-75 {
  min-height: 75vh;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="80" fill="url(%23a)"/></svg>') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  /* Couleur de secours pour les navigateurs non compatibles */
  color: #00e5ff;
  background: linear-gradient(45deg, #00e5ff, #40c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
  font-weight: 700;
}

/* Support pour les navigateurs plus anciens */
@supports not (-webkit-background-clip: text) {
  .hero-title .highlight {
    color: #00e5ff !important;
    background: none !important;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Boutons spéciaux pour le hero section */
.hero-section .btn-primary {
  background: linear-gradient(45deg, #00e5ff, #40c4ff);
  border: none;
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
  transition: all 0.3s ease;
}

.hero-section .btn-primary:hover {
  background: linear-gradient(45deg, #40c4ff, #00e5ff);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.4);
  color: #1a1a1a;
}

.hero-section .btn-outline-primary {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-section .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Card Stack Animation */
.hero-image {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smartphone avec NFC */
.smartphone-container {
  position: relative;
  z-index: 10;
}

.smartphone {
  width: 200px;
  height: 350px;
  background: linear-gradient(145deg, #2c3e50, #34495e);
  border-radius: 25px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: phoneFloat 4s ease-in-out infinite;
}

.smartphone::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #555;
  border-radius: 2px;
}

.screen {
  position: absolute;
  top: 30px;
  left: 15px;
  right: 15px;
  bottom: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard-preview {
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  animation: cardPulse 3s ease-in-out infinite;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #00e5ff, #40c4ff);
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: avatarGlow 2s ease-in-out infinite alternate;
}

.profile-info {
  text-align: center;
}

.name-line, .title-line {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: shimmer 2s ease-in-out infinite;
}

.name-line {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.title-line {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  background: #00e5ff;
  border-radius: 50%;
  animation: iconBounce 1s ease-in-out infinite;
}

.contact-icon:nth-child(1) { animation-delay: 0s; }
.contact-icon:nth-child(2) { animation-delay: 0.2s; }
.contact-icon:nth-child(3) { animation-delay: 0.4s; }

/* Ondes NFC */
.nfc-waves {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
}

.wave {
  position: absolute;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  animation: nfcWave 3s ease-out infinite;
}

.wave-1 {
  width: 20px;
  height: 20px;
  top: 20px;
  left: 20px;
  animation-delay: 0s;
}

.wave-2 {
  width: 40px;
  height: 40px;
  top: 10px;
  left: 10px;
  animation-delay: 0.5s;
}

.wave-3 {
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
  animation-delay: 1s;
}

/* Éléments flottants */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* Badge NFC */
.nfc-badge {
  position: absolute;
  top: 15%;
  right: 5%;
  animation: badgeSwing 4s ease-in-out infinite;
  z-index: 15;
}

.badge-ring {
  width: 8px;
  height: 20px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border-radius: 4px 4px 0 0;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.badge-face {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 50%;
  border: 3px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  position: relative;
  margin-top: 5px;
}

.badge-face::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00e5ff, #40c4ff);
  border-radius: 50%;
  z-index: -1;
  animation: nfcPulse 2s ease-in-out infinite;
}

.nfc-logo {
  color: #666;
  animation: logoSpin 8s linear infinite;
}

.badge-chain {
  width: 2px;
  height: 15px;
  background: linear-gradient(180deg, #ffd700, #daa520);
  margin: 0 auto;
  border-radius: 1px;
}

/* Visage souriant */
.happy-face {
  position: absolute;
  bottom: 20%;
  right: 25%;
  animation: faceFloat 5s ease-in-out infinite;
  z-index: 12;
}

.face-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #ffeb3b, #ffc107);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.face-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle, rgba(255, 235, 59, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.eye {
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  position: absolute;
  top: 25px;
  animation: eyeBlink 4s ease-in-out infinite;
}

.eye-left {
  left: 22px;
}

.eye-right {
  right: 22px;
}

.smile {
  width: 35px;
  height: 20px;
  border: 3px solid #333;
  border-top: none;
  border-radius: 0 0 35px 35px;
  position: absolute;
  bottom: 18px;
  animation: smileStretch 3s ease-in-out infinite;
}

.floating-icon {
  position: absolute;
  opacity: 0.8;
  animation: iconFloat 6s ease-in-out infinite;
}

.wifi-icon {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.cloud-icon {
  top: 20%;
  right: 15%;
  animation-delay: 1.5s;
}

.share-icon {
  bottom: 30%;
  left: 10%;
  animation-delay: 3s;
}

.contact-icon {
  bottom: 15%;
  right: 20%;
  animation-delay: 4.5s;
}

/* Particules */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
}

.particle-1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.particle-2 {
  top: 30%;
  left: 80%;
  animation-delay: 2s;
}

.particle-3 {
  top: 60%;
  left: 10%;
  animation-delay: 4s;
}

.particle-4 {
  top: 80%;
  left: 70%;
  animation-delay: 1s;
}

.particle-5 {
  top: 20%;
  left: 50%;
  animation-delay: 3s;
}

.particle-6 {
  top: 70%;
  left: 40%;
  animation-delay: 5s;
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 3rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Step Cards */
.step-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.step-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.step-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 229, 255, 0.1) 0%, rgba(64, 196, 255, 0.1) 100%);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background: linear-gradient(45deg, #00e5ff, #40c4ff);
  border: none;
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  background: linear-gradient(45deg, #40c4ff, #00e5ff);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.4);
  color: #1a1a1a;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(2deg);
  }
  66% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

@keyframes cardPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  }
}

@keyframes avatarGlow {
  0% {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.8);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes nfcWave {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-10px) rotate(-3deg);
    opacity: 0.8;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes badgeSwing {
  0%, 100% {
    transform: rotate(0deg) translateY(0px);
  }
  25% {
    transform: rotate(3deg) translateY(-5px);
  }
  50% {
    transform: rotate(0deg) translateY(-8px);
  }
  75% {
    transform: rotate(-3deg) translateY(-3px);
  }
}

@keyframes nfcPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes logoSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes faceFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(2deg);
  }
  66% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes eyeBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

@keyframes smileStretch {
  0%, 100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-image {
    height: 350px;
    transform: scale(0.8);
  }
  
  .smartphone {
    width: 160px;
    height: 280px;
  }
  
  .floating-icon {
    transform: scale(0.8);
  }
  
  .nfc-badge {
    transform: scale(0.8);
    top: 10%;
    right: 10%;
  }
  
  .happy-face {
    transform: scale(0.8);
    bottom: 15%;
    right: 30%;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .floating-elements {
    opacity: 0.6;
  }
}