  html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

    
body, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Montserrat', sans-serif;
}

.tile-container {
    margin: 0 auto ; 
    max-width: 1900px; 
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

   h1.custom-title {
      color: #007bff; 
      text-align: left;
      margin-left: 20px;
   }
        .tile {
            display: inline-block;
            margin: 10px;
            margin-bottom: 30px;
            border: 1px solid #ccc;
            padding: 10px;
            width: 30%;
            box-sizing: border-box;
            text-align: center;
            cursor: pointer;
        }

        .row {
            text-align: center;
        }
        
        .tile img {
            max-width: 100%;
            height: auto;
        }

.tile input[type="checkbox"] {
    display: none;
}

.tile label {
    display: block;
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

.tile input[type="checkbox"]:checked + label {
    background-color: #000080;
    color: white;
}

.tile label span {
    font-size: 16px;
    color: #000;
}

.tile h2 {
    font-size: 22px;
    color: blue;
    margin-top: 10px;
    font-weight: normal;  
}

.tile p {
  font-size: 15px !important;
  color: black !important;
  line-height: 1.5;
    filter: brightness(90%); 

}

.btn-group .btn {
    margin-right: 10px;
}

.btn-group .btn {
    background-color: #007bff;
    color: #fff;
}

.btn-group .btn.active {
    background-color: #ff5733;
    color: #fff;
}

button#resetSearch.btn.btn-secondary {
    background-color: grey !important;
    border-color: grey !important;
}
  
    .tile {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    @media (min-width: 576px) {
        .tile {
            width: 48%;
        }
    }

    @media (min-width: 768px) {
        .tile {
            width: 32%;
        }
    }

    @media (min-width: 992px) {
        .tile {
            width: 33%; 
        }
    }

    @media (min-width: 1200px) {
        .tile {
            width: 31%;
        }
    }
@media (min-width: 1200px) {
    .container {
        max-width: 1500px !important;
            }
}


.modal-header .close {
    font-size: 3em;
}

.modal-content {
    border: none !important;
    font-size: 12px;
}

.modal-header,
.modal-footer {
    border: none !important; 
}
 .custom-close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

#devisBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #thumbnailsContainer {
        display: flex;
        align-items: center;
    }

    .selected-tech-thumbnail {
        max-width: 50px;
        max-height: 50px;
        margin-right: 10px;
    }

    #devisButtonsContainer {
        display: flex;
        gap: 10px;
    }
    .selected-tech-thumbnail {
        max-width: 70px;
        max-height: 70px;
        margin-right: 10px;
    }


#thumbnailsContainer {
    white-space: nowrap;
}

.thumbnail-wrapper {
    display: inline-block;
    margin-right: 10px; 
}


  #previsiteModal .modal-content {
    background-color: rgba(200, 200, 200, 0.9); 
    border-radius: 10px;
        }

        #previsiteModal .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModal .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModal .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModal .modal-footer .btn-close {
            width: 45%; 
            background-color: #6c757d; 
            border-color: #6c757d;
        }

        #previsiteModal .modal-footer .btn-close:hover {
            background-color: #5a6268;
            border-color: #545b62; 
        }

.tile:hover {
    transform: scale(1.1);
    background-color: #E8F0F5;
    border: 2px solid black;
}

.tile span {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007BFF;
    padding: 5px;
    width: 50%;
    text-align: center;
}

.tile:hover span {
    display: block;
    color: white;
    text-align: center;
    background-color: #007BFF;
    padding: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#info-icon {
    width: 24px;
    height: auto;
}

.tile label {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #000;
    cursor: pointer;
}

.tile input[type="checkbox"]:checked + label::before {
    content: '\2713';
    font-size: 18px;
    color: #000;
}

.modal-open {
    overflow: hidden;
}

.modal {
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
}


.tile img {
    height: 280px;
}
      
          
 .tile {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    @media (min-width: 576px) {
        .tile {
            width: 48%;
        }
    }

    @media (min-width: 768px) {
        .tile {
            width: 32%;
        }
    }

    @media (min-width: 992px) {
        .tile {
            width: 33%;
        }
    }

    @media (min-width: 1200px) {
        .tile {
            width: 31%;
        }
    }
@media (min-width: 1200px) {
    .container {
        max-width: 1500px !important;
            }
}


.modal-header .close {
    font-size: 3em;
}

.modal-content {
    border: none !important; 
    font-size : 14px;
    line-height: 1.5;
    color: black;
}

.modal-header,
.modal-footer {
    border: none !important; 
}
 .custom-close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

#devisBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #thumbnailsContainer {
        display: flex;
        align-items: center;
    }

    .selected-tech-thumbnail {
        max-width: 50px;
        max-height: 50px;
        margin-right: 10px;
    }

    #devisButtonsContainer {
        display: flex;
        gap: 10px;
    }
    .selected-tech-thumbnail {
        max-width: 70px;
        max-height: 70px;
        margin-right: 10px;
    }


#thumbnailsContainer {
    white-space: nowrap;
}

.thumbnail-wrapper {
    display: inline-block;
    margin-right: 10px;
}

        #previsiteModal .modal-content {
    background-color: rgba(200, 200, 200, 0.9);
    border-radius: 10px; 
        }

        #previsiteModal .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModal .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModal .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModal .modal-footer .btn-close {
            width: 45%;
            background-color: #6c757d; 
            border-color: #6c757d; 
        }

        #previsiteModal .modal-footer .btn-close:hover {
            background-color: #5a6268; 
            border-color: #545b62; 
        }


        #previsiteModalWithButton .modal-content {
    background-color: rgba(200, 200, 200, 0.9); 
    border-radius: 10px; 
        }

        #previsiteModalWithButton .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModalWithButton .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModalWithButton .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModalWithButton .modal-footer .btn-close {
            width: 45%; 
            background-color: #6c757d; 
            border-color: #6c757d; 
        }

        #previsiteModalWithButton .modal-footer .btn-close:hover {
            background-color: #5a6268; 
            border-color: #545b62; 
        }
    
    
@media (max-width: 767px) {
    .menu-col {
        display: none;
    }

    #menu-toggle {
        display: block;
        margin-bottom: 10px;
    }

    .show-menu .menu-col {
        display: block;
    }
}

.image-container {
    position: relative;
    display: inline-block;
}

.remise-ellipse {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 1;
    line-height: 50px;
    text-align: center;
    color: white;
}


.custom-title {
    background-color: rgb(0, 123, 255); 
    color: white; 
    width: 80%;
    font-size: 24px; 
    font-weight: normal;
    padding-top: 10px !important; 
    padding-bottom: 10px !important;

}

.custom-button {
    background-color: rgb(0, 123, 255) !important; 
    color: white !important; 
    border: 1px solid rgb(0, 123, 255) !important; 
    text-align: center !important; 
    margin: auto !important;
    padding: 10px 10px !important; 
    border-radius: 5px !important; 

}
#search {
    border-radius: 5px !important; 
    width: 200px !important; 
}

    
#select-technologie {
    background-color: #007bff; 
    color: white; 
    margin-top: 15px; 
    margin-bottom: 15px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    border: 1px solid #007bff; 
    border-radius: 5px; 
    font-weight: normal; 
    font-size: 18px; 
}
    
    #deselect-technologie {
    background-color: #dc3545; 
    color: white; 
    margin-top: 15px; 
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 10px; 
    border: 1px solid #dc3545;
    border-radius: 5px; 
    font-weight: normal; 
    font-size: 18px; 
}
    
    #reset-selection-button {
    background-color: gray;
    color: white; 
    border: 1px solid gray; 
    border-radius: 2px; 
    font-weight: normal; 
    font-size: 15px !important; 
    margin-top: 10px;
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
}
    
    #demanderDevisButton {
    background-color: #007bff;
    color: white; 
    border: 1px solid #007bff; 
    border-radius: 5px; 
    font-weight: normal;
    font-size: 15px !important; 
    margin-top: 10px; 
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    
}
    
    #reserverRendezVousButton {
    background-color: #17a2b8; 
    color: white;
    border: 1px solid #17a2b8;
    border-radius: 5px;
    font-weight: normal; 
    font-size: 15px !important;
    margin-top: 10px; 
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    }
    
    #mobile-search-container {
    background-color: #ffffff; 
    }
    

@media only screen and (max-width: 768px) {
    #demanderDevisButton, #reserverRendezVousButton {
        display: inline-block !important;
        width: auto !important;
        margin-right: 10px !important;
         margin-left: 10px !important;
        padding: 15px !important;
    }
    
}

