/* ════════════════════════════════════════════════════════
   CNNT EXTRANET — Espace membre
   Design system « élégance institutionnelle »
   Tokens hérités du thème cnnt (repli si thème absent).
═══════════════════════════════════════════════════════════ */
.cnnt-ex,
.cnnt-ex-auth {
	--ex-vert: var(--vert, #2D6A4F);
	--ex-vert-fonce: var(--vert-fonce, #1B4332);
	--ex-vert-clair: var(--vert-clair, #52936F);
	--ex-or: var(--or, #C9A84C);
	--ex-or-pale: var(--or-pale, #F0E4BE);
	--ex-beige: var(--beige, #F5EFE6);
	--ex-beige-fonce: var(--beige-fonce, #EDE4D7);
	--ex-texte: var(--texte, #111827);
	--ex-corps: var(--corps, #4B5563);
	--ex-blanc: var(--blanc, #FFFFFF);
	--ex-sep: rgba(27, 67, 50, .09);
	--ex-sep-fort: rgba(27, 67, 50, .14);

	/* Élévation en couches */
	--ex-sh-sm: 0 1px 2px rgba(27, 67, 50, .06);
	--ex-sh-md: 0 4px 14px rgba(27, 67, 50, .07), 0 1px 3px rgba(27, 67, 50, .05);
	--ex-sh-lg: 0 18px 48px rgba(27, 67, 50, .12), 0 4px 12px rgba(27, 67, 50, .06);

	/* Rayons & rythme (échelle 8pt) */
	--ex-r-sm: 10px;
	--ex-r-md: 14px;
	--ex-r-lg: 20px;
	--ex-ease: cubic-bezier(.4, 0, .2, 1);

	font-family: inherit;
	color: var(--ex-texte);
	-webkit-font-smoothing: antialiased;
}

.cnnt-ex *,
.cnnt-ex-auth * { box-sizing: border-box; }

/* ════════════════════════════════════════════════════════
   POSTE DE TRAVAIL — adapte l'enveloppe du thème
   (la page n'est pas une vitrine : on allège le décor)
═══════════════════════════════════════════════════════════ */
.cnnt-ex-page .cnnt-page-hero { display: none; }
.cnnt-ex-page .cnnt-content { padding-top: 32px; padding-bottom: 56px; }
.cnnt-ex-page .cnnt-prose { max-width: none; font-size: inherit; line-height: inherit; color: inherit; }

/* Reset liens — neutralise les styles datés du thème (soulignement, couleurs) */
.cnnt-prose .cnnt-ex a,
.cnnt-prose .cnnt-ex-auth a,
.cnnt-ex a,
.cnnt-ex-auth a {
	text-decoration: none;
	box-shadow: none;
	transition: color .15s var(--ex-ease);
}
.cnnt-ex a:focus-visible,
.cnnt-ex-auth a:focus-visible {
	outline: 2px solid var(--ex-vert);
	outline-offset: 2px;
	border-radius: 4px;
}
/* Liens textuels (mot de passe oublié, retour) : soulignement fin au survol uniquement */
.cnnt-prose .cnnt-ex-auth-foot a,
.cnnt-prose .cnnt-ex-back,
.cnnt-ex-auth-foot a,
.cnnt-ex-back { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cnnt-prose .cnnt-ex-auth-foot a:hover,
.cnnt-prose .cnnt-ex-back:hover,
.cnnt-ex-auth-foot a:hover,
.cnnt-ex-back:hover { text-decoration: underline; color: var(--ex-vert); }
/* Neutralise les marges de titres/listes héritées de .cnnt-prose dans l'espace de travail */
.cnnt-prose .cnnt-ex h2,
.cnnt-prose .cnnt-ex h3 { margin: 0; }
.cnnt-prose .cnnt-ex p { margin: 0; }
.cnnt-prose .cnnt-ex ul,
.cnnt-prose .cnnt-ex ol { margin: 0; list-style: none; }
.cnnt-prose .cnnt-ex li { margin: 0; }

/* ════════════════════════════════════════════════════════
   CONNEXION — écran premium 2 colonnes
═══════════════════════════════════════════════════════════ */
.cnnt-ex-auth {
	display: flex;
	justify-content: center;
	padding: 56px 20px;
}
.cnnt-ex-auth-card {
	width: 100%;
	max-width: 920px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--ex-blanc);
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-lg);
	box-shadow: var(--ex-sh-lg);
	overflow: hidden;
}

/* Colonne marque (gauche) */
.cnnt-ex-auth-brand {
	position: relative;
	padding: 48px 40px;
	background:
		radial-gradient(120% 100% at 0% 0%, rgba(201, 168, 76, .18) 0%, rgba(201, 168, 76, 0) 55%),
		linear-gradient(155deg, var(--ex-vert-fonce) 0%, var(--ex-vert) 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	overflow: hidden;
}
.cnnt-ex-auth-brand::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 1px solid rgba(201, 168, 76, .22);
	background: radial-gradient(circle, rgba(201, 168, 76, .12) 0%, rgba(201, 168, 76, 0) 70%);
	pointer-events: none;
}
.cnnt-ex-auth-seal {
	width: 60px; height: 60px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .18);
	display: flex; align-items: center; justify-content: center;
	color: var(--ex-or);
}
.cnnt-ex-auth-seal svg { width: 28px; height: 28px; }
.cnnt-ex-auth-brand h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
	color: #fff;
}
.cnnt-ex-auth-brand p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .82);
	max-width: 36ch;
}
.cnnt-ex-auth-points {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.cnnt-ex-auth-points li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, .9);
}
.cnnt-ex-auth-points li::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--ex-or);
	flex-shrink: 0;
}

/* Colonne formulaire (droite) */
.cnnt-ex-auth-form-col {
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cnnt-ex-auth-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 4px;
	color: var(--ex-texte);
}
.cnnt-ex-auth-sub {
	font-size: 14.5px;
	color: var(--ex-corps);
	margin: 0 0 26px;
	line-height: 1.6;
}
.cnnt-ex-login-form { text-align: left; }
.cnnt-ex-auth-foot { margin: 18px 0 0; font-size: 14px; }
.cnnt-ex-auth-foot a { color: var(--ex-vert); text-decoration: none; font-weight: 600; }
.cnnt-ex-auth-foot a:hover { text-decoration: underline; }
.cnnt-ex-auth-note {
	margin: 22px 0 0;
	padding: 14px 16px;
	background: var(--ex-beige);
	border-radius: var(--ex-r-sm);
	font-size: 12.5px;
	color: var(--ex-corps);
	line-height: 1.55;
}

/* ── Page de connexion dédiée : tenir dans l'écran sans scroll ── */
.cnnt-ex-login-page .cnnt-content { padding-top: 0; padding-bottom: 0; }
.cnnt-ex-login-page .cnnt-ex-auth {
	min-height: calc(100vh - var(--cnnt-ex-chrome, 220px));
	align-items: center;
	padding: 24px 20px;
}
.cnnt-ex-login-page .cnnt-ex-auth-brand { padding: 36px 34px; gap: 16px; }
.cnnt-ex-login-page .cnnt-ex-auth-seal { width: 52px; height: 52px; border-radius: 14px; }
.cnnt-ex-login-page .cnnt-ex-auth-seal svg { width: 24px; height: 24px; }
.cnnt-ex-login-page .cnnt-ex-auth-brand h2 { font-size: 24px; }
.cnnt-ex-login-page .cnnt-ex-auth-points { gap: 8px; }
.cnnt-ex-login-page .cnnt-ex-auth-form-col { padding: 36px 38px; }
.cnnt-ex-login-page .cnnt-ex-auth-sub { margin-bottom: 18px; }
.cnnt-ex-login-page .cnnt-ex-login-form .cnnt-ex-field { margin-bottom: 14px; }
.cnnt-ex-login-page .cnnt-ex-auth-note { margin-top: 16px; padding: 11px 14px; }
@media (max-width: 600px) {
	.cnnt-ex-login-page .cnnt-ex-auth { min-height: 0; }
}

/* ════════════════════════════════════════════════════════
   CHAMPS DE FORMULAIRE
═══════════════════════════════════════════════════════════ */
.cnnt-ex-field { display: block; margin-bottom: 18px; }
.cnnt-ex-field > span {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
	margin-bottom: 7px;
	color: var(--ex-texte);
}
.cnnt-ex-field input,
.cnnt-ex-field select,
.cnnt-ex-field textarea,
.cnnt-ex-new-thread input,
.cnnt-ex-new-thread textarea,
.cnnt-ex-reply-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--ex-sep-fort);
	border-radius: var(--ex-r-sm);
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--ex-texte);
	transition: border-color .18s var(--ex-ease), box-shadow .18s var(--ex-ease), background .18s;
}
.cnnt-ex-field input::placeholder,
.cnnt-ex-field textarea::placeholder,
.cnnt-ex-new-thread input::placeholder,
.cnnt-ex-new-thread textarea::placeholder,
.cnnt-ex-reply-form textarea::placeholder { color: #9CA3AF; }
.cnnt-ex-field input:hover,
.cnnt-ex-field select:hover,
.cnnt-ex-field textarea:hover { border-color: var(--ex-vert-clair); }
.cnnt-ex-field input:focus,
.cnnt-ex-field select:focus,
.cnnt-ex-field textarea:focus,
.cnnt-ex-new-thread input:focus,
.cnnt-ex-new-thread textarea:focus,
.cnnt-ex-reply-form textarea:focus {
	outline: none;
	border-color: var(--ex-vert);
	box-shadow: 0 0 0 4px rgba(45, 106, 79, .12);
}
.cnnt-ex-remember {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	margin: 4px 0 20px;
	color: var(--ex-corps);
	cursor: pointer;
}
.cnnt-ex-remember input { width: auto; accent-color: var(--ex-vert); }

/* ════════════════════════════════════════════════════════
   BOUTONS
═══════════════════════════════════════════════════════════ */
.cnnt-ex-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	border-radius: var(--ex-r-sm);
	border: 1.5px solid transparent;
	font-family: 'DM Sans', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s var(--ex-ease), background .18s, box-shadow .2s, color .18s;
}
.cnnt-ex-btn svg { width: 17px; height: 17px; }
.cnnt-ex-btn--primary {
	background: var(--ex-vert-fonce);
	color: #fff;
	width: 100%;
	box-shadow: 0 6px 16px rgba(27, 67, 50, .18);
}
.cnnt-ex-btn--primary:hover {
	background: var(--ex-vert);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(27, 67, 50, .24);
}
.cnnt-ex-btn--primary:active { transform: translateY(0); }
.cnnt-ex-btn--ghost {
	background: transparent;
	border-color: var(--ex-sep-fort);
	color: var(--ex-vert-fonce);
	white-space: nowrap;
}
.cnnt-ex-btn--ghost:hover {
	background: var(--ex-vert-fonce);
	border-color: var(--ex-vert-fonce);
	color: #fff;
	transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════
   TABLEAU DE BORD
═══════════════════════════════════════════════════════════ */
.cnnt-ex { max-width: 1100px; margin: 0 auto; }

/* Barre supérieure */
.cnnt-ex-topbar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 22px 26px;
	background: var(--ex-vert-fonce);
	border-radius: var(--ex-r-md);
	box-shadow: var(--ex-sh-sm);
	color: #fff;
	overflow: hidden;
}
.cnnt-ex-welcome { display: flex; align-items: center; gap: 15px; }
.cnnt-ex-welcome-icon {
	width: 48px; height: 48px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .14);
	color: var(--ex-or);
	display: flex; align-items: center; justify-content: center;
}
.cnnt-ex-welcome-icon svg { width: 22px; height: 22px; }
.cnnt-ex-welcome-hi { font-size: 13px; opacity: .78; letter-spacing: .02em; }
.cnnt-ex-welcome-name { font-size: 18px; font-weight: 600; font-family: 'DM Sans', sans-serif; }
.cnnt-ex-logout {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--ex-vert-fonce); text-decoration: none;
	font-size: 14px; font-weight: 600;
	padding: 9px 16px; border-radius: var(--ex-r-sm);
	background: #fff;
	border: 1px solid #fff;
	transition: background .18s, color .18s, box-shadow .18s;
}
.cnnt-ex-logout:hover { background: var(--ex-beige); color: var(--ex-vert-fonce); box-shadow: var(--ex-sh-sm); }
.cnnt-ex-logout svg { width: 17px; height: 17px; }

