/* ============================================================
   Composants additionnels articles & biens — cedricbrun.immo
   Chargé par : guides communes (section biens, bio auteur,
   articles associés) et pages avec formulaire de contact bien.
   Charte : bleu marine #143466
   ============================================================ */

/* ---------- Section "À VENDRE EN CE MOMENT" ---------- */
.article-properties {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}
.properties-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.properties-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #143466;
  margin: 0;
}
.properties-header h2 {
  margin: 0.5rem 0 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: #1a1a1a;
}
.properties-see-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: #143466;
  text-decoration: none;
}
.properties-see-all:hover { text-decoration: underline; }
.properties-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
}
.property-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
.property-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
@media (prefers-reduced-motion: reduce) {
  .property-card { transition: none; }
}
.property-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #143466;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.property-card-body { padding: 1.25rem; }
.property-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.property-location {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}
.property-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #143466;
  margin: 0;
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb-nav { margin: 0 0 1.25rem; }
.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #6b7280;
}
.breadcrumb-nav li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: #9ca3af;
}
.breadcrumb-nav a {
  color: #143466;
  text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }

/* Les guides stylent la navbar via un sélecteur nu `nav { position: fixed; ... }`.
   Comme le fait déjà .toc dans le CSS du site, on neutralise ces règles pour
   les navs injectés (fil d'Ariane, articles associés). */
nav.breadcrumb-nav,
nav.related-articles {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  display: block;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
}
nav.related-articles { margin-top: 2.5rem; padding-top: 1.5rem; }

/* Overrides de spécificité : neutralise les styles génériques de .article
   (liens soulignés verts, marges de paragraphes, barre ::before des h2)
   à l'intérieur des composants injectés. */
.article .property-card,
.article .property-card h3,
.article .property-card p,
.article .properties-see-all,
.article .author-bio-link,
.article .related-articles a,
.article .breadcrumb-nav a { text-decoration: none; color: inherit; }
.article .properties-see-all,
.article .author-bio-link,
.article .related-articles a,
.article .breadcrumb-nav a { color: #143466; }
.article .properties-see-all:hover,
.article .author-bio-link:hover,
.article .related-articles a:hover,
.article .breadcrumb-nav a:hover { text-decoration: underline; }
.article .properties-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0.5rem 0 0;
}
.article .properties-header h2::before { content: none; }
.article .properties-label { margin: 0; }
.article .property-card h3 { color: #1a1a1a; margin: 0 0 0.5rem; }
.article .property-location { color: #6b7280; margin: 0 0 0.5rem; }
.article .property-price { color: #143466; margin: 0; }
.article .author-bio p,
.article .related-articles p { margin-bottom: 0; }
.article .breadcrumb-nav ol { margin: 0; padding: 0; }

/* ---------- Bio auteur (E-E-A-T) ---------- */
.author-bio {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
}
.author-bio-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-body { flex: 1; min-width: 240px; }
.author-bio-name {
  font-size: 1rem;
  font-weight: 800;
  color: #143466;
  margin: 0 0 0.25rem;
}
.author-bio-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 0.5rem;
}
.author-bio-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
  margin: 0 0 0.5rem;
}
.author-bio-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #143466;
}

/* ---------- Articles associés ---------- */
.related-articles {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.related-articles-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #143466;
  margin: 0 0 1rem;
}
.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.related-articles a {
  color: #143466;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.related-articles a:hover { text-decoration: underline; }

/* ---------- Formulaire de contact bien ---------- */
.contact-section {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}
.contact-form-container { max-width: 32rem; margin: 0 auto; }
.contact-section h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
}
.contact-icon { flex-shrink: 0; }
.contact-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.25rem; }
.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.form-field input,
.form-field textarea {
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #143466;
  box-shadow: 0 0 0 3px rgba(20, 52, 102, 0.1);
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: #143466;
  width: 18px;
  height: 18px;
}
.form-checkbox label {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}
.submit-button {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  background: #143466;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-button:hover { background: #1a4080; }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-success {
  padding: 1rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.9rem;
}