@media only screen and (max-width: 768px) {
    .desktop {
        display: none !important; 
    }
}

@media only screen and (min-width: 769px) {
    .mobile {
        display: none !important; 
    }
}

    
    @media (max-width: 767px) {
    .mobile-button-width {
        width: 85% !important;
    }
}

#famille-menu a.active {
    background-color: #007bff;
    color: #FFFFFF;
}

@media screen and (max-width: 768px) {
  /* Styles spécifiques pour les mobiles ici */

  /* Style pour le bouton 'croix' pour minimiser la barre */
  #closeButton {
    display: block; /* rend le bouton visible seulement sur mobile */
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    z-index: 2;
  }

  /* Style pour l'icône d'agrandissement visible uniquement lorsque la barre est minimisée */
  #expandIcon {
    display: none; /* caché par défaut */
    position: absolute;
    right: 10px;
    bottom: 0;
    cursor: pointer;
    font-size: 20px;
    color: white;
    z-index: 2;
  }

  #devisBar.minimized {
    height: 50px; /* hauteur de l'icône + padding */
    padding: 10px 10px 10px 0;
    overflow: hidden;
  }

  #devisBar.minimized #expandIcon {
    display: block; /* affiche l'icône d'agrandissement */
  }
}
    
     .carousel-inner img {
    width: auto; /* Préserve les proportions de l'image */
    max-height: 350px; /* Limite la hauteur maximale à 350px */
    object-fit: contain; /* Contient l'image dans le conteneur sans la couper */
    margin: 0 auto; /* Centre l'image horizontalement si nécessaire */
}

    
    /* Ajustements pour les écrans de moins de 768px (tablettes et mobiles) */
@media (max-width: 767px) {
    .carousel-inner img {
        max-height: 200px; /* Réduit la hauteur maximale sur mobile */
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 30px; /* Agrandit les contrôles de navigation */
        height: 30px;
    }
}
   
    
       /* Alignement des éléments dans input-group */
    .input-group {
        display: flex;
        flex-wrap: nowrap; /* Assure que tout reste sur une seule ligne */
        width: 100%;
    }

    .input-group-prepend .input-group-text {
        background-color: #f1f1f1; /* Fond pour l'icône */
        border-right: 0; /* Retirer la bordure à droite de l'icône */
        padding-left: 10px;
        padding-right: 10px;
    }

    
/* On limite ces styles au champ téléphone avec icône */
.form-control {
    border-left: 0;
    padding-left: 35px;
    height: calc(2.25rem + 2px);
}


    /* Ajuster la taille de l'icône à l'intérieur du champ */
    .input-group-text i {
        font-size: 16px; /* Taille de l'icône */
    }
    
    
    
    
 
 
 @media (min-width: 992px) {
  .menu-col {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: 10px;
    padding: 15px;
    z-index: 999;
    transition: max-height 0.4s ease-in-out;
  }

  html, body,
  .page-wrapper,
  main#main,
  .container,
  .row {
    overflow: visible !important;
  }
}













/* ——— Cartes & layout VIN ——— */
.vin-card{
  border:1px solid #e5e7eb;            /* gris clair */
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
/*.vin-label{ color:#0f172a; margin:0 0 .25rem; }*/
.vin-info{ margin-top:.35rem; }
.vin-info-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:.45rem .4rem; border-top:1px dashed #eef2ff;
}
.vin-info-title{ color:#64748b; font-weight:600; font-size:.92rem; }
.vin-info-value{ color:#0f172a; font-weight:700; }

/* ——— Photos ——— */
.veh-photos{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px;
}
.veh-photo-card{
  border:1px solid #e5e7eb; border-radius:12px; padding:.5rem; background:#fff;
}
.veh-photo-head{ font-size:.8rem; font-weight:600; color:#64748b; margin-bottom:.35rem; }
.veh-photo{
  width:100%; aspect-ratio: 16 / 10; object-fit:cover; border-radius:10px;
  background:#f1f5f9; opacity:0; transition:opacity .25s ease;  /* fade-in */
}
.veh-photo.is-ready{ opacity:1; }

/* ——— Colonne 1 compacte sur desktop ——— */
@media (min-width: 768px){
  #searchContainer{ max-width: 420px; }
}








/* ===== PATCH TOPBAR VIN — même ligne, pas d'encadrement ===== */

/* 0) On neutralise l'ancien layout colonne appliqué à #searchForm */
.vin-topbar #searchForm{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px;
}

/* 1) On annule la contrainte de largeur à 420px du conteneur desktop */
@media (min-width:768px){
  #searchContainer.vin-topbar{ max-width:none !important; }
}

/* 2) Pas de bordure/ombre autour du bloc (on garde la grande bordure externe de ta page) */
.vin-topbar{ border:0 !important; box-shadow:none !important; background:transparent !important; }

/* 3) Bouton à gauche, look bleu */
.vin-topbar .vin-cta{
  background:#0c6cf2; color:#fff; border:0; border-radius:30px;
  padding:10px 18px; font-weight:700; white-space:nowrap;
}

/* 4) Champ à droite, sur la même ligne, sans prendre 100% */
.vin-topbar .vin-input{
  flex:1 1 0%;
  min-width:260px; max-width:420px;
  border:1.5px solid #1e73ff; border-radius:30px;
  padding:10px 16px; font-size:15px; outline:none;
}
.vin-topbar .vin-input::placeholder{ color:#4b5563; opacity:.8; }

/* 5) Cache le message "Saisir 17 caractères." */
#vinHelp{ display:none !important; }

/* 6) Sécurité : pas d'autres bordures/ombres injectées par des styles globaux */
.vin-topbar .vin-inline{ border:0 !important; box-shadow:none !important; background:transparent !important; }

/* 7) Mobile : on repasse en 2 lignes, plein largeur */
@media (max-width:768px){
  .vin-topbar #searchForm{ flex-wrap:wrap !important; }
  .vin-topbar .vin-cta,
  .vin-topbar .vin-input{ width:100%; max-width:100%; }
}

/* 8) IMPORTANT : on empêche la règle globale qui met tous les #searchForm en colonne
      d’impacter la topbar VIN */
#searchForm{ /* règle globale existante pour d'autres formulaires */ }
.vin-topbar #searchForm input{ width:auto !important; }  /* annule width:100% global */


/* ——— Bouton VIN Topbar : garder le texte blanc au survol ——— */
.vin-topbar .vin-cta:hover {
  background: #0058d4;   /* bleu plus foncé */
  color: #fff !important; /* ✅ garde le texte blanc */
}
.vin-topbar .vin-cta:focus {
  color: #fff !important;
}





/* === VIN RESULT FIXES (override Bootstrap + thème) === */

/* Grille 4 colonnes comme la maquette */
.vin-grid{
  display:grid;
  grid-template-columns: 1.15fr 1.6fr 1.1fr 1.1fr;
  gap:16px;
  align-items:start;
  margin-top:12px;
  border:1px solid #b7d4ff;
  border-radius:14px;
  padding:12px;
  background:#fff;
}

/* ✅ Neutraliser l'influence de Bootstrap sur les items */
.vin-grid > [class^="col-"],
.vin-grid > [class*=" col-"]{
  max-width: initial !important;
  flex: initial !important;
  width: auto !important;
  padding: 0 !important;   /* pas de gutters bootstrap dans la grille */
}

/* ✅ Bloquer tout texte vertical hérité du thème */
.vin-grid, .vin-grid *{
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
   /*transform: none !important;*/
  letter-spacing: normal !important;
  white-space: normal !important;
}

/* Cartes */
.vin-card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 20px rgba(20,35,80,.06);
}

.vin-label{
  margin:0 0 .5rem;
  font-size:20px;
  color:black;
 text-align: left;
}

/* Tableau specs : titre à gauche / valeur à droite (sur une ligne) */
.vin-info{ display:flex; flex-direction:column; gap:10px; }
.vin-info-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.vin-info-row:last-child{ border-bottom:0; }
.vin-info-title{
  flex:0 0 48%;
  min-width:220px;
  color:#6a7491;
  font-weight:600;
}
.vin-info-value{
  flex:1 1 auto;
  color:#0e244f;
  font-weight:700;
  text-align:left;         /* maquette : valeurs alignées à gauche */
  white-space:nowrap;      /* évite la casse en colonnes larges */
}

/* CTA */
.vin-cta{
  background:#1f2c59; color:#fff; border:none;
  padding:10px 14px; border-radius:10px;
}
.vin-cta:hover{ filter:brightness(1.06); }

/* Images (carte 3 & 4) */
.vin-img-card{ display:flex; align-items:center; justify-content:center; }
.veh-photo{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;     /* garde la proportion même avant chargement */
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 8px 20px rgba(20,35,80,.06);
}

/* Responsive (2 colonnes / 1 colonne) */
@media (max-width:1199px){
  .vin-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:767px){
  .vin-grid{ grid-template-columns: 1fr; }
}




/* === Colonne 1 : Véhicule + VIN (en gras, collés verticalement) === */
#vinHeaderCol .vin-card {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20,35,80,.04);
}

/* Titre "Véhicule" en gras et collé au VIN */
#vinHeaderCol .vin-label {
  margin-bottom: 0px !important; /* colle au VIN */
  line-height: 1.1;
  font-size:20px;
  color:black;
 text-align: left;
}



