@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");


:root {

  /* Fond principal */
  --primary-color: rgba(0, 40, 60, 0.95);
  --container-bg: #f9f9f9;

  /* Palette Yafoye Immo Pro */
  --instagram-purple: #7020E8;
  --instagram-pink: #F82080;
  --instagram-orange: #F89010;
  --instagram-gold: #F8B008;

  /* Couleur d'accent principale */
  --accent-color: #F82080;

  /* Hover */
  --button-hover-color: #F82080;

  /* Dégradé officiel */
  --instagram-gradient: linear-gradient(
    135deg,
    #7020E8 0%,
    #F82080 45%,
    #F89010 75%,
    #F8B008 100%
  );
  --border-radius: 30px; 
}

.hidden {
  display: none !important;
}

/* === GLOBAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;              /* ✅ occupe toute la hauteur de la fenêtre */
  margin: 0;
  padding: 0;
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;             /* ✅ active flexbox */
  flex-direction: column;    /* ✅ empile header, main, footer */
  overflow-x: hidden;
  background-color: #f5f5f5; /* ✅ fond gris clair */
  background-image: none;
}
main {
  flex: 1;                   /* ✅ prend tout l’espace restant */
}
footer {
  flex-shrink: 0;            /* ✅ reste collé en bas */
}

/* ✅ Scroll doux sur toutes plateformes */
html {
  scroll-behavior: smooth;
}

/* ✅ Suppression barre de scroll sans bug */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
  display: none;
}

/* === ACCUEIL === */
#home {
  text-align: center;
  padding: 25px 15px;
  font-size: 14px;
}

.welcome-text,
.action-container {
  opacity: 1;
  transform: none;
  margin-top: 0px;
}

.action-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.action-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.action-icon i {
  font-size: 1rem;
  margin-bottom: 5px;
}

.action-icon:hover {
  background: none;
  color: var(--accent-color);
}

/* === TOAST NOTIFICATION (en bas à droite) === */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
  z-index: 20000;
  max-width: 320px;
  font-size: 14px;
}

/* Affichage notification */
.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Variantes de couleur */
.toast.success {
  background: #28a745; /* vert */
}
.toast.error {
  background: #dc3545; /* rouge */
}
.toast.info {
  background: #007bff; /* bleu */
}

/* === TOAST DE CONFIRMATION (centré) === */
#logout-toast {
  top: 50%;
  left: 50%;
  bottom: auto;
  right: auto;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  color: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 90%;
}

/* Affichage confirmation */
#logout-toast.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* Contenu du toast de confirmation */
.toast-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-box p {
  margin: 0;
  font-size: 15px;
  text-align: center;
}

.toast-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  
}

.toast-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* Boutons spécifiques */
#confirm-logout {
  background: var(--primary-color);
  color: #fff;

}

#confirm-logout:hover {
  background: red;   /* bleu plus clair au survol */
  color: #fff;
}

#cancel-logout {
  background: #ccc;
  color: #000;
}
#cancel-logout:hover {
  background: var(--accent-color);     /* gris plus foncé au survol */
  color: #fff;
}

/* === CHAMPS CACHÉS === */
.hidden {
  display: none;
}

/* === SELECTS DYNAMIQUES === */
select {
  transition: none;
  opacity: 1;
  max-height: 200px;
  overflow: hidden;
}

select.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  display: none !important;
}

/* === UPLOAD === */
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-file-label {
  display: inline-block;
  padding: 10px 14px;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border-radius: 20px;
  text-align: center;
  transition: background 0.2s;
}

.custom-file-label:hover {
  background-color: #00b4cc;
}

