/* =============================================================
    Au cœur de l'enfance - Styles personnalisés
============================================================= */

/* -------------------------------------------------------------
    Variables
------------------------------------------------------------- */
/* Variables temporaires */
:root {
  --acdl-blue: #0095C8;
  --acdl-orange: #FFA400;
  --acdl-light: #F7F7F7;
  --acdl-text: #333333;
  --acdl-muted: #707372;
  --acdl-dark: #000000;
}

:root {
  --acdl-pediatrie: #00A2E0;
  --acdl-perinatalite: #E86BA4;
  --acdl-maison-familles: #30B492;
  --acdl-cpe-bc: #F39000;
}

/* -------------------------------------------------------------
    Structure
------------------------------------------------------------- */
/* Cacher le top bar */
#sp-top-bar {
    display: none;
}

/* Go to top*/
.scrollup {
  background: #F17685;
  border: 1px solid #F17685;
  transition: color 400ms ease 0s, background-color 400ms ease 0s, border-color 400ms ease 0s;
}

/* -------------------------------------------------------------
    Header
------------------------------------------------------------- */
/* Répartition logo / menu / bouton Donner */
#sp-header #sp-logo {
  width: 16.66666667%;
  flex: 0 0 16.66666667%;
  max-width: 16.66666667%;
}
#sp-header #sp-menu {
  width: 66.66666667%;
  flex: 0 0 66.66666667%;
  max-width: 66.66666667%;
}
#sp-header #sp-search {
  width: 16.66666667%;
  flex: 0 0 16.66666667%;
  max-width: 16.66666667%;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
}
#sp-header #sp-search .sp-module {
  margin: 0;
  width: auto;
}
#sp-header #sp-search .acdl-donate-module {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}
/* Tablette / petit desktop */
@media (max-width: 1199px) and (min-width: 992px) {
  #sp-header #sp-logo {
    width: 18%;
    flex: 0 0 18%;
    max-width: 18%;
  }
  #sp-header #sp-menu {
    width: 62%;
    flex: 0 0 62%;
    max-width: 62%;
  }
  #sp-header #sp-search {
    width: 20%;
    flex: 0 0 20%;
    max-width: 20%;
  }
  #sp-header .acdl-donate-button {
    padding: 9px 18px;
    font-size: 14px;
  }
}
/* Mobile : éviter de surcharger l'en-tête */
@media (max-width: 991px) {
  #sp-header #sp-logo,
  #sp-header #sp-menu,
  #sp-header #sp-search {
    width: auto;
    flex: initial;
    max-width: none;
  }
  #sp-header #sp-search {
    display: none !important;
  }
}
@media only screen and (max-width: 532px){
    #sp-search {
      width: 32% !important;
    }
    #sp-logo {
      width: 45% !important;
    }
    #sp-menu {
      width: 23% !important;
    }
}

/* Ombre sous le menu principal */
#sp-header {
  box-shadow: 0 14px 20px rgba(0,0,0,0.05);
}

/* Hauteur du logo */
.logo .sp-default-logo {
    max-width: 120% !important;
}
@media only screen and (min-width: 992px) and (max-width: 1199px){
    .logo .sp-default-logo {
      max-width: 150% !important;
    }
}

/* -------------------------------------------------------------
    Menu principal
------------------------------------------------------------- */
/* Masquer Accueil uniquement dans le menu principal de l'en-tête */
#sp-menu .sp-megamenu-parent > li.sp-menu-item:first-child {
    display: none !important;
}

/* Responsive */
@media only screen and (min-width: 1200px) and (max-width: 1399px){
    .sp-megamenu-parent > li > a {
        padding: 0 9px;
    }
}

/* Menu principal */
.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  letter-spacing: 0px;
}
#sp-header .sp-megamenu-parent > li > a {
  color: #4D516C;
}
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li.active > a,
#sp-header .sp-megamenu-parent > li.current-item > a {
  color: #F17685 !important;
}

/* Boîte du dropdown */
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #ffffff;
  padding: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
/* Liste */
#sp-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item:last-child {
  border-bottom: none;
}
/* Liens du dropdown */
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  display: block;
  padding: 13px 18px;
  background: #ffffff;
  color: #4D516C !important;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.35;
  text-decoration: none !important;
  transition: all 0.22s ease;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  border-bottom: 1px solid #DFDFDF;
}
/* Survol / focus */
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus {
  background: #F17685;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding-left: 22px;
}
/* Item actif dans le dropdown */
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.current-item > a {
  background: #f7f7f7;
  color: #0095c8 !important;
}
/* Item actif + survol */
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a:hover,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.current-item > a:hover {
  background: #0095c8;
  color: #ffffff !important;
}