/* VIN : en gras, juste en dessous du mot Véhicule */
#vinHeaderCol #vr_vin {
  display: block;
  font-weight: 700;
  font-size:20px;
  color: #0e244f;
  margin-top: 1px !important;    /* rapproche au max */
  margin-bottom: 6px;            /* petit espace avant le bouton */
  line-height: 1.1;
}

/* Ligne de séparation fine avant le bouton */
#vinHeaderCol .vin-info {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

/* Bouton bleu */
#vinHeaderCol .vin-cta {
  align-self: center;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  margin-top: 0;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
#vinHeaderCol .vin-cta:hover {
  background: #166fe0;
  transform: scale(1.03);
}







/* === Colonne 2 : alignement serré label + valeur sur une ligne === */
#devModelCol .vin-card {
  padding: 18px 22px;
}

/* Réduction de l’espace vertical */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 4px; /* moins d’espace entre les lignes */
}

/* Ligne compacte label + valeur */
#devModelCol .vin-info-row {
  display: flex;
  align-items: baseline;
  gap: 6px;               /* Espace très court entre label et valeur */
  padding: 3px 0;         /* Lignes plus serrées */
  border-bottom: none;    /* Pas de tirets entre lignes */
}

/* Label — collé à la valeur */
#devModelCol .vin-info-title {
  flex: 0 0 auto;
  color: #60687e;
  font-weight: 600;
  font-size: 0.97rem;
  margin-right: 4px;
  white-space: nowrap;
}

/* Valeur — juste après le label */
#devModelCol .vin-info-value {
  flex: 1 1 auto;
  color: #0e244f;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

/* Ajustement global du rendu visuel */
#devModelCol .vin-info-row span {
  display: inline-block;
  vertical-align: middle;
}




/* === COLONNE 2 — affichage compact comme maquette === */
#devModelCol .vin-card {
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
}

/* Liste ultra compacte */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 2px; /* encore moins d'espace vertical */
}

/* Chaque ligne : label + valeur rapprochés */
#devModelCol .vin-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px; /* rapproche le texte */
  align-items: baseline;
  padding: 1px 0; /* réduit au minimum */
  border-bottom: none;
}

/* Respect du masquage JS */
#devModelCol .vin-info-row[style*="display: none"] {
  display: none !important;
}

/* Labels */
#devModelCol .vin-info-title {
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: #60687e;
  white-space: nowrap;
  margin: 0;
  line-height: 1.1;
}

/* Valeurs */
#devModelCol .vin-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0e244f;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}

/* Ajustement pour labels longs */
#premiereImmatRow .vin-info-title,
#iLevelActuelRow .vin-info-title {
  font-size: 0.9rem;
}

/* Adaptation mobile */
@media (max-width: 767px) {
  #devModelCol .vin-card { padding: 12px 14px; }
  #devModelCol .vin-info-title { font-size: 0.9rem; }
  #devModelCol .vin-info-value { font-size: 0.9rem; }
}



/* === Colonne 2 : texte noir non gras, sans bordure === */
#devModelCol .vin-card {
  padding: 14px 18px;
  background: #fff;
  border: none !important;     
  border-radius: 14px;
  box-shadow: none;            
}

/* Liste compacte */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Espacement minimal */
}

/* Chaque ligne : label + valeur rapprochés */
#devModelCol .vin-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: baseline;
  padding: 1px 0;
  border-bottom: none;
}

/* Labels (normal, noir) */
#devModelCol .vin-info-title {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 400;           
  color: #000;                 
  white-space: nowrap;
  margin: 0;
  line-height: 1.1;
}

/* Valeurs (normal, noir aussi) */
#devModelCol .vin-info-value {
  font-size: 0.95rem;
  font-weight: 400;             /* ✅ non gras */
  color: #000;                  /* ✅ noir */
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}

/* Ajustement pour labels longs */
#premiereImmatRow .vin-info-title,
#iLevelActuelRow .vin-info-title {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 767px) {
  #devModelCol .vin-card { padding: 12px 14px; }
  #devModelCol .vin-info-title,
  #devModelCol .vin-info-value {
    font-size: 0.9rem;
  }
}


/* === Corrige l'alignement vertical de la colonne 2 === */
#devModelCol {
  margin-top: 0 !important;     /* supprime marge externe */
  padding-top: 0 !important;    /* supprime padding interne bootstrap */
  display: flex;
  align-items: flex-start;      /* aligne tout en haut */
}

#devModelCol .vin-card {
  margin-top: 0 !important;     /* évite tout décalage résiduel */
  padding-top: 0px !important;             /* garde un petit espace visuel doux */
}






/* === Images (colonnes 3 & 4) — sans cadran === */

/* Supprimer le cadre/ombre de la carte qui entoure l'image */
#photosExtCol .vin-card,
#photosIntCol .vin-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;           /* pas de marge interne autour de l'image */
}

/* Conteneur d'alignement */
.vin-img-card{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Image pleine largeur, sans fond ni bordure */
.veh-photo{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;             /* garde une taille régulière */
  height:auto;                      /* laisse le ratio faire le job */
  object-fit: cover;                /* remplit la carte, pas de bandes */
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px;              /* léger arrondi comme la maquette */
}

/* Option (si tu veux un peu plus haut sur desktop) */
@media (min-width: 1400px){
  .veh-photo{ aspect-ratio: 16 / 9; }  /* look plus panoramique */
}


/* === Zoom léger sur la photo extérieure === */
#photosExtCol .veh-photo {
  object-fit: cover;         /* garde la proportion */
  transform: scale(1.45) !important;    /* zoom à 115 % */
  transform-origin: center;  /* centre le zoom */
  transition: transform 0.4s ease-in-out; /* effet doux */
}

/* Option : petit effet au survol (facultatif) */
#photosExtCol .veh-photo:hover {
  transform: scale(1.2);
}




/* ====== Col.2 pleine largeur quand VIN non trouvé ====== */
.vin-grid .col2-span-3{
  grid-column: 2 / span 3;  /* Col.2 occupe les colonnes 2,3,4 */
}

/* En 2 colonnes (<=1199px), on étale sur toute la rangée */
@media (max-width:1199px){
  .vin-grid .col2-span-3{ grid-column: 1 / -1; }
}

/* En 1 colonne (<=767px), c'est déjà full width, mais on garde la règle */
@media (max-width:767px){
  .vin-grid .col2-span-3{ grid-column: 1 / -1; }
}








  html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

    
body, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Montserrat', sans-serif;
}

