/* Navigation et lecture conçues en priorité pour le téléphone. */
body {
  overflow-wrap: break-word;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f7f5edf5;
  backdrop-filter: blur(12px);
}
header nav a {
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
header nav a[aria-current] {
  border-bottom-color: #92773f;
}
.duo {
  margin: 0;
}
.portraits {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform: rotate(-1deg);
}
.portraits img {
  width: 100%;
  display: block;
  border-radius: 2px 30px 2px 2px;
}
.portraits img:last-child {
  transform: rotate(3deg) translateY(18px);
}
.duo-amp {
  position: absolute;
  top: 43%;
  left: 45%;
  z-index: 1;
  background: #f8f1dc;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  text-align: center;
  font: italic 44px Georgia, serif;
  box-shadow: 0 3px 8px #2221;
}
.duo-labels {
  margin-top: 30px;
}
.intro-more {
  max-width: none;
  margin: 18px 0;
}
.intro-more summary {
  font-size: 14px;
  color: #365b49;
  min-height: 44px;
  padding: 10px 0;
}
.site-signature {
  padding: 20px 0 35px;
  font-size: 12px;
  color: #65746b;
}
.site-signature a {
  color: inherit;
}
.question-progress {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 10px;
}
#chapter-name {
  font-weight: 600;
}
#position {
  white-space: nowrap;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 10px;
  margin-bottom: 22px;
  background: #e4e6db;
}
progress::-webkit-progress-bar {
  background: #e4e6db;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: #6b8363;
  border-radius: 10px;
}
.chapter-completion {
  display: block;
  margin-top: 12px;
  color: #486242;
  font-size: 12px;
}
.question-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.question-nav button {
  font-size: 13px;
}
.answer-actions {
  flex-wrap: wrap;
}
.answer-actions #status {
  width: 100%;
}
#save {
  background: #edf0e6;
  color: #365b49;
}
.share-details {
  max-width: none;
  margin-top: 28px;
  padding: 18px;
  background: #f0eddf;
  border-radius: 10px;
}
.share-details > summary {
  font-size: 17px;
  min-height: 44px;
  display: list-item;
  padding-top: 8px;
}
.sharing {
  border: 0;
  padding-top: 4px;
  margin-top: 12px;
}
button, select {
  min-height: 48px;
  touch-action: manipulation;
}
button, a {
  -webkit-tap-highlight-color: #d6dfc7;
}
#answer {
  font-size: 16px;
}
@media (max-width: 760px) {
  main {
    padding: 0 18px;
  }
  header {
    padding: 13px 18px 6px;
    gap: 6px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 3px;
  }
  .brand .brand-tagline {
    font-size: 10px;
  }
  header nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }
  header nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .prototype {
    font-size: 10px;
    letter-spacing: .3px;
    line-height: 1.6;
    margin-top: 12px;
  }
  .opening {
    display: flex;
    flex-direction: column;
    padding: 28px 0 18px;
    gap: 30px;
  }
  .intro h1 {
    font-size: clamp(33px, 9vw, 43px);
    margin-top: 15px;
  }
  .lead {
    font-size: 16px;
  }
  .duo {
    width: 100%;
  }
  .editorial {
    border: 0;
    padding-top: 28px;
  }
  .editorial h2 {
    font-size: 30px;
    margin-top: 10px;
  }
  .letter p {
    font: 16px/1.8 -apple-system, BlinkMacSystemFont, sans-serif;
  }
  .letter {
    box-shadow: 5px 5px 0 #e9e3cf;
  }
  .contents {
    padding-top: 25px;
    border: 0;
  }
  .chapter-grid {
    gap: 12px;
  }
  .chapter {
    padding: 18px 20px;
  }
  .chapter b {
    float: left;
    margin-right: 14px;
  }
  .chapter strong {
    margin: 0 0 7px;
    font-size: 16px;
  }
  .chapter small, .chapter-completion {
    display: block;
    clear: both;
  }
  .work {
    border: 0;
    display: block;
    padding: 20px 0;
    scroll-margin-top: 125px;
  }
  .work > aside {
    display: none;
  }
  .card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .card h2 {
    font-size: 27px;
    line-height: 1.35;
  }
  .topline {
    align-items: center;
    flex-wrap: wrap;
  }
  .question-picker {
    font-size: 12px;
  }
  #question {
    font-size: 14px;
    max-width: 100%;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 10px 8px;
    min-width: 0;
    font-size: 15px;
  }
  .answer-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fffefa;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  }
  .answer-actions button {
    width: 100%;
    text-align: center;
  }
  .answer-actions #status {
    min-height: 20px;
  }
  .record-actions button {
    width: 100%;
    margin-bottom: 8px;
  }
  .share-details {
    padding: 15px;
  }
  fieldset {
    flex-direction: column;
    gap: 3px;
  }
  fieldset label {
    padding: 12px 0;
  }
  .sharing > button {
    width: 100%;
    margin: 5px 0;
  }
  .sharing select {
    width: 100%;
    margin-top: 8px;
  }
  .question-nav button {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.question-jump {
  max-width: none;
  margin-bottom: 18px;
}
.question-jump summary {
  font-size: 12px;
  padding: 12px 0;
  min-height: 44px;
  color: #62745d;
}
@media (max-width:760px) {
  .card h2 {
    font-size: 25px;
  }
}
@media (max-width:760px) {
  .answer-actions {
    position: static;
    padding-bottom: 8px;
  }
  #answer {
    min-height: 145px;
  }
}

