/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
  line-height: 1.7;
  color: #e8e8e8;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  background-attachment: fixed;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Navigation fixe avec effet glassmorphism */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 30, 46, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s ease-out;
}

/* Backdrop filter uniquement sur desktop pour meilleures performances */
@media (min-width: 769px) {
  nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(30, 30, 46, 0.85);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav a {
  margin: 0 18px;
  text-decoration: none;
  color: #d0d0d0;
  font-weight: 600;
  font-size: 0.95em;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a9eff, #7b68ee);
  transition: width 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  width: 100%;
}

/* Structure des sections */
section {
  max-width: 1200px;
  margin: 100px auto 80px auto;
  padding: 0 30px;
  animation: fadeInUp 0.8s ease-out;
}

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

header {
  max-width: 1200px;
  margin: 140px auto 80px auto;
  padding: 0 30px;
  text-align: center;
}

/* Optimisation de la lecture */
section p,
header p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #d8d8d8;
}

section ul {
  max-width: 700px;
  margin: 0 auto 30px auto;
  padding-left: 30px;
}

li {
  margin-bottom: 14px;
  color: #d0d0d0;
  position: relative;
  padding-left: 10px;
}

li::marker {
  color: #4a9eff;
}

/* Titres avec gradient */
h1 {
  font-size: 3em;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 0%, #a8c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  animation: fadeIn 1s ease-out;
}

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

h2 {
  font-size: 2.2em;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #fff;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a9eff, #7b68ee);
  border-radius: 2px;
}

h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Conteneur vidéo responsive avec facade */
.video-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(74, 158, 255, 0.3);
}

.video-container iframe {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16/9;
}