.tile-container {
    margin: 0 auto ; 
    max-width: 1900px; 
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

   h1.custom-title {
      color: #007bff; 
      text-align: left;
      margin-left: 20px;
   }
        .tile {
            display: inline-block;
            margin: 10px;
            margin-bottom: 30px;
            border: 1px solid #ccc;
            padding: 10px;
            width: 30%;
            box-sizing: border-box;
            text-align: center;
            cursor: pointer;
        }

        .row {
            text-align: center;
        }
        
        .tile img {
            max-width: 100%;
            height: auto;
        }

.tile input[type="checkbox"] {
    display: none;
}

.tile label {
    display: block;
    cursor: pointer;
    font-size: 0;
    color: transparent;
}

.tile input[type="checkbox"]:checked + label {
    background-color: #000080;
    color: white;
}

.tile label span {
    font-size: 16px;
    color: #000;
}

.tile h2 {
    font-size: 22px;
    color: blue;
    margin-top: 10px;
    font-weight: normal;  
}

.tile p {
  font-size: 15px !important;
  color: black !important;
  line-height: 1.5;
    filter: brightness(90%); 

}

.btn-group .btn {
    margin-right: 10px;
}

.btn-group .btn {
    background-color: #007bff;
    color: #fff;
}

.btn-group .btn.active {
    background-color: #ff5733;
    color: #fff;
}

button#resetSearch.btn.btn-secondary {
    background-color: grey !important;
    border-color: grey !important;
}
  
    .tile {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    @media (min-width: 576px) {
        .tile {
            width: 48%;
        }
    }

    @media (min-width: 768px) {
        .tile {
            width: 32%;
        }
    }

    @media (min-width: 992px) {
        .tile {
            width: 33%; 
        }
    }

    @media (min-width: 1200px) {
        .tile {
            width: 31%;
        }
    }
@media (min-width: 1200px) {
    .container {
        max-width: 1500px !important;
            }
}


.modal-header .close {
    font-size: 3em;
}

.modal-content {
    border: none !important;
    font-size: 12px;
}

.modal-header,
.modal-footer {
    border: none !important; 
}
 .custom-close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

#devisBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #thumbnailsContainer {
        display: flex;
        align-items: center;
    }

    .selected-tech-thumbnail {
        max-width: 50px;
        max-height: 50px;
        margin-right: 10px;
    }

    #devisButtonsContainer {
        display: flex;
        gap: 10px;
    }
    .selected-tech-thumbnail {
        max-width: 70px;
        max-height: 70px;
        margin-right: 10px;
    }


#thumbnailsContainer {
    white-space: nowrap;
}

.thumbnail-wrapper {
    display: inline-block;
    margin-right: 10px; 
}


  #previsiteModal .modal-content {
    background-color: rgba(200, 200, 200, 0.9); 
    border-radius: 10px;
        }

        #previsiteModal .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModal .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModal .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModal .modal-footer .btn-close {
            width: 45%; 
            background-color: #6c757d; 
            border-color: #6c757d;
        }

        #previsiteModal .modal-footer .btn-close:hover {
            background-color: #5a6268;
            border-color: #545b62; 
        }

.tile:hover {
    transform: scale(1.1);
    background-color: #E8F0F5;
    border: 2px solid black;
}

.tile span {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007BFF;
    padding: 5px;
    width: 50%;
    text-align: center;
}

.tile:hover span {
    display: block;
    color: white;
    text-align: center;
    background-color: #007BFF;
    padding: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#info-icon {
    width: 24px;
    height: auto;
}

.tile label {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #000;
    cursor: pointer;
}

.tile input[type="checkbox"]:checked + label::before {
    content: '\2713';
    font-size: 18px;
    color: #000;
}

.modal-open {
    overflow: hidden;
}

.modal {
    overflow-y: auto;
}

.modal-backdrop {
    position: fixed;
}


.tile img {
    height: 280px;
}
      
          
 .tile {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
    }

    @media (min-width: 576px) {
        .tile {
            width: 48%;
        }
    }

    @media (min-width: 768px) {
        .tile {
            width: 32%;
        }
    }

    @media (min-width: 992px) {
        .tile {
            width: 33%;
        }
    }

    @media (min-width: 1200px) {
        .tile {
            width: 31%;
        }
    }
@media (min-width: 1200px) {
    .container {
        max-width: 1500px !important;
            }
}


.modal-header .close {
    font-size: 3em;
}

.modal-content {
    border: none !important; 
    font-size : 14px;
    line-height: 1.5;
    color: black;
}

.modal-header,
.modal-footer {
    border: none !important; 
}
 .custom-close-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

#devisBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #thumbnailsContainer {
        display: flex;
        align-items: center;
    }

    .selected-tech-thumbnail {
        max-width: 50px;
        max-height: 50px;
        margin-right: 10px;
    }

    #devisButtonsContainer {
        display: flex;
        gap: 10px;
    }
    .selected-tech-thumbnail {
        max-width: 70px;
        max-height: 70px;
        margin-right: 10px;
    }


#thumbnailsContainer {
    white-space: nowrap;
}

.thumbnail-wrapper {
    display: inline-block;
    margin-right: 10px;
}

        #previsiteModal .modal-content {
    background-color: rgba(200, 200, 200, 0.9);
    border-radius: 10px; 
        }

        #previsiteModal .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModal .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModal .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModal .modal-footer .btn-close {
            width: 45%;
            background-color: #6c757d; 
            border-color: #6c757d; 
        }

        #previsiteModal .modal-footer .btn-close:hover {
            background-color: #5a6268; 
            border-color: #545b62; 
        }


        #previsiteModalWithButton .modal-content {
    background-color: rgba(200, 200, 200, 0.9); 
    border-radius: 10px; 
        }

        #previsiteModalWithButton .modal-body {
            padding: 20px; 
            text-align: center; 
        }

        #previsiteModalWithButton .modal-footer {
            justify-content: space-between; 
        }

        #previsiteModalWithButton .modal-footer .btn-primary {
            width: 45%; 
        }

        #previsiteModalWithButton .modal-footer .btn-close {
            width: 45%; 
            background-color: #6c757d; 
            border-color: #6c757d; 
        }

        #previsiteModalWithButton .modal-footer .btn-close:hover {
            background-color: #5a6268; 
            border-color: #545b62; 
        }
    
    
@media (max-width: 767px) {
    .menu-col {
        display: none;
    }

    #menu-toggle {
        display: block;
        margin-bottom: 10px;
    }

    .show-menu .menu-col {
        display: block;
    }
}

.image-container {
    position: relative;
    display: inline-block;
}

.remise-ellipse {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    border-radius: 50%;
    z-index: 1;
    line-height: 50px;
    text-align: center;
    color: white;
}


.custom-title {
    background-color: rgb(0, 123, 255); 
    color: white; 
    width: 80%;
    font-size: 24px; 
    font-weight: normal;
    padding-top: 10px !important; 
    padding-bottom: 10px !important;

}

.custom-button {
    background-color: rgb(0, 123, 255) !important; 
    color: white !important; 
    border: 1px solid rgb(0, 123, 255) !important; 
    text-align: center !important; 
    margin: auto !important;
    padding: 10px 10px !important; 
    border-radius: 5px !important; 

}
#search {
    border-radius: 5px !important; 
    width: 200px !important; 
}

    
#select-technologie {
    background-color: #007bff; 
    color: white; 
    margin-top: 15px; 
    margin-bottom: 15px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    border: 1px solid #007bff; 
    border-radius: 5px; 
    font-weight: normal; 
    font-size: 18px; 
}
    
    #deselect-technologie {
    background-color: #dc3545; 
    color: white; 
    margin-top: 15px; 
    margin-bottom: 15px;
    padding-top: 10px;
    padding-bottom: 10px; 
    border: 1px solid #dc3545;
    border-radius: 5px; 
    font-weight: normal; 
    font-size: 18px; 
}
    
    #reset-selection-button {
    background-color: gray;
    color: white; 
    border: 1px solid gray; 
    border-radius: 2px; 
    font-weight: normal; 
    font-size: 15px !important; 
    margin-top: 10px;
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
}
    
    #demanderDevisButton {
    background-color: #007bff;
    color: white; 
    border: 1px solid #007bff; 
    border-radius: 5px; 
    font-weight: normal;
    font-size: 15px !important; 
    margin-top: 10px; 
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    
}
    
    #reserverRendezVousButton {
    background-color: #17a2b8; 
    color: white;
    border: 1px solid #17a2b8;
    border-radius: 5px;
    font-weight: normal; 
    font-size: 15px !important;
    margin-top: 10px; 
    margin-bottom: 10px; 
    padding-top: 10px; 
    padding-bottom: 10px; 
    }
    
    #mobile-search-container {
    background-color: #ffffff; 
    }
    

@media only screen and (max-width: 768px) {
    #demanderDevisButton, #reserverRendezVousButton {
        display: inline-block !important;
        width: auto !important;
        margin-right: 10px !important;
         margin-left: 10px !important;
        padding: 15px !important;
    }
    
}

@media only screen and (max-width: 768px) {
    .desktop {
        display: none !important; 
    }
}

@media only screen and (min-width: 769px) {
    .mobile {
        display: none !important; 
    }
}

    
    @media (max-width: 767px) {
    .mobile-button-width {
        width: 85% !important;
    }
}

