/* cherche-soumise.fr — ecrin.css : papier ivoire, velours prune, filets dorés. */
@font-face {
  font-family: 'Gilda Display';
  src: url('/etoffe/gilda-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/etoffe/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('/etoffe/jost-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivoire: #f7f2ec;
  --papier: #fcfaf7;
  --prune: #4a1d36;
  --prune-nuit: #2e1424;
  --encre: #211a1e;
  --taupe: #7d7078;
  --fil-d-or: #a8865a;
  --lin: #e2d8cf;
  --rose-poudre: #eadde4;
  --serif-ecrin: 'Gilda Display', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans-ecrin: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --mesure: 70rem;
  --rayon-ecrin: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--sans-ecrin);
  overflow-wrap: anywhere;
}

body.pacte-ouvert {
  overflow: hidden;
}

a {
  color: var(--prune);
  text-decoration-color: var(--fil-d-or);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--prune-nuit);
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--fil-d-or);
  outline-offset: 3px;
}

h1,
h2,
h3,
.socle-marque,
.legende-ecrin {
  font-family: var(--serif-ecrin);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--prune-nuit);
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  margin: 0.4rem 0 1rem;
}

h2 {
  font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.25rem;
  margin: 1.4rem 0 0.6rem;
}

.saut-texte {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--papier);
  padding: 0.5rem 0.9rem;
  z-index: 20;
}

.saut-texte:focus {
  left: 1rem;
}

/* ---------------------------------------------------------------- bandeau de velours */

.velours-haut {
  background: var(--prune-nuit);
  border-bottom: 3px double var(--fil-d-or);
  color: var(--ivoire);
}

.velours-haut-int {
  max-width: var(--mesure);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
}

.sigle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivoire);
  text-decoration: none;
  margin-right: auto;
}

.sigle-cachet {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--fil-d-or);
  box-shadow: inset 0 0 0 3px var(--prune-nuit), inset 0 0 0 4px var(--fil-d-or);
  display: grid;
  place-items: center;
  font: 400 1.05rem/1 var(--serif-ecrin);
  letter-spacing: 0.04em;
  color: var(--fil-d-or);
}

.sigle-mots {
  font: 400 1.35rem/1 var(--serif-ecrin);
  letter-spacing: 0.03em;
}

.sigle-mots em {
  font-style: normal;
  color: var(--rose-poudre);
}

.rubriques-haut {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
}

.rubriques-haut a {
  color: var(--rose-poudre);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rubriques-haut a:hover {
  color: var(--ivoire);
  border-bottom: 1px solid var(--fil-d-or);
}

/* ---------------------------------------------------------------- boutons */

.btn-velours,
.btn-filet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.3rem;
  border-radius: var(--rayon-ecrin);
  font: 500 0.95rem/1.2 var(--sans-ecrin);
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.btn-velours {
  background: var(--prune);
  color: var(--papier);
  border: 1px solid var(--prune);
  box-shadow: inset 0 0 0 1px var(--fil-d-or);
}

.btn-velours:hover {
  background: var(--prune-nuit);
  color: var(--papier);
}

.btn-filet {
  background: transparent;
  color: var(--prune);
  border: 1px solid var(--fil-d-or);
}

.btn-filet:hover {
  background: var(--rose-poudre);
}

.btn-manchette {
  box-shadow: inset 0 0 0 1px var(--fil-d-or), 0 0 0 1px var(--fil-d-or);
}

button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ---------------------------------------------------------------- page */

.page {
  display: block;
  max-width: var(--mesure);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.5rem;
}

.fil-ariane {
  font-size: 0.88rem;
  color: var(--taupe);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin-bottom: 0.6rem;
}

.fil-ariane b {
  color: var(--fil-d-or);
  font-weight: 400;
}

.fil-ariane em {
  font-style: normal;
  color: var(--encre);
}

.surtitre {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fil-d-or);
  margin: 0;
}

.chapo {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 48rem;
  color: var(--encre);
  margin: 0 0 1.8rem;
}

.chapo small,
.sommaire small {
  color: var(--taupe);
  font-size: 0.85rem;
  white-space: nowrap;
}

.numero {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--fil-d-or);
  font: 400 0.9rem/1.5 var(--sans-ecrin);
  letter-spacing: 0.12em;
  color: var(--fil-d-or);
}

.frontispice {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--lin);
  margin-bottom: 2rem;
}

.pan {
  margin: 0 0 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--lin);
  position: relative;
}

.pan::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 4.5rem;
  border-top: 1px solid var(--fil-d-or);
}

.pan-clair {
  background: var(--papier);
  border: 1px solid var(--lin);
  padding: 1.5rem 1.4rem;
}

.pan-clair::before {
  left: 1.4rem;
}

.renvois {
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.precision-fine {
  font-size: 0.86rem;
  color: var(--taupe);
}

.colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 2.2rem;
  margin-bottom: 2.4rem;
}

