/* Variables des couleurs */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0ea5e9;
  --accent: #fbbf24;
  --light: #f8fafc;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-hover: linear-gradient(135deg, var(--secondary), var(--primary));
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.16);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
  }
  
  body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
  }
  
  html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
  a {
    text-decoration: none;
    color: inherit;
  }
  
/* ===== NAVBAR DESKTOP ===== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #002b5b;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.8rem;
    z-index: 1000;
    box-sizing: border-box; /* Ajoute cette ligne */
    overflow-x: auto;       /* Ajoute cette ligne pour éviter le débordement */
}
  
  .navbar  {
    font-size: 0.8rem;
    font-weight: bold;
  }
 .logo img {
  height: 28px;
  width: auto;
  margin-right: 6px;
}
  .navbar .nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    flex-wrap: wrap; /* Ajoute cette ligne */
    overflow-x: auto; /* Ajoute cette ligne */
}
  
  .navbar .nav-links li a {
    color: white;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
  }
  
  .navbar .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f9ca24;
    transition: width 0.3s;
  }
  
  .navbar .nav-links li a:hover::after {
    width: 100%;
  }
  
  
  /* ===== MENU TOGGLE MOBILE AVANCÉ ===== */
.menu-button {
  display: flex;
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, #002b5b 60%, #0ea5e9 100%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  font-size: 2.2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,43,91,0.18);
  z-index: 1200;
  cursor: pointer;
  border: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.menu-button:active {
  transform: scale(0.96);
  box-shadow: 0 4px 16px rgba(0,43,91,0.22);
}
.menu-button i {
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}
.menu-button.open i {
  transform: rotate(90deg) scale(1.2);
}

/* Overlay menu avancé */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 91, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(.4,0,.2,1);
  z-index: 1150;
  backdrop-filter: blur(8px);
}
.overlay-menu.active {
  opacity: 1;
  pointer-events: all;
}
.overlay-menu .close-menu {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.2s;
}
.overlay-menu .close-menu:hover {
  color: #ffd700;
}
.overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 400px;
}
.overlay-menu ul li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: menuFadeIn 0.6s forwards;
}
.overlay-menu.active ul li {
  animation-play-state: running;
}
.overlay-menu ul li:nth-child(1) { animation-delay: 0.15s; }
.overlay-menu ul li:nth-child(2) { animation-delay: 0.25s; }
.overlay-menu ul li:nth-child(3) { animation-delay: 0.35s; }
.overlay-menu ul li:nth-child(4) { animation-delay: 0.45s; }
.overlay-menu ul li:nth-child(5) { animation-delay: 0.55s; }
.overlay-menu ul li:nth-child(6) { animation-delay: 0.65s; }
.overlay-menu ul li:nth-child(7) { animation-delay: 0.75s; }
.overlay-menu ul li:nth-child(8) { animation-delay: 0.85s; }

