/* ========================================
   MOMO TOURS - CSS PRINCIPAL
   Site de Transport Touristique au Maroc
   ======================================== */

/* Variables CSS pour les couleurs du thème */
:root {
  --primary-color: #d2691e; /* Orange terre cuite */
  --secondary-color: #8b4513; /* Marron désert */
  --accent-color: #f4a460; /* Sable doré */
  --dark-color: #2c1810; /* Marron foncé */
  --light-color: #fff8dc; /* Crème */
  --success-color: #228b22; /* Vert oasis */
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typographie */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Header & Navigation */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
  transition: var(--transition);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-brand img {
  height: 45px;
  margin-right: 10px;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  margin: 0 10px;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 5px 10px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.85rem;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
}

/* Section Hero */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(44, 24, 16, 0.6), rgba(210, 105, 30, 0.4)),
    url("../images/imgmomotours1.png") center/cover;
  display: flex;
  align-items: flex-start;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  justify-content: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 0, 0, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 100px; /* Espace pour la navbar fixe */
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #f8f8ff;
  font-weight: 700;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #f5f5dc;
  font-weight: 600;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 4rem;
  color: #f8f8ff;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Formulaire de réservation Hero */
.booking-form {
  background: rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  color: var(--dark-color);
  max-width: 600px;
  margin: 2rem auto;
  animation: fadeInUp 1s ease-out 0.9s both;
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
  min-height: auto;
}

/* Gestion du champ de retour dynamique */
#returnDateRow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
}

#returnDateRow.show {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.5rem;
  padding-top: 0;
}

/* Amélioration responsive du formulaire */
@media (max-width: 768px) {
  .booking-form {
    overflow: visible;
    max-height: none;
  }

  #returnDateRow.show {
    max-height: 150px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  #returnDateRow.show {
    max-height: 120px;
    margin-bottom: 0.75rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

@media (max-width: 400px) {
  #returnDateRow.show {
    max-height: 100px;
    margin-bottom: 0.5rem;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }
}

.booking-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
  transform: translateY(-1px);
}

/* Amélioration des datepickers */
.form-control[type="date"] {
  position: relative;
  padding-right: 50px;
  color: var(--dark-color);
  font-weight: 500;
  cursor: pointer;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: auto;
  position: absolute;
  right: 15px;
  top: 0;
  width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D2691E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: 1;
}

