/* =============================
   PAGE D'ACCUEIL : HERO SECTION
   ============================= */

/* ----- Conteneur principal du hero ----- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  overflow: hidden;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* ----- Vidéo de fond du hero ----- */
.hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* Remplit et conserve proportions */
  z-index: 0;                /* Sous le contenu */
}

/* ----- Overlay semi-transparent sur la vidéo ----- */
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* Assombrit la vidéo */
  z-index: 1;
}

/* ----- Bloc central du texte/logo/bouton ----- */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
  width: 100%;
  max-width: 1400px;
}

/* ----- Logo central ----- */
.hero-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}

.hero-title{
  margin: 0;
  font-size: clamp(1.65rem, 1.35rem + 0.9vw, 2.3rem);
  line-height: 1.12;
  color: #fff;
  max-width: 880px;
}

.hero-title span{
  color: #00AEEF;
  font-weight: 700;
}

.hero-login-link{
  margin-top: 0.35rem;
}

.hero-login-link a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 221, 87, 0.35);
  background: rgba(255, 221, 87, 0.08);
  color: #ffdd57;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  transition: 
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-login-link a:hover{
  color: #111;
  background: #ffdd57;
  border-color: #ffdd57;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 221, 87, 0.28);
}

/* ----- Bouton principal HERO ----- */
.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: clamp(0.85rem, 0.9rem + 0.2vw, 1rem)
           clamp(1.4rem, 1.2rem + 0.8vw, 2rem);
  border-radius: 0.7rem;

  font-weight: 700;
  font-size: var(--fs-body);

  background: linear-gradient(
    90deg,
    #ffdd57,
    #ffbb00
  );

  color: #111;
  border: none;
  text-decoration: none;
  cursor: pointer;

  box-shadow:
    0 8px 22px rgba(255, 187, 0, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}



/* ----- Responsive mobile (logo & bouton plus petits) ----- */
@media (max-width: 600px) {
  .hero-logo {
    max-width: 200px;
  }
  .btn-main {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* =============================
   Animations HERO
   ============================= */

/* ----- Animation d'entrée du logo (vers le bas) ----- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Animation d'entrée du bouton (vers le haut) ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ----- Animation d'entrée du bouton ghost (depuis la droite) ----- */
@keyframes heroGhostSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ----- Applique l'animation sur le logo ----- */
.hero-logo {
  animation: fadeInDown 1s ease-out 0.2s forwards; /* Délai 0.2s */
  opacity: 0;
}

/* ----- Applique l'animation sur le bouton principal ----- */
.btn-main {
  animation: fadeInUp 1s ease-out 0.6s forwards;   /* Délai 0.6s */
  opacity: 0;
}


/* =============================
   HOME PAGE SECTIONS
   ============================= */

.home-main {
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 174, 239, 0.30), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(229, 53, 171, 0.25), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(0, 112, 243, 0.28), transparent 55%),
    #05060a;
}

/* Section générique */
.home-section {
  padding: clamp(3.4rem, 5vw, 5.5rem) 0;
  color: var(--color-text);
  position: relative;
}

/* Alternance légère de fond si tu veux
.home-section:nth-of-type(even) {
  background: #06070a;
}
*/

/* Titres de section */
.home-section-title {
  margin-bottom: 0.4rem;
}

.home-section-subtitle {
  margin-bottom: 2rem;
}




/* =============================
   FEATURES GRID
   ============================= */

.home-features {
  padding-top: clamp(2.5rem, 3vw, 4rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.2vw, 1.8rem);
  margin-top: clamp(1.6rem, 2vw, 2.5rem);
}

.feature-card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 1rem;
  padding: clamp(1.15rem, 1vw, 1.7rem);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,174,239,0.6);
  box-shadow: 0 12px 30px rgba(0,174,239,0.2);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,174,239,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  color: #00AEEF;
}

.feature-card h3 {
  font-size: clamp(0.95rem, 0.92rem + 0.18vw, 1.05rem);
  margin-bottom: 0.6rem;
}



