:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-off-white: #f5f5f0;
  --color-light-gray: #e0e0e0;
  --color-dark-gray: #333333;
  --font-primary: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 0px;
  padding-top: 20px;
  position: relative;
}

.logo {
  max-width: 200px;
  margin-bottom: 15px;
}

h1 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Badge du miroir */
.mirror-badge {
  background-color: var(--color-off-white);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 12px;
  display: none;
  margin-top: 5px;
  border: 1px solid var(--color-light-gray);
  margin-bottom: 30px;
  
}

main {
  display: flex;
  justify-content: center;
  flex: 1;
  padding-bottom: 80px; /* Espace pour le bouton fixe */
}

.card {
  background-color: var(--color-off-white);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  width: 100%;
  max-width: 500px;
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-light-gray);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.step.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

.step-line {
  height: 2px;
  width: 60px;
  background-color: var(--color-light-gray);
  margin: 0 10px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 18px;
}

/* Choix de contact */
.contact-choice {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
}

.choice-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  background-color: var(--color-white);
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.choice-btn svg {
  width: 18px;
  height: 18px;
}

.choice-btn.active {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Formulaires */
.contact-form {
  display: none;
  margin-bottom: 10px;
}

.contact-form.active {
  display: block;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

/* Étiquettes flottantes */
.floating-label {
  position: absolute;
  left: 15px;
  top: 13px;
  color: #999;
  font-size: 14px;
  transition: all 0.2s;
  pointer-events: none;
  z-index: 1;
}

input:focus + .floating-label,
input:not(:placeholder-shown) + .floating-label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  background-color: var(--color-off-white);
  padding: 0 5px;
}

input[type="tel"],
input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  font-size: 16px;
  background-color: var(--color-white);
  transition: border-color 0.3s;
}

input[type="tel"]:focus,
input[type="email"]:focus,
input[type="text"]:focus {
  border-color: var(--color-black);
  outline: none;
}

small {
  display: block;
  color: #666;
  margin-top: 6px;
  font-size: 12px;
}

/* Zone de consentement */
.consent-area {
  margin-top: 15px;
  border-top: 1px solid var(--color-light-gray);
  padding-top: 15px;
}

.scroll-indicator {
  text-align: center;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-gray);
  font-size: 13px;
  font-weight: 500;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  margin-left: 5px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.terms-container {
  margin-bottom: 70px; /* Espace pour le bouton fixe */
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.terms-checkbox input {
  margin-right: 10px;
  margin-top: 5px;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
}

.terms-text {
  font-size: 13px;
  line-height: 1.4;
}

.terms-link {
  color: var(--color-black);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

/* Bouton fixe en bas */
.fixed-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.btn-primary {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  background-color: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  background-color: #333;
}

.btn-primary:active {
  transform: scale(0.98);
}

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 12px;
  margin-top: auto;
}

/* Style des modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.modal-content {
  background-color: var(--color-white);
  margin: 10% auto;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-light-gray);
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
}

.close-modal {
  color: #aaa;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--color-black);
}

.modal-body h3 {
  margin: 15px 0 10px 0;
  font-size: 16px;
  font-weight: 500;
}

.modal-body p {
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
}

/* Animation de transitions */
.fade-in {
  animation: fadeIn 0.3s;
}

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

/* État désactivé du bouton */
.btn-primary:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* Feedback visuel pour les champs avec erreur */
input.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
}

/* STYLES POUR LA PAGE DE SÉLECTION */

/* Information sur le contact */
.user-info {
  background-color: var(--color-off-white);
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--color-light-gray);
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.contact-icon {
  display: flex;
  align-items: center;
}

.contact-icon svg {
  color: var(--color-black);
}

.contact-type {
  font-weight: 500;
}

.contact-value {
  font-weight: 400;
  color: var(--color-dark-gray);
}

.btn-secondary {
  background-color: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-light-gray);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--color-white);
}

.btn-small {
  font-size: 12px;
  padding: 6px 10px;
}

/* Texte d'instructions */
.instruction-text {
  font-size: 14px;
  color: var(--color-dark-gray);
  text-align: center;
  margin-bottom: 20px;
  font-style: italic;
}

/* Actions du formulaire */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}

#selection-counter {
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s, color 0.2s;
}

#selection-counter.updated {
  color: var(--color-black);
  transform: scale(1.05);
}

/* Message de succès */
.success-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
}

.success-message svg {
  color: #4BB543;
  margin-bottom: 15px;
}

.success-message h3 {
  margin-bottom: 10px;
  font-weight: 500;
}

.success-message p {
  color: var(--color-dark-gray);
  max-width: 400px;
  margin: 0 auto;
}

/* Animation de chargement pour le bouton */
@keyframes button-loading {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-primary:disabled:not([disabled=""]) {
  background: linear-gradient(270deg, #333, #666, #333);
  background-size: 200% 200%;
  animation: button-loading 2s ease infinite;
  cursor: not-allowed;
}

/* Adaptation responsive */
@media (max-width: 768px) {
  .card {
    padding: 20px 15px;
    margin: 0 10px;
  }
  
  .step-line {
    width: 40px;
  }
  
  .modal-content {
    margin: 15% auto;
    padding: 20px;
    width: 95%;
  }
  
  .user-info {
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    font-size: xx-small;
  }

  .btn-small{
    font-size: xx-small;
  }
  
  #change-contact-btn {
    align-self: flex-end;
  }
  
  .form-actions {
    padding: 0 10px;
  }
}