
/* Forcer TOUS les ancêtres possibles d'Elementor */
.elementor-widget-hover_cards,
.elementor-widget-hover_cards > .elementor-widget-container,
.elementor-element.elementor-widget-hover_cards {
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
}

.hc2{
  --hc-height: 420px;
  --hc-gap: 20px;
  --hc-radius: 8px;
  --hc-card-width: 320px;
  --hc-grid-cols: 3;
  --hc-grid-rows: 2;
  --hc-overlay: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  --hc-hover-bg: rgba(53, 74, 68, 0.88);
  --hc-image-tint: rgba(53, 74, 68, 0.38);
  --hc-image-tint-opacity: 0.38;
  --hc-hover-gradient: linear-gradient(90deg, rgba(53,74,68,0.92) 0%, rgba(53,74,68,0.72) 45%, rgba(53,74,68,0.10) 100%);
  --hc-arrow-size: 56px;
  position: relative;
  width: 100%;
  overflow: visible;
}

.hc2 *{
  box-sizing: border-box;
}

.hc2--slider .hc2-track{
  background: transparent;
}

.hc2--slider .hc2-card:last-child{
  margin-right: 0;
}

.hc2-nav{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  margin-bottom:24px;
}

.hc2-arrow{
  width:var(--hc-arrow-size);
  height:var(--hc-arrow-size);
  border:1.5px solid currentColor;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  transition:transform .2s ease, opacity .2s ease;
  background:transparent;
  font-size:28px;
  line-height:1;
}

.hc2-arrow:hover{
  transform:translateY(-1px);
}

.hc2-arrow:disabled{
  opacity:.35;
  cursor:not-allowed;
  transform:none;
}

.hc2-arrow img{
  width:55%;
  height:55%;
  object-fit:contain;
  display:block;
}

.hc2-track{
  width:100%;
}

.hc2--slider{
  overflow:visible!important;
}

.hc2--slider .hc2-track{
  display: flex;
  gap: var(--hc-gap);
  align-items: stretch;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.hc2--slider .hc2-track::-webkit-scrollbar{
  display:none;
}

.hc2--grid .hc2-track{
  display:grid;
  grid-template-columns:repeat(var(--hc-grid-cols), minmax(0, 1fr));
  gap:var(--hc-gap);
  width:100%;
}

.hc2-card{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:var(--hc-radius);
  text-decoration:none;
  color:inherit;
  height:var(--hc-height);
  min-height:var(--hc-height);
  isolation:isolate;
}

.hc2--slider .hc2-card{
  flex:0 0 var(--hc-card-width);
  width:var(--hc-card-width);
}

.hc2-bg,
.hc2-shade,
.hc2-hover-panel,
.hc2-footer{
  position:absolute;
  inset:0;
}

.hc2-bg{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  z-index:1;
  transform:scale(1);
  transition:transform .35s ease;
}

.hc2-card:hover .hc2-bg,
.hc2-card:focus-within .hc2-bg{
  transform:scale(1.03);
}

.hc2-shade{
  z-index:2;
  background:var(--hc-overlay);
}

.hc2-shade::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--hc-image-tint);
  opacity:var(--hc-image-tint-opacity);
  pointer-events:none;
}

.hc2-hover-panel{
  z-index:3;
  padding:26px 22px 110px;
  background:var(--hc-hover-gradient);
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
  pointer-events:none;
}

.hc2-card:hover .hc2-hover-panel,
.hc2-card:focus-within .hc2-hover-panel{
  opacity:1;
  visibility:visible;
}

.hc2-hover-content{
  max-width:260px;
  color:#fff;
}

.hc2-hover-content{
  text-shadow: 0 2px 12px rgba(0,0,0,0.20);
}

.hc2-hover-content,
.hc2-hover-content p,
.hc2-hover-content li{
  color:inherit;
}

.hc2-hover-content p:last-child{
  margin-bottom:0;
}

.hc2-footer{
  z-index:4;
  top:auto;
  inset:auto 0 0 0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:22px;
}

.hc2-title{
  margin:0;
  color:#fff;
  line-height:1.05;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* Icone */ 

hc2-icon{
  flex:0 0 auto;
  min-width:20px;
  min-height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  position:relative;
  line-height:1;
  font-family: Arial, Helvetica, sans-serif;
  font-weight:300;
}

.hc2-icon-closed,
.hc2-icon-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:28px;
  font-weight:300;
}

