/* Styles personnalisés pour la page d'inscription concessionnaire */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #fb8c00;
  --primary-gradient: linear-gradient(135deg, #fb8c00 0%, #ffa726 100%);
  --text-main: #344767;
  --text-muted: #7b809a;
  --border-color: #e9ecef;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: var(--text-main);
  margin: 0;
  overflow-x: hidden;
}

/* Layout Principal */
.signup-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Panneau Gauche (Image/Info) */
.signup-left {
  width: 40%;
  max-width: 600px;
  background: var(--primary-gradient);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  color: white;
  text-align: center;
  z-index: 1;
  /* L'image de fond sera gérée par JS ou style inline pour le random */
  background-size: cover;
  background-position: center;
}

/* Overlay sombre pour lisibilité */
.signup-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  z-index: -1;
}

.signup-left-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.signup-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: white;
}

.signup-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 300;
}

/* Panneau Droit (Formulaire) */
.signup-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center;  <-- Removed to fix scrolling issue */
  padding: 2rem;
  background-color: #fff;
  position: relative;
  overflow-y: auto;
  height: 100vh;
}

.signup-form-container {
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
  margin: auto 0; /* Centers vertically if space allows, safe for scroll */
}

/* Header du formulaire */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-color);
}

.signup-header {
  text-align: center;
  margin-bottom: 3rem;
}

.signup-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.signup-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Cartes de sélection */
.partnership-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.partnership-card {
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  overflow: hidden;
}

.partnership-card:hover {
  border-color: rgba(251, 140, 0, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.partnership-card.selected {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: var(--shadow-lg);
}

.partnership-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary-gradient);
}

.partnership-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.partnership-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  color: var(--text-muted);
  /* Removed background circle */
}

.partnership-card:hover .partnership-icon,
.partnership-card.selected .partnership-icon {
  color: var(--primary-color);
  transform: scale(1.1);
}

.partnership-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-main);
}

.partnership-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.partnership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  width: 100%;
  text-align: left;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.partnership-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.partnership-features li:last-child {
  margin-bottom: 0;
}

.partnership-features li i {
  color: var(--primary-color);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.btn-select {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.partnership-card.selected .btn-select,
.btn-select:hover {
  background: var(--primary-color);
  color: white;
}

/* Formulaire */
.form-container {
  display: none;
  animation: slideUp 0.4s ease-out;
}

.form-container.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.selected-type-badge {
  background: #fffbf5;
  color: var(--primary-color);
  border: 1px solid rgba(251, 140, 0, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
  justify-content: center;
}

.form-section {
  background: #fff;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  background: #fff;
  color: var(--text-main);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(251, 140, 0, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  margin-top: 1rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.btn-back:hover {
  color: var(--primary-color);
}

/* Checkbox CGU */
.cgu-check {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  align-items: flex-start;
}

.cgu-check input {
  margin-top: 0.25rem;
  accent-color: var(--primary-color);
  width: 1.1rem;
  height: 1.1rem;
}

.cgu-check label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cgu-check a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Alertes */
.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  color: #991b1b;
}

.alert ul {
  margin: 0;
  padding-left: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .signup-container {
    flex-direction: column;
  }

  .signup-left {
    width: 100%;
    max-width: none;
    min-height: 250px;
    padding: 2rem;
  }

  .signup-left h1 {
    font-size: 1.75rem;
  }

  .signup-right {
    height: auto;
    min-height: calc(100vh - 250px);
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .partnership-selection {
    grid-template-columns: 1fr;
  }
  
  .signup-left {
    min-height: 200px;
    padding: 1.5rem;
  }
  
  .signup-left h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .signup-left p {
    display: none;
  }
}
