/* ============================
   MXBZH - CSS BASE
   Variables, Reset, Boutons, Badges
   ============================ */

/* ============================
   VARIABLES
   ============================ */

html,
body {
  font-family: 'Sora', sans-serif;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Empêche le scroll global sur iOS */
  background-color: #0f172a;
  /* Fond fixe */
  -webkit-text-size-adjust: 100%;
}

:root {
  background-color: #0f172a;
  --bg: #ffffff;
  --bg-alt: #f2f4f8;
  --card: #ffffff;
  --accent: #095bd7;
  --accent-soft: rgba(15, 74, 163, 0.12);
  --text: #0d1117;
  --muted: rgba(13, 17, 23, 0.55);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --duration: 0.4s;
  --shadow: 0 20px 40px rgba(15, 74, 163, 0.05);
}

/* Wrapper principal pour le scroll */
#app {
  height: 100%;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Scroll natif iOS fluide */
  background-color: #0f172a;
  /* Continuité du fond */
  /* SUPPRIMÉ: position: relative - causait des problèmes de stacking context */
}

/* Désactivation du blur sur iOS pour éviter les bugs de rendu - SAUF navbar */
@supports (-webkit-touch-callout: none) {
  *:not(.floating-navbar):not(.floating-navbar *) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* FIX iOS Safari: Forcer le rendu GPU de la navbar */
  .floating-navbar {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Suppression de l'ancien fix ios-bg car remplacé par html/body */
#ios-bg {
  display: none !important;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.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;
}

/* ============================
   BOUTONS
   ============================ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  font-weight: 400;
  font-size: 12px;
  transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
  text-decoration: none;
}

.btn-primary {
  background: #0071e3;
  color: #ffffff;
  padding: 8px 16px;
}

.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: #0071e3;
  padding: 8px 16px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

.full {
  width: 100%;
}

.contact-btn {
  position: relative;
  background: #1a1a1a !important;
  border: none !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 74, 163, 0.4) !important;
  background: linear-gradient(135deg, #0f4aa3, #1a67e3) !important;
}

.contact-btn:active {
  background: linear-gradient(135deg, #0f4aa3, #1a67e3) !important;
}

/* ============================
   BADGES
   ============================ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.55rem;
}

.badge-green {
  background: rgba(29, 177, 120, 0.15);
  color: #0e8356;
}

.badge-orange {
  background: rgba(255, 172, 74, 0.08);
  color: #cb7d1c;
}

.badge-grey {
  background: rgba(13, 17, 23, 0.04);
  color: rgba(13, 17, 23, 0.5);
}

/* ============================
   SECTIONS
   ============================ */

.section {
  padding: 5rem 0;
  background: #ffffff;
  scroll-margin-top: 80px;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  color: #0d1117;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-text,
.section-subtitle {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================
   ANIMATIONS GLOBALES
   ============================ */

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================
   CACHER TOUTES LES PHOTOS DE PROFIL
   ============================ */
.profile-avatar,
#profileModal .profile-avatar,
.dash-user-avatar,
.dash-sidebar-avatar,
.user-avatar,
.avatar,
.terrain-airbnb-owner-avatar,
[class*="avatar"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
}


/* Ajuster l'espacement sans avatar */
#profileModal .profile-modal-content h2,
.profile-modal-content h2 {
  margin-top: 0 !important;
}

#profileModal .profile-main-section,
.profile-main-section {
  padding-top: 1rem !important;
}