/* Onglets segmentés */
.cnnt-ex-tabs {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin: 18px 0;
	padding: 6px;
	background: var(--ex-beige);
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
}
.cnnt-ex-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--ex-r-sm);
	text-decoration: none;
	color: var(--ex-corps);
	font-family: 'DM Sans', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	transition: background .2s var(--ex-ease), color .2s, box-shadow .2s;
}
.cnnt-ex-tab-icon { display: inline-flex; }
.cnnt-ex-tab-icon svg { width: 18px; height: 18px; display: block; }
.cnnt-ex-tab:hover { color: var(--ex-vert-fonce); background: rgba(255, 255, 255, .55); }
.cnnt-ex-tab.is-active {
	background: #fff;
	color: var(--ex-vert-fonce);
	box-shadow: var(--ex-sh-sm), inset 0 0 0 1px var(--ex-sep);
}
.cnnt-ex-tab.is-active .cnnt-ex-tab-icon { color: var(--ex-or); }

/* Panneau de contenu */
.cnnt-ex-panel {
	background: #fff;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	box-shadow: var(--ex-sh-md);
	padding: 32px;
}
.cnnt-ex-section-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ex-texte);
	margin: 0 0 6px;
}
.cnnt-ex-section-intro { color: var(--ex-corps); font-size: 14.5px; line-height: 1.65; margin: 14px 0 22px; }
.cnnt-ex-section-head { margin-bottom: 18px; }