@keyframes menuFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.overlay-menu ul li a {
  font-size: 2.1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.6em 2.2em;
  border-radius: 18px;
  background: linear-gradient(90deg, #002b5b 0%, #0ea5e9 100%);
  box-shadow: 0 2px 16px rgba(0,43,91,0.10);
  transition: background 0.25s, color 0.25s, transform 0.18s;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.overlay-menu ul li a:hover,
.overlay-menu ul li a:focus {
  background: linear-gradient(90deg, #0ea5e9 0%, #002b5b 100%);
  color: #ffd700;
  transform: scale(1.06) translateX(8px);
  box-shadow: 0 4px 24px rgba(0,198,255,0.18);
  outline: none;
}
.overlay-menu ul li a i {
  font-size: 1.5em;
  margin-right: 0.7em;
  color: #ffd700;
  transition: color 0.3s;
}
.overlay-menu ul li a:hover i {
  color: #fffde4;
}

/* Menu mobile overlay en haut de l'écran */
.overlay-menu.top-menu {
  top: 0;
  left: 0;
  right: 0;
  bottom: unset;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 43, 91, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  transition: opacity 0.45s cubic-bezier(.4,0,.2,1);
  z-index: 1150;
  backdrop-filter: blur(8px);
}
.overlay-menu.top-menu .close-menu {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.2s;
}
.overlay-menu.top-menu ul {
  margin-top: 90px;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.overlay-menu.top-menu ul li a {
  font-size: 2rem;
  padding: 1.1em 2.2em;
  border-radius: 18px;
  background: linear-gradient(90deg, #002b5b 0%, #0ea5e9 100%);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(0,43,91,0.10);
  transition: background 0.25s, color 0.25s, transform 0.18s;
}
.overlay-menu.top-menu ul li a:hover,
.overlay-menu.top-menu ul li a:focus {
  background: linear-gradient(90deg, #0ea5e9 0%, #002b5b 100%);
  color: #ffd700;
  transform: scale(1.06) translateX(8px);
  box-shadow: 0 4px 24px rgba(0,198,255,0.18);
  outline: none;
}
.overlay-menu.top-menu ul li a i {
  font-size: 1.5em;
  margin-right: 0.7em;
  color: #ffd700;
  transition: color 0.3s;
}
.overlay-menu.top-menu ul li a:hover i {
  color: #fffde4;
}
@media (max-width: 900px) {
  .navbar .nav-links {
    display: none !important;
  }
  .menu-button {
    display: flex;
  }
  .overlay-menu.top-menu ul {
    max-width: 98vw;
  }
  .overlay-menu.top-menu ul li a {
    font-size: 1.3rem;
    padding: 1em 1.2em;
  }
}

@media (max-width: 900px) {
  .navbar {
    display: none !important;
  }
}
/* ===== BOUTON FLOTTANT (Mobile) ===== */
  .menu-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #004080;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1100;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .menu-button:hover {
    background: #003060;
  }
  
  /* ===== OVERLAY MENU (Mobile) ===== */
  .overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 91, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1050;
  }
  
  .overlay-menu.active {
    transform: scale(1);
    opacity: 1;
  }
  
  .overlay-menu ul {
    list-style: none;
    text-align: center;
  }
  
  .overlay-menu ul li {
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
  }
  
  .overlay-menu ul li:nth-child(1) { animation-delay: 0.2s; }
  .overlay-menu ul li:nth-child(2) { animation-delay: 0.4s; }
  .overlay-menu ul li:nth-child(3) { animation-delay: 0.6s; }
  .overlay-menu ul li:nth-child(4) { animation-delay: 0.8s; }
  
  .overlay-menu ul li a {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  
  .overlay-menu ul li a:hover {
    color: #f9ca24;
  }
  
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .navbar .nav-links {
      display: none;
    }
  
    .menu-button {
      display: flex;
    }
  }

  @media (max-width: 1200px) {
  .navbar {
    padding: 1rem 1.2rem;
  }
}
@media (max-width: 700px) {
  .navbar {
    padding: 0.7rem 0.5rem;
  }
}
  

/* Section fonctionnement avancée */
.advanced-fonctionnement {
  background: linear-gradient(135deg, #002b5b 100%, #0ea5e9 0%);
  color: #fff;
  padding: 4rem 2rem 5rem 2rem;
  border-radius: 0 0 40px 40px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,43,91,0.10);
}
.advanced-fonctionnement h2 {
  color: #ffe082;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 2.5rem;#0ea5e9 10%
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px #002b5b;
}
.etapes-container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.advanced-etape {
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0,43,91,0.10);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1.5px solid #ffe08233;
  position: relative;
  overflow: hidden;
}
.advanced-etape:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px #ffe08244;
}
.advanced-etape i {
  font-size: 2.8rem;
  color: #ffe082;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 2px 8px 0002b5b);
  transition: color 0.3s;
}
.advanced-etape h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
  letter-spacing: 0.01em;
}
.advanced-etape p {
  color: #e0e7ef;
  font-size: 1.05rem;
  margin: 0;
}

/* Responsive fonctionnement */
@media (max-width: 900px) {
  .etapes-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .advanced-fonctionnement {
    padding: 2.5rem 0.5rem 3rem 0.5rem;
    border-radius: 0 0 24px 24px;
  }
 
}
  
  /* TYPES DE BIENS */
  .types-section {
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
  }
  
  .types-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  
  .type-card {
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 200px;
  }
  
  .type-card:hover {
    transform: translateY(-10px);
    background: #e0e0e0;
  }
  
  .type-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #002b5b
  }
  
  /* SECTION FILTRE */
  .filtre-section {
    background: #e9f0fa;
    padding: 4rem 2rem;
  }
  
  .filtre-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .filtre-form input,
  .filtre-form select,
  .filtre-form button {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-width: 200px;
  }
  
  .filtre-form button {
    background-color: #004080;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .filtre-form button:hover {
    background-color: #003366;
  }
  
.ia-helper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}
#ia-helper-btn {
  background: linear-gradient(90deg, #002b5b 80%, #0056b3 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.9em 2em;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px #002b5b22;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7em;
  transition: background 0.2s, transform 0.2s;
}
#ia-helper-btn i {
  font-size: 1.3em;
  color: #ffd700;
}
#ia-helper-btn:hover {
  background: linear-gradient(90deg, #0056b3 80%, #002b5b 100%);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 600px) {
  .ia-helper {
    margin-bottom: 0.7rem;
    padding: 0 0.2rem;
  }
  #ia-helper-btn {
    padding: 0.7em 0.8em;
    font-size: 0.98rem;
    border-radius: 22px;
    gap: 0.5em;
    width: 100%;
    min-width: 0;
    max-width: 99vw;
    box-sizing: border-box;
    justify-content: center;
  }
  #ia-helper-btn i {
    font-size: 1.1em;
  }
}
/* Bouton flottant */
#ia-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #004080;
   
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Fenêtre du chatbot */
#ia-chatbox {
  display: none 
  ;
   flex-direction: column;
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  overflow: hidden;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
}

/* En-tête */
.chat-header {
  background:  #003366
  color: white;
  padding: 12px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

/* Zone des messages */
#chat-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
}

/* Input utilisateur */
.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.chat-input button {
  background:  #003366;
  color: white;
  border: none;
  padding: 10px 15px;
  margin-left: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.chat-input button:hover {
  background:  #003366;
}

/* Messages généraux */
.message {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 20px;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Utilisateur : à droite, bleu */
.message.user {
  align-self: flex-end;
  background-color:  #003366;
  color: white;
  border-top-right-radius: 0;
}

/* IA : à gauche, blanc */
.message.ia {
  align-self: flex-start;
  background-color: white;
  color: #333;
  border-top-left-radius: 0;
}

/* Animation "en train d’écrire..." */
.typing-indicator {
  display: inline-block;
  background: white;
  color: #555;
  padding: 10px 12px;
  border-radius: 20px;
  max-width: 60%;
  font-size: 13px;
  align-self: flex-start;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

.typing-indicator::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 6px;
  height: 6px;
  background:  #003366
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.typing-indicator::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 6px;
  background:  #003366;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.4);
    opacity: 1;
  }
}


/* Ajoute à la fin de main1.css ou main.css */

/* Modale centrale responsive pour les biens */
#modalDetailBien {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,43,91,0.25);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 0 10px;
}

