.proposal-page {
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 10px;
}

.proposal-page .topbar.app-header {
  margin-bottom: 18px;
}

.proposal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 4px solid var(--wood);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 225, .98), rgba(238, 222, 171, .98));
  box-shadow: 0 6px 0 rgba(92, 52, 25, .22);
}

.proposal-hero-copy {
  max-width: 760px;
}

.proposal-kicker,
.proposal-section-label {
  margin: 0 0 7px;
  color: #8f341c;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.proposal-hero h2 {
  margin: 0;
  color: #3b1c0e;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.proposal-hero p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.58;
}

.proposal-hero-mark {
  display: grid;
  place-items: center;
  width: 174px;
  aspect-ratio: 3 / 2;
  padding: 12px;
  border: 4px solid #7c3f19;
  border-radius: 14px;
  background:
    linear-gradient(rgba(45, 111, 49, .84), rgba(45, 111, 49, .84)),
    linear-gradient(135deg, #9fca75, #4f8f43);
  color: #fff9e8;
  text-align: center;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.22), 0 4px 0 rgba(70, 37, 18, .18);
}

.proposal-hero-mark span {
  display: block;
  font-size: 2.45rem;
  font-weight: 950;
  line-height: 1;
}

.proposal-hero-mark small {
  display: block;
  margin-top: 6px;
  font-weight: 850;
}

.proposal-message {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 15px 18px;
  border: 3px solid;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(61, 34, 17, .14);
}

.proposal-message strong {
  font-size: 1.08rem;
}

.proposal-message ul {
  margin: 5px 0 0;
  padding-left: 21px;
}

.proposal-message-success {
  border-color: #2c7638;
  background: #e3f4d9;
  color: #214f29;
}

.proposal-message-error {
  border-color: #a73d28;
  background: #ffe5dc;
  color: #752615;
}

.proposal-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}

.proposal-guidance {
  display: grid;
  gap: 16px;
}

.proposal-info-card,
.proposal-form-card {
  border: 3px solid var(--wood);
  border-radius: 16px;
  background: rgba(255, 249, 226, .97);
  box-shadow: 0 5px 0 rgba(83, 45, 21, .18);
}

.proposal-info-card {
  padding: 20px;
}

.proposal-info-card h2,
.proposal-form-card h2 {
  margin: 0;
  color: #3a1b0d;
  font-size: 1.38rem;
  line-height: 1.18;
}

.proposal-info-card p {
  line-height: 1.55;
}

.proposal-check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.proposal-check-list li {
  position: relative;
  padding-left: 29px;
  line-height: 1.42;
}

.proposal-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  width: 17px;
  height: 17px;
  border: 2px solid #2d7c3a;
  border-radius: 50%;
  background: #e4f3d6;
}

.proposal-check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: .34em;
  width: 7px;
  height: 4px;
  border-left: 2px solid #2d7c3a;
  border-bottom: 2px solid #2d7c3a;
  transform: rotate(-45deg);
}

.proposal-examples-card {
  padding: 18px;
  background: rgba(255, 249, 226, .98);
}

.proposal-examples-intro {
  margin: 12px 0 14px;
  color: #5d4030;
  font-size: .93rem;
}

.proposal-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.proposal-example {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 2px solid #7c3f19;
  border-radius: 10px;
  background: #3d281c;
  box-shadow: 0 2px 0 rgba(69, 36, 17, .16);
}

.proposal-example-main {
  grid-column: 1 / -1;
}

.proposal-example img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}

.proposal-example:hover img {
  transform: scale(1.025);
}

.proposal-example figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px 9px 7px;
  background: linear-gradient(transparent, rgba(31, 18, 11, .9));
  color: #fffbea;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

.proposal-tech-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid rgba(124, 63, 25, .18);
}

.proposal-tech-specs span {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 9px 10px;
  border: 1px solid #c9b36e;
  border-radius: 9px;
  background: #fff8df;
  text-align: center;
}

.proposal-tech-specs strong {
  display: block;
  color: #442212;
  font-size: .9rem;
  line-height: 1.2;
}

.proposal-tech-specs small {
  display: block;
  margin-top: 3px;
  color: #6f5344;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.2;
}

.proposal-upload-help {
  margin: 9px 2px 0;
}

.proposal-review-card {
  border-color: #2f7138;
  background: rgba(230, 243, 214, .97);
}