.form-control[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238B4513' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}

.form-control[type="date"]::-webkit-datetime-edit {
  color: var(--dark-color);
  padding: 0;
}

.form-control[type="date"]::-webkit-datetime-edit-fields-wrapper {
  background: transparent;
}

.form-control[type="date"]::-webkit-datetime-edit-text {
  color: var(--gray);
  padding: 0 3px;
}

.form-control[type="date"]::-webkit-datetime-edit-month-field,
.form-control[type="date"]::-webkit-datetime-edit-day-field,
.form-control[type="date"]::-webkit-datetime-edit-year-field {
  background: transparent;
  color: var(--dark-color);
  font-weight: 500;
}

.form-control[type="date"]::-webkit-datetime-edit-month-field:focus,
.form-control[type="date"]::-webkit-datetime-edit-day-field:focus,
.form-control[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: rgba(210, 105, 30, 0.1);
  border-radius: 4px;
  outline: none;
}

/* Style pour Firefox */
.form-control[type="date"]::-moz-focus-inner {
  border: 0;
}

/* Placeholder personnalisé pour les dates */
.form-control[type="date"].empty {
  color: var(--gray);
}

.form-control[type="date"].empty::-webkit-datetime-edit-text {
  color: var(--gray);
}

/* Animation au focus */
.form-control[type="date"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.15);
  transform: translateY(-2px);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Boutons */
.btn {
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  padding: 15px 25px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  box-shadow: var(--shadow-hover);
  font-size: 1.1rem;
  animation: bounce 2s infinite;
}

.btn-whatsapp:hover {
  color: var(--white);
  transform: scale(1.1);
}

/* Sections générales */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

/* Section services - s'assurer qu'elle ne passe pas au-dessus du formulaire */
.section#services {
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Cards et services */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(210, 105, 30, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 1.8rem;
}

.service-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

/* Footer */
.footer {
  background: linear-gradient(
    135deg,
    var(--dark-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  opacity: 0.8;
}

/* Modal pour devis */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .booking-form {
    margin: 1rem 1rem 2.5rem 1rem;
    padding: 2rem 2rem 2.5rem 2rem;
    position: relative;
    z-index: 15;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }

  .btn-whatsapp {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
  }
}

/* Ajustements pour écrans entre 415px et 768px (tailles intermédiaires) */
@media (max-width: 768px) and (min-width: 415px) {
  .hero-section {
    min-height: 100vh;
    padding: 1.2rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.6rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2.2rem;
    line-height: 1.4;
  }

  .hero-content {
    padding: 1.2rem;
    padding-top: 80px; /* Espace pour la navbar sur tablettes */
    max-width: 100%;
  }
}

/* Ajustements pour iPad et tablettes (768px exact) */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.4;
  }

  .hero-content {
    padding: 1rem;
    padding-top: 80px; /* Espace pour la navbar sur iPad */
    max-width: 100%;
  }

  .booking-form {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    margin: 1rem 0.5rem 0 0.5rem;
    position: relative;
    z-index: 20;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(210, 105, 30, 0.1);
    max-width: calc(100vw - 1rem);
  }

  .section {
    padding: 3rem 0;
    margin-top: 2rem;
  }

  .modal-content {
    padding: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0 5rem 0;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.8rem;
    padding-top: 70px; /* Espace pour la navbar sur mobiles */
    max-width: 100%;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .booking-form {
    padding: 1rem 1rem 1.5rem 1rem;
    margin: 0.5rem 0.5rem 0 0.5rem;
    position: relative;
    z-index: 25;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(210, 105, 30, 0.15);
    max-width: calc(100vw - 1rem);
  }

  /* Amélioration des boutons du formulaire sur mobile */
  .booking-form .btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .booking-form .d-grid {
    gap: 0.5rem;
  }

  .section {
    margin-top: 3rem;
  }

  /* Responsive pour le tableau de tarifs */
  .table-responsive {
    font-size: 0.9rem;
  }

  .table-header th {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .table tbody td {
    padding: 0.75rem 0.5rem;
  }

  .price-mad,
  .price-eur {
    padding: 0.25rem !important;
    font-size: 0.85rem;
  }
}

/* Effets de chargement */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Tableau de tarifs */
.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table {
  margin-bottom: 0;
  background: var(--white);
}

.table-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
}

.table-header th {
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
}

.table tbody tr:hover {
  background-color: rgba(210, 105, 30, 0.05);
  transform: translateX(3px);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border: none;
  font-weight: 500;
}

.table tbody td:first-child {
  color: var(--dark-color);
  font-weight: 600;
}

.price-mad {
  background: rgba(210, 105, 30, 0.1);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 8px;
  margin: 2px;
  padding: 0.5rem !important;
}

.price-eur {
  background: rgba(139, 69, 19, 0.1);
  color: var(--secondary-color);
  font-weight: 700;
  border-radius: 8px;
  margin: 2px;
  padding: 0.5rem !important;
}

/* Alert personnalisé pour les notes */
.alert-info {
  background: linear-gradient(
    135deg,
    rgba(210, 105, 30, 0.1),
    rgba(244, 164, 96, 0.1)
  );
  border: 1px solid rgba(210, 105, 30, 0.2);
  border-radius: var(--border-radius);
  color: var(--dark-color);
  font-weight: 500;
}

.alert-info .fas {
  color: var(--primary-color);
}

/* Classes utilitaires */
.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.bg-light-custom {
  background-color: var(--light-color) !important;
}
.rounded-custom {
  border-radius: var(--border-radius) !important;
}
.shadow-custom {
  box-shadow: var(--shadow) !important;
}

/* Améliorations de l'accessibilité */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   STYLES SPÉCIFIQUES PAGE CONTACT
   ======================================== */

/* Section Contact Hero */
.contact-hero {
  background: linear-gradient(rgba(44, 24, 16, 0.7), rgba(210, 105, 30, 0.5)),
    url("https://images.unsplash.com/photo-1516475429878-5d6938e96dae?ixlib=rb-4.0.3")
      center/cover;
  height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
  padding-top: 100px;
  margin-bottom: 2rem;
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero p {
  font-size: 1.2rem;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section contact principale */
.section.contact-main {
  padding: 5rem 0;
  background: rgba(248, 249, 250, 0.5);
}

/* Cartes de contact améliorées */
.contact-info-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(210, 105, 30, 0.1);
  position: relative;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(244, 164, 96, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(244, 164, 96, 0.2);
  transform: translateX(5px);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.contact-item-icon.whatsapp {
  background: #25d366;
}

.contact-item-content h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-item-content p {
  margin-bottom: 0;
  color: var(--gray);
}

.contact-item-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Boutons d'action rapide */
.quick-actions {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(210, 105, 30, 0.1);
}

.quick-actions .btn {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.quick-actions .btn-success {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
}

.quick-actions .btn-success:hover {
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.quick-actions .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
}

.quick-actions .btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

.quick-actions .btn-secondary {
  background: linear-gradient(135deg, var(--gray), var(--dark-color));
  border: none;
}

.quick-actions .btn-secondary:hover {
  background: linear-gradient(135deg, var(--dark-color), var(--gray));
}

/* Section horaires d'ouverture */
.business-hours {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(210, 105, 30, 0.1);
  margin-top: 2rem;
}

.business-hours h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hours-table {
  width: 100%;
}

.hours-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--dark-color);
}

.hours-table td:last-child {
  color: var(--gray);
  text-align: right;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

/* Formulaire de contact amélioré */
.contact-form-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(210, 105, 30, 0.1);
}

.contact-form-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 2px solid rgba(210, 105, 30, 0.2);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
}

.contact-form .btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.contact-form .btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

/* Section carte */
.map-section {
  background: var(--gray-light);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.map-section h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.map-container {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(210, 105, 30, 0.1);
}

.map-iframe {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-info {
  margin-top: 1.5rem;
}

.map-info h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-areas {
  list-style: none;
  padding: 0;
}

.service-areas li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(210, 105, 30, 0.1);
  color: var(--dark-color);
}

.service-areas li:last-child {
  border-bottom: none;
}

.service-areas i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Section FAQ */
.faq-section {
  background: var(--white);
  padding: 4rem 0;
  margin-top: 3rem;
}

.faq-section h2 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.faq-accordion .accordion-item {
  border: 1px solid rgba(210, 105, 30, 0.2);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-accordion .accordion-button {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(210, 105, 30, 0.25);
}

.faq-accordion .accordion-body {
  padding: 1.5rem;
  background: var(--white);
  color: var(--dark-color);
  line-height: 1.6;
}

/* Amélioration de l'espacement global */
.contact-main .row {
  align-items: flex-start;
}

.contact-main .col-lg-4 {
  margin-bottom: 3rem;
}

.contact-main .col-lg-8 {
  margin-bottom: 3rem;
}

/* Responsive pour la page contact */
@media (max-width: 992px) {
  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-info-card {
    padding: 1.5rem;
  }

  .contact-form-card {
    padding: 1.5rem;
  }

  .map-container {
    padding: 1rem;
  }

  .section.contact-main {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 50vh;
    padding-top: 80px;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-item-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .map-iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 1.8rem;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1rem;
  }

  .faq-accordion .accordion-button {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Ajustements pour iPhone XR, XS Max (414px) */
@media (max-width: 414px) {
  .hero-section {
    min-height: 100vh;
    padding: 0.8rem 0 5rem 0;
  }

  .hero-title {
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.8rem;
    padding-top: 70px; /* Espace pour la navbar sur iPhone XR/XS Max */
    max-width: 100%;
  }
}

/* Ajustements pour iPhone 8 Plus, 7 Plus, 6S Plus (399px) */
@media (max-width: 399px) {
  .hero-section {
    min-height: 100vh;
    padding: 0.7rem 0 5rem 0;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.88rem;
    margin-bottom: 1.3rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.7rem;
    padding-top: 70px; /* Espace pour la navbar sur iPhone 8 Plus/7 Plus/6S Plus */
    max-width: 100%;
  }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 400px) {
  .hero-section {
    min-height: 100vh;
    padding: 0.5rem 0 6rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.6rem;
    padding-top: 65px; /* Espace pour la navbar sur très petits écrans */
    max-width: 100%;
  }

  .booking-form {
    margin: 0.25rem 0.25rem 0 0.25rem;
    padding: 0.75rem 0.75rem 1rem 0.75rem;
    position: relative;
    z-index: 30;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    max-width: calc(100vw - 0.5rem);
  }

  .section {
    margin-top: 4rem;
  }

  .booking-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-control {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* Ajustements pour les très très petits écrans */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.5rem;
    padding-top: 60px; /* Espace pour la navbar sur très très petits écrans */
    max-width: 100%;
  }
}

/* Ajustements pour les écrans en orientation paysage avec hauteur réduite */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 0.5rem 0 2rem 0;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .hero-content {
    padding: 0.3rem;
    padding-top: 50px; /* Espace pour la navbar en orientation paysage */
    max-width: 100%;
  }
}
