/* ============================================
   BRIEF FORM - MODERN & PROFESSIONAL DESIGN
   ============================================ */

/* Import variables from main site */
:root {
  --primary: #0077FF;
  --primary-dark: #0056CC;
  --primary-light: #4D9FFF;
  --accent: #00C48C;
  --accent-light: #33D9A8;
  --danger: #FF66C4;
  --text: #1a1a1a;
  --text-light: #555;
  --text-lighter: #777;
  --bg-light: #CFE8F3;
  --bg-lighter: #E8F4FA;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 30px;
  --shadow: 0 2px 5px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  padding-top: 100px;
  min-height: 100vh;
}

/* ============================================
   HERO SECTION
   ============================================ */

.brief-hero {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.brief-hero.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.brief-hero-title {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.brief-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   FORM WRAPPER
   ============================================ */

.form-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-container {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.progress-container.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-lighter);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
  transition: var(--transition);
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-lighter);
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 3px solid transparent;
}

.progress-step.active .step-circle {
  background: var(--primary);
  color: white;
  border-color: var(--primary-light);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.progress-step.completed .step-circle {
  background: var(--accent);
  color: white;
  border-color: var(--accent-light);
}

.progress-step.completed .step-circle::before {
  content: "✓";
  font-size: 1.3rem;
}

.step-label {
  font-size: 0.85rem;
  color: var(--text-lighter);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.progress-step.completed .step-label {
  color: var(--accent);
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.form-container {
  background: white;
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.form-container.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.form-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-section.active {
  display: block;
}

.form-section.fade-out {
  animation: fadeOut 0.3s ease;
}

.form-section.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s infinite;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(0, 119, 255, 0.2) 100%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.2);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.form-group.focused {
  transform: translateX(5px);
}

label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.required {
  color: var(--danger);
  font-weight: 700;
}

input, textarea, select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fafafa;
  color: var(--text);
  transition: var(--transition);
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
  transform: translateY(-2px);
}

input.filled, textarea.filled, select.filled {
  background: white;
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: #aaa;
}

.error-shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ============================================
   INPUT WITH ICON
   ============================================ */

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--primary);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 3rem;
}

.input-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

/* ============================================
   RADIO CARDS
   ============================================ */

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.radio-card {
  display: block;
  cursor: pointer;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  background: #fafafa;
  transition: var(--transition);
}

.radio-card:hover .radio-content {
  border-color: var(--primary);
  background: #f5f9ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.radio-card input[type="radio"]:checked ~ .radio-content {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.05) 0%, rgba(0, 119, 255, 0.1) 100%);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.15);
}

.radio-icon {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-card input[type="radio"]:checked ~ .radio-content .radio-icon {
  color: var(--primary);
  animation: pop 0.3s ease;
}

@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.radio-text {
  font-weight: 500;
  color: var(--text);
}

.radio-card input[type="radio"]:checked ~ .radio-content .radio-text {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   CHECKBOX CARDS
   ============================================ */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.checkbox-card {
  display: block;
  cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
  display: none;
}

.checkbox-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  background: #fafafa;
  transition: var(--transition);
}

.checkbox-card:hover .checkbox-content {
  border-color: var(--accent);
  background: #f5fff9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 196, 140, 0.05) 0%, rgba(0, 196, 140, 0.1) 100%);
  box-shadow: 0 0 0 3px rgba(0, 196, 140, 0.15);
}

.checkbox-icon {
  font-size: 1.5rem;
  color: #ccc;
  min-width: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .checkbox-icon {
  color: var(--accent);
  animation: pop 0.3s ease;
}

.checkbox-text {
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.checkbox-card input[type="checkbox"]:checked ~ .checkbox-content .checkbox-text {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   INLINE RADIOS
   ============================================ */

.radio-group-inline {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.radio-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.radio-inline input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.radio-inline:hover {
  color: var(--primary);
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.05) 0%, rgba(0, 119, 255, 0.1) 100%);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   OPTION CARDS
   ============================================ */

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.option-card {
  padding: 2rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  background: #fafafa;
  transition: var(--transition);
}

.option-card:hover {
  border-color: var(--primary);
  background: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.option-icon {
  font-size: 2rem;
  color: var(--primary);
}

.option-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.option-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--text);
}

.option-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ============================================
   FORFAIT CARDS
   ============================================ */

.forfait-card {
  padding: 2rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  background: #fafafa;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.forfait-card:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-md);
}

.forfait-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.forfait-icon {
  font-size: 2rem;
  color: var(--primary);
  min-width: 50px;
}

.forfait-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.forfait-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.forfait-price {
  margin-left: auto;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ============================================
   FORM ROW
   ============================================ */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FORM NAVIGATION
   ============================================ */

.form-navigation {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-nav:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.btn-nav:disabled,
.btn-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #999;
}

.btn-submit {
  border-color: var(--accent);
  color: var(--accent);
  margin-left: auto;
}

.btn-submit:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 196, 140, 0.3);
}

.btn-icon {
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-nav {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CONFIRMATION MESSAGE
   ============================================ */

.confirmation-message {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0, 196, 140, 0.1) 0%, rgba(0, 119, 255, 0.05) 100%);
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: bounce 0.6s ease;
}

.confirmation-message h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.confirmation-message p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .brief-hero-title {
    font-size: 2rem;
  }

  .brief-hero-subtitle {
    font-size: 1rem;
  }

  .progress-steps {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .radio-group,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .form-wrapper {
    padding: 0 1rem 2rem;
  }

  .brief-hero {
    padding: 2rem 1rem;
  }

  .progress-container {
    padding: 1rem;
  }

  .form-container {
    padding: 1rem;
  }

  .radio-group-inline {
    flex-direction: column;
    gap: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  main {
    padding-top: 80px;
  }
}