/* ===== HERO ===== */
.aco-svc-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0BBCC1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.aco-svc-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 188, 193, 0.82);
    /* effet bleu */
}

.aco-svc-hero__inner {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding: 72px 16px;
}

.aco-svc-hero__title {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: .02em;
    font-size: 64px;
    line-height: 1.05;
    text-transform: uppercase;
}

.aco-svc-hero__desc {
    margin-top: 18px;
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* ===== PAGE ===== */
.aco-svc-page {
    width: 90%;
    margin: 0 auto;
    padding: 26px 16px 70px;
}

.aco-svc-back {
    display: inline-block;
    color: #0BBCC1;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 22px;
}

.aco-svc-back:hover {
    text-decoration: underline;
    color: #055E60;
}

/* layout principal */
.aco-svc-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 46px;
    align-items: start;
}

/* Left */
.aco-svc-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0BBCC1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 8px;
}

.aco-svc-kicker__line {
    height: 2px;
    width: 56px;
    background: #0BBCC1;
    opacity: .9;
}

.aco-svc-title {
    margin: 10px 0 10px;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    color: #7a7f85;
    /* gris comme ta capture */
}

.aco-svc-intro {
    margin: 0 0 24px;
    max-width: 78ch;
    color: #4b4f55;
    line-height: 1.7;
}

/* ===== ACCORDION ===== */
.aco-svc-acc {
    display: grid !important;
    gap: 14px !important;
}

.aco-svc-acc__item {
    border: 1px solid #e9ecef !important;
    border-radius: 0 !important;
    /* look “bloc” */
    overflow: hidden !important;
    background: #fff !important;
}