/* Bouton Donner - En-tête */
.acdl-donate-module {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.acdl-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #F17685;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(241, 118, 133, 0.28);
  transition: all 0.25s ease;
}
.acdl-donate-button:hover,
.acdl-donate-button:focus {
  background: #4D516C;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(77, 81, 108, 0.28);
}
.acdl-donate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #F17685;
  font-size: 18px;
  line-height: 1;
  transition: all 0.25s ease;
}
.acdl-donate-button:hover .acdl-donate-icon,
.acdl-donate-button:focus .acdl-donate-icon {
  background: rgba(255, 255, 255, 0.95);
  color: #4D516C;
}
/* Ajustement si le module hérite de marges parasites */
#sp-search .acdl-donate-module,
.sp-module .acdl-donate-module {
  margin: 0;
}
/* Responsive */
@media (max-width: 991px) {
  .acdl-donate-module {
    justify-content: center;
    margin-top: 12px;
  }
  .acdl-donate-button {
    width: 100%;
    max-width: 220px;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px){
    #sp-search {
        width: 65% !important;
    }
}
@media only screen and (min-width: 533px) and (max-width: 767px){
    #sp-search {
        width: 53% !important;
    }
}

/* Ne pas cacher sur mobile */
@media (max-width: 991px) {
  #sp-header #sp-search {
    display: inherit !important;
  }
}

/* -------------------------------------------------------------
    Menu secondaire - Services
------------------------------------------------------------- */
#menu-services {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 0;
  list-style: none;
  background: #ffffff;
}
#menu-services > li {
  display: flex;
  flex: 1 1 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
#menu-services > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 16x;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
  transition: all 0.25s ease;
}
/* Couleurs par service */
#menu-services > li:nth-child(1) > a {
  background: var(--acdl-pediatrie);
}
#menu-services > li:nth-child(2) > a {
  background: var(--acdl-perinatalite);
}
#menu-services > li:nth-child(3) > a {
  background: var(--acdl-maison-familles);
}
#menu-services > li:nth-child(4) > a {
  background: var(--acdl-cpe-bc);
  /*color: #1f1f1f !important;*/
}
#menu-services > li:nth-child(5) > a {
  background: var(--acdl-cpe-bc);
  /*color: #1f1f1f !important;*/
}
/* Survol */
#menu-services > li > a:hover,
#menu-services > li > a:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  filter: brightness(0.96);
}
/* État actif si Joomla ajoute une classe active/current */
#menu-services > li.active > a,
#menu-services > li.current > a {
  outline: 3px solid rgba(0, 149, 200, 0.20);
  outline-offset: 3px;
}
/* Menu secondaire - Services / Responsive */
@media (max-width: 1199px) {
  #menu-services {
    gap: 8px;
    padding: 16px 0;
  }
  #menu-services > li > a {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  #menu-services {
    flex-wrap: wrap;
    padding: 16px 15px;
  }
  #menu-services > li {
    flex: 1 1 calc(33.333% - 8px);
    max-width: none;
  }
}
@media (max-width: 767px) {
  #menu-services {
    /*padding: 14px 12px;*/
    padding: 14px 0px;
  }
  #menu-services > li {
    flex: 1 1 calc(50% - 8px);
  }
  #menu-services > li > a {
    min-height: 48px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  #menu-services {
    gap: 7px;
  }
  #menu-services > li {
    flex: 1 1 100%;
  }
  #menu-services > li > a {
    min-height: 44px;
  }
}

/* -------------------------------------------------------------
    Contenu
------------------------------------------------------------- */
/* Titre de section */
#sp-page-builder .sppb-section-title {
    margin-bottom:22px;
}

/* Titres */
@media (min-width: 1200px) {
  .h3, h3 {
    font-size: 1.55rem;
  }
}
.service .sppb-feature-box-title {
    /*font-size: 21px;*/
    font-size: 18px;
    font-weight:700;
}

