/* contact.css */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  margin: 0;
  padding: 0;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 15px 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-name {
  font-size: 24px;
  font-weight: 700;
  color: #d97706; /* couleur orange / or */
}

.header-logo img {
  height: 40px;
}

.search-container {
  flex-grow: 1;
  margin: 0 30px;
  display: flex;
}

.search-input {
  flex-grow: 1;
  padding: 8px 12px;
  border: 1.8px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #d97706;
  outline: none;
  box-shadow: 0 0 6px #d97706a0;
}

.search-button {
  background-color: #d97706;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #b15f02;
}

.user-links a {
  margin-left: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-links img.icon {
  height: 26px;
  width: 26px;
  transition: transform 0.3s ease;
}

.user-links a:hover img.icon {
  transform: scale(1.2);
}

.cart-count {
  margin-left: 6px;
  font-weight: 600;
  color: #d97706;
  font-size: 16px;
}

/* Main container */
.contact-container {
  max-width: 900px;
  margin: 50px auto 80px;
  padding: 0 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-container h1 {
  text-align: center;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 30px;
  font-size: 2.4rem;
  letter-spacing: 1.2px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.info-item {
  flex: 1 1 45%;
  background: #fff7e6;
  border-left: 6px solid #d97706;
  padding: 20px 25px;
  margin: 10px 0;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgb(217 119 6 / 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgb(217 119 6 / 0.3);
}

.info-item h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #b95c00;
}

.info-item p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #d97706;
  box-shadow: 0 0 10px #d97706aa;
  outline: none;
}

.contact-form textarea {
  min-height: 140px;
}

.submit-btn {
  background: #d97706;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 12px rgba(217, 119, 6, 0.5);
}

.submit-btn:hover {
  background-color: #b15f02;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.7);
}

/* Responsive */
@media (max-width: 720px) {
  .contact-info {
    flex-direction: column;
  }
  .info-item {
    flex-basis: 100%;
  }
  .search-container {
    margin: 0 10px;
  }
  .contact-container {
    margin: 30px 10px 50px;
  }
}
.form-alert {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: 600;
}

.form-alert.success {
  background: #e6fffa;
  color: #065f46;
}

.form-alert.error {
  background: #ffe6e6;
  color: #7f1d1d;
}