.free-label {
  font-size: 13px;
  font-weight: 600;
  color: #54704c;
  margin-bottom: 20px;
}
.author-link {
  display: block;
  color: #365b49;
  font-size: 14px;
  text-underline-offset: 4px;
  margin: 8px 0 0;
}
.pdf-actions {
  padding-top: 18px;
}
.pdf-actions p {
  font-size: 12px;
  color: #65746b;
  margin: 7px 0;
}
dialog {
  width: min(480px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid #dce0d1;
  border-radius: 18px;
  background: #fffdf7;
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 20px 90px #23372d30;
}
dialog::backdrop {
  background: #22372e70;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 31px;
  margin: 14px 0;
}
dialog p {
  font-size: 14px;
}
.dialog-close {
  float: right;
  font-size: 26px;
  background: transparent;
  border: 0;
  padding: 2px 10px;
}
#signup-form > label:not(.consent) {
  display: block;
  font-size: 13px;
  margin: 13px 0 6px;
}
#signup-form > input {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #ccd6c4;
  border-radius: 6px;
  font: 16px -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.7;
}
.consent input {
  flex-shrink: 0;
  margin-top: 5px;
}
#signup-form .primary {
  width: 100%;
}
@media(max-width:760px) {
  dialog {
    padding: 22px;
  }
  .pdf-actions button {
    width: 100%;
  }
}

body[data-current-page="accueil"] .site-signature {
  display: none;
}

#save-before-share {
  padding: 16px;
  background: #fffdf7;
  border-radius: 8px;
  margin: 18px 0;
}
#save-before-share p {
  margin-top: 0;
}
#share-save {
  width: 100%;
}

.work > .question-aside {
  align-self: start;
  position: sticky;
  top: 130px;
}
.question-art {
  margin: 0;
}
.question-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.question-art figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
}
.question-art a {
  color: #655e56;
  text-underline-offset: 3px;
}
@media(max-width:760px) {
  .work > .question-aside {
    display: block;
    position: static;
    margin: 0 auto 18px;
    max-width: 240px;
  }
  .question-art img {
    max-height: 145px;
  }
  .question-art figcaption {
    margin-top: 2px;
  }
}

@media (max-width:760px) {
  .brand-logo {
    width:44px;
    height:44px;
  }
}
