/* === Corps de page === */
/*
/*   body{ */
/*    	font-family:Arial,sans-serif;margin:0;padding:0;  */
/*    	background: url('images/fond_light.jpg') no-repeat center center fixed;  */
/*    	background-size: cover; /* couvre tout l'écran */ 
/*   	padding-bottom: 50px; /* au moins la hauteur du footer */
/*    	}   */




nav a{margin-right:10px;text-decoration:none;}


/* form input, form select, form textarea{display:block;margin-bottom:10px;width:100%;max-width:400px;} */

/* style.css */
.navbar form input,
.navbar form select,
.navbar form textarea {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}


img{max-width:100%;height:auto;}

/* Conteneur du lien */
.login-logo-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: 4px;
}

/* Le badge "Connexion" */
.login-logo-link .hover-text {
  position: absolute;
  left: 60px; /* Décalé à droite de l’image */
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15); /* Fond léger */
  backdrop-filter: blur(4px);
  border-radius: 12px; /* coins arrondis */
  padding: 4px 10px;
  font-size: 0.9rem;
  opacity: 0;
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

/* Affichage au survol / focus */
.login-logo-link:hover .hover-text,
.login-logo-link:focus .hover-text {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* Affichage permanent sur mobile (optionnel) */
@media (hover: none) {
  .login-logo-link .hover-text {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.user-profile-img {
    border-radius: 50% !important;
    object-fit: cover;
    width: 40px;
    height: 40px;
}

  /* ===== HEADER STYLING ===== */
  .navbar {
      font-family: 'Roboto', sans-serif;
      font-size: 15px;
      letter-spacing: 0.2px;
  }

  .navbar-brand span {
      font-weight: 700;
      line-height: 1.1;
      font-size: 17px;
  }

  .nav-link {
      color: #ddd !important;
      transition: all 0.2s;
  }

  .nav-link:hover, .dropdown-item:hover {
      color: #2B6E42 !important;
      transform: scale(1.05);
  }

  .user-profile-img {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #fff;
  }

  .badge {
      font-size: 0.7rem;
  }
  

.search-container {
  position: relative;
  width: 100%;
  font-size: 16px;               /* Taille fixe */
  -webkit-text-size-adjust: 100%; /* iOS Safari */
  -ms-text-size-adjust: 100%;     /* IE Mobile */
  text-size-adjust: 100%;         /* Autres navigateurs */
}

.search-input {
  font-size: 16px;               /* Taille fixe dans le champ input */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}



  
/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-brand span {
        font-size: 15px;
    }

    /* Centrer le bouton "Ajouter une annonce" sur mobile */
    .navbar-nav.me-auto {
        width: 100%;
        display: flex;
        justify-content: center !important;
		margin: 0 !important; /* enlève le push-left de bootstrap */
    }
	
	    /* Optionnel : empêche Bootstrap d'étirer l'image */
    .navbar-nav.me-auto img {
        display: block;
        margin: 0 auto;
    }

    /* Supprimer le margin-end de Bootstrap et centrer le formulaire */
    form.d-flex.me-3 {
        width: 100%;
        justify-content: center !important; /* centre horizontalement */
        margin: 0 auto !important;          /* annule le me-3 */
    }

    /* Réduire le champ de recherche */
    form.d-flex.me-3 input[type="search"] {
        width: 70%;       /* largeur du champ */
        max-width: 200px; /* limite maximale */
        font-size: 0.9rem;
    }

    /* Réduire le bouton */
    form.d-flex.me-3 button {
        font-size: 0.8rem;
        padding: 2px 6px;
    }

    /* Conteneur des icônes utilisateur */
    .navbar-nav.align-items-center {
        display: flex;
        justify-content: center; /* centre horizontalement */
        width: 100%;
        padding: 0;
        margin: 10px 0 0 0;
    }

    /* Chaque icône prend un espace uniforme */
    .navbar-nav.align-items-center .nav-item {
        margin: 0 8px; /* espace horizontal entre icônes */
        text-align: center;
        flex: 0 0 auto; /* largeur auto */
    }

    /* Dropdown utilisateur */
    .navbar-nav .nav-item.dropdown .dropdown-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0; 
        width: auto;
    }

    /* Menu dropdown aligné correctement */
    .navbar-nav .nav-item.dropdown .dropdown-menu-end {
        right: 0;
        left: auto;
    }

    /* Ajustement de la taille de l'avatar */
    .navbar-nav .nav-item.dropdown .user-profile-img {
        width: 38px;
        height: 38px;
    }

    /* Badges plus petits sur mobile */
    .navbar-nav .nav-item .badge {
        font-size: 0.65rem;
    }
	
}



  /* ===== DARK MODE ===== */
  .dark-mode {
      background-color: #121212;
      color: #e0e0e0;
  }
  .dark-mode .navbar {
      background-color: #1f1f1f !important;
  }



  /* ===== oeil mdp ===== */
  
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    position: absolute;
    transition: opacity 0.2s ease;
}

