/* ===== PAGE THANK YOU ===== */
.nn-thankyou-page { padding-bottom: 0; }

/* THANK YOU TRANSITION OVERLAY */
.nn-thankyou-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0032FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.8s ease;
}

.nn-thankyou-transition.is-exit {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.nn-thankyou-transition-logo {
  width: min(56vw, 360px);
  height: auto;
  opacity: 1;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  filter: drop-shadow(0 10px 36px rgba(255, 255, 255, 0.25));
  animation: nn-thankyou-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nn-thankyou-transition-message {
  text-align: center;
}

.nn-thankyou-transition-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.nn-thankyou-transition-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0.06em;
  color: #fff;
}

/* HERO */
.nn-thankyou-hero {
  background: #0032FF;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 400px;
  margin-left: -64px;
  padding-left: 128px;
}

@media (max-width: 1024px) {
  .nn-thankyou-hero {
    margin-left: -56px;
    padding-left: 96px;
  }
}

@media (max-width: 768px) {
  .nn-thankyou-hero {
    margin-left: 0;
    padding-left: 48px;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .nn-thankyou-hero {
    padding-left: 24px;
  }
}
}

.nn-thankyou-hero-content {
  position: relative;
  z-index: 2;
}

.nn-thankyou-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.nn-thankyou-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #fff;
  line-height: 0.9;
  margin-bottom: 24px;
}

.nn-thankyou-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  max-width: 300px;
}

.nn-thankyou-hero-shapes {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 300px;
  justify-content: flex-end;
}

.nn-thankyou-hero-shapes .blob {
  background: rgba(255,255,255,0.15);
}

/* INFOS COMMANDE */
.nn-thankyou-infos {
  background: #f5f5f5;
  padding: 48px 64px;
  margin-left: -64px;
  padding-left: 128px;
}

@media (max-width: 1024px) {
  .nn-thankyou-infos {
    margin-left: -56px;
    padding-left: 96px;
  }
}

@media (max-width: 768px) {
  .nn-thankyou-infos {
    margin-left: 0;
    padding: 32px 24px;
  }

  .nn-thankyou-infos-grid {
    grid-template-columns: 1fr;
  }
}

.nn-thankyou-infos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.nn-thankyou-info-block {
  border-left: 2px solid #0032FF;
  padding-left: 20px;
}

.nn-thankyou-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #0032FF;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nn-thankyou-info-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: #000;
  letter-spacing: 0.05em;
}

.nn-thankyou-total {
  color: #0032FF;
  font-size: 1.5rem;
}

/* SECTIONS */
.nn-thankyou-section {
  padding: 64px;
}

.nn-thankyou-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #0032FF;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0032FF;
}

/* ITEMS BILLETS */
.nn-thankyou-items {
  border: 2px solid #0032FF;
  overflow: hidden;
  margin-bottom: 0;
}

.nn-thankyou-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.nn-thankyou-item:last-child { border-bottom: none; }

.nn-thankyou-item-tag {
  background: #0032FF;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  flex-shrink: 0;
}

.nn-thankyou-item-info {
  flex: 1;
}

.nn-thankyou-item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 2px;
}

.nn-thankyou-item-qty {
  font-size: 12px;
  color: #999;
}

.nn-thankyou-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: #0032FF;
}

.nn-thankyou-total-line {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  background: #0032FF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.1em;
}

/* ÉTAPES */
.nn-thankyou-steps {
  background: #0032FF;
  padding: 64px;
  margin-left: -64px;
  padding-left: 128px;
}

@media (max-width: 1024px) {
  .nn-thankyou-steps {
    margin-left: -56px;
    padding-left: 96px;
  }
}

@media (max-width: 768px) {
  .nn-thankyou-steps {
    margin-left: 0;
    padding: 32px 24px;
  }

  .nn-thankyou-steps-grid {
    grid-template-columns: 1fr;
  }
}

.nn-thankyou-steps .nn-thankyou-section-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
}

.nn-thankyou-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.nn-thankyou-step {
  border-left: 2px solid rgba(255,255,255,0.3);
  padding-left: 24px;
}

.nn-thankyou-step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.nn-thankyou-step h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.nn-thankyou-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* CTA */
.nn-thankyou-cta {
  padding: 64px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.nn-thankyou-btn-blue {
  display: inline-block;
  background: #0032FF;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 18px 40px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nn-thankyou-btn-blue:hover { opacity: 0.85; color: #fff; }

.nn-thankyou-btn-outline {
  display: inline-block;
  background: #fff;
  color: #0032FF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  padding: 16px 40px;
  text-decoration: none;
  border: 2px solid #0032FF;
  transition: all 0.2s;
}

.nn-thankyou-btn-outline:hover {
  background: #0032FF;
  color: #fff;
}

@media (max-width: 1024px) {
  .nn-thankyou-hero {
    padding: 60px 48px;
    padding-left: 96px;
    min-height: 350px;
  }

  .nn-thankyou-title {
    font-size: 4rem;
  }

  .nn-thankyou-subtitle {
    max-width: 250px;
  }

  .nn-thankyou-hero-shapes {
    right: 48px;
  }
}

@media (max-width: 768px) {
  .nn-thankyou-transition {
    gap: 18px;
    padding: 24px;
  }

  .nn-thankyou-transition-logo {
    width: min(78vw, 280px);
  }

  .nn-thankyou-transition-label {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .nn-thankyou-hero {
    padding: 40px 24px;
    padding-left: 48px;
    margin-left: 0;
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .nn-thankyou-hero-content {
    max-width: 100%;
  }

  .nn-thankyou-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }

  .nn-thankyou-subtitle {
    font-size: 12px;
    max-width: 100%;
  }

  .nn-thankyou-hero-shapes {
    display: none;
  }

  .nn-thankyou-content {
    padding: 32px 24px;
  }

  .nn-thankyou-box {
    padding: 20px;
  }

  .nn-thankyou-details-grid {
    grid-template-columns: 1fr;
  }

  .nn-thankyou-detail {
    grid-template-columns: 100px 1fr;
    gap: 16px;
  }

  .nn-thankyou-detail-title {
    font-size: 0.9rem;
  }

  .nn-thankyou-action {
    flex-direction: column;
  }

  .nn-thankyou-action a,
  .nn-thankyou-action button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nn-thankyou-transition {
    gap: 14px;
  }

  .nn-thankyou-transition-title {
    font-size: 2rem;
  }

  .nn-thankyou-hero {
    padding: 30px 16px;
  }

  .nn-thankyou-title {
    font-size: 1.8rem;
  }

  .nn-thankyou-label {
    font-size: 9px;
  }

  .nn-thankyou-content {
    padding: 24px 16px;
  }

  .nn-thankyou-box {
    padding: 16px;
    margin-bottom: 16px;
  }

  .nn-thankyou-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@keyframes nn-thankyou-draw {
  0% {
    opacity: 1;
    stroke-dashoffset: 1200;
    transform: scale(0.84);
  }
  55% {
    opacity: 1;
    stroke-dashoffset: 300;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
    transform: scale(1.04);
  }
}