    /* 🔍 Style du conteneur principal */
/* 🌍 Conteneur principal */

/* 🎨 Style général du formulaire */
form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

/* 📍 Style du label */
form label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* 🏙️ Style du champ de saisie */
form input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.3s ease;
    width: 100%;
}

form input:focus {
    border-color: black;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.3);
}

/* 🔍 Style du bouton de recherche */
form button {
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}


.form-compare button
{
    width: 100%;
    padding: 10px;
    background-color: #f93c3a;
    border: none;
    color: white;
    text-transform: uppercase;
    font-family: 'Poppins';
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer
}

.autoecole-description
{
    max-width: 800px;
    margin: 50px auto;
}

form button:hover {
    background: black;
}

/* 📱 Responsive */
@media (max-width: 600px) {
    form {
        flex-direction: column;
        gap: 8px;
    }
    
    form input {
        width: 100%;
    }
    
    form button {
        width: 100%;
    }
}


.search-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🎯 Titre de la page */
.search-container h1 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* 🔍 Formulaire de recherche */
.search-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.search-form label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s ease-in-out;
}

.search-form input[type="text"]:focus {
    border-color: #f93c3a;
    outline: none;
}

.search-form button {
    background-color: #f93c3a;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
}

.search-form button:hover {
    background-color: #005f88;
}

/* 📋 Liste des auto-écoles */
.auto-ecole-list {
    list-style: none;
    padding: 0;
}

.autoecole-list
{
    width: 800px;
    margin: auto;
}

.status {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
}

.filtres-actifs
{
    display: flex;
    margin-top: 20px;
}

.filtre
{
    background: #f5f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.reset-filtres
{
    margin-left: auto;
}

.liste-auto-ecoles
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1250px;
    margin: auto;
    gap: 10px;
    margin-bottom: 20px;
}

.auto-ecole-card {
    display: flex;
    flex-direction: column;
    
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    transition-duration: 0.4s;
    border: 2px solid white;
    cursor: pointer;
}

.auto-ecole-card:hover
{
    border: 2px solid #f93c3a;
}

.auto-ecole-card:hover .auto-ecole-btn
{
    background-color: #f93c3a;
    color: white;
}

.auto-ecole-image-container {
    position: relative;
}

.auto-ecole-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    height: 265px;
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #32cd5c;
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

.auto-ecole-content {
    padding: 20px;
}

.auto-ecole-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f1f47;
}

.auto-ecole-address {
    font-size: 15px;
    color: #606060;
    margin-bottom: 8px;
}

.auto-ecole-subtitle {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
}

.auto-ecole-subtitle .tag
{
    background: #efefef;
    padding: 5px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.auto-ecole-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.auto-ecole-rating img
{
    max-width : 32px;
}

.note-nombre {
    font-weight: 600;
    color: #333;
}

.avis-link {
    color: #555;
    font-size: 14px;
    margin-left: 4px;
}

.auto-ecole-btn {
    border: 1px solid;
    background-color: white;
    color: #f93c3a;
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auto-ecole-btn:hover
{
    background-color: #f93c3a;
    color: white;
}

/* Carte sélectionnée */
.auto-ecole-card.selected {
  border: 2px solid #f93c3a;
  box-shadow: 0 0 8px rgba(0,115,170,0.3);
}

/* Bouton Comparer */
.btn-compare-toggle {
  margin-top: .5em;
  padding: .4em .8em;
  background: white;
  border: 2px solid #f93c3a;
  color: #f93c3a;
  border-radius: 4px;
  cursor: pointer;
  margin: auto;
  display: block;
  font-size: 18px;
}
.auto-ecole-card.selected .btn-compare-toggle {
  background: #f93c3a;
  color: white;
}

/* Bandeau sticky */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;       /* caché tant que rien n’est sélectionné */
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: .8em 1em;
  border-top: 1px solid #ccc;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 10000;
  justify-content: center;
  gap: 10px;
  height: 70px;
    border-top: solid 5px red;
}
.btn-compare-submit {
  padding: .5em 1em;
  background: #f93c3a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn-compare-submit:disabled {
  opacity: .5;
  cursor: default;
}

.form-compare .btn-more-criteria {
    margin: .5em 0;
    background: none;
    border: none;
    color: #f93c3a;
    cursor: pointer;
    font-size: 12px;
    padding: 0;;
  }
  .hidden-criteria {
    display: none;
    margin-bottom: 1em;
    flex-wrap: wrap;
    gap: .5em;
  }
  .hidden-criteria .case-critere {
    background: #fff;
    
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-size: .9rem;
    color: #f93c3a;
    border: 1px solid #f93c3a;
    
  }

  .case-critere label
  {
    padding: .4em .8em;
    display: block;
    cursor: pointer;
  }

  .hidden-criteria .case-critere input {
    margin-right: .3em;
    display: none;
  }

  .hidden-criteria input:checked~label
  {
    background-color: #f93c3a;
    color: white;
  }


  .hidden-criteria.visible {
    display: flex;
  }
