/* ============================================================================
   CHARIS HOPE — custom.css
   Surcouche de mise en forme (header + hero). Ne touche à aucun contenu.
   À charger APRÈS style.min.css dans le layout.
   ============================================================================ */

@import "https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap";

:root {
  --chp-font-display: "Fraunces", serif;
  --chp-font-body: "Plus Jakarta Sans", sans-serif;

  --chp-green-dark: #34492a;
  --chp-green: #598f3e;
  --chp-green-tint: #edf8e7;
  --chp-blue: #22caf9;
  --chp-blue-deep: #0297c0;
  --chp-blue-tint: #e3f8fe;
  --chp-yellow: #f9da22;
}

/* ----------------------------------------------------------------------------
   1. Typographie
   ---------------------------------------------------------------------------- */

body {
  font-family: var(--chp-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-heading,
.title-one h2 {
  font-family: var(--chp-font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-one,
.btn-two,
.btn-three,
.btn-four,
.cta-btn-one,
.nav-link {
  font-family: var(--chp-font-body);
}

/* ----------------------------------------------------------------------------
   2. Header — bouton "Faire un don"
   ---------------------------------------------------------------------------- */

.theme-main-menu .inner-content .cta-btn-one {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  line-height: 1;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px #f9da22;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.theme-main-menu .inner-content .cta-btn-one:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -6px rgba(52, 73, 42, 0.4);
}

/* variante pleine largeur (menu mobile) */
.theme-main-menu .cta-btn-one.w-100 {
  height: 50px;
}

/* ----------------------------------------------------------------------------
   3. Header — navigation & activation du menu
   ---------------------------------------------------------------------------- */

.theme-main-menu .nav-item .nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

/* pastille de fond quand un sous-menu est ouvert */
.theme-main-menu .nav-item .dropdown-toggle {
  border-radius: 20px;
  transition: background 0.25s ease;
}

.theme-main-menu .nav-item .dropdown-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.theme-main-menu .nav-item .dropdown-toggle::after {
  transition: transform 0.25s ease;
}

/* le sous-menu apparaît en douceur (réutilise l'animation déjà définie dans style.min.css) */
.navbar .dropdown-menu.show {
  animation: fadeInDown 0.25s ease both;
}

.navbar .dropdown-menu {
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px !important;
}

/* bouton hamburger */
.theme-main-menu .navbar-toggler {
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.theme-main-menu .navbar-toggler:hover {
  transform: scale(1.05);
}

/* menu mobile : espacement + retour visuel au survol/actif */
@media screen and (max-width: 991px) {
  .navbar .navbar-nav .nav-link {
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 16px 14px;
  }

  .navbar .navbar-nav .nav-item:hover .nav-link,
  .navbar .navbar-nav .dropdown-toggle[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    padding-left: 20px;
  }
}

/* ----------------------------------------------------------------------------
   4. Header — responsivité (gap-one beaucoup trop large en dessous du desktop)
   ---------------------------------------------------------------------------- */

@media screen and (max-width: 1399px) {
  .theme-main-menu .gap-one {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media screen and (max-width: 991px) {
  .theme-main-menu .gap-one {
    padding-left: 24px;
    padding-right: 24px;
  }

  .theme-main-menu .logo img {
    max-height: 42px;
    width: auto;
  }
}

@media screen and (max-width: 575px) {
  .theme-main-menu .gap-one {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ----------------------------------------------------------------------------
   5. Hero — le H1 doit rester à l'échelle de l'écran
   ---------------------------------------------------------------------------- */

.hero-banner-one .hero-heading {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 4.25rem);
  line-height: 1.05;
  margin: 22px 0 24px;
}

.hero-banner-one .slogan {
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.25rem);
}

@media screen and (max-width: 575px) {
  .hero-banner-one .hero-heading {
    margin: 16px 0 18px;
  }
}

/* ----------------------------------------------------------------------------
   6. Hero — ligne CTA + avatars (bas de la colonne gauche)
   ---------------------------------------------------------------------------- */

.hero-banner-one .btn-one {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 60px;
  padding: 0 clamp(28px, 4vw, 57px);
}

.hero-banner-one .avatar-group {
  flex-wrap: wrap;
  row-gap: 10px;
}

.hero-banner-one .avatar-group .avatar {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--chp-green-tint);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(52, 73, 42, 0.15);
}

.hero-banner-one .avatar-group li:last-child {
  font-size: 14px;
  line-height: 1.4em;
  color: var(--chp-green-dark);
  font-weight: 500;
  max-width: 190px;
  padding-left: 16px;
}

@media screen and (max-width: 575px) {
  .hero-banner-one .btn-one {
    width: 100%;
  }

  .hero-banner-one .avatar-group {
    margin-left: 0 !important;
    margin-top: 18px !important;
  }
}

/* Sous menu niveau 2 */
.dropdown-submenu {
    position: relative;
}


.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}


/* Affichage au survol */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-left: 10px;
}

.hero-banner-one .slogan {
    margin-top: 2em !important;
}

.hero-banner-one .fs-20 {
    font-size: 16px;
}

.theme-main-menu .nav-item .nav-link {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 30px 0;
  margin: 0 18px;
  transition: color 0.2s ease;
}

/* "Rejoignez notre mission" — devient un lien-bouton discret (ghost) */
.theme-main-menu .inner-content .cta-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 17px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-main-menu .inner-content .cta-text-btn:hover {
  background: #fff;
  color: var(--chp-green-dark);
  border-color: #fff;
}

/* bouton hamburger — cercle moderne, lignes fines à bouts arrondis */
.theme-main-menu .navbar-toggler {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: transform 0.2s ease;
  background-color: var(--chp-yellow);
}

.theme-main-menu .navbar-toggler::before,
.theme-main-menu .navbar-toggler::after,
.theme-main-menu .navbar-toggler span {
  left: 14px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
}

.theme-main-menu .navbar-toggler:hover {
  transform: scale(1.08);
}

.theme-main-menu .navbar-toggler:active {
  transform: scale(0.95);
}

.theme-main-menu .inner-content .cta-text-btn.w-100 {
  width: 100%;
  height: 50px;
}

/* carte flottante "Ensemble, transformons..." — ne déborde plus sur mobile */
@media screen and (max-width: 767px) {
  .hero-charis-stat {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    padding: 16px 18px;
    box-shadow: 0 18px 34px -10px rgba(8, 199, 253, 0.55);
    border: 2px solid #fff;
  }

  .hero-charis-stat .icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 18px;
  }

  .hero-charis-stat p {
    font-size: 15px;
    margin-left: 14px;
  }
}

@media screen and (max-width: 400px) {
  .hero-charis-stat {
    padding: 14px 16px;
  }

  .hero-charis-stat .icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 16px;
  }

  .hero-charis-stat p {
    font-size: 14px;
    margin-left: 12px;
  }
}

/* ============================================================================
   8. Cartes de campagnes (causes-section-one / card-style-two)
   ============================================================================ */

.causes-section-one .item {
  padding: 14px 8px 26px;
}

.card-style-two {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(52, 73, 42, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-style-two:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -18px rgba(52, 73, 42, 0.35);
}

.card-style-two .media-bg {
  height: 220px;
  border-radius: 20px 20px 0 0;
  transition: transform 0.5s ease;
}

.card-style-two:hover .media-bg {
  transform: scale(1.06);
}

/* badge devient une pastille flottante, détachée du bord de l'image */
.card-style-two .info-meta .tags {
  left: 20px;
  border-radius: 20px;
  padding: 6px 18px 6px 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px -6px rgba(52, 73, 42, 0.35);
}

.card-style-two .info-meta h4 {
  font-size: 22px;
  line-height: 1.3em;
  margin-bottom: 8px;
}

.card-style-two .info-meta h4 a {
  transition: color 0.2s ease;
}

.card-style-two .info-meta h4 a:hover {
  color: var(--chp-blue-deep);
}

.card-style-two .info-meta p {
  color: #55604f;
  margin-bottom: 18px;
}

.card-style-two .info-meta .fund-goal {
  color: var(--chp-green-dark);
  font-size: 15px;
}

.card-style-two .info-meta .fund-goal span {
  font-size: 22px;
  margin-right: 4px;
}

/* barre de progression : le badge % passe au-dessus du curseur (ne chevauche plus "donateur(s)") */
.card-style-two .info-meta .progress-bar {
  margin: 16px 0 22px;
}

.card-style-two .info-meta .progress-bar .progress span {
  top: auto;
  bottom: calc(100% + 8px);
  right: -14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--chp-green);
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1.4;
  box-shadow: 0 4px 10px -3px rgba(52, 73, 42, 0.4);
}

/* petite icône devant le nombre de donateurs */
.card-style-two .info-meta .supporters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #55604f;
}

.card-style-two .info-meta .supporters::before {
  content: "\f0c0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--chp-blue-deep);
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .card-style-two .media-bg {
    height: 210px;
  }
}

@media screen and (max-width: 575px) {
  .card-style-two .media-bg {
    height: 190px;
  }

  .card-style-two .info-meta {
    padding: 30px 20px 22px;
  }

  .card-style-two .info-meta h4 {
    font-size: 20px;
  }

  .card-style-two .info-meta .tags {
    left: 14px;
    font-size: 14px;
  }
}

/* 1. Hover de l'image : background-size au lieu de transform (ne déborde plus des coins arrondis) */
.card-style-two .media-bg {
  height: 220px;
  border-radius: 20px 20px 0 0;
  background-size: cover !important;
  transition: background-size 0.6s ease;
}

.card-style-two:hover .media-bg {
  background-size: 112% !important;
}

/* 2. Badge de catégorie : une seule ligne, ellipsis si trop long */
.card-style-two .info-meta .tags {
  left: 20px;
  max-width: calc(100% - 40px);
  border-radius: 20px;
  padding: 6px 18px 6px 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px -6px rgba(52, 73, 42, 0.35);
}

/* 3. Montant collecté : gros montant en haut, "collectés sur..." en dessous */
.card-style-two .info-meta .fund-goal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #6b756a;
  font-size: 14px;
  font-weight: 500;
}

