body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
}
footer {
	background-color: #ffffff;
	color: black;
	text-align: center;
	width: 100%;
    }
	
main {
	flex: 1; /* prend tout l'espace restant */
	padding: 20px;
	}
	
	
.title {
    text-align: center;
    padding: 30px 0;
    font-size: 25px;
    font-weight: bold;
    color: #222;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px); /* Grille responsive */
    justify-content: start;                        /* Centre les cartes */
    gap: 20px;
    padding: 20px;
}

.card {
    display: flex;
    flex-direction: row;
    width: 350px;            /* Largeur fixe */
    height: 170px;           /* Hauteur fixe */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-photo {
    flex: 0 0 120px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-photo img {
    width: 120px;
    height: 150px;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 12px;
    color: #888;
    padding: 10px;
    text-align: center;
}

.card-info {
    padding: 12px;
    flex: 1;
    overflow-y: auto;           /* Scroll vertical si le texte dépasse */
    word-wrap: break-word;
    scrollbar-width: thin;
}

.card-info::-webkit-scrollbar {
    width: 6px;
}

.card-info::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.card-info::-webkit-scrollbar-track {
    background: #f4f4f4;
}

.card-name {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
    white-space: normal;
}

.card-societe {
    font-size: 16px;
    color: #555;
    margin-bottom: 4px;
    white-space: normal;
}

.card-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    white-space: normal;
}

.card-button {
    display: inline-block;
    background-color: #70C48F;
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.card-button:hover {
    background-color: #5aa76e;
}
.filter-bar {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 15px auto 25px auto;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    appearance: none; /* Supprime l'apparence par défaut */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='gray'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.939l3.71-3.71a.75.75 0 011.08 1.04l-4.24 4.25a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.filter-bar:hover {
    border-color: #70C48F;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.filter-bar:focus {
    outline: none;
    border-color: #70C48F;
    box-shadow: 0 0 0 3px rgba(112, 196, 143, 0.3);
}

.filter-texte {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 15px auto 25px auto;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.filter-texte:hover {
    border-color: #70C48F;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.filter-texte:focus {
    outline: none;
    border-color: #70C48F;
    box-shadow: 0 0 0 3px rgba(112, 196, 143, 0.3);
}

.filter-raz {
    display: block;
    max-width: 350px;
    margin: 15px auto 25px auto;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    appearance: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    height: auto; /* permet au padding de gérer la hauteur */
}
.filter-raz:hover {
    border-color: #70C48F;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}
.filter-raz:focus {
    outline: none;
    border-color: #70C48F;
    box-shadow: 0 0 0 3px rgba(112, 196, 143, 0.3);
}


.filters-container{
  display:flex;            /* pas inline */
  width:fit-content;       /* ou width:max-content; selon support */
  margin:0 auto;           /* centre la boîte elle-même */
  gap:20px;
  flex-wrap:wrap;
  padding:20px;
}

.filters-container select.filter-bar {
    max-width: 350px;
    flex: 1;
}

.titre {
    text-align: center;
    background-color: #66B47F;
    color: white;
    font-weight: bold;      /* texte en gras */
    padding: 10px 0;        /* espace vertical */
    font-size: 2em;       /* optionnel : texte un peu plus grand */
    border-radius: 5px;     /* optionnel : coins arrondis */
    margin: 20px 0;         /* espace autour */
}
.confiance {
    text-align: center;
    background-color: #66B47F;
    color: white;
    font-weight: bold;      /* texte en gras */
    padding: 10px 0;        /* espace vertical */
    font-size: 1.5em;       /* optionnel : texte un peu plus grand */
    border-radius: 5px;     /* optionnel : coins arrondis */
    margin: 20px 0;         /* espace autour */
}


@media (max-width: 780px) {
  .filters-container {
    display: flex;
    flex-direction: column; /* les uns en dessous des autres */
    align-items: stretch;   /* chaque élément prend toute la largeur */
    gap: 10px;               /* espace vertical entre eux */
    padding: 10px;
  }

  .filter-bar,
  .filter-texte,
  .filter-raz {
    width: 100%;       /* pleine largeur */
    max-width: 350px;   /* empêche de rétrécir */
    margin: 0;         /* supprime les marges auto */
  }
}