/* En-tête de section avec action à droite */
.cnnt-ex-section-head--row {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.cnnt-ex-section-head--row .cnnt-ex-section-intro { margin-bottom: 0; }

/* Bouton + panneau déroulant de publication */
.cnnt-ex-add { position: static; }
.cnnt-ex-add > summary {
	list-style: none;
	cursor: pointer;
	flex-shrink: 0;
}
.cnnt-ex-add > summary::-webkit-details-marker { display: none; }
.cnnt-ex-add[open] .cnnt-ex-quick-add {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 20;
	width: min(620px, 100%);
	margin-top: 0;
	box-shadow: var(--ex-sh-md);
}
.cnnt-ex-add[open] .cnnt-ex-quick-add::before {
	content: "";
	position: absolute;
	top: -7px;
	right: 26px;
	width: 13px;
	height: 13px;
	background: #fff;
	border-left: 1px solid var(--ex-sep);
	border-top: 1px solid var(--ex-sep);
	transform: rotate(45deg);
}
@media (max-width: 720px) {
	.cnnt-ex-add { width: 100%; }
	.cnnt-ex-add > summary { width: 100%; justify-content: center; }
	.cnnt-ex-add[open] .cnnt-ex-quick-add {
		position: static;
		width: 100%;
		margin-top: 14px;
	}
	.cnnt-ex-add[open] .cnnt-ex-quick-add::before { display: none; }
}

/* État vide */
.cnnt-ex-empty {
	color: var(--ex-corps);
	padding: 36px 24px;
	background: var(--ex-beige);
	border: 1px dashed var(--ex-sep-fort);
	border-radius: var(--ex-r-md);
	text-align: center;
	font-size: 14.5px;
}

/* ════════════════════════════════════════════════════════
   NOTICES
═══════════════════════════════════════════════════════════ */
.cnnt-ex-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 16px;
	border-radius: var(--ex-r-sm);
	margin-bottom: 20px;
	font-size: 14.5px;
	border: 1px solid;
	box-shadow: var(--ex-sh-sm);
}
.cnnt-ex-notice::before {
	content: "";
	width: 4px;
	align-self: stretch;
	border-radius: 4px;
	flex-shrink: 0;
	margin: -1px 4px -1px -4px;
}
.cnnt-ex-notice--success { background: #ECFDF3; border-color: #ABEFC6; color: #066043; }
.cnnt-ex-notice--success::before { background: #12B76A; }
.cnnt-ex-notice--error   { background: #FEF3F2; border-color: #FECDCA; color: #9F1B12; }
.cnnt-ex-notice--error::before { background: #F04438; }
.cnnt-ex-notice--info    { background: #EFF8FF; border-color: #B2DDFF; color: #14509E; }
.cnnt-ex-notice--info::before { background: #2E90FA; }

/* ════════════════════════════════════════════════════════
   ACCUEIL — en-tête sobre + cartes d'accès
═══════════════════════════════════════════════════════════ */
.cnnt-ex-board-head { margin-bottom: 22px; }
.cnnt-ex-board-sub {
	margin: 12px 0 0;
	color: var(--ex-corps);
	font-size: 14.5px;
	line-height: 1.6;
}
.cnnt-ex-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.cnnt-ex-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	text-decoration: none;
	color: var(--ex-texte);
	box-shadow: var(--ex-sh-sm);
	overflow: hidden;
	transition: transform .2s var(--ex-ease), box-shadow .22s, border-color .2s;
}
.cnnt-ex-card:hover {
	box-shadow: var(--ex-sh-md);
	border-color: var(--ex-sep-fort);
}
.cnnt-ex-card-icon {
	width: 50px; height: 50px;
	flex-shrink: 0;
	border-radius: 13px;
	background: var(--ex-beige);
	color: var(--ex-vert);
	display: flex; align-items: center; justify-content: center;
}
.cnnt-ex-card-icon svg { width: 23px; height: 23px; }
.cnnt-ex-card-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cnnt-ex-card-title { font-weight: 600; font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; font-size: 15.5px; }
.cnnt-ex-card-sub { font-size: 13px; color: var(--ex-corps); }
.cnnt-ex-card-count {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ex-vert);
}
.cnnt-ex-card-go {
	flex-shrink: 0;
	color: var(--ex-vert-clair);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity .2s var(--ex-ease), transform .2s var(--ex-ease), color .2s;
}
.cnnt-ex-card-go svg { width: 18px; height: 18px; display: block; }
.cnnt-ex-card:hover .cnnt-ex-card-go { opacity: 1; transform: translateX(0); color: var(--ex-or); }

.cnnt-ex-quick-add {
	margin-top: 20px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	box-shadow: var(--ex-sh-sm);
}
.cnnt-ex-quick-add-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}
.cnnt-ex-quick-add-head h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--ex-texte);
}
.cnnt-ex-quick-add-head p {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ex-corps);
}
.cnnt-ex-quick-add-link {
	flex-shrink: 0;
	font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--ex-vert-fonce);
}
.cnnt-ex-quick-add-link:hover { color: var(--ex-or); }
.cnnt-ex-doc-upload .cnnt-ex-field { margin-bottom: 14px; }
.cnnt-ex-upload-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 14px;
}
.cnnt-ex-file-upload {
	display: block;
	min-width: 0;
}
.cnnt-ex-file-upload > span {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 7px;
	color: var(--ex-texte);
}
.cnnt-ex-file-upload input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px dashed var(--ex-sep-fort);
	border-radius: var(--ex-r-sm);
	background: var(--ex-beige);
	color: var(--ex-corps);
	font: inherit;
}
.cnnt-ex-file-upload input:hover { border-color: var(--ex-vert-clair); }
.cnnt-ex-form-help {
	margin-top: 10px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ex-corps);
}

