.sondage-results-section {
  padding: 48px 18px;
}

.sondage-results-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.sondage-result-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(20, 20, 20, 0.12);
  color: #1d1111;
  padding: 26px 26px 24px;
}

.sondage-result-card h2 {
    color: #ef424b;
    font-size: 19px;
    line-height: 1.05;
    margin: 0 0 20px;
    text-align: left;
    min-height: 60px;
}

.sondage-result-list {
  display: grid;
  gap: 16px;
}

.sondage-result-row {
    align-items: center;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sondage-result-bar {
  background: #e6e6e6;
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.sondage-result-bar span {
  background: #ef424b;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.sondage-result-link {
    color: #ef424b;
    display: inline-flex;
    font-size: 14px;
    gap: 5px;
    font-weight: 600;
    margin: 18px 0 20px;
    text-align: center;
    text-decoration: underline;
}

.sondage-result-link img {
    filter: brightness(0) saturate(100%) invert(35%) sepia(83%) saturate(1259%) hue-rotate(327deg) brightness(93%) contrast(102%);
    width: 13px;
    height: auto;
    transform: rotate(-45deg);
}

.sondage-result-gift {
  border-top: 1px solid #dedede;
  padding-top: 18px;
  text-align: center;
}

.sondage-result-gift strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.sondage-result-gift p {
    align-items: center;
    background: #ffd9dc;
    border-radius: 7px;
    font-size: 12px;
    justify-content: flex-start;
    line-height: 1.2;
    margin: 0;
    padding: 12px;
    text-align: left;
    display: grid;
    grid-template-columns: 0.2fr 1.8fr;
    gap: 7px;
    position: relative;
}


.sondage-result-gift p:before {
    content: "";
    background: url(/wp-content/uploads/2026/05/cadeau.png);
    width: 30px;
    height: 30px;
    background-size: cover;
    flex-shrink: 0;
}

.sondage-results-more {
  margin-top: 22px;
  text-align: center;
}

.sondage-results-empty {
  color: #1d1111;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1080px;
  text-align: center;
}

.sondage-list-section {
    padding: 36px 18px;
    position: relative;
}

.sondage-list-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.sondage-list-carousel {
  display: grid;
  gap: 24px;
  grid-auto-columns: calc((100% - 48px) / 3);
  grid-auto-flow: column;
  margin: 0 auto;
  max-width: 1080px;
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sondage-list-carousel::-webkit-scrollbar {
  display: none;
}

.sondage-list-slide {
  scroll-snap-align: start;
}

.sondage-list-slide .sondage-list-card {
  height: 100%;
}

.sondage-carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 0 auto 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.sondage-carousel-button {
    align-items: center;
    cursor: pointer;
    height: 55px;
    width: 55px;
    background: url(/wp-content/uploads/2026/05/fleche.svg);
    border: none;
}

.sondage-carousel-button.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.sondage-carousel-button:first-child {
    transform: scaleX(-1);
}

.sondage-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.sondage-carousel-dot {
  background: #dedede;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 9px;
  padding: 0;
  width: 26px;
}

.sondage-carousel-dot.is-active {
  background: #ef424b;
}

.sondage-list-card {
    background: #fff;
    overflow: hidden;
    border: 4px solid #E54346;
    border-radius: 22px;
}

.sondage-list-card__media {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  color: #ef424b;
  display: flex;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
}

.sondage-list-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sondage-list-card__body {
    padding: 22px;
    text-align: left;
}

.sondage-list-card h2 {
    font-size: 20px;
    line-height: 1.1;
    margin: 0 0 12px;
    min-height: 70px;
}

.sondage-list-card h2 a {
    color: #2B0E10;
    text-decoration: none;
}

.sondage-list-card__gift {
    color: #2B0E10;
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 10px;
    background: rgb(229 67 70 / 20%);
    border-radius: 10px;
    display: flex;
    position: relative;
    line-height: 1.1em;
    padding-right: 25px;
    padding-left: 10px;
    min-height: 45px;
    align-items: center;
    gap: 9px;
}

.sondage-list-card__gift:before {
    content: "";
    background: url(/wp-content/uploads/2026/05/cadeau.png);
    width: 30px;
    height: 30px;
    background-size: cover;
    flex-shrink: 0;
}

.sondage-list-card__deadline {
  background: #fff;
  border-radius: 6px;
  margin: 0 0 12px;
  padding: 10px 0 2px;
}

.sondage-list-card__deadline p {
    color: #2B0E10;
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 8px;
}

.sondage-list-card__progress {
  background: #e7e7e7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.sondage-list-card__progress span {
  background: #ef424b;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.sondage-list-card--active .sondage-list-card__progress span {
  background: #48c96a;
}

.sondage-list-card--ended .sondage-list-card__progress span {
  background: #b99f55;
}

.sondage-list-card__button {
    background: #ef424b;
    border-radius: 15px;
    color: #fff;
    display: inline-flex;
    font-weight: 500;
    padding: 11px 18px;
    text-decoration: none;
    align-items: center;
    width: 100%;
    text-align: center !important;
    justify-content: center;
    border: 2px solid transparent;
}

.sondage-list-card__button:hover {
    color: var(--color-brand);
    text-decoration: underline;
    background: #fff;
    border: 2px solid var(--color-brand);
}

.sondage-results-button {
  border: 1px solid #ef424b;
  border-radius: 999px;
  color: #ef424b;
  display: inline-flex;
  font-weight: 800;
  min-width: 224px;
  justify-content: center;
  padding: 12px 24px;
  text-decoration: none;
}

.sondage-full-results {
  margin: 0 auto;
  max-width: 920px;
  padding: 42px 18px;
}

.sondage-full-results h2 {
  color: #ef424b;
  font-size: 32px;
  margin: 0 0 28px;
}

.sondage-full-result {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(20, 20, 20, 0.08);
  margin-bottom: 20px;
  padding: 24px;
}

.sondage-full-result h3 {
  color: #1d1111;
  font-size: 20px;
  margin: 0 0 18px;
}

.sondage-result-modal-template {
  display: none !important;
}

.sondage-result-modal[hidden] {
  display: none !important;
}

.sondage-result-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 999999;
}

.sondage-result-modal__backdrop {
  background: rgba(0, 27, 36, 0.68);
  inset: 0;
  position: absolute;
}

.sondage-result-modal__dialog {
  background: #fbfaf7;
  border: 3px solid #ef424b;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
  max-height: min(760px, 90vh);
  max-width: 920px;
  overflow: auto;
  padding: 34px 28px 28px;
  position: relative;
  width: min(920px, 100%);
}

.sondage-result-modal__close {
  align-items: center;
  background: #ef424b;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 14px;
  width: 38px;
}

.sondage-result-modal__content .sondage-full-result {
  box-shadow: none;
}

.sondage-result-modal__header {
  margin: 0 44px 22px 0;
}

.sondage-result-modal__header h2 {
  color: #ef424b;
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.sondage-result-modal__header p {
  color: #1d1111;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.sondage-result-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .sondage-results-grid,
  .sondage-list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .sondage-list-carousel {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 700px) {
  .sondage-list-carousel {
    grid-auto-columns: 100%;
  }
}