#modalDetailBien .modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 600px;
  width: 95vw;
  margin: 40px auto;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,43,91,0.18);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.4s cubic-bezier(.4,0,.2,1);
}

@keyframes modalIn {
  from { transform: translateY(40px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

#modalDetailBien .close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  color: #002b5b;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
  z-index: 10;
}
#modalDetailBien .close-modal:hover {
  color: #e74c3c;
}

#modalDetailBien .modal-content p {
  word-break: break-word;
  white-space: normal;
  max-width: 98vw;
  margin-bottom: 1em;
  line-height: 1.6;
}

#modalDetailBien .modal-content h2 {
  font-size: 1.5rem;
  color: #002b5b;
  margin-bottom: 0.7em;
  font-weight: 700;
  text-align: center;
}

#modalDetailBien .modal-content img {
  max-width: 98vw !important;
  height: auto !important;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,43,91,0.13);
  transition: transform 0.2s;
}

#modalDetailBien .modal-content img:hover {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  #modalDetailBien {
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  #modalDetailBien .modal-content {
    max-width: 100vw !important;
    width: 100vw !important;
    min-width: 0 !important;
    padding: 1rem 0.5rem !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #modalDetailBien .close-modal {
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
  }
}
#loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s;
}

.loader-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px #002b5b22;
  position: relative;
  z-index: 2;
  object-fit: contain;
}

.loader-circle {
  position: absolute;
  top: 0; left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid #002b5b;
  border-top: 5px solid #ffd700;
  border-bottom: 5px solid #ffd700;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  box-sizing: border-box;
  animation: loader-spin 1.2s linear infinite;
  z-index: 1;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

body.loaded #loader {
  opacity: 0;
  pointer-events: none;
}

.recherche-header {
  background: linear-gradient(90deg, #002b5b 80%, #0056b3 100%);
  color: #fff;
  border-radius: 18px;
  padding: 2rem 1rem 1.2rem 1rem;
  margin: 2rem auto 1.2rem auto;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,43,91,0.09);
}
.recherche-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffd700;
  letter-spacing: 1px;
}
.recherche-header h2 i {
  margin-right: 0.5em;
  color: #ffd700;
}
.recherche-sous-titre {
  font-size: 1.1rem;
  color: #e0e6f0;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .recherche-header {
    padding: 1.1rem 0.4rem 0.7rem 0.4rem;
    margin: 1.1rem auto 0.7rem auto;
    max-width: 98vw;
    border-radius: 10px;
  }
  .recherche-header h2 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }
  .recherche-sous-titre {
    font-size: 0.98rem;
  }
}

.logo img, .header-logo img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 8px;
}
.container {
            max-width: 900px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .choix-recherche {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.2);
        }

        .choix-recherche label {
            font-weight: 600;
            color: #2c3e50;
            margin-right: 15px;
            font-size: 18px;
        }

        select, input {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e1e8ed;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: rgba(255,255,255,0.9);
        }

        select:focus, input:focus {
            outline: none;
            border-color: #3498db;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52,152,219,0.3);
        }

        #form-recherche {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            border: 1px solid rgba(255,255,255,0.2);
        }

        #champs-communs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 15px;
        }

        label i {
            margin-right: 10px;
            color: #3498db;
            width: 20px;
            text-align: center;
        }

        .button-primary {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 18px 40px;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            margin-top: 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .button-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(52,152,219,0.4);
        }

        .button-primary:active {
            transform: translateY(-1px);
        }

        .loading {
            text-align: center;
            padding: 50px;
            color: white;
            font-size: 20px;
            background: rgba(52,152,219,0.1);
            border-radius: 15px;
            margin-top: 30px;
        }

        .loading i {
            margin-right: 15px;
            font-size: 24px;
        }

        #champs-biens, #champs-logements {
            display: none;
            margin-top: 25px;
            padding-top: 25px;
            border-top: 2px solid #ecf0f1;
        }

        #champs-logements.visible {
            display: block;
            animation: fadeInUp 0.5s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            #champs-communs {
                grid-template-columns: 1fr;
            }
            
            .container {
                padding: 20px 15px;
            }
            
            #form-recherche {
                padding: 25px;
            }
        }
 

/* ====== POURQUOI NOUS (couleur dominante #002b5b) ====== */
#apropos {
  background: #fff;
  padding: 3rem 0 2rem 0;
  border-radius: 18px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0,43,91,0.07);
 
}
#apropos h2 {
  color: #002b5b;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}
#apropos h2 i {
  margin-right: 10px;
  color: #e67e22;
}
.pourquoi-nous-grid-item {
  background: #fff !important;
  border: 2.5px solid #002b5b !important;
  color: #002b5b !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(0,43,91,0.08);
  padding: 2rem 1.5rem;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;

  
}

.pourquoi-nous-grid{
  display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 50px;
  
}
.pourquoi-nous-grid-item i {
  font-size: 2.5rem;
  color: #002b5b !important;
  margin-bottom: 0.7rem;
}

.pourquoi-nous-grid-item h4 {
  color: #002b5b !important;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.pourquoi-nous-grid-item p {
  color: #002b5b !important;
  font-size: 1rem;
}
@media (max-width: 900px) {
  #services ul, .pourquoi-nous-grid {
    flex-direction: column;
    align-items: center;
  }
  #services li, .pourquoi-nous-grid-item {
    min-width: 90vw;
    max-width: 98vw;
  }
}



#comment-fonctionne {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

#comment-fonctionne::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0,123,255,0.05) 50%, transparent 51%);
}