/* ════════════════════════════════════════════════════════
   FILTRES / CHIPS
═══════════════════════════════════════════════════════════ */
.cnnt-ex-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cnnt-ex-chip {
	padding: 7px 15px;
	border-radius: 999px;
	border: 1.5px solid var(--ex-sep-fort);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ex-corps);
	transition: background .18s, color .18s, border-color .18s;
}
.cnnt-ex-chip:hover { border-color: var(--ex-vert); color: var(--ex-vert); }
.cnnt-ex-chip.is-active { background: var(--ex-vert-fonce); color: #fff; border-color: var(--ex-vert-fonce); }
.cnnt-ex-chip-caret { margin-left: 6px; opacity: .65; font-weight: 700; }

/* Deuxième niveau (sous-catégories) */
.cnnt-ex-filters--sub {
	align-items: center;
	margin: -8px 0 22px;
	padding: 12px 14px;
	background: var(--ex-beige);
	border: 1px solid var(--ex-sep);
	border-radius: 12px;
}
.cnnt-ex-filters-label {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ex-corps);
	margin-right: 4px;
}
.cnnt-ex-chip--sub {
	padding: 5px 13px;
	font-size: 12.5px;
	background: #fff;
}
.cnnt-ex-chip--sub.is-active { background: var(--ex-vert); color: #fff; border-color: var(--ex-vert); }

/* Bloc « créer une catégorie / sous-catégorie » */
.cnnt-ex-newcat {
	margin: 4px 0 18px;
	padding: 0 0 0 0;
	border: 1px dashed var(--ex-sep-fort);
	border-radius: 12px;
	background: var(--ex-beige);
}
.cnnt-ex-newcat > summary {
	cursor: pointer;
	list-style: none;
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ex-vert-fonce);
}
.cnnt-ex-newcat > summary::-webkit-details-marker { display: none; }
.cnnt-ex-newcat > summary::before { content: '＋'; margin-right: 8px; font-weight: 700; }
.cnnt-ex-newcat[open] > summary::before { content: '−'; }
.cnnt-ex-newcat[open] > summary { border-bottom: 1px solid var(--ex-sep); }
.cnnt-ex-newcat .cnnt-ex-form-row,
.cnnt-ex-newcat .cnnt-ex-form-help { padding: 0 16px; }
.cnnt-ex-newcat .cnnt-ex-form-row { margin-top: 16px; }
.cnnt-ex-newcat .cnnt-ex-form-help { padding-bottom: 16px; }