#famille-menu a.active {
    background-color: #007bff;
    color: #FFFFFF;
}

@media screen and (max-width: 768px) {
  /* Styles spécifiques pour les mobiles ici */

  /* Style pour le bouton 'croix' pour minimiser la barre */
  #closeButton {
    display: block; /* rend le bouton visible seulement sur mobile */
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    z-index: 2;
  }

  /* Style pour l'icône d'agrandissement visible uniquement lorsque la barre est minimisée */
  #expandIcon {
    display: none; /* caché par défaut */
    position: absolute;
    right: 10px;
    bottom: 0;
    cursor: pointer;
    font-size: 20px;
    color: white;
    z-index: 2;
  }

  #devisBar.minimized {
    height: 50px; /* hauteur de l'icône + padding */
    padding: 10px 10px 10px 0;
    overflow: hidden;
  }

  #devisBar.minimized #expandIcon {
    display: block; /* affiche l'icône d'agrandissement */
  }
}
    
     .carousel-inner img {
    width: auto; /* Préserve les proportions de l'image */
    max-height: 350px; /* Limite la hauteur maximale à 350px */
    object-fit: contain; /* Contient l'image dans le conteneur sans la couper */
    margin: 0 auto; /* Centre l'image horizontalement si nécessaire */
}

    
    /* Ajustements pour les écrans de moins de 768px (tablettes et mobiles) */
@media (max-width: 767px) {
    .carousel-inner img {
        max-height: 200px; /* Réduit la hauteur maximale sur mobile */
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 30px; /* Agrandit les contrôles de navigation */
        height: 30px;
    }
}
   
    
       /* Alignement des éléments dans input-group */
    .input-group {
        display: flex;
        flex-wrap: nowrap; /* Assure que tout reste sur une seule ligne */
        width: 100%;
    }

    .input-group-prepend .input-group-text {
        background-color: #f1f1f1; /* Fond pour l'icône */
        border-right: 0; /* Retirer la bordure à droite de l'icône */
        padding-left: 10px;
        padding-right: 10px;
    }

        /* On limite ces styles au champ téléphone avec icône */
            .form-control {
                border-left: 0;
                padding-left: 35px;
                height: calc(2.25rem + 2px);
            }



    /* Ajuster la taille de l'icône à l'intérieur du champ */
    .input-group-text i {
        font-size: 16px; /* Taille de l'icône */
    }
    
    
    
    
 
 
 @media (min-width: 992px) {
  .menu-col {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: 10px;
    padding: 15px;
    z-index: 999;
    transition: max-height 0.4s ease-in-out;
  }




  html, body,
  .page-wrapper,
  main#main,
  .container,
  .row {
    overflow: visible !important;
  }
}







/* ===== PATCH TOPBAR VIN — même ligne, pas d'encadrement ===== */

/* 0) On neutralise l'ancien layout colonne appliqué à #searchForm */
.vin-topbar #searchForm{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px;
}

/* 1) On annule la contrainte de largeur à 420px du conteneur desktop */
@media (min-width:768px){
  #searchContainer.vin-topbar{ max-width:none !important; }
}

/* 2) Pas de bordure/ombre autour du bloc (on garde la grande bordure externe de ta page) */
.vin-topbar{ border:0 !important; box-shadow:none !important; background:transparent !important; }

/* 3) Bouton à gauche, look bleu */
.vin-topbar .vin-cta{
  background:#0c6cf2; color:#fff; border:0; border-radius:30px;
  /*padding:10px 18px; font-weight:700; white-space:nowrap;*/
  padding:1px 9px; font-weight:700; white-space:nowrap;
}

/* 4) Champ à droite, sur la même ligne, sans prendre 100% */
.vin-topbar .vin-input{
  flex:1 1 0%;
  min-width:260px; max-width:420px;
  border:1.5px solid #1e73ff; border-radius:30px;
  /*padding:10px 16px; font-size:15px; outline:none;*/
  padding:1px 8px; font-size:15px; outline:none;
}
.vin-topbar .vin-input::placeholder{ color:#4b5563; opacity:.8; }

/* 5) Cache le message "Saisir 17 caractères." */
#vinHelp{ display:none !important; }

/* 6) Sécurité : pas d'autres bordures/ombres injectées par des styles globaux */
.vin-topbar .vin-inline{ border:0 !important; box-shadow:none !important; background:transparent !important; }

/* 7) Mobile : on repasse en 2 lignes, plein largeur */
@media (max-width:768px){
  .vin-topbar #searchForm{ flex-wrap:wrap !important; }
  .vin-topbar .vin-cta,
  .vin-topbar .vin-input{ width:100%; max-width:100%; }
}

/* 8) IMPORTANT : on empêche la règle globale qui met tous les #searchForm en colonne
      d’impacter la topbar VIN */
#searchForm{ /* règle globale existante pour d'autres formulaires */ }
.vin-topbar #searchForm input{ width:auto !important; }  /* annule width:100% global */


/* ——— Bouton VIN Topbar : garder le texte blanc au survol ——— */
.vin-topbar .vin-cta:hover {
  background: #0058d4;   /* bleu plus foncé */
  color: #fff !important; /* ✅ garde le texte blanc */
}
.vin-topbar .vin-cta:focus {
  color: #fff !important;
}





/* === VIN RESULT FIXES (override Bootstrap + thème) === */

/* Grille 4 colonnes comme la maquette */
.vin-grid{
  display:grid;
  grid-template-columns: 1.15fr 1.6fr 1.1fr 1.1fr;
  gap:16px;
  align-items:start;
  margin-top:12px;
  border:1px solid #b7d4ff;
  border-radius:14px;
  padding:12px;
  background:#fff;
}

/* ✅ Neutraliser l'influence de Bootstrap sur les items */
.vin-grid > [class^="col-"],
.vin-grid > [class*=" col-"]{
  max-width: initial !important;
  flex: initial !important;
  width: auto !important;
  padding: 0 !important;   /* pas de gutters bootstrap dans la grille */
}

/* ✅ Bloquer tout texte vertical hérité du thème */
.vin-grid, .vin-grid *{
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
  /* transform: none !important;*/
  letter-spacing: normal !important;
  white-space: normal !important;
}

/* Cartes */
.vin-card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 20px rgba(20,35,80,.06);
}

/*.vin-label{
  margin:0 0 .5rem;
  font-size:1.05rem;
  color:#1f2c59;
  font-weight:700;
}*/

/* Tableau specs : titre à gauche / valeur à droite (sur une ligne) */
.vin-info{ display:flex; flex-direction:column; gap:10px; }
.vin-info-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  border-bottom:1px dashed rgba(0,0,0,.08);
}
.vin-info-row:last-child{ border-bottom:0; }
.vin-info-title{
  flex:0 0 48%;
  min-width:220px;
  color:#6a7491;
  font-weight:600;
}
.vin-info-value{
  flex:1 1 auto;
  color:#0e244f;
  font-weight:700;
  text-align:left;         /* maquette : valeurs alignées à gauche */
  white-space:nowrap;      /* évite la casse en colonnes larges */
}

/* CTA */
.vin-cta{
  background:#1f2c59; color:#fff; border:none;
  padding:10px 14px; border-radius:10px;
}
.vin-cta:hover{ filter:brightness(1.06); }

/* Images (carte 3 & 4) */
.vin-img-card{ display:flex; align-items:center; justify-content:center; }
.veh-photo{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;     /* garde la proportion même avant chargement */
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow:0 8px 20px rgba(20,35,80,.06);
}

/* Responsive (2 colonnes / 1 colonne) */
@media (max-width:1199px){
  .vin-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:767px){
  .vin-grid{ grid-template-columns: 1fr; }
}




/* === Colonne 1 : Véhicule + VIN (en gras, collés verticalement) === */
#vinHeaderCol .vin-card {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20,35,80,.04);
}

/* Titre "Véhicule" en gras et collé au VIN */
#vinHeaderCol .vin-label {
   font-size: 1.60rem !important;
  margin-bottom: 0px !important; /* colle au VIN */
  line-height: 1.1 !important;
  text-align: left;
  color:#0e244f !important;
}

/* VIN : en gras, juste en dessous du mot Véhicule */
#vinHeaderCol #vr_vin {
  display: block !important;
  font-size: 1.60rem !important;
  color: #0e244f !important;
  margin-top: 1px !important;    /* rapproche au max */
  margin-bottom: 6px !important;            /* petit espace avant le bouton */
  line-height: 1.1 !important;
}