.icon-eye-off {
    opacity: 0; /* œil barré caché au début */
}

.toggle-password.active .icon-eye {
    opacity: 0;
}

.toggle-password.active .icon-eye-off {
    opacity: 1;
}



/* ===== FORM-GROUP2 RECHERCHE (navbar) ===== */
.form-group2 {
    display: flex;
    justify-content: flex-end; /* desktop : à droite */
    position: relative !important;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    margin: 0;
}

.form-group2 input,
.form-group2 select {
    width: 200px !important;
    height: 45px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.form-group2 input:hover,
.form-group2 select:hover,
.form-group2 input:focus,
.form-group2 select:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 6px 15px rgba(74,144,226,0.2) !important;
    transform: scale(1.05) !important;
}

.form-group2 .search-container {
    position: relative !important;
    width: 200px !important; /* desktop */
    max-width: 100%;
    top: 8px;
}

.form-group2 .search-input {
    width: 100% !important;
    padding-right: 40px !important; /* espace pour la loupe */
    box-sizing: border-box !important;
}

.form-group2 .search-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

/* ============================ */
/* ======= RESPONSIVE ======== */
/* ============================ */
@media (max-width: 991px) {
    .navbar-brand span {
        font-size: 15px;
    }

    /* Centrer bouton "Ajouter une annonce" */
    .navbar-nav.me-auto {
        width: 100%;
        display: flex;
        justify-content: center !important;
        margin: 0 !important;
    }

    .navbar-nav.me-auto img {
        display: block;
        margin: 0 auto;
    }

    /* Conteneur recherche centré */
 /* Conteneur recherche centré sur mobile */
    .form-group2 {
        display: flex !important;           /* Flex pour centrer facilement */
        justify-content: center !important; /* Centre horizontalement */
        width: 100% !important;             /* Prend toute la largeur */
        margin: 10px auto !important;       /* Marge verticale */
        order: 0;                            /* S'assurer que la recherche reste en haut */
    }

    /* Le formulaire interne prend une largeur fixe */
    .form-group2 .search-container {
        display: flex !important;
        width: 80%;                          /* Largeur du champ sur mobile */
        max-width: 250px;
    }

    /* Input rempli son container */
    .form-group2 .search-input {
        width: 100% !important;
    }

    /* Bouton recherche reste positionné */
    .form-group2 .search-btn {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* Conteneur des icônes utilisateur centré */
    .navbar-nav.align-items-center {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 10px 0 0 0;
    }

    .navbar-nav.align-items-center .nav-item {
        margin: 0 8px;
        text-align: center;
        flex: 0 0 auto;
    }

    .navbar-nav .nav-item.dropdown .dropdown-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        width: auto;
    }

    .navbar-nav .nav-item.dropdown .dropdown-menu-end {
        right: 0;
        left: auto;
    }

    .navbar-nav .nav-item.dropdown .user-profile-img {
        width: 38px;
        height: 38px;
    }

    .navbar-nav .nav-item .badge {
        font-size: 0.65rem;
    }
}



/* ----- BOUTON AJOUTER UNE ANNONCE ----- */

.btn-add-annonce {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background-color: #c64941;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s ease-in-out;
}

.btn-add-annonce .icon {
    font-size: 22px;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-annonce:hover {
    background-color: #a63c36;
    transform: translateY(-2px);
    color: #86C600 !important;;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .btn-add-annonce {
        padding: 6px 14px;
        font-size: 15px;
        gap: 8px;
    }

    .btn-add-annonce .icon {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .btn-add-annonce {
        padding: 5px 12px;
        font-size: 14px;
        gap: 6px;
    }

    .btn-add-annonce .icon {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}


/* ===== BOUTON AJOUTER UNE ANNONCE SMARTPHONE ===== */
@media (max-width: 480px) {
    /* On garde le bouton compact */
    .btn-add-annonce {
        padding: 5px 12px;
        font-size: 14px;
        gap: 4px;
    }

    /* L'icône + */
    .btn-add-annonce .icon {
        width: 22px;
        height: 22px;
        font-size: 16px;
        margin-right: 0;
    }

    /* On cache le texte complet "Ajouter une annonce" */
    .btn-add-annonce .label {
        display: none;
    }

    /* On ajoute juste le mot "Annonce" après le + */
    .btn-add-annonce::after {
        content: " Annonce";
        font-size: 14px;
        margin-left: 2px;
        display: inline;
    }
}
