:root {
  --red: #DA291C;
  --orange: #F58220;
  --green: #25834A;
  --ink: #252525;
  --muted: #77736D;
  --paper: #F4F2EC;
  --white: #FFFDF9;
  --line: #DDD9D0;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  padding: 28px 16px 55px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.page { width: 100%; max-width: 760px; margin: auto; }

.brand-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 23px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  position: relative; display: grid; place-items: center;
  width: 43px; height: 39px; background: var(--red); color: var(--red);
}
.brand-logo::before {
  content: "K"; display: grid; place-items: center;
  width: 29px; height: 29px; border-radius: 50%; background: white;
  font-size: 20px; font-weight: 900;
}
.brand-logo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 4px; background: var(--orange);
}
.brand-name { font-size: 20px; font-weight: 900; letter-spacing: -1px; }
.brand-caption {
  color: var(--muted); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.header-label {
  color: var(--red); font-size: 10px; font-weight: 800;
  letter-spacing: 1px; text-align: right; text-transform: uppercase;
}

.cover {
  width: 100%; height: 245px; overflow: hidden;
  background: #3F3932; border-radius: 8px 8px 0 0;
  border-bottom: 5px solid var(--red);
}
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.intro {
  padding: 28px 30px 27px; margin-bottom: 17px;
  background: var(--white); border: 1px solid var(--line); border-top: none;
}
.intro-label {
  color: var(--red); font-size: 10px; font-weight: 900;
  letter-spacing: 1.7px; text-transform: uppercase;
}
.intro h1 {
  margin-top: 9px; font-size: clamp(27px, 5vw, 38px);
  font-weight: 900; line-height: 1.12; letter-spacing: -1.2px;
}
.intro p { max-width: 570px; margin-top: 12px; color: #66635D; font-size: 13px; line-height: 1.8; }
.red-rule { width: 42px; height: 4px; margin-top: 19px; background: var(--red); }

.form-card {
  margin-bottom: 15px; padding: 25px 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 7px;
  transition: border-color .15s ease;
}
.form-card:focus-within { border-color: #BBAFA1; }
.question-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 20px; }
.question-number {
  flex-shrink: 0; display: grid; place-items: center;
  width: 30px; height: 30px; background: var(--red); color: white;
  font-size: 11px; font-weight: 900;
}
.question-title { display: block; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.5; }
.question-description { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.required { color: var(--red); font-weight: 900; }
.field-label {
  display: block; margin-bottom: 8px; color: #605D57;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
}
.text-input, .textarea {
  display: block; width: 100%; padding: 14px 15px;
  background: #FAF9F5; border: 1px solid #D5D1C8; border-radius: 4px;
  color: var(--ink); font-size: 13px; outline: none;
}
.text-input { height: 49px; }
.textarea { min-height: 115px; resize: vertical; line-height: 1.7; }
.text-input:focus, .textarea:focus { background: white; border-color: var(--red); }
.text-input::placeholder, .textarea::placeholder { color: #AAA69D; }
.field-footer { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 10px; }
fieldset { min-width: 0; border: none; }
fieldset legend { width: 100%; }
.option-list { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 10px 14px; border: 1px solid var(--line); background: #FAF9F5;
  border-radius: 4px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.option:hover { background: #F3F0E9; }
.option:has(input:checked) { border-color: var(--red); background: #FFF5F1; }
.option input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }
.option span { color: #383631; font-size: 12px; font-weight: 600; line-height: 1.5; }
.rating-list .option { min-height: 49px; }
.rating-number {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  background: #ECE9E1; color: #625E55; font-size: 10px; font-weight: 900;
}
.option:has(input:checked) .rating-number { background: var(--red); color: white; }
.two-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-options .option { min-height: 64px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 21px; }
.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 54px; min-width: 210px; padding: 0 23px;
  border: 1px solid #1B6938; border-radius: 5px;
  background: var(--green); color: white; font-size: 13px; font-weight: 800;
  transition: background .15s ease, opacity .15s ease;
}
.submit-btn:hover { background: #1B6938; }
.submit-btn:disabled { cursor: wait; opacity: .7; }
.submit-arrow { font-size: 17px; }
.reset-btn {
  padding: 11px 0; border: 0; background: transparent;
  color: var(--red); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.reset-btn:hover { text-decoration: underline; }
.footer {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-top: 28px; padding-top: 17px; border-top: 1px solid #D7D3CA;
  color: #77736B; font-size: 10px;
}
.footer strong { color: var(--red); font-size: 11px; letter-spacing: .7px; }

.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 22px;
  display: flex; align-items: flex-start; gap: 12px;
  width: min(420px, calc(100% - 30px)); padding: 15px 17px;
  background: #252525; color: white; border-left: 5px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: .2s ease;
}
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-symbol { color: var(--orange); font-size: 19px; font-weight: 900; }
.toast-content { flex: 1; }
.toast-content strong { display: block; font-size: 12px; }
.toast-content p { margin-top: 3px; color: #DDDAD4; font-size: 11px; line-height: 1.5; }
.toast-close { margin-left: auto; border: 0; background: transparent; color: white; font-size: 20px; }

/* Page de confirmation */
.success-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.success-image { height: 230px; overflow: hidden; background: #514337; border-bottom: 5px solid var(--red); }
.success-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.success-content { padding: 35px 34px 38px; text-align: center; }
.success-icon {
  display: grid; place-items: center; width: 58px; height: 58px;
  margin: 0 auto 20px; border-radius: 50%; background: #E8F2EA;
  color: var(--green); font-size: 30px; font-weight: 800;
}
.success-content .intro-label { margin-bottom: 9px; }
.success-content h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.15; letter-spacing: -1px; }
.success-content p { max-width: 530px; margin: 13px auto 0; color: #66635D; font-size: 13px; line-height: 1.8; }
.success-content .success-lead { color: var(--ink); font-size: 15px; font-weight: 700; }
.success-note { max-width: 500px; margin: 23px auto 0; padding: 13px 16px; background: #F8F6F0; border-left: 4px solid var(--orange); color: #625E55; font-size: 11px; line-height: 1.6; text-align: left; }

@media (max-width: 560px) {
  body { padding: 17px 11px 35px; }
  .brand-header { margin-bottom: 18px; }
  .brand-name { font-size: 18px; }
  .header-label { font-size: 9px; letter-spacing: .4px; }
  .cover { height: 190px; }
  .intro { padding: 23px 19px; }
  .intro h1 { font-size: 29px; }
  .intro p { font-size: 12px; }
  .form-card { padding: 21px 17px; margin-bottom: 12px; }
  .question-heading { gap: 10px; }
  .question-title { font-size: 14px; }
  .option { min-height: 53px; padding: 10px 11px; }
  .two-options { gap: 8px; }
  .two-options .option { min-height: 58px; }
  .actions { flex-direction: row; align-items: center; gap: 10px; }
  .submit-btn { flex: 1 1 auto; min-width: 0; min-height: 51px; gap: 7px; padding: 0 11px; font-size: 12px; }
  .reset-btn { flex: 0 0 auto; padding: 10px 0; font-size: 10px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .success-image { height: 170px; }
  .success-content { padding: 29px 20px 30px; }
  .success-content h1 { font-size: 28px; }
}
@media (max-width: 360px) {
  .actions { gap: 7px; }
  .submit-btn { padding: 0 8px; font-size: 11px; }
  .reset-btn { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