/* ════════════════════════════════════════════════════════
   DOCUMENTS
═══════════════════════════════════════════════════════════ */
.cnnt-ex-doc-list { list-style: none; margin: 0; padding: 0; }
.cnnt-ex-doc {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid transparent;
	border-radius: var(--ex-r-sm);
	transition: background .18s, border-color .18s, box-shadow .18s;
}
.cnnt-ex-doc + .cnnt-ex-doc { margin-top: 4px; }
.cnnt-ex-doc:hover {
	background: #fff;
	border-color: var(--ex-sep);
	box-shadow: var(--ex-sh-sm);
}
.cnnt-ex-doc-icon {
	width: 44px; height: 44px; flex-shrink: 0;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--ex-beige), var(--ex-beige-fonce));
	color: var(--ex-vert);
	display: flex; align-items: center; justify-content: center;
}
.cnnt-ex-doc-icon svg { width: 21px; height: 21px; }
.cnnt-ex-doc-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cnnt-ex-doc-title { font-weight: 600; font-family: 'DM Sans', sans-serif; font-size: 15px; }
.cnnt-ex-doc-meta { font-size: 12.5px; color: var(--ex-corps); }
.cnnt-ex-doc-desc { font-size: 13.5px; color: var(--ex-corps); }
.cnnt-ex-doc-nofile { font-size: 12.5px; color: #6B7280; font-style: italic; }

/* ════════════════════════════════════════════════════════
   ANNONCES
═══════════════════════════════════════════════════════════ */
.cnnt-ex-annonces { display: flex; flex-direction: column; gap: 18px; }
.cnnt-ex-annonce {
	display: flex;
	gap: 0;
	background: #fff;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	box-shadow: var(--ex-sh-sm);
	overflow: hidden;
	transition: box-shadow .22s, transform .2s var(--ex-ease);
}
.cnnt-ex-annonce:hover { box-shadow: var(--ex-sh-md); transform: translateY(-2px); }
.cnnt-ex-annonce-thumb { flex: 0 0 210px; }
.cnnt-ex-annonce-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cnnt-ex-annonce-body { padding: 22px; flex: 1; min-width: 0; }
.cnnt-ex-annonce-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cnnt-ex-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ex-or-pale);
	color: #7A5C12;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.cnnt-ex-annonce-date { font-size: 12.5px; color: var(--ex-corps); }
