/* Les idées de demandes et les modèles de sites ont chacun leur rubrique. */
.page-exemples {
  --ed-encre: #191817;
  --ed-encre-2: #514e4a;
  --ed-fond: #f5f3ef;
  --ed-bord: #d9d4ce;
  --ed-accent: #c13d28;
}
.page-exemples [hidden] { display: none !important; }
.page-exemples :is(.ed-intro, .ed-demandes, .ed-sites) :is(a, button, summary):focus-visible {
  outline: 3px solid var(--ed-accent);
  outline-offset: 4px;
}
.page-exemples :is(#demandes, #sites, .ed-carte) { scroll-margin-top: 96px; }
.page-exemples .ed-carte:focus-visible { outline: 3px solid var(--ed-accent); outline-offset: 4px; }
.page-exemples .ed-intro { min-height: 0; padding-bottom: 36px; }
.page-exemples .ed-intro .chapo { max-width: 38ch; }
.page-exemples .ed-orientations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 20px;
}
.page-exemples .ed-orientations a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ed-encre);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-exemples .ed-orientations svg { width: 18px; height: 18px; }
.page-exemples .ed-demandes { padding-top: 40px; background: var(--ed-fond); }
.page-exemples .ed-section-tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.page-exemples .ed-section-tete h2 { margin: 0; }
.page-exemples .ed-section-tete > p {
  max-width: 52ch;
  margin: 0;
  color: var(--ed-encre-2);
  font-size: 15px;
  line-height: 1.55;
}
.page-exemples .ed-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.page-exemples .ed-filtres button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--ed-bord);
  border-radius: 7px;
  background: #fff;
  color: var(--ed-encre);
  font: 600 14px/1.35 var(--texte);
  cursor: pointer;
  touch-action: manipulation;
}
.page-exemples .ed-filtres button:hover { border-color: var(--ed-accent); }
.page-exemples .ed-filtres button[aria-pressed=true] {
  border-color: var(--ed-accent);
  background: var(--ed-accent);
  color: #fff;
}
.page-exemples .ed-compte {
  margin: -12px 0 24px;
  color: var(--ed-encre-2);
  font-size: 13px;
  line-height: 1.5;
}
.page-exemples .ed-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-exemples .ed-grille > li { min-width: 0; }
.page-exemples .ed-grille.ed-filtre-anime > li:not([hidden]) { animation: ed-filtre-apparait 140ms ease-out; }
@keyframes ed-filtre-apparait { from { opacity: .65; } to { opacity: 1; } }
.page-exemples .ed-carte {
  overflow: hidden;
  border: 1px solid var(--ed-bord);
  border-radius: 12px;
  background: #fff;
  color: var(--ed-encre);
}
.page-exemples .ed-photo { position: relative; margin: 0; }
.page-exemples .ed-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.page-exemples .ed-photo figcaption {
  position: absolute;
  inset: auto 10px 10px auto;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--ed-encre-2);
  font-size: 11px;
  line-height: 1.45;
}
.page-exemples .ed-corps { padding: 20px; }
.page-exemples .ed-corps h3 {
  margin: 8px 0 12px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.page-exemples .ed-famille {
  margin: 0;
  color: var(--ed-encre-2);
  font-size: 12px;
  font-weight: 600;
}
.page-exemples .ed-besoin {
  margin: 0 0 16px;
  color: var(--ed-encre-2);
  font-size: 15px;
  line-height: 1.55;
}
.page-exemples .ed-etiquette { margin: 0 0 8px; color: var(--ed-encre-2); font-size: 12px; font-weight: 600; }
.page-exemples .ed-competences { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.page-exemples .ed-competences li {
  padding: 5px 9px;
  border: 1px solid var(--ed-bord);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.35;
}
.page-exemples .ed-corps form { margin: 0; }
.page-exemples .ed-corps button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8d867e;
  border-radius: 6px;
  background: #fff;
  color: var(--ed-encre);
  font: 600 14px/1.4 var(--texte);
  cursor: pointer;
}
.page-exemples .ed-corps button:hover { background: var(--ed-fond); }
.page-exemples .ed-corps button svg { flex: none; width: 18px; height: 18px; }
.page-exemples .ed-provenance {
  margin-top: 16px;
  border-top: 1px solid var(--ed-bord);
  color: var(--ed-encre-2);
  font-size: 13px;
  line-height: 1.55;
}
.page-exemples .ed-provenance summary { min-height: 44px; padding-block: 12px; color: var(--ed-encre); font-weight: 600; cursor: pointer; }
.page-exemples .ed-provenance p { margin: 0 0 12px; }
.page-exemples .ed-provenance a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.page-exemples .ed-suite { margin: 24px 0 0; max-width: 70ch; color: var(--ed-encre-2); font-size: 14px; line-height: 1.55; }
.page-exemples .ed-sites .filtre { justify-content: flex-start; }
@media (max-width: 1000px) {
  .page-exemples .ed-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-exemples .ed-intro { padding-top: 20px; padding-bottom: 16px; }
  .page-exemples .ed-orientations { justify-content: flex-start; gap: 8px 18px; margin-top: 12px; }
  .page-exemples .ed-orientations a { font-size: 14px; }
  .page-exemples .ed-demandes { padding-top: 24px; }
  .page-exemples .ed-section-tete { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
  .page-exemples .ed-filtres { margin-bottom: 20px; }
  .page-exemples .ed-grille { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-exemples .ed-corps { padding: 20px; }
  .page-exemples .ed-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 360px) {
  .page-exemples .ed-corps { padding: 18px 16px; }
  .page-exemples .ed-corps h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-exemples .ed-grille.ed-filtre-anime > li { animation: none !important; }
}