/* =============================
   ANIMATION NEON
   ============================= */

@keyframes pricingNeonPulse {
  0% {
    box-shadow:
      0 0 10px rgba(255, 221, 87, 0.25),
      0 0 22px rgba(255, 187, 0, 0.18),
      inset 0 0 0 1px rgba(255, 221, 87, 0.25);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255, 221, 87, 0.45),
      0 0 42px rgba(255, 187, 0, 0.35),
      inset 0 0 0 1px rgba(255, 221, 87, 0.5);
  }
  100% {
    box-shadow:
      0 0 10px rgba(255, 221, 87, 0.25),
      0 0 22px rgba(255, 187, 0, 0.18),
      inset 0 0 0 1px rgba(255, 221, 87, 0.25);
  }
}


/* =============================
   MODES : PHYSIQUE / CLOUD
   ============================= */
.home-modes {
  padding-top: clamp(2.5rem, 3vw, 4rem);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 1.5vw, 2rem);
  margin-top: clamp(1.6rem, 2vw, 2.5rem);
}

.mode-card {
  background: radial-gradient(circle at top left, rgba(0,174,239,0.18), rgba(0,0,0,0.85));
  border-radius: 1.3rem;
  padding: clamp(1.2rem, 1.4vw, 2rem);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.mode-card-cloud {
  background: radial-gradient(circle at top right, rgba(229,53,171,0.2), rgba(0,0,0,0.85));
}

.mode-card-note{
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.mode-card h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.35vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  color: #ffffff;
}

.mode-card p {
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.mode-card li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.55rem;
  list-style: none;
  color: #e9edf2;
  font-size: 1rem;
  line-height: 1.5;
}

.mode-card ul {
  list-style: none;
  padding-left: 0;
}

.mode-card li::before {
  content: none;
}


/* =============================
   BOUTON GHOST (secondaire)
   ============================= */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 0.85rem + 0.2vw, 0.95rem)
           clamp(1.3rem, 1.1rem + 0.7vw, 1.8rem);
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-size: var(--fs-body);
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover {
  background-color: rgba(0,0,0,0.6);
  border-color: var(--color-primary-dark);
  color: #fff;
}
/* Animation spécifique au bouton "Découvrir la plateforme" dans le hero */
.hero-cta .btn-ghost {
  opacity: 0; /* point de départ : invisible */
  animation: heroGhostSlideIn 0.9s ease-out 0.9s forwards;
  /* 0.9s = durée, 0.9s = délai (après le bouton bleu) */
}

/* =============================
   HOME COURTE — AJOUTS
   ============================= */

.feature-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-value,
.home-targets {
  padding-top: clamp(3rem, 4vw, 4.5rem);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.home-modes .home-section-subtitle,
.home-studio .home-section-subtitle,
.home-pricing .home-section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-divider {
  width: 100%;
  height: 1px;
  margin: 1.4rem 0 1.2rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.16),
    transparent
  );
}

.pricing-mini-contact {
  margin-top: 1rem;
}

.pricing-contact-link {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.92rem;
}

.pricing-contact-link:hover {
  color: #fff;
}

@media (max-width: 992px) {
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
}


/* =============================
   HERO TEXTES SUPPLÉMENTAIRES
   ============================= */

.hero-tagline {
  font-size: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
  color: #f5f5f7;
  max-width: 620px;
  text-align: center;
  line-height: 1.5;
}

.hero-tagline span {
  color: #00AEEF;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* aligne verticalement les deux boutons */
}

.hero-subtext {
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 480px;
  text-align: center;
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 992px) {
  .home-intro-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .home-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
  padding: 4rem 0;
}
  .home-title {
    font-size: 2rem;
  }

  .home-cta-inner {
    padding: 2rem 1.5rem;
  }
}

/* Variante bleue pour DEMO */
.btn-demo-blue {
  background: linear-gradient(
    90deg,
    #0070f3,
    #00AEEF
  );

  color: #ffffff;

  box-shadow:
    0 8px 22px rgba(0, 174, 239, 0.35);
}