.encart {
  background: var(--prune-nuit);
  color: var(--ivoire);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--fil-d-or);
  outline: 1px solid var(--fil-d-or);
  outline-offset: -7px;
}

.encart-titre {
  font: 400 1.3rem/1.2 var(--serif-ecrin);
  color: var(--rose-poudre);
  margin: 0 0 0.8rem;
}

.encart .conseils li::marker {
  color: var(--fil-d-or);
}

.conseils {
  margin: 0;
  padding-left: 1.4rem;
}

.conseils li {
  margin-bottom: 0.5rem;
}

.conseils li::marker {
  color: var(--prune);
  font-family: var(--serif-ecrin);
}

/* ---------------------------------------------------------------- recherche */

.requete {
  background: var(--papier);
  border: 1px solid var(--lin);
  box-shadow: 0 1px 0 var(--fil-d-or);
  padding: 1.1rem 1.2rem;
  max-width: 52rem;
}

.requete-titre {
  font: 400 1.25rem/1.3 var(--serif-ecrin);
  color: var(--prune-nuit);
  margin: 0 0 0.6rem;
}

.requete-phrase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  margin: 0;
  font-size: 1.05rem;
}

.requete-phrase select,
.requete-phrase input {
  font: inherit;
  color: var(--encre);
  background: var(--ivoire);
  border: 0;
  border-bottom: 1px solid var(--prune);
  padding: 0.45rem 0.3rem;
  min-height: 2.75rem;
  max-width: 100%;
}

.requete-phrase input {
  flex: 1 1 14rem;
}

.requete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0.9rem 0 0;
}

.requete-etat {
  font-size: 0.9rem;
  color: var(--taupe);
}

.recherche-bas {
  max-width: var(--mesure);
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

/* ---------------------------------------------------------------- billets (annonces d'illustration) */

.avis-billets {
  font-size: 0.88rem;
  color: var(--taupe);
  border-left: 2px solid var(--fil-d-or);
  padding-left: 0.8rem;
  margin: 0 0 1.2rem;
}

.billets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
  gap: 1.2rem;
}

.billet {
  background: var(--papier);
  border: 1px solid var(--lin);
  outline: 1px solid var(--rose-poudre);
  outline-offset: -6px;
  padding: 1.2rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.billet-tete {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.8rem;
  align-items: center;
}

.billet-initiale {
  grid-row: span 3;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--prune);
  color: var(--rose-poudre);
  display: grid;
  place-items: center;
  font: 400 1.4rem/1 var(--serif-ecrin);
  box-shadow: 0 0 0 2px var(--papier), 0 0 0 3px var(--fil-d-or);
}

.billet-signe,
.billet-lieu {
  margin: 0;
  line-height: 1.35;
}

.billet-signe strong {
  font-weight: 500;
  color: var(--prune-nuit);
}

.billet-lieu {
  color: var(--taupe);
  font-size: 0.92rem;
}

.billet-lieu small {
  letter-spacing: 0.08em;
}

.billet-chapitre {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fil-d-or);
  text-decoration: none;
}

.billet-objet {
  font-family: var(--serif-ecrin);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--prune-nuit);
  margin: 0;
}

.billet-clauses {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 8.2rem) minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  font-size: 0.95rem;
}

.billet-clauses dt {
  color: var(--taupe);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.billet-clauses dd {
  margin: 0;
}

.billet-pied {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--lin);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------------------------------------------------------------- répertoire, chapitres */

.repertoire {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 0;
  border-top: 1px solid var(--lin);
}

.repertoire-large {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.repertoire-court {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.entree {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0 0.6rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--lin);
  text-decoration: none;
  color: var(--encre);
}

.entree:hover {
  background: var(--papier);
}

.entree-num {
  grid-row: span 2;
  font: 500 0.82rem/1.9 var(--sans-ecrin);
  letter-spacing: 0.1em;
  color: var(--fil-d-or);
  text-align: right;
}

.entree-nom {
  font: 400 1.12rem/1.3 var(--serif-ecrin);
  color: var(--prune-nuit);
}

.entree-info {
  font-size: 0.85rem;
  color: var(--taupe);
}

.chapitres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.9rem;
}

.chapitres-larges {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  margin-bottom: 2.4rem;
}

.chapitre {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--papier);
  border: 1px solid var(--lin);
  border-top: 2px solid var(--prune);
  text-decoration: none;
  color: var(--encre);
}

.chapitre:hover {
  border-top-color: var(--fil-d-or);
  background: var(--rose-poudre);
}

.chapitre-num {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fil-d-or);
}

.chapitre-nom {
  font: 400 1.25rem/1.25 var(--serif-ecrin);
  color: var(--prune-nuit);
}

.chapitre-sous {
  font-size: 0.9rem;
  color: var(--taupe);
}

.liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin: 0;
}