/* Ligne de séparation fine avant le bouton */
#vinHeaderCol .vin-info {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

/* Bouton bleu */
#vinHeaderCol .vin-cta {
  align-self: center;
  background: #1877f2;
  color: #fff;
  font-weight: 600;
  font-size: 1.30rem !important;
  padding: 8px 18px !important;
  border-radius: 8px;
  border: none;
  margin-top: 0;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
#vinHeaderCol .vin-cta:hover {
  background: #166fe0;
  transform: scale(1.03);
}







/* === Colonne 2 : alignement serré label + valeur sur une ligne === */
#devModelCol .vin-card {
  padding: 18px 22px;
}

/* Réduction de l’espace vertical */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 4px; /* moins d’espace entre les lignes */
}

/* Ligne compacte label + valeur */
#devModelCol .vin-info-row {
  display: flex;
  align-items: baseline;
  gap: 6px;               /* Espace très court entre label et valeur */
  padding: 3px 0;         /* Lignes plus serrées */
  border-bottom: none;    /* Pas de tirets entre lignes */
}

/* Label — collé à la valeur */
#devModelCol .vin-info-title {
  flex: 0 0 auto;
  color: #60687e;
  font-weight: 600;
  font-size: 0.97rem;
  font-size: 1.97rem;
  margin-right: 4px;
  white-space: nowrap;
}

/* Valeur — juste après le label */
#devModelCol .vin-info-value {
  flex: 1 1 auto;
  color: #0e244f;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

/* Ajustement global du rendu visuel */
#devModelCol .vin-info-row span {
  display: inline-block;
  vertical-align: middle;
}




/* === COLONNE 2 — affichage compact comme maquette === */
#devModelCol .vin-card {
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
}

/* Liste ultra compacte */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 2px; /* encore moins d'espace vertical */
}

/* Chaque ligne : label + valeur rapprochés */
#devModelCol .vin-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px; /* rapproche le texte */
  align-items: baseline;
  padding: 1px 0; /* réduit au minimum */
  border-bottom: none;
}

/* Respect du masquage JS */
#devModelCol .vin-info-row[style*="display: none"] {
  display: none !important;
}

/* Labels */
#devModelCol .vin-info-title {
  min-width: 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: #60687e;
  white-space: nowrap;
  margin: 0;
  line-height: 1.1;
}

/* Valeurs */
#devModelCol .vin-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0e244f;
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}

/* Ajustement pour labels longs */
#premiereImmatRow .vin-info-title,
#iLevelActuelRow .vin-info-title {
  font-size: 0.9rem;
}

/* Adaptation mobile */
@media (max-width: 767px) {
  #devModelCol .vin-card { padding: 12px 14px; }
  #devModelCol .vin-info-title { font-size: 0.9rem; }
  #devModelCol .vin-info-value { font-size: 0.9rem; }
}



/* === Colonne 2 : texte noir non gras, sans bordure === */
#devModelCol .vin-card {
  padding: 14px 18px;
  background: #fff;
  border: none !important;      /* ✅ Supprime la bordure */
  border-radius: 14px;
  box-shadow: none;             /* ✅ Supprime toute ombre */
}

/* Liste compacte */
#devModelCol .vin-info {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Espacement minimal */
}

/* Chaque ligne : label + valeur rapprochés */
#devModelCol .vin-info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  align-items: baseline;
  padding: 1px 0;
  border-bottom: none;
}

/* Labels (normal, noir) */
#devModelCol .vin-info-title {
  min-width: 0;
  font-size: 1.30rem;
  font-weight: 400;             /* ✅ non gras */
  color: #000;                  /* ✅ noir */
  white-space: nowrap;
  margin: 0;
  line-height: 1.1;
}

/* Valeurs (normal, noir aussi) */
#devModelCol .vin-info-value {
  font-size: 1.30rem;
  font-weight: 400;             /* ✅ non gras */
  color: #000;                  /* ✅ noir */
  line-height: 1.1;
  white-space: normal;
  word-break: break-word;
}

/* Ajustement pour labels longs */
#premiereImmatRow .vin-info-title,
#iLevelActuelRow .vin-info-title {
  font-size: 1.30rem;
}

/* Responsive */
@media (max-width: 767px) {
  #devModelCol .vin-card { padding: 12px 14px; }
  #devModelCol .vin-info-title,
  #devModelCol .vin-info-value {
    font-size: 0.9rem;
  }
}


/* === Corrige l'alignement vertical de la colonne 2 === */
#devModelCol {
  margin-top: 0 !important;     /* supprime marge externe */
  padding-top: 0 !important;    /* supprime padding interne bootstrap */
  display: flex;
  align-items: flex-start;      /* aligne tout en haut */
}

#devModelCol .vin-card {
  margin-top: 0 !important;     /* évite tout décalage résiduel */
  padding-top: 0px !important;             /* garde un petit espace visuel doux */
}




/* === Images (colonnes 3 & 4) — sans cadran === */

/* Supprimer le cadre/ombre de la carte qui entoure l'image */
#photosExtCol .vin-card,
#photosIntCol .vin-card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;           /* pas de marge interne autour de l'image */
}

/* Conteneur d'alignement */
.vin-img-card{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Image pleine largeur, sans fond ni bordure */
.veh-photo{
  display:block;
  width:100%;
  aspect-ratio: 4 / 3;             /* garde une taille régulière */
  height:auto;                      /* laisse le ratio faire le job */
  object-fit: cover;                /* remplit la carte, pas de bandes */
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px;              /* léger arrondi comme la maquette */
}

/* Option (si tu veux un peu plus haut sur desktop) */
@media (min-width: 1400px){
  .veh-photo{ aspect-ratio: 16 / 9; }  /* look plus panoramique */
}


/* === Zoom léger sur la photo extérieure === */
#photosExtCol .veh-photo {
  object-fit: cover;         /* garde la proportion */
  transform: scale(1.45) !important;    /* zoom à 115 % */
  transform-origin: center;  /* centre le zoom */
  transition: transform 0.4s ease-in-out; /* effet doux */
}

/* Option : petit effet au survol (facultatif) */
#photosExtCol .veh-photo:hover {
  transform: scale(1.2);
}




/* ====== Col.2 pleine largeur quand VIN non trouvé ====== */
.vin-grid .col2-span-3{
  grid-column: 2 / span 3;  /* Col.2 occupe les colonnes 2,3,4 */
}

/* En 2 colonnes (<=1199px), on étale sur toute la rangée */
@media (max-width:1199px){
  .vin-grid .col2-span-3{ grid-column: 1 / -1; }
}

/* En 1 colonne (<=767px), c'est déjà full width, mais on garde la règle */
@media (max-width:767px){
  .vin-grid .col2-span-3{ grid-column: 1 / -1; }
}









/* ===== ALIGNEMENT STICKY FINAL ===== */

/* Ajustement visuel global */
:root{
  --sticky-top: 100px;  
  --sticky-offset: -50px;  
  --vin-align: -23px;      
}

/* Colonne gauche */
.menu-col{
  position: sticky;
  top: calc(var(--sticky-top) + var(--sticky-offset));
  z-index: 12;
  background: #fff;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Section VIN (même logique, mais avec correction d’alignement fine) */
#stickyDiv{
  position: sticky;
  top: calc(var(--sticky-top) + var(--sticky-offset) + var(--vin-align));
  z-index: 11;
  margin-top: 0 !important;
  background: #fff;
}

/* Empêche les parents de casser le sticky */
html, body, .page-wrapper, main#main, .container, .row, .col-md-10{
  overflow: visible !important;
  /*transform: none !important;*/
}

/* Supprime tout espace parasite en haut */
.menu-col,
#stickyDiv,
.col-md-10{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.col-md-10 > *:first-child{
  margin-top: 0 !important;
}







/* ===== Ajustements locaux VIN (page modèle) ===== */
#stickyDiv .vin-topbar{
  padding-top: 10px;                /* petit espace interne en haut */
  --vinH: 52px;                      /* hauteur commune */
}

#stickyDiv .vin-topbar #searchForm{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
}

/* Même hauteur pour le bouton ET le champ */
#stickyDiv .vin-topbar .vin-cta,
#stickyDiv .vin-topbar .vin-input{
  height:var(--vinH) !important;
}