.btn-demo-blue:hover {
  box-shadow:
    0 12px 35px rgba(0, 174, 239, 0.55);

  filter: brightness(1.05);
}


/* =============================
   BOUTON REMONTER EN HAUT
   ============================= */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #f5f7ff 45%, #e5ecff 100%);
  color: #0070f3;                               /* icône bleu */
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.55);  /* halo bleu brillant */
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.2s ease,
              background 0.2s ease,
              color 0.2s ease;
}

/* état visible */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover : encore plus glossy + halo renforcé */
.back-to-top:hover {
  background: radial-gradient(circle at 30% 15%, #ffffff 0%, #f8f9ff 40%, #dde7ff 100%);
  color: #ffffff; /* icône blanche au survol */
  box-shadow: 0 8px 22px rgba(0, 174, 239, 0.75);
}


/* pour éviter que l’icône intercepte le clic */
.back-to-top i {
  pointer-events: none;
}




/* =============================
   ABONNEMENT – OFFRE STARTER
   ============================= */

.pricing-single {
  text-align: center;
}

.home-pricing .container {
  max-width: 900px;
}


/* ---- BADGE ---- */
.starter-badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255, 221, 87, 0.15);
  border: 1px solid rgba(255, 221, 87, 0.55);
  color: #ffdd57;
}

/* ---- TITRE ---- */
.starter-card h3 {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.35rem);
  margin-bottom: 1rem;
}

/* ---- PRIX ---- */
.starter-price {
  font-size: clamp(1.9rem, 1.55rem + 1vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 0.2rem;
}

.starter-price span {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.65;
  margin-left: 0.3rem;
}

.starter-price-year {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 2.2rem;
}

/* ---- FEATURES ---- */
.starter-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.4rem;
  text-align: left;
}

.starter-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: #e4e7eb;
}

.starter-features li::before {
  content: "✓";
  color: #00c6ff;
  font-weight: 700;
}

/* ---- CTA ---- */
.btn-starter {
  width: 100%;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  padding: clamp(0.95rem, 0.9rem + 0.5vw, 1.2rem);
}

/* ---- NOTE ---- */
.starter-note {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  opacity: 0.6;
}


/* =============================
   HOVER PREMIUM — STARTER CARD
   ============================= */

.starter-card {
  padding: clamp(1.4rem, 1.5vw, 2.4rem);
  border-radius: 1.6rem;

  background: linear-gradient(
    110deg,
    rgba(255, 187, 0, 0.12),
    rgba(0, 0, 0, 0.92)
  );

  border: 1px solid rgba(255, 221, 87, 0.35);

  box-shadow:
    0 0 12px rgba(255, 221, 87, 0.25),
    0 0 28px rgba(255, 187, 0, 0.18),
    inset 0 0 0 1px rgba(255, 221, 87, 0.25);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}


.starter-card:hover {
  transform: translateY(-8px);

  box-shadow:
    0 0 22px rgba(255, 221, 87, 0.6),
    0 0 35px rgba(255, 187, 0, 0.28),
    inset 0 0 0 1px rgba(255, 221, 87, 0.55);
}

/* Badge un peu plus vivant au hover */
.starter-card:hover .starter-badge {
  box-shadow: 0 0 20px rgba(255,221,87,0.35);
}

/* CTA légèrement renforcé au hover */
.starter-card:hover .btn-starter {
  box-shadow: 0 10px 30px rgba(0,174,239,0.45);
  transform: translateY(-1px);
}




/* =============================
   HERO — RETOUR ACCUEIL
   ============================= */

.hero-back-home {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 10;

  width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.45);

  color: #ffffff;
  font-size: 2rem;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  cursor: pointer;
  transition: 
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-back-home:hover {
  background: rgba(0,174,239,0.85);
  border-color: rgba(0,174,239,1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,174,239,0.45);
}

