/* ========================================
   BASE STYLES (Desktop First)
   ======================================== */

.contact-section-ui {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* FORM CARD */
.contact-form-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 44px;
  border: 1px solid rgba(32, 42, 55, 0.12);
}

/* TITRES */
.contact-card-title {
  font-size: 26px;
  margin-bottom: 12px;
  color: #202a37;
  letter-spacing: -0.3px;
}

.contact-card-title-1 {
  font-size: 26px;
  margin-bottom: 12px;
  color: white;
  letter-spacing: -0.3px;
}

.contact-card-desc {
  color: #4b5563;
  margin-bottom: 36px;
  font-size: 15.5px;
  line-height: 1.7;
}

/* FORM */
.contact-form-ui {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-form-ui label {
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
}

/* INPUTS */
.contact-form-ui input,
.contact-form-ui textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(32, 42, 55, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  transition: border 0.25s ease, background 0.25s ease;
}

.contact-form-ui input::placeholder,
.contact-form-ui textarea::placeholder {
  color: #9ca3af;
}

/* Focus élégant */
.contact-form-ui input:focus,
.contact-form-ui textarea:focus {
  outline: none;
  border-color: #202a37;
  background: #ffffff;
}

/* TEXTAREA */
.contact-form-ui textarea {
  min-height: 160px;
  resize: none;
}

/* SUBMIT BUTTON */
.contact-submit-btn {
  margin-top: 28px;
  background: #ffffff;
  color: #202a37;
  border: 1.5px solid #202a37;
  padding: 16px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

/* Hover chic */
.contact-submit-btn:hover {
  background: #202a37;
  color: #ffffff;
  transform: translateY(-2px);
}

/* RIGHT SIDE */
.contact-side-ui {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* CARDS */
.contact-info-card {
  position: relative;
  border-radius: 18px;
  padding: 32px;
  overflow: hidden;
}

/* DARK CARDS */
.contact-info-card.dark {
  background: #202a37;
  color: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Accent lumineux */
.contact-info-card.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(247, 202, 90, 0.25);
  pointer-events: none;
}

/* LIGHT CARD */
.contact-info-card.light {
  background: #f3f4f6;
  color: #202a37;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

/* TEXTE */
.contact-info-card p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info-card.light p {
  color: #374151;
}

/* BUTTONS */
.contact-action-btn {
  width: 100%;
  background: #f7ca5a;
  border: none;
  padding: 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: #202a37;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-action-btn:hover {
  background: #ffd96a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(247, 202, 90, 0.35);
}

/* ALT CONTACT */
.contact-alt-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

/* ICONS LEFT */
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #202a37;
  color: #f7ca5a;
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(247, 202, 90, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

/* VARIANTES */
.contact-icon.email {
  background: linear-gradient(135deg, #202a37, #2c3948);
}

.contact-icon.social {
  background: linear-gradient(135deg, #f7ca5a, #ffd96a);
  color: #202a37;
}

/* SOCIALS */
.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* SOCIAL ICONS */
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #202a37;
  color: white;
  font-size: 15px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Hover couleurs réseaux */
.social-icon:hover {
  transform: translateY(-4px);
}

.social-icon.linkedin:hover {
  background: #0a66c2;
}

.social-icon.github:hover {
  background: #111827;
}

.social-icon.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.social-icon.facebook:hover {
  background: #3b5998;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section-ui {
  max-width: 900px;
  margin: 100px auto;
  text-align: center;
  padding: 0 20px;
}

/* TITRES */
.faq-title {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #202a37;
}

.faq-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 55px;
}

/* LISTE */
.faq-list-ui {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ITEM */
.faq-item-ui {
  position: relative;
  background: #e1e1e1;
  border-radius: 16px;
  padding: 30px 40px;
  text-align: left;
  border: 1px solid #9ca3af;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* BARRE COLORÉE */
.faq-item-ui::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(180deg, #f7ca5a, #eab308);
  border-radius: 16px 0 0 16px;
}

/* HOVER */
.faq-item-ui:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  background: #ededed;
}

/* QUESTION */
.faq-question-ui {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #202a37;
}

/* REPONSE */
.faq-answer-ui {
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
}

/* ========================================
   SLIDE-IN DEVIS
   ======================================== */

.slide-devis {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  max-width: 95%;
  height: 100%;
  background: #202a37;
  color: #ffffff;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.45);
  border-radius: 16px 0 0 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease-in-out;
  overflow-y: auto;
  padding: 24px;
}

/* Header */
.slide-devis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(247, 202, 90, 0.25);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.slide-devis-header h3 {
  color: #f7ca5a;
  font-size: 20px;
}

.slide-close {
  font-size: 28px;
  cursor: pointer;
  color: #f7ca5a;
  transition: transform 0.2s ease;
}

.slide-close:hover {
  transform: rotate(90deg);
}

/* Body */
.slide-devis-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Steps */
.chat-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.devis-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #2c3948;
  color: #ffffff;
}

.devis-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.next-step-btn,
.submit-devis-btn {
  background: #f7ca5a;
  color: #202a37;
  border: none;
  border-radius: 999px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.next-step-btn:hover,
.submit-devis-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(247, 202, 90, 0.45);
}

/* ========================================
   MODAL RDV
   ======================================== */

.modal-rdv {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* CONTENU MODAL */
.modal-rdv-content {
  background: #f9fafb;
  border-radius: 18px;
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  color: #202a37;
}

/* BOUTON FERMER */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #202a37;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

/* État visible */
.modal-rdv.show {
  display: flex;
}

/* Animation modal */
@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-rdv-content {
  animation: modalScale 0.25s ease;
}

/* Overlay sombre */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 9998;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVE
   ======================================== */

/* Tablettes et petits écrans (max 992px) */
@media screen and (max-width: 992px) {
  .contact-section-ui {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 50px auto;
  }

  .contact-form-card {
    padding: 32px;
  }

  .faq-section-ui {
    margin: 60px auto;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-item-ui {
    padding: 24px 32px;
  }
}

/* Smartphones (max 768px) */
@media screen and (max-width: 768px) {
  .contact-section-ui {
    margin: 40px auto;
    gap: 24px;
    padding: 0 15px;
  }

  .contact-form-card {
    padding: 24px;
    border-radius: 14px;
  }

  .contact-card-title,
  .contact-card-title-1 {
    font-size: 22px;
  }

  .contact-card-desc {
    font-size: 14.5px;
    margin-bottom: 28px;
  }

  .contact-form-ui input,
  .contact-form-ui textarea {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 12px;
  }

  .contact-form-ui textarea {
    min-height: 140px;
  }

  .contact-submit-btn {
    padding: 14px;
    font-size: 14.5px;
    margin-top: 20px;
  }

  /* Cards côté droit */
  .contact-info-card {
    padding: 24px;
    border-radius: 14px;
  }

  .contact-action-btn {
    padding: 13px;
    font-size: 14px;
  }

  /* FAQ */
  .faq-section-ui {
    margin: 50px auto;
    padding: 0 15px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-subtitle {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .faq-item-ui {
    padding: 20px 24px;
    padding-left: 32px;
    border-radius: 12px;
  }

  .faq-item-ui::before {
    width: 8px;
  }

  .faq-question-ui {
    font-size: 16px;
  }

  .faq-answer-ui {
    font-size: 14px;
  }

  /* Modal RDV */
  .modal-rdv-content {
    padding: 24px;
    border-radius: 14px;
  }

  .modal-close {
    font-size: 22px;
    top: 12px;
    right: 12px;
  }

  /* Slide Devis */
  .slide-devis {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 20px;
  }

  .slide-devis-header h3 {
    font-size: 18px;
  }
}

/* Petits smartphones (max 480px) */
@media screen and (max-width: 480px) {
  .contact-section-ui {
    margin: 30px auto;
    padding: 0 12px;
  }

  .contact-form-card {
    padding: 20px;
  }

  .contact-card-title,
  .contact-card-title-1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-card-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .contact-form-ui {
    gap: 18px;
  }

  .contact-form-ui label {
    font-size: 12.5px;
  }

  .contact-form-ui input,
  .contact-form-ui textarea {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .contact-submit-btn {
    padding: 12px;
    font-size: 14px;
  }

  /* Cards */
  .contact-info-card {
    padding: 20px;
  }

  .contact-info-card p {
    font-size: 13.5px;
  }

  .contact-action-btn {
    padding: 12px;
    font-size: 13.5px;
  }

  /* Alt contact */
  .contact-alt-item {
    gap: 12px;
    margin-top: 20px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .contact-socials {
    gap: 10px;
  }

  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* FAQ */
  .faq-section-ui {
    margin: 40px auto;
  }

  .faq-title {
    font-size: 22px;
  }

  .faq-subtitle {
    font-size: 13px;
    margin-bottom: 35px;
  }

  .faq-list-ui {
    gap: 20px;
  }

  .faq-item-ui {
    padding: 18px 20px;
    padding-left: 28px;
  }

  .faq-item-ui::before {
    width: 6px;
  }

  .faq-question-ui {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .faq-answer-ui {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Modal */
  .modal-rdv {
    padding: 15px;
  }

  .modal-rdv-content {
    padding: 20px;
  }

  .modal-rdv-content h3 {
    font-size: 18px;
  }
}

/* Très petits écrans (max 360px) */
@media screen and (max-width: 360px) {
  .contact-form-card {
    padding: 16px;
  }

  .contact-card-title,
  .contact-card-title-1 {
    font-size: 18px;
  }

  .contact-info-card {
    padding: 16px;
  }

  .faq-item-ui {
    padding: 16px 18px;
    padding-left: 26px;
  }

  .faq-question-ui {
    font-size: 14px;
  }

  .faq-answer-ui {
    font-size: 12.5px;
  }
}