.cnnt-ex-annonce-title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ex-texte); }
.cnnt-ex-annonce-text { color: var(--ex-corps); line-height: 1.65; font-size: 14.5px; }
.cnnt-ex-annonce-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ex-sep); }
.cnnt-ex-annonce-delete {
	font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--ex-bordeaux, #8B1A2A);
}
.cnnt-ex-annonce-delete:hover { color: #A52535; text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   ESPACE COLLABORATIF
═══════════════════════════════════════════════════════════ */
.cnnt-ex-new-thread {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--ex-beige);
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	margin-bottom: 22px;
}
.cnnt-ex-new-thread .cnnt-ex-btn { align-self: flex-start; width: auto; }
.cnnt-ex-threads { list-style: none; margin: 0; padding: 0; }
.cnnt-ex-thread + .cnnt-ex-thread { margin-top: 4px; }
.cnnt-ex-thread a {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--ex-r-sm);
	transition: background .18s, border-color .18s, box-shadow .18s;
}
.cnnt-ex-thread a:hover {
	background: #fff;
	border-color: var(--ex-sep);
	box-shadow: var(--ex-sh-sm);
}
.cnnt-ex-thread-title { font-weight: 600; color: var(--ex-vert-fonce); font-family: 'DM Sans', sans-serif; font-size: 15.5px; }
.cnnt-ex-thread-meta { font-size: 12.5px; color: var(--ex-corps); }
.cnnt-ex-back {
	display: inline-flex; align-items: center; gap: 6px;
	margin-bottom: 16px;
	color: var(--ex-vert);
	text-decoration: none;
	font-size: 14px; font-weight: 600;
}
.cnnt-ex-back:hover { text-decoration: underline; }
.cnnt-ex-thread-full { padding-bottom: 20px; border-bottom: 1px solid var(--ex-sep); margin-bottom: 22px; }
.cnnt-ex-thread-author { font-size: 13px; color: var(--ex-corps); margin-bottom: 12px; }
.cnnt-ex-thread-content { line-height: 1.75; color: var(--ex-texte); }
.cnnt-ex-replies h3 { font-family: 'DM Sans', sans-serif; font-size: 16px; margin: 0 0 16px; color: var(--ex-vert-fonce); }
.cnnt-ex-reply-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cnnt-ex-reply {
	padding: 16px 18px;
	background: var(--ex-beige);
	border-radius: var(--ex-r-sm);
	border-left: 3px solid var(--ex-vert-clair);
}
.cnnt-ex-reply-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.cnnt-ex-reply-head strong { color: var(--ex-vert-fonce); }
.cnnt-ex-reply-head span { color: var(--ex-corps); }
.cnnt-ex-reply-text { line-height: 1.65; color: var(--ex-texte); font-size: 14.5px; }
.cnnt-ex-reply-form { display: flex; flex-direction: column; gap: 12px; }
.cnnt-ex-reply-form .cnnt-ex-btn { align-self: flex-start; width: auto; }