/* Bouton: hauteur contrôlée par flex + padding horizontal */
#stickyDiv .vin-topbar .vin-cta{
  display:inline-flex !important;
  align-items:center !important;
  padding:0 22px !important;
  line-height:1 !important;
  border-radius:9999px !important;
}

/* Champ: on met le padding vertical à 0 pour égaliser la hauteur totale */
#stickyDiv .vin-topbar .vin-input{
  padding:0 16px !important;
  border-radius:9999px !important;
  box-shadow:none !important;
  outline:0 !important;
}

/* Mobile: casse la ligne proprement */
@media (max-width:768px){
  #stickyDiv .vin-topbar #searchForm{ flex-wrap:wrap !important; }
  #stickyDiv .vin-topbar .vin-cta,
  #stickyDiv .vin-topbar .vin-input{ width:100% !important; max-width:100% !important; }
}







/* ===== Loader AOS : pastille bleue + spinner rond ===== */
.gr-vin #aosLoader{
  /* l'inline JS met display:block ; on force l'alignement */
  padding: 6px 12px !important;
  border: 1px solid #b7d4ff !important;
  background: #f3f8ff !important;
  color: #0c6cf2 !important;
  border-radius: 999px !important;   /* pastille arrondie */
  align-items: center !important;
  gap: 8px !important;
  line-height: 1.2 !important;
  font-size: 0.95rem !important;
  width: fit-content !important;
}

/* Quand le JS met display:block, on bascule en inline-flex */
.gr-vin #aosLoader[style*="display:block"],
.gr-vin #aosLoader[style*="display: block"]{
  display: inline-flex !important;
}

/* Spinner Bootstrap teinté en bleu, plus fin */
.gr-vin #aosLoader .spinner-border{
  width: 14px !important;
  height: 14px !important;
  border-width: 2px !important;
  color: #0c6cf2 !important;          /* border-color utilise currentColor */
  border-right-color: transparent !important;
}

/* Compte à rebours en bleu, chiffres tabulaires alignés */
.gr-vin #aosCountdown{
  color: #0c6cf2 !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  margin-left: 2px !important;
  letter-spacing: .2px !important;
}





/* === Loader AOS — rond animé bleu + texte === */
.gr-vin #aosLoader{
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eaf2ff;
  border: 1px solid #b7d4ff;
  color: #0c6cf2;
  font-size: 1.30rem;
  font-weight: 500;
  width: fit-content;
  line-height: 1.2;
  animation: fadeIn 0.3s ease-in-out;
}

/* Quand il s’affiche via JS */
.gr-vin #aosLoader[style*="display:block"],
.gr-vin #aosLoader[style*="display: block"]{
  display: inline-flex !important;
}

/* === Spinner rond animé === */
.gr-vin #aosLoader .spinner-border{
  width: 16px;
  height: 16px;
  border: 2px solid #0c6cf2;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* === Compte à rebours === */
.gr-vin #aosCountdown{
  color: #0c6cf2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* === Animations === */
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}




/* === MOBILE : 2 mini-images côte à côte === */
@media (max-width: 768px) {

  /* On force une petite grille pour les images */
  #photosExtCol, #photosIntCol {
    width: 50% !important;        /* moitié chacun */
    display: inline-block !important;
    vertical-align: top;
    padding: 6px !important;
  }

  /* S'assure que les cartes n'ont pas de marge interne gênante */
  #photosExtCol .vin-card,
  #photosIntCol .vin-card {
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Miniatures : format carré ou 4:3, arrondies */
  .veh-photo {
    width: 100% !important;
    height: 120px !important;      /* hauteur fixe miniature */
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.08);
  }

  /* Supprimer zoom desktop sur mobile */
  #photosExtCol .veh-photo { transform: none !important; }
}



/* === MOBILE PATCH (placer à la FIN de ta feuille) === */
@media (max-width: 768px){

  /* La grille passe en 2 colonnes */
  .vin-grid{
    display:grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap:12px !important;
  }

  /* Carte "Véhicule" + Infos → prennent toute la largeur (2 colonnes) */
  #vinHeaderCol,
  #devModelCol{
    grid-column: 1 / -1 !important;
  }

  /* Les photos occupent chacune 1/2 largeur */
  #photosExtCol,
  #photosIntCol{
    grid-column: auto !important;
  }

  /* Miniatures propres */
  #photosExtCol .vin-card,
  #photosIntCol .vin-card{
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .veh-photo{
    width: 100% !important;
    height: 120px !important;   /* miniature */
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.08);
  }

  /* Supprime tout zoom desktop sur mobile */
  #photosExtCol .veh-photo{ transform: none !important; }
}



@media (max-width: 768px){
  #stickyDiv{
    position: static !important;
    top: auto !important;
  }
}


/* === MOBILE : 2 mini-images côte à côte, SANS COUPE === */
@media (max-width: 768px){

  /* grille 2 colonnes (header+infos sur toute la largeur) */
  .vin-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  #vinHeaderCol, #devModelCol{ grid-column: 1 / -1 !important; }

  #photosExtCol, #photosIntCol{
    grid-column: auto !important;
  }

  /* carte image compacte et centrée */
  #photosExtCol .vin-card,
  #photosIntCol .vin-card{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  /* miniature : montre TOUTE l’image (pas de crop) */
  .veh-photo{
    width: 100% !important;
    height: 140px !important;         /* ajuste 120–160px selon rendu */
    object-fit: contain !important;    /* ✅ pas de coupe */
    border-radius: 8px !important;
    background: #fff !important;       /* petit fond pour les bandes */
    padding: 0 !important;
    transform: none !important;        /* annule zoom éventuel */
  }
}

/* Mobile : pas de sticky sur la section VIN */
@media (max-width: 768px){
  #stickyDiv{ position: static !important; top: auto !important; }
}



/* ====== MOBILE : 2 images côte à côte, non coupées, avec petit espace ====== */
@media (max-width: 768px){

  /* 1) Grille en 2 colonnes pour le bloc résultats */
  #stickyDiv .vin-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 10px !important;   /* ← petit espace horizontal entre les 2 images */
    row-gap: 12px !important;
  }

  /* 2) Header + infos = pleine largeur (rangée complète) */
  #vinHeaderCol,
  #devModelCol{
    grid-column: 1 / -1 !important;
  }

  /* 3) Les 2 colonnes images prennent chacune 1/2 sans hacks width/inline-block */
  #photosExtCol,
  #photosIntCol{
    grid-column: auto !important;
    width: auto !important;              /* neutralise width:50% précédent */
    display: block !important;           /* neutralise inline-block précédent */
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 4) Cartes d'images épurées */
  #photosExtCol .vin-card,
  #photosIntCol .vin-card{
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* 5) Miniatures : afficher TOUTE l'image (pas de crop) */
  .veh-photo{
    display: block !important;
    width: 100% !important;
    height: 140px !important;            /* ajuste 120–160px selon préférence */
    object-fit: contain !important;      /* ✅ pas de découpe */
    background: #fff !important;         /* fond blanc autour si ratios diffèrent */
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    box-shadow: none !important;
    transform: none !important;          /* annule le zoom desktop sur mobile */
  }

  /* 6) Pas de sticky sur mobile */
  #stickyDiv{
    position: static !important;
    top: auto !important;
  }
}



/* Par défaut: n'afficher QUE la topbar; cacher le bloc résultats vide */
#stickyDiv:not(.has-results) .vin-grid,
#stickyDiv:not(.has-results) #vinHeaderCol,
#stickyDiv:not(.has-results) #devModelCol,
#stickyDiv:not(.has-results) #photosExtCol,
#stickyDiv:not(.has-results) #photosIntCol{
  display: none !important;
}

/* En plus, aucune bordure/padding du conteneur quand vide */
#stickyDiv:not(.has-results){
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Quand il y a des résultats (.has-results), on garde ton rendu normal */
#stickyDiv.has-results{
  border: 1px solid #007bff;       /* si tu veux garder la bordure bleue */
  border-radius: 20px;
  padding: 12px;
  background: #fff;
}


/* === 1️⃣ Cacher la section résultats quand elle est vide === */
#stickyDiv:not(.has-results) .vin-grid,
#stickyDiv:not(.has-results) #vinHeaderCol,
#stickyDiv:not(.has-results) #devModelCol,
#stickyDiv:not(.has-results) #photosExtCol,
#stickyDiv:not(.has-results) #photosIntCol {
  display: none !important;
}