.card-style-two .info-meta .fund-goal span {
  order: -1;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--chp-green);
}

/* 4. Barre de progression : marge suffisante pour que le % ne masque plus le montant */
.card-style-two .info-meta .progress-bar {
  margin: 36px 0 22px;
}

.card-style-two .info-meta .progress-bar .progress span {
  top: auto;
  bottom: calc(100% + 8px);
  right: -8px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  background: var(--chp-yellow);
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 10px -3px rgba(52, 73, 42, 0.4);
}

/* 5. Icône donateurs : fa-hand-holding-heart au lieu de fa-users */
.card-style-two .info-meta .supporters::before {
  content: "\f4be";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--chp-blue-deep);
  font-size: 14px;
}

/* Image intacte au hover — plus aucun zoom */
.card-style-two .media-bg {
  height: 220px;
  border-radius: 20px 20px 0 0;
}

/* Toutes les cartes à la même hauteur, quel que soit le contenu */
.causes-slider-one .slick-track {
  display: flex !important;
  align-items: stretch;
}

.causes-slider-one .slick-slide {
  height: auto !important;
}

.causes-slider-one .slick-slide > div {
  height: 100%;
}

.causes-section-one .item {
  height: 100%;
  display: flex;
}

.card-style-two {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.card-style-two .info-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-style-two .info-meta p {
  flex: 1;
}

/* ============================================================================
   9. À propos de nous (feature-block-two)
   ============================================================================ */

.feature-block-two .media-bg {
  box-shadow: 0 30px 60px -24px rgba(52, 73, 42, 0.35);
}

/* badge flottant "100%" : carte nette au lieu du blob trop arrondi */
.feature-block-two .media-bg .card-two {
  width: 190px;
  border-radius: 24px;
  padding: 26px 18px;
  border: 4px solid #fff;
  box-shadow: 0 20px 40px -12px rgba(8, 199, 253, 0.55);
}

.feature-block-two .media-bg .card-two .main-count {
  font-family: var(--chp-font-display);
  font-size: 40px;
}

.feature-block-two .media-bg .card-two p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3em;
}

