.resource-meta {
  width: min(var(--content-max), calc(100% - 48px));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: -34px auto 0;
  position: relative;
  z-index: 5;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,253,248,.96);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 13px;
}
.resource-meta strong { color: var(--deep); }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.resource-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 25px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.resource-card:hover { transform: translateY(-5px); border-color: rgba(11,40,84,.28); box-shadow: var(--shadow); }
.resource-card__top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.resource-card__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 15px; margin-bottom: 22px; }
.resource-card__number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--paper); background: var(--deep); font-size: 12px; font-weight: 900; }
.resource-card__type, .resource-card__duration { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.resource-card h2, .resource-card h3 { margin-bottom: 14px; font-size: clamp(27px, 2.7vw, 40px); }
.resource-card p { margin: 0; }
.resource-card__link { margin-top: auto; padding-top: 28px; color: var(--deep); font-weight: 900; }
.resource-card__link::after { content: " ↗"; color: var(--coral); }

.resource-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resource-principles article { padding: 30px; border-top: 4px solid var(--blue); border-radius: 0 0 20px 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.resource-principles span { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.resource-principles h3 { margin: 9px 0 10px; }
.resource-principles p { margin: 0; font-size: 15px; }

.resource-jump { width: min(var(--content-max), calc(100% - 48px)); display: flex; gap: 9px; margin: 34px auto 0; padding: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.95); box-shadow: var(--shadow-sm); }
.resource-jump a { flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; color: var(--deep); background: var(--blue-soft); font-size: 12px; font-weight: 850; }
.resource-jump a:hover { color: var(--paper); background: var(--deep); }

.resource-answer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: clamp(32px, 7vw, 90px); align-items: start; }
.resource-answer__aside { padding: 28px; border: 1px solid rgba(125,183,232,.3); border-radius: 20px; background: var(--blue-soft); }
.resource-answer__aside strong { display: block; margin-bottom: 9px; color: var(--deep); }
.resource-answer__aside p:last-child { margin-bottom: 0; }

.audit-form { display: grid; gap: 22px; }
.audit-section { margin: 0; padding: 0; border: 0; }
.audit-section legend { width: 100%; margin-bottom: 14px; color: var(--night); font-family: var(--display); font-size: clamp(25px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.audit-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.audit-check {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 13px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  cursor: pointer;
}
.audit-check:hover { border-color: var(--blue); }
.audit-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--deep); }
.audit-check strong { display: block; margin-bottom: 4px; color: var(--deep); }
.audit-check span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.audit-score { position: sticky; bottom: 18px; z-index: 6; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; color: var(--paper); background: rgba(4,17,38,.96); box-shadow: var(--shadow); }
.audit-score strong { font-size: 28px; line-height: 1; }
.audit-score span { color: rgba(255,255,255,.72); font-size: 14px; }
.audit-score progress { width: min(260px, 30vw); height: 12px; accent-color: var(--blue); }

.resource-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: resource-list; }
.resource-list li { counter-increment: resource-list; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.resource-list li::before { content: counter(resource-list, decimal-leading-zero); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--paper); background: var(--deep); font-size: 11px; font-weight: 900; }
.resource-list h3 { margin: 0 0 7px; font-size: 21px; }
.resource-list p { margin: 0; font-size: 15px; }

