.aboutus_page{
    background: #F5F5F5;
}
.show_in_mobile{
  display: none;
}

.sec_partners {
  padding: 56px 20px;
  padding-bottom:0;
}
.div_partners{
  display: flex;
  align-items: stretch;
  gap: 48px;
}

.sec_partners__left,
.sec_partners__right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sec_partners__heading{
  padding-left: 30px;
}

/* Headings and text */
.sec_partners__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px 0;
}

.sec_partners__intro {
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 52ch;
}

/* Single logo on the left */
.sec_partners__logo_single img {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
}

/* Right column */
.sec_partners__right_title {
  font-size: 16px;
  letter-spacing: .02em;
  margin: 0;
  opacity: .8;
}

/* White card with the two partner logos */
.sec_partners__card {
  background: #fff;
  border-radius: 20px;
  padding: 32px clamp(20px, 4vw, 48px);
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
}

/* Logos inside card */
.sec_partners__logo {
    max-width: 50%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 980px) {
  .sec_partners {
    padding: 30px 20px;
  }
  .div_partners{
    flex-direction: column;
    gap: 32px;
  }
  .sec_partners__heading{
    padding-left: 0;
  }
  .sec_partners__logo_single img {
    max-width: 260px;
  }
}

/* =========================================================
   CTA BLEUE – Deux colonnes, coins arrondis, boutons thèmes data
   (aucune redéfinition de couleurs; on utilise les variables existantes)
   ========================================================= */

.aboutus_page .sec_cta_blue {
  padding: 40px 30px 40px;
}

.aboutus_page .cta_blue {
  background: var(--moba_blue);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
}

.aboutus_page .cta_blue__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Titres & textes */
.aboutus_page .cta_blue__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0;
}

.aboutus_page .cta_blue__desc {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
  margin: 0;
  max-width: 62ch;
}

.aboutus_page .cta_blue__sub {
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

/* Actions (boutons) */
.aboutus_page .cta_blue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(8px, 1vw, 12px);
}

.aboutus_page .cta_blue__actions .cta {
  min-height: 56px;
  padding: 0 22px; /* ton enhancer génère l’intérieur; ce padding assure la largeur mini avant enhancement */
}

/* About page CTA – make the buttons wider like the reference */
.aboutus_page .cta_blue__actions .cta.btn:first-child {
  width: auto;              /* override width: fit-content from .btn */
  flex: 0 0 260px;          /* ~same width for both buttons */
  justify-content: center;  /* center the text */
}

.aboutus_page .cta_blue__actions .cta.btn:nth-child(2) {
  border:none;
}

/* Responsive */
@media (max-width: 980px) {
  .aboutus_page .cta_blue {
    grid-template-columns: 1fr;
  }
  .aboutus_page .cta_blue__actions {
    gap: 12px;
  }
}



/* keep the progress line below the circles */
.aboutus_page .div_propos_timeline .timeline-progress {
  position: absolute;
  left: 0;
  top: 20px;      /* same as your line */
  height: 2px;
  background: #000;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;     /* BELOW */
}

/* ensure circles are ABOVE the progress line */
.aboutus_page .timeline-item::before,
.aboutus_page .timeline-item::after {
  z-index: 1;
}

/* texts start hidden */
.aboutus_page .timeline-item .timeline-year,
.aboutus_page .timeline-item .timeline-text {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}

/* A Propos Page CSS */
/* ================= */


.sec_a_propos{
    padding: 20px 20px 50px;
}
.div_a_propos{
    display: flex;
    gap: 50px;
}
.div_a_propos > div{
    flex: 1;
    /* padding: 30px 50px; */
}
.div_a_propos .box_bg_blue{
    background: #83DCFF;
    border-radius: 25px;
    padding: 30px 50px;
    flex: 0 0 calc(50% - 100px);
}
.div_a_propos span{
    font-size: 22px;
    display: block;
    margin-bottom: 30px;
}