/* === 2️⃣ Supprimer les bordures / fonds de la section vide === */
#stickyDiv:not(.has-results) {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ✅ 3️⃣ On garde la bordure du bloc de recherche VIN */
#stickyDiv .vin-topbar {
  border: 1.5px solid #1e73ff !important;
  border-radius: 18px !important;
  background: #fff !important;
  padding: 10px 14px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
  margin-bottom: 12px;
}

/* Mobile : un peu plus aéré */
@media (max-width: 768px) {
  #stickyDiv .vin-topbar {
    border-radius: 14px !important;
    padding: 10px 12px !important;
  }
}


@media (max-width: 768px){

  /* Ligne des specs (label + valeur) */
  #devModelCol .vin-info-title,
  #devModelCol .vin-info-value {
    font-size: 1.05rem !important;   /* était 0.9rem */
    line-height: 1.35 !important;
  }

  /* Légère aération entre les lignes */
  #devModelCol .vin-info-row {
    padding: 4px 0 !important;
  }

  /* Titre "Véhicule" et VIN un peu plus grands */
  #vinHeaderCol .vin-label,
  #vinHeaderCol #vr_vin {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
}


#stickyDiv .vin-grid { display: none; }



.gr-mn{position:fixed;inset:0;z-index:99999;display:none}
  .gr-mn.is-open{display:block}
  .gr-mn__overlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
  .gr-mn__dialog{
    position:absolute;left:50%;top:50%;
    transform:translate(-50%,-50%);
    width:min(520px,calc(100% - 28px));
    background:#fff;border-radius:16px;
    box-shadow:0 18px 55px rgba(0,0,0,.22);
    overflow:hidden;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif
  }
  .gr-mn__head{
    display:flex;justify-content:space-between;gap:12px;
    padding:14px 16px;background:#0c6cf2;color:#fff
  }
  .gr-mn__title{font-weight:800;font-size:16px}
  .gr-mn__sub{font-size:13px;opacity:.92;margin-top:4px}
  .gr-mn__close{
    background:none;border:0;color:#fff;
    font-size:30px;line-height:1;margin-top:-6px;cursor:pointer
  }
  .gr-mn__body{padding:14px 16px;font-size:14px;color:#111827}
  .gr-mn__footer{padding:0 16px 16px}
  .gr-mn__btn{
    width:100%;background:#0c6cf2;border:1px solid #0c6cf2;
    color:#fff;font-weight:800;border-radius:12px;
    padding:10px 12px;cursor:pointer
  }
  .gr-mn__btn:hover{filter:brightness(.95)}
  
  
  .gr-mn__subtext{
  margin-top:10px;
  font-size:13px;
  color:#475569;
}



/* ===========================
   AOS Failed inline 
   =========================== */

#aosFailed.aos-failed{
  /* layout */
  display: inline-flex; 
  align-items: center;
  justify-content: space-between;
  gap: .75rem;

  /* style "léger" moderne */
  padding: .55rem .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 193, 7, .45);
  background: rgba(255, 193, 7, .12);

  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
}

#aosFailed .aos-failed__msg{
  display: flex;
  align-items: center;
  gap: .5rem;

  font-size: 14px;      /* comme les infos */
  line-height: 1.3;
  color: #6b4f00;
  margin: 0;
}

#aosFailed .aos-failed__ico{
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 193, 7, .22);
  font-size: 13px;
}

#aosFailed .aos-failed__msg strong{
  font-weight: 700;
}

#aosFailed .aos-failed__btn{
  appearance: none;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: #111;

  font-size: 13px;
  font-weight: 700;
  padding: .38rem .7rem;
  border-radius: 10px;

  cursor: pointer;
  white-space: nowrap;

  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}

#aosFailed .aos-failed__btn:hover{
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

#aosFailed .aos-failed__btn:active{
  transform: translateY(1px);
}

/* Mobile : si trop serré, le bouton passe dessous */
@media (max-width: 520px){
  #aosFailed.aos-failed{
    flex-direction: column;
    align-items: flex-start;
  }
}





/* ============================
   GR AUTH MODAL — STYLE PANIER
   ============================ */

/* Backdrop doux */
.modal-backdrop.show{
  opacity: .55;
}

/* Dialog */
#grAuthModal .modal-dialog{
  max-width: 760px;
  width: calc(100% - 24px);
}

/* Contenu */
#grAuthModal .modal-content{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

/* ============================
   HEADER
   ============================ */
#grAuthModal .modal-header{
  background: #0b66ff;
  color: #ffffff;
  border-bottom: 0;
  padding: 18px 22px;
}

#grAuthModal .modal-title{
  color: #ffffff !important;
  font-weight: 800;
  font-size: 20px;
  margin: 0;
  letter-spacing: .2px;
}

/* Bouton fermer */
#grAuthModal .modal-header .close{
  color: #ffffff;
  opacity: 1;
  font-size: 32px;
  line-height: 1;
  text-shadow: none;
  padding: 0;
  margin: 0;
}

#grAuthModal .modal-header .close:hover{
  opacity: .85;
}

/* ============================
   BODY
   ============================ */
#grAuthModal .modal-body{
  padding: 22px;
  background: #ffffff;
}

/* ============================
   FORMULAIRES
   ============================ */
#grAuthModal .form-group{
  margin-bottom: 16px;
}

#grAuthModal .form-control{
  height: 46px;
  border-radius: 10px;
  border: 1px solid #dfe6f3;
  box-shadow: none;
}

#grAuthModal .form-control:focus{
  border-color: #0b66ff;
  box-shadow: 0 0 0 3px rgba(11,102,255,.15);
}

/* ============================
   BOUTONS
   ============================ */
#grAuthModal .btn{
  border-radius: 999px;
  height: 46px;
  font-weight: 800;
}

/* Login */
#grAuthModal #grLoginBtn{
  background: #0b66ff;
  border-color: #0b66ff;
  width: 50%;
  margin: 18px auto 0 auto;
  display: block;
}

/* Register */
#grAuthModal #grRegisterBtn{
  background: #9bb451;
  border-color: #9bb451;
  width: 50%;
  margin: 18px auto 0 auto;
  display: block;
}

/* Mobile → boutons full width */
@media (max-width: 576px){
  #grAuthModal #grLoginBtn,
  #grAuthModal #grRegisterBtn{
    width: 100%;
  }
}

/* ============================
   LIENS LOGIN / REGISTER
   ============================ */
#grAuthModal a{
  color: #0b66ff;
  font-weight: 700;
  text-decoration: none !important;
}

#grAuthModal a:hover{
  opacity: .85;
  text-decoration: none !important;
}

/* ============================
   TEXTE INFO BAS
   ============================ */
#grAuthModal small.text-muted{
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px){
  #grAuthModal .modal-dialog{
    max-width: 96vw;
  }

  #grAuthModal .modal-body{
    padding: 16px;
  }
}

/* ===== Fix croix moderne + centrée ===== */

#grAuthModal .gr-auth-header{ position: relative; }

#grAuthModal .gr-modal-x{
  position: absolute;
  right: 16px;          /* ✅ mieux que centré */
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  opacity: 1;
  cursor: pointer;
  padding: 0;
}

#grAuthModal .gr-modal-x:hover{ opacity: .85; }

/* liens jamais soulignés */
#grAuthModal a,
#grAuthModal a:hover,
#grAuthModal a:focus{
  text-decoration: none !important;
  box-shadow: none !important;
}


/* ===== Labels alignés à gauche ===== */
#grAuthModal label{
  display: block;
  text-align: left !important;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2a44;
}

/* ===== Inputs full width dans la grille ===== */
#grAuthModal .form-group{
  width: 100%;
}

/* ===== Boutons 50% sur PC (login + register) ===== */
#grAuthModal #grLoginBtn,
#grAuthModal #grRegisterBtn{
  width: 50% !important;
  margin: 18px auto 0 auto !important;
  display: block !important;
}

/* Mobile : 100% */
@media (max-width: 576px){
  #grAuthModal #grLoginBtn,
  #grAuthModal #grRegisterBtn{
    width: 100% !important;
  }
}


/* ===========================
   GR TOAST (top-right)
   =========================== */
.gr-toast{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999999;
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.gr-toast.is-show{
  opacity: 1;
  transform: translateY(0);
}

.gr-toast.is-success{
  background: #0f766e; /* vert moderne */
}

.gr-toast.is-error{
  background: #b91c1c; /* rouge */
}

@media (max-width:576px){
  .gr-toast{
    top: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    min-width: auto;
  }
}