/* ════════════════════════════════════════════════════════
   FCDV
═══════════════════════════════════════════════════════════ */
.cnnt-ex-fcdv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}
.cnnt-ex-card-block {
	background: #fff;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
	box-shadow: var(--ex-sh-sm);
	padding: 24px;
}
.cnnt-ex-card-block h3 {
	display: flex; align-items: center; gap: 9px;
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ex-sep);
	color: var(--ex-vert-fonce);
}
.cnnt-ex-card-block h3 svg { width: 18px; height: 18px; color: var(--ex-or); }
.cnnt-ex-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cnnt-ex-fcdv-results { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ex-sep); }
.cnnt-ex-fcdv-count { font-size: 13px; font-weight: 600; color: var(--ex-vert); margin-bottom: 12px; }
.cnnt-ex-fcdv-result {
	padding: 14px 16px;
	background: var(--ex-beige);
	border: 1px solid var(--ex-sep);
	border-left: 3px solid var(--ex-or);
	border-radius: var(--ex-r-sm);
	margin-bottom: 10px;
}
.cnnt-ex-fcdv-result-name { font-weight: 600; color: var(--ex-vert-fonce); font-size: 15px; }
.cnnt-ex-fcdv-result-meta { font-size: 13px; color: var(--ex-corps); margin: 3px 0; }
.cnnt-ex-fcdv-result-holder { font-size: 13.5px; }
.cnnt-ex-fcdv-mine h3 {
	font-family: 'DM Sans', sans-serif;
	font-size: 16px;
	margin: 0 0 16px;
	color: var(--ex-vert-fonce);
}
.cnnt-ex-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ex-sep);
	border-radius: var(--ex-r-md);
}
.cnnt-ex-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cnnt-ex-table th,
.cnnt-ex-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--ex-sep); }
.cnnt-ex-table tbody tr:last-child td { border-bottom: none; }
.cnnt-ex-table th {
	font-family: 'DM Sans', sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ex-vert-fonce);
	background: var(--ex-beige);
}
.cnnt-ex-table tbody tr { transition: background .15s; }
.cnnt-ex-table tbody tr:hover td { background: rgba(245, 239, 230, .55); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
	.cnnt-ex-auth-card { grid-template-columns: 1fr; max-width: 460px; }
	.cnnt-ex-auth-brand { display: none; }
	.cnnt-ex-auth-form-col { padding: 40px 34px; }
}
@media (max-width: 860px) {
	.cnnt-ex-cards,
	.cnnt-ex-fcdv-grid { grid-template-columns: 1fr; }
	.cnnt-ex-annonce { flex-direction: column; }
	.cnnt-ex-annonce-thumb { flex: none; max-height: 200px; }
}
@media (max-width: 560px) {
	.cnnt-ex-panel { padding: 22px; }
	.cnnt-ex-form-row,
	.cnnt-ex-upload-row { grid-template-columns: 1fr; }
	.cnnt-ex-quick-add { padding: 18px; }
	.cnnt-ex-quick-add-head { flex-direction: column; gap: 8px; }
	.cnnt-ex-quick-add-link { align-self: flex-start; }
	.cnnt-ex-tabs { gap: 2px; }
	.cnnt-ex-tab span:not(.cnnt-ex-tab-icon) { display: none; }
	.cnnt-ex-tab { padding: 11px 16px; flex: 1; justify-content: center; }
	.cnnt-ex-doc { flex-wrap: wrap; }
	.cnnt-ex-topbar { padding: 18px 20px; }
	.cnnt-ex-welcome-name { font-size: 16px; }
}