.div_a_propos p{
    font-size: 22px;
    margin-bottom: 30px;
}
.div_a_propos h2{
    font-size: 44px;
}
.div_a_propos .div_moba{
    margin-bottom: 30px;
}
.div_a_propos .div_moba, .div_a_propos .div_movia{
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px 50px;
    border-radius: 25px;
}
.div_a_propos .div_moba p, .div_a_propos .div_movia p{
    margin-bottom: 0;
}
.div_a_propos .map_button{
    background: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s;
}

/* default */
.div_a_propos .map_button{
  background: #fff;
  border: 2px solid #fff;
}

/* MOBA (zone 1) hover/active = orange */
.div_a_propos .map_button[data-zone="1"]:hover{
  border-color: var(--moba_orange);
}
.div_a_propos .map_button[data-zone="1"].active{
  background: var(--moba_orange);
  border-color: var(--moba_orange);
}

.div_a_propos .map_button[data-zone="2"]:hover{
  border-color: var(--moba_blue);
}
.div_a_propos .map_button[data-zone="2"].active{
  background: var(--moba_blue);
  border-color: var(--moba_blue);
  color: #000; 
}

.sec_map_part{
    padding: 0 20px;
    border: solid #000;
    border-width: 2px 0;
    text-align: center;
}

.custom_map_wrapper { 
    display: grid; 
    gap: 16px; 
    max-width: 820px; 
}
.custom_map_wrapper svg { 
    width: 100%; 
    height: 650px; 
}

.custom_map_wrapper .zone path {
    fill: #E6E6E6;
    transition: fill 180ms ease;
}
.custom_map_wrapper .zone[data-zone="1"].active path { fill: var(--moba_orange); }
.custom_map_wrapper .zone[data-zone="2"].active path { fill: var(--moba_blue); }

