/* Actualités rédigées dans le CRM : liste (widget « Actualités du CRM ») et page d'article.
 * Feuille autonome, dans le vocabulaire de la maquette (bleu nuit, or, Avenir / Iowan). */

/* ---- Liste ------------------------------------------------------------- */
.nds-actu { padding-block: clamp(5rem, 8vw, 9rem); background: var(--paper); color: var(--text); font: 400 1rem/1.55 var(--font-sans); border-bottom: 1px solid var(--line); }
.nds-actu *, .nds-actu *::before, .nds-actu *::after { box-sizing: border-box; }
.nds-actu-inner { width: min(100% - 9vw, 1440px); margin-inline: auto; }
.nds-actu-tete { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.nds-actu-surtitre { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.45rem; color: var(--gold-dark); font-size: .81rem; font-weight: 700; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; }
.nds-actu-surtitre::before { content: ""; width: 2.7rem; height: 2px; flex: 0 0 auto; background: currentColor; }
.nds-actu-surtitre--clair { color: var(--gold); }
.nds-actu-titre { margin: 0; max-width: 920px; font-size: clamp(2.45rem, 4.4vw, 4.8rem); font-weight: 750; letter-spacing: -.045em; line-height: 1.08; color: var(--text); }
.nds-actu-titre em { color: var(--gold-dark); font-style: normal; }
.nds-actu-intro { max-width: 500px; margin: 0 0 .35rem; color: var(--steel); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.62; }

.nds-actu-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); margin: 0; padding: 0; list-style: none; }
.nds-actu-grille > li { display: flex; min-width: 0; margin: 0; }
.nds-actu-carte { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-bottom: 3px solid var(--gold); transition: transform .2s ease, box-shadow .2s ease; }
.nds-actu-carte:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(9,30,53,.12); }
.nds-actu-carte:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.nds-actu-visuel { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-deep); }
.nds-actu-visuel img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.nds-actu-visuel-vide { display: grid; place-items: center; height: 100%; color: var(--gold); font: 400 clamp(3rem, 5vw, 4.5rem)/1 var(--font-serif); letter-spacing: -.04em; background: radial-gradient(circle at 70% 20%, var(--navy-soft), var(--navy-deep) 70%); }
.nds-actu-texte { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 2.2vw, 2.2rem); }
.nds-actu-date { margin: 0; color: var(--gold-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.nds-actu-carte h3 { margin: .7rem 0 .7rem; font: 400 clamp(1.6rem, 2vw, 2.2rem)/1.12 var(--font-serif); color: var(--text); }
.nds-actu-carte h3 a { color: inherit; text-decoration: none; }
.nds-actu-carte h3 a:focus { outline: none; }
.nds-actu-carte h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nds-actu-chapo { margin: 0; color: var(--steel); }
.nds-actu-lire { align-self: flex-start; display: inline-flex; gap: .5rem; margin-top: auto; padding-top: 1.4rem; font-weight: 700; color: var(--text); }
.nds-actu-lire::after { content: "→"; color: var(--gold-dark); transition: transform .2s ease; }
.nds-actu-carte:hover .nds-actu-lire::after { transform: translateX(4px); }

.nds-actu-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); color: var(--steel); font-size: .95rem; }
.nds-actu-pages a { padding-bottom: .25rem; border-bottom: 2px solid var(--gold); color: var(--text); font-weight: 700; text-decoration: none; }

/* Renvoi vers les actualités du groupe (sites régionaux) */
.nds-actu-groupe { margin: clamp(1.8rem, 3vw, 2.6rem) 0 0; text-align: center; }
.nds-actu-groupe a { display: inline-flex; gap: .5rem; padding-bottom: .25rem; border-bottom: 2px solid var(--gold); color: var(--text); font-weight: 700; text-decoration: none; }
.nds-actu-groupe a:hover { color: var(--gold-dark); }
.nds-actu--groupe .nds-actu-tete { margin-bottom: 0; }
.nds-actu--groupe .nds-actu-groupe { text-align: left; margin-top: 1.2rem; }