/* Empêche l’icône d’intercepter le clic */
.hero-back-home i {
  pointer-events: none;
}

/* =============================
   SUBSCRIBE – AJUSTEMENT FIN DES ESPACES
   ============================= */

/* 1️⃣ Réduit l’espace avant le titre */
#step-infos {
  padding-top: 0.5rem;        /* au lieu de 4rem global */
}

/* 2️⃣ Titre plus compact vers le haut */
#step-infos .home-section-title {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

/* 3️⃣ Sous-titre mieux respirant */
#step-infos .home-section-subtitle {
  margin-bottom: 2.2rem;   /* PLUS d’espace avant la carte */
}

/* 4️⃣ Carte descend légèrement */
#step-infos .starter-card {
  margin-top: 0;
}

/* ==========================================
   FIX SELECT DANS .starter-card (gradient)
   ========================================== */

/* ==========================================
   SELECT DANS STARTER-CARD (FINAL)
   ========================================== */

.starter-card select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 14px;
  border-radius: 8px;

  background-color: #1a1d22;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23e0e5ed'>\
<path d='M5.5 7.5l4.5 4.5 4.5-4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;

  color: #e0e5ed;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.starter-card select:focus {
  outline: none;
  border-color: #00AEEF;
}


/* =============================
   SUBSCRIBE – GRILLE FORMULAIRE
   ============================= */
#step-cta {
  min-height: 30vh;
  display: flex;
  align-items: center;
}

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Titre de chaque bloc */
.subscribe-block .subscribe-block-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

/* Ligne double */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Form groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .subscribe-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* =============================
   SUBSCRIBE – FORMULAIRE
   ============================= */
.subscribe-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

/* Groupe champ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

/* Label */
.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.25rem;
}

/* =============================
   CHAMPS FORMULAIRE SUBSCRIBE
   (COPIE DU COMPORTEMENT param.css)
   ============================= */

/* INPUT + SELECT (champ fermé) */
#xperium-subscribe-form input,
#xperium-subscribe-form select,
#xperium-subscribe-demo-form input,
#xperium-subscribe-demo-form select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background-color: #1a1d22;
  color: #e0e5ed;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

/* Placeholder */
#xperium-subscribe-form input::placeholder {
  color: #7d8696;
}

/* SELECT – reset minimal (PAS de magie) */
#xperium-subscribe-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
  padding-right: 42px;

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23e0e5ed'>\
<path d='M5.5 7.5l4.5 4.5 4.5-4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}

/* Focus */
#xperium-subscribe-form input:focus,
#xperium-subscribe-form select:focus,
#xperium-subscribe-demo-form input:focus,
#xperium-subscribe-demo-form select:focus {
  outline: none;
  border-color: #00AEEF;
}

.xp-subscribe-form input[readonly]:focus {
    outline: none !important;
    border-color: #ccc !important; /* Garde la couleur de bordure normale */
    box-shadow: none !important;   /* Supprime l'ombre bleue (glow) */
    background-color: #f9f9f9;     /* Optionnel : un fond légèrement grisé */
}

#pricing-detail-main{
  opacity:.95;
  font-size:1rem;
  font-weight: 800;
  color: #fff;
}


#pricing-detail-main strong{
  font-weight: 800;
  color: #fff;
}
/* =============================
   SUBSCRIBE — ERREURS FORM
   ============================= */

/* Message global */
#subscribe-error,
#subscribe-demo-error {
  display: none;
  background: #2a0f14;
  border: 1px solid #ff6b6b;
  color: #ffbcbc;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(255, 80, 80, 0.35);
}


/* Groupe en erreur */
.form-group.group-error {
  padding: 0.4rem;
  border-radius: 12px;
  background: rgba(255, 50, 50, 0.08);
}

/* Champ en erreur */
#xperium-subscribe-form input.field-error,
#xperium-subscribe-form select.field-error,
#xperium-subscribe-demo-form input.field-error,
#xperium-subscribe-demo-form select.field-error {
  border: 2px solid #ff6b6b !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.35) !important;
  background-color: #1e0f12 !important;
}

