/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0; 
  color: #333;
}

h2 {
  color: #792020;
  text-align: center;
  margin-bottom: 2rem;
}

form.form-entreprise {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-entreprise label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #444;
}

.form-entreprise input[type="text"],
.form-entreprise input[type="email"],
.form-entreprise input[type="number"],
.form-entreprise input[type="file"],
.form-entreprise select,
.form-entreprise textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.form-entreprise textarea {
  resize: vertical;
  min-height: 150px;
}

fieldset {
  margin-top: 2rem;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background-color: #fdfdfd;
}

legend {
  padding: 0 0.5rem;
  font-weight: bold;
  color: #792020;
}

input[type="submit"] {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background-color: #792020;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="submit"]:hover {
  background-color: #5e1a1a;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

.main-content {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* --- Gestion Domaines et Savoirs-Faire --- */
.domains-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.domain-block {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background-color: #fafafa;
  transition: background-color 0.3s;
}

.domain-block:hover {
  background-color: #f2f2f2;
}

.domain-block label {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
}

.domain-block input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.savoir-faire {
  margin-top: 0.75rem;
  padding-left: 1rem;
}

.savoir-faire label {
  font-weight: normal;
  color: #555;
  display: block;
  margin-bottom: 0.4rem;
}

button.submit-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #792020;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.submit-btn:hover {
  background-color: #5e1a1a;
}
/* === Filtres de recherche === */
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1000px;
  justify-content: center;
  align-items: center;
}
.filtres select, .filtres button {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
}
.filtres button {
  background-color: #792020;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.filtres button:hover {
  background-color: #5e1a1a;
}

/* === Conteneur des cartes === */
.entreprises {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

/* === Carte entreprise === */
.carte-entreprise {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.carte-entreprise:hover {
  transform: translateY(-4px);
}
.carte-entreprise img {
  max-height: 60px;
  margin: 0 auto 1rem;
  display: block;
}
.carte-entreprise h3 {
  text-align: center;
  color: #792020;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.carte-entreprise p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.4rem;
  text-align: center;
}
.carte-entreprise p strong {
  font-weight: 600;
  color: #444;
}
.carte-entreprise a {
  display: block;
  margin: 0.75rem auto 0;
  text-align: center;
  background-color: #792020;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 150px;
}
.carte-entreprise a:hover {
  background-color: #5e1a1a;
}
.zone-recherche {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.zone-affichage {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}
.entreprises {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}
/*pagination*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  font-family: 'Poppins', sans-serif;
}

.pagination a,
.pagination span.ellipsis {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #792020;
  text-decoration: none;
  background-color: white;
}

.pagination a.active {
  background-color: #e0e0e0;
  font-weight: bold;
  pointer-events: none;
}

.pagination a.suivant {
  font-weight: bold;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

/* === Fiche entreprise === */
.fiche-entreprise-container {
  max-width: 800px;
  margin: 3rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: #333;
}

.fiche-entreprise-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #792020;
  text-align: center;
}

.fiche-entreprise-container img {
  display: block;
  max-height: 100px;
  margin: 0 auto 1.5rem;
}

.fiche-entreprise-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #444;
}

.fiche-entreprise-container p strong {
  color: #333;
  font-weight: 600;
}

.fiche-entreprise-container a.btn-back {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  background-color: #792020;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.fiche-entreprise-container a.btn-back:hover {
  background-color: #5e1a1a;
}
#core {
    display: flex;
    justify-content: center;
}

#contents {
    width: 100%;
    max-width: 1000px;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    margin-bottom: 40px;
}
.card-header h2, .card-header h3 {
    margin-bottom: 0;
}

ul.list-unstyled li {
    padding: 2px 0;
}

.container-centered {
    max-width: 900px;
    margin: auto;
}

/* === Fiche entreprise === */
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
}

.fiche-entreprise-container {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.fiche-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.fiche-header img {
    max-height: 120px;
    border-radius: 8px;
    margin-right: 20px;
}

.fiche-header h2 {
    flex: 1;
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50; /* bleu/gris foncé */
}

.section {
    margin-top: 20px;
}

.section h3 {
    font-size: 1.2em;
    color: #7c1c1c; /* bleu principal */
    margin-bottom: 10px;
    border-left: 4px solid #7c1c1c;
    padding-left: 8px;
    font-weight: 600;
}

.info-line {
    margin: 6px 0;
    padding: 6px 10px;
    background: #f2f4f8;
    border-radius: 6px;
    color: #333;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    background: #d1dee7; /* bleu très clair */
    color: #46494e; /* bleu foncé */
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    background: #141618; /* bleu bouton */
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #2980b9; /* bleu plus foncé */
}
/* Combobox générique (CP/Ville) */
.cbx{position:relative; max-width:520px; margin:6px 0}
.cbx-input{width:100%; padding:8px 10px; border:1px solid #d1d5db; border-radius:8px}
.cbx-list{position:absolute; z-index:40; background:#fff; border:1px solid #e5e7eb; border-radius:8px;
          max-height:240px; overflow:auto; margin-top:4px; width:100%; list-style:none; padding:6px; display:none}
.cbx-list li{padding:6px 8px; cursor:pointer; border-radius:6px}
.cbx-list li:hover, .cbx-list li[aria-selected="true"]{background:#f3f4f6}