@media (max-width: 1100px) {
	.nds-actu-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.nds-actu-tete { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.nds-actu-grille { grid-template-columns: 1fr; }
}

/* ---- Article ----------------------------------------------------------- */
.nds-article-main { display: block; background: var(--ivory); color: var(--text); font: 400 1rem/1.55 var(--font-sans); }
.nds-article *, .nds-article *::before, .nds-article *::after { box-sizing: border-box; }
.nds-article-tete { padding: clamp(9rem, 13vw, 12rem) 0 clamp(4rem, 6vw, 6rem); background: var(--navy-deep); color: #fff; }
.nds-article-cadre { width: min(100% - 9vw, 1040px); margin-inline: auto; }
.nds-article-ariane ol { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 2.2rem; padding: 0; list-style: none; color: #c9d7e4; font-size: .85rem; }
.nds-article-ariane li + li::before { content: "/"; margin-right: .4rem; color: rgba(255,255,255,.4); }
.nds-article-ariane a { color: #fff; text-decoration: underline; text-decoration-color: rgba(231,182,61,.7); text-underline-offset: .2em; }
.nds-article-ariane [aria-current] { overflow: hidden; max-width: 32ch; text-overflow: ellipsis; white-space: nowrap; }
.nds-article-titre { max-width: 980px; margin: 0; font-size: clamp(2.6rem, 5.2vw, 5.4rem); font-weight: 780; letter-spacing: -.05em; line-height: 1.04; text-wrap: balance; }
.nds-article-chapo { max-width: 770px; margin: 1.8rem 0 0; color: #dce4eb; font-size: clamp(1.08rem, 1.7vw, 1.37rem); line-height: 1.55; }
.nds-article-visuel { width: min(100% - 9vw, 1040px); margin: clamp(-3rem, -3vw, -1.5rem) auto 0; }
.nds-article-visuel img { display: block; width: 100%; height: auto; max-width: 100%; box-shadow: 0 24px 60px rgba(9,30,53,.18); }
.nds-article-corps { width: min(100% - 9vw, 760px); margin: clamp(3rem, 5vw, 4.5rem) auto 0; font-size: 1.08rem; line-height: 1.75; }
.nds-article-corps > :first-child { margin-top: 0; }
.nds-article-corps p, .nds-article-corps ul, .nds-article-corps ol { margin: 0 0 1.3em; }
.nds-article-corps h2 { margin: 2.2em 0 .7em; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.15; }
.nds-article-corps h3 { margin: 1.8em 0 .6em; font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.2 var(--font-serif); }
.nds-article-corps a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.nds-article-corps a:hover { color: var(--gold-dark); }
.nds-article-corps img { display: block; max-width: 100%; height: auto; }
.nds-article-corps figure, .nds-article-corps .wp-caption { max-width: 100%; margin: 2em 0; }
.nds-article-corps figcaption, .nds-article-corps .wp-caption-text { margin-top: .6rem; color: var(--steel); font-size: .88rem; }
.nds-article-corps blockquote { margin: 2em 0; padding: .2em 0 .2em 1.5em; border-left: 3px solid var(--gold); font: 400 1.35rem/1.45 var(--font-serif); }
.nds-article-corps iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.nds-article-corps .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.nds-article-corps .alignright { float: right; margin: .3em 0 1em 1.5em; }
.nds-article-corps .aligncenter { margin-inline: auto; }
.nds-article-corps::after { content: ""; display: table; clear: both; }
.nds-article-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; width: min(100% - 9vw, 760px); margin: clamp(3rem, 5vw, 4.5rem) auto 0; padding: 2rem 0 clamp(5rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.nds-article-retour { padding-bottom: .25rem; border-bottom: 2px solid var(--gold); color: var(--text); font-weight: 700; text-decoration: none; }
.nds-article-contact { display: inline-flex; align-items: center; min-height: 3.25rem; padding: .78rem 1.4rem; border-radius: .55rem; background: var(--gold); color: var(--navy-deep); font-weight: 750; line-height: 1.15; text-decoration: none; transition: background .2s ease; }
.nds-article-contact:hover { background: #f0c458; }
@media (max-width: 600px) {
	.nds-article-corps .alignleft, .nds-article-corps .alignright { float: none; margin: 1.5em 0; }
}
@media (prefers-reduced-motion: reduce) {
	.nds-actu-carte, .nds-actu-lire::after, .nds-article-contact { transition: none; }
	.nds-actu-carte:hover { transform: none; }
}

/* Vidéo légère dans une actualité ([nds_video]) */
.nds-article-corps .nds-actu-video { margin: 2em 0; }
.nds-article-corps .video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .35rem; background: var(--navy-deep); box-shadow: 0 20px 55px rgba(8,28,48,.14); }
.nds-article-corps .video-poster, .nds-article-corps .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nds-article-corps .video-poster { display: block; padding: 0; overflow: hidden; background: var(--navy-deep); color: #fff; cursor: pointer; }
.nds-article-corps .video-poster img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(.82) saturate(.78); }
.nds-article-corps .video-poster-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,27,48,.62), rgba(7,27,48,.05) 60%); }
.nds-article-corps .video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: clamp(4.2rem, 7vw, 6rem); height: clamp(4.2rem, 7vw, 6rem); padding-left: .25rem; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-size: clamp(1.35rem, 2.4vw, 2rem); transform: translate(-50%, -50%); }
.nds-article-corps .video-poster-label { position: absolute; right: 1.5rem; bottom: 1.2rem; left: 1.5rem; font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-align: left; text-transform: uppercase; }
.nds-article-corps .nds-actu-video figcaption { margin-top: .6rem; font-size: .9rem; }
