:root {
  --ndja-news-blue: #005596;
  --ndja-news-navy: #18324a;
  --ndja-news-coral: #e85d4a;
  --ndja-news-sand: #f5f0e8;
  --ndja-news-line: #dce5eb;
}

.ndja-news { width: 100%; }
.ndja-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
.ndja-news__card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ndja-news-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(18, 49, 72, .08); transition: transform .2s ease, box-shadow .2s ease; }
.ndja-news__card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 49, 72, .13); }
.ndja-news__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #e9f4f8, var(--ndja-news-sand)); }
.ndja-news__media img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.ndja-news__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--ndja-news-blue); }
:root {
  --ndja-news-blue: #005596;
  --ndja-news-navy: #18324a;
  --ndja-news-coral: #e85d4a;
  --ndja-news-sand: #f5f0e8;
  --ndja-news-line: #dce5eb;
}

.ndja-news { width: 100%; }
.ndja-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
.ndja-news__card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ndja-news-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(18, 49, 72, .08); transition: transform .2s ease, box-shadow .2s ease; }
.ndja-news__card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 49, 72, .13); }
.ndja-news__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #e9f4f8, var(--ndja-news-sand)); }
.ndja-news__media img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.ndja-news__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--ndja-news-blue); }
.ndja-news__placeholder span { font-size: 38px; line-height: 1; }
.ndja-news__placeholder small { font-weight: 700; letter-spacing: .04em; }
.ndja-news__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ndja-news__meta { display: flex; min-height: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #5f7280; font-size: .82rem; font-weight: 600; }
.ndja-news__badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #e8f3f8; color: #07577b; font-size: .72rem; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.ndja-news__title { margin: 0 0 10px; color: var(--ndja-news-navy); font-size: clamp(1.2rem, 1.4vw, 1.48rem); line-height: 1.2; overflow-wrap: anywhere; }
.ndja-news__title a { color: inherit; text-decoration: none; }
.ndja-news__title a:hover, .ndja-news__title a:focus-visible { color: var(--ndja-news-blue); }
.ndja-news__excerpt { margin: 0 0 18px; color: #4d5f6c; line-height: 1.58; }
.ndja-news__link { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; margin-top: auto; color: var(--ndja-news-blue); font-weight: 800; text-decoration: none; }
.ndja-news__link:hover { color: var(--ndja-news-coral); }
.ndja-news__link:focus-visible, .ndja-news__title a:focus-visible, .ndja-news__all a:focus-visible, .ndja-news__pagination a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.ndja-news__all { margin: 28px 0 0; text-align: center; }
.ndja-news__all .wp-element-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 24px; background: var(--ndja-news-blue); color: #fff; font-weight: 800; text-decoration: none; }
.ndja-news__all .wp-element-button:hover { background: var(--ndja-news-navy); }
.ndja-news-page { padding: clamp(44px, 7vw, 86px) 0; background: linear-gradient(180deg, #f6fafc 0, #fff 360px); }
.ndja-news-page__header { max-width: 780px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }
.ndja-news-page__eyebrow { margin: 0 0 8px; color: var(--ndja-news-coral); font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ndja-news-page__header h1 { margin: 0 0 12px; color: var(--ndja-news-navy); }
.ndja-news-page__header > p:last-child { margin: 0; color: #546875; font-size: 1.08rem; }
.ndja-news--archive .ndja-news__card { min-height: 100%; }
.ndja-news__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.ndja-news__pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ndja-news-line); border-radius: 11px; padding: 8px 12px; background: #fff; color: var(--ndja-news-navy); font-weight: 800; text-decoration: none; }
.ndja-news__pagination .current { border-color: var(--ndja-news-blue); background: var(--ndja-news-blue); color: #fff; }

@media (max-width: 900px) {
  .ndja-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndja-news--home .ndja-news__card:last-child { grid-column: 1 / -1; width: min(100%, calc(50% - 9px)); justify-self: center; }
}

@media (max-width: 620px) {
  .ndja-news__grid { grid-template-columns: 1fr; gap: 18px; }
  .ndja-news--home .ndja-news__card:last-child { grid-column: auto; width: 100%; }
  .ndja-news__body { padding: 18px; }
  .ndja-news__meta { align-items: flex-start; flex-direction: column; }
  .ndja-news__badge { font-size: .7rem; }
  .ndja-news__all .wp-element-button { width: 100%; }
  .ndja-news-page { padding: 36px 0 54px; }
  .ndja-news-page__header { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ndja-news__card { transition: none; }
  .ndja-news__card:hover { transform: none; }
}

/* Lisibilité du titre de la section actualités sur l’accueil */
.home .wp-block-group__inner-container:has(> .ndja-news--home) > h2 { color: #ffffff !important; }
.home .wp-block-group__inner-container:has(> .ndja-news--home) > p { color: #d8e6ed !important; }
:root {
  --ndja-news-blue: #005596;
  --ndja-news-navy: #18324a;
  --ndja-news-coral: #e85d4a;
  --ndja-news-sand: #f5f0e8;
  --ndja-news-line: #dce5eb;
}

.ndja-news { width: 100%; }
.ndja-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
.ndja-news__card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ndja-news-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(18, 49, 72, .08); transition: transform .2s ease, box-shadow .2s ease; }
.ndja-news__card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(18, 49, 72, .13); }
.ndja-news__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #e9f4f8, var(--ndja-news-sand)); }
.ndja-news__media img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.ndja-news__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--ndja-news-blue); }
.ndja-news__placeholder span { font-size: 38px; line-height: 1; }
.ndja-news__placeholder small { font-weight: 700; letter-spacing: .04em; }
.ndja-news__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ndja-news__meta { display: flex; min-height: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #5f7280; font-size: .82rem; font-weight: 600; }
.ndja-news__badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #e8f3f8; color: #07577b; font-size: .72rem; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.ndja-news__title { margin: 0 0 10px; color: var(--ndja-news-navy); font-size: clamp(1.2rem, 1.4vw, 1.48rem); line-height: 1.2; overflow-wrap: anywhere; }
.ndja-news__title a { color: inherit; text-decoration: none; }
.ndja-news__title a:hover, .ndja-news__title a:focus-visible { color: var(--ndja-news-blue); }
.ndja-news__excerpt { margin: 0 0 18px; color: #4d5f6c; line-height: 1.58; }
.ndja-news__link { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; margin-top: auto; color: var(--ndja-news-blue); font-weight: 800; text-decoration: none; }
.ndja-news__link:hover { color: var(--ndja-news-coral); }
.ndja-news__link:focus-visible, .ndja-news__title a:focus-visible, .ndja-news__all a:focus-visible, .ndja-news__pagination a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.ndja-news__all { margin: 28px 0 0; text-align: center; }
.ndja-news__all .wp-element-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 24px; background: var(--ndja-news-blue); color: #fff; font-weight: 800; text-decoration: none; }
.ndja-news__all .wp-element-button:hover { background: var(--ndja-news-navy); }
.ndja-news-page { padding: clamp(44px, 7vw, 86px) 0; background: linear-gradient(180deg, #f6fafc 0, #fff 360px); }
.ndja-news-page__header { max-width: 780px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }
.ndja-news-page__eyebrow { margin: 0 0 8px; color: var(--ndja-news-coral); font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ndja-news-page__header h1 { margin: 0 0 12px; color: var(--ndja-news-navy); }
.ndja-news-page__header > p:last-child { margin: 0; color: #546875; font-size: 1.08rem; }
.ndja-news--archive .ndja-news__card { min-height: 100%; }
.ndja-news__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.ndja-news__pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ndja-news-line); border-radius: 11px; padding: 8px 12px; background: #fff; color: var(--ndja-news-navy); font-weight: 800; text-decoration: none; }
.ndja-news__pagination .current { border-color: var(--ndja-news-blue); background: var(--ndja-news-blue); color: #fff; }

@media (max-width: 900px) {
  .ndja-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndja-news--home .ndja-news__card:last-child { grid-column: 1 / -1; width: min(100%, calc(50% - 9px)); justify-self: center; }
}

@media (max-width: 620px) {
  .ndja-news__grid { grid-template-columns: 1fr; gap: 18px; }
  .ndja-news--home .ndja-news__card:last-child { grid-column: auto; width: 100%; }
  .ndja-news__body { padding: 18px; }
  .ndja-news__meta { align-items: flex-start; flex-direction: column; }
  .ndja-news__badge { font-size: .7rem; }
  .ndja-news__all .wp-element-button { width: 100%; }
  .ndja-news-page { padding: 36px 0 54px; }
  .ndja-news-page__header { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ndja-news__card { transition: none; }
  .ndja-news__card:hover { transform: none; }
}

/* Lisibilité du titre de la section actualités sur l’accueil */
.home .wp-block-group__inner-container:has(> .ndja-news--home) > h2 { color: #ffffff !important; }
.home .wp-block-group__inner-container:has(> .ndja-news--home) > p { color: #d8e6ed !important; }
.ndja-news__placeholder span { font-size: 38px; line-height: 1; }
.ndja-news__placeholder small { font-weight: 700; letter-spacing: .04em; }
.ndja-news__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.ndja-news__meta { display: flex; min-height: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #5f7280; font-size: .82rem; font-weight: 600; }
.ndja-news__badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #e8f3f8; color: #07577b; font-size: .72rem; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.ndja-news__title { margin: 0 0 10px; color: var(--ndja-news-navy); font-size: clamp(1.2rem, 1.4vw, 1.48rem); line-height: 1.2; overflow-wrap: anywhere; }
.ndja-news__title a { color: inherit; text-decoration: none; }
.ndja-news__title a:hover, .ndja-news__title a:focus-visible { color: var(--ndja-news-blue); }
.ndja-news__excerpt { margin: 0 0 18px; color: #4d5f6c; line-height: 1.58; }
.ndja-news__link { display: inline-flex; align-items: center; align-self: flex-start; gap: 5px; margin-top: auto; color: var(--ndja-news-blue); font-weight: 800; text-decoration: none; }
.ndja-news__link:hover { color: var(--ndja-news-coral); }
.ndja-news__link:focus-visible, .ndja-news__title a:focus-visible, .ndja-news__all a:focus-visible, .ndja-news__pagination a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.ndja-news__all { margin: 28px 0 0; text-align: center; }
.ndja-news__all .wp-element-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 12px 24px; background: var(--ndja-news-blue); color: #fff; font-weight: 800; text-decoration: none; }
.ndja-news__all .wp-element-button:hover { background: var(--ndja-news-navy); }
.ndja-news-page { padding: clamp(44px, 7vw, 86px) 0; background: linear-gradient(180deg, #f6fafc 0, #fff 360px); }
.ndja-news-page__header { max-width: 780px; margin: 0 auto clamp(30px, 5vw, 52px); text-align: center; }
.ndja-news-page__eyebrow { margin: 0 0 8px; color: var(--ndja-news-coral); font-size: .82rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ndja-news-page__header h1 { margin: 0 0 12px; color: var(--ndja-news-navy); }
.ndja-news-page__header > p:last-child { margin: 0; color: #546875; font-size: 1.08rem; }
.ndja-news--archive .ndja-news__card { min-height: 100%; }
.ndja-news__pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 42px; }
.ndja-news__pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--ndja-news-line); border-radius: 11px; padding: 8px 12px; background: #fff; color: var(--ndja-news-navy); font-weight: 800; text-decoration: none; }
.ndja-news__pagination .current { border-color: var(--ndja-news-blue); background: var(--ndja-news-blue); color: #fff; }

@media (max-width: 900px) {
  .ndja-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ndja-news--home .ndja-news__card:last-child { grid-column: 1 / -1; width: min(100%, calc(50% - 9px)); justify-self: center; }
}

@media (max-width: 620px) {
  .ndja-news__grid { grid-template-columns: 1fr; gap: 18px; }
  .ndja-news--home .ndja-news__card:last-child { grid-column: auto; width: 100%; }
  .ndja-news__body { padding: 18px; }
  .ndja-news__meta { align-items: flex-start; flex-direction: column; }
  .ndja-news__badge { font-size: .7rem; }
  .ndja-news__all .wp-element-button { width: 100%; }
  .ndja-news-page { padding: 36px 0 54px; }
  .ndja-news-page__header { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ndja-news__card { transition: none; }
  .ndja-news__card:hover { transform: none; }
}