/* liste à puces vertes : coche visible dans un rond de couleur */
.list-style-one li {
  font-weight: 600;
  padding-left: 32px;
}

.list-style-one li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #fff;
  background: var(--chp-green);
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 1px;
}

/* bouton "En savoir plus" : contour net, se remplit au survol */
.btn-two {
  background: transparent;
  border: 2px solid #f9da22;
  color: var(--chp-green-dark);
  font-weight: 600;
}

.btn-two::before {
  display: none;
}

.btn-two:hover {
  background: var(--chp-green);
  border-color: var(--chp-green);
  color: #fff;
  box-shadow: none;
  transform: translateY(-2px);
}

@media screen and (max-width: 991px) {
  .feature-block-two .media-bg {
    min-height: 360px;
    margin-top: 40px;
  }

  .feature-block-two .media-bg .card-two {
    left: 5%;
  }
}

@media screen and (max-width: 575px) {
  .feature-block-two .media-bg .card-two {
    width: 150px;
    padding: 18px 14px;
    left: 4%;
    bottom: 6%;
  }

  .feature-block-two .media-bg .card-two .main-count {
    font-size: 30px;
  }

  .feature-block-two .media-bg .card-two p {
    font-size: 12px;
  }

  .list-style-one li {
    width: 100%;
  }
}

/* ============================================================================
   10. Rejoignez notre mission (feature-block-three)
   ============================================================================ */

.feature-block-three .join-mission-btn {
  display: inline-flex;
}

.feature-block-three .card-one .icon {
  box-shadow: 0 10px 24px -10px rgba(52, 73, 42, 0.3);
}

/* coche manquante dans les puces bleues (content vide dans le CSS d'origine) */
.list-style-two li span::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
}

.list-style-two li span {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-style-two li span:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(52, 73, 42, 0.3);
}