/* Message sous le champ */
.field-message {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #ff9c9c;
}


/* =============================
   SUBSCRIBE — ERREURS CHAMP (FINAL)
   ============================= */

/* Encadre tout le groupe */
.form-group.group-error {
  padding: 0.4rem;
  border-radius: 12px;
  background: rgba(255, 50, 50, 0.08);
}

/* Input vraiment visible */
#xperium-subscribe-form input.field-error,
#xperium-subscribe-form select.field-error {
  border: 2px solid #ff6b6b !important;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.35) !important;
  background-color: #1e0f12 !important;
}

/* =============================
   INPUT AUTOFILL — FIX COMPLET
   ============================= */

#xperium-subscribe-form input:-webkit-autofill,
#xperium-subscribe-form input:-webkit-autofill:hover,
#xperium-subscribe-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;

  -webkit-box-shadow: 0 0 0 1000px #1a1d22 inset !important;
  box-shadow: 0 0 0 1000px #1a1d22 inset !important;

  border: 1px solid rgba(255,255,255,0.12) !important;

  transition: background-color 9999s ease-in-out 0s;
}

/* =============================
   PASSWORD WRAPPER
   ============================= */

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3rem; /* place pour l’icône */
}

/* Icône œil */
.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);

  background: none;
  border: none;
  cursor: pointer;

  font-size: 1.15rem;
  color: #9aa4b2;

  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-wrapper .toggle-password:hover {
  color: #ffffff;
}

/* Si champ en erreur */
.password-wrapper input.field-error + .toggle-password {
  color: #ff6b6b;
}


/* Bouton paiement */
.subscribe-form .btn-main {
  margin-top: 1.2rem;
}
/* =============================
   HERO – SCROLL INDICATOR (ASSERTIF)
   ============================= */

.hero-scroll-indicator {
  font-size: 2.4rem;              /* PLUS GRAND */
  color: #ffffff;                /* CONTRASTE MAX */
  cursor: pointer;
  opacity: 0.85;
  animation: heroScrollBounce 1.6s ease-in-out infinite;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateY(4px);
}
.section-scroll-indicator {
  position: relative;
  margin: 2.5rem auto 0;
  display: flex;
  justify-content: center;

  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.section-scroll-indicator i {
  font-size: 1.8rem;
}

.section-scroll-indicator:hover {
  opacity: 1;
  transform: translateY(4px);
}

/* Animation franche, pas molle */
@keyframes heroScrollBounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(10px); }
  60%  { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* =============================
   VIGNETTE MODE LOCAL / CLOUD
   ============================= */

.xperium-mode-note {
  position: relative;
  display: inline-block;      /* largeur adaptée au contenu */
  margin: 2rem auto;
  max-width: 100%;            /* supprime la largeur fixe */

  padding: 1.2rem 1.5rem;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    rgba(0,174,239,0.18),
    rgba(0,0,0,0.75)
  );

  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);

  color: #e6e9ef;
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-modes .container {
  text-align: center;
}


/* Titre */
.xperium-mode-note strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fe3ff;
}

/* Texte */
.xperium-mode-note p {
  margin: 0;
  color: #e4e7eb;
}

.xperium-mode-note b {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
  .xperium-mode-note {
    font-size: 0.9rem;
    padding: 1rem 1.1rem;
  }
}


/* =============================
   STUDIO COURT — FIX ALIGNEMENT
   ============================= */

.studio-short-card {
  text-align: center;
}

.studio-short-card .home-section-title,
.studio-short-card .home-section-subtitle,
.studio-short-card .studio-short-note {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.studio-short-card .home-section-title {
  max-width: 900px;
}

.studio-short-card .home-section-subtitle {
  max-width: 900px;
}

.studio-short-card .studio-short-note {
  max-width: 900px;
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
}

.studio-short-card .studio-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}