/* Facade vidéo pour lazy loading */
.video-facade {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 0, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.play-button:hover {
  background: rgba(255, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Grille de cartes */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 80px 0;
}

.card {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 70, 0.8) 0%,
    rgba(30, 30, 46, 0.9) 100%
  );
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 0 0 280px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

/* Backdrop filter uniquement sur desktop */
@media (min-width: 769px) {
  .card {
    backdrop-filter: blur(10px);
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a9eff, #7b68ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(74, 158, 255, 0.3);
  border-color: rgba(74, 158, 255, 0.3);
  will-change: transform;
}

.card-icon {
  font-size: 3em;
  margin-bottom: 20px;
  filter: grayscale(0.3);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.card:hover .card-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.card h3 {
  margin-bottom: 18px;
  color: #4a9eff;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.3;
}

.card p,
.card ul {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  font-size: 1em;
  color: #c8c8c8;
}

.card ul {
  padding-left: 20px;
  margin-top: 20px;
}

.card li {
  font-size: 0.95em;
  margin-bottom: 10px;
}

/* Cartes de niveaux */
.level-card {
  flex: 0 0 calc(50% - 15px);
  min-width: 300px;
}

.level-badge {
  display: inline-block;
  background: rgba(74, 158, 255, 0.2);
  color: #4a9eff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(74, 158, 255, 0.3);
}

.level-badge.premium {
  background: rgba(123, 104, 238, 0.2);
  color: #7b68ee;
  border-color: rgba(123, 104, 238, 0.3);
}

.level-badge.signature {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.card-description {
  font-style: italic;
  color: #b8b8b8;
  margin-bottom: 24px;
  font-size: 0.95em;
}

.price {
  font-size: 1.8em;
  font-weight: 800;
  color: #4a9eff;
  margin-top: 24px;
  text-align: center;
}

.highlighted {
  border: 2px solid rgba(123, 104, 238, 0.4);
  transform: scale(1.02);
}

.highlighted .price {
  color: #7b68ee;
}

/* Section intro */
.intro-section {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 70, 0.5) 0%,
    rgba(30, 30, 46, 0.6) 100%
  );
  border-radius: 20px;
  padding: 60px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.intro-highlight {
  font-size: 1.25em;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 40px auto;
  max-width: 750px;
}

.not-list {
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid #4a9eff;
}

.not-list h3 {
  color: #4a9eff;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.not-list ul {
  padding-left: 25px;
}

.warning-box {
  max-width: 750px;
  margin: 40px auto;
  padding: 25px 30px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
}

.warning-box p {
  color: #ffb3b3;
  margin: 0;
  font-weight: 500;
}

.suivi-section {
  max-width: 750px;
  margin: 50px auto;
  padding: 35px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.suivi-section h3 {
  color: #7b68ee;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.4em;
}

/* Section démarrer */
.start-section {
  text-align: center;
}

.highlight-box {
  max-width: 800px;
  margin: 40px auto;
  padding: 35px 40px;
  background: linear-gradient(
    135deg,
    rgba(74, 158, 255, 0.15) 0%,
    rgba(123, 104, 238, 0.15) 100%
  );
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(74, 158, 255, 0.2);
}

.highlight-box p {
  margin: 0;
  font-size: 1.15em;
  color: #fff;
}

.final-message {
  font-size: 1.2em;
  font-weight: 500;
  color: #e0e0e0;
  margin: 30px auto;
}

/* Bouton CTA avec effet premium */
.btn-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 18px 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-cta:hover::before {
  left: 100%;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 158, 255, 0.6);
  background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
}

.btn-cta:active {
  transform: translateY(-1px);
}

.btn-cta.large {
  padding: 22px 50px;
  font-size: 1.2em;
  margin-top: 50px;
}

/* Contact section */
.contact-info {
  background: linear-gradient(
    135deg,
    rgba(42, 42, 70, 0.6) 0%,
    rgba(30, 30, 46, 0.7) 100%
  );
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.95em;
  color: #aaa;
  margin: 80px 0 40px 0;
  padding: 30px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
  .level-card {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.8em;
  }

  .card {
    flex: 1 1 100%;
  }

  section {
    padding: 0 20px;
    margin: 80px auto 60px auto;
  }

  header {
    margin: 120px auto 60px auto;
  }

  .intro-section {
    padding: 40px 25px;
  }

  .video-container {
    margin: 30px auto;
  }

  /* Réduire les effets gourmands sur tablette */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.9em;
  }

  h2 {
    font-size: 1.5em;
  }

  nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  nav a {
    margin: 6px 12px;
    font-size: 0.9em;
  }

  section {
    margin-top: 60px;
  }

  section p,
  header p {
    font-size: 1em;
  }

  .btn-cta {
    padding: 16px 32px;
    font-size: 1em;
  }

  .btn-cta.large {
    padding: 18px 38px;
    font-size: 1.1em;
  }

  .card {
    padding: 28px;
  }

  .intro-highlight {
    font-size: 1.1em;
  }

  .not-list,
  .suivi-section {
    padding: 25px;
  }

  /* Désactiver les animations coûteuses sur mobile */
  .card:hover {
    transform: none;
  }

  * {
    animation-duration: 0s !important;
    transition-duration: 0.15s !important;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 22px;
  }
}
/* --- NOUVEAUX STYLES AJOUTÉS --- */

/* Groupe de boutons côte à côte */
.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Bouton secondaire (style contour) */
.btn-cta.btn-secondary {
  background: transparent;
  border: 2px solid #4a9eff;
  box-shadow: none;
}

.btn-cta.btn-secondary:hover {
  background: rgba(74, 158, 255, 0.1);
  box-shadow: 0 8px 25px rgba(74, 158, 255, 0.2);
}

/* Petit texte de prix sous le texte du bouton */
.price-tag {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 4px;
}

/* Style spécifique pour l'option Flash à 30€ */
.flash-option {
  border: 1px dashed #4a9eff !important;
  background: rgba(74, 158, 255, 0.05) !important;
}

.level-badge.flash {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Adaptation mobile pour les boutons */
@media (max-width: 600px) {
  .cta-group {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn-cta {
    width: 100%;
    max-width: 300px;
  }
}