    :root {
      /* pour le bouton rechercher*/
      --orange: #FFA500;
      --bleu-nuit: #2A3D66;
    }

    body {
      font-family: Arial, sans-serif;
      background-color: #f8f9fa;
      background-color: #f9f9f9;
    }

    .card {
      border-radius: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .btn-orange {
      background-color: var(--orange);
      background-color: #FF6B00;
      color: white;
    }

    .btn-orange:hover {
      background-color: #e85c00;
    }

    /* boutons************************/
    .btn-primary {
      background-color: var(--bleu-nuit);
    }

    .btn-primary:hover {
      background-color: var(--orange);
      border-color: var(--orange);
    }

    h2 {
      color: var(--bleu);
    }

    html[dir="rtl"] label,
    html[dir="rtl"] input,
    html[dir="rtl"] select {
      text-align: right;
    }

    html[dir="rtl"] .form-check {
      display: flex;
      flex-direction: row-reverse;
      justify-content: flex-end;
      gap: 0.5rem;
      text-align: right;
    }

    input::placeholder,
    textarea::placeholder {
      color: #888;
      font-style: italic;
    }


    .bg-light {
      --bs-bg-opacity: 1;
      background-color: rgb(22, 86, 151) !important;
    }



    /* gegister.html & password-forgot.html & password-reset.html & profil.html *******************/
    #register-container {
      max-width: 500px;
      margin: 60px auto;
      background-color: white;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    #register-title {
      text-align: center;
      color: #007BFF;
    }

    #register-title3 {
      text-align: center;
      color: #2A3D66;
    }

    #msg {
      margin-top: 15px;
      text-align: center;
    }

    .pwsEye {
      color: #007BFF;
      color: #e85c00;
    }

    #password-rules {
      font-size: 13px;
      margin-top: 9px;
    }

    #password-rules ul {
      list-style: none;
      padding: 0;
    }

    #password-rules li {
      margin-left: 11px;
    }

    #password-strength {
      margin-top: 10px;
      width: 100%;
      height: 8px;
      background: #ddd;
      border-radius: 4px;
      overflow: hidden;
    }

    #strength-bar {
      height: 100%;
      width: 0%;
      background: red;
      transition: width 0.3s;
    }

    @media (max-width: 480px) {
      #register-container {
        margin: 20px;
        padding: 20px;
      }
    }

    /* completer-profil.html ****************************************/

    #profile-container {
      max-width: 400px;
      margin: 60px auto;
      background-color: white;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    #profile-title {
      text-align: center;
      color: #007BFF;
    }

    #profile-message {
      margin-top: 15px;
      text-align: center;
    }

    @media (max-width: 480px) {
      #profile-container {
        margin: 20px;
        padding: 20px;
      }
    }

    /* annonce.html **************************************************/
    .title {
      color: #2A3D66;
    }

    .price {
      color: #FF6B00;
      font-weight: bold;
      font-size: 1.5rem;
    }

    .carousel-item img {
      object-fit: cover;
      height: 350px;
    }

    #map {
      height: 300px;
      border-radius: 8px;
    }

    /* mes-annonces.html **************************************************/
    .card-ad {
      border: 1px solid #eee;
      border-radius: 8px;
      overflow: hidden;
    }

    .card-ad img {
      width: 100%;
      height: 180px;
      object-fit: cover;
    }

    /* recherche.html *************************************************/
    .card-title {
      color: var(--bleu-nuit);
    }

    .gps-label {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      font-weight: 500;
      color: var(--bleu-nuit);
    }

    .advanced-toggle {
      color: #FF6B00;
      font-weight: bold;
      cursor: pointer;
    }

    /* --- ------------------------------------------ --- */

    .annonce-card .card-body {
      border-top: 3px solid #2A3D66;
    }

    .card-title {
      font-size: 1.1rem;
      font-weight: bold;
      color: #2A3D66;
    }

    .bg-light {
      background-color: #f9f9f9 !important;
    }

    .text-orange {
      color: #FF6B00;
    }

    .text-bleu-nuit {
      color: var(--bleu-nuit);
    }

    /* --- ------------------------------------------ --- */

    /* --- Apparition animée du bandeau et de la carte recherche --- */
    @keyframes fadeSlideDown {
      0% {
        opacity: 0;
        transform: translateY(-15px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeSlideUp {
      0% {
        opacity: 0;
        transform: translateY(15px);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Effet sur le bandeau principal */
    .search-hero {
      animation: fadeSlideDown 0.8s ease-out both;
    }

    /* Effet sur le bloc de recherche principal */
    #recherche-htm .card {
      animation: fadeSlideUp 0.9s ease-out both;
      animation-delay: 0.2s;
    }

    /* --- Nouveau bouton Rechercher avec loupe --- */
    .btn-search {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background-color: #2A3D66;
      border: none;
      color: #fff;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.25s ease;
      font-size: 1rem;
    }

    .btn-search i {
      font-size: 1.1rem;
    }

    .btn-search:hover {
      background-color: #ff6b00;
      color: #fff;
      transform: scale(1.02);
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }






    /* Bouton de réinitialisation */
    .btn-reset {
      background-color: #FF6B00;
      color: #fff;
      border: none;
      border-radius: 6px;

      align-items: center;
      justify-content: center;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .btn-reset:hover {
      background-color: #e85c00;
      transform: rotate(-10deg);
    }

    #resetFiltersBtn:hover {
      background-color: #2A3D66;
      color: white;
      transition: 0.2s;
    }

    .btn-reset:active {
      transform: scale(0.9);
    }

    /* Responsive 
    @media (max-width: 768px) {
      .btn-reset {
        width: 45px;
        height: 45px;
        margin-top: 5px;
      }
    }
      */





    /* tooltip GPS MOBILE FIRST *******************/
    .gps-tooltip {
      position: fixed;
      left: 0;
      bottom: 0;
      width: 100%;
      background: #111827;
      color: white;
      padding: 14px;
      font-size: 0.95rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      box-shadow: 0 -4px 15px rgba(0, 0, 0, .35);
      z-index: 1000;
    }

    .gps-actions {
      display: flex;
      gap: 10px;
    }

    .gps-tooltip button {
      min-width: 90px;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 0.85rem;
    }

    .gps-tooltip .cancel {
      background: transparent;
      color: #9ca3af;
      border: 1px solid #374151;
    }

    /* ===== DESKTOP ===== */
    @media (min-width: 768px) {

      .gps-wrapper {
        position: relative;
        display: inline-block;
      }

      .gps-tooltip {
        position: absolute;
        bottom: 100%;
        /* AU-DESSUS */
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
        margin-bottom: 8px;
        border-radius: 6px;
        padding: 8px 10px;
        font-size: 0.85rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
      }

      .gps-tooltip::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #111827 transparent transparent transparent;
      }

      .gps-tooltip button {
        padding: 4px 8px;
        font-size: 0.75rem;
      }
    }

    .hidden {
      display: none;
    }

    /* PUPOP GPS *******************/
    #map {
      height: 400px;
      width: 100%;
    }

    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
    }

    .modal-box {
      background: white;
      width: 90%;
      max-width: 600px;
      margin: 5% auto;
      padding: 10px;
      border-radius: 8px;
    }

    .close {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
    }

    .close:hover,
    .close:focus {
      color: black;
      text-decoration: none;
      cursor: pointer;
    }