@media(max-width: 900px){
  .studio-preview-grid{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* =============================
   RÉCAPITULATIF TARIF
   ============================= */

.pricing-summary {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(255,255,255,0.18);
  text-align: center;
}

.pricing-total-line {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #e4e7eb;
}

.pricing-total-line strong {
  font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.45rem);
  font-weight: 800;
  color: #00AEEF;
}

.pricing-monthly {
  margin-left: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

.pricing-detail-main {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

.pricing-detail-gpu {
  font-size: 0.85rem;
  opacity: 0.65;
  margin-top: 0.25rem;
}


/* =============================
   SUBSCRIBE — TOGGLE PERIODICITE
   ============================= */
.xp-billing{
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

.xp-billing-title{
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.85rem;
}

.xp-billing-toggle{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.xp-billing-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xp-billing-toggle label{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0.75rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  transition: color .2s ease, transform .2s ease;
  user-select: none;
  line-height: 1.1;
}

.xp-billing-toggle label span{
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  color: rgba(255,255,255,0.65);
}

.xp-billing-pill{
  position: absolute;
  inset: 0;
  width: 50%;
  border-radius: 999px;
  z-index: 1;
  transform: translateX(0%);
  transition: transform .25s ease;
  background: linear-gradient(90deg, rgba(0,174,239,0.85), rgba(0,112,243,0.75));
  box-shadow: 0 10px 28px rgba(0,174,239,0.35);
}

/* Position du pill quand trimestriel sélectionné */
#bill-quarter:checked ~ .xp-billing-pill{
  transform: translateX(100%);
}

/* Texte plus blanc quand actif */
#bill-year:checked + label,
#bill-quarter:checked + label{
  color: #ffffff;
}

/* Petit effet premium au survol */
.xp-billing-toggle label:hover{
  transform: translateY(-1px);
  color: #ffffff;
}

.xp-billing-note{
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}



@media (max-width: 1600px) and (min-width: 993px) {
  .hero {
    padding: 3rem 1.1rem;
  }

  .hero-content {
    gap: 1.15rem;
    max-width: 1100px;
  }

  .hero-logo {
    max-width: 210px;
  }

.hero-title {
  font-size: 1.65rem;
  max-width: 680px;
}

  .hero-tagline {
    font-size: 0.98rem;
    max-width: 520px;
  }

  .hero-subtext {
    font-size: 0.8rem;
  }

  .hero-back-home {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    top: 1.25rem;
    right: 1.25rem;
  }

  .btn-main,
  .btn-ghost {
    font-size: 0.88rem;
  }

  .home-intro-grid,
  .studio-preview-grid {
    gap: 1.7rem;
  }

  .feature-grid,
  .modes-grid,
  .steps-grid {
    gap: 1rem;
    margin-top: 1.35rem;
  }

  .home-highlight-card,
  .feature-card,
  .mode-card,
  .step-item,
  .studio-preview-card,
  .starter-card,
  .pricing-callout {
    border-radius: 0.95rem;
  }

  .home-highlight-card,
  .feature-card,
  .mode-card,
  .step-item,
  .studio-preview-card {
    padding: 1rem;
  }

  .starter-card,
  .pricing-callout {
    padding: 1.1rem 1.2rem;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
  }

  .feature-card h3,
  .studio-preview-block h3,
  .mode-card h3,
  .home-highlight-card h2 {
    font-size: 1rem;
  }

  .pricing-callout {
    margin-top: 2.2rem;
  }

  .pricing-callout p {
    font-size: 1rem;
  }

  .pricing-callout-badge {
    font-size: 0.76rem;
  }

  .starter-card h3 {
    font-size: 1.15rem;
  }

  .starter-price {
    font-size: 2.2rem;
  }

  .starter-features li {
    font-size: 0.84rem;
    margin-bottom: 0.5rem;
  }

  .btn-starter {
    font-size: 0.96rem;
    padding: 0.9rem;
  }

  .xp-billing {
    padding: 0.9rem 1rem;
  }

  .xp-billing-toggle label {
    font-size: 0.82rem;
    padding: 0.55rem 0.4rem;
  }

  .xp-billing-toggle label span {
    font-size: 0.64rem;
  }

  .pricing-total-line {
    font-size: 0.92rem;
  }

  .pricing-total-line strong {
    font-size: 1.2rem;
  }

  .pricing-detail-main {
    font-size: 0.82rem;
  }

  .pricing-detail-gpu {
    font-size: 0.76rem;
  }

  .back-to-top {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1rem;
    right: 0.9rem;
    bottom: 0.9rem;
  }
}

/* =============================
   HOME REWORK — CTA / VIDEO / PRIX DISCRET
   ============================= */

.hero-cta-3 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 1.5rem;
}

.hero-cta-3 > a {
  flex: 1 1 0;
  min-width: 0;
  max-width: 360px;
  white-space: nowrap;
}

.btn-visio {
  border-color: rgba(0,174,239,0.55);
  color: #8fe3ff;
}

.btn-visio:hover {
  background: rgba(0,174,239,0.14);
  border-color: rgba(0,174,239,0.95);
  color: #ffffff;
}

.hero-cta-meta {
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 0.75rem;
  line-height: 1.25;
}

.hero-cta-meta-sep {
  opacity: 0.45;
  margin: 0 0.45rem;
}

@media (max-width: 1200px) {
  .hero-cta-3 {
    flex-wrap: wrap;
  }

  .hero-cta-3 > a {
    flex: 0 1 420px;
    max-width: none;
    white-space: normal;
  }
}

/* ===== BLOC VIDEO DEMO ===== */

.home-demo-video {
  padding-top: clamp(3rem, 4vw, 4.5rem);
}

.demo-video-card {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.2rem, 1.5vw, 2rem);
  border-radius: 1.4rem;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
}

.demo-video-head {
  text-align: center;
  margin-bottom: 1.4rem;
}

.demo-video-head .home-section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.demo-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}

