/* ========================= */
/* Configurateur de fenêtres  */
/* ========================= */

:root {
  --fixwidth: 1340px;
  --green: #91AE3B;
  --blue: #124170;
  --blackWithOpactiy: #2323238C

  --cfg-blue: #124170;
  --cfg-green: #91AE3B;
  --cfg-light-bg: #f8f9fa;
  --cfg-border: #e0e0e0;
  --cfg-text: #333;
  --cfg-text-light: #666;
  --cfg-radius: 8px;
}

body#configurateur .breadcrumb {
  display: none;
}
/* ========================= */
/* Page Header               */
/* ========================= */
.config-page-header {
  max-width: 1340px;
  margin: 0 auto;
  padding: 30px 20px 20px;
  width: 100%;
}
.config-page-header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--blue);
  font-size: 46px;
  font-weight: 700;
}
.config-page-header p {
  color: #1B1B1B;
  font-family: Poppins;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* ========================= */
/* Main Layout               */
/* ========================= */
.config-wrapper {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.config-left {
  width: 42%;
  min-width: 380px;
  position: sticky;
  top: 20px;
  flex-shrink: 0;
}

.config-right {
  flex: 1;
  min-width: 0;
}

/* ========================= */
/* Section Headers (blue bar)*/
/* ========================= */
.config-wrapper .section-header {
  background: var(--blue);
  color: #FFF;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 25px; /* 138.889% */
  letter-spacing: 0.48px;
  text-transform: uppercase;
  display: flex;
  padding: 4.5px 0px 7.5px 10px;
  align-items: center;
  align-self: stretch;
}
.config-wrapper .section-header--full {
  border-radius: var(--cfg-radius);
  margin-bottom: 16px;
}

/* ========================= */
/* Left Column - Preview     */
/* ========================= */
.preview-box {
  /*border: 1px solid var(--cfg-border);*/
  /*border-radius: var(--cfg-radius);*/
  overflow: hidden;
  margin-bottom: 16px;
}
.preview-box .section-header {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  gap: 8px;
  width: calc(100% - 10px);
  border-radius: 4px ;
}
.preview-box .section-header span {
  color: #FFF;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.48px;
  text-transform: capitalize;
}
.preview-image {
  /*background: #f0f4f8;*/
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px;
}
.preview-image img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}
.preview-image .window-placeholder {
  width: 280px;
  height: 320px;
  background: linear-gradient(135deg, #dce8f5 0%, #eaf2fa 100%);
  border: 12px solid #e8e8e8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.preview-image .window-placeholder::before,
.preview-image .window-placeholder::after {
  content: '';
  position: absolute;
  background: #bbb;
}
.preview-image .window-placeholder::before {
  width: 1px;
  height: 70%;
  top: 15%;
}
.preview-image .window-placeholder::after {
  height: 1px;
  width: 70%;
  left: 15%;
}

/* Price section */
.price-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
}
.price-section .priceCol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-section .price-label {
  color: #7F7F7F;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 125% */
}
.price-section .price-value {
  color: #333;
  font-family: Poppins;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.price-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}
.price-actions .icon-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  color: var(--cfg-text);
}
.price-actions .icon-btn img {
  width: 33px;
  height: auto;
}
.price-actions .separator {
  /*width: 1px;*/
  /*height: 24px;*/
  /*background: var(--cfg-border);*/
}

/* Summary panel */
.summary-panel {
  border: 1px solid var(--cfg-border);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  /*margin-bottom: 16px;*/
}
.summary-row {
  /*display: flex;
  padding: 10px 18px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;*/
  display: flex;
padding: 8px 18px;
align-items: center;
align-self: stretch;
border-right: 1px solid #BDBDBD;
border-bottom: 1px solid #BDBDBD;
border-left: 1px solid #BDBDBD;
background: #EFEFEF;
gap: 5px;
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row .label {
color: #000;
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 25px; /* 138.889% */
letter-spacing: 0.48px;
text-transform: capitalize;
}
.summary-row .value {
color: #4B4743;
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 25px;
letter-spacing: 0.48px;
text-transform: capitalize;
}

/* Accessories accordion */
.accessories-section {
  border: 1px solid var(--cfg-border);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.accessories-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
padding: 8px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  background: #EFEFEF;
  border-bottom: 1px solid #BDBDBD;
  border-right: 1px solid #BDBDBD;
  border-bottom: 1px solid #BDBDBD;
  border-left: 1px solid #BDBDBD;
  background: #EFEFEF;
  color: #000;
font-family: Poppins;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: 25px; /* 138.889% */
letter-spacing: 0.48px;
text-transform: capitalize;
}
.accessories-section summary::-webkit-details-marker {
  display: none;
}
.accessories-section summary::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;

  background-image: url('/img/images/icons/arrowBottom.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  transition: transform 0.2s;
}
.accessories-section[open] summary::after {
  transform: rotate(180deg);
}
.accessories-content .summary-row {
  padding: 8px 18px;
}

/* ========================= */
/* Steps Breadcrumb          */
/* ========================= */
.steps-nav {
  display: flex;
  margin-bottom: 24px;
}
.step-item {
  flex: 1;
  /*padding: 12px 20px 12px 30px;*/
  font-family: Inter;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  position: relative;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
  width: 224.712px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item:first-child {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  /*border-radius: var(--cfg-radius) 0 0 var(--cfg-radius);*/
  /*padding-left: 20px;*/
}
.step-item:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
  /*border-radius: 0 var(--cfg-radius) var(--cfg-radius) 0;*/
}
.step-item.inactive {
  background: #D4E9FF6B;
  color: var(--blue);
}
.step-item.active {
  background: var(--blue);
  color: #fff;
}

/* ========================= */
/* Config Sections           */
/* ========================= */
.config-section {
  margin-bottom: 28px;
}
.config-section .section-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  font-family: Poppins;
  color: #333;
}

/* ========================= */
/* Selection Cards           */
/* ========================= */
.config-wrapper .cards-grid {
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 12px;
}
.config-wrapper .cards-grid.flexWrap {
  flex-wrap: wrap;
}

/* Hidden radio inputs */
.card-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.card-option {
  border: 2px solid var(--cfg-border);
  border-radius: var(--cfg-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
.card-option:hover {
  border-color: #c0c0c0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.card-radio:checked + .card-option {
  border-color: var(--cfg-green);
  box-shadow: 0 0 0 1px var(--cfg-green);
}

/* Material cards */
.card-option--material {
  width: 142px;
  padding: 12px;
  margin: 0;
}
.card-option--material img {
  width: 120px;
  height: 110px;
  object-fit: contain;
  margin-bottom: 8px;
}
.card-option--material .card-label {
  font-family: Poppins;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  line-height: 18.571px;
}

/* Toggle link */
.toggle-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  padding: 12px;
  border: 2px solid var(--cfg-border);
  border-radius: var(--cfg-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 18.571px; /* 142.857% */
  color: #222;
  text-align: center;
  gap: 6px;
}
.toggle-link .toggle-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--cfg-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

/* ========================= */
/* Gamme (Range) Cards       */
/* ========================= */
.cards-grid--gamme {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card-option--gamme {
  padding: 0px 9px;
  width: auto;
}
.card-option--gamme img {
  width: 140px;
  height: 120px;
  object-fit: contain;
  margin: 12px 0;
}
.card-option--gamme .card-title {
color: #222;
text-align: center;
font-family: "Open Sans";
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: 18.571px; /* 132.653% */
}
.card-option--gamme .card-title span {
  text-transform: uppercase;
}
.card-option--gamme .card-desc {
color: #4B4743;
text-align: center;
font-family: "Open Sans";
font-size: 10px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.feature-list {
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
ul.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
color: #222;
font-family: "Open Sans";
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 18.571px; /* 154.762% */
display: flex;
align-items: center;
gap: 6px;
border-bottom: 1px solid #BDBDBD;
padding-bottom: 10px;
}
.feature-list li:last-child {
  border-bottom: none;
}
.feature-list .check {
  color: var(--blue);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================= */
/* Profile Cards             */
/* ========================= */
.cards-grid--profile {
  display: flex;
  gap: 14px;
}
.card-option--profile {
  width: 220px;
  padding: 16px;
  position: relative;
}
.card-option--profile .uw-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cfg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.2;
}
.card-option--profile .uw-badge small {
  display: block;
  font-size: 9px;
  font-weight: 400;
}
.card-option--profile .info-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cfg-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--cfg-text-light);
}
.card-option--profile img {
  width: 140px;
  height: 160px;
  object-fit: contain;
  margin: 10px auto;
}
.card-option--profile .card-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-option--profile .spec-list {
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.card-option--profile .spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
}
.card-option--profile .spec-list li:last-child {
  border-bottom: none;
}
.card-option--profile .spec-list .check {
  color: var(--cfg-blue);
  flex-shrink: 0;
}

/* ========================= */
/* Window Type Cards         */
/* ========================= */
.card-option--window-type {
  width: 160px;
  padding: 16px;
}
.card-option--window-type img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}
.card-option--window-type .card-label {
  font-size: 13px;
  font-weight: 600;
}

/* ========================= */
/* Imposte / Allege Cards    */
/* ========================= */
.cards-grid--imposte {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.card-option--imposte {
  width: 155px;
  padding: 0;
  overflow: hidden;
}
.card-option--imposte .card-img {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.card-option--imposte .card-img img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.card-option--imposte .card-label {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px 2px;
}
.card-option--imposte .card-price {
  background: var(--cfg-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px;
  text-align: center;
  margin-top: 4px;
}

/* ========================= */
/* Opening Type Cards        */
/* ========================= */
.config-wrapper .section-subheader {
  background: #eef2f7;
  padding: 10px 18px;
  font-size: 14px;
  font-style: italic;
  color: var(--cfg-blue);
  margin-bottom: 16px;
  border-radius: var(--cfg-radius);
}
.cards-grid--opening {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.card-option--opening {
  padding: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-option--opening img {
  width: 100%;
  height: 90px;
  object-fit: contain;
}

/* ========================= */
/* Dimensions Section        */
/* ========================= */
.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dimension-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dimension-field label span {
  font-weight: 400;
  color: var(--cfg-text-light);
}
.dimension-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dimension-input-wrap input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: var(--cfg-border);
  border-radius: 2px;
  outline: none;
}
.dimension-input-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--cfg-blue);
  border-radius: 50%;
  cursor: pointer;
}
.dimension-input-wrap .dim-min,
.dimension-input-wrap .dim-max {
  font-size: 13px;
  color: var(--cfg-text-light);
  min-width: 40px;
}
.dimension-input-wrap .dim-value {
  border: 1px solid var(--cfg-border);
  border-radius: var(--cfg-radius);
  padding: 8px 12px;
  font-size: 14px;
  width: 80px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* ========================= */
/* Next Step Button          */
/* ========================= */
.next-step-wrap {
  text-align: center;
  margin-top: 30px;
}
.btn-next-step {
  display: inline-block;
  background: var(--cfg-blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-next-step:hover {
  background: #0d3259;
  color: #fff;
}

/* ========================= */
/* Responsive                */
/* ========================= */
@media (max-width: 1024px) {
  .config-wrapper {
    flex-direction: column;
  }
  .config-left {
    width: 100%;
    min-width: unset;
    position: static;
  }
  .cards-grid--gamme {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid--opening {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .config-page-header h1 {
    font-size: 28px;
  }
  .cards-grid--gamme {
    grid-template-columns: 1fr;
  }
  .cards-grid--opening {
    grid-template-columns: repeat(3, 1fr);
  }
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
  .step-item {
    font-size: 12px;
    padding: 10px 14px 10px 24px;
  }
  .card-option--material {
    width: calc(50% - 7px);
  }
  .card-option--imposte {
    width: calc(50% - 7px);
  }
}
