:root {
  --entrepriseCouleurBlack: black;
  --entrepriseCouleurWhite: white;
  --entrepriseCouleurFondFonce: #004080; /* Bleu foncé */
  --entrepriseCouleurFondClair: #42b2f8; /* Bleu clair */

}
/* ---- Styles globaux ---- */
.etiquette {
    display: inline-block;
    background-color: #0d6efd; /* Bleu Bootstrap */
    color: #fff;
    padding: 5px 20px;
    margin: 5px 5px 0 0;
    border-radius: 15px;
    font-size: 14px;
    position: relative;
}
.etiquette .close-btn {
    position: absolute;
    top: 2px;
    right: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* ---- Autocomplete ---- */
.autocomplete-suggestions {
    border: 1px solid #ccc;
    background: #fff;
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-suggestions div {
    padding: 8px;
    cursor: pointer;
}
.autocomplete-suggestions div:hover {
    background-color: #007bff;
    color: #fff;
}

/* ---- Carousel & Modal ---- */
.carousel-item img {
    max-height: 300px;
    object-fit: cover;
}
@media (min-width: 992px) {
.carousel-item img {
    max-height: 400px;
    object-fit: cover;
}
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

/* ---- Accueil -----*/


/* ✅ Responsive : hauteur réduite sur petits écrans */
@media (max-width: 768px) {
  #diaporama-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  #diaporama-container {
    height: 200px;
  }
}

/* ----- tableau horaire agence ----- */
    /* Conteneur pour gérer la perspective */
    .table-container {
      perspective: 1000px;
      margin: 0 auto;
      justify-content: center; /* centre son enfant (.table-3d) */
  
    }

/* Table “3D” */
.table-3d {
  width: 320px;
  margin: 0 auto 2rem;           /* ← centre la table dans son conteneur */
  border-collapse: separate;
  border-spacing: 0;
  transform-style: preserve-3d;
  transform: rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
    /* En-têtes */
    .table-3d thead th {
      padding: 4px 7px;
      background: linear-gradient(135deg, var(--entrepriseCouleurFondClair),var(--entrepriseCouleurFondClair));
      color: #fff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
      font-weight: 600;
      border-bottom: 2px solid rgba(255,255,255,0.3);
    }

    /* Cellules normales */
    .table-3d tbody td {
      
      background: #fdfdfd;
      border-bottom: 1px solid var(--entrepriseCouleurFondFonce);
      transition: transform 0.3s, background 0.3s;
    }

    /* Lignes paires */
    .table-3d tbody tr:nth-child(even) td {
      background: #fbfbfb;
    }

    /* Effet au survol */
    .table-3d tbody tr:hover td {
      background: #e8f0fe;
      transform: translateZ(20px);
    }

    /* Croix rouge centrée */
    .table-3d .closed {
      color: #d33;
      text-align: center;
      font-size: 1.2em;
    }

/* Wrapper responsive avec défilement horizontal */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto 2rem;
  max-width: 100%;
  padding: 0 10px;
}

/* Adaptation de la table en responsive */
.table-3d {
  min-width: 350px; /* Force la largeur minimale pour éviter les cellules écrasées */
}

/* Sur mobile : ajuster la rotation pour éviter une lisibilité difficile */
@media (max-width: 600px) {
  .table-3d {
    transform: none;
    box-shadow: none;
  }
}


/* ---- Annonces ---- */
.prix-droite{
font-size: 1.8rem;
    font-weight: bold;
    color: var(--entrepriseCouleurWhite);
    text-align: right;
}
.annonce-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.annonce-item {
    display: flex;
    flex: 0 0 100%;
}
@media (min-width: 768px) {
    .annonce-item { flex: 0 0 calc(50% - 15px); }
}
@media (min-width: 1200px) {
    .annonce-item { flex: 0 0 calc(25% - 15px); }
}

/* ---- Couleurs mises à jour ---- */
.bg-dark-gray, .annonce-bottom-dark, .encadre-gris-fonce {
    background-color: var(--entrepriseCouleurFondFonce); /* Bleu foncé */
    color: var(--entrepriseCouleurWhite);
}
.bg-light-gray, .annonce-bottom-light, .encadre-gris-clair {
    background-color: var(--entrepriseCouleurFondClair); /* Bleu clair */
    color: var(--entrepriseCouleurFondFonce);
 
}

/* ---- Slider ---- */
.price-slider-container {
    border: 2px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-top: 15px;
}
.slider-track {
    position: absolute;
    height: 5px;
    background-color: #007bff;
    border-radius: 5px;
    z-index: 1;
}
.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    transform: translate(-50%, -50%);
    border: 3px solid var(--entrepriseCouleurWhite);
}
input[type="range"] {
    position: absolute;
    width: 100%;
    height: 30px;
    opacity: 0;
    z-index: 3;
}

/* ---- Navigation ---- */
.logoMenu {
	width:150px;
    height:auto;
}
.navbar-toggler {
    border: none;
    outline: none;
}
.navbar-toggler-icon {
    width: 30px;
    height: 3px;
    background-color: blue;
    display: block;
    margin: 6px 0;
}
.navbar-nav .nav-link {
    text-transform: uppercase;
    font-weight: bold;
}
/* Par défaut : mobile */
.mobile-only {
    display: block;
}
.desktop-only {
    display: none;
}

/* Style général */
.admin-wrapper {
    text-align: center;
    padding: 5px 0;
}
.admin-title {
    font-weight: bold;
    color: blue;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Bureau : on masque HR et texte, on affiche la barre */
@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }

    .admin-text {
        display: none !important;
    }

    .desktop-only {
        display: inline-block !important;
    }
    
   	
	 .navbar-nav .nav-link {
        font-size: clamp(16px, 1vw + 0.1rem, 8px);
        /* min 16px, max 12px, adaptatif selon largeur */
        line-height: 1.4;
        padding: 0.5rem 0.8rem;
    }

    .navbar-nav .nav-link i {
        font-size: 1.1rem;
        margin-right: 6px;
    }
	


    .admin-bar {
        width: 4px;
        height: 24px;
        background-color: #42b2f8; /* Bleu clair */
        margin-right: 6px;
        vertical-align: middle;
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .logoMenu { width:120px;
    height:auto; }
}



/* ---- Catégories ---- */
.categorie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.categorie-item {
    flex: 0 0 100%;
}
@media (min-width: 768px) {
    .categorie-item {
        flex: 0 0 calc(50% - 20px);
    }
}
.categorie-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.categorie-card img {
    width: 100%;
    height: auto;
}
.categorie-text {
    position: absolute;
    bottom: 0;
    background: var(--entrepriseCouleurFondClair);
opacity:0.9;
    color: var(--entrepriseCouleurWhite);
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    text-align: left;
    font-weight: bold;
}

/* ---- Annonce Card ---- */
.annonce-card {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    height: 320px;
}
.annonce-image {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100%;
    overflow: hidden;
}
.annonce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.annonce-info {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}
.annonce-header {
    background-color: var(--entrepriseCouleurFondFonce); /* Bleu foncé */
    color: var(--entrepriseCouleurWhite);
    font-weight: bold;
    font-size: 1.4rem;
    
    text-transform: uppercase;
}
.motor-finition {
    background-color: var(--entrepriseCouleurFondFonce);
    color: var(--entrepriseCouleurWhite);
    font-size: 0.95rem;
    
}
.annonce-prix {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9534f;
    text-align: right;
 
}
.annonce-details {
    background-color: var(--entrepriseCouleurFondClair); /* Bleu clair */
    padding: 5px;
    gap: 5px;
    font-size: 16px;
    
}
.annonce-details i {
margin-right: 8px;
}

.details_valeur{
color:var(--entrepriseCouleurWhite);
}

/* ---- Formulaire ---- */
.form-container {
    background: var(--entrepriseCouleurFondFonce);
    color: var(--entrepriseCouleurWhite);
    padding: 20px;
    border-radius: 5px;
}
.form-container input, .form-container textarea {
    background: #fff;
    color: #000;
}
.form-container button {
    background: #fff;
    color: #000;
}

/* ---- Miniatures ---- */
.miniatures-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 10px;
}
.miniature-arrow-btn {
    height: 60px;
}
.miniatures-container img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
}