.hc2-icon-open{
  display:none !important;
}

.hc2-card:hover .hc2-icon-open,
.hc2-card:focus-within .hc2-icon-open{
  display:inline-flex !important;
}

.hc2-card:hover .hc2-icon-closed,
.hc2-card:focus-within .hc2-icon-closed{
  display:none !important;
}

/* Flèches de nav */ 

.hc2-nav{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  margin-bottom:24px;
  position:relative;
  z-index:20;
}

.hc2-arrow{
  position:relative;
  z-index:21;
  pointer-events:auto;
}

@media (max-width: 1024px){
  .hc2--grid .hc2-track{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .hc2{
    --hc-card-width: 280px;
  }
}

@media (max-width: 767px){
  .hc2{
    --hc-height: 360px;
  }

  .hc2-nav{
    margin-bottom:16px;
    gap:12px;
  }

  .hc2--grid .hc2-track{
    grid-template-columns:1fr;
  }

  .hc2--slider .hc2-card{
    flex:0 0 var(--hc-card-width);
    width:var(--hc-card-width);
  }

  .hc2{
    --hc-height: 360px;
  }

  .hc2-nav{
    margin-bottom:16px;
    gap:12px;
  }

  .hc2--grid .hc2-track{
    grid-template-columns:1fr;
  }

  .hc2--slider .hc2-card{
    flex:0 0 var(--hc-card-width);
    width:var(--hc-card-width);
  }

  .hc2-hover-panel{
    background:var(--hc-hover-gradient);
    padding:20px 18px 110px;
  }

  .hc2-hover-content{
    max-width:none;
  }

  .hc2-card:hover .hc2-icon-open,
  .hc2-card:focus-within .hc2-icon-open{
    display:none !important;
  }

  .hc2-card:hover .hc2-icon-closed,
  .hc2-card:focus-within .hc2-icon-closed{
    display:inline-flex !important;
  }

  .hc2-card:hover .hc2-bg,
  .hc2-card:focus-within .hc2-bg{
    transform:none;
  }

  .hc2-hover-content{
    max-width:none;
  }
}


/* Ajout test */ 

.hc2-nav {
  position: relative;
  z-index: 999;
}

.hc2-track {
  position: relative;
  z-index: 1;
}


/* ===== FIX DESIGN FLECHES + OVERFLOW ===== */

/* 1) Débloquer les wrappers Elementor qui coupent le slider */
.elementor-widget-hover_cards,
.elementor-widget-hover_cards > .elementor-widget-container,
.elementor-widget-hover_cards .elementor-widget-container,
.elementor-widget-hover_cards .elementor-element,
.elementor-widget-hover_cards .elementor-element-populated,
.elementor-widget-hover_cards .elementor-container,
.elementor-widget-hover_cards .elementor-column,
.elementor-widget-hover_cards .elementor-column-wrap,
.elementor-widget-hover_cards .elementor-widget-wrap {
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
}

/* 2) Le widget et la nav doivent pouvoir dépasser */
.hc2,
.hc2--slider,
.hc2-nav {
  overflow: visible !important;
  position: relative;
}

/* 3) Le track scroll horizontal, mais ne coupe pas verticalement */
.hc2--slider .hc2-track {
  display: flex;
  gap: var(--hc-gap);
  align-items: stretch;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.hc2--slider .hc2-track::-webkit-scrollbar {
  display: none;
}

/* 4) Flèches style screen 1 */
.hc2-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
  z-index: 50;
}

.hc2-arrow {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  background: #f2eee8;
  color: #2d3a36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}

.hc2-arrow:hover {
  transform: translateY(-1px);
}

.hc2-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hc2-arrow img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.hc2-section {
  overflow: visible !important;
}

.hc2-section > .elementor-container,
.hc2-section .elementor-column,
.hc2-section .elementor-widget-wrap {
  overflow: visible !important;
}

html,
body {
  overflow-x: hidden;
}

/* ===== Toggle mobile / tablette au tap ===== */
@media (max-width: 1024px){
  .hc2-card{
    cursor:pointer;
  }

  .hc2-card.is-open .hc2-hover-panel{
    opacity:1 !important;
    visibility:visible !important;
  }

  .hc2-card.is-open .hc2-bg{
    transform:scale(1.03);
  }

  .hc2-card.is-open .hc2-icon-open{
    display:inline-flex !important;
  }

  .hc2-card.is-open .hc2-icon-closed{
    display:none !important;
  }
}