.eda-map,
.eda-form,
.eda-questionnaire {
  color: #14324a;
  font-family: inherit;
}

.eda-map {
  border: 1px solid #d9e3e8;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 59, 88, .09);
  overflow: hidden;
}

.eda-map-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(320px, 1.3fr);
  gap: 2rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: #edf5fa;
}

.eda-map-kicker {
  margin: 0 0 .3rem;
  color: #0b6f7d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eda-map-toolbar p { margin: 0; }
.eda-map-toolbar label { display: block; margin-bottom: .45rem; font-weight: 750; }
.eda-map-toolbar form > div { display: flex; gap: .65rem; }
.eda-map input,
.eda-form input,
.eda-form select,
.eda-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b9cbd5;
  border-radius: 12px;
  background: #fff;
  color: #14324a;
  font: inherit;
  padding: .85rem 1rem;
}

.eda-map button,
.eda-form button,
.eda-questionnaire button {
  border: 0;
  border-radius: 999px;
  background: #f97861;
  color: #082b47;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: .85rem 1.25rem;
}

.eda-map-status { min-height: 1.5rem; margin: 0; padding: .7rem clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; }
.eda-map-layout { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(300px, .9fr); }
.eda-map-plot { min-height: 600px; padding: 1.5rem; background: #f5f0e7; }
.eda-map-plot svg { display: block; width: 100%; height: min(65vh, 620px); }
.eda-map-plot > p { margin: .5rem 0 0; color: #527084; font-size: .78rem; }
.eda-loire-shape { fill: #eaf0e5; stroke: #168fa0; stroke-width: 3; }
.eda-map-marker { cursor: pointer; }
.eda-map-marker .eda-map-marker-halo { fill: rgba(249, 120, 97, .22); stroke: none; transition: .2s ease; }
.eda-map-marker .eda-map-marker-dot { fill: #f97861; stroke: #fff; stroke-width: 3; transition: .2s ease; }
.eda-map-marker text { fill: #082b47; font-size: 13px; font-weight: 800; pointer-events: none; }
.eda-map-marker.is-selected .eda-map-marker-dot { stroke: #082b47; }
.eda-map-user circle:first-child { fill: #f6b81a; stroke: #082b47; stroke-width: 2; }
.eda-map-user circle:last-child { fill: #082b47; }
.eda-map-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 600px; }
.eda-map-panel article { padding: 1.7rem; border-bottom: 1px solid #d9e3e8; }
.eda-map-panel h3 { margin: .25rem 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.eda-map-panel address { margin: 1rem 0; font-style: normal; }
.eda-map-panel a { font-weight: 800; }
.eda-map-list { max-height: 440px; overflow: auto; }
.eda-map-list button { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; width: 100%; padding: 1rem 1.2rem; border: 0; border-bottom: 1px solid #d9e3e8; border-radius: 0; background: #fff; color: #14324a; text-align: left; }
.eda-map-list button:hover,
.eda-map-list button.is-selected { background: #edf5fa; }
.eda-map-list button > span:first-child { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #103e60; color: #fff; font-weight: 800; }
.eda-map-list small { display: block; color: #527084; }

.eda-funders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.eda-funders > div { display: grid; place-items: center; min-height: 105px; padding: 1rem; border: 1px solid #d9e3e8; border-radius: 18px; background: #fff; }
.eda-funders img { max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; }

.eda-form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid #d9e3e8; border-radius: 24px; background: #fff; }
.eda-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.eda-form label { display: grid; gap: .35rem; font-weight: 750; }
.eda-form textarea { resize: vertical; }
.eda-form button { justify-self: start; }
.eda-consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.eda-consent input { width: auto; margin-top: .3rem; }
.eda-honeypot { position: absolute; left: -9999px; }
.eda-form-note { margin: 0; color: #527084; font-size: .9rem; }
.eda-form-success,
.eda-form-error { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 750; }
.eda-form-success { background: #eaf0e5; }
.eda-form-error { background: #fff0ed; }

.eda-questionnaire { padding: clamp(1.5rem, 3vw, 2.4rem); border: 1px solid #d9e3e8; border-radius: 24px; background: #edf5fa; }
.eda-questionnaire fieldset { display: grid; gap: .9rem; border: 0; padding: 0; }
.eda-questionnaire legend { margin-bottom: 1rem; color: #082b47; font-size: 1.6rem; font-weight: 800; }
.eda-questionnaire label { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.eda-questionnaire-result { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #fff; }
.eda-questionnaire-result:empty { display: none; }

@media (max-width: 900px) {
  .eda-map-toolbar,
  .eda-map-layout { grid-template-columns: 1fr; }
  .eda-map-plot { min-height: 430px; }
  .eda-map-plot svg { height: 420px; }
  .eda-map-panel { min-height: auto; }
  .eda-funders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .eda-map-toolbar form > div { flex-direction: column; }
  .eda-form-grid { grid-template-columns: 1fr; }
  .eda-funders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bibliothèque documentaire. Les couvertures sont contenues, jamais étirées. */
.eda-resource-library,
.resource-detail { color: #14324a; }
.resource-practical,
.resource-pathways,
.resource-library,
.resource-detail { background: #fff; }
.resource-pathway-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.resource-pathway-tab { display: grid; gap: .5rem; min-height: 11.9rem; padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid rgba(16, 62, 96, .16); border-radius: 24px; background: #fff; color: #082b47; font: inherit; text-align: left; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.resource-pathway-tab:hover,
.resource-pathway-tab:focus-visible { border-color: rgba(16, 62, 96, .4); box-shadow: 0 16px 36px rgba(16, 62, 96, .1); transform: translateY(-2px); }
.resource-pathway-tab > span { color: #0b6f7d; font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.resource-pathway-tab > strong { max-width: 34rem; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.1; }
.resource-pathway-tab > small { max-width: 39rem; color: #526879; font-size: .95rem; line-height: 1.55; }
.resource-pathway-tab.is-active { border-color: #168fa0; background: linear-gradient(135deg, #eef9f8, #fff); box-shadow: inset 0 0 0 2px rgba(22, 143, 160, .14), 0 16px 36px rgba(16, 62, 96, .09); }
.resource-pathway-panel { margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: 24px; background: #edf5fa; }
.resource-pathway-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.4rem; }
.resource-pathway-heading h3 { margin: 0; }
.resource-pathway-heading .eyebrow { margin-bottom: .45rem; }
.resource-pathway-heading .text-link { border: 0; background: transparent; font: inherit; cursor: pointer; }
.resource-pathway-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.resource-pathway-results .resource-result { grid-template-columns: auto minmax(0, 1fr) 1.4rem; background: #fff; }
.resource-pathway-results .resource-result-meta { display: none; }
.resource-pathway-results .resource-result-arrow { grid-column: 3; }
.practical-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.practical-resource-card {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  padding: 1.1rem;
  border: 1px solid rgba(16, 62, 96, .14);
  border-radius: 20px;
  background: #fff;
  color: #082b47;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.practical-resource-card:hover,
.practical-resource-card:focus-visible {
  border-color: rgba(16, 62, 96, .35);
  box-shadow: 0 14px 32px rgba(16, 62, 96, .09);
  transform: translateY(-2px);
}
.practical-resource-card strong,
.practical-resource-card small { display: block; }
.practical-resource-card small { margin-top: .3rem; color: #526879; font-size: .86rem; line-height: 1.45; }
.practical-resource-count { display: inline-flex; margin-top: .65rem; padding: .25rem .55rem; border-radius: 999px; background: #edf5fa; color: #103e60; font-size: .72rem; font-weight: 850; line-height: 1.2; }
.practical-resource-card.is-active { border-color: #168fa0; background: #f4fbfb; box-shadow: inset 0 0 0 2px rgba(22, 143, 160, .14), 0 14px 32px rgba(16, 62, 96, .09); }
.practical-resource-card.is-active .practical-resource-count { background: #103e60; color: #fff; }
.practical-resource-icon {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 900;
}
.tone-lilac { background: #eee8ff; color: #7252b6; }
.tone-green { background: #e9f5d8; color: #5e8d2b; }
.tone-yellow { background: #fff0cc; color: #9a6406; }
.tone-pink { background: #fde3ec; color: #b53a68; }
.tone-blue { background: #e0f0ff; color: #236b9f; }
.tone-teal { background: #def3ee; color: #107a76; }

.resource-featured { overflow: hidden; background: linear-gradient(120deg, #f4fafb, #fff 72%); }
.resource-section-row { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.resource-section-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: flex-end; }
.resource-carousel-toggle {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  padding: .55rem .8rem;
  border: 1px solid rgba(16, 62, 96, .18);
  border-radius: 999px;
  background: #fff;
  color: #103e60;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}
.resource-carousel-toggle:hover,
.resource-carousel-toggle:focus-visible { border-color: #168d88; color: #087d7b; }
.resource-carousel-shell { position: relative; }
.resource-carousel {
  display: grid;
  grid-auto-columns: minmax(210px, 24%);
  grid-auto-flow: column;
  gap: 1.1rem;
  overflow-x: auto;
  padding: .5rem .25rem 1.4rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.featured-resource-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .55rem;
  padding: .75rem;
  border: 1px solid rgba(16, 62, 96, .14);
  border-radius: 18px;
  background: #fff;
  color: #082b47;
  text-decoration: none;
  scroll-snap-align: start;
}
.featured-resource-card > strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.3;
}
.featured-resource-card > small { margin-top: auto; color: #526879; }
.resource-topic-badge,
.resource-detail-badges span {
  align-self: flex-start;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: #e6f6f3;
  color: #087d7b;
  font-size: .7rem;
  font-weight: 850;
}
.resource-carousel-control {
  position: absolute;
  z-index: 2;
  top: 43%;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(16, 62, 96, .18);
  border-radius: 50%;
  background: #fff;
  color: #103e60;
  box-shadow: 0 8px 25px rgba(16, 62, 96, .12);
  cursor: pointer;
}
.resource-carousel-control.previous { left: -1.4rem; }
.resource-carousel-control.next { right: -1.4rem; }

.resource-cover,
.resource-cover-image {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: .72;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(16, 62, 96, .16);
  border-radius: 12px;
  background: radial-gradient(circle at 82% 16%, rgba(249, 120, 97, .24), transparent 24%), linear-gradient(150deg, #e6f6f3, #fff 48%, #e8f1f7);
  color: #082b47;
}
.resource-cover-image { padding: .5rem; background: #fff; }
.resource-cover-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.resource-cover::after {
  position: absolute;
  right: -18%;
  bottom: -9%;
  width: 80%;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background: rgba(16, 143, 160, .16);
  content: "";
}
.resource-cover span,
.resource-cover small { position: relative; z-index: 1; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.resource-cover strong { position: relative; z-index: 1; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.12; }
.resource-cover-compact { width: 78px; min-width: 78px; min-height: 104px; padding: .5rem; }
.resource-cover-compact span,
.resource-cover-compact small { font-size: .46rem; }
.resource-cover-compact strong { font-size: .64rem; }

.resource-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(145px, .8fr));
  gap: .75rem;
  margin-top: 1.75rem;
}
.resource-library { scroll-margin-top: 132px; }
.resource-filter-context { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; margin-top: 1.6rem; padding: 1.25rem 1.4rem; border: 1px solid rgba(22, 143, 160, .25); border-radius: 18px; background: #f0f9f8; }
.resource-filter-context > div > span { display: block; margin-bottom: .2rem; color: #0b6f7d; font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.resource-filter-context strong { display: block; color: #082b47; font-size: 1.2rem; }
.resource-filter-context p { margin: .25rem 0 0; color: #526879; }
.resource-filter-context .button { flex: 0 0 auto; }
.resource-filters label { display: grid; gap: .35rem; }
.resource-filters label > span { font-size: .78rem; font-weight: 800; }
.resource-filters input,
.resource-filters select {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(16, 62, 96, .2);
  border-radius: 12px;
  background: #fff;
  color: #14324a;
  font: inherit;
}
.resource-count { margin: 1.1rem 0 .6rem; color: #526879; font-weight: 750; }
.resource-results { display: grid; gap: .65rem; }
.resource-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(130px, auto) 1.5rem;
  gap: 1.1rem;
  align-items: center;
  padding: .75rem;
  border: 1px solid rgba(16, 62, 96, .14);
  border-radius: 16px;
  color: #082b47;
  text-decoration: none;
}
.resource-result:hover,
.resource-result:focus-visible { border-color: rgba(16, 62, 96, .36); box-shadow: 0 12px 28px rgba(16, 62, 96, .08); }
.resource-result-copy,
.resource-result-meta { display: flex; min-width: 0; flex-direction: column; gap: .3rem; }
.resource-result-copy > span:not(.resource-result-summary),
.resource-result-meta,
.resource-result-summary { color: #526879; font-size: .84rem; }
.resource-result-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.resource-result-arrow { font-size: 1.25rem; }
.resource-more { display: block; margin: 1.6rem auto 0; }
.resource-more[hidden] { display: none; }
.resource-empty { padding: 2.25rem; border-radius: 20px; background: #fcf8f0; text-align: center; }
.resource-empty .button-row { justify-content: center; }
.resource-contributions { background: #fcf8f0; }

.eda-resource-main { width: 100%; max-width: none !important; }
.resource-detail { padding-block: 1.75rem clamp(4.25rem, 8vw, 7rem); }
.resource-breadcrumbs { display: flex; overflow: hidden; gap: .55rem; align-items: center; margin-bottom: 1.5rem; color: #526879; font-size: .82rem; white-space: nowrap; }
.resource-breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.resource-back { display: inline-block; margin-bottom: 1.75rem; color: #103e60; font-weight: 800; }
.resource-detail-hero { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(2.1rem, 6vw, 5rem); align-items: start; margin-bottom: 3.1rem; }
.resource-cover-detail { width: 100%; max-width: 330px; box-shadow: 0 18px 45px rgba(16, 62, 96, .12); }
.resource-cover-detail strong { font-size: clamp(1.45rem, 2.7vw, 2rem); }
.resource-detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.resource-detail-badges span:first-child { background: #e8f1f7; color: #103e60; }
.resource-detail h1 { max-width: 900px; margin-bottom: 1.1rem; color: #082b47; font-size: clamp(2.15rem, 4vw, 4.2rem); line-height: 1.02; }
.resource-reference { color: #526879; font-size: 1.05rem; }
.resource-detail-meta { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; margin-top: 1.6rem; }
.resource-detail-meta div { display: grid; gap: .2rem; }
.resource-detail-meta dt { color: #526879; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.resource-detail-meta dd { margin: 0; font-weight: 750; }
.resource-why,
.resource-source,
.resource-replaced,
.resource-method-note { padding: clamp(1.4rem, 4vw, 2.1rem); border: 1px solid rgba(22, 143, 160, .2); border-radius: 20px; background: #eaf8f7; }
.resource-why,
.resource-detail-section,
.resource-source,
.resource-help,
.resource-related { max-width: 1050px; margin: 0 auto clamp(2.75rem, 6vw, 4.5rem); }
.resource-why h2,
.resource-detail-section h2,
.resource-source h2,
.resource-help h2 { color: #082b47; font-size: clamp(1.55rem, 2.5vw, 2.25rem); }
.resource-takeaways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.resource-takeaways article { min-height: 190px; padding: 1.5rem; border: 1px solid rgba(16, 62, 96, .14); border-radius: 18px; background: #fff; }
.resource-takeaways article > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; background: #e0f0ff; color: #103e60; font-weight: 900; }
.resource-method-note { margin-top: 1.1rem; background: #f4fafb; font-size: .9rem; }
.resource-interest ul { display: grid; gap: .75rem; padding: 0; list-style: none; }
.resource-interest li { position: relative; padding-left: 1.9rem; }
.resource-interest li::before { position: absolute; left: 0; color: #168d88; content: "✓"; font-weight: 900; }
.resource-source { background: #f6f9fb; }
.resource-source p { margin-block: .4rem; }
.resource-source-pending { color: #526879; font-style: italic; }
.resource-help { display: flex; justify-content: space-between; gap: 1.75rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(197, 76, 120, .18); border-radius: 22px; background: #fff0f4; }
.resource-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.resource-related-grid > a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; padding: .9rem; border: 1px solid rgba(16, 62, 96, .14); border-radius: 16px; color: #082b47; text-decoration: none; }
.resource-related-grid .resource-cover { grid-row: 1 / 3; }
.resource-related-grid small { color: #526879; }
.resource-replaced { display: flex; justify-content: space-between; gap: 1.1rem; max-width: 1050px; margin: 0 auto 1.9rem; background: #fff3d9; }

@media (max-width: 1024px) {
  .practical-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-pathway-results { grid-template-columns: 1fr; }
  .resource-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-filters label:first-child { grid-column: 1 / -1; }
  .resource-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .practical-resource-grid,
  .resource-pathway-tabs,
  .resource-takeaways { grid-template-columns: 1fr; }
  .resource-section-row,
  .resource-section-actions,
  .resource-pathway-heading,
  .resource-help,
  .resource-replaced,
  .resource-filter-context { align-items: flex-start; flex-direction: column; }
  .resource-carousel { grid-auto-columns: minmax(250px, 84%); }
  .resource-section-actions { align-items: flex-start; justify-content: flex-start; }
  .resource-carousel-control { display: none; }
  .resource-filters { grid-template-columns: 1fr; }
  .resource-filters label:first-child { grid-column: auto; }
  .resource-result { grid-template-columns: auto minmax(0, 1fr) 1.25rem; align-items: start; }
  .resource-result-meta { grid-column: 2; }
  .resource-result-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .resource-result-summary { display: none; }
  .resource-pathway-tab { min-height: 0; }
  .resource-pathway-heading .text-link { text-align: left; }
  .resource-detail-hero { grid-template-columns: 1fr; }
  .resource-cover-detail { max-width: 310px; margin-inline: auto; }
  .resource-help .button { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  .practical-resource-card { grid-template-columns: 2.9rem minmax(0, 1fr) auto; gap: .75rem; padding: .9rem; }
  .practical-resource-icon { width: 2.9rem; height: 2.9rem; }
  .resource-cover-compact { width: 64px; min-width: 64px; min-height: 90px; }
  .resource-result { gap: .7rem; }
  .resource-detail h1 { font-size: clamp(2rem, 11vw, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .resource-carousel { scroll-behavior: auto; }
  .resource-carousel-toggle { display: none; }
  .practical-resource-card { transition: none; }
}