.file-upload input[type="file"] {
  display: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* === FILE UPLOAD PREVIEW === */
.file-item {
  position: relative;
  display: inline-block;
  margin: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* === GLOBAL === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === Hero Section === */
.hero {
  position: relative;
  width: 100%;
  height: 60vh; /* hauteur de la section */
  background: url("assets/background.png") center/cover no-repeat;
  display: flex;
  flex-direction: column; /* empile header et overlay */
  justify-content: center;
}

/* Ligne du logo + menu */
.top-row {
  width: 100%;
  display: flex;
  justify-content: space-between; /* logo à gauche, menu à droite */
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 40, 60, 0.6);
}

.logo-text {
  font-size: 35px;
  font-weight: bold;
  color: var(--accent-color);
}

/* Menu à droite */
.hero-menu {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}

.hero-menu i {
  font-size: 1rem;
  cursor: pointer;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-btn {
  display: flex;
  flex-direction: column;
  background: none;
  color: #fff;
  padding: 6px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  gap: 8px;
}

.dropdown-btn:hover {
  background: none;
  color: var(--accent-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  text-align: center;
  right: 0;
  top: 100%;
  background: rgba(0,40,60,0.95);
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 9999999999999;

}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  z-index: 9999999999999;
  
}

.dropdown-content a:hover {
  background: none;
  color: var(--accent-color);
}

/* Affichage au survol */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Overlay central */
.hero-overlay {
  background: rgba(0, 40, 60, 0.6);
  color: #fff;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin: auto;

  /* animation globale */
  animation: fadeUp 1s ease forwards;
}

/* TITRE */
.hero-overlay h2 {

  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;

  opacity: 0;
  transform: translateY(30px);

  animation: fadeUpText 1s ease forwards;
  animation-delay: 0.2s;
}

/* TEXTE */
.hero-overlay p {

  font-size: 1.1rem;
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(20px);

  animation: fadeUpText 1s ease forwards;
  animation-delay: 0.5s;
}

/* BOUTON */
.hero-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: var(--accent-color);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUpText {

  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {

  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .hero {
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
  }

  .top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }

  .logo-text {
    font-size: 25px;
    margin-bottom: 0;
  }

  .hero-menu {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .dropdown-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .dropdown-content {
    min-width: 140px;
    font-size: 0.85rem;
  }

  .hero-overlay {
    padding: 15px;
    border-radius: 8px;
  }

  .hero-overlay h2 {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .hero-overlay p {
    font-size: 0.85rem;
  }
}

/* =========================
   TEXTE DYNAMIQUE
========================= */

.typing-text {

  font-size: 1.8rem;
  font-weight: 700;
  color: white;

  min-height: 60px;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* curseur */
#dynamicText::after {

  content: "|";

  animation: blink 1.5s infinite;
}

/* clignotement curseur */
@keyframes blink {

  50% {
    opacity: 0;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .typing-text {

    font-size: 1.7rem; /* 🔥 plus grand */
    font-weight: 700;
    color: white;

    min-height: unset; /* ❌ supprime le vide */
    
    display: block; /* 🔥 évite flex inutile */
    
    text-align: center;

    line-height: 1.2; /* 🔥 réduit fortement l’espace vertical */

    padding: 0; /* 🔥 enlève tout espace interne */
    margin: 0;
  }

  #dynamicText::after {
    content: "|";
    font-size: 1.7rem;
  }
}

/* ===========================
   Overlay (fond sombre)
=========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;

  display: flex;
  justify-content: center;
  align-items: center;

  /* invisible par défaut */
  opacity: 0;
  pointer-events: none;

  /* animation d’apparition */
  transition: opacity 0.25s ease;
  will-change: opacity;
}

/* Overlay visible (ajout de la classe .active en JS) */
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================
   Modal (contenu)
=========================== */
.overlay-box {
  background: #fff;
  color: #000;
  width: 90%;
  max-width: 420px;
  border-radius: 25px;
  padding: 25px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);

  /* animation d’entrée */
  transform: translateY(30px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  will-change: transform, opacity;
}

/* Modal visible quand overlay est actif */
.overlay.active .overlay-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===========================
   Champs formulaire
=========================== */
.overlay-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
}

.overlay-box input:focus {
  border-color: var(--primary-color);
}

/* ===========================
   Boutons formulaire
=========================== */
.overlay-box form button {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.overlay-box form button:hover {
  transform: translateY(-1px);
}

/* ===========================
   Bouton fermeture (X)
=========================== */
.close-overlay {
  position: absolute;
  top: 12px;
  right: 8px;
  font-size: 22px;
  border: none;
  background: var(--primary-color);
  cursor: pointer;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 1;
}

.close-overlay:hover {
  background: none;
  color: var(--primary-color);
}


/* === ACCUEIL === */
#home {
  text-align: center;
  padding: 25px 15px;
  font-size: 14px;
}

.welcome-text,
/* === Conteneur des actions === */
.action-container {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 10px;
  opacity: 1;
  transform: none;
}

/* === Bouton action (clic uniquement sur le bouton) === */
.action-icon {
  display: inline-flex;            /* 🔑 empêche largeur pleine */
  flex-direction: column;
  align-items: center;

  cursor: pointer;
  padding: 8px 14px;
  border-radius: 16px;

  color:var(--accent-color);
  background: transparent;
  backdrop-filter: transparent;
  -webkit-backdrop-filter: none;

  width: fit-content;              /* 🔒 largeur = contenu */
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;

  position: relative;
  z-index: 3;
}

/* Icône */
.action-icon i {
  font-size: 2.3rem;
  margin-bottom: 5px;
}

/* Hover */
.action-icon:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: transparent;
}

/* Mobile */
@media (max-width: 600px) {
  .action-container {
    gap: 40px;
  }

  .action-icon {
    padding: 10px 16px;
  }

  .action-icon i {
    font-size: 2.1rem !important;   /* ✅ icône plus grande sur mobile */
  }
}


/* === FORMULAIRES / OVERLAY PUBLICATION === */
#formContainer {
  position: relative;
  z-index: 10000;
}