.proposal-form-card {
  padding: clamp(18px, 3vw, 28px);
}

.proposal-form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(124, 63, 25, .22);
}

.proposal-form-heading > p {
  margin: 0;
  color: #6a4938;
  font-size: .83rem;
  font-weight: 800;
}

.proposal-form-heading > p span,
.required-marker {
  color: #a6321e;
}

.proposal-fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.proposal-fieldset legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 2px solid rgba(124, 63, 25, .18);
  color: #4b2816;
  font-size: 1.08rem;
  font-weight: 950;
}

.proposal-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proposal-field {
  min-width: 0;
}

.proposal-field-wide {
  grid-column: 1 / -1;
}

.proposal-field label:not(.proposal-file-drop) {
  display: block;
  margin-bottom: 6px;
  color: #3d2011;
  font-weight: 900;
}

.proposal-field input,
.proposal-field select,
.proposal-field textarea {
  width: 100%;
  margin: 0;
  padding: 12px 13px;
  border: 2px solid #8d4a27;
  border-radius: 9px;
  background: #fff;
  color: #25160e;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(50, 27, 13, .08);
}

.proposal-field textarea {
  resize: vertical;
  min-height: 112px;
}

.proposal-field input:focus,
.proposal-field select:focus,
.proposal-field textarea:focus {
  border-color: #2b7f3b;
  outline: 3px solid rgba(43, 127, 59, .18);
}

.proposal-field-help,
.proposal-character-count {
  margin: 7px 0 0;
  color: #6a4a39;
  font-size: .86rem;
  line-height: 1.4;
}

.proposal-character-count {
  text-align: right;
}

.proposal-new-race {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border: 2px dashed #ad6a36;
  border-radius: 11px;
  background: #fff4d7;
}

.proposal-new-race.is-visible {
  display: block;
}

.proposal-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .78fr);
  gap: 16px;
}

