/* Pages intérieures (FAQ, contact, pages légales) et pied de page commun */

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--marge) clamp(3rem, 8vw, 5rem);
}
.page h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; margin-bottom: 0.9rem; }
.page .intro { color: var(--encre-douce); max-width: 34rem; margin-bottom: 2.2rem; }
.page .maj { color: var(--encre-douce); font-size: 0.85rem; margin-bottom: 1.6rem; }

/* Textes légaux */
.texte h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.texte p, .texte li { margin-bottom: 0.7rem; }
.texte ul { padding-left: 1.2rem; margin-bottom: 0.7rem; }
.texte a { text-underline-offset: 3px; }
.a-completer { background: #ffe58f; padding: 0 0.3rem; border-radius: 2px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--encre); }
.faq details:first-of-type { border-top: 1px solid var(--encre); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-family: var(--police-titre);
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--police-texte);
  font-size: 1.5rem;
}
.faq details[open] summary::after { content: "−"; }
.faq .reponse { padding: 0 0 1.2rem; color: var(--encre-douce); max-width: 36rem; }
.faq .reponse p { margin-bottom: 0.6rem; }
.faq a { color: var(--encre); text-underline-offset: 3px; }
.faq-fin { margin-top: 2.4rem; }

/* Contact */
.canaux { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-bottom: 3rem; }
.contact-form { max-width: 30rem; }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-form label { display: block; margin: 1rem 0 0.3rem; font-size: 0.9rem; font-weight: 500; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #f5f1ea;
  border: 1px solid var(--encre);
  border-radius: 0;
  font: inherit;
  color: var(--encre);
}
.contact-form .erreur { color: #a3261a; min-height: 1.4em; margin-top: 0.6rem; font-size: 0.9rem; }
.contact-form button { margin-top: 0.6rem; cursor: pointer; }
.contact-form .aide { color: var(--encre-douce); font-size: 0.85rem; margin-top: 0.8rem; }

/* Pied de page commun */
.pied {
  border-top: 1px solid var(--encre);
  margin: 0 var(--marge);
  padding: 2.8rem 0 1.6rem;
}
.pied-haut {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 2rem 1.5rem;
}
.pied-marque { grid-column: 1 / -1; max-width: 26rem; }
.pied-logo {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: 1.7rem;
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.pied-marque p { color: var(--encre-douce); font-size: 0.95rem; }
.pied-col h3 {
  font-family: var(--police-texte);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.pied-col a {
  display: block;
  text-decoration: none;
  color: var(--encre-douce);
  font-size: 0.95rem;
  padding: 0.18rem 0;
}
.pied-col a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.pied-bas {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sable);
  color: var(--encre-douce);
  font-size: 0.85rem;
}

/* Un élément marqué "hidden" doit vraiment disparaître (sinon .lien l'affiche quand même) */
[hidden] { display: none !important; }