.form-wrapper {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 90%;
  max-width: 500px;
  height: fit-content;

  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);

  opacity: 0;
  transform: translateX(100%); /* départ hors écran à droite */
  transition: opacity 0.35s ease, transform 0.35s ease;

  z-index: 10001;
  overflow: visible;
  pointer-events: none; /* évite clics quand invisible */
}

/* visible : slide droite → gauche */
.form-wrapper.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Titres */
.form-wrapper h2,
.form-wrapper h3 {
  margin-bottom: 15px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* === Fake select === */
.fake-select {
  position: relative;
  z-index: 10002;

  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 12px 16px;

  border-radius: 15px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.fake-select a {
  text-decoration: none;
  color: #00283c;
  font-weight: 600;
  display: block;
  text-align: center;
}

/* hover UX */
.fake-select:hover {
  border-color: var(--accent-color);
  background: #f8f9fb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}


/* === Mobile === */
@media (max-width: 600px) {
  .form-wrapper {
    padding: 16px;
    border-radius: 20px;
  }

  .fake-select {
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .fake-select a {
    font-size: 12px;
  }

  .form-wrapper h2,
  .form-wrapper h3 {
    font-size: 13px;
  }
}

/* === Catégories === */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
}

.category-card {
  position: relative;
  width: 220px;
  height: 140px;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
}

.category-card span {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 1rem;
  z-index: 2;
}

.category-card:hover {
  transform: scale(1.05);
}

/* Catégories - style général */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 16px;
}

.category-card {
  flex: 0 0 180px;
  height: 100px;
  border-radius: 8px;
  background: #004060;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.category-card:hover {
  transform: scale(1.05);
  background: #0077b6;
}

/* ✅ Mobile portrait : deux lignes scrollables verticalement */
@media (max-width: 768px) and (orientation: portrait) {
  .categories {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-y: auto; /* scroll vertical */
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
    width: 100%;
    max-height: 220px; /* limite à deux lignes visibles */
  }

  .category-card {
    flex: 0 0 calc(50% - 12px); /* deux cartes par ligne */
    height: 100px;
  }

  /* Scrollbar visible et stylée */
  .categories::-webkit-scrollbar {
    width: 8px;
  }

  .categories::-webkit-scrollbar-track {
    background: rgba(0, 40, 60, 0.2);
    border-radius: 10px;
  }

  .categories::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-color), #0077b6);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
  }

  .categories::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0077b6, var(--accent-color));
  }
}

