/*
Theme Name: NDAKISA
Theme URI: https://ndakisa.com
Author: NDAKISA
Author URI: https://ndakisa.com
Description: Thème de presse en ligne pour NDAKISA, magazine d'information en lingala, l'exemple à suivre. Une, flash info, rubriques, vidéos YouTube, newsletter, formulaire de contact, publicité et partage WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ndakisa
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
	--nuit: #030b20;
	--nuit-2: #0a1636;
	--nuit-3: #14214a;
	--bleu: #1b64f0;
	--bleu-fonce: #0b4bd1;
	--bleu-pale: #e8f0ff;
	--papier: #f4f7fc;
	--blanc: #ffffff;
	--encre: #0d1330;
	--ardoise: #56607a;
	--ligne: #dbe2f0;
	--rouge: #e5333a;

	--f-titre: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--f-texte: "Source Serif 4", Georgia, "Times New Roman", serif;

	--wrap: 1240px;
	--gap: clamp(1rem, 2.2vw, 1.75rem);
	--pt: .7em; /* pointe de la flèche */
	--r: 4px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font-family: var(--f-titre);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--bleu-fonce); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--bleu); }
h1, h2, h3, h4 { font-family: var(--f-titre); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.012em; color: var(--encre); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: .5rem; top: -4rem; z-index: 1000; background: var(--blanc); color: var(--encre);
	padding: .6rem 1rem; font-weight: 700; border-radius: var(--r);
}
.skip-link:focus { top: .5rem; }
.ndk-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.ndk-narrow { max-width: 820px; }
.ndk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ndk-main { min-height: 50vh; }

/* ==========================================================================
   3. Éléments de marque : la pointe de flèche du logo
   ========================================================================== */