#comment-fonctionne .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

#comment-fonctionne h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #2c3e50;
    font-weight: 700;
}

#comment-fonctionne h2 i {
    margin-right: 15px;
    color: #007bff;
    animation: bounce 2s infinite;
}

.comment-ca-marche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.comment-ca-marche-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-ca-marche-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: all 0.6s ease;
}

.comment-ca-marche-item:hover::before {
    left: 100%;
}

.comment-ca-marche-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.comment-ca-marche-item i {
    font-size: 3.5rem;
    color: #007bff;
    margin-bottom: 25px;
    display: block;
    transition: all 0.3s ease;
}

.comment-ca-marche-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #0056b3;
}

.comment-ca-marche-item h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.comment-ca-marche-item p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
}

/* Nouveau menu mobile en haut à droite */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index:   1201;
  background: #002b5b;
  color: #fff;
  border-radius: 50%;
  padding: 12px 14px;
  font-size: 1.7rem;
  box-shadow: 0 2px 8px rgba(0,43,91,0.18);
  cursor: pointer;
  border: none;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
  .navbar .nav-links { display: none !important; }
}
@media (max-width: 600px) {
  #comment-fonctionne h2 {
    font-size: 1.3rem;
    margin-bottom: 30px;
  }
  .comment-ca-marche-item h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }
  .comment-ca-marche-item p {
    font-size: 0.95rem;
  }
  .comment-ca-marche-item i {
    font-size: 2.1rem;
    margin-bottom: 12px;
  }
  .comment-ca-marche-item {
    padding: 18px 10px;
  }
}

/* Menu mobile slide depuis la droite */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; right: -100vw;
  width: 75vw;
  max-width: 340px;
  height: 100vh;
  background: #002b5b;
  color: #fff;
  z-index: 1200;
  padding: 32px 24px 24px 24px;
  transition: right 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: -2px 0 16px rgba(0,43,91,0.18);
}
.mobile-menu.active { right: 0; }
.close-mobile-menu {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  width: 100%;
}
.mobile-menu ul li {
  margin: 18px 0;
}
.mobile-menu ul li a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
  padding: 10px 0;
}
.mobile-menu ul li a:hover {
  color: #0ea5e9;
}
/* Cache le menu mobile sur desktop */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===== MENU MOBILE PROFESSIONNEL (identique ACCC.THML) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-toggle:hover {
    background: rgba(103, 126, 234, 0.1);
    transform: scale(1.05);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(103, 126, 234, 0.3) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.menu-toggle:active::before {
    width: 100px;
    height: 100px;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 7px; }
.hamburger span:nth-child(3) { top: 14px; }

.hamburger.open span:nth-child(1) {
    top: 7px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 7px;
    transform: rotate(-135deg);
}
.profile-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto; /* si tu veux aligner à droite */
}

.profile-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-initials {
  font-weight: bold;
  font-size: 1.2em;
  color: #2563eb;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon:hover {
    transform: scale(1.1);
    visibility: visible;
}

.menu-container {
    position: fixed;
    top: 0;
   
     width: 100vw;
    max-width: 100vw;
    min-width: 0;
    left: -100vw;
    padding: 0;
    box-sizing: border-box;
    
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    overflow-y: auto;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.1);
}

.menu-container.active {
    left: 0;
}

.menu-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.menu-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.menu-subtitle {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }

.menu-content {
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.4s ease forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(103, 126, 234, 0.05);
    color: #667eea;
    transform: translateX(5px);
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .menu-container {
        width: 95%;
    }
}

/* Affichage uniquement sur mobile */
@media (min-width: 901px) {
    .header, .menu-overlay, .menu-container { display: none !important; }
}
@media (max-width: 900px) {
  .header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.95);
    padding: 2px 8px;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #002b5b;
    pointer-events: none;
    user-select: none;
    height: 40px;
    line-height: 40px;
    max-width: 70vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-logo img {
    height: 28px;
    width: auto;
    margin-right: 6px;
    display: block;
    max-width: 32px;
  }
  .profile-icon {
    order: 3;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    overflow: hidden;
    position: static;
  }
  .profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
}
.adresse-quartier {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prix-statut {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.prix-statut .prix {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1rem;
}
.prix-statut .statut {
  font-size: 0.85rem;
  padding: 0.2em 0.7em;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .btn-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  .btn-actions .btn {
    width: 48%;
    margin: 0;
  }
}



/* ==========================================
   CSS AVANCÉ ET PROFESSIONNEL - RESPONSIVE
   Couleur principale: #002b5b
   ========================================== */

/* Variables CSS pour une maintenance facile */
:root {
    --primary-color: #002b5b;
    --primary-light: #1a4480;
    --primary-dark: #001a3d;
    --secondary-color: #f8f9fa;
    --accent-color: #007bff;
   
    --text-white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 43, 91, 0.1);
    --box-shadow-strong: 0 8px 40px rgba(0, 43, 91, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}


/* ==========================================
   SECTION SERVICES
   ========================================== */
#services {
    padding: 80px 0;
    background: #ffffff
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 43, 91, 0.03) 0%, transparent 70%);
    z-index: 1;
}

#services .container {
    position: relative;
    z-index: 2;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

#services h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

#services h2 i {
    margin-right: 15px;
    color: var(--accent-color);
    font-size: 2.2rem;
    vertical-align: middle;
}

#services ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

#services li {
    background: white;
    padding: 15px 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    overflow: hidden;
}

#services li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: var(--transition);
    z-index: 1;
}

#services li:hover::before {
    left: 0;
}

