/* ==========================================================================
   CLCL - Styles complémentaires : Coordonnées directes & Obfuscation Anti-Spam
   Intégration transparente dans le template d'origine cclesneven
   ========================================================================== */

/* Bouton de coordonnées dans l'en-tête (en remplacement du formulaire de recherche) */
.header-direct-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #103d66;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.header-contact-btn:hover {
  background-color: #0471b8;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Composant d'obfuscation anti-spam des adresses e-mails (inline et bloc) */
.obf-email {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  vertical-align: middle;
}

.obf-email-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f6fb;
  border: 1px solid #bcd6ed;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.4;
}

.obf-email-link {
  color: #103d66 !important;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.obf-email-link:hover {
  color: #0471b8 !important;
  text-decoration: underline !important;
}

.obf-copy-btn {
  background: #ffffff;
  border: 1px solid #94b8d7;
  color: #103d66;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
}

.obf-copy-btn:hover {
  background: #103d66;
  color: #ffffff;
  border-color: #103d66;
}

.obf-copy-ok {
  color: #15803d;
  font-size: 11px;
  font-weight: bold;
  display: none;
}

/* Présentation claire des coordonnées (en remplacement des formulaires RSForm) */
.clcl-coordonnees-wrapper {
  margin: 15px 0 25px;
  font-family: inherit;
}

.clcl-antispam-banner {
  background: #eef7fa;
  border-left: 4px solid #103d66;
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.5;
}

.clcl-siege-box {
  background: #103d66;
  color: #ffffff;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 3px 10px rgba(16, 61, 102, 0.15);
}

.clcl-siege-col {
  flex: 1 1 220px;
}

.clcl-siege-col h3 {
  color: #ffffff !important;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 6px;
}

.clcl-siege-col p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
}

.clcl-siege-phone {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff !important;
  display: inline-block;
  margin: 4px 0 10px;
}

.clcl-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.clcl-filter-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clcl-filter-btn:hover,
.clcl-filter-btn.active {
  background: #103d66;
  color: #ffffff;
  border-color: #103d66;
}

.clcl-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.clcl-service-card {
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-top: 4px solid #103d66;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clcl-service-card[data-pole="env"] { border-top-color: #93c73a; }
.clcl-service-card[data-pole="enf"] { border-top-color: #c045b9; }
.clcl-service-card[data-pole="sol"] { border-top-color: #d52200; }
.clcl-service-card[data-pole="eco"] { border-top-color: #64b9c2; }
.clcl-service-card[data-pole="ame"] { border-top-color: #985530; }
.clcl-service-card[data-pole="tou"] { border-top-color: #eeaa15; }

.clcl-service-card h4 {
  font-size: 15px;
  font-weight: bold;
  color: #103d66;
  margin: 0 0 6px 0;
}

.clcl-service-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.clcl-service-meta {
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.clcl-service-tel {
  font-weight: bold;
  color: #103d66;
}

/* Garantir l'affichage responsive propre sur petits écrans */
@media (max-width: 767px) {
  .clcl-siege-box {
    flex-direction: column;
    padding: 15px;
  }
  .clcl-services-grid {
    grid-template-columns: 1fr;
  }
  .header-direct-contact {
    margin: 8px 0;
  }
}