.ndk-tag {
	display: inline-block;
	background: var(--bleu);
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	padding: .42em calc(var(--pt) + .7em) .42em .75em;
	clip-path: polygon(0 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, 0 100%);
	text-decoration: none;
	margin-bottom: .55rem;
}
.ndk-tag:hover { background: var(--bleu-fonce); color: #fff; }

.ndk-btn {
	display: inline-block;
	background: var(--bleu);
	color: #fff;
	border: 0;
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.1;
	padding: .85em calc(1.4em + var(--pt)) .85em 1.3em;
	clip-path: polygon(0 0, calc(100% - .9em) 0, 100% 50%, calc(100% - .9em) 100%, 0 100%);
	text-decoration: none;
	cursor: pointer;
}
.ndk-btn:hover { background: var(--bleu-fonce); color: #fff; }
.ndk-btn--ghost { background: transparent; color: var(--bleu-fonce); box-shadow: inset 0 0 0 2px var(--bleu); clip-path: none; padding-right: 1.3em; border-radius: 2px; }
.ndk-btn--ghost:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }

.ndk-chip {
	display: inline-block; font-size: .85rem; font-weight: 600; padding: .45em .9em;
	border: 1px solid var(--ligne); background: var(--blanc); color: var(--encre);
	border-radius: 999px; text-decoration: none; cursor: pointer;
}
.ndk-chip:hover { border-color: var(--bleu); color: var(--bleu-fonce); }

/* En-têtes de section */
.ndk-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.ndk-sectitle {
	display: inline-block;
	margin: 0 0 1.1rem;
	background: var(--nuit);
	color: #fff;
	font-size: 1.15rem;
	font-weight: 700;
	padding: .5em calc(var(--pt) + 1.3em) .5em 1em;
	clip-path: polygon(0 0, calc(100% - 1em) 0, 100% 50%, calc(100% - 1em) 100%, 0 100%);
	letter-spacing: -.005em;
}
.ndk-sechead .ndk-sectitle { margin-bottom: 0; }
.ndk-sechead--dark .ndk-sectitle { background: var(--bleu); }
.ndk-more { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* ==========================================================================
   4. Barre haute, en-tête, navigation
   ========================================================================== */
.ndk-topbar { background: var(--nuit); color: #b9c4e4; font-size: .82rem; border-bottom: 1px solid var(--nuit-3); }
.ndk-topbar__in { display: flex; align-items: center; gap: 1.25rem; min-height: 2.4rem; }
.ndk-topbar__date { margin-right: auto; }
.ndk-live { display: inline-flex; align-items: center; gap: .45rem; color: #fff; font-weight: 700; text-decoration: none; }
.ndk-live:hover { color: #fff; text-decoration: underline; }
.ndk-live__dot { width: .6rem; height: .6rem; background: var(--rouge); border-radius: 50%; box-shadow: 0 0 0 0 rgba(229, 51, 58, .7); animation: ndk-pulse 2s infinite; }
@keyframes ndk-pulse { 70% { box-shadow: 0 0 0 .55rem rgba(229, 51, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 51, 58, 0); } }

.ndk-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ndk-socials a { color: inherit; text-decoration: none; font-weight: 600; }
.ndk-socials a:hover { color: #fff; text-decoration: underline; }
.ndk-socials--box a { color: var(--bleu-fonce); }
.ndk-socials--box a:hover { color: var(--bleu); }
.ndk-socials--foot a { color: #cdd6f1; }

.ndk-masthead { position: sticky; top: 0; z-index: 60; background: var(--nuit); color: #fff; transition: box-shadow .2s; }
.ndk-masthead.is-stuck { box-shadow: 0 6px 18px rgba(3, 11, 32, .35); }
.admin-bar .ndk-masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar .ndk-masthead { top: 46px; } }
.ndk-masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.ndk-masthead__tools { display: flex; gap: .4rem; }

.ndk-brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; color: #fff; }
.ndk-brand:hover { color: #fff; }
.ndk-brand__mark { height: 2.5rem; width: auto; }
.ndk-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ndk-brand__name { font-family: var(--f-titre); font-weight: 800; font-size: 1.7rem; letter-spacing: .01em; color: #fff; }
.ndk-brand__blue { color: #4b8bff; }
.ndk-brand__name sup { font-size: .5em; font-weight: 700; color: #ff5a60; margin-left: .15em; vertical-align: baseline; position: relative; top: .1em; }
.ndk-brand__tag { font-size: .72rem; color: #9fb0da; margin-top: .3rem; font-weight: 500; }
.custom-logo { max-height: 3rem; width: auto; }

.ndk-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
	background: transparent; color: #fff; border: 1px solid var(--nuit-3); border-radius: 50%; cursor: pointer;
}
.ndk-iconbtn:hover { background: var(--nuit-3); }
.ndk-burger { display: none; }

.ndk-searchpanel { background: var(--nuit-2); padding-block: .9rem; border-top: 1px solid var(--nuit-3); }
.ndk-searchpanel[hidden] { display: none; }

.ndk-nav { background: var(--nuit-2); border-top: 1px solid var(--nuit-3); }
.ndk-menu, .ndk-menu ul { list-style: none; margin: 0; padding: 0; }
.ndk-menu { display: flex; flex-wrap: wrap; gap: 0 .2rem; }
.ndk-menu li { position: relative; margin: 0; }
.ndk-menu a {
	display: block; padding: .8rem .85rem; color: #dbe4fb; font-weight: 600; font-size: .94rem; text-decoration: none;
	border-bottom: 3px solid transparent;
}
.ndk-menu a:hover, .ndk-menu .current-menu-item > a, .ndk-menu .current-cat > a { color: #fff; border-bottom-color: var(--bleu); }
.ndk-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; background: var(--nuit-2); border: 1px solid var(--nuit-3); z-index: 5; }
.ndk-menu li:hover > .sub-menu, .ndk-menu li:focus-within > .sub-menu { display: block; }
.ndk-menu .sub-menu a { border-bottom: 0; }

.ndk-adtop { padding-block: 1rem 0; text-align: center; }
.ndk-ad img { margin-inline: auto; }

/* Flash info */
.ndk-ticker { background: var(--blanc); border-bottom: 1px solid var(--ligne); }
.ndk-ticker__in { display: flex; align-items: center; gap: 1rem; min-height: 2.8rem; }
.ndk-ticker__label {
	flex: none; background: var(--rouge); color: #fff; font-weight: 800; font-size: .85rem; line-height: 1;
	padding: .5em calc(var(--pt) + .9em) .5em .9em;
	clip-path: polygon(0 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, 0 100%);
}
.ndk-ticker__view { display: flex; overflow: hidden; flex: 1; min-width: 0; }
.ndk-ticker__track {
	flex: none; display: flex; gap: 2.5rem; margin: 0; padding: 0 2.5rem 0 0; list-style: none;
	min-width: 100%; animation: ndk-scroll 70s linear infinite;
}
.ndk-ticker__track a { color: var(--encre); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.ndk-ticker__track a:hover { color: var(--bleu-fonce); text-decoration: underline; }
.ndk-ticker__view:hover .ndk-ticker__track, .ndk-ticker__view:focus-within .ndk-ticker__track { animation-play-state: paused; }
@keyframes ndk-scroll { to { transform: translateX(-100%); } }

/* ==========================================================================
   5. Cartes
   ========================================================================== */
.ndk-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ndk-card__media {
	display: block; position: relative; overflow: hidden; border-radius: var(--r); background: var(--nuit);
	aspect-ratio: 16 / 10;
}
.ndk-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ndk-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--nuit), var(--nuit-3)); }
.ndk-ph img { width: 40%; height: auto; object-fit: contain; opacity: .9; }
.ndk-card__body { padding-top: .8rem; display: flex; flex-direction: column; align-items: flex-start; }
.ndk-card__title { font-size: 1.2rem; font-weight: 700; line-height: 1.22; margin: 0 0 .4rem; }
.ndk-card__title a { color: var(--encre); text-decoration: none; }
.ndk-card__title a:hover { color: var(--bleu-fonce); text-decoration: underline; text-decoration-thickness: .06em; }
.ndk-card__excerpt { font-family: var(--f-texte); color: var(--ardoise); font-size: 1rem; line-height: 1.5; margin: 0 0 .5rem; }
.ndk-meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin: 0; color: var(--ardoise); font-size: .82rem; }
.ndk-meta__author { font-weight: 700; color: var(--encre); }

/* Carte « à la une » : le titre est posé sur l'image */
.ndk-card--overlay { height: 100%; }
.ndk-card--overlay .ndk-card__media { flex: 1; }
.ndk-card--overlay .ndk-card__media { aspect-ratio: auto; height: 100%; min-height: 22rem; border-radius: var(--r); }
.ndk-card--overlay .ndk-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 11, 32, .94) 0%, rgba(3, 11, 32, .55) 45%, rgba(3, 11, 32, 0) 75%); }
.ndk-card--overlay .ndk-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1rem, 3vw, 2rem); pointer-events: none; }
.ndk-card--overlay .ndk-card__body > * { pointer-events: auto; }
.ndk-card--overlay .ndk-card__title { font-size: clamp(1.55rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.08; max-width: 24ch; margin-bottom: .6rem; }
.ndk-card--overlay .ndk-card__title a { color: #fff; }
.ndk-card--overlay .ndk-card__title a:hover { color: #fff; text-decoration-color: var(--bleu); }
.ndk-card--overlay .ndk-card__excerpt { color: #d4dcf3; max-width: 60ch; display: none; }
.ndk-card--overlay .ndk-meta { color: #b9c4e4; }
.ndk-card--overlay .ndk-meta__author { color: #fff; }
@media (min-width: 700px) { .ndk-card--overlay .ndk-card__excerpt { display: block; } }

/* Carte horizontale */
.ndk-card--row { flex-direction: row; gap: .9rem; align-items: flex-start; }
.ndk-card--row .ndk-card__media { flex: none; width: 7.5rem; aspect-ratio: 4 / 3; }
.ndk-card--row .ndk-card__body { padding-top: 0; }
.ndk-card--row .ndk-card__title { font-size: 1rem; }
.ndk-card--row .ndk-tag { font-size: .7rem; margin-bottom: .35rem; }

/* Carte texte seul */
.ndk-card--text { padding: .85rem 0 .85rem 1.4rem; border-top: 1px solid var(--ligne); }
.ndk-card--text::before {
	content: ""; position: absolute; left: 0; top: 1.15rem; width: .6rem; height: .85rem; background: var(--bleu);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ndk-card--text:first-child { border-top: 0; padding-top: 0; }
.ndk-card--text:first-child::before { top: .3rem; }
.ndk-card--text .ndk-card__body { padding-top: 0; }
.ndk-card--text .ndk-card__title { font-size: 1.02rem; margin-bottom: .25rem; }

.ndk-play {
	position: absolute; left: .7rem; bottom: .7rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
	background: var(--bleu); color: #fff; display: grid; place-items: center; padding-left: .12rem;
}
.ndk-play--lg { width: 4.4rem; height: 4.4rem; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); box-shadow: 0 0 0 .5rem rgba(255, 255, 255, .25); }

/* ==========================================================================
   6. Accueil
   ========================================================================== */
.ndk-hero { display: grid; gap: var(--gap); padding-top: var(--gap); grid-template-columns: 1fr; }
.ndk-hero__side { display: grid; gap: 1rem; align-content: start; }
.ndk-hero__side .ndk-card--row { padding-bottom: 1rem; border-bottom: 1px solid var(--ligne); }
.ndk-hero__side .ndk-card--row:last-child { border-bottom: 0; }
@media (min-width: 960px) {
	.ndk-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.ndk-hero .ndk-card--overlay .ndk-card__media { min-height: 30rem; }
}

.ndk-section { padding-block: clamp(1.75rem, 4vw, 3rem) 0; }
.ndk-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ndk-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ndk-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.ndk-empty { padding-block: 4rem; text-align: center; }
.ndk-empty h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 22ch; margin-inline: auto; }
.ndk-empty p { color: var(--ardoise); }

/* Bande vidéo */
.ndk-videos { background: var(--nuit); color: #fff; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(1.75rem, 4vw, 3rem); }
.ndk-videos .ndk-more { color: #9ec0ff; }
.ndk-videos .ndk-more:hover { color: #fff; }
.ndk-videos__grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 960px) { .ndk-videos__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.ndk-embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; display: block; }
.ndk-embed img, .ndk-embed iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.ndk-embed__btn { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ndk-embed__btn:hover .ndk-play--lg, .ndk-embed--link:hover .ndk-play--lg { background: var(--bleu-fonce); }
.ndk-videos__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: .9rem 0 .35rem; }
.ndk-videos__title a { color: #fff; text-decoration: none; }
.ndk-videos__title a:hover { text-decoration: underline; }
.ndk-videos .ndk-meta { color: #9fb0da; }
.ndk-videos__list { display: grid; gap: 1.1rem; align-content: start; }
.ndk-videos .ndk-card--row .ndk-card__title a { color: #fff; }
.ndk-videos .ndk-card--row .ndk-card__title a:hover { color: #9ec0ff; }
.ndk-videos .ndk-meta__author { color: #fff; }
.ndk-videos__promo { display: grid; gap: var(--gap); align-items: center; }
.ndk-videos__promo img { border-radius: var(--r); width: 100%; }
.ndk-videos__promo h3 { color: #fff; font-size: 1.6rem; }
.ndk-videos__promo p { color: #c3cdea; font-family: var(--f-texte); font-size: 1.1rem; }
@media (min-width: 860px) { .ndk-videos__promo { grid-template-columns: 1.2fr 1fr; } }

/* Colonnes : contenu + latéral */
.ndk-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; padding-block: clamp(1.75rem, 4vw, 3rem) 0; }
.ndk-split > * { min-width: 0; }
@media (min-width: 1020px) { .ndk-split { grid-template-columns: minmax(0, 1fr) 20rem; } }
.ndk-block { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.ndk-block__grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 720px) { .ndk-block__grid { grid-template-columns: 1.1fr 1fr; } }

.ndk-aside { display: flex; flex-direction: column; gap: 1.75rem; }
.ndk-widget { background: var(--blanc); padding: 1.25rem; border-radius: var(--r); border: 1px solid var(--ligne); }
.ndk-widget__title { font-size: 1.05rem; margin-bottom: .9rem; }
.ndk-popular__list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.ndk-popular__list li { counter-increment: pop; display: grid; grid-template-columns: 2.1rem 1fr; gap: .5rem; padding: .7rem 0; border-top: 1px solid var(--ligne); }
.ndk-popular__list li:first-child { border-top: 0; padding-top: 0; }
.ndk-popular__list li::before { content: counter(pop); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--bleu); }
.ndk-popular__list a { color: var(--encre); font-weight: 600; text-decoration: none; line-height: 1.3; }
.ndk-popular__list a:hover { color: var(--bleu-fonce); text-decoration: underline; }
@media (min-width: 1020px) { .ndk-aside { position: sticky; top: 7.5rem; align-self: start; } }

/* Manifeste */
.ndk-manifesto { background: var(--bleu); color: #fff; margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2.25rem, 6vw, 4rem); }
.ndk-manifesto h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1.05; max-width: 20ch; margin-bottom: 1rem; }
.ndk-manifesto__lead { font-family: var(--f-texte); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; color: #e3ecff; }
.ndk-manifesto .ndk-btn { background: #fff; color: var(--bleu-fonce); }
.ndk-manifesto .ndk-btn:hover { background: var(--nuit); color: #fff; }
.ndk-principles { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ndk-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ndk-principles { grid-template-columns: repeat(4, 1fr); } }
.ndk-principles li { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; background: rgba(255, 255, 255, .12); border-left: 4px solid #fff; border-radius: 0 var(--r) var(--r) 0; }
.ndk-principles strong { font-size: 1.15rem; }
.ndk-principles span { font-family: var(--f-texte); font-size: 1rem; line-height: 1.45; color: #e3ecff; }
.ndk-principles--light li { background: var(--blanc); border-left-color: var(--bleu); }
.ndk-principles--light strong { color: var(--encre); }
.ndk-principles--light span { color: var(--ardoise); }

/* Newsletter */
.ndk-newsletter { background: var(--nuit); color: #fff; border-radius: var(--r); padding: clamp(1.25rem, 4vw, 2.25rem); }
.ndk-newsletter__in { display: grid; gap: 1rem; }
.ndk-newsletter h2 { color: #fff; font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-bottom: .35rem; }
.ndk-newsletter p { margin: 0; color: #b9c4e4; font-family: var(--f-texte); }
.ndk-newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ndk-newsletter__form input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: .8rem 1rem; border-radius: var(--r); border: 2px solid transparent; background: #fff; color: var(--encre); }
.ndk-newsletter__form input[type="email"]:focus-visible { outline-color: #9ec0ff; }
.ndk-newsletter--band .ndk-newsletter__in { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .ndk-newsletter--band .ndk-newsletter__in { grid-template-columns: 1.1fr 1fr; } .ndk-newsletter--band .ndk-notice { grid-column: 1 / -1; } }
.ndk-newsletter--compact { background: var(--bleu); }
.ndk-newsletter--compact p { color: #e3ecff; }
.ndk-newsletter--compact .ndk-btn { background: var(--nuit); }
.ndk-newsletter--compact .ndk-btn:hover { background: #000; }

.ndk-notice { margin: .25rem 0 0; padding: .6rem .9rem; border-radius: var(--r); font-size: .92rem; font-weight: 600; font-family: var(--f-titre) !important; }
.ndk-notice--ok { background: #dcf7e6; color: #0b5a2b !important; }
.ndk-notice--err { background: #fde3e4; color: #8b1217 !important; }

/* ==========================================================================
   7. Pied de page
   ========================================================================== */
.ndk-footer { background: var(--nuit); color: #b9c4e4; margin-top: clamp(2.5rem, 6vw, 4.5rem); font-size: .95rem; }
.ndk-footer a { color: #cdd6f1; text-decoration: none; }
.ndk-footer a:hover { color: #fff; text-decoration: underline; }
.ndk-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.25rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ndk-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ndk-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.ndk-footer__lead { max-width: 32ch; margin: 1rem 0; font-family: var(--f-texte); }
.ndk-footer__title { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.ndk-footer ul { list-style: none; margin: 0; padding: 0; }
.ndk-footer li { margin-bottom: .45rem; }
.ndk-footer address { display: flex; flex-direction: column; gap: .4rem; }
.ndk-footer__bar { border-top: 1px solid var(--nuit-3); }
.ndk-footer__barin { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-block: 1rem; font-size: .85rem; }
.ndk-footer__barin p { margin: 0; }
.ndk-footer__barin p:last-of-type { margin-right: auto; }

/* ==========================================================================
   8. Pages internes
   ========================================================================== */
.ndk-pagehead { background: var(--nuit); color: #fff; padding-block: clamp(1.75rem, 5vw, 3rem); }
.ndk-pagehead__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; margin: 0 0 .4rem; }
.ndk-pagehead__desc { color: #b9c4e4; font-family: var(--f-texte); font-size: 1.1rem; max-width: 60ch; }
.ndk-pagehead__desc p:last-child { margin-bottom: 0; }
.ndk-pagehead .ndk-search { margin-top: 1rem; max-width: 40rem; }

.ndk-listing { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .ndk-listing { grid-template-columns: repeat(2, 1fr); } .ndk-listing > .ndk-card--overlay { grid-column: 1 / -1; } }
.ndk-none { padding-block: 2rem; }
.ndk-none .ndk-search, .ndk-404 .ndk-search { max-width: 36rem; margin-block: 1rem; }

.navigation.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.nav-links .page-numbers { padding: .55rem .9rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); color: var(--encre); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; }

/* Formulaires */
.ndk-search { display: flex; gap: .6rem; flex-wrap: wrap; }
.ndk-search input[type="search"] { flex: 1 1 16rem; min-width: 0; padding: .8rem 1rem; border: 2px solid var(--ligne); border-radius: var(--r); background: #fff; color: var(--encre); }
.ndk-contact__form input[type="text"], .ndk-contact__form input[type="email"], .ndk-contact__form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .8rem 1rem; border: 2px solid var(--ligne); border-radius: var(--r); background: #fff; color: var(--encre);
}
.ndk-contact__form label, .comment-form label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .92rem; }
.ndk-contact__form input:focus, .ndk-contact__form textarea:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--bleu); outline: none; box-shadow: 0 0 0 3px rgba(27, 100, 240, .25); }

.ndk-contact { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(1.75rem, 4vw, 3rem) 0; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ndk-contact { grid-template-columns: 1.4fr 1fr; } }
.ndk-contact__info address p { display: flex; flex-direction: column; margin-bottom: 1rem; }
.ndk-hint { background: #fff8e1; color: #5f4b00; padding: .8rem 1rem; border-radius: var(--r); font-size: .9rem; border: 1px solid #f2dd8a; }

.ndk-404 { padding-block: clamp(3rem, 8vw, 6rem); }
.ndk-404__code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--bleu); margin: 0; }

/* Équipe */
.ndk-team { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.ndk-team__card { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.25rem; text-align: left; }
.ndk-team__photo { width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; margin-bottom: .9rem; }
.ndk-team__card h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.ndk-team__card p { font-family: var(--f-texte); color: var(--ardoise); }

/* ==========================================================================
   9. Article
   ========================================================================== */
.ndk-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 100; pointer-events: none; }
.admin-bar .ndk-progress { top: 32px; }
.ndk-progress span { display: block; height: 100%; width: 0; background: var(--rouge); }

.ndk-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 1rem; padding: 0; font-size: .85rem; color: var(--ardoise); }
.ndk-crumbs li + li::before { content: ""; display: inline-block; width: .4rem; height: .6rem; margin-right: .5rem; background: var(--ligne); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ndk-crumbs a { color: var(--ardoise); }

.ndk-article__head { margin-bottom: 1.25rem; }
.ndk-article__title { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin: .2rem 0 .8rem; max-width: 22ch; }
.ndk-article__lead { font-family: var(--f-texte); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--ardoise); max-width: 46ch; }
.ndk-byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.ndk-byline__avatar { border-radius: 50%; }
.ndk-byline__name { display: block; font-weight: 700; }
.ndk-byline__name a { color: var(--encre); text-decoration: none; }
.ndk-byline__name a:hover { text-decoration: underline; }
.ndk-byline__meta { display: flex; flex-wrap: wrap; gap: 0 .9rem; font-size: .85rem; color: var(--ardoise); }

.ndk-article__figure { margin: 1.25rem 0 1.75rem; }
.ndk-article__figure img { width: 100%; border-radius: var(--r); }
.ndk-article__figure figcaption { font-size: .85rem; color: var(--ardoise); margin-top: .5rem; }

.ndk-prose { font-family: var(--f-texte); font-size: 1.15rem; line-height: 1.75; max-width: 68ch; }
.ndk-prose > * + * { margin-top: 1.2em; margin-bottom: 0; }
.ndk-prose h2 { font-family: var(--f-titre); font-size: 1.7rem; font-weight: 800; margin-top: 2em; }
.ndk-prose h3 { font-family: var(--f-titre); font-size: 1.3rem; font-weight: 700; margin-top: 1.6em; }
.ndk-prose a { color: var(--bleu-fonce); }
.ndk-prose blockquote {
	margin-inline: 0; padding: 1rem 1.25rem 1rem 1.5rem; border-left: 5px solid var(--bleu); background: var(--bleu-pale);
	font-family: var(--f-titre); font-size: 1.35rem; font-weight: 600; line-height: 1.35; border-radius: 0 var(--r) var(--r) 0;
}
.ndk-prose blockquote p { margin: 0; }
.ndk-prose img, .ndk-prose figure { border-radius: var(--r); }
.ndk-prose figcaption { font-family: var(--f-titre); font-size: .85rem; color: var(--ardoise); }
.ndk-prose ul, .ndk-prose ol { padding-left: 1.4rem; }
.ndk-prose li + li { margin-top: .4em; }
.ndk-prose .alignwide { max-width: min(100%, 1000px); }
.ndk-prose .alignleft { float: left; margin: .3em 1.2em .6em 0; }
.ndk-prose .alignright { float: right; margin: .3em 0 .6em 1.2em; }
.ndk-prose .aligncenter { margin-inline: auto; }
.ndk-prose table { width: 100%; border-collapse: collapse; font-family: var(--f-titre); font-size: .95rem; }
.ndk-prose th, .ndk-prose td { border: 1px solid var(--ligne); padding: .55rem .7rem; text-align: left; }
.ndk-prose .wp-block-embed iframe, .ndk-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.ndk-pages { margin-top: 1.5rem; font-family: var(--f-titre); }

.ndk-article__foot { margin-top: 2rem; display: grid; gap: 1.5rem; }
.ndk-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.ndk-tags a { display: inline-block; background: var(--bleu-pale); color: var(--bleu-fonce); padding: .3em .75em; border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.ndk-tags a:hover { background: var(--bleu); color: #fff; }
.ndk-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ndk-share__label { font-weight: 700; margin-right: .3rem; }
.ndk-author { display: flex; gap: 1rem; align-items: flex-start; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.25rem; }
.ndk-author__avatar { border-radius: 50%; flex: none; }
.ndk-author__name { font-size: 1.1rem; margin-bottom: .3rem; }
.ndk-author__name a { color: var(--encre); text-decoration: none; }
.ndk-author p { margin: 0; font-family: var(--f-texte); color: var(--ardoise); }
.ndk-related { margin-top: 2.5rem; }
.ndk-videopage { padding-block: 1.5rem 0; }
.ndk-videopage__body { max-width: 820px; margin-top: 1.5rem; }
.ndk-embed--page { max-width: 1000px; }

/* Commentaires */
.ndk-comments { margin-top: 2.5rem; }
.ndk-comments__list { list-style: none; padding: 0; }
.ndk-comments__list .comment-body { padding: 1rem 0; border-top: 1px solid var(--ligne); }
.ndk-comments__list .children { list-style: none; padding-left: 1.5rem; }
.ndk-comments__list .avatar { border-radius: 50%; float: left; margin-right: .8rem; }
.comment-meta { font-size: .85rem; color: var(--ardoise); }
.comment-content { font-family: var(--f-texte); }
.comment-form p { margin-bottom: 1rem; }
.comment-form .ndk-btn { border: 0; }

/* ==========================================================================
   10. Qui sommes-nous
   ========================================================================== */
.ndk-aboutHero { background: var(--nuit); color: #fff; padding-block: clamp(2rem, 6vw, 4rem); }
.ndk-aboutHero__in { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .ndk-aboutHero__in { grid-template-columns: 1.1fr 1fr; } }
.ndk-aboutHero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.8rem); font-weight: 800; line-height: 1.02; max-width: 16ch; }
.ndk-aboutHero p { color: #c3cdea; font-family: var(--f-texte); font-size: 1.15rem; max-width: 46ch; }
.ndk-aboutHero img { border-radius: var(--r); width: 100%; }
.ndk-about__body { padding-top: clamp(1.75rem, 4vw, 3rem); }
.ndk-about__body h2 { margin-top: 1.5em; }
.ndk-about__body h2:first-child { margin-top: 0; }
.ndk-aboutBlock { padding-top: clamp(1.75rem, 4vw, 3rem); }
.ndk-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ndk-checks { grid-template-columns: 1fr 1fr; } }
.ndk-checks li { position: relative; padding-left: 1.6rem; font-family: var(--f-texte); font-size: 1.08rem; }
.ndk-checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .65rem; height: .85rem; background: var(--bleu); clip-path: polygon(0 0, 100% 50%, 0 100%); }

.ndk-aboutValues { background: var(--bleu-pale); margin-top: clamp(2rem, 5vw, 3.5rem); padding-block: clamp(2rem, 5vw, 3.25rem); }
.ndk-aboutValues h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); max-width: 24ch; }
.ndk-aboutValues__lead { font-family: var(--f-texte); font-size: 1.12rem; max-width: 62ch; color: var(--ardoise); }
.ndk-aboutValues__cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 760px) { .ndk-aboutValues__cols { grid-template-columns: 1fr 1fr; } }
.ndk-aboutValues__cols > div { background: var(--blanc); border-radius: var(--r); padding: 1.25rem 1.5rem; }
.ndk-aboutValues__cols > div:first-child { border-top: 5px solid var(--bleu); }
.ndk-aboutValues__cols > div:last-child { border-top: 5px solid var(--rouge); }
.ndk-aboutValues h3 { font-size: 1.15rem; }
.ndk-aboutValues ul { margin: 0; padding-left: 1.2rem; columns: 2; font-family: var(--f-texte); }

.ndk-domains { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ndk-domains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ndk-domains { grid-template-columns: repeat(3, 1fr); } }
.ndk-domains article { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--r); padding: 1.1rem 1.25rem; }
.ndk-domains h3 { font-size: 1.1rem; color: var(--bleu-fonce); }
.ndk-domains p { margin: 0; font-family: var(--f-texte); color: var(--ardoise); }
.ndk-aboutLine { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.ndk-aboutLine h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.ndk-aboutLine__q { font-family: var(--f-texte); font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 56ch; margin: 0; }
.ndk-manifesto--end h2 { max-width: 26ch; font-size: clamp(1.5rem, 3.6vw, 2.5rem); }

/* ==========================================================================
   11. Adaptation mobile
   ========================================================================== */
@media (max-width: 899px) {
	.ndk-burger { display: inline-flex; }
	.ndk-nav { display: none; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
	.ndk-nav.is-open { display: block; }
	.ndk-menu { flex-direction: column; padding-block: .4rem; }
	.ndk-menu a { padding: .75rem .25rem; border-bottom: 1px solid var(--nuit-3); }
	.ndk-menu .sub-menu { display: block; position: static; border: 0; padding-left: 1rem; }
	.ndk-topbar .ndk-socials { display: none; }
	.ndk-brand__tag { display: none; }
	.ndk-brand__name { font-size: 1.4rem; }
	.ndk-brand__mark { height: 2.1rem; }
	.ndk-card--overlay .ndk-card__media { min-height: 19rem; }
	.ndk-aboutValues ul { columns: 1; }
	.ndk-sectitle { font-size: 1.02rem; }
}

/* ==========================================================================
   12. Préférences d'accessibilité
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ndk-live__dot { animation: none; }
	.ndk-ticker__view { overflow-x: auto; }
	.ndk-ticker__track { animation: none; }
	.ndk-ticker__track--copy { display: none; }
}
@media print {
	.ndk-topbar, .ndk-masthead, .ndk-ticker, .ndk-aside, .ndk-footer, .ndk-share, .ndk-newsletter, .ndk-progress { display: none !important; }
	.ndk-split { display: block; }
}
