/* Devis : styles propres à cette page, sans modifier la feuille commune. */
.dv-page {
  color: #1c1a17;
}

.dv-current[aria-current="page"] {
  color: var(--laiton);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.dv-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) clamp(20px, 5vw, 64px) 80px;
}

.dv-intro {
  max-width: 760px;
  margin-bottom: 44px;
}

.dv-eyebrow {
  margin: 0 0 16px;
  color: var(--laiton);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.dv-title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.dv-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--gris);
  font-size: 18px;
}

.dv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.dv-form {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.dv-step {
  min-width: 0;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--filet);
}

.dv-legend {
  max-width: 100%;
  padding: 0 16px 0 0;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.3;
}

.dv-number {
  margin-right: 10px;
  color: var(--laiton);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .08em;
}

.dv-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.dv-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--laiton);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.35;
}

.dv-choice:has(:checked) {
  background: var(--ivoire-2);
  box-shadow: inset 0 0 0 1px var(--laiton);
}

.dv-choice:hover,
.dv-option:hover {
  background: var(--ivoire-2);
}

.dv-input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--laiton);
  cursor: pointer;
}

.dv-choice-title {
  display: block;
  font-weight: 400;
}

.dv-choice-price {
  display: block;
  margin-top: 4px;
  color: var(--gris);
  font-size: 14px;
}

.dv-pages-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-weight: 400;
}

.dv-pages-value {
  color: var(--laiton);
  white-space: nowrap;
}

.dv-range {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--laiton);
  cursor: pointer;
}

.dv-help {
  margin: 0 0 18px;
  color: var(--gris);
  font-size: 14px;
}

.dv-options {
  display: grid;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid var(--filet);
}

.dv-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid var(--filet);
  cursor: pointer;
  font-size: 15px;
}

.dv-option-note {
  display: block;
  color: var(--gris);
  font-size: 13px;
}

.dv-option-price {
  color: var(--gris);
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
}

.dv-select {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--laiton);
  border-radius: 2px;
  background: var(--ivoire);
  color: inherit;
  font-family: var(--sans);
  font-size: 16px;
}

.dv-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
}

.dv-timing-help {
  margin: 12px 0 0;
  color: var(--gris);
  font-size: 14px;
}

/* coordonnées */
.dv-coordonnees-note {
  max-width: 58ch;
  margin: 0 0 18px;
  color: var(--gris);
  font-size: 15px;
}

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

.dv-field {
  min-width: 0;
  margin: 0;
}

.dv-field--large {
  grid-column: 1 / -1;
}

.dv-text {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--filet);
  border-radius: 2px;
  background: #fbf8f1;
  color: inherit;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
}

.dv-textarea {
  min-height: 96px;
  resize: vertical;
}

.dv-text:focus-visible {
  outline: 2px solid var(--laiton);
  outline-offset: 2px;
  border-color: var(--laiton);
}

.dv-text[aria-invalid="true"] {
  border-color: #8a2d1f;
}

.dv-facultatif {
  color: var(--gris);
  font-size: 13px;
}

.dv-erreur {
  display: block;
  min-height: 0;
  color: #8a2d1f;
  font-size: 13px;
}

.dv-erreur:not(:empty) {
  margin-top: 4px;
}

.dv-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* panneau de résultat */
.dv-result {
  position: sticky;
  top: 108px;
  min-width: 0;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid var(--laiton);
  border-radius: 2px;
  background: var(--ivoire-2);
}

.dv-result-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.dv-price {
  margin: 0 0 20px;
  line-height: 1.2;
}

.dv-price-prefix {
  display: block;
  margin-bottom: 8px;
  color: var(--laiton);
  font-size: 14px;
}

.dv-price-value {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  white-space: nowrap;
}

/* Le € est composé en Jost : le glyphe du sous-ensemble Bodoni est abîmé. */
.dv-devise {
  margin-left: .04em;
  font-family: var(--sans);
  font-size: .46em;
  font-weight: 300;
  vertical-align: .5em;
}

.dv-summary {
  margin: 0;
  font-size: 15px;
}

.dv-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--filet);
}

.dv-summary-row:last-of-type {
  border-bottom: 1px solid var(--filet);
}

.dv-summary-value {
  margin: 0;
  text-align: right;
  font-weight: 400;
}

.dv-explanation {
  margin: 16px 0 0;
  color: var(--gris);
  font-size: 14px;
}

.dv-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.dv-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--laiton);
  border-radius: 2px;
  background: var(--laiton);
  color: var(--ivoire);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.dv-button-secondary {
  background: transparent;
  color: var(--laiton);
}

.dv-button:hover {
  background: var(--ivoire);
  color: var(--laiton);
}

.dv-button[disabled] {
  opacity: .6;
  cursor: progress;
}

.dv-input:focus-visible,
.dv-range:focus-visible,
.dv-select:focus-visible,
.dv-button:focus-visible {
  outline: 2px solid var(--laiton);
  outline-offset: 4px;
}

.dv-statut {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.dv-statut:empty {
  display: none;
}

.dv-statut--erreur {
  color: #8a2d1f;
}

.dv-noscript {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--laiton);
}

@media (max-width: 899px) {
  .dv-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .dv-result {
    position: static;
  }

  .dv-intro {
    margin-bottom: 32px;
  }
}

@media (max-width: 420px) {
  .dv-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .dv-choice {
    min-height: 64px;
  }

  .dv-legend {
    font-size: 23px;
  }

  .dv-option {
    gap: 8px;
  }

  .dv-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .dv-field--large {
    grid-column: auto;
  }
}

/* Le panneau reste utilisable sur un ordinateur dont la fenêtre est basse. */
@media (min-width: 900px) and (max-height: 760px) {
  .dv-result {
    top: 96px;
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    scroll-padding: 12px;
  }
}