@media screen and (max-width: 991px) {
  .feature-block-three .media-bg {
    margin-top: 40px;
    min-height: 380px;
  }

  .feature-block-three .media-bg .card-one {
    left: 6%;
  }
}

@media screen and (max-width: 575px) {
  .feature-block-three .media-bg .card-one {
    left: 4%;
    bottom: 6%;
    width: 180px;
    padding: 12px;
  }

  .feature-block-three .media-bg .card-one .icon {
    width: 46px;
    height: 46px;
  }

  .feature-block-three .media-bg .card-one .text {
    width: calc(100% - 46px);
  }

  .feature-block-three .card-one .text .main-count {
    font-size: 34px;
  }

  .list-style-two li span {
    font-size: 16px;
    padding: 5px 30px 5px 45px;
  }

  .feature-block-three .join-mission-btn {
    width: 100%;
  }
}

/* ============================================================================
   10. Rejoignez notre mission (feature-block-three)
   ============================================================================ */

.feature-block-three .join-mission-btn {
  display: inline-flex;
}

.feature-block-three .card-one .icon {
  box-shadow: 0 10px 24px -10px rgba(52, 73, 42, 0.3);
}

/* coche manquante dans les puces bleues (content vide dans le CSS d'origine) */
.list-style-two li span::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
}

.list-style-two li span {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-style-two li span:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(52, 73, 42, 0.3);
}

@media screen and (max-width: 991px) {
  .feature-block-three .media-bg {
    margin-top: 40px;
    min-height: 380px;
  }

  .feature-block-three .media-bg .card-one {
    left: 6%;
  }
}

@media screen and (max-width: 575px) {
  .feature-block-three .media-bg .card-one {
    left: 4%;
    bottom: 6%;
    width: 180px;
    padding: 12px;
  }

  .feature-block-three .media-bg .card-one .icon {
    width: 46px;
    height: 46px;
  }

  .feature-block-three .media-bg .card-one .text {
    width: calc(100% - 46px);
  }

  .feature-block-three .card-one .text .main-count {
    font-size: 34px;
  }

  .list-style-two li span {
    font-size: 16px;
    padding: 5px 30px 5px 45px;
  }

  .feature-block-three .join-mission-btn {
    width: 100%;
  }
}

/* bouton "Rejoignez notre mission" : jaune au lieu du vert plein, hover révèle le vert */
.feature-block-three .join-mission-btn {
  display: inline-flex;
  background: var(--chp-yellow);
  color: var(--chp-green-dark);
}

.feature-block-three .join-mission-btn::before {
  background: var(--chp-green);
}

.feature-block-three .join-mission-btn:hover {
  color: #fff;
}

.feature-block-three .card-one .icon {
  box-shadow: 0 10px 24px -10px rgba(52, 73, 42, 0.3);
}

/* coche des puces bleues : fusionnée avec le rond pour un centrage garanti */
.list-style-two li span::before {
  display: flex;
  align-items: center;
  justify-content: center;
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 11px;
  color: #fff;
}

.list-style-two li span::after {
  content: none;
}

.list-style-two li span {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-style-two li span:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(52, 73, 42, 0.3);
}

/* barre "Cas de réussite" : dégradé vert → jaune au lieu du vert plein */
.feature-block-three .sucess-score .progress-bar .progress {
  background: linear-gradient(90deg, var(--chp-green) 0%, var(--chp-yellow) 100%);
}

.feature-block-three .sucess-score .progress-bar .progress:before {
  background: var(--chp-yellow);
  outline-color: var(--chp-green);
}

/* Bouton "Rejoignez notre mission" : contour jaune, fond transparent */
.feature-block-three .join-mission-btn {
  display: inline-flex;
  background: transparent;
  border: 2px solid var(--chp-yellow);
  color: var(--chp-green-dark);
}

.feature-block-three .join-mission-btn::before {
  background: var(--chp-green);
}

.feature-block-three .join-mission-btn:hover {
  color: #fff;
  border-color: var(--chp-green);
}

/* Barre "Cas de réussite" : dégradé vert → bleu */
.feature-block-three .sucess-score .progress-bar .progress {
  background: linear-gradient(90deg, var(--chp-green) 0%, var(--chp-blue) 100%);
}

.feature-block-three .sucess-score .progress-bar .progress:before {
  background: var(--chp-blue);
  outline-color: var(--chp-green);
}

.card-style-three .text .date {
  background-color: var(--chp-yellow);
}

/* en lg (992-1199px), le titre est limité à 3 lignes avec ellipsis */
@media screen and (min-width: 992px) and (max-width: 1700px) {
  .card-style-three .text h4 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.line-bg:hover {
    background-size: 100%;
}