.aco-svc-acc__btn {
    width: 100% !important;
    border: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
    gap: 18px !important;
    padding: 26px 28px !important;
    text-align: left !important;
    background: #f2f3f4 !important;
    /* gris fermé */
    color: #6b7280 !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

.aco-svc-acc__num {
    min-width: 34px !important;
    color: #6b7280 !important;
}

.aco-svc-acc__label {
    flex: 1 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
}

.aco-svc-acc__chev {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    /* si tu gardes le caractère ⌄ */
    color: #0f172a !important;
    transition: transform .18s ease !important;
}

.aco-svc-acc__item.is-open .aco-svc-acc__btn {
    background: #0BBCC1 !important;
    color: #fff !important;
    gap: 0 !important;
}

.aco-svc-acc__item.is-open .aco-svc-acc__num {
    color: #fff !important;
}

.aco-svc-acc__item.is-open .aco-svc-acc__chev {
    color: #fff !important;
    transform: rotate(180deg) !important;
    /* chevron vers le haut */
}

.aco-svc-acc__panel {
    display: none;
    padding: 26px 28px !important;
    background: #fff !important;
    border-top: 1px solid #e9ecef !important;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06) !important;
}

.aco-svc-acc__item.is-open .aco-svc-acc__panel {
    display: block;
}

.aco-svc-acc__panel p {
    margin-top: 0 !important;
    line-height: 1.7 !important;
}

@media (max-width: 767px) {
    .aco-svc-acc__btn {
        padding: 16px !important;
    }

    .aco-svc-acc__label {
        font-size: 16px;
    }

    .aco-svc-acc__panel {
        padding: 18px 16px;
    }
}

.aco-svc-acc__meta {
    margin-top: 10px !important;
    color: #444 !important;
}

.aco-svc-pillrow {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.aco-svc-pill {
    display: inline-flex !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid #e7e9ed !important;
    font-size: 13px !important;
}

/* ===== RIGHT PHOTOS (collage) ===== */
.aco-svc-photos {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.aco-svc-photo {
    position: absolute;
    object-fit: cover;
    border-radius: 14px;
}

.aco-svc-photo--top {
    top: 0;
    left: 0;
    width: 100%;
    height: 320px;
}

.aco-svc-photo--bottom {
    right: 0;
    bottom: 0;
    width: 78%;
    height: 260px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .aco-svc-content {
        grid-template-columns: 1fr 420px;
        gap: 30px;
    }

    .aco-svc-hero__title {
        font-size: 52px;
    }
}

@media (max-width: 1024px) {
    .aco-svc-content {
        grid-template-columns: 1fr;
    }

    .aco-svc-photos {
        height: 440px;
        margin-top: 18px;
        justify-content: center;
    }
    .aco-svc-photo {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .aco-svc-hero {
        min-height: 320px;
    }

    .aco-svc-hero__inner,
    .aco-svc-page {
        padding: 44px 16px;
        width: 95%;
    }

    .aco-svc-hero__title {
        font-size: 34px;
    }

    .aco-svc-title {
        font-size: 32px;
    }

    .aco-svc-photo {
        height: 250px !important;
    }

    .aco-svc-photo--bottom {
        width: 86%;
        height: 210px;
    }
}

/* =========================================================
   RESPONSIVE – ACO SERVICES SINGLE
   Base = desktop (tes styles actuels)
   Breakpoints demandés:
   ≤1366, ≤1200, ≤1024, ≤880, ≤767, + ≥2400
   ========================================================= */

/* ===== ≤ 1366px (laptops) ===== */
@media (max-width: 1366px){
  .aco-svc-hero__inner,
  .aco-svc-page{
    width: 92%;
  }

  .aco-svc-hero__title{
    font-size: 52px;
  }

  .aco-svc-content{
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 34px;
  }

  .aco-svc-title{
    font-size: 40px;
  }

  .aco-svc-photos{
    height: 480px;
  }
}

/* ===== ≤ 1200px (petits laptops / grandes tablettes paysage) ===== */
@media (max-width: 1200px){
  .aco-svc-hero{
    min-height: 380px;
  }

  .aco-svc-hero__inner{
    padding: 60px 16px;
    width: 92%;
  }

  .aco-svc-page{
    width: 92%;
  }

  .aco-svc-content{
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
  }

  .aco-svc-hero__title{
    font-size: 46px;
  }

  .aco-svc-title{
    font-size: 36px;
  }

  .aco-svc-acc__btn{
    padding: 20px 22px;
  }

  .aco-svc-acc__panel{
    padding: 20px 22px;
  }

  .aco-svc-photos{
    height: 440px;
  }
}

/* ===== ≤ 1024px (tablettes) ===== */
@media (max-width: 1024px){
  /* on passe en une colonne (comme très souvent sur tablette) */
  .aco-svc-content{
    grid-template-columns: 1fr;
  }

  .aco-svc-photos{
    height: 420px;
    margin-top: 18px;
  }

  /* hero moins haut */
  .aco-svc-hero{
    min-height: 340px;
  }

  .aco-svc-hero__title{
    font-size: 40px;
  }
}

/* ===== ≤ 880px (petites tablettes / gros mobiles) ===== */
@media (max-width: 880px){
  .aco-svc-hero__inner{
    padding: 48px 16px;
  }

  .aco-svc-hero__title{
    font-size: 36px;
    line-height: 1.08;
  }

  .aco-svc-hero__desc{
    font-size: 16px;
  }

  .aco-svc-kicker__line{
    width: 44px;
  }

  .aco-svc-title{
    font-size: 32px;
  }

  .aco-svc-acc__label{
    font-size: 16px;
  }

  .aco-svc-photos{
    height: 380px;
  }
}

/* ===== ≤ 767px (mobiles) ===== */
@media (max-width: 767px){
  .aco-svc-hero{
    min-height: 300px;
  }

  .aco-svc-hero__inner{
    padding: 38px 16px;
  }

  .aco-svc-hero__title{
    font-size: 30px;
  }

  .aco-svc-page{
    max-width: 100%;
    padding: 18px 16px 50px;
  }

  .aco-svc-back{
    margin-bottom: 16px;
  }

  .aco-svc-kicker{
    gap: 10px;
  }

  .aco-svc-kicker__line{
    width: 34px;
  }

  .aco-svc-title{
    font-size: 28px;
  }

  .aco-svc-intro{
    font-size: 16px !important;
  }

  .aco-svc-acc{
    gap: 14px;
  }

  .aco-svc-acc__btn{
    padding: 16px 16px;
    gap: 12px;
  }

  .aco-svc-acc__num{
    min-width: 26px;
  }

  .aco-svc-acc__label{
    font-size: 16px !important;
  }

  .aco-svc-acc__panel{
    padding: 16px 16px;
  }

  .aco-svc-photos{
    height: 320px;
    justify-content: center;
  }
}

.aco-svc-acc__chev{
  margin-left: auto;
}


/* ===== ≥ 2400px (ultra-wide) ===== */
@media (min-width: 2400px){
  .aco-svc-hero__inner,
  .aco-svc-page{
    max-width: 1900px; /* évite trop de vide */
  }

  .aco-svc-hero{
    min-height: 520px;
  }

  .aco-svc-hero__inner{
    padding: 90px 16px;
  }

  .aco-svc-hero__title{
    font-size: 72px;
  }

  .aco-svc-hero__desc{
    font-size: 18px;
    max-width: 85ch;
  }

  .aco-svc-content{
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 56px;
  }

  .aco-svc-title{
    font-size: 52px;
  }

  .aco-svc-photos{
    height: 600px;
  }
}

.aco-svc-acc__btn{
  box-sizing: border-box;
  width: 100%;
}

/* élément principal qui doit pouvoir rétrécir */
.aco-svc-acc__label{
  min-width: 0;                 /* OBLIGATOIRE en flex */
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* sécurité pour tous les spans */
.aco-svc-acc__btn > span{
  min-width: 0;
}

/* =========================================================
   SERVICES – Projects banner + carousel
   ========================================================= */

.aco-svc-projects{
  background: #0BBCC1;
  padding: 54px 0;
}

.aco-svc-projects__inner{
  max-width: 1670px;
  margin: 0 auto;
  padding: 0 16px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 34px;
  align-items: flex-start;
}

.aco-svc-projects__left{
  color: #fff;
  width: 80%;
}

.aco-svc-projects__kicker{
  font-weight: 700;
  opacity: .95;
  margin-bottom: 10px;
}

.aco-svc-projects__title{
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 900;
}

.aco-svc-projects__title span{
  text-transform: uppercase;
}

.aco-svc-projects__desc{
  margin: 0;
  max-width: 60ch;
  line-height: 1.7;
  opacity: .95;
}

/* Carousel wrapper */
.aco-svc-projects__right{
  position: relative;
}

/* horizontal scroller */
.aco-carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px;      /* desktop card width */
  gap: 16px;

  overflow-x: auto;
  padding: 6px 54px 28px;        /* left/right space for arrows */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
}
.aco-carousel::-webkit-scrollbar{ display:none; }

.aco-project-slide{
  scroll-snap-align: start;
  background: #fff;
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
  min-height: 360px;
}

.aco-project-slide__title{
  margin: 0 0 10px;
  color: #0BBCC1;
  font-weight: 900;
  font-size: 14px;
  text-decoration: underline;
}

.aco-project-slide__meta{
  font-size: 13px;
  color: #1f2937;
  margin-bottom: 10px;
}

.aco-project-slide__section{
  margin-top: 10px;
  font-size: 13px;
  color: #1f2937;
}
.aco-project-slide__text{
  margin-top: 6px;
  color: #374151;
  line-height: 1.55;
}

.aco-project-slide__list{
  margin: 8px 0 0;
  padding-left: 18px;
  color: #374151;
  line-height: 1.55;
}

.aco-carousel-shell{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 14px;
  align-items: center;
}

/* zone qui masque le scroll */
.aco-carousel-viewport{
  overflow: hidden; /* important: boutons hors zone scroll */
}

/* track scroller */
.aco-carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 360px;
  gap: 16px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 22px;

  scrollbar-width: none;
}
.aco-carousel::-webkit-scrollbar{ display:none; }

/* boutons (hors track) */
.aco-carousel-btn{
  position: static;          /* plus absolu */
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #055E60 !important;
  border-color: #055E60 !important;
  color: #fff !important;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px !important;
}

.aco-carousel-btn--prev{ left: 10px; }
.aco-carousel-btn--next{ right: 10px; }

.aco-carousel-btn:hover{ filter: brightness(1.05); }

/* Dots */
.aco-carousel-dots{
  display: none;
}
.aco-carousel-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.aco-carousel-dot.is-active{
  background: rgba(0,0,0,0.35); /* comme sur ta capture (petits points) */
}

/* =========================================================
   RESPONSIVE breakpoints demandés
   ========================================================= */

/* ≤ 1366px */
@media (max-width: 1366px){
  .aco-svc-projects__inner{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .aco-carousel{ grid-auto-columns: 340px; }
}

/* ≤ 1200px */
@media (max-width: 1200px){
  .aco-svc-projects{ padding: 44px 0; }
  .aco-svc-projects__title{ font-size: 32px; }
  .aco-carousel{ grid-auto-columns: 320px; }
}

/* ≤ 1024px */
@media (max-width: 1024px){
  .aco-svc-projects__inner{
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }
  .aco-carousel{
    padding: 6px 48px 24px;
    grid-auto-columns: 360px;
  }
  .aco-project-slide{ min-height: 320px; }
}

/* ≤ 880px */
@media (max-width: 880px){
  .aco-carousel{ grid-auto-columns: 320px; }
  .aco-carousel-btn{ display:none; } /* sur tablette/mobile: swipe */
  .aco-carousel{ padding: 6px 0 20px; }
}

/* ≤ 767px */
@media (max-width: 767px){
  .aco-svc-projects{ padding: 34px 0; }
  .aco-svc-projects__title{ font-size: 26px; }
  .aco-carousel{ grid-auto-columns: 86%; } /* 1 carte quasi full */
  .aco-project-slide{ min-height: 300px; }
}

/* ≥ 2400px */
@media (min-width: 2400px){
  .aco-svc-projects__inner{ max-width: 1900px; }
  .aco-carousel{ grid-auto-columns: 420px; }
  .aco-svc-projects__title{ font-size: 44px; }
}
