.rwx-root {
  --rwx-border: rgba(0,0,0,.12);
  --rwx-soft: rgba(0,0,0,.045);
  --rwx-text: inherit;
  --rwx-muted: rgba(0,0,0,.62);
  margin: 2rem auto;
  color: var(--rwx-text);
}

.rwx-card {
  border: 1px solid var(--rwx-border);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: #fff;
  box-shadow: 0 20px 45px rgba(0,0,0,.06);
}

.rwx-card h2,
.rwx-card h3 {
  margin-top: 0;
  line-height: 1.15;
}

.rwx-card h2 {
  margin-bottom: 30px;
}

.rwx-copy,
.rwx-notice,
.rwx-credit {
  line-height: 1.65;
}

.rwx-notice {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--rwx-soft);
  font-size: .95rem;
}

.rwx-credit {
  color: var(--rwx-muted);
  font-size: .9rem;
}

.rwx-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--rwx-soft);
  margin-bottom: 1rem;
}

.rwx-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  opacity: .75;
  transition: width .25s ease;
}

.rwx-step,
.rwx-help,
.rwx-message,
.rwx-result-label {
  color: var(--rwx-muted);
}

.rwx-result-label.rwx-editorial-highlight {
  color: inherit;
}

.rwx-result-label.rwx-editorial-highlight p {
  margin: 0;
}


.rwx-answers {
  display: grid;
  gap: .75rem;
  margin: 1.25rem 0;
}

.rwx-answer {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  border: 1px solid var(--rwx-border);
  border-radius: 16px;
  padding: .95rem 1rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.rwx-answer:hover,
.rwx-answer:has(input:checked) {
  background: var(--rwx-soft);
}

.rwx-answer input {
  margin-top: .25rem;
}

.rwx-actions {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
}

.rwx-actions-right {
  justify-content: flex-end;
}

.rwx-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  cursor: pointer;
  background: #111;
  color: #fff;
  font-weight: 600;
}

.rwx-button:hover,
.rwx-button:focus,
.rwx-button:active {
  background: #111;
  color: #fff;
}

.rwx-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.rwx-button-secondary {
  background: var(--rwx-soft);
  color: inherit;
}

.rwx-button-secondary:hover,
.rwx-button-secondary:focus,
.rwx-button-secondary:active {
  background: #111;
  color: #fff;
}

.rwx-field {
  display: grid;
  gap: .4rem;
  margin: 1rem 0;
}

.rwx-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rwx-border);
  border-radius: 14px;
  padding: .85rem 1rem;
  font: inherit;
}

.rwx-newsletter {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  line-height: 1.45;
  margin: 1rem 0;
}

.rwx-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rwx-ad {
  width: 100%;
  text-align: center;
}

.rwx-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.rwx-ad-placeholder {
  border: 1px dashed var(--rwx-border);
  border-radius: 18px;
  padding: 2rem;
  background: var(--rwx-soft);
  color: var(--rwx-muted);
}

.rwx-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.rwx-article {
  border: 1px solid var(--rwx-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.rwx-article img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.rwx-article h5,
.rwx-article p {
  margin: .8rem;
}


.rwx-newsletter-status {
  padding: .85rem 1rem;
  border-radius: 14px;
  background: var(--rwx-soft);
}

.rwx-error,
.rwx-loading {
  padding: 1rem;
  border-radius: 14px;
  background: var(--rwx-soft);
}

@media (max-width: 640px) {
  .rwx-root {
    margin: 1rem auto;
  }

  .rwx-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .rwx-button {
    width: 100%;
  }

  .rwx-articles {
    grid-template-columns: 1fr;
  }
}

/* Admin builder safety when this stylesheet is reused in admin contexts. */
.rwx-builder .regular-text { max-width: 100%; box-sizing: border-box; }

/* Rewell Explorer - blocs éditoriaux riches conservés par TinyMCE. */
.rwx-editorial-intro {
  font-size: 16px;
  line-height: 1.75;
}

.rwx-editorial-intro p {
  margin-bottom: 18px;
}

.rwx-editorial-intro .rwx-lead {
  font-size: 18px;
  line-height: 1.65;
  color: #2b2b2b;
}

.rwx-editorial-highlight {
  background: #fff3f1;
  border-left: 4px solid #df6761;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 26px 0;
}

.rwx-editorial-highlight p:last-child {
  margin-bottom: 0;
}

.rwx-consigne-box {
  background: #df6761;
  color: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  margin: 30px 0;
}

.rwx-consigne-box p {
  margin: 0;
}

.rwx-ethical-box {
  background: #f4f2f1;
  border-radius: 18px;
  padding: 10px 25px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.rwx-ethical-box p {
  margin: 0;
}

.rwx-credit-box {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.rwx-credit-box p {
  margin: 0;
}

.rwx-credit-box a {
  color: #df6761;
  text-decoration: none;
}

.rwx-credit-box a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .rwx-editorial-highlight,
  .rwx-consigne-box {
    padding: 18px;
    border-radius: 14px;
  }

  .rwx-ethical-box {
    padding: 10px 25px;
    margin: 0;
    border-radius: 14px;
  }
}
