/* =============================================================================
   STYLES SPÉCIFIQUES À LA PAGE COMMANDER - CFK
   ============================================================================= */

/* Header Section */
.header-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.header-section .container {
  position: relative;
  z-index: 2;
}

.header-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.header-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  padding: 80px 0;
  background: var(--background);
}

.order-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Messages */
.message {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: none;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.message.success {
  background: rgba(0, 51, 102, 0.1);
  border: 1px solid var(--primary-main);
  color: var(--primary-dark);
}

.message.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid #e74c3c;
  color: #c0392b;
}

.message.show {
  display: flex;
}

/* Formulaire */
.order-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}

.form-header h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  color: var(--text-dark);
}

.form-control:focus {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
  outline: none;
}

.form-control:invalid {
  border-color: #e74c3c;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Sidebar */
.order-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.products-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.products-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.4rem;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
}

.product-item:hover {
  border-color: var(--primary-main);
  background: rgba(0, 51, 102, 0.05);
  transform: translateX(5px);
}

.product-item.selected {
  border-color: var(--primary-main);
  background: rgba(0, 51, 102, 0.1);
}

.product-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.product-info h4 {
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Info Card - Compact */
.contact-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-main));
  color: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
}

.contact-card h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-card p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
  .order-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .header-section h1 {
    font-size: 2.5rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .header-section h1 {
    font-size: 2rem;
  }

  .order-form, .products-card, .contact-card {
    padding: 1.5rem;
  }

  .main-content {
    padding: 40px 0;
  }
}
