/* ===== PAGE DEVIS - STYLES SPÉCIFIQUES ===== */

/* Section principale - MINIMALISTE */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
  color: #1a237e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #1a237e;
}

/* Form Hero */
.form-hero {
  position: relative;
  padding: 0;
  background: #f5f5f5;
  min-height: 100vh;
}

.form-hero::before,
.form-hero::after {
  display: none;
}

.form-hero .form-container {
  max-width: 100%;
  margin: 0;
  background: #f5f5f5;
}

/* Form Container */
.form-container {
  background: #f5f5f5;
  padding: 60px 40px;
  max-width: 100%;
  width: 100%;
  margin: 0;
  border: none;
  font-size: 17px;
}

/* Titres */
h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 35px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
  margin: 40px auto 20px;
  max-width: 900px;
}

/* Intro Text */
.intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 30px;
  background: #d3d3d3;
  line-height: 1.8;
}

.intro-text p {
  margin-bottom: 16px;
  color: #2c3e50;
  font-size: 18px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text strong {
  color: #ff6600;
  font-weight: 700;
  font-size: 19px;
}

/* Form Group */
.form-group {
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 17px;
}

.required {
  color: #e74c3c;
  font-weight: 700;
}

.help-text {
  font-size: 15px;
  color: #7f8c8d;
  margin-top: 6px;
  line-height: 1.4;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6600;
  background: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select {
  cursor: pointer;
  appearance: none;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Address Row */
.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.address-row .form-group {
  margin-bottom: 0;
  max-width: none;
}

.address-row input {
  width: 100%;
}

/* Phone Container */
.phone-container {
  display: flex;
  border: 2px solid #e8e8e8;
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.phone-container:focus-within {
  border-color: #ff6600;
  background: #ffffff;
}

.phone-prefix {
  background: #f8f9fa;
  border-right: 2px solid #e8e8e8;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.flag-icon {
  width: 22px;
  height: 16px;
  object-fit: cover;
}

.phone-input {
  border: none !important;
  flex: 1;
  padding: 12px 14px;
  background: transparent;
}

/* Slider */
.slider-container {
  margin-top: 16px;
}

.slider {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  background: #ff6600;
  border: 3px solid #ffffff;
  cursor: grab;
  transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #ff6600;
  border: 3px solid #ffffff;
  cursor: grab;
}

.slider-value {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 17px;
}

.slider-value strong {
  color: #ff6600;
  font-size: 20px;
}

/* Info Box */
.info-box {
  background: #ffffff;
  border-left: 4px solid #ff6600;
  padding: 20px;
  margin-bottom: 30px;
  font-size: 15px;
  color: #555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-box ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.info-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Submit Button */
.submit-btn {
  background-color: #ff6600;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 48px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 280px;
  margin: 30px auto 0;
  display: block;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Alert */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ===== RESPONSIVE SPÉCIFIQUE PAGE DEVIS ===== */
@media (max-width: 768px) {
  .form-container {
    padding: 40px 20px;
  }

  .address-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .phone-container {
    flex-direction: column;
  }

  .phone-prefix {
    border-right: none;
    border-bottom: 2px solid #e8e8e8;
    justify-content: center;
  }

  .address-row {
    flex-direction: column;
    gap: 0;
  }
}