:root {
  --ivory: #273d3c;
  --muted: #596b65;
  --copper: #145f60;
  --line: #d5ddd5;
  --glass: #fffaf3;
}
body {
  background: #f7f4ec !important;
  color: #273d3c;
  background-image: none !important;
}
.shell {
  max-width: 1260px;
  margin: auto;
}
.topbar img,
.progress img {
  background: #302735;
  border-radius: 14px;
  padding: 10px 16px;
  box-sizing: content-box;
}
.hero h1,
.question h1,
.complete h1 {
  color: #402d3e;
  letter-spacing: -0.045em;
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 66px);
}
.primary {
  background: #145f60;
  color: #fff;
  border: 1px solid #145f60;
  box-shadow: none;
}
.primary:hover {
  background: #0b484a;
}
.secondary,
.choice {
  background: #fff;
  color: #273d3c;
  border-color: #d5ddd5;
}
.choice.selected {
  background: #e4f0e9;
  border-color: #145f60;
}
.field input,
.field textarea,
.summary textarea {
  background: #fff;
  color: #273d3c;
  border: 1px solid #ccd8d0;
  box-sizing: border-box;
}
.summary textarea {
  display: block;
  width: 100%;
  min-height: 200px;
  border-radius: 14px;
  padding: 16px;
  font: inherit;
  line-height: 1.65;
  resize: vertical;
}
.summary,
.next-card {
  background: #fff;
  border-color: #d5ddd5;
  color: #273d3c;
}
.error {
  color: #a33931;
}
.device-stage {
  opacity: 0.88;
}
.question {
  gap: 40px;
}
.progress-track {
  background: #dde6de;
}
.progress-track i {
  background: #145f60;
}
.contact-next {
  max-width: 600px;
}
.next-card {
  min-height: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a85c35;
  outline-offset: 4px;
}
.boot {
  color: #273d3c;
}
@media (max-width: 800px) {
  .device-stage {
    display: none;
  }
  .hero,
  .question {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 35px;
  }
  .question {
    max-width: 680px;
  }
  .hero-copy {
    padding: 0 10px;
  }
  .complete {
    padding-top: 55px;
  }
  .progress img {
    width: 105px;
  }
  .topbar img {
    width: 140px;
  }
}
@media (max-width: 390px) {
  .hero h1,
  .question h1 {
    font-size: 36px;
  }
  .topbar img {
    width: 125px;
  }
  .progress img {
    width: 85px;
  }
  .choices {
    grid-template-columns: 1fr;
  }
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: #40584f;
}
.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccd8d0;
  border-radius: 12px;
  background: #fff;
  color: #293f3d;
  font: inherit;
  box-sizing: border-box;
}
.contact-field textarea {
  min-height: 125px;
  resize: vertical;
}
.contact-question {
  grid-template-columns: minmax(0, 1.6fr) minmax(200px, 0.7fr);
  align-items: start;
}
.contact-question h1 {
  font-size: clamp(36px, 4vw, 54px);
}
.contact-fields:has(textarea) {
  grid-template-columns: 1fr;
}
.contact-side-note {
  padding: 35px;
  background: #e7eee5;
  border-radius: 22px;
  line-height: 1.7;
  color: #40584f;
  margin-top: 80px;
}
.contact-side-note > span {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.contact-side-note a,
.contact-mail-option a {
  color: #155d5c;
}
.contact-intro-card {
  padding: 45px;
  background: #e7eee5;
  border-radius: 28px;
  color: #40584f;
}
.contact-intro-card span {
  display: block;
  border-bottom: 1px solid #cbd8cb;
  padding: 22px 0;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.contact-intro-card p {
  line-height: 1.6;
  font-family: Georgia, serif;
  font-size: 27px;
}
.contact-mail-option {
  font-size: 14px !important;
  margin-top: 25px;
}
.contact-hero {
  min-height: 70vh;
}
@media (max-width: 800px) {
  .contact-question,
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .contact-side-note,
  .contact-intro-card {
    display: none;
  }
  .contact-question {
    padding-top: 30px;
  }
  .contact-field {
    gap: 5px;
  }
  .contact-fields {
    gap: 14px;
  }
}

:root {
  color-scheme: light;
}
html {
  background: #f7f4ec;
}
.progress,
.topbar {
  background: transparent !important;
  color: #596b65;
}
/* Palette commune à la vitrine, sans changer les URL de campagne. */
html,
body {
  background: #f2eadc;
}
.contact-side-note,
.contact-intro-card {
  background: #e5dfd1;
}
.complete .complete-inner {
  border-top: 4px solid #b37e59;
}
.final-actions {
  flex-wrap: wrap;
}
/* Même langage visuel que la vitrine et le Bureau. */
body {
  background: var(--atelys-ivory) !important;
  color: var(--atelys-ink);
  font-family: var(--atelys-sans);
}
.hero h1,
.question h1,
.complete h1 {
  color: var(--atelys-primary);
  font-family: var(--atelys-serif);
  font-weight: 400;
}
.topbar,
.progress {
  background: var(--atelys-primary) !important;
  color: #e7dfe5 !important;
  border-radius: 18px;
  padding: 16px 24px;
}
.topbar img,
.progress img {
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.hero {
  gap: 6%;
  padding-bottom: 48px;
}
.primary {
  background: var(--atelys-primary);
  border-color: var(--atelys-primary);
  color: var(--atelys-paper);
  border-radius: 12px;
  box-shadow: none;
}
.primary:hover {
  background: #514357;
}
.secondary,
.choice {
  background: var(--atelys-paper);
  color: var(--atelys-ink);
  border-color: var(--atelys-line);
  box-shadow: none;
}
.choice.selected {
  background: #e8dedf;
  border-color: #7d657b;
  color: var(--atelys-primary);
}
.contact-intro-card {
  background: linear-gradient(125deg, #174949, #30635a);
  color: #f2eadc;
  box-shadow: 10px 12px 0 #123f420b;
  border: 1px solid #71616d;
  border-radius: 24px;
}
.contact-intro-card span {
  border-color: #ffffff24;
  color: #e2b58b;
}
.contact-side-note {
  background: #e9dfde;
  color: #5d4b59;
  border: 1px solid #d4c4c6;
  border-radius: 20px;
}
.contact-side-note a,
.contact-mail-option a {
  color: #365e53;
}
.question-copy {
  background: var(--atelys-paper);
  border: 1px solid var(--atelys-line);
  padding: 32px;
  border-radius: 24px;
}
.contact-field input,
.contact-field textarea,
.contact-field select,
.field input,
.field textarea,
.summary textarea {
  background: #fffcf5;
  color: var(--atelys-ink);
  border: 1px solid #cbbfb6;
  border-radius: 12px;
}
.contact-field,
.field label {
  color: #5d4b59;
}
.summary,
.next-card {
  background: var(--atelys-paper);
  color: var(--atelys-ink);
  border-color: var(--atelys-line);
  box-shadow: none;
}
.complete-inner {
  background: var(--atelys-paper);
  border: 1px solid var(--atelys-line);
  border-top: 3px solid #b39272 !important;
  border-radius: 24px;
  padding: 40px;
}
.complete h1 {
  line-height: 1.1;
}
.progress-track {
  background: #6d616f;
}
.progress-track i {
  background: var(--atelys-copper);
}
.device-stage {
  --ivory: #f2eadc;
  --muted: #d7ccc8;
  --copper: #e2b58b;
  --violet: #c6b4c3;
  opacity: 1;
}
.device,
.software,
.mini-ui {
  background: #123f42;
}
.device-orbit {
  display: none;
}
.device {
  box-shadow: 0 18px 40px #123f4220;
}
.device,
.device-stage {
  animation: none;
}
.device-stage:before,
.device-stage:after {
  display: none;
}
@media (max-width: 800px) {
  .topbar,
  .progress {
    padding: 14px 16px;
    border-radius: 14px;
  }
  .question-copy {
    padding: 24px 20px;
  }
  .complete-inner {
    padding: 28px 20px;
  }
  .question {
    gap: 20px;
  }
  .contact-question {
    padding-top: 24px;
  }
}
@media (max-width: 390px) {
  .topbar span {
    font-size: 10px;
  }
  .question-copy {
    padding: 22px 16px;
  }
  .hero h1,
  .question h1 {
    font-size: 34px;
  }
  .complete-inner {
    padding: 24px 16px;
  }
}
.topbar span,
.progress small {
  color: #e7dfe5 !important;
}
.contact-intro-card p {
  color: #f2eadc;
}
.contact-side-note p {
  color: #5d4b59;
}
/* Images d’ambiance : aucune image derrière les champs du parcours. */
.contact-editorial {
  margin: 0 0 15px;
}
.contact-editorial img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 14px;
}
.contact-editorial figcaption {
  font-size: 10px;
  color: #dce6d8;
  margin-top: 8px;
}
.contact-intro-card {
  padding: 26px;
  background: linear-gradient(125deg, #174949, #30635a);
}
.contact-intro-card > span {
  padding: 14px 0;
}
.contact-intro-card > p {
  font-size: 24px;
  margin-bottom: 0;
}
.diagnostic-artwork {
  margin: 0;
  align-self: center;
  min-width: 0;
}
.diagnostic-artwork img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 24px;
  box-shadow: 0 16px 35px #123f4215;
}
.diagnostic-artwork figcaption {
  font-size: 10px;
  color: #586860;
  margin-top: 12px;
}
.diagnostic-artwork.is-question img {
  height: 350px;
}
@media (max-width: 800px) {
  .contact-intro-card {
    display: block;
    max-width: 600px;
    padding: 20px;
  }
  .contact-intro-card > span,
  .contact-intro-card > p {
    display: none;
  }
  .contact-editorial {
    margin: 0;
  }
  .contact-editorial img {
    height: 210px;
  }
  .contact-hero {
    gap: 28px;
  }
  .diagnostic-artwork.is-question {
    display: none;
  }
  .diagnostic-artwork img {
    height: 230px;
  }
  .diagnostic-artwork {
    max-width: 600px;
    width: 100%;
    margin: auto;
  }
}

.primary, .secondary, .choice, .question-actions .text-button, .discovery-mail-button {
  border-radius: 8px;
  min-height: 44px;
  box-shadow: 0 2px 0 #49354c38;
}
.question-actions .text-button, .discovery-mail-button {
  padding: 8px 14px;
  border: 1px solid #a58b9e;
  background: #f4eaf0;
  color: #412e44;
}
.discovery-mail-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
}
.discovery-mail-address {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
:is(.primary,.secondary,.choice,.text-button,.discovery-mail-button):focus-visible {
  outline: 2px solid #8b5031;
  outline-offset: 3px;
}
.primary:disabled { box-shadow: none; }