/* ✅ Mobile paysage : scroll horizontal */
@media (max-width: 768px) and (orientation: portrait) {

  /* 🔥 sécurité globale anti scroll horizontal */
  html, body {
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  /* =========================
     CONTAINER CATEGORIES
  ========================= */

  .categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;
    padding: 8px;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    overflow-x: hidden;
  }

  /* =========================
     CARD
  ========================= */

  .category-card {
    width: 100%;
    aspect-ratio: 1 / 1; /* 🔥 carré parfait */

    border-radius: 12px;

    overflow: hidden;

    /* 🔥 empêche débordement image */
    position: relative;
  }

  .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block; /* 🔥 supprime espace inline image */
  }

  /* =========================
     TEXTE
  ========================= */

  .category-card span {
    font-size: 0.8rem;
  }
}

 /* =========================
   SECTION COMMENT ÇA MARCHE
========================= */

#how-it-works {
  text-align: center;
  padding: 30px 20px;
  background: #f9f9f9;
  overflow: hidden;
}

#how-it-works h2 {
  margin-bottom: 25px;
  margin-top: 0;
}

/* =========================
   CONTENEUR SLIDER
========================= */

.steps {

  position: relative;
  width: 100%;
  max-width: 520px;
  height: 220px;
  margin: auto;
  overflow: hidden;
  border-radius: 30px;

}


/* =========================
   STEP
========================= */

.step {

  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(120px);
  animation: stepSlider 30s infinite;
  animation-timing-function: ease-in-out;
  padding: 15px 20px;
  overflow: hidden;
}

/* =========================
   BACKGROUND FLOUTÉ
========================= */

.step::before {

  content: "";

  position: absolute;
  inset: 0;

  background: url('https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1600&q=80')
  center/cover no-repeat;

  filter: blur(6px) brightness(0.6);

  transform: scale(1.1);

  z-index: 0;
}

/* overlay sombre pour lisibilité */
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 0;
}

/* texte au-dessus */
.step * {
  position: relative;
  z-index: 1;
}

/* =========================
   DÉCALAGE AUTOMATIQUE
========================= */
.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 6s; }
.step:nth-child(3) { animation-delay: 12s; }
.step:nth-child(4) { animation-delay: 18s; }
.step:nth-child(5) { animation-delay: 24s; }

/* =========================
   ICONES
========================= */

.step i {
  font-size: 2.2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 90%;
}

/* =========================
   ANIMATION
========================= */

@keyframes stepSlider {

  0% {
    opacity: 0;
    transform: translateX(80px);
  }

  3% {
    opacity: 1;
    transform: translateX(0);
  }

  32% {
    opacity: 1;
    transform: translateX(0);
  }

  35% {
    opacity: 0;
    transform: translateX(-80px);
  }

  100% {
    opacity: 0;
    transform: translateX(-80px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .steps {
    height: 240px;
  }

  .step {

    padding: 12px 15px;
    border-radius: 20px;
  }

  .step i {
    font-size: 2rem;
  }

  .step h3 {
    font-size: 1.05rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  #how-it-works h2 {
    font-size: 1.3rem;
  }
}

/* Section À propos */
#about {
  padding: 40px 20px;
  text-align: center;
}
#about h2 {
  margin-bottom: 20px;
}
#about p {
  max-width: 600px;
  margin: 0 auto 20px;
}
#about ul {
  list-style: none;
  padding: 0;
}
#about li {
  margin: 10px 0;
  font-size: 14px;
}
#about i {
  color: var(--accent-color);
  margin-right: 8px;
}

footer {
  background: rgba(0, 40, 60, 0.95);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 25px 12px 20px 12px;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 25px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
}

.footer-section {
  min-width: 200px;
  text-align: center;
}