#services li:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-left-width: 6px;
}

#services li::after {
    content: '→';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 2;
}

#services li:hover::after {
    opacity: 1;
    transform: translateX(0);
}

#services li {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

@media (max-width: 700px) {
  #services ul {
    list-style: decimal inside;
    padding-left: 0;
    background: #fff !important;
  }
  #services li {
    margin-bottom: 0.5rem !important;
    font-size: 1.05rem;
    padding-left: 0.5rem;
    background: #fff !important;
    border-left: 4px solid #002b5b;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,43,91,0.04);
  }
  #services li:last-child {
    margin-bottom: 0 !important;
  }
}



/* ==========================================
   SECTION AJOUT TÉMOIGNAGE
   ========================================== */
.ajout-temoignage-section {
    padding: 80px 0;
    background: rgb(9, 1, 22);
    position: relative;
}

.ajout-temoignage-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gradient-primary);
    margin-bottom: 40px;
}

.ajout-temoignage-section h2 i {
    margin-right: 15px;
    color: var(--accent-color);
}

.avis-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.avis-form input,
.avis-form textarea {
    padding: 18px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    resize: vertical;
}

.avis-form input:focus,
.avis-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 43, 91, 0.1);
    transform: translateY(-2px);
}

.avis-form textarea {
    min-height: 120px;
}

.avis-form button {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 18px 30px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.avis-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transition: var(--transition);
}

.avis-form button:hover::before {
    left: 100%;
}

.avis-form button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.avis-form button i {
    margin-right: 10px;
}
.notification {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.18);
  z-index: 99999;
  font-family: Arial, sans-serif;
  font-size: 1.08rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  max-width: 90vw;
  text-align: center;
  word-break: break-word;
}

.notification.show {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 600px) {
  .notification {
    top: 10px;
    padding: 10px 8vw;
    font-size: 0.98rem;
    max-width: 98vw;
    border-radius: 6px;
  }
}


.notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================
   SECTION NEWSLETTER
   ========================================== */
.newsletter-section {
    padding: 80px 0;
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;.ajout-temoignage-section {
  background-color: #001a3d;
  height: 60px;
}


    
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gradient-primary);
    margin-bottom: 40px;
    text-align: center;
}

.newsletter-form:hover {
    box-shadow: var(--box-shadow-strong);
}


.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* <-- Correction ici */
    gap: 10px;
    background: white;
    padding: 5px 20px 20px 20px;
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    align-items: stretch;
}
.newsletter-form input {
    
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: #f8fafc;
    margin-bottom: 0;
}
.newsletter-form button {
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 1.1rem;
    margin-top: 0;
}
/* ...existing code... */
.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 43, 91, 0.3);
}

/* ==========================================
   PERFORMANCE ET OPTIMISATIONS
   ========================================== */

/* Optimisation GPU */
.gpu-optimized {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Préchargement des transitions */
* {
    will-change: auto;
}


#services li,
.avis-form button,
.newsletter-form button {
    will-change: transform;
}


.newt {
  display: flex;
  flex-direction: row;
}
/* =========================================
   SECTION TÉMOIGNAGES (CITATIONS ÉLÉGANTES)
   ========================================== */
.temoignages-section {
    padding: 80px 20px;
    color: #160338;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;

}

.temoignages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><pattern id='grain' width='100' height='100' patternUnits='userSpaceOnUse'><circle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.05)'/></pattern></defs><rect width='100' height='100' fill='url(%23grain)'/></svg>") repeat;
    z-index: 1;
    opacity: 0.5;
}

.temoignages-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.temoignages-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #100538;
}

.temoignages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.temoignage-card {
    backdrop-filter: blur(12px);
    padding: 25px 30px;
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: white;
    overflow: hidden;
}

.temoignage-card::before,
.temoignage-card::after {
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #0d0333; /* bleu nuit */
    position: absolute;
    z-index: 0;
}

.temoignage-card::before {
    content: "“";
    top: -10px;
    left: 15px;
}

.temoignage-card::after {
    content: "”";
    bottom: -10px;
    right: 15px;
}

.temoignage-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.temoignage-card .nom {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #f70707;
    position: relative;
    z-index: 1;
}

.temoignage-card .message {
    font-style: italic;
    color: rgba(1, 0, 3, 0.95);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Responsive Ajustements */
@media (max-width: 768px) {
    .temoignages-section {
        padding: 50px 10px;
    }

    .temoignages-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .temoignage-card {
        padding: 20px;
    }

    .temoignages-container {
        grid-template-columns: 1fr;
    }
    .newt {
      display: flex;
      flex-direction: column;
    
     justify-content: center;
     align-items: center;
     margin-left: 20px;
     margin-right: 20px;
    }
}



/* Couleur principale boutons */
.avis-form button,
.newsletter-form button {
  background: #002b5b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 0.7rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px #002b5b22;
}
.avis-form button:hover,
.newsletter-form button:hover {
  background: #0056b3;
}

/* Blocs témoignage et newsletter responsive */
.ajout-temoignage-section,
.newsletter-section {
  max-width: 430px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,43,91,0.07);
  padding: 2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .ajout-temoignage-section,
  .newsletter-section {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
    margin: 1.2rem 0.2rem;
    border-radius: 10px;
  }
  .avis-form input,
  .avis-form textarea,
  .newsletter-form input[type="email"] {
    font-size: 1.05rem;
    padding: 0.9rem 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }
  .avis-form button,
  .newsletter-form button {
    font-size: 1.08rem;
    padding: 1rem 0;
    width: 100%;
  }
}