.custom_map .zone[data-zone="1"].active path { fill: var(--moba_orange, #FF5101); }
.custom_map .zone[data-zone="2"].active path { fill: var(--moba_blue, #83DCFF); }

.custom_map_buttons { display: grid; gap: 12px; }
.custom_map_buttons .button {
    width: 100%;
    min-height: 96px;
    border-radius: 25px;
    background: #E6E6E6;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 0;
    cursor: pointer;
    text-align: left;
}
.custom_map_buttons .button.active,
.custom_map_buttons .button:hover
{
  background: #FF5101;
  color: #fff;
}

.div_map_part{
    display: flex;
    gap: 50px;
}
.div_map_part > div{
    flex: 1;
}


/* Timeline Section */
.sec_propos_timeline {
    padding: 50px 20px;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.div_propos_timeline {
  position: relative;
  background: #fff;
  border-radius: 25px;
  padding: 30px;
}

.div_propos_timeline h2{
    font-size: 44px;
}

/* Timeline Wrapper */
.timeline-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 50px;
}
.timeline-wrapper:after{
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 2px solid;
    border-color: #000 #000 transparent transparent;
    transform: rotate(45deg);
}

.timeline-track {
  display: flex;
  gap: 25px;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.timeline-item {
  flex: 1;
  padding: 50px 0 0;
  position: relative;
  min-width: 150px;
}
.timeline-item.timeline-notext{
    flex: 0.6;
}
.timeline-item:before {
    content: '';
    position: absolute;
    top: 6px;
    width: 26px;
    height: 26px;
    border: 2px solid #000;   /* keep border */
    background: #fff;         /* solid white fill */
    border-radius: 50%;
    z-index: 2;               /* make sure it’s above the line */
    transition: all 0.3s;
}

.timeline-item:last-child:after{
    right: 0;
}

.timeline-year {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  margin: 10px 0 20px;
  transition: all 0.3s;
}
.timeline-text{
    font-size: 16px;
    margin: 0;
    transition: all 0.3s;
}

.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid #ff6b35;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;

  display: none;
}

.timeline-nav svg {
  stroke: currentColor;
}
.timeline-nav-prev {
  left: -24px;
}
.timeline-nav-next {
  right: -24px;
}
.timeline-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.map-inset {
    position: relative;
    top: 32px;
    right: 32px;
    background: #fff;
    border-radius: 24px;
    padding: 14px 18px 18px;
    z-index: 2;
}

.map-inset__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 18px;
}

.map-inset__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000;
  display: inline-block;
}

.map-inset__svg {
  display: block;
  width: 100%;
  height: auto;
}

/* colors for paths */
.map-inset .mi-active   { fill: var(--moba_orange, #FF5101); }
.map-inset .mi-inactive { fill: var(--moba_grey, #E6E6E6); }

/* responsive tweak on small screens (keep it readable) */
@media (max-width: 960px){
  .map-inset { position: static; width: 100%; margin-top: 16px; }
}

.div_notre_equipe ul li a{
    font-size: 18px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
}
.div_notre_equipe ul li.active a{
    background:  var(--moba_orange);
}
.div_notre_equipe img{
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.sec_profi_propo{
    padding: 50px 20px;
    /* overflow: hidden; */
}
.div_profi_propo{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
    row-gap: 60px;
}
.div_profi_propo .profi_info_box{
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.div_profi_propo .profi_info_box{
    width: 100%;
}

.profi_info_box img{
    width: 100%;
    max-width: 375px;
    border-radius: 10000px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10000px;
    height: auto;
}
.profi_info_box h3{
    font-size: 32px;
    margin-top: 20px;
}
.profi_info_box span{
    font-size: 18px;
    display: block;
    /* margin-bottom: 40px; */
}
.profi_info_box p, .profi_info_box a{
    color: #000;
    font-size: 18px;
}
.profi_info_box a{
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 10px;
}

.sec_notre_equipe{
    padding: 50px 20px;
}
.div_notre_equipe{
    display: flex;
    gap: 50px;
    height: 450px;

}
.div_notre_equipe > div{
    flex: 1;
}
.div_notre_equipe .blue_bg_box{
    background: #83DCFF;
    border-radius: 25px;
    padding: 40px;
    max-width: 825px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.div_notre_equipe h2{
    font-size: 44px;
    margin-bottom: 50px;
}
.div_notre_equipe p{
    font-size: 22px;
    margin-bottom: 30px;
}
.div_notre_equipe p.p_mx_575{
    max-width: 575px;
}
.div_notre_equipe hr{
    border: none;
    border-top: 2px solid #000;
    margin-bottom: 30px;
}
.div_notre_equipe ul{
    display: flex;
    gap: 20px;
}

.team-photo {
  display: block;
  max-width: 375px;          
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
}

.team-photo--placeholder {
  background: var(--moba_blue);
}

#team-load-more {
    border:none;
    padding-left: 60px;
    padding-right: 60px;
    background-color: transparent;
}

.sec_profi_propo__more {
    display: flex;
    justify-content: center;
    margin-top:60px;
}

/* =========================================================
   ABOUT – Partners card full width + match blue block height
   ========================================================= */

/* One shared height target (desktop/tablet) */
.aboutus_page{
  --about-card-min-h: 320px; /* tweak if you want slightly taller/shorter */
}

/* Partners section becomes single column */
.sec_partners .div_partners.sec_partners--single{
  display: block;
}

/* Full-width white card */
.sec_partners__card.sec_partners__card--full{
  width: 100%;
  min-height: var(--about-card-min-h);
  justify-content: center;
}

/* Make blue block match that min-height too */
.aboutus_page .cta_blue{
  min-height: var(--about-card-min-h);
  align-items: stretch;
}

/* RCEM block in the blue section */
.aboutus_page .cta_blue__col--rcem{
  display: flex;
  align-items: center;
}

.aboutus_page .cta_blue__rcem{
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.aboutus_page .cta_blue__rcem_title{
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  margin: 0;
}

.aboutus_page .cta_blue__rcem_intro{
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 52ch;
}

.aboutus_page .cta_blue__rcem_logo img{
  width: 100%;
  height: auto;
  display: block;
}

.cta_blue__rcem_logo {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Partner logos in the white card: don't stretch vertically */
.sec_partners__logo{
  width: 100%;
  max-width: 50%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

/* On smaller screens, let height be natural */
@media (max-width: 980px){
  .aboutus_page .cta_blue,
  .sec_partners__card.sec_partners__card--full{
    min-height: 0;
  }

  .sec_partners__card.sec_partners__card--full{
    flex-direction: column;
    gap: 28px;
  }

  .sec_partners__logo{
    max-width: 100%;
  }
}



@media (max-width: 1600px){
    .div_a_propos p{
        font-size: 20px;
    }
    .div_a_propos .div_moba, .div_a_propos .div_movia{
        padding: 30px;
    }
    .div_a_propos h2{
        font-size: 40px;
    }

}

@media (max-width: 1280px){

    .div_propos_timeline h2{
        font-size: 38px;
    }

    .timeline-item, .timeline-item.timeline-notext {
        flex: 0 0 20%;
    }
 
    .timeline-nav{
        display: block;
    }

    .custom_map_wrapper svg {
        height: auto;
    }

    .js-about-text.right_text {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .js-about-text.right_text .div_map_buttons{
        height:80%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .div_a_propos .div_movia,
    .div_a_propos .div_moba{
        justify-content: space-between;
        padding: 20px;
        gap:0;
    }

    .div_movia.map_button p,
    .div_moba.map_button p{
        width:60%;
    }

    .div_notre_equipe {
        height:550px;
    }

    .timeline-nav {
        width: 40px;
        height: 40px;
        top: 50px;
        right: 50px;
    }

    .timeline-nav-prev {
        left: 82vw;
    }

    .div_propos_timeline .timeline-nav {
      border : 1px black solid
    }

    .sec_partners__card {
      flex-direction: column;
      gap: 28px;
      align-items: flex-start;
    }

    .sec_partners__logo {
      max-width: 100%;
    }

}

@media (max-width: 960px){

    .div_profi_propo {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 30px;
        row-gap: 30px;
    }
    .div_propos_timeline h2{
        font-size: 32px;
    }

    .timeline-item {
        flex: 0 0 33.333%;
    }

    .div_notre_equipe {
        height: fit-content;
        gap: 10px;
    }

    .timeline-nav-prev {
        left: 75vw;
    }

      .sec_partners__logo {
        max-width: 60%;
    }

    .sec_partners__card {
        align-items: center;
    }

    .sec_partners {
      padding-bottom: 0;
    }
}

@media (max-width: 640px) {

  .show_in_mobile{
    display: block;
  }

  .sec_a_propos {
    padding-bottom:30px;
    padding-top:0;
  }

    .div_a_propos{
        flex-direction: column;
        gap:30px;
    }
    
    .div_a_propos .box_bg_blue{
        padding: 20px ;
    }
    .div_a_propos span{
        font-size: 14px;
        margin-bottom: 20px;
    }
    .div_a_propos p{
        font-size: 15px;
    }

    .map-label.laurentides {
        transform: translate(5px, 285px);
    }


    .box_bg_blue p:last-child{
        margin-bottom: 0;;
    }

    .div_a_propos .ta_cen_mob{
        text-align: center;
    }

    .div_a_propos h2{
        font-size: 32px;
    }

    .div_notre_equipe h2{
        font-size: 32px;
    }

    .div_notre_equipe{
        flex-direction: column-reverse;
        gap: 30px;
    }

    .div_map_part{
        flex-direction: column;
    }

    .div_profi_propo {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }

    .profi_info_box h3{
        font-size: 16px;
    }
    .profi_info_box span{
        font-size: 14px;
        margin-bottom: 20px;
    }
    .profi_info_box p, .profi_info_box a{
        font-size: 12px;
    }

        .div_propos_timeline h2{
        font-size: 26px;
    }
    .timeline-wrapper{
        margin-top: 30px;
    }

    .timeline-item {
        flex: 0 0 100%;
    }
    
    .timeline-nav-prev {
        left: 10px;
    }
    .timeline-nav-next {
        right: 10px;
    }
    .timeline-nav {
        width: 40px;
        height: 40px;
        bottom: 15%;
        top:unset;
    }
    .timeline-nav svg {
        width: 35px;
        height: 35px;
        stroke-width: 1px;
        padding-top: 2px;
         padding-left: 2px;
    }
    
    .timeline-year {
        font-size: 18px;
    }
    .timeline-text{
        font-size: 14px;
    }

    .timeline-item::before{
        width: 18px;
        height: 18px;
        left: calc(50% - 9px);
    }
    .timeline-item::after{
        top: 15px;
        left: 22px;
    }
    .timeline-wrapper::after{
        width: 15px;
        height: 15px;
        top: 7px;
        right: 3px;
    }

    .timeline-nav:hover {
        background-color: unset;
    }

    .timeline-nav svg {
        stroke:black;
    }

    .aboutus_page .div_propos_timeline .timeline-progress {
        top: 16px; 
    }

      .sec_map_part .div_map_part {
    position: relative;
    display: block;         /* stack col_left / col_right logically */
  }

  .sec_map_part .map_col_left {
    width: 100%;
  }

  /* Montréal inset as overlay card on the main map */
  .sec_map_part .map_col_right {
    position: absolute;
    top: 16px;              /* adjust for exact position */
    right: 30px;
    width: 60%;
    max-width: 260px;
  }

  .sec_map_part .map-inset {
    background: #fff;
    border-radius: 18px;
    padding: 12px 16px;
  }

  .sec_map_part .map-inset__header {
    margin-bottom: 8px;
  }

  .sec_map_part .map-inset__svg {
    width: 100%;
    height: auto;
  }

    .sec_map_part .map_col_left .map-label text {
    font-size: 28px;      /* try 18–20px depending on taste */
    font-family: inherit; /* match site font if needed */
  }

  /* If you ever add labels inside the inset SVG too */
  .sec_map_part .map_col_right .map-label text {
    font-size: 16px;
  }

  .div_notre_equipe .filter-buttons {
    margin-left:0;
    flex-direction: row;
  }

  .div_notre_equipe .blue_bg_box {
    padding: 20px;
  }

  .div_profi_propo {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 40px;
    column-gap: 30px;
  }

  /* kill old flex/width constraints on the cards */
  /* This is Grid - so no need of other properties (comments those) */
  .div_profi_propo .profi_info_box {
    /* width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important; */
    padding: 0;
  }

  /* image fills its column but stays round */
  .div_profi_propo .team-photo {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  .timeline-item > div {
        width: 70%;
        display: flex;
        flex-direction: column;
        margin: auto;
        margin-top: -10px;
  }

  .sec_restez_connect{
    padding: 30px 20px;
  }
  .div_restez_connect{
    background: var(--moba_orange);
    border-radius: 25px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 20px;
  }
  .div_restez_connect span{
    font-size: 12px;
  }
  .div_restez_connect p{
    font-size: 18px;
  }
  .div_restez_connect a{
    font-size: 16px;
    align-self: flex-end;

    display: inline-block;
    background: #fff;
    padding: 10px 20px;
    border-radius: 40px;
  }

  .div_notre_equipe .div_filtres {
    margin-bottom:0!important;
  }

  .div_notre_equipe .filter-buttons {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }

  .sec_profi_propo {
    padding-top:0;
    padding-bottom:30px;
  }

  .div_profi_propo .profi_info_box {
    gap:0;
  }

  .sec_propos_timeline {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    padding-top:30px;
    padding-bottom: 30px;
  }

  .sec_partners {
    border-bottom: 2px solid #000;
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .aboutus_page .sec_cta_blue {
    padding-top:30px;
    padding-bottom:0;
  }

  .cta_blue__sub {
    border-top:2px solid #000;
    padding-top:20px;
  }
  .aboutus_page .cta_blue__actions {
    justify-content: space-around;
    flex-wrap: nowrap;
  }

    .aboutus_page .cta_blue__actions .btn-text-p {
        font-weight: 100;
        font-size:18px;
    }

    .aboutus_page .cta_blue__actions .cta {
        padding: 10px 10px;
        height: fit-content;
        min-height: 0;
        width: min-content;
        flex:0 0 100px!important;
    }

    .div_restez_connect a {
        height: auto;
    }

    .sec_partners__right {
        gap:10px;
    }

    .sec_partners__card {
        min-height: 0;
        align-items: center;
    }

    .sec_partners__logo_single {
        display: flex;
        justify-content: center;
    }

    .div_notre_equipe {
        height: auto;
    }

    .div_notre_equipe img {
        height: auto;
        aspect-ratio: 1/1;
    }
}