.liens a {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--lin);
  background: var(--papier);
  text-decoration: none;
  font-size: 0.95rem;
}

.liens a:hover {
  border-color: var(--fil-d-or);
}

.liseuse p {
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
}

.liseuse a {
  font: 400 1.15rem/1.35 var(--serif-ecrin);
}

.liseuse span {
  font-size: 0.93rem;
  color: var(--taupe);
}

/* ---------------------------------------------------------------- chiffres, tableaux, mesures */

.releve,
.table-communes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  margin: 0 0 1rem;
}

.releve th,
.releve td,
.table-communes th,
.table-communes td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--lin);
  text-align: left;
  vertical-align: top;
}

.releve th,
.table-communes tbody th {
  font-weight: 400;
  color: var(--taupe);
  width: 45%;
}

.table-communes thead th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fil-d-or);
  font-weight: 500;
}

.table-communes tbody th {
  color: var(--encre);
}

.table-communes caption {
  text-align: left;
  font-size: 0.88rem;
  color: var(--taupe);
  padding-bottom: 0.4rem;
}

.mesures {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 16rem;
  column-gap: 2rem;
}

.mesures li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--lin);
  break-inside: avoid;
}

.mesures b {
  font-weight: 400;
  color: var(--taupe);
  font-size: 0.9rem;
  text-align: right;
}

/* ---------------------------------------------------------------- guide */

.sommaire {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.sommaire li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 0.8rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--lin);
}

.sommaire-num {
  grid-row: span 2;
  font: 400 1.4rem/1.2 var(--serif-ecrin);
  color: var(--fil-d-or);
}

.sommaire a {
  font: 400 1.25rem/1.3 var(--serif-ecrin);
}

.sommaire p {
  margin: 0.25rem 0 0;
  color: var(--encre);
}

.texte-long {
  max-width: 46rem;
}

.texte-long h2 {
  margin-top: 2rem;
}

.texte-long ul {
  padding-left: 1.2rem;
}

.texte-long li {
  margin-bottom: 0.45rem;
}

.texte-long li::marker {
  color: var(--fil-d-or);
}

.sources {
  margin-top: 2.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--lin);
  background: var(--papier);
}

.sources h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.reserve {
  font-size: 0.9rem;
  color: var(--taupe);
  border-top: 1px solid var(--lin);
  padding-top: 0.8rem;
}

/* ---------------------------------------------------------------- compte */

.compte {
  max-width: 56rem;
}

.compte-formes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.4rem;
}

.forme {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.3rem;
  background: var(--papier);
  border: 1px solid var(--lin);
  border-top: 2px solid var(--prune);
}

.forme input[type='email'],
.forme input[type='password'] {
  font: inherit;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--lin);
  background: var(--ivoire);
  color: var(--encre);
}

.forme label small {
  color: var(--taupe);
}

.case {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
}

.case input {
  margin-top: 0.3rem;
  accent-color: var(--prune);
}

.alerte {
  color: var(--prune);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------------------------------------------------------------- pied */

.socle {
  background: var(--prune-nuit);
  color: var(--rose-poudre);
  border-top: 3px double var(--fil-d-or);
}

.socle-int {
  max-width: var(--mesure);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.4rem;
}

.socle-marque {
  font-size: 1.5rem;
  color: var(--ivoire);
  margin: 0 0 0.5rem;
}

.socle-texte {
  max-width: 44rem;
  font-size: 0.95rem;
}

.socle-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
}

.socle-liens a {
  color: var(--ivoire);
  text-decoration-color: var(--fil-d-or);
}

.socle-mentions {
  font-size: 0.82rem;
  color: var(--fil-d-or);
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- pacte de majorité (écrin fermé) */

.pacte {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(46, 20, 36, 0.86);
}

.pacte[hidden] {
  display: none;
}

.pacte-ecrin {
  max-width: 30rem;
  margin: 0;
  padding: 2rem 1.8rem 1.6rem;
  background: var(--papier);
  border: 1px solid var(--fil-d-or);
  outline: 1px solid var(--fil-d-or);
  outline-offset: -8px;
  text-align: center;
}

.pacte-ecrin legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.8rem;
  font: 400 1.7rem/1.2 var(--serif-ecrin);
  color: var(--prune-nuit);
}

.pacte-ecrin p {
  clear: both;
}

.pacte-choix {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- petits écrans */

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

  .velours-haut-int {
    padding: 0.7rem 1rem;
  }

  .page {
    padding: 1rem 1rem 2rem;
  }

  .rubriques-haut {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .rubriques-haut a {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }

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

  .billet-clauses dd {
    margin-bottom: 0.3rem;
  }

  .pan-clair {
    padding: 1.2rem 1rem;
  }
}

.liens small {
  align-self: center;
  margin: 0 0.6rem 0 -0.3rem;
  font-size: 0.8rem;
  color: var(--taupe);
}