.footer-section h2 {
  color: var(--accent-color);
  font-size: 19px;
  margin-bottom: 8px;
}

.footer-section h3 {
  color: var(--accent-color);
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-link, .contact-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover, .contact-link:hover {
  color: var(--accent-color);
}

.socials {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: #fff;
  font-size: 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 15px;
  font-size: 9px;
  color: #aaa;
  line-height: 1.4;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Version mobile */
@media screen and (max-width: 768px) {
  footer {
    padding: 15px 8px;
    font-size: 11px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-section h2 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .footer-section h3 {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .footer-section ul {
    font-size: 9px;
    margin-bottom: 8px;
  }

  .socials {
    gap: 12px;
    margin-top: 6px;
  }

  .footer-bottom {
    font-size: 9px;
    margin-top: 8px;
  }
}

form button {
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: auto;
  padding: 6px 14px;
  font-size: 1rem;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  z-index: 3;
  transition: background 0.2s;
}

form button:hover {
  background: #00aacc;
}

form button + button {
  margin-left: 10px;
}

/* === ANIMATIONS FORM === */
.slide-right-to-left { transform: translateX(100%); animation: slideRTL 0.5s forwards; }
@keyframes slideRTL { to { transform: translateX(0); opacity: 1; } }

/* === ANIMATIONS FORM === */

.slide-right-to-left {
  transform: translateX(100%);
  animation: slideRTL 0.5s forwards;
}
@keyframes slideRTL {
  to { transform: translateX(0); opacity: 1; }
}


/* === STRUCTURE PAGE === */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

footer {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* ✅ Animation fluide : 1 image à la fois */
@keyframes slideSmooth {
  0%, 25%   { transform: translateX(0); }
  33%, 58%  { transform: translateX(-100%); }
  66%, 91%  { transform: translateX(-200%); }
  100%      { transform: translateX(0); }
}

/* ✅ Mobile : plus compact et fluide */
@media (max-width: 768px) {
  .carousel {
    height: 160px;
    border-radius: 8px;
  }

  .carousel-track {
    animation: slideSmooth 12s ease-in-out infinite;
  }
}

/* === ADAPTATION MOBILE === */
@media (max-width: 768px) {

  /* Réduit légèrement la taille du texte d'accueil */
  #home {
    font-size: 12px; /* au lieu de 14px */
    padding: 20px 10px;
  }

  /* Réduit la taille des icônes et du texte des boutons */
  .action-icon i {
    font-size: 1.3rem; /* au lieu de 1.7rem */
  }

  .action-icon {
    gap: 3px;
  }

  .action-icon span,
  .action-icon p {
    font-size: 12px;
  }

  /* Espace plus serré entre les boutons */
  .action-container {
    gap: 40px; /* au lieu de 80px */
  }

  /* Réduit la taille des titres dans les formulaires */
  .form-wrapper h2,
  .form-wrapper h3 {
    font-size: 13px;
  }

  /* Réduit la taille des boutons */
  form button {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* === Hero Immobilier === */
.hero-immobilier-ok {
  position: relative;
  min-height: 62vh;
  background: url("assets/background.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 0 40px; /* ✅ espace latéral contrôlé */
}

/* Overlay */
.hero-immobilier-overlay-ok {
  position: absolute;
  inset: 0;
  background: rgba(0,40,60,0.7);
  backdrop-filter: blur(2px);
}

/* Contenu */
.hero-immobilier-content-ok {
  position: relative;
  width: 100%;
  padding: 20px 30px;
  text-align: center;
  animation: heroImmobilierFadeInUp 2.5s ease-out;
}

.hero-immobilier-content-ok h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
  color: var(--accent-color);
}

.hero-immobilier-content-ok p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* =========================
   BOUTON PROFESSIONNEL
========================= */

.hero-immobilier-content-ok a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
  padding: 14px 28px;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #fff;
  text-decoration: none;

  background: var(--instagram-gradient);

  border-radius: 14px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 212, 255, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;

  position: relative;
  overflow: hidden;
}

/* Effet lumineux */
.hero-immobilier-content-ok a::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );

  transition: left 0.6s ease;
}

.hero-immobilier-content-ok a:hover::before {
  left: 120%;
}

.hero-immobilier-content-ok a:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.35),
    0 4px 12px rgba(0,212,255,0.45);

  background: linear-gradient(135deg, #00c3ff, #0099e6);
}

.hero-immobilier-content-ok a:active {
  transform: scale(0.98);
}

/* ✅ Responsive Mobile */
@media (max-width: 768px) {

  .hero-immobilier-ok {
    min-height: auto;   /* ✅ laisse le contenu définir la hauteur */
    padding: 20px 15px; /* ✅ réduit l’espace latéral */
    margin-top: 20px;
  }

  .hero-immobilier-content-ok {
    padding: 15px; /* contenu plus compact */
  }

  .hero-immobilier-content-ok h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .hero-immobilier-content-ok p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  /* Bouton mobile */
  .hero-immobilier-content-ok a {
    width: 100%;
    max-width: 280px;

    padding: 12px 20px;

    font-size: 0.95rem;
    border-radius: 12px;
  }
}


/* === Hero Immobilier === */
.hero-immobilier {
  position: relative;
  min-height: 62vh;
  background: url('https://images.unsplash.com/photo-1505691938895-1758d7feb511?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 0 40px; /* ✅ espace latéral contrôlé */
}

/* Overlay */
.hero-immobilier-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,40,60,0.7);
  backdrop-filter: blur(2px);
}

/* Contenu */
.hero-immobilier-content {
  position: relative;
  width: 100%;
  padding: 20px 30px;
  text-align: center;
  animation: heroImmobilierFadeInUp 2.5s ease-out;
}

.hero-immobilier-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
  color: var(--accent-color);
}

