/* Load last, after brand-v3.css and index's embedded styles.
   For two-column resources, wrap the six existing details (unchanged) in
   <div class="legacy-tools-list wrap">...</div>. No JS or ARIA overrides.
   Without this wrapper the resources remain a clean single-column list. */

#questions {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
  color: #eee8dc;
}

#questions > div { min-width: 0; }
#questions > div:first-child { display: block; }
#questions .faq-emblem { width: 64px; height: 64px; margin: 0 0 22px; }
#questions .faq-emblem::before,
#questions .faq-emblem::after { content: none; }
#questions .faq-kicker { color: #d6b06a; font-size: 15px; margin: 0 0 12px; }
#questions h2 {
  /* Earlier mobile brand rules use !important for this title. */
  font-size: clamp(32px, 3.1vw, 44px) !important;
  line-height: 1.12;
  letter-spacing: -.035em;
  margin: 0;
}
#questions .section-intro {
  max-width: 32ch;
  margin: 18px 0 0;
  color: #c4beb3;
  font-size: 17px;
  line-height: 1.65;
}

#questions .faq { min-width: 0; border-top: 1px solid #54452e; }
#questions .faq > details,
#questions .faq > details[open] {
  margin: 0;
  /* brand-v3 already sets details padding with !important. */
  padding: 0 !important;
  border: 0;
  border-bottom: 1px solid #393227;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
#questions .faq > details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 17px 4px;
  list-style: none;
  cursor: pointer;
  color: #eee8dc;
  font-size: 17px;
  line-height: 1.45;
}
#questions .faq summary::-webkit-details-marker { display: none; }
/* The six decorative repeated medallions carry no question content. */
#questions .faq-small-icon { display: none; }
#questions .faq-question-copy { flex: 1; min-width: 0; }
#questions .faq-question-copy small {
  display: block;
  color: #c7ae7c;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 3px;
}
#questions .faq-question-copy > span {
  color: #eee8dc;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 550;
}
#questions .faq-plus {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#questions .faq-plus::before,
#questions .faq-plus::after { inset-inline: 5px; top: 11px; background: #d6b06a; }
#questions .faq > details > p {
  max-width: 68ch;
  margin: 0;
  padding: 0 38px 22px 4px;
  color: #c4beb3;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: normal;
}
#questions .faq a { color: #ead5a8; text-decoration: underline; text-underline-offset: 4px; }
#questions .faq details[open] .faq-question-copy > span { color: #ead5a8; }

/* A resource index rather than another set of FAQ cards. Open documents
   span both columns so their existing calculators and diagrams stay usable. */
.legacy-tools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 40px;
  margin-block: 24px 56px;
}
.hybride details.legacy-tools {
  min-width: 0;
  margin-block: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #54452e;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #eee8dc;
}
.legacy-tools-list > details.legacy-tools { width: 100%; max-width: none; margin: 0; }
.legacy-tools-list > details.legacy-tools[open] { grid-column: 1 / -1; }
.hybride details.legacy-tools > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 20px 4px;
  list-style: none;
  cursor: pointer;
  color: #ead5a8;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.01em;
}
.legacy-tools > summary::-webkit-details-marker { display: none; }
.legacy-tools > summary::after {
  content: '';
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-inline: 4px;
  border-right: 1.5px solid #d6b06a;
  border-bottom: 1.5px solid #d6b06a;
  transform: rotate(45deg);
}
.legacy-tools[open] > summary::after { transform: rotate(225deg); }
.hybride details.legacy-tools > .a-section {
  padding: clamp(24px, 3vw, 40px);
  margin: 0 0 24px;
  border: 0;
  border-left: 2px solid #aa873e;
  border-radius: 0;
  background: #0d0d0e;
}
.legacy-tools > .a-section > .a-wrap { width: 100%; padding: 0; min-width: 0; }
.hybride .legacy-tools .a-h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.legacy-tools :is(p, li, dt, dd, label, h2, h3, button, a) { overflow-wrap: anywhere; }
.legacy-tools :is(.a-calcul__saisie, .a-calcul__saisie input, .a-calcul__champs > label) { min-width: 0; }
.legacy-tools .a-rv { opacity: 1; transform: none; }

#questions .faq summary:focus-visible,
.hybride .legacy-tools > summary:focus-visible {
  outline: 2px solid #ead5a8;
  outline-offset: 3px;
  border-radius: 2px;
}
@media (hover: hover) {
  #questions .faq summary:hover .faq-question-copy > span,
  .hybride .legacy-tools > summary:hover { color: #fff0be; }
}

@media (max-width: 1050px) {
  #questions { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #questions > div:first-child { display: block; max-width: 64ch; }
  #questions .faq-emblem { width: 48px; height: 48px; margin-bottom: 18px; }
  #questions .section-intro { max-width: 58ch; margin-top: 14px; }
}
@media (max-width: 760px) {
  .legacy-tools-list { grid-template-columns: minmax(0, 1fr); margin-block: 16px 40px; }
  .hybride details.legacy-tools > summary { min-height: 68px; padding-block: 18px; }
  .hybride details.legacy-tools > .a-section { padding: 24px 18px; }
  .legacy-tools :is(.a-temps, .a-why, .a-method, .a-fit, .a-specs__list,
    .a-indic__liste, .a-calcul__champs, .a-calcul__duo, .a-prix) {
    grid-template-columns: minmax(0, 1fr);
  }
  .legacy-tools .a-method__tabs button { font-size: 22px; }
}
@media (max-width: 480px) {
  #questions { gap: 24px; }
  #questions .faq > details > summary { gap: 12px; padding-block: 16px; }
  #questions .faq > details > p { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #questions .faq-plus::after { transition: none; }
}