/* Footer avancé */
.footer {
  background: linear-gradient(90deg, #002b5b 80%, #0056b3 100%);
  color: #fff;
  padding: 2rem 0 0.5rem 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-top: 3rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-section {
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 0.4rem;
}
.footer-section h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffd700;
  letter-spacing: 1px;
}
.footer-section p,
.footer-section ul,
.footer-section li {
  font-size: 2rem;
  color: #e0e6f0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-section ul {
  margin-top: 0.5rem;
}
.footer-section ul li {
  margin-bottom: 0.6rem;
}
.footer-section ul li a {
  color: #e0e6f0;
  text-decoration: none;
  transition: color 0.2s;
  padding-left: 0.2em;
}
.footer-section ul li a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.footer-section .socials {
  margin-top: 1rem;
}
.footer-section .socials a {
  display: inline-block;
  margin-right: 0.7rem;
  color: #ffd700;
  font-size: 1.3rem;
  transition: transform 0.2s, color 0.2s;
}
.footer-section .socials a:hover {
  color: #fff;
  transform: scale(1.18) rotate(-8deg);
}
.footer-bottom {
  text-align: center;
  color: #e0e6f0;
  font-size: 1rem;
  border-top: 1px solid #ffffff22;
  padding: 1.2rem 0 0.2rem 0;
  margin-top: 1.5rem;
  letter-spacing: 0.5px;
  background: transparent;
}

/* Responsive footer */
/* ...existing code... */

/* Footer responsive amélioré pour mobile */
@media (max-width: 600px) {
  .footer-section h3 {
    font-size: 1.4rem !important;
    margin-bottom: 0.7rem;
  }
  .footer-section p,
  .footer-section ul,
  .footer-section li {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }
  .footer-section ul li {
    margin-bottom: 0.4rem;
  }
  .footer-section .socials a {
    font-size: 1.5rem !important;
    margin-right: 1rem;
  }
  .footer-bottom {
    font-size: 1rem !important;
    padding: 0.7rem 0 0.2rem 0 !important;
  }
  .footer-section {
    padding-bottom: 0.5rem;
  }
}

/* Pour les très petits écrans */
@media (max-width: 400px) {
  .footer-section h3 {
    font-size: 1.1rem !important;
  }
  .footer-section p,
  .footer-section ul,
  .footer-section li {
    font-size: 0.98rem !important;
  }
  .footer-section .socials a {
    font-size: 1.2rem !important;
  }
  .footer-bottom {
    font-size: 0.95rem !important;
  }
}
/* Suppose que ta navbar fait 60px de haut sur mobile */
@media (max-width: 700px) {
  .banner-hero {
    margin-top: 60px;
    min-height: 180px;
    height: 220px;
  }
}

/* Si ta navbar est plus haute, ajuste la valeur ! */



html, body {
  max-width: 100;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 600px) {
  .header,
  .banner-hero,
  .banner-caption,
  .footer,
  .newsletter-section,
  .ajout-temoignage-section,
  .container,
  #services ul,
  .temoignages-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }
  img, .logement-card, .temoignage-card {
    max-width: 100%;
    box-sizing: border-box;
  }
  .menu-container {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: -100vw;
    padding: 0 !important;
  }
}















/* ================================================
   CSS MOBILE AVANCÉ - INTERFACE PROFESSIONNELLE
   Couleurs principales: #002b5b, #0ea5e9, #ffd700
   ================================================ */

/* Variables CSS pour mobile */
:root {
  --primary-mobile: #002b5b;
  --secondary-mobile: #0ea5e9;
  --accent-mobile: #ffd700;
  --white-mobile: #ffffff;
  --light-mobile: #f8fafc;
 
  --success-mobile: #10b981;
  --warning-mobile: #f59e0b;
  --danger-mobile: #ef4444;
  
  /* Gradients mobiles */
  --gradient-primary-mobile: linear-gradient(135deg, var(--primary-mobile) 0%, var(--secondary-mobile) 100%);
  --gradient-accent-mobile: linear-gradient(135deg, var(--accent-mobile) 0%, #ffed4e 100%);
  --gradient-glass-mobile: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  /* Ombres mobiles */
  --shadow-mobile-sm: 0 2px 8px rgba(0, 43, 91, 0.08);
  --shadow-mobile-md: 0 4px 16px rgba(0, 43, 91, 0.12);
  --shadow-mobile-lg: 0 8px 32px rgba(0, 43, 91, 0.16);
  --shadow-mobile-xl: 0 12px 48px rgba(0, 43, 91, 0.20);
  
  /* Transitions mobiles */
  --transition-mobile-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mobile-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-mobile-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Rayons de bordure mobiles */
  --radius-mobile-sm: 8px;
  --radius-mobile-md: 12px;
  --radius-mobile-lg: 16px;
  --radius-mobile-xl: 24px;
  --radius-mobile-full: 50px;
}

/* ================================================
   RESET ET BASE MOBILE
   ================================================ */
@media (max-width: 768px) {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }
  
  html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-mobile);
    color: var(--dark-mobile);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }
}

/* ================================================
   HEADER MOBILE AVANCÉ AVEC ONGLETS
   ================================================ */
