.sondage-page {
  background: #fff;
  color: #092030;
  padding: 8px;
    padding-bottom: 50px;
}

.sondage-shell {
  background: #fff;
  border: 4px solid #ef424b;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 35% 65%;
  margin: 0 auto;
  max-width: 1048px;
  min-height: 405px;
  overflow: hidden;
}

.sondage-media {
  background: #f1f1f1;
  min-height: 405px;
}

.sondage-hero {
    display: block;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    width: 100%;
}

.sondage-form,
.sondage-ended {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.sondage-form {
    padding: 24px 28px 0;
    position: relative;
}

.sondage-ended {
  justify-content: center;
  padding: 32px;
}

.sondage-step-count {
    color: #111;
    font-size: 14px;
    margin-bottom: 9px;
}

.sondage-progress {
  background: #e7e7e7;
  border-radius: 999px;
  height: 9px;
  margin-bottom: 16px;
  overflow: hidden;
  width: 100%;
}

.sondage-progress span {
  background: #ef424b;
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 25%;
}

.sondage-step {
  flex: 1 1 auto;
}

.sondage-step h2 {
    color: #ef424b;
    font-size: 28px;
    line-height: 1.08;
    margin: 0 0 10px;
    font-weight: 600;
}

.sondage-step h3, .sondage-final-copy, .sondage-question legend {
    color: #092030;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.22;
}

.sondage-step h3 {
  margin: 16px 0 13px;
}

.sondage-final-copy {
  margin: 0 0 20px;
  max-width: 620px;
}

.sondage-question {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.sondage-question legend {
  margin: 0 0 12px;
  padding: 0;
}

.sondage-form input[type='text'],
.sondage-form input[type='email'],
.sondage-form select,
.sondage-form textarea {
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #f0f0f0;
  box-sizing: border-box;
  color: #092030;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  padding: 10px 14px;
  width: 100%;
}

.sondage-form textarea {
  height: auto;
  min-height: 86px;
}

.sondage-form input::placeholder,
.sondage-form textarea::placeholder {
  color: #858585;
  opacity: 1;
}

.sondage-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.sondage-options {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.sondage-check {
    align-items: center;
    color: #858585;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    line-height: 1.25;
}

.sondage-check input {
  appearance: none;
  background: #fff;
  border: 2px solid #d6d6d6;
  flex: 0 0 auto;
  height: 18px;
  margin: 0;
  width: 18px;
}

.sondage-check input[type='radio'] {
  border-radius: 50%;
}

.sondage-check input[type='checkbox'] {
  border-radius: 2px;
}

.sondage-check input:checked {
  background: radial-gradient(circle at center, #ef424b 0 42%, transparent 46%);
  border-color: #ef424b;
}

.sondage-check input[type='checkbox']:checked {
  background: #ef424b;
  box-shadow: inset 0 0 0 3px #fff;
}

.sondage-check--small {
  display: flex;
  font-size: 13px;
  font-weight: 500;
  margin: 7px 0 0;
}

.sondage-actions {
  align-items: center;
  background: #f3f3f3;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 10px -28px 0;
  min-height: 76px;
  padding: 14px 20px 14px 28px;
}

.sondage-button {
    align-items: center;
    background: #ef424b;
    border: 2px solid #ef424b;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 600;
    gap: 14px;
    justify-content: center;
    min-height: 44px;
    min-width: 186px;
    padding: 10px 18px;
    text-decoration: none;
}

.sondage-button--ghost {
  background: #fff;
  border-color: #ff9aa0;
  color: #ff9aa0;
}

.sondage-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sondage-message {
    font-size: 13px;
    margin-top: 10px;
    position: absolute;
    top: -5px;
    right: 10px;
    border: 2px solid transparent;
    padding: 5px;
    border-radius: 5px;
}

.sondage-message[data-type='error'] {
    color: #b51d27;
    font-weight: 500;
border: 2px solid #b51d27;
}

.sondage-success {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.sondage-success h2 {
  color: #ef424b;
}

.sondage-hp {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 820px) {
  .sondage-shell {
    grid-template-columns: 1fr;
  }

  .sondage-media,
  .sondage-hero {
    min-height: 230px;
  }

  .sondage-form {
    padding: 22px 20px 0;
  }

  .sondage-grid {
    grid-template-columns: 1fr;
  }

  .sondage-actions {
    align-items: stretch;
    flex-direction: column;
    margin-left: -20px;
    margin-right: -20px;
    padding: 16px 20px;
  }

  .sondage-button {
    width: 100%;
  }
}