.hero-immobilier-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* =========================
   BOUTON PROFESSIONNEL
========================= */

.hero-immobilier-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 10px;
  padding: 14px 28px;

  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #fff;
  text-decoration: none;

  background: linear-gradient(135deg, var(--accent-color), #0077b6);

  border-radius: 14px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 212, 255, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;

  position: relative;
  overflow: hidden;
}

/* Effet lumineux */
.hero-immobilier-content a::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );

  transition: left 0.6s ease;
}

.hero-immobilier-content a:hover::before {
  left: 120%;
}

.hero-immobilier-content a:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.35),
    0 4px 12px rgba(0,212,255,0.45);

  background: linear-gradient(135deg, var(--accent-color), #0099e6);
}

.hero-immobilier-content a:active {
  transform: scale(0.98);
}

/* ✅ Responsive Mobile */
@media (max-width: 768px) {

  .hero-immobilier {
    min-height: auto;   /* ✅ laisse le contenu définir la hauteur */
    padding: 20px 15px; /* ✅ réduit l’espace latéral */
    margin-top: 20px;
  }

  .hero-immobilier-content {
    padding: 15px; /* contenu plus compact */
  }

  .hero-immobilier-content h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .hero-immobilier-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  /* Bouton mobile */
  .hero-immobilier-content a {
    width: 100%;
    max-width: 280px;

    padding: 12px 20px;

    font-size: 0.95rem;
    border-radius: 12px;
  }
}

.password-help {
  font-size: 0.6rem;          /* Texte plus petit */
  color: #6c757d;              /* Gris légèrement foncé */
  text-align: center;           /* Centré */
  background-color: #f8f9fa;   /* Fond très clair */
  padding: 8px 12px;           /* Petit padding pour respirer */
  border-radius: 8px;           /* Coins arrondis */
  margin-top: 0px;              /* Petit espace sous le champ */
  margin-bottom: 5px;              /* Petit espace sous le champ */
  line-height: 1.4;             /* Espacement du texte pour lisibilité */
}

#open-change-password,
#open-reset-password,
#open-signup,
#open-logout {
  display: none;
}