@media (max-width: 768px) {
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-primary-mobile);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-mobile-lg);
    padding: 0;
    height: auto;
  }
  
  /* Logo et titre */
  .mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white-mobile);
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  .mobile-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: var(--shadow-mobile-sm);
  }
  
  /* Bouton menu hamburger moderne */
  .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-mobile-md);
    padding: 8px;
    color: var(--white-mobile);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-mobile-smooth);
    backdrop-filter: blur(10px);
  }
  
  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
  
  /* Onglets de navigation */
  .mobile-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
  }
  
  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-tab {
    flex: 0 0 auto;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition-mobile-smooth);
    white-space: nowrap;
    position: relative;
  }
  
  .mobile-tab.active {
    color: var(--accent-mobile);
    border-bottom-color: var(--accent-mobile);
    background: rgba(255, 215, 0, 0.1);
  }
  
  .mobile-tab:hover {
    color: var(--white-mobile);
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Indicateur d'onglet actif */
  .mobile-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent-mobile);
    border-radius: 0 0 2px 2px;
  }
}

/* ================================================
   BANNIÈRE MOBILE PROFESSIONNELLE AVANCÉE
   ================================================ */
@media (max-width: 768px) {
  .mobile-banner {
    position: relative;
    height: 280px;
    margin-top: 120px; /* Espace pour le header fixe */
    overflow: hidden;
    border-radius: 0 0 var(--radius-mobile-xl) var(--radius-mobile-xl);
    box-shadow: var(--shadow-mobile-xl);
  }
  
  /* Container des slides */
  .mobile-banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .mobile-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-banner-slide.active {
    opacity: 1;
  }
  
  /* Overlay gradient */
  .mobile-banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
      rgba(0, 43, 91, 0.8) 0%, 
      rgba(14, 165, 233, 0.6) 50%, 
      rgba(0, 43, 91, 0.8) 100%);
    z-index: 1;
  }
  
  /* Contenu de la bannière */
  .mobile-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    color: var(--white-mobile);
  }
  
  .mobile-banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    background: var(--gradient-accent-mobile);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .mobile-banner-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  
  /* Bouton CTA dans la bannière */
  .mobile-banner-cta {
    background: var(--gradient-accent-mobile);
    color: var(--primary-mobile);
    padding: 12px 24px;
    border-radius: var(--radius-mobile-full);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-mobile-md);
    transition: var(--transition-mobile-bounce);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .mobile-banner-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-mobile-lg);
  }
  
  /* Contrôles de la bannière */
  .mobile-banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
  }
  
  .mobile-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition-mobile-smooth);
    border: 2px solid rgba(255, 255, 255, 0.6);
  }
  
  .mobile-banner-dot.active {
    background: var(--accent-mobile);
    border-color: var(--accent-mobile);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  }
  
  /* Flèches de navigation */
  .mobile-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--white-mobile);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-mobile-smooth);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-banner-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
  }
  
  .mobile-banner-nav.prev {
    left: 16px;
  }
  
  .mobile-banner-nav.next {
    right: 16px;
  }
  
  /* Contrôles auto/manuel */
  .mobile-banner-mode {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-mobile-full);
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--white-mobile);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .mobile-banner-mode-btn {
    background: none;
    border: none;
    color: var(--accent-mobile);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-mobile-sm);
    transition: var(--transition-mobile-fast);
  }
  
  .mobile-banner-mode-btn:hover {
    background: rgba(255, 215, 0, 0.2);
  }
}

/* ================================================
   SECTION RECHERCHE MOBILE AVANCÉE
   ================================================ */
@media (max-width: 768px) {
  .mobile-search-section {
    padding: 24px 16px;
    background: var(--white-mobile);
    margin: 16px;
    border-radius: var(--radius-mobile-lg);
    box-shadow: var(--shadow-mobile-md);
    position: relative;
    overflow: hidden;
  }
  
  .mobile-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary-mobile);
  }
  
  .mobile-search-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-mobile);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .mobile-search-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  /* Bouton IA Helper mobile */
  .mobile-ia-helper {
    background: var(--gradient-primary-mobile);
    color: var(--white-mobile);
    border: none;
    border-radius: var(--radius-mobile-full);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-mobile-bounce);
    box-shadow: var(--shadow-mobile-md);
  }
  
  .mobile-ia-helper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-mobile-lg);
  }
  
  /* Formulaire de recherche mobile */
  .mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-search-field {
    position: relative;
  }
  
  .mobile-search-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-mobile);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .mobile-search-input,
  .mobile-search-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-mobile-md);
    font-size: 1rem;
    background: var(--white-mobile);
    transition: var(--transition-mobile-smooth);
    -webkit-appearance: none;
    appearance: none;
  }
  
  .mobile-search-input:focus,
  .mobile-search-select:focus {
    outline: none;
    border-color: var(--secondary-mobile);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
  }
  
  .mobile-search-btn {
    background: var(--gradient-primary-mobile);
    color: var(--white-mobile);
    border: none;
    border-radius: var(--radius-mobile-md);
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-mobile-bounce);
    box-shadow: var(--shadow-mobile-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .mobile-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-mobile-lg);
  }
}

/* ================================================
   CHAT MOBILE AVANCÉ
   ================================================ */
