/* Quote Banner - Bandeau défilant pour demande de devis */

/* Banner fixe sous la navbar */
.quote-banner {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(90deg, #6b5d3f 0%, #7f6f4b 50%, #6b5d3f 100%);
  z-index: calc(var(--z-navbar) - 1);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quote-banner:hover {
  background: linear-gradient(90deg, #7f6f4b 0%, #8f7f5b 50%, #7f6f4b 100%);
}

/* Conteneur du texte défilant */
.quote-banner-track {
  display: flex;
  animation: scroll-banner 20s linear infinite;
  white-space: nowrap;
  height: 100%;
  align-items: center;
}

.quote-banner:hover .quote-banner-track {
  animation-play-state: paused;
}

/* Texte du bandeau */
.quote-banner-text {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quote-banner-text span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.quote-banner-text svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Animation de défilement */
@keyframes scroll-banner {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ajustement du contenu de la page pour le bandeau */
.page-content {
  margin-top: calc(var(--navbar-height) + 40px) !important;
}

/* Mobile */
@media (max-width: 768px) {
  .quote-banner {
    top: var(--navbar-height-mobile);
    height: 36px;
  }

  .quote-banner-text {
    font-size: 0.8rem;
    gap: 2rem;
    padding-right: 2rem;
  }

  .quote-banner-text svg {
    width: 16px;
    height: 16px;
  }

  .page-content {
    margin-top: calc(var(--navbar-height-mobile) + 36px) !important;
  }
}

/* =====================================================
   MODAL DE DEMANDE DE DEVIS
   ===================================================== */

.quote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.quote-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.quote-modal {
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(127, 111, 75, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(127, 111, 75, 0.1);
}

.quote-modal-overlay.show .quote-modal {
  transform: scale(1) translateY(0);
}

/* Header du modal */
.quote-modal-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-modal-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #6b5d3f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(127, 111, 75, 0.3);
}

.quote-modal-icon svg {
  width: 36px;
  height: 36px;
  color: var(--color-dark);
}

.quote-modal-header h2 {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-gold);
  margin: 0 0 0.5rem;
}

.quote-modal-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

/* Bouton fermer */
.quote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quote-modal-close svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.quote-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.quote-modal-close:hover svg {
  color: #fff;
}

/* Corps du formulaire */
.quote-modal-body {
  padding: 1.5rem 1.5rem 2rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.form-group label .required {
  color: var(--color-gold);
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: #fff;
  transition: all 0.2s ease;
}

.form-group input:not([type="checkbox"])::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(127, 111, 75, 0.15);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: #2a2a2a;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Bouton submit */
.quote-submit-btn {
  background: linear-gradient(135deg, var(--color-gold) 0%, #6b5d3f 100%);
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quote-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(127, 111, 75, 0.4);
}

.quote-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.quote-submit-btn svg {
  width: 20px;
  height: 20px;
}

/* Spinner de chargement */
.quote-submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--color-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Message de succès */
.quote-success {
  text-align: center;
  padding: 2rem;
}

.quote-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: success-pop 0.4s ease;
}

@keyframes success-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.quote-success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.quote-success h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.quote-success p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.quote-success-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 2rem;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-success-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Message d'erreur */
.quote-error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #e74c3c;
  font-size: 0.9rem;
  display: none;
  margin-bottom: 1rem;
}

.quote-error.show {
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .quote-modal {
    max-height: 95vh;
    border-radius: 12px;
  }

  .quote-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .quote-modal-header h2 {
    font-size: 1.6rem;
  }

  .quote-modal-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
  }

  .quote-modal-icon svg {
    width: 30px;
    height: 30px;
  }
}

/* =====================================================
   ÉTAPE 2 - OPTIONS DE CONTACT ET DATES
   ===================================================== */

/* Indicateur d'étapes */
.quote-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.step-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* Options de contact */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-option {
  position: relative;
  cursor: pointer;
}

.contact-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-option-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.contact-option input[type="radio"]:checked + .contact-option-content {
  background: rgba(127, 111, 75, 0.1);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(127, 111, 75, 0.2);
}

.contact-option:hover .contact-option-content {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-option input[type="radio"]:checked + .contact-option-content:hover {
  background: rgba(127, 111, 75, 0.15);
}

.contact-option-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.contact-option-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-option-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.recommended-badge {
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-option-desc {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  padding-left: 26px;
}

/* Grille des dates */
.dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.date-group {
  gap: 0.3rem !important;
}

.date-group label {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.date-hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.date-input {
  width: 100%;
  padding: 0.7rem 0.5rem !important;
  font-size: 0.85rem !important;
}

.time-range {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.time-range .time-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.3rem !important;
  font-size: 0.78rem !important;
  background-position: right 0.4rem center !important;
  padding-right: 1.8rem !important;
}

.time-range-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.date-input.invalid {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.1) !important;
}

.date-error {
  display: block;
  font-size: 0.7rem;
  color: #e74c3c;
  min-height: 1rem;
  margin-top: 0.2rem;
}

/* Choix devis par e-mail */
.devis-email-choice {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(127, 111, 75, 0.08);
  border: 1px solid rgba(127, 111, 75, 0.2);
  border-radius: 12px;
}

.devis-email-choice label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.devis-email-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.devis-email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(127, 111, 75, 0.15);
  border: 1px solid rgba(127, 111, 75, 0.3);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.devis-email-btn:hover {
  background: rgba(127, 111, 75, 0.3);
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(127, 111, 75, 0.2);
}

.devis-email-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .devis-email-buttons {
    grid-template-columns: 1fr;
  }
}

/* Boutons de navigation */
.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.quote-back-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

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

.form-buttons .quote-submit-btn {
  flex: 1;
}

/* Responsive pour étape 2 */
@media (max-width: 700px) {
  .dates-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dates-grid .date-group:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .dates-grid {
    grid-template-columns: 1fr;
  }

  .dates-grid .date-group:last-child {
    grid-column: auto;
  }

  .contact-option-content {
    padding: 0.85rem;
  }

  .contact-option-desc {
    padding-left: 0;
    margin-top: 0.3rem;
  }

  .form-buttons {
    flex-direction: column-reverse;
  }

  .quote-back-btn {
    justify-content: center;
  }

  .step-line {
    width: 30px;
  }
}
