@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');

.chc-projet, .chc-projet * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.chc-projet {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #222;
  width: 100%;
}

/* ----- Carrousel ----- */
.chc-carrousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.chc-piste {
  display: flex;
  gap: 2px;
  align-items: flex-start;     /* ne pas étirer les images */
  width: max-content;
  animation: chc-defilement 70s linear infinite; /* vitesse : plus le chiffre est petit, plus ça va vite */
}


.chc-piste .chc-photo {
  /* taille standard : hauteur fixe, largeur selon les proportions de l'image */
  height: 700px !important;
  width: auto !important;
  max-width: none !important;   /* évite que le thème Salesforce réduise les images */
  max-height: none !important;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  background: #8c8c8c;          /* gris pendant le chargement */
}

/* pause tant que la souris est sur une image, reprise dès qu'elle sort */
.chc-piste:hover {
  animation-play-state: paused;
}

@keyframes chc-defilement {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 1px)); }
}

/* ----- Panneau texte (par-dessus les photos) ----- */
.chc-texte {
  position: absolute;
  right: 32px;
  bottom: 28px;
  width: 435px;
  padding: 30px 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);       /* voile blanc transparent */
  backdrop-filter: blur(6px);                  /* effet verre dépoli */
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.chc-texte h2 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 22px;
}

.chc-texte p {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: #fff;
}

/* ----- CTA souligné ----- */
.chc-texte .chc-cta {
  display: inline-block;
  margin-top: 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: underline !important;
  transition: opacity 0.2s ease;
}

.chc-texte .chc-cta:hover,
.chc-texte .chc-cta:focus {
  opacity: 0.7;
}

/* ----- Mention boutique (phrase sans lien, versions EN / CH) ----- */
.chc-texte .chc-mention {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #fff;
}

/* ----- Logo en superposition (disparaît après 5 s) ----- */
.chc-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;        /* n'empêche pas le survol du carrousel */
  background: rgba(0, 0, 0, 0.25);             /* voile foncé */
  backdrop-filter: blur(4px);                  /* flou des photos derrière */
  -webkit-backdrop-filter: blur(4px);
  animation: chc-logo-fondu 0.6s ease 1.5s forwards; /* 1.5s = délai avant disparition, 0.8s = durée du fondu */
}

.chc-logo img {
  width: 220px !important;     /* taille du logo */
  max-width: 80% !important;
  height: auto !important;
  display: block;
}

@keyframes chc-logo-fondu {
  to { opacity: 0; visibility: hidden; }
}

/* ----- Mobile ----- */
@media (max-width: 700px) {
  /* le voile + logo ne couvre que les photos */
  .chc-logo {
    bottom: auto;
    height: 460px;
  }
  .chc-logo img {
    width: 150px !important;
  }
  /* hauteur réduite sur mobile, proportions conservées */
  .chc-piste .chc-photo {
    height: 460px !important;
    width: auto !important;
  }
  /* texte placé SOUS les photos, sur fond blanc */
  .chc-texte {
    position: static;
    width: auto;
    padding: 22px 20px 26px;
    color: #222;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    text-align: center;
  }
  .chc-texte h2 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #222;
    margin-bottom: 12px;
  }
  .chc-texte p {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
  }
  .chc-texte .chc-cta {
    margin-top: 16px;
    font-size: 12px;
    color: #222 !important;
  }
  .chc-texte .chc-mention {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #222;
  }
}

.breadcrumbWrapper.u-align-c.my-32 {
    display: none !important;
}
