/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Styles pour les pages One Fitness Club */
.ofc-page {
  min-height: 100vh;
  background-color: #000;
  color: #fff;
  position: relative;
}

.ofc-header {
  background-color: #262626;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ofc-logo {
  height: 3rem;
}

.ofc-nav {
  border-top: 1px solid #b8b8b8;
}

.ofc-nav-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  list-style: none;
}

.ofc-nav-link {
  color: #9ca3af;
  text-decoration: none;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.ofc-nav-link:hover {
  color: #fff;
}

.ofc-nav-link.active {
  color: #ef4444;
  border-bottom: 2px solid #ef4444;
}

.ofc-main {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
}

.ofc-footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

.ofc-footer-logo {
  height: 4rem;
  margin-bottom: 0.5rem;
}

.ofc-footer-text {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Styles pour la page de suspension */
.suspension-content {
  text-align: center;
  max-width: 32rem;
  padding: 6rem 0;
}

.suspension-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.suspension-message {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.btn-primary {
  background-color: #dc2626;
  color: #fff;
  font-weight: bold;
  padding: 1rem 3rem;
  font-size: 1.125rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #b91c1c;
}

/* Styles pour le formulaire */
.form-container {
  width: 672px;
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.form-label.error {
  color: #e63f49;
}

.form-input, .form-select {
  background-color: #262626;
  border: 1px solid #ef4444;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  width: 100%;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: #f87171;
}

.form-input.error, .form-select.error {
  border-color: #ef4444;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-civilite {
  width: 73.6667px;
  height: 48px;
}

.form-input-standard {
  width: 300px;
  height: 48px;
}

.form-input-full {
  width: 624px;
  height: 48px;
}

.form-input-date {
  width: 164.417px;
  height: 48px;
}

.phone-container {
  display: flex;
  width: 300px;
  height: 48px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  background-color: #262626;
  border: 1px solid #ef4444;
  border-right: 0;
  border-radius: 0.375rem 0 0 0.375rem;
  padding: 0 0.75rem;
}

.phone-input {
  flex: 1;
  border-left: 0;
  border-radius: 0 0.375rem 0.375rem 0;
}

.phone-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.date-container {
  position: relative;
}

.date-picker-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.date-picker-btn:hover {
  color: #fff;
}

.date-picker {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  width: 280px;
}

.date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.date-picker-nav {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s ease;
}

.date-picker-nav:hover {
  color: #fff;
}

.date-picker-month {
  color: #fff;
  font-weight: 500;
}

.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.date-picker-day-header {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  padding: 0.25rem;
}

.date-picker-day {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
  color: #fff;
  background: none;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.date-picker-day:hover {
  background-color: #dc2626;
}

.date-picker-clear {
  font-size: 0.875rem;
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.date-picker-clear:hover {
  color: #fff;
}

.error-message {
  text-align: center;
  color: #e63f49;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

.btn-submit {
  background-color: #dc2626;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 672px;
  height: 37px;
  margin-top: 2rem;
}

.btn-submit:hover {
  background-color: #b91c1c;
}

/* Styles pour les pages Payline */
.payline-page {
  min-height: 100vh;
  background-color: #f9fafb;
}

.payline-header {
  background-color: #fff;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.payline-logo {
  height: 2rem;
}

.payline-main {
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
}

.payline-footer {
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.payline-footer-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

/* Styles pour la page de chargement */
.loading-content {
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  width: 4rem;
  height: 4rem;
  border: 2px solid transparent;
  border-bottom: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1rem;
}

.loading-message {
  color: #6b7280;
}

/* Styles pour la page de paiement */
.payment-container {
  display: flex;
  gap: 3rem;
  max-width: 96rem;
  width: 100%;
}

.payment-form {
  flex: 1;
  max-width: 750px;
}

.payment-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2rem;
}

.card-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-logo {
  height: 2rem;
}

.payment-form-container {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.payment-form-group {
  margin-bottom: 1.5rem;
}

.payment-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.payment-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.payment-input:focus {
  outline: none;
  border-color: #2563eb;
}

.payment-input-icon {
  position: relative;
}

.payment-input-icon .payment-input {
  padding-right: 3rem;
}

.payment-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 1.25rem;
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6b7280;
}

.payment-help {
  font-size: 0.75rem;
  color: #2563eb;
  margin-top: 0.25rem;
  cursor: pointer;
  text-decoration: underline;
}

.payment-help:hover {
  color: #1d4ed8;
}

.btn-payment {
  width: 100%;
  background-color: #2563eb;
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-payment:hover {
  background-color: #1d4ed8;
}

.payment-cancel {
  text-align: center;
  margin-top: 1.5rem;
}

.payment-cancel-link {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: underline;
}

.payment-cancel-link:hover {
  color: #374151;
}

/* Message d'erreur pour le paiement */
.payment-error-message {
  text-align: center;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

.payment-input.error {
  border-color: #dc2626;
}

.payment-label.error {
  color: #dc2626;
}

/* Sidebar de commande */
.order-sidebar {
  width: 20rem;
}

.order-container {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.order-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.order-lock-icon {
  width: 1rem;
  height: 1rem;
  color: #6b7280;
  margin-right: 0.5rem;
}

.order-secure-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.order-details {
  font-size: 0.875rem;
}

.order-detail {
  margin-bottom: 0.75rem;
}

.order-label {
  color: #6b7280;
}

.order-value {
  color: #2563eb;
  font-weight: 500;
}

/* Styles pour la page de confirmation */
.confirmation-container {
  max-width: 32rem;
  width: 100%;
}

.confirmation-header {
  text-align: center;
  margin-bottom: 3rem;
}

.confirmation-icon {
  width: 4rem;
  height: 4rem;
  color: #10b981;
  margin: 0 auto 1.5rem;
}

.confirmation-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1rem;
}

.confirmation-message {
  color: #6b7280;
}

.confirmation-summary {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 2rem;
}

.confirmation-summary-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.confirmation-details {
  margin-bottom: 2rem;
}

.confirmation-detail {
  margin-bottom: 1rem;
}

.confirmation-detail-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.confirmation-detail-value {
  color: #1f2937;
  font-weight: 500;
}

.confirmation-phone {
  display: flex;
  align-items: center;
}

.confirmation-phone-flag {
  margin-right: 0.5rem;
}

.confirmation-phone-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.confirmation-order {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.875rem;
}

.confirmation-order-label {
  color: #6b7280;
}

.confirmation-order-number {
  font-weight: 500;
  color: #2563eb;
}

.confirmation-order-amount {
  font-weight: 500;
  color: #10b981;
}

/* Gestion des pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .form-container {
    width: 100%;
    max-width: 500px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-input-standard,
  .form-input-full,
  .btn-submit {
    width: 100%;
  }
  
  .phone-container {
    width: 100%;
  }
  
  .payment-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .order-sidebar {
    width: 100%;
  }
}