/* ===== GRADIENT HEADER ===== */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header {
  height: 350px;
  background: linear-gradient(-45deg, #1f50dc, #4bbf73, #1f50dc, #4bbf73);
  background-size: 400% 400%;
  background-position: 0% 50%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 60px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--header-overlay), rgba(0, 0, 0, 0.4));
  z-index: 1;
  border-radius: 0 0 20px 20px;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.header h1 {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  font-weight: normal !important;
}

/* Responsive pour header */
@media (max-width: 768px) {
  .header {
    height: 250px;
    background-attachment: scroll;
  }

  .header h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 576px) {
  .header {
    height: 200px;
  }

  .header h1 {
    font-size: 2rem;
  }
}

/* Form Styling */
.contact-form-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
}

/* Titres adaptatifs au thème */
.contact-title {
  color: var(--page-text);
  font-weight: 600;
}

.contact-label {
  color: var(--page-text);
  font-weight: 600;
}

.form-control {
  background-color: var(--page-bg);
  border: 1px solid var(--card-border);
  color: var(--page-text);
  transition: all 0.3s ease;
  min-height: 10vh !important;
}

.form-control:focus {
  background-color: var(--page-bg);
  border-color: #1f50dc;
  box-shadow: 0 0 0 0.25rem rgba(31, 80, 220, 0.25);
  color: var(--page-text);
}

.form-floating > label {
  color: var(--page-text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--color-primary);
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.input-focused label {
  color: #1f50dc !important;
}

/* Contact Info Styling */
.contact-info-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--page-bg);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.2);
  border: 1px solid #1f50dc;
}

.contact-icon-bg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #8e8e8e;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon-bg {
  background-color: var(--color-primary);
  color: #ffffff;
}

.contact-info-content {
  flex: 1;
}

.contact-info-content h5 {
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  color: #8e8e8e;
  margin-bottom: 0.5rem;
}

/* Response Time Section */
.response-time {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--page-bg);
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

.response-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #141414; /* ← Change de bleu à gris foncé */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #8e8e8e; /* ← Change la couleur de l'icône */
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.response-icon:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.3);
  transform: scale(1.1);
}

.response-text h5 {
  margin-bottom: 0.25rem;
}

.response-text p {
  color: #8e8e8e;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-contact-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
}

.faq-contact-section h2 {
  margin-bottom: 1.5rem;
}

/* Button Enhancement */
.btn-primary {
  background-color: var(--color-primary);
  border-color: #1f50dc;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1640b3;
  border-color: #1640b3;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(31, 80, 220, 0.3);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: #1f50dc;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .contact-info-container {
    margin-top: 2rem;
  }

  .header {
    margin-top: 100px !important;
  }

  .header h1 {
    font-size: 4.5rem;
  }

  .header p {
    font-size: 1.8rem;
    margin-left: 50px;
  }

  h2 {
    font-size: 2.5rem !important;
  }

  h3 {
    font-size: 2.5rem !important;
  }

  h5 {
    font-size: 1.8rem !important;
  }

  .contact-info-content p,
  .response-text p {
    font-size: 1.8rem !important;
  }

  .contact-info-content a {
    font-size: 1.8rem !important;
  }

  label {
    font-size: 1.5rem !important;
  }

  .form-control {
    min-height: 3vh !important;
  }

  .contact-form-container {
    height: 30vh !important;
  }
}

@media (max-width: 576px) {
  .contact-form-container,
  .contact-info-container,
  .faq-contact-section {
    padding: 1.5rem;
  }

  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon-bg {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Animation enhancements */
.animate__animated {
  --animate-duration: 0.8s;
}

.animate__delay-1s {
  --animate-delay: 0.5s;
}

.animate__delay-2s {
  --animate-delay: 0.8s;
}

/* Type cursor animation */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typing-cursor {
  display: inline-block;
  animation: blink 0.7s infinite;
  color: var(--color-primary);
}

/* Form validation visual indicators */
.form-control:valid {
  border-color: #4bbf73;
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #d9534f;
}

/* Success message styling */
.alert-success {
  background-color: rgba(75, 191, 115, 0.2);
  border-color: #4bbf73;
  color: #4bbf73;
}

/* Error message styling */
.alert-danger {
  background-color: rgba(217, 83, 79, 0.2);
  border-color: #d9534f;
  color: #d9534f;
}