.demo-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
}

.demo-video-cta {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== 3 COLONNES ===== */

.feature-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-value,
.home-targets {
  padding-top: clamp(3rem, 4vw, 4.2rem);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ===== STUDIO COURT ===== */

.studio-short-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.5rem, 2vw, 2.2rem);
  border-radius: 1.25rem;
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(10,15,25,0.92),
    rgba(0,0,0,0.96)
  );
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
}

.studio-short-card .home-section-title,
.studio-short-card .home-section-subtitle,
.studio-short-card .studio-short-note {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.studio-short-card .home-section-subtitle {
  max-width: 860px;
}

.studio-short-note {
  max-width: 860px;
  margin-top: 0.6rem;
  margin-bottom: 1.4rem;
  color: var(--color-muted);
}

.studio-short-card .studio-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

/* ===== PRIX DISCRET ===== */

.home-access-compact {
  padding-top: clamp(3rem, 4vw, 4rem);
}

.access-compact-card {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.2rem, 1.4vw, 1.7rem);
  border-radius: 1.2rem;
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.38);
  text-align: center;
}

.access-compact-top .home-section-title {
  margin-bottom: 0.45rem;
}

.access-compact-top .home-section-subtitle {
  max-width: 760px;
  margin: 0 auto 1.3rem;
}

.access-compact-top strong {
  color: #ffdd57;
  font-weight: 800;
}

.access-compact-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-subtext-inline {
    gap: 0.25rem;
    font-size: 0.82rem;
  }

  .hero-subtext-sep {
    display: none;
  }

  .demo-video-card,
  .studio-short-card,
  .access-compact-card {
    padding: 1rem;
  }

  .demo-video-cta,
  .access-compact-actions {
    flex-direction: column;
  }

  .demo-video-cta .btn-main,
  .demo-video-cta .btn-ghost,
  .access-compact-actions .btn-main,
  .access-compact-actions .btn-ghost {
    width: 100%;
  }
}