@media (max-width: 768px) {
  /* Bouton chat flottant */
  .mobile-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary-mobile);
    border: none;
    border-radius: 50%;
    color: var(--white-mobile);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-mobile-lg);
    z-index: 999;
    transition: var(--transition-mobile-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-mobile-xl);
  }
  
  .mobile-chat-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--success-mobile);
    border-radius: 50%;
    border: 2px solid var(--white-mobile);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  /* Interface chat mobile */
  .mobile-chat-interface {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    background: var(--white-mobile);
    border-radius: var(--radius-mobile-xl) var(--radius-mobile-xl) 0 0;
    box-shadow: var(--shadow-mobile-xl);
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition-mobile-smooth);
    display: flex;
    flex-direction: column;
  }
  
  .mobile-chat-interface.active {
    transform: translateY(0);
  }
  
  .mobile-chat-header {
    background: var(--gradient-primary-mobile);
    color: var(--white-mobile);
    padding: 16px 20px;
    border-radius: var(--radius-mobile-xl) var(--radius-mobile-xl) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .mobile-chat-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--white-mobile);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-mobile-fast);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }
  
  .mobile-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--light-mobile);
  }
  
  .mobile-chat-input-container {
    padding: 16px;
    background: var(--white-mobile);
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    align-items: flex-end;
  }
  
  .mobile-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-mobile-full);
    font-size: 1rem;
    resize: none;
    max-height: 100px;
    transition: var(--transition-mobile-smooth);
  }
  
  .mobile-chat-input:focus {
    outline: none;
    border-color: var(--secondary-mobile);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  }
  
  .mobile-chat-send {
    background: var(--gradient-primary-mobile);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--white-mobile);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-mobile-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-chat-send:hover {
    transform: scale(1.1);
  }
}

/* ================================================
   FOOTER MOBILE OPTIMISÉ
   ================================================ */
@media (max-width: 768px) {
  .mobile-footer {
    background: var(--gradient-primary-mobile);
    color: var(--white-mobile);
    padding: 32px 16px 16px;
    margin-top: 40px;
  }
  
  .mobile-footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .mobile-footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-mobile);
  }
  
  .mobile-footer-section p,
  .mobile-footer-section li {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
  }
  
  .mobile-footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .mobile-footer-section a {
    color: var(--white-mobile);
    text-decoration: none;
    transition: var(--transition-mobile-fast);
  }
  
  .mobile-footer-section a:hover {
    color: var(--accent-mobile);
  }
  
  .mobile-footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
  }
  
  .mobile-footer-social {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-mobile);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-mobile-bounce);
  }
  
  .mobile-footer-social:hover {
    background: var(--accent-mobile);
    color: var(--primary-mobile);
    transform: scale(1.1);
  }
  
  .mobile-footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    opacity: 0.8;
  }
}

/* ================================================
   ANIMATIONS ET MICRO-INTERACTIONS
   ================================================ */
@media (max-width: 768px) {
  /* Animation d'apparition */
  .mobile-fade-in {
    animation: mobileFadeIn 0.6s ease-out;
  }
  
  @keyframes mobileFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animation de slide */
  .mobile-slide-up {
    animation: mobileSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes mobileSlideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  
  /* Animation de bounce */
  .mobile-bounce {
    animation: mobileBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  @keyframes mobileBounce {
    0% {
      transform: scale(0.8);
      opacity: 0;
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Effet de ripple pour les boutons */
  .mobile-ripple {
    position: relative;
    overflow: hidden;
  }
  
  .mobile-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }
  
  .mobile-ripple:active::before {
    width: 300px;
    height: 300px;
  }
}

/* ================================================
   UTILITAIRES MOBILE
   ================================================ */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-visible {
    display: block !important;
  }
  
  .mobile-flex {
    display: flex !important;
  }
  
  .mobile-grid {
    display: grid !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-text-left {
    text-align: left !important;
  }
  
  .mobile-text-right {
    text-align: right !important;
  }
  
  .mobile-w-full {
    width: 100% !important;
  }
  
  .mobile-h-full {
    height: 100% !important;
  }
  
  .mobile-p-0 { padding: 0 !important; }
  .mobile-p-1 { padding: 4px !important; }
  .mobile-p-2 { padding: 8px !important; }
  .mobile-p-3 { padding: 12px !important; }
  .mobile-p-4 { padding: 16px !important; }
  .mobile-p-5 { padding: 20px !important; }
  .mobile-p-6 { padding: 24px !important; }
  
  .mobile-m-0 { margin: 0 !important; }
  .mobile-m-1 { margin: 4px !important; }
  .mobile-m-2 { margin: 8px !important; }
  .mobile-m-3 { margin: 12px !important; }
  .mobile-m-4 { margin: 16px !important; }
  .mobile-m-5 { margin: 20px !important; }
  .mobile-m-6 { margin: 24px !important; }
}

/* ================================================
   PERFORMANCE ET OPTIMISATIONS
   ================================================ */
@media (max-width: 768px) {
  /* Optimisation GPU */
  .mobile-gpu-optimized {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }
  
  /* Préchargement des animations */
  .mobile-banner-slide,
  .mobile-property-card,
  .mobile-chat-interface {
    will-change: transform, opacity;
  }
  
  /* Réduction des animations pour les performances */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    
    .mobile-properties-scroll {
      animation: none !important;
    }
  }
}
@media (max-width: 768px) {
  .navbar,
  .banner-hero,
  .recherche-header,
  .ia-helper,
  #form-recherche {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-header,
  .mobile-banner,
  .mobile-search-section {
    display: none !important;
  }
}


/* Correction affichage footer mobile/desktop */
@media (max-width: 768px) {
  .footer { display: none !important; }
  .mobile-footer { display: block !important; }
}
@media (min-width: 769px) {
  .mobile-footer { display: none !important; }
  .footer { display: block !important; }
}


.menu-container, .menu-overlay { display: none; }
.menu-container.active, .menu-overlay.active { display: block; }
@media (max-width: 768px) {
  .menu-container, .menu-overlay { display: none; }
  .menu-container.active, .menu-overlay.active { display: block; }
}

/* Ajoute à la fin de main1.css */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .main-container {
        padding: 1rem 0.5rem;
        max-width: 100vw;
    }
}


@media (min-width: 769px) {
  .main-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .profil-container {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.95);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}   