.proposal-file-drop {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 22px;
  border: 3px dashed #8d4a27;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #f7edc9);
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.proposal-file-drop:hover,
.proposal-file-drop:focus-within,
.proposal-file-drop.is-dragover {
  border-color: #2f7c3c;
  background: linear-gradient(180deg, #f7ffe9, #e4f1cc);
  transform: translateY(-1px);
}

.proposal-file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.proposal-file-title {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid #2e7639;
  border-radius: 9px;
  background: linear-gradient(180deg, #4aa950, #2f843a);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(34, 87, 42, .28);
}

.proposal-file-subtitle {
  margin-top: 14px;
  color: #5f402f;
  font-size: .9rem;
  font-weight: 750;
}

.proposal-file-name {
  width: 100%;
  margin-top: 9px;
  overflow: hidden;
  color: #3f2517;
  font-size: .88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proposal-preview {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;
  border: 3px solid #7c3f19;
  border-radius: 14px;
  background: #2d1d15;
}

.proposal-preview img,
.proposal-preview-placeholder {
  grid-area: 1 / 1;
}

.proposal-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #2d1d15;
}

.proposal-preview [hidden] {
  display: none !important;
}

.proposal-preview-placeholder {
  display: grid;
  place-items: center;
  gap: 5px;
  width: calc(100% - 28px);
  min-height: calc(100% - 28px);
  padding: 14px;
  border: 2px solid rgba(255, 249, 226, .65);
  border-radius: 10px;
  color: #fff8df;
  text-align: center;
}

.proposal-preview-placeholder span {
  font-size: 1.35rem;
  font-weight: 950;
}

.proposal-preview-placeholder small {
  max-width: 170px;
  line-height: 1.35;
}

.proposal-file-checks {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 13px;
  border: 2px solid rgba(124, 63, 25, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
}

.proposal-file-checks div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #5e493d;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.35;
}

.proposal-file-checks div > span {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 2px solid #9d8c80;
  border-radius: 50%;
  background: #fff;
}

.proposal-file-checks div.is-valid {
  color: #276331;
}

.proposal-file-checks div.is-valid > span {
  border-color: #2f7f3c;
  background: #4fa653;
}

.proposal-file-checks div.is-invalid {
  color: #9a301d;
}

.proposal-file-checks div.is-invalid > span {
  border-color: #a63d29;
  background: #d85a43;
}

.proposal-file-checks div.is-warning {
  color: #8a5a13;
}

.proposal-file-checks div.is-warning > span {
  border-color: #b87917;
  background: #e7a935;
}

.proposal-rights-box {
  margin-top: 24px;
  padding: 16px;
  border: 2px solid #9b6a2b;
  border-radius: 12px;
  background: #fff2c9;
}

.proposal-rights-box label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: #3d2516;
  font-weight: 850;
  line-height: 1.48;
  cursor: pointer;
}

.proposal-rights-box input[type="checkbox"] {
  width: 21px;
  height: 21px;
  margin: 2px 0 0;
  accent-color: #2f843a;
}

.proposal-rights-box p {
  margin: 10px 0 0 32px;
  color: #6a4a39;
  font-size: .84rem;
  line-height: 1.4;
}

.proposal-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.proposal-submit {
  min-width: 225px;
  padding: 14px 20px;
  border: 3px solid #246b31;
  border-radius: 10px;
  background: linear-gradient(180deg, #50ae55, #2f843a);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(31, 94, 42, .32);
}

.proposal-submit:hover,
.proposal-submit:focus-visible {
  background: linear-gradient(180deg, #5abb60, #338d3f);
  outline: 3px solid rgba(47, 132, 58, .2);
}

.proposal-submit:disabled {
  border-color: #7d7d72;
  background: #9b9b8f;
  cursor: wait;
  box-shadow: none;
  transform: none;
}

.proposal-submit-row p {
  margin: 0;
  color: #654737;
  font-size: .86rem;
  font-weight: 800;
  text-align: right;
}

.proposal-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .proposal-layout {
    grid-template-columns: 1fr;
  }

  .proposal-guidance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proposal-examples-card,
  .proposal-review-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .proposal-page {
    width: min(100% - 16px, 1180px);
    padding-top: 8px;
  }

  .proposal-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 21px 18px;
    border-width: 3px;
    border-radius: 15px;
  }

  .proposal-hero-mark {
    width: min(180px, 66%);
    justify-self: center;
  }

  .proposal-guidance,
  .proposal-fields-grid,
  .proposal-upload-grid,
  .proposal-file-checks {
    grid-template-columns: 1fr;
  }

  .proposal-review-card,
  .proposal-field-wide,
  .proposal-file-checks {
    grid-column: auto;
  }

  .proposal-example figcaption {
    font-size: .82rem;
  }

  .proposal-info-card,
  .proposal-form-card {
    border-width: 2px;
    border-radius: 14px;
  }

  .proposal-form-card {
    padding: 17px 14px;
  }

  .proposal-form-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .proposal-file-drop {
    min-height: 185px;
  }

  .proposal-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .proposal-submit {
    width: 100%;
  }

  .proposal-submit-row p {
    text-align: center;
  }

  .proposal-rights-box p {
    margin-left: 0;
  }
}

@media (max-width: 950px) and (max-height: 620px) and (orientation: landscape) {
  .proposal-page {
    width: min(100% - 18px, 1180px);
    padding-top: 8px;
  }

  .proposal-hero {
    padding: 16px 20px;
  }

  .proposal-hero-mark {
    width: 140px;
  }

  .proposal-layout {
    grid-template-columns: minmax(230px, .7fr) minmax(0, 1.45fr);
  }

  .proposal-guidance {
    grid-template-columns: 1fr;
  }

  .proposal-review-card {
    grid-column: auto;
  }
}

/* v1.21.80 — nouvel envoi avec les coordonnées du contributeur conservées */
.proposal-message-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 7px;
}

.proposal-message-actions small {
  color: #3f6845;
  font-size: .82rem;
  line-height: 1.35;
}

.proposal-repeat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 2px solid #276c34;
  border-radius: 8px;
  background: #fffdf1;
  color: #215c2c;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(33, 92, 44, .18);
}

.proposal-repeat-link:hover,
.proposal-repeat-link:focus-visible {
  background: #f3ffe9;
  outline: 3px solid rgba(47, 132, 58, .2);
}

.proposal-saved-contributor {
  display: grid;
  gap: 3px;
  margin: -2px 0 15px;
  padding: 11px 13px;
  border-left: 4px solid #2f7c3c;
  border-radius: 0 9px 9px 0;
  background: #e8f3de;
  color: #315536;
}

.proposal-saved-contributor strong {
  font-size: .92rem;
}

.proposal-saved-contributor span {
  font-size: .84rem;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .proposal-message-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proposal-repeat-link {
    width: 100%;
    text-align: center;
  }
}
