/* ===== Personnalisations : blog en tuiles + footer épuré ===== */

/* --- Pages de contenu sans sections Elementor (Actualités, politiques) :
       le contenu collait aux bords (padding 0). On le centre avec une marge. --- */
.page-id-445 .entry-content,
.page-id-423 .entry-content,
.page-id-467 .entry-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
}
/* Pages juridiques et FAQ (gabarit legal.njk) : elles peuvent commencer par un paragraphe,
   qui collait alors au menu. */
.page-id-423 .entry-content {
  padding-top: 3rem;
}

/* --- Titre de la page Actualités : police plus nette que Playfair Display --- */
.page-id-445 .entry-title {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Blog : grille de tuiles --- */
.blog-grid {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  /* Toutes les lignes à la hauteur de la plus haute : cartes identiques sur toute la grille */
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}
.entry-content .blog-grid {
  padding: 0; /* annule le retrait des listes du thème (.entry-content ul) */
}
.blog-grid > li {
  display: flex;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a202c; /* fond si l'article n'a pas d'image */
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -14px rgba(0, 0, 0, 0.4);
}
.blog-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__bg {
  transform: scale(1.05);
}
.blog-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 18, 28, 0.92) 0%,
    rgba(15, 18, 28, 0.7) 45%,
    rgba(15, 18, 28, 0.2) 100%
  );
}
.blog-card__body {
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* lisibilité sur les images chargées */
  padding: 1.5rem;
}
.blog-card__cat {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbb412;
}
.blog-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}
.blog-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}
.blog-card__date {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}
.blog-empty {
  color: var(--global-palette5);
}

/* --- Honoraires & À propos : texte serif justifié (rendu identique à l'Elementor d'origine,
       le contenu venant désormais du markdown éditable) --- */
.page-id-360 .elementor-widget-text-editor p,
.page-id-284 .elementor-widget-text-editor p {
  font-family: "Book Antiqua", Palatino, Georgia, serif;
  text-align: justify;
}

/* --- Image de couverture en tête d'article --- */
.post-cover {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1.8rem;
}

/* --- Footer épuré --- */
#colophon.site-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.footer-custom {
  max-width: 1290px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.6rem;
  margin: 0 0 1rem;
}
.footer-links a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
}
.footer-links a:hover {
  color: #2b6cb0;
}
.footer-copy {
  margin: 0;
  color: #718096;
  font-size: 0.85rem;
}

/* --- Accueil, section « Domaines d'intervention » sur tablette/mobile ---
   Le CSS Elementor d'origine lui donne une marge basse de -50px : elle passe sous le footer
   et en masque la première ligne. Sur mobile, les 6 domaines empilés en pleine largeur
   faisaient ~1500px de haut : liste compacte picto + titre. Le bouton a une marge basse de
   -106px calée sur le padding de 200px d'origine, qu'on réduit ici. */
@media (max-width: 1024px) {
  .elementor-281 .elementor-element.elementor-element-35b3cfa2 {
    margin-bottom: 0;
  }
}
@media (max-width: 767px) {
  .elementor-281 .elementor-element.elementor-element-35b3cfa2 {
    padding: 60px 0;
  }
  .elementor-element-35b3cfa2 .elementor-inner-section .elementor-column {
    max-width: 330px;
    margin: 0 auto;
  }
  .elementor-element-35b3cfa2 .elementor-inner-section .elementor-element-populated {
    padding: 8px 10px !important;
  }
  .elementor-element-35b3cfa2 .elementor-image-box-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left !important;
  }
  .elementor-element-35b3cfa2 .elementor-image-box-img {
    flex: 0 0 56px;
    width: 56px !important;
    margin: 0 !important;
  }
  .elementor-element-35b3cfa2 .elementor-image-box-title {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
  .elementor-281 .elementor-element.elementor-element-8567a1a > .elementor-widget-container {
    margin: 36px auto 0;
  }
}

/* --- Accueil, texte de présentation (éditable dans Tina, donc sans styles inline) ---
   Reproduit la mise en forme WordPress d'origine : police Book Antiqua, premier paragraphe
   centré (alignement du widget), les suivants justifiés. */
.elementor-281 .elementor-element-1c9e8520 p {
  font-family: 'Book Antiqua', serif;
}
.elementor-281 .elementor-element-1c9e8520 p:not(:first-of-type) {
  text-align: justify;
}

/* --- Articles : bouton de partage LinkedIn --- */
.single-entry .entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.share-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  background: #0a66c2;
  color: #fff !important;
  font-size: 0.95rem;
  text-decoration: none !important;
}
.share-linkedin:hover {
  background: #004182;
}

/* --- Page FAQ (questions dépliables en <details>) --- */
.faq-list {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid #e2e8f0;
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1a202c;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #cca776;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-answer {
  padding: 0 0 1.2rem;
}
.faq-more {
  font-style: italic;
}
