/* Opportunités : announcements and guidance selected by XIB'ART. */
.opportunities-main { max-width: 1240px; margin: auto; padding: 70px 40px 80px; }
.opportunities-dashboard { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.opportunities-intro { display: grid; grid-template-columns: 1fr 230px; align-items: end; gap: 50px; padding-bottom: 48px; }
.opportunities-intro h1 { font: clamp(43px, 5.3vw, 76px)/.98 var(--serif); letter-spacing: -1.5px; margin: 0; }
.opportunities-intro h1 em { color: var(--coral); }
.opportunities-description { max-width: 590px; color: #626c78; font-size: 14px; line-height: 1.85; margin: 25px 0 0; }
.opportunities-selection { border-left: 3px solid var(--blue); padding: 12px 0 12px 28px; position: relative; }
.opportunities-selection > span { position: absolute; right: 18px; top: 12px; color: var(--coral); font-size: 35px; }
.opportunities-selection strong { display: block; color: var(--blue); font: 66px/1 var(--serif); }
.opportunities-selection p { font-size: 12px; line-height: 1.7; color: #626c78; margin: 10px 0 0; }
.opportunities-toolbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 24px 0; }
.opportunity-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.opportunity-filter { border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 11px 14px; font: 700 11px var(--sans); cursor: pointer; }
.opportunity-filter.active, .opportunity-filter:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.opportunity-search { min-width: 0; flex: 0 1 300px; }
.opportunity-search label { display: block; color: #626c78; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.opportunity-search > div { display: flex; background: var(--white); border: 1px solid var(--line); }
.opportunity-search input { width: 100%; min-width: 0; padding: 11px 12px; border: 0; background: transparent; color: var(--ink); font: 12px var(--sans); }
.opportunity-search button { width: 42px; flex-shrink: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 23px; }
.opportunity-search:focus-within > div { border-color: var(--blue); }
.opportunity-count { margin: 22px 0; color: #626c78; font-size: 12px; }
.opportunities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.opportunity-card { min-width: 0; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.opportunity-card:hover { border-color: var(--blue); }
.opportunity-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.opportunity-image { aspect-ratio: 16 / 9; background: var(--white); border-bottom: 1px solid var(--line); overflow: hidden; }
.opportunity-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.opportunity-content { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.opportunity-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.opportunity-category { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.opportunity-expired { color: #626c78; background: var(--paper); padding: 5px 7px; font-size: 9px; font-weight: 700; }
.opportunity-content h2 { font: 25px/1.15 var(--serif); margin: 15px 0 12px; }
.opportunity-content > p { color: #626c78; font-size: 12px; line-height: 1.75; margin: 0 0 20px; }
.opportunity-content > .opportunity-deadline { font-size: 10px; }
.opportunity-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; border-top: 1px solid var(--line); padding-top: 17px; color: var(--blue); font-size: 11px; font-weight: 800; }
.opportunity-cta > span[aria-hidden] { color: var(--coral); font-size: 20px; }
.opportunities-empty { text-align: center; border: 1px solid var(--line); background: var(--white); padding: 48px 24px; }
.opportunities-empty h2 { font: 30px/1.1 var(--serif); margin: 0 0 15px; }
.opportunities-empty p { color: #626c78; font-size: 13px; line-height: 1.7; margin-bottom: 25px; }
.opportunities-source-note { color: #626c78; font-size: 11px; line-height: 1.8; margin: 32px 0 0; max-width: 780px; }
.opportunity-link:focus-visible, .opportunity-filter:focus-visible, .opportunities-dashboard:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.opportunity-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.opportunity-card[hidden], .opportunities-empty[hidden] { display: none; }

@media (max-width: 1000px) {
    .opportunities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .opportunities-main { padding: 50px 24px 65px; }
    .opportunities-intro { grid-template-columns: 1fr 170px; gap: 30px; }
}
@media (max-width: 600px) {
    .opportunities-page .site-header { gap: 12px; }
    .opportunities-intro { grid-template-columns: 1fr; gap: 26px; padding-bottom: 32px; }
    .opportunities-selection { display: flex; align-items: center; gap: 16px; padding: 5px 20px; }
    .opportunities-selection strong { font-size: 44px; }
    .opportunities-selection p { margin: 0; }
    .opportunities-selection > span { right: 0; }
    .opportunities-grid { grid-template-columns: 1fr; }
    .opportunity-search { flex-basis: 100%; }
    .opportunity-content { padding: 22px; }
    .opportunity-filter { padding: 10px 12px; }
    .opportunities-description { font-size: 13px; }
}
