/* ==================================================
   TEMPLATE PAGES COMPÉTENCES
   (Famille – Successions – Créances)
   Site Fleur Angot
================================================== */

/* ====== PAGE WRAPPER ====== */

.competence-page {
  background: #ffffff;
  padding-bottom: 4rem;
}

/* Neutralise styles globaux dangereux */
.competence-page section {
  border-bottom: none;
  margin-bottom: 0;
}

/* ==================================================
   BANNIÈRE (OPTIONNELLE)
================================================== */

.competence-hero {
  position: relative;
  margin-bottom: 3.5rem;
}

.competence-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.competence-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Texte dans la bannière */
.competence-hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 2;
  color: #ffffff;
  max-width: 700px;
}

.competence-hero-content h1 {
  margin: 0;
  font-size: 2.2rem;
  color: #ffffff;
  text-align: left;
}

.competence-hero-content p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

/* ==================================================
   CONTENU PRINCIPAL
================================================== */

.competence-content {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

/* Intro mise en valeur (optionnelle) */
.competence-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  background: #fafafa;
  padding: 2rem 2.4rem;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  margin-bottom: 3.5rem;
}

/* Titres */
.competence-content h2 {
  text-align: left;
  margin-bottom: 1.4rem;
}

/* Paragraphes */
.competence-content p {
  margin-bottom: 1.2rem;
}

/* ==================================================
   LISTE DES COMPÉTENCES
================================================== */

.competence-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2.6rem;
}

.competence-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

.competence-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

/* ==================================================
   BLOCS COMPLÉMENTAIRES (OPTIONNELS)
================================================== */

.competence-highlight {
  background: #f6f6f6;
  padding: 2.2rem 2.4rem;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  margin: 4rem 0;
}

.competence-highlight h2 {
  text-align: left;
}

/* ==================================================
   CALL TO ACTION
================================================== */

.competence-cta {
  text-align: center;
  margin-top: 4rem;
}

.competence-cta .btn-primary {
  padding: 0.9rem 1.4rem;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 768px) {

  .competence-hero img {
    height: 240px;
  }

  .competence-hero-content {
    left: 1rem;
    right: 1rem;
  }

  .competence-hero-content h1 {
    font-size: 1.8rem;
  }

  .competence-content {
    margin-top: 3rem;
  }

  .competence-intro,
  .competence-highlight {
    padding: 1.4rem 1.5rem;
  }

  .competence-list li {
    font-size: 0.9rem;
  }

  .competence-cta .btn-primary {
    width: 100%;
    font-size: 1rem;
  }
}
/* ==================================================
   CTA – NOUS CONTACTER
================================================== */

.competence-cta {
  margin-top: 5rem;
  padding: 3rem 2rem;
  text-align: center;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
}

.competence-cta h2 {
  margin-bottom: 1.2rem;
  text-align: center;
}

.competence-cta p {
  max-width: 700px;
  margin: 0.6rem auto;
  font-size: 0.95rem;
  color: #444;
}

.competence-cta .btn-primary {
  margin-top: 1.8rem;
  padding: 0.9rem 1.6rem;
}

/* Mobile */
@media (max-width: 768px) {
  .competence-cta {
    padding: 2.2rem 1.5rem;
  }

  .competence-cta .btn-primary {
    width: 100%;
  }
}