/* Services */
.service {
    background: #00A2E0;
    border: 2px solid #ffffff;
    padding: 50px 15px 40px 15px;
    border-radius: 10px;
    margin: 15px 0;
}
    .service.un {
        background: #00A2E0 !important;
        border: 2px solid #00A2E0;
    }
    .service.deux {
        background: #E86BA4 !important;
        border: 2px solid #E86BA4;
    }
    .service.trois {
        background: #30B492;
        border: 2px solid #30B492;
    }
    .service.quatre {
        background: #F39000;
        border: 2px solid #F39000;
    }
    .service.cinq {
        background: #F39000;
        border: 2px solid #F39000;
    }
    .service.don {
        background: #F17685;
        border: 2px solid #F17685;
    }
    .service.temps {
        background: #00A2E0;
        border: 2px solid #00A2E0;
    }
    .service.evenements {
        background: #30B492;
        border: 2px solid #30B492;
    }
.service .sppb-feature-box-title::after {
    display: none;
}
.service .sppb-addon-text p {
    color: #fff;
    padding: 0 5%;
}
.service i {
    color: #fff;
}
.service:hover {
    transform: translateY(-6px);
}
.service:hover {
    border: 2px solid #4D516C;
}
    .service.un:hover,
    .service.deux:hover,
    .service.trois:hover,
    .service.quatre:hover,
    .service.cinq:hover {
        background: #4D516C !important;
    }
.service.don:hover,
.service.temps:hover,
.service.evenements:hover {
    border: 2px solid #4D516C;
    background: #4D516C !important;
}

/* Exemples de dons */
#dons .sppb-flipbox-front-title {
    margin-top: 30px;
}
.texte-don .sppb-addon-content p {
    color: #ffffff;
}
#dons .sppb-btn {
    border-radius: 4px;
    border-radius: 52px;
}

/* Timeline */
.sppb-addon-timeline .sppb-addon-timeline-wrapper .timeline-movement .timeline-item .timeline-panel {
    border-radius: 16px !important;
}
.sppb-addon-timeline .sppb-addon-timeline-wrapper .timeline-movement .timeline-item .timeline-panel {
    width: 100% !important;
}
/* Notre fondatrice */
.sppb-addon-single-image.notre-fondatrice img.sppb-img-responsive {
    border-top-left-radius: 21px !important;
    border-top-right-radius: 21px !important;
}
.notre-fondatrice .addon-root-text-block #sppb-addon-ba3bb4b5-e68c-4933-a28a-4caa954c7d72 {
    border-bottom-left-radius: 21px !important;
    border-bottom-right-radius: 21px !important;
}

/* -------------------------------------------------------------
    Valeurs - Cartes d'icônes
------------------------------------------------------------- */

.valeur-card {
  position: relative;
  min-height: 190px;
  margin: 15px 0;
  padding: 42px 22px 34px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid rgba(135, 130, 169, 0.16);
  box-shadow: 0 12px 28px rgba(77, 81, 108, 0.08);
  transition: all 0.28s ease;
  overflow: hidden;
}
.valeur-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(241, 118, 133, 0.10),
    rgba(255, 255, 255, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
}
.valeur-card .sppb-addon-content {
  position: relative;
  z-index: 1;
}
.valeur-card .sppb-icon {
  margin-bottom: 18px;
}
.valeur-card .sppb-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(241, 118, 133, 0.12);
  color: #F17685 !important;
  transition: all 0.28s ease;
}
.valeur-card i {
  color: #F17685 !important;
  font-size: 34px;
  line-height: 1;
  transition: all 0.28s ease;
}
.valeur-card .sppb-feature-box-title {
  margin: 0;
  color: #4D516C !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.valeur-card .sppb-feature-box-title::after {
  display: none;
}
.valeur-card:hover {
  transform: translateY(-6px);
  background: #4D516C;
  border-color: #4D516C;
  box-shadow: 0 18px 38px rgba(77, 81, 108, 0.22);
}
.valeur-card:hover::before {
  opacity: 1;
}
.valeur-card:hover .sppb-icon-container {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
}
.valeur-card:hover i,
.valeur-card:hover .sppb-feature-box-title {
  color: #ffffff !important;
}

