/* ============================================
   FICHE INSTALLATEUR
   ============================================ */
.fiche-installateur {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.fiche-header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #B8D430;
}
.fiche-header h1 { margin: 0 0 10px 0; color: #333; }
.fiche-localisation { color: #666; margin: 8px 0; }

.fiche-certifications { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge-cert {
  background: #B8D430;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
}

.fiche-description {
  margin-top: 15px;
  color: #555;
  line-height: 1.7;
  font-size: 0.95em;
}

/* LOGO & PHOTO INSTALLATEUR */
.fiche-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.fiche-header-photo {
  flex-shrink: 0;
  width: 220px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.fiche-header-photo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* BODY */
.fiche-body { display: flex; gap: 30px; align-items: flex-start; }
.fiche-colonne-principale { flex: 1; min-width: 0; }
.fiche-colonne-secondaire { width: 300px; flex-shrink: 0; }

.fiche-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
}
.fiche-section h2 {
  margin-top: 0;
  color: #333;
  font-size: 1.3em;
  border-bottom: 2px solid #B8D430;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* SIDEBAR */
.fiche-carte-contact,
.fiche-carte-map,
.fiche-membre-depuis {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.fiche-carte-contact h3,
.fiche-carte-map h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.1em;
  border-bottom: 2px solid #B8D430;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.coordonnees-liste { list-style: none; padding: 0; margin: 0 0 15px 0; }
.coordonnees-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
}
.coordonnees-liste li:last-child { border-bottom: none; }
.coordonnees-liste a { color: #333; text-decoration: none; }
.coordonnees-liste a:hover { color: #B8D430; }
.coord-absent { color: #999; font-style: italic; }
.coord-logo-google { width: 20px; height: 20px; flex-shrink: 0; }

.map-legende { font-size: 0.85em; color: #666; margin-top: 8px; font-style: italic; }
.fiche-membre-depuis p { margin: 5px 0; font-size: 0.9em; color: #555; }

/* CTA FICHE */
.btn-cta-fiche {
  display: block;
  background: #B8D430;
  color: #2C2C2C;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  transition: background 0.3s;
  margin-bottom: 20px;
}
.btn-cta-fiche:hover { background: #9ab82a; color: #2C2C2C; }

/* COORDONNÉES MOBILE/DESKTOP */
.btn-cta-mobile { display: none; }
.fiche-coordonnees-mobile { display: none; }
.btn-cta-desktop { display: block; }
.fiche-coordonnees-desktop { display: block; }

/* FORMULAIRE DE CONTACT FICHE */
.fiche-contact-form .form-group { margin-bottom: 15px; }
.fiche-contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #333;
}
.fiche-contact-form input,
.fiche-contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
}
.fiche-contact-form input:focus,
.fiche-contact-form textarea:focus { outline: none; border-color: #B8D430; }

.form-rgpd { display: flex; align-items: flex-start; gap: 10px; }
.form-rgpd input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-rgpd label { font-weight: normal; font-size: 0.85em; color: #666; }
.form-rgpd a { color: #B8D430; }

.btn-submit {
  background: #B8D430;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}
.btn-submit:hover { background: #9ab82a; }
.form-note { font-size: 0.8em; color: #999; margin-top: 10px; text-align: center; }

/* CARTES REALISATIONS */
.fiche-realisations .realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}
.realisation-carte {
  display: block;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.realisation-carte:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.realisation-carte-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
.realisation-carte-infos { padding: 15px; }
.realisation-carte-lieu { font-weight: bold; color: #333; margin: 0 0 8px 0; font-size: 0.95em; }
.realisation-carte-chiffres { color: #B8D430; font-weight: bold; font-size: 0.9em; margin: 0 0 6px 0; }
.realisation-carte-temoignage { color: #666; font-size: 0.85em; font-style: italic; margin: 0; line-height: 1.4; }
.realisation-carte-en-attente { color: #999; font-size: 0.85em; font-style: italic; margin: 0; }
.badge-pv-pilot {
  display: inline-block;
  background: #3D4145;
  color: #B8D430;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
  margin-top: 5px;
}

/* ============================================
   AVIS CLIENTS
   ============================================ */
.avis-clients { margin: 0 0 25px 0; }

.badge-premium-small {
  background: #f0f0f0;
  color: #555;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82em;
  margin-bottom: 12px;
  display: inline-block;
}

.avis-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}
.avis-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}
.platform-logo { width: 40px; height: 40px; }
.avis-header h3 { margin: 0; font-size: 1.2em; }

.note-globale { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.etoiles { color: #ffa500; font-size: 1.3em; }
.chiffres { font-size: 1.2em; }
.nombre { color: #6c757d; font-size: 0.9em; }

.badge-avis {
  background: #28a745;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}
.date-maj { color: #6c757d; font-size: 0.9em; margin: 8px 0; }

.btn-voir-avis {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 12px;
  font-size: 0.9em;
  transition: background 0.3s;
}
.btn-voir-avis:hover { background: #0056b3; color: white; }

.btn-laisser-avis {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 12px;
  font-size: 0.9em;
}

.extraits-avis { margin: 15px 0; padding: 15px; background: white; border-radius: 5px; }
.extrait {
  border-left: 3px solid #007bff;
  padding: 12px;
  margin: 8px 0;
  background: #f8f9fa;
}
.note-extrait { color: #ffa500; font-size: 1.1em; margin-bottom: 6px; }
.extrait .texte { font-style: italic; margin: 8px 0; color: #333; }
.extrait-footer { font-size: 0.85em; color: #6c757d; margin-top: 8px; }

.aucun-avis { color: #6c757d; font-style: italic; }
.badge-verifie {
  background: #28a745;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-left: auto;
}

/* RESPONSIVE FICHE */
@media (max-width: 768px) {
  .fiche-body { flex-direction: column; }
  .fiche-colonne-secondaire { width: 100%; }
  .fiche-header { flex-direction: column; gap: 15px; }
  .fiche-header-photo { width: 100%; max-height: 200px; }
  .fiche-header-photo-img { width: 100%; height: 200px; object-fit: cover; }
  .btn-cta-mobile { display: block; }
  .fiche-coordonnees-mobile { display: block; }
  .btn-cta-desktop { display: none; }
  .fiche-coordonnees-desktop { display: none; }
}
