/* ==== RESET SFCC ==== */
#main h1::after { background-color: transparent !important; }
#main .h1,
#main h1 { margin: 0 0 5px !important; }
.h1 { display: none !important; }
#main .h1.h1 { letter-spacing: 0 !important; font-size: 29px !important; }

/* ==== HEADER ==== */
.catalog-header {
text-align: center;
padding: 0px;
background-color: #fff;
}
.catalog-header h1 {
margin-bottom: 20px;
font-size: 2rem;
color: #333;
font-family: "Sofia Sans Extra Condensed", sans-serif;
text-align: center !important;
}

/* ==== CAROUSEL ==== */
.image-carousel {
display: flex;
gap: 20px;
overflow-x: auto;
padding: 10px 0;
justify-content: center;
/* scroll-snap pour accompagner le centrage */
scroll-snap-type: x proximity;
}

/* ==== ITEM ==== */
.image-item {
flex: 0 0 auto;
width: 150px;
text-align: center;
position: relative;
scroll-snap-align: center;
}
.image-item img {
width: 100%;
height: auto;
transition: transform 0.3s;
}
.image-item img:hover { transform: scale(1.05); }

/* ==== TITRE ==== */
.image-item .title {
margin-top: 5px;
font-size: 1.3rem;
letter-spacing: -1px;
font-weight: bold;
font-family: "Sofia Sans Extra Condensed", sans-serif;
color: #333;
transition: color 0.2s, background-color 0.2s, border-color 0.2s;
padding: 5px;
cursor: pointer;
line-height: 20px;
}
/**
.image-item .title:hover,
.image-item .title.active {
color: #000;
border: 1px solid #fff;
border-radius: 25px;
}**/

.taille {
background-color: #EF4564;
padding: 4px 12px;
border: 1px solid #EF4564;
border-radius: 55px;
font-weight: 700;
margin-left: 5px;
color: white !important;
}

/* ==== ÉTAT OUVERT DU TOGGLE ==== */
.accordion-toggle:hover {
color: #000 !important;
border: 1px solid #000 !important;
border-radius: 25px;
background-color: #fff;
}
.accordion-toggle[aria-expanded="true"] {
color: #fff !important;
border: 1px solid #000 !important;
border-radius: 25px;
background-color: #000;
}

/* ==== CAPTION ==== */
.image-item .caption {
font-size: 0.9rem;
font-weight: 500;
font-family: "Sofia Sans Extra Condensed", sans-serif;
color: #666;
text-transform: uppercase;
}

/* ==== SOUS-TITRE PLP ==== */
#sstitle {
font-size: 1.2rem !important;
font-family: "Sofia Sans Extra Condensed", sans-serif !important;
text-transform: lowercase;
font-weight: 400 !important;
}

/* ==== ACCORDÉON ==== */
.accordion-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
background: #f7f7f7;
margin: 0 auto 5px;
padding: 0 20px;
width: 100%;
position: relative;
}
.accordion-close {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 22px;
font-weight: bold;
color: #333;
font-family: sans-serif;
background-color: transparent !important;
border: 0px !important;
}
.accordion-box img { width: 50px; margin-bottom: 10px; }
.accordion-box p {
font-family: "Sofia Sans Extra Condensed", sans-serif;
font-size: 1.3rem;
color: #333;
}

.accordion-toggle.visited {
color: #fff !important;
border: 1px solid #000 !important;
border-radius: 25px;
background-color: #000;
}

/* ==== TEXTE ACCORDÉON ==== */
#descriptiontxt {
text-align: left;
font-size: 20px;
font-weight: 500;
display: flex;
justify-content: center;
letter-spacing: normal;
flex-direction: column;
}
.sstitletxt {
font-size: 17px;
text-align: center;
font-weight: 700;
margin-top: 20px !important;
}
#ancrebloc { scroll-margin-top: 244px; }
#linkpage { text-decoration: underline; }

/* ==== MOBILE ==== */
@media screen and (max-width: 768px) {

#sstitle {
  font-size: .9rem !important;
}
h1 {
  text-align: center !important;
}
.image-carousel {
  justify-content: flex-start;
  gap: 20px;
}
.image-item {
  width: 120px;
}
.image-item img:hover {
  transform: scale(1);
}
.image-item .title {
  line-height: 15px;
  font-size: 1.3rem;
}
.image-item .caption {
  font-size: .7rem;
}
.content-slot .slot-grid-header {
  margin-top: -85px !important;
}
.catalog-header {
  padding: 20px 0;
  margin-top: -4vh;
}
#logoheat {
  width: 60%;
}
#descriptiontxt {
  font-size: 17px;
  font-weight: 400;
  text-align: center !important;
}
#main .h1, #main h1 {
  margin: 5px 0 20px !important;
  font-size: 25px !important;
}
.sstitletxt {
  font-size: 14px;
}
.grostitre {
  font-size: 1.1em;
  font-weight: 700;
}
.accordion-inner {
  display: block;
  padding-top: 20px;
}
.accordion-box {
  width: 100%;
  text-align: center;
  margin-bottom: 25px;
}
.accordion-box img {
  margin: 0 auto 0px;
}
.accordion-box p {
  text-align: center;
}
}

/* ==== DESKTOP ==== */
@media screen and (min-width: 769px) {

.accordion-inner {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 60px;
padding: 40px 0 20px;
letter-spacing: normal;
}

.grostitre {
font-size: 1.5em;
font-weight: 700;
}

.accordion-inner .accordion-box {
display: flex;
align-items: center;
}
.accordion-inner .accordion-box:first-child {
justify-content: flex-end;
}
.accordion-inner .accordion-box:first-child #logoheat {
width: 35%;
max-width: 100%;
}

.accordion-inner .accordion-box:last-child {
justify-content: flex-start;
text-align: left;
}
.accordion-inner .accordion-box:last-child p { margin: 0; }

#descriptiontxt { width: 100%; }
}