.season-plan { display: grid; gap: 20px; }
.season-card { display: grid; grid-template-columns: 190px minmax(0, 1fr) 250px; gap: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.season-card__period span { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.season-card__period h3 { margin-top: 8px; font-size: 25px; }
.season-card ul { margin: 0; padding-left: 20px; }
.season-card li + li { margin-top: 8px; }
.season-card__measure { padding: 19px; border-radius: 16px; background: var(--blue-soft); }
.season-card__measure strong { display: block; margin-bottom: 7px; color: var(--deep); }
.season-card__measure p { margin: 0; font-size: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 25px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.metric-card strong { display: block; margin-bottom: 7px; color: var(--night); font-size: clamp(29px, 3vw, 43px); line-height: 1; letter-spacing: -.05em; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.data-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.data-panel { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-sm); }
.data-panel h3 { margin-bottom: 25px; font-size: 27px; }
.bar-chart { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.bar-chart li { display: grid; grid-template-columns: minmax(110px, .72fr) minmax(150px, 1.28fr) 50px; gap: 12px; align-items: center; }
.bar-chart__label { overflow: hidden; color: var(--deep); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bar-chart__track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--blue-soft); }
.bar-chart__fill { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--deep)); }
.bar-chart__value { color: var(--muted); font-size: 13px; font-weight: 850; text-align: right; }
.data-method { padding: clamp(28px, 4vw, 46px); border-left: 5px solid var(--blue); border-radius: 0 22px 22px 0; background: var(--soft); }
.data-method h3 { margin-bottom: 14px; }
.data-method p:last-child { margin-bottom: 0; }
.source-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.source-list li { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.source-list strong { display: block; margin-bottom: 5px; color: var(--deep); }

.resource-disclosure { margin-top: 22px; padding: 17px 20px; border: 1px solid rgba(125,183,232,.28); border-radius: 15px; color: var(--muted); background: rgba(125,183,232,.09); font-size: 13px; line-height: 1.6; }
.resource-disclosure strong { color: var(--deep); }

@media (max-width: 1060px) {
  .resource-principles, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-card { grid-template-columns: 150px minmax(0, 1fr); }
  .season-card__measure { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .resource-meta, .resource-jump { width: min(100% - 28px, var(--content-max)); }
  .resource-meta { margin-top: -22px; }
  .resource-grid, .resource-principles, .resource-answer, .audit-checks, .metric-grid, .data-layout { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .resource-card__top { margin-bottom: 28px; }
  .audit-score { grid-template-columns: 1fr auto; }
  .audit-score progress { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .season-card { grid-template-columns: 1fr; padding: 24px; }
  .season-card__measure { grid-column: auto; }
  .bar-chart li { grid-template-columns: minmax(95px, .8fr) minmax(90px, 1.2fr) 42px; gap: 8px; }
}

.resource-filter { display:flex; flex-wrap:wrap; align-items:end; gap:1rem; margin:2rem 0; }
.resource-filter label { flex:1 1 220px; display:grid; gap:.5rem; font-weight:700; }
.resource-filter input,.resource-filter select { width:100%; min-height:48px; padding:.7rem; border:1px solid #697586; border-radius:8px; background:#fff; color:#041126; font:inherit; }
.resource-filter a { padding:1rem 0; }
.resource-filter :focus-visible { outline:3px solid #2366a0; outline-offset:3px; }
.resource-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.resource-table-wrap:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.resource-table { width:100%; border-collapse:collapse; text-align:left; font-size:16px; }
.resource-table caption { padding:20px; text-align:left; font-weight:800; color:var(--deep); }
.resource-table th,.resource-table td { padding:16px; vertical-align:top; border-top:1px solid var(--line); min-width:160px; }
.resource-table thead { background:var(--soft); }
.resource-table tbody th { font-weight:700; }

/* Largeurs sans style inline, compatibles avec la CSP du site. */
.bar-width-0 { --bar-width: 0%; }
.bar-width-1 { --bar-width: 1%; }
.bar-width-2 { --bar-width: 2%; }
.bar-width-3 { --bar-width: 3%; }
.bar-width-4 { --bar-width: 4%; }
.bar-width-5 { --bar-width: 5%; }
.bar-width-6 { --bar-width: 6%; }
.bar-width-7 { --bar-width: 7%; }
.bar-width-8 { --bar-width: 8%; }
.bar-width-9 { --bar-width: 9%; }
.bar-width-10 { --bar-width: 10%; }
.bar-width-11 { --bar-width: 11%; }
.bar-width-12 { --bar-width: 12%; }
.bar-width-13 { --bar-width: 13%; }
.bar-width-14 { --bar-width: 14%; }
.bar-width-15 { --bar-width: 15%; }
.bar-width-16 { --bar-width: 16%; }
.bar-width-17 { --bar-width: 17%; }
.bar-width-18 { --bar-width: 18%; }
.bar-width-19 { --bar-width: 19%; }
.bar-width-20 { --bar-width: 20%; }
.bar-width-21 { --bar-width: 21%; }
.bar-width-22 { --bar-width: 22%; }
.bar-width-23 { --bar-width: 23%; }
.bar-width-24 { --bar-width: 24%; }
.bar-width-25 { --bar-width: 25%; }
.bar-width-26 { --bar-width: 26%; }
.bar-width-27 { --bar-width: 27%; }
.bar-width-28 { --bar-width: 28%; }
.bar-width-29 { --bar-width: 29%; }
.bar-width-30 { --bar-width: 30%; }
.bar-width-31 { --bar-width: 31%; }
.bar-width-32 { --bar-width: 32%; }
.bar-width-33 { --bar-width: 33%; }
.bar-width-34 { --bar-width: 34%; }
.bar-width-35 { --bar-width: 35%; }
.bar-width-36 { --bar-width: 36%; }
.bar-width-37 { --bar-width: 37%; }
.bar-width-38 { --bar-width: 38%; }
.bar-width-39 { --bar-width: 39%; }
.bar-width-40 { --bar-width: 40%; }
.bar-width-41 { --bar-width: 41%; }
.bar-width-42 { --bar-width: 42%; }
.bar-width-43 { --bar-width: 43%; }
.bar-width-44 { --bar-width: 44%; }
.bar-width-45 { --bar-width: 45%; }
.bar-width-46 { --bar-width: 46%; }
.bar-width-47 { --bar-width: 47%; }
.bar-width-48 { --bar-width: 48%; }
.bar-width-49 { --bar-width: 49%; }
.bar-width-50 { --bar-width: 50%; }
.bar-width-51 { --bar-width: 51%; }
.bar-width-52 { --bar-width: 52%; }
.bar-width-53 { --bar-width: 53%; }
.bar-width-54 { --bar-width: 54%; }
.bar-width-55 { --bar-width: 55%; }
.bar-width-56 { --bar-width: 56%; }
.bar-width-57 { --bar-width: 57%; }
.bar-width-58 { --bar-width: 58%; }
.bar-width-59 { --bar-width: 59%; }
.bar-width-60 { --bar-width: 60%; }
.bar-width-61 { --bar-width: 61%; }
.bar-width-62 { --bar-width: 62%; }
.bar-width-63 { --bar-width: 63%; }
.bar-width-64 { --bar-width: 64%; }
.bar-width-65 { --bar-width: 65%; }
.bar-width-66 { --bar-width: 66%; }
.bar-width-67 { --bar-width: 67%; }
.bar-width-68 { --bar-width: 68%; }
.bar-width-69 { --bar-width: 69%; }
.bar-width-70 { --bar-width: 70%; }
.bar-width-71 { --bar-width: 71%; }
.bar-width-72 { --bar-width: 72%; }
.bar-width-73 { --bar-width: 73%; }
.bar-width-74 { --bar-width: 74%; }
.bar-width-75 { --bar-width: 75%; }
.bar-width-76 { --bar-width: 76%; }
.bar-width-77 { --bar-width: 77%; }
.bar-width-78 { --bar-width: 78%; }
.bar-width-79 { --bar-width: 79%; }
.bar-width-80 { --bar-width: 80%; }
.bar-width-81 { --bar-width: 81%; }
.bar-width-82 { --bar-width: 82%; }
.bar-width-83 { --bar-width: 83%; }
.bar-width-84 { --bar-width: 84%; }
.bar-width-85 { --bar-width: 85%; }
.bar-width-86 { --bar-width: 86%; }
.bar-width-87 { --bar-width: 87%; }
.bar-width-88 { --bar-width: 88%; }
.bar-width-89 { --bar-width: 89%; }
.bar-width-90 { --bar-width: 90%; }
.bar-width-91 { --bar-width: 91%; }
.bar-width-92 { --bar-width: 92%; }
.bar-width-93 { --bar-width: 93%; }
.bar-width-94 { --bar-width: 94%; }
.bar-width-95 { --bar-width: 95%; }
.bar-width-96 { --bar-width: 96%; }
.bar-width-97 { --bar-width: 97%; }
.bar-width-98 { --bar-width: 98%; }
.bar-width-99 { --bar-width: 99%; }
.bar-width-100 { --bar-width: 100%; }
