:root {
  color-scheme: dark;
  font:
    17px/1.6 system-ui,
    sans-serif;
  color: #f3ecdf;
  background: #14251c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  max-width: 900px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #526153;
}
a {
  color: #e6c496;
}
header a,
main > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* Paragraphe fait seulement de liens (carnet, passeport, compte) : assez haut pour le doigt. */
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
h1 {
  font:
    2.8rem/1.1 Georgia,
    serif;
  margin: 16px 0;
}
h2 {
  font:
    1.6rem Georgia,
    serif;
}
.eyebrow {
  color: #e6c496;
}
section {
  background: #203429;
  border: 1px solid #526153;
  padding: 24px;
  border-radius: 16px;
  margin: 24px 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
label {
  display: block;
}
select,
input:not([type="checkbox"]),
textarea {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #8b9a8d;
  border-radius: 6px;
  font: inherit;
  color: #f3ecdf;
  background: #14251c;
}
.confirmation {
  margin: 20px 0;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #e6c496;
  color: #14251c;
  background: #e6c496;
  font: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.notice {
  border-left: 3px solid #e6c496;
  padding-left: 16px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  padding: 16px;
  background: #14251c;
}
@media (max-width: 480px) {
  header,
  main {
    padding: 16px;
  }
  section {
    padding: 16px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .actions button {
    width: 100%;
  }
}

textarea {
  resize: vertical;
}
fieldset {
  min-width: 0;
  border: 1px solid #8b9a8d;
  border-radius: 8px;
  margin-top: 24px;
}
legend {
  max-width: 100%;
  padding: 0 8px;
}
#clear-message {
  margin-top: 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  z-index: 2;
  color: #14251c;
  background: #e6c496;
}
.skip-link:focus {
  top: 12px;
}
button,
select,
input,
textarea {
  max-width: 100%;
}
button {
  overflow-wrap: anywhere;
}

[aria-labelledby="contact-title"] .fields > label:last-child {
  grid-column: 1 / -1;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #e6c496;
  border-radius: 8px;
  color: #14251c;
  background: #e6c496;
  text-decoration: none;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .actions .action-link {
    width: 100%;
    justify-content: center;
  }
}