/* Variation subtile par valeur */
.valeur-accueil .sppb-icon-container,
.valeur-accueil i {
  color: #F17685 !important;
}
.valeur-ecoute .sppb-icon-container,
.valeur-ecoute i {
  color: #8782A9 !important;
}
.valeur-entraide .sppb-icon-container,
.valeur-entraide i {
  color: #30B492 !important;
}
.valeur-espoir .sppb-icon-container,
.valeur-espoir i {
  color: #F39000 !important;
}
.valeur-accueil .sppb-icon-container {
  background: rgba(241, 118, 133, 0.12);
}
.valeur-ecoute .sppb-icon-container {
  background: rgba(135, 130, 169, 0.12);
}
.valeur-entraide .sppb-icon-container {
  background: rgba(48, 180, 146, 0.12);
}
.valeur-espoir .sppb-icon-container {
  background: rgba(243, 144, 0, 0.12);
}
.valeur-card:hover .sppb-icon-container,
.valeur-card:hover i {
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 767px) {
  .valeur-card {
    min-height: 160px;
    padding: 34px 20px 30px;
  }
  .valeur-card .sppb-icon-container {
    width: 62px;
    height: 62px;
  }
  .valeur-card i {
    font-size: 30px;
  }
  .valeur-card .sppb-feature-box-title {
    font-size: 18px;
  }
}

/* -------------------------------------------------------------
    Équipe de travail
------------------------------------------------------------- */

.sppb-addon-persion .sppb-person-information > span.sppb-person-name {
  font-size: 1.55rem;
  color: rgb(241, 118, 133);
}

.sppb-addon-persion .sppb-person-information > span.sppb-person-designation {
  /* font-size: 12px; */
  /* color: #888; */
  font-size: 17px;
  color: rgb(77,81,108);
}

.sppb-person-image img {
  /* border-bottom: 5px solid #f0b508; */
  border-bottom: 5px solid rgb(241, 118, 133);
}

.sppb-person-image::before {
  /* border-bottom-color: #f0b508; */
  border-bottom-color: rgb(241, 118, 133);
}


/* -------------------------------------------------------------
    Pied de page
------------------------------------------------------------- */
#sp-footer {
    padding: 120px 0 0 0;
}
#sp-footer,
#sp-section-9 {
    background-color: #4D516C;
}

/* -------------------------------------------------------------
   Pied de page - Au cœur de l'enfance
------------------------------------------------------------- */
.acdl-footer {
  background: #4D516C;
  color: #ffffff;
  /*padding: 70px 0 0;*/
  text-align: left;
}
.acdl-footer-inner {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 2fr;
  gap: 70px;
  align-items: start;
  text-align: left;
}
.acdl-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
}
.acdl-footer a:hover,
.acdl-footer a:focus {
  color: #FFA400;
  text-decoration: none;
}
.acdl-footer-brand {
  max-width: 430px;
  text-align: left;
}
.acdl-footer-logo {
  display: inline-block;
  margin: 0 0 28px 0;
}
.acdl-footer-logo img {
  display: block;
  max-width: 260px;
  height: auto;
}
.acdl-footer-brand h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
}
.acdl-footer-brand p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
.acdl-footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}
.acdl-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 18px;
}
.acdl-footer-socials a:hover,
.acdl-footer-socials a:focus {
  background: #FFA400;
  color: #1f1f1f;
  transform: translateY(-2px);
}
.acdl-footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 48px;
  text-align: left;
}
.acdl-footer-col {
  text-align: left;
}
.acdl-footer-col h3 {
  margin: 0 0 22px;
  color: #F17685;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
}
.acdl-footer-col h4 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
}
.acdl-footer-col p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}
.acdl-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.acdl-footer-col li {
  margin-bottom: 12px;
  text-align: left;
}
.acdl-footer-col li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.acdl-footer-col li a:hover,
.acdl-footer-col li a:focus {
  color: #FFA400;
  padding-left: 4px;
}
.acdl-footer-bottom {
  margin-top: 60px;
  padding: 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
}
.acdl-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-align: center;
}
/* Responsive */
@media (max-width: 1199px) {
  .acdl-footer-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .acdl-footer-brand {
    max-width: 720px;
  }
}
@media (max-width: 767px) {
  .acdl-footer {
    padding-top: 50px;
  }
  .acdl-footer-inner {
    width: min(100% - 30px, 1320px);
  }
  .acdl-footer-logo img {
    max-width: 220px;
  }
  .acdl-footer-columns {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .acdl-footer-bottom {
    margin-top: 42px;
  }
}
/* Copyright */
.sp-copyright {
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------
    Hide Google reCAPTCHA Badge
------------------------------------------------------------- */
/*.grecaptcha-badge {
    visibility: hidden;
}*/