/* =========================
   CONTENEUR DES CATÉGORIES
========================= */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: start;
}

/* =========================
   BLOC COMPLET
========================= */

.category-dropdown {
  position: relative;
}

/* =========================
   CARTE
========================= */

.category-card {
  cursor: pointer;
}

/* =========================
   DROPDOWN
========================= */

.category-dropdown-content {

  display: none;

  position: absolute;

  top: calc(100% + 10px);
  left: 50%;

  transform: translateX(-50%);

  width: 100%;
  min-width: 220px;

  background: white;

  border-radius: 14px;

  padding: 10px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  z-index: 999;

  flex-direction: column;

  gap: 8px;

  max-height: 240px;

  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
}

/* =========================
   ACTIF
========================= */

.category-dropdown.active .category-dropdown-content {
  display: flex;
}

/* =========================
   LIENS COMMUNES
========================= */

.category-dropdown-content a {

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  text-decoration: none;

  color: #00283c;

  background: #f4f4f4;

  padding: 12px;

  border-radius: 10px;

  font-weight: 600;

  transition: 0.25s ease;

  font-size: 14px;

  line-height: 1.3;

  min-height: 44px;

  white-space: normal;
}

/* Hover */
.category-dropdown-content a:hover {
  background: #00283c;
  color: white;
  transform: scale(1.02);
}

/* =========================
   SCROLLBAR
========================= */

.category-dropdown-content::-webkit-scrollbar {
  width: 5px;
}

.category-dropdown-content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 20px;
}

.category-dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  /* 🔥 MODIF PRINCIPALE ICI */
  .categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-dropdown-content {
    min-width: 160px;
    max-height: 180px;
  }

  .category-dropdown-content a {
    font-size: 11px;
    padding: 10px;
  }
}

/* =========================
   SECTION PROMO
========================= */

#promo-slider {
  padding: 30px 20px;
  background: #f9f9f9;
  text-align: center;
  overflow: hidden;
}

#promo-slider h2 {
  margin-bottom: 25px;
}

/* =========================
   CONTAINER
========================= */

.promo-slides {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 280px;
  margin: auto;
  overflow: hidden;
  border-radius: 28px;
}

/* =========================
   SLIDE
========================= */

.promo-slide {

  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;

  transform: translateX(100px);

  overflow: hidden;
  border-radius: 28px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Image */
.promo-slide img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: brightness(0.6);
}

/* Overlay texte */
.promo-overlay {

  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 20px;

  color: #fff;

  text-align: center;

  background: linear-gradient(
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.45)
  );
}

/* Titres */
.promo-overlay h3 {

  font-size: 1.8rem;
  margin-bottom: 12px;

  color: #fff;

  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Texte */
.promo-overlay p {

  font-size: 1rem;
  line-height: 1.6;

  max-width: 90%;
}

/* Tous les slides */
.promo-slide {
  opacity: 0;
  animation: promoSlider 24s infinite;
}

/* Décalage automatique */
.promo-slide:nth-child(1) {
  animation-delay: 0s;
}

.promo-slide:nth-child(2) {
  animation-delay: 6s;
}

.promo-slide:nth-child(3) {
  animation-delay: 12s;
}

.promo-slide:nth-child(4) {
  animation-delay: 18s;
}

/* Animation */
@keyframes promoSlider {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

  8% {
    opacity: 1;
    transform: translateX(0);
  }

  25% {
    opacity: 1;
    transform: translateX(0);
  }

  33% {
    opacity: 0;
    transform: translateX(-100px);
  }

  100% {
    opacity: 0;
    transform: translateX(-100px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .promo-slides {
    height: 230px;
    border-radius: 22px;
  }

  .promo-slide {
    border-radius: 22px;
  }

  .promo-overlay {
    padding: 15px;
  }

  .promo-overlay h3 {
    font-size: 1.3rem;
  }

  .promo-overlay p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  #promo-slider h2 {
    font-size: 1.3rem;
  }
}

html {
  -webkit-tap-highlight-color: transparent;
}