/* RESET DE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  scroll-behavior: smooth;
}

body {
  /* Empêche la sélection de texte lors du glisser */
  user-select: none;
}

/* ANIMATIONS GLOBALES */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* HEADER FIXE */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.navbar-logo a {
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  color: #1d1d1f;
}

/* MENU */
.navbar-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-menu li a {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.navbar-menu li a:hover {
  opacity: 0.7;
}

/* Sélecteur de langue: 3 boutons */
.language-selector {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.lang-btn:hover {
  background-color: #ddd;
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 200px;
  background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%);
}

.hero-content {
  max-width: 600px;
  text-align: center;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #515154;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #0071e3;
  color: #fff;
  font-weight: 600;
  border-radius: 28px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #005bb5;
}

/* CARTE NFC AGRANDIE */
.hero-card-container {
  width: 450px;
  height: 280px;
  perspective: 1000px;
  position: relative;
}

.card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  backface-visibility: hidden;
  /* Transition gérée dynamiquement dans ./script.js (rotation partielle) */
}

/* Face avant (Argent) */
.card-front {
  background: linear-gradient(135deg, #c0c0c0, #e5e5e5);
}

/* Face arrière */
.card-back {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  transform: rotateY(180deg);
}

.nfc-logo-placeholder {
  width: 60px;
  height: 60px;
  background-color: #0071e3;
  border-radius: 50%;
}

.flip-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #7e7e7e;
}

/* SECTIONS COMMUNES */
section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #515154;
  line-height: 1.6;
}

/* PRODUITS */
.section-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-3px);
}

.product-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.product-item p {
  font-size: 1rem;
  color: #515154;
}

/* TARIFS */
.section-pricing .pricing-plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.plan {
  flex: 0 1 300px;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.plan-price {
  font-size: 2rem;
  color: #0071e3;
  margin-bottom: 1rem;
}

.plan ul {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
  color: #515154;
  line-height: 1.6;
}

.plan button {
  padding: 0.6rem 1.2rem;
  background-color: #0071e3;
  color: #fff;
  font-weight: 600;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.plan button:hover {
  background-color: #005bb5;
}

.best-deal {
  border: 2px solid #0071e3;
}

/* SECTION HOW IT WORKS */
.section-how .how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.step-item:hover {
  transform: translateY(-3px);
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #0071e3;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 40px;
  margin-bottom: 1rem;
}

/* CONTACT */
.section-contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 3rem auto 0;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  align-self: flex-end;
  padding: 0.8rem 2rem;
  background-color: #0071e3;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #005bb5;
}

/* FOOTER */
.main-footer {
  background-color: #fafafa;
  padding: 2rem 1rem;
  text-align: center;
  color: #7e7e7e;
  font-size: 0.9rem;
}

.main-footer a {
  color: #0071e3;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* RESPONSIVE ADAPTATION */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .navbar-logo {
    margin-bottom: 0.5rem;
  }

  .navbar-menu {
    margin-top: 0.5rem;
    flex-basis: 100%;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  .hero-card-container {
    width: 340px;
    height: 220px;
  }
}
