/* Aventurier Digital theme — article de blog : fil d'Ariane, bandeau
   événement, colonne de ressources, encarts dans le texte, sommaire.
   Chargé seulement sur les articles (functions.php), après blog.css.

   Arrondis : 6 px partout. Accents en orange ou en bleu, jamais en vert.
   Ordre du code = ordre de lecture sur mobile (article, articles connexes,
   ressources) ; la grille remet les ressources à droite sur grand écran. */

/* ---------- Fil d'Ariane ---------- */

.adt-breadcrumb,
.rank-math-breadcrumb {
	margin: 1.25rem 0 0;
	color: var(--ad-alternate-text-color);
	font-size: 13px;
}

.adt-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adt-breadcrumb li + li::before {
	content: "›";
	margin-right: 8px;
	opacity: .7;
}

.adt-breadcrumb a,
.rank-math-breadcrumb a {
	color: var(--ad-body-text-color);
}

.adt-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
	color: var(--ad-primary-hover);
}

/* ---------- Mise en page ---------- */

/* Colonne : sommaire puis ressources. Sur grand écran elle suit la lecture
   (position: sticky) ; si elle dépasse la hauteur de l'écran, elle défile
   toute seule, le sommaire restant en haut. Sur mobile et tablette elle
   passe après l'article et le sommaire affiché est celui du texte. */

.adt-article__aside {
	margin-top: 2.5rem;
}

.adt-article .adt-article__aside-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
}

.adt-article__cards .adt-encart + .adt-encart {
	margin-top: 16px;
}

.adt-toc--aside {
	display: none;
}

@media (min-width: 1100px) {
	.adt-article--aside {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		grid-template-areas:
			"main aside"
			"related aside";
		grid-template-rows: auto 1fr;
		column-gap: 48px;
	}

	.adt-article--aside .adt-article__main {
		grid-area: main;
	}

	.adt-article--aside .adt-article__related {
		grid-area: related;
	}

	.adt-article--aside .adt-article__aside {
		grid-area: aside;
		margin-top: 1.875rem;
	}

	.adt-article--aside .adt-article__aside-inner {
		position: sticky;
		top: calc(var(--adt-admin-bar) + 20px);
		max-height: calc(100vh - var(--adt-admin-bar) - 40px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding-right: 2px;
	}

	.adt-sticky-header .adt-article--aside .adt-article__aside-inner {
		top: calc(var(--ad-header-height) + var(--adt-admin-bar) + 20px);
		max-height: calc(100vh - var(--ad-header-height) - var(--adt-admin-bar) - 40px);
	}

	.adt-article--aside .adt-single,
	.adt-article--aside .adt-single__comments {
		margin-left: 0;
	}

	.adt-article--aside .adt-toc--inline {
		display: none;
	}

	.adt-article--aside .adt-toc--aside {
		display: block;
	}
}

/* Menu latéral des membres ouvert : la colonne n'apparaît à droite que s'il
   reste assez de place pour lire confortablement. */
@media (min-width: 1100px) and (max-width: 1339px) {
	.adt-panel-open .adt-has-panel .adt-article--aside {
		display: block;
	}

	.adt-panel-open .adt-has-panel .adt-article--aside .adt-single,
	.adt-panel-open .adt-has-panel .adt-article--aside .adt-single__comments {
		margin-left: auto;
	}

	.adt-panel-open .adt-has-panel .adt-article--aside .adt-article__aside {
		margin-top: 2.5rem;
	}

	.adt-panel-open .adt-has-panel .adt-article--aside .adt-article__aside-inner {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.adt-panel-open .adt-has-panel .adt-article--aside .adt-toc--inline {
		display: block;
	}

	.adt-panel-open .adt-has-panel .adt-article--aside .adt-toc--aside {
		display: none;
	}
}

/* Sur tablette, les cartes de la colonne se rangent côte à côte. */
@media (min-width: 640px) and (max-width: 1099px) {
	.adt-article__cards {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 16px;
	}

	.adt-article .adt-article__aside-title {
		grid-column: 1 / -1;
		margin-bottom: 0;
	}

	.adt-article__cards .adt-encart + .adt-encart {
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.adt-toc) {
		scroll-behavior: smooth;
	}
}

.adt-single__content h2[id] {
	scroll-margin-top: calc(var(--ad-header-height) + var(--adt-admin-bar) + 16px);
}

/* ---------- Encarts : base ---------- */

.adt-encart {
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
}

.adt-encart p {
	margin: 0;
}

.adt-encart .adt-encart__title {
	margin: 0;
	color: var(--ad-headings-color);
	font-family: var(--ad-font-headings);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.adt-encart__text {
	color: var(--ad-body-text-color);
}

.adt-encart .adt-encart__title + .adt-encart__text,
.adt-encart__date + .adt-encart__text {
	margin-top: 6px;
}

.adt-encart .adt-encart__next {
	margin-top: 8px;
	color: var(--ad-headings-color);
	font-size: 14px;
	font-weight: 600;
}

.adt-encart__image {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.adt-encart .adt-encart__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.adt-encart .adt-encart__button {
	border-radius: 6px;
	text-align: center;
}

.adt-encart .adt-encart__button::after {
	content: " →";
}

.adt-encart__more {
	color: var(--ad-headings-color);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.adt-encart__more:hover {
	color: var(--ad-primary-hover);
}

.adt-encart a:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

/* ---------- Carte de la colonne ---------- */

.adt-encart--card {
	padding: 18px;
	background: var(--ad-content-background);
	border: 1px solid var(--ad-border-color);
}

.adt-encart--card .adt-encart__image {
	margin-bottom: 12px;
}

.adt-encart--card .adt-encart__actions {
	margin-top: 14px;
}

.adt-encart--card .adt-encart__button {
	flex: 1 1 100%;
}

/* ---------- Encart dans le texte (milieu, fin) ---------- */

.adt-encart--inline {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 12px 20px;
	margin: 2.25rem 0;
	padding: 20px 22px;
	background: #f3f6fb;
	border: 1px solid #dbe4f0;
	border-left: 4px solid var(--ad-primary-color);
}

.adt-encart--inline .adt-encart__image {
	grid-row: 1 / span 2;
	width: auto;
	max-width: 180px;
	max-height: 110px;
}

.adt-encart--inline .adt-encart__body,
.adt-encart--inline .adt-encart__actions {
	grid-column: 2;
}

.adt-encart--inline:not(:has(.adt-encart__image)) .adt-encart__body,
.adt-encart--inline:not(:has(.adt-encart__image)) .adt-encart__actions {
	grid-column: 1 / -1;
}

@media (max-width: 560px) {
	.adt-encart--inline {
		grid-template-columns: minmax(0, 1fr);
	}

	.adt-encart--inline .adt-encart__image {
		grid-row: auto;
	}

	.adt-encart--inline .adt-encart__body,
	.adt-encart--inline .adt-encart__actions {
		grid-column: 1;
	}

	.adt-encart--inline .adt-encart__button {
		flex: 1 1 100%;
	}
}

/* ---------- Bandeau événement ----------
   Une ligne : visuel de l'événement avec la date en pastille, le titre,
   puis à droite les inscrits et le bouton. Bleu nuit avec une lueur orange. */

.adt-encart--banner {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(200px, 240px);
	grid-template-areas:
		"visual body people"
		"visual body actions";
	align-items: center;
	gap: 6px 24px;
	margin: 1rem 0 0;
	padding: 18px 24px;
	border-radius: 6px;
	background:
		radial-gradient(520px 220px at 100% 0%, rgba(226, 108, 61, .34), transparent 70%),
		radial-gradient(420px 200px at 0% 100%, rgba(59, 130, 246, .18), transparent 70%),
		linear-gradient(120deg, #0b1224 0%, #101a36 55%, #17224a 100%);
	box-shadow: 0 14px 34px rgba(11, 18, 36, .22);
	color: #cbd5e1;
}

.adt-encart--banner .adt-encart__visual {
	grid-area: visual;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 16px;
}

.adt-encart--banner .adt-encart__image {
	display: block;
	width: 176px;
	height: 99px;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

/* Pastille de date, à gauche du visuel (elle ne cache rien de l'image). */
.adt-encart__day {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 52px;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
	color: var(--ad-headings-color);
	line-height: 1.1;
	text-transform: uppercase;
}

.adt-encart__day-name {
	align-self: stretch;
	padding: 3px 6px;
	background: var(--ad-primary-color);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-align: center;
}

.adt-encart__day-num {
	padding-top: 3px;
	font-family: var(--ad-font-headings);
	font-size: 22px;
	font-weight: 700;
}

.adt-encart__day-month {
	padding-bottom: 4px;
	color: var(--ad-body-text-color);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
}

.adt-encart--banner .adt-encart__body {
	grid-area: body;
	min-width: 0;
}

.adt-encart--banner .adt-encart__kicker {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: rgba(253, 186, 140, .16);
	color: #fdba8c;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.adt-encart--banner .adt-encart__title {
	color: #fff;
	font-size: 1.3125rem;
	line-height: 1.25;
}

.adt-encart--banner .adt-encart__date {
	margin-top: 4px;
	color: #e2e8f0;
	font-size: 14px;
	font-weight: 500;
}

.adt-encart--banner .adt-encart__date::first-letter {
	text-transform: uppercase;
}

.adt-encart--banner .adt-encart__text,
.adt-encart--banner .adt-encart__next {
	margin-top: 2px;
	color: #a9b6cc;
	font-size: 14px;
}

.adt-encart__status {
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.adt-encart:not(.adt-encart--banner) .adt-encart__status {
	background: var(--ad-content-alt-background);
	color: var(--ad-headings-color);
}

.adt-encart--banner .adt-encart__actions {
	grid-area: actions;
	align-self: start;
	margin: 0;
}

.adt-encart--banner .adt-encart__button {
	flex: 1 1 100%;
	padding: 12px 22px;
	box-shadow: 0 8px 20px rgba(226, 108, 61, .4);
	font-size: 15px;
	font-weight: 600;
}

/* Sans inscrits affichés, le bouton se centre sur toute la hauteur. */
.adt-encart--banner:not(:has(.adt-encart__people)) .adt-encart__actions {
	grid-row: 1 / -1;
	align-self: center;
}

.adt-encart--banner .adt-encart__more {
	color: #fff;
}

.adt-encart--banner a:focus-visible {
	outline-color: #fff;
}

@media (max-width: 860px) {
	.adt-encart--banner {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"visual body"
			"people people"
			"actions actions";
		gap: 12px 16px;
		padding: 16px;
	}

	.adt-encart--banner .adt-encart__image,
	.adt-encart--banner .adt-encart__text {
		display: none;
	}

	.adt-encart--banner .adt-encart__title {
		font-size: 1.125rem;
	}

	.adt-encart--banner .adt-encart__people {
		max-width: 320px;
	}

	.adt-encart--banner .adt-encart__actions,
	.adt-encart--banner .adt-encart__actions--event .ade-registration {
		justify-content: stretch;
	}

	.adt-encart--banner .adt-encart__button,
	.adt-encart--banner .adt-encart__actions--event .ade-reg-btn--register {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------- Sommaire ---------- */

.adt-toc {
	margin: 2rem 0;
	padding: 16px 20px;
	background: var(--ad-content-alt-background);
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
}

.adt-toc .adt-toc__title {
	margin: 0 0 8px;
	color: var(--ad-headings-color);
	font-family: var(--ad-font-headings);
	font-weight: 700;
}

.adt-toc ol {
	margin: 0;
	padding-left: 1.25em;
}

.adt-toc li + li {
	margin-top: 4px;
}

.adt-toc a {
	color: var(--ad-headings-color);
}

.adt-toc a:hover {
	color: var(--ad-primary-hover);
	text-decoration: underline;
}

/* ---------- Articles connexes : trois cartes ---------- */

@media (min-width: 700px) {
	.adt-cards--related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

/* Cartes plus compactes que dans les listes : titre seul sous l'image. */
.adt-cards--related .adt-card__body {
	padding: 12px 14px 14px;
}

.adt-cards--related .adt-card .adt-card__title {
	margin: 0;
	font-size: 1rem;
}

.adt-cards--related .adt-card__excerpt,
.adt-cards--related .adt-card__meta,
.adt-cards--related .adt-label {
	display: none;
}

.adt-cards--related .adt-card,
.adt-single__image img,
.adt-single__content img {
	border-radius: 6px;
}

/* Sommaire de la colonne : un fil de lecture. Les parties déjà lues sont
   reliées par un trait orange, la partie en cours est mise en avant ; la
   barre du haut montre l'avancement. Repliable d'un clic sur le titre. */

.adt-toc--aside {
	position: relative;
	margin: 0 0 16px;
	padding: 0;
	overflow: hidden;
	background: var(--ad-content-background);
	border: 1px solid #e3e7ee;
	box-shadow: 0 1px 2px rgba(18, 43, 70, .04), 0 10px 26px rgba(18, 43, 70, .07);
	font-size: 13px;
	line-height: 1.4;
}

.adt-toc--aside summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	cursor: pointer;
	list-style: none;
	background: linear-gradient(120deg, #0b1224 0%, #101a36 55%, #17224a 100%);
	color: #fff;
}

.adt-toc--aside summary::-webkit-details-marker {
	display: none;
}

.adt-toc--aside summary::after {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin-left: 2px;
	border-right: 2px solid rgba(255, 255, 255, .7);
	border-bottom: 2px solid rgba(255, 255, 255, .7);
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s;
}

.adt-toc--aside details[open] summary::after {
	transform: translateY(2px) rotate(-135deg);
}

.adt-toc--aside .adt-toc__title {
	flex: 0 0 auto;
	margin: 0;
	color: #fff;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Replié : le titre de la partie en cours tient lieu de repère. */
.adt-toc--aside .adt-toc__now {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: #fdba8c;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.adt-toc--aside details[open] .adt-toc__now {
	visibility: hidden;
}

.adt-toc--aside .adt-toc__count {
	flex: 0 0 auto;
	padding: 1px 7px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.adt-toc--aside .adt-toc__count:empty {
	display: none;
}

.adt-toc--aside summary:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -3px;
}

.adt-toc__bar {
	display: block;
	height: 3px;
	background: #e8ecf3;
}

.adt-toc__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, #f59e0b, var(--ad-primary-color));
	transition: width .3s;
}

.adt-toc--aside ol {
	position: relative;
	margin: 0;
	padding: 9px 14px 9px 0;
	list-style: none;
}

.adt-toc--aside li {
	position: relative;
	margin: 0;
	padding-left: 34px;
}

.adt-toc--aside li + li {
	margin-top: 0;
}

/* Le fil : un trait entre deux points, orange une fois la partie lue. */
.adt-toc--aside li::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 18px;
	width: 2px;
	background: #e3e7ee;
}

.adt-toc--aside li:first-child::before {
	top: 14px;
}

.adt-toc--aside li:last-child::before {
	bottom: calc(100% - 14px);
}

.adt-toc--aside li::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 14px;
	width: 10px;
	height: 10px;
	border: 2px solid #cfd6e1;
	border-radius: 50%;
	background: var(--ad-content-background);
	transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.adt-toc--aside li:has(~ li > a[aria-current])::before,
.adt-toc--aside li:has(> a[aria-current])::before {
	background: var(--ad-primary-color);
}

.adt-toc--aside li:has(> a[aria-current])::before {
	bottom: calc(100% - 14px);
}

.adt-toc--aside li:has(> a[aria-current]):first-child::before {
	display: none;
}

.adt-toc--aside li:has(~ li > a[aria-current])::after {
	border-color: var(--ad-primary-color);
	background: var(--ad-primary-color);
}

.adt-toc--aside li:has(> a[aria-current])::after {
	border-color: var(--ad-primary-color);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(226, 108, 61, .2);
	transform: scale(1.15);
}

.adt-toc--aside a {
	display: block;
	padding: 5px 0;
	color: var(--ad-body-text-color);
	transition: color .15s;
}

.adt-toc--aside li:has(~ li > a[aria-current]) a {
	color: var(--ad-alternate-text-color);
}

.adt-toc--aside a:hover {
	color: var(--ad-primary-hover);
	text-decoration: none;
}

/* ---------- Encart événement : composants d'ad-events ----------
   Les inscrits et l'état d'inscription sont le HTML d'ad-events, avec son
   propre style (avatars, « 4 / 6 inscrits — 2 places restantes », jauge,
   « Inscrit — Tu y participes » et menu •••) : on ne règle ici que la place
   qu'ils prennent dans l'encart et leurs couleurs sur fond sombre. */

.adt-encart .adt-encart__title a {
	color: inherit;
}

.adt-encart .adt-encart__title a:hover {
	color: var(--ad-primary-hover);
}

.adt-encart--banner .adt-encart__title a:hover {
	color: #fdba8c;
}

.adt-encart__people {
	margin-top: 10px;
}

.adt-encart__people:empty {
	display: none;
}

.adt-encart__people .ade-single__participants {
	gap: 6px;
	margin: 0;
}

.adt-encart__people .ade-single__cap-text {
	gap: 4px 12px;
	font-size: 13px;
	line-height: 1.3;
}

.adt-encart__people .ade-single__participants-count {
	font-size: 13px;
}

.adt-encart .adt-encart__actions--event {
	display: block;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--ad-border-color);
}

.adt-encart .adt-encart__actions--event .ade-registration {
	margin: 0;
}

.adt-encart .adt-encart__actions--event .ade-reg-btn--register,
.adt-encart .adt-encart__actions--event .ade-reg-btn--waitlist {
	padding: 9px 16px !important;
	border-radius: 6px !important;
	background: var(--ad-primary-color);
	font-size: 14px !important;
}

.adt-encart .adt-encart__actions--event .ade-reg-btn--register:hover,
.adt-encart .adt-encart__actions--event .ade-reg-btn--waitlist:hover {
	background: var(--ad-primary-hover);
}

.adt-encart--card .adt-encart__actions--event .ade-reg-btn--register {
	width: 100%;
	justify-content: center;
}

/* Sur le bandeau (fond sombre). */

.adt-encart--banner .adt-encart__people {
	grid-area: people;
	align-self: end;
	margin: 0;
}

.adt-encart--banner .adt-encart__people .ade-single__cap-text,
.adt-encart--banner .adt-encart__people .ade-single__cap-text span,
.adt-encart--banner .adt-encart__people .ade-single__participants-count {
	color: #cbd5e1 !important;
}

.adt-encart--banner .adt-encart__people .ade-single__cap-text span + span {
	color: #fdba8c !important;
}

.adt-encart--banner .adt-encart__people .ade-avatar-stack img,
.adt-encart--banner .adt-encart__people .ade-avatar-stack .ade-avatar-stack__extra {
	border-color: #101a36;
}

.adt-encart--banner .adt-encart__people .ade-card__progress {
	background: rgba(255, 255, 255, .16);
}

.adt-encart--banner .adt-encart__actions--event {
	grid-area: actions;
	align-self: start;
	margin: 0;
	padding: 0;
	border-top: 0;
}

.adt-encart--banner .adt-encart__actions--event .ade-reg-btn--register,
.adt-encart--banner .adt-encart__actions--event .ade-reg-btn--waitlist {
	width: 100%;
	justify-content: center;
	padding: 12px 22px !important;
	box-shadow: 0 8px 20px rgba(226, 108, 61, .4);
	font-size: 15px !important;
}

.adt-encart--banner .ade-hcta__label {
	color: #fff;
}

.adt-encart--banner .ade-hcta__sub {
	color: #cbd5e1;
}

.adt-encart--banner .ade-hcta__divider {
	background: rgba(255, 255, 255, .2);
}

.adt-encart--banner .ade-reg-status {
	color: #fff;
}

/* Encart dans le texte lié à un événement : inscrits et inscription sous le texte. */
.adt-encart--inline .adt-encart__people {
	grid-column: 2;
	max-width: 320px;
	margin-top: 0;
}

.adt-encart--inline:not(:has(.adt-encart__image)) .adt-encart__people {
	grid-column: 1 / -1;
}

.adt-encart--inline .adt-encart__actions--event {
	margin-top: 0;
}

@media (max-width: 560px) {
	.adt-encart--inline .adt-encart__people {
		grid-column: 1;
	}
}

/* ---------- Cartes de la colonne ----------
   Trois ambiances pour que la colonne ne soit pas une pile de boîtes
   blanches : la ressource (claire et chaleureuse), l'offre (bleu nuit avec
   une lueur orange, comme le bandeau), l'événement (visuel en tête avec la
   date en pastille). Petites : le sommaire et deux ou trois cartes tiennent
   dans la hauteur de l'écran. */

.adt-article__cards .adt-encart--card {
	position: relative;
	padding: 0 16px 16px;
	overflow: hidden;
	border: 1px solid #e3e7ee;
	background: var(--ad-content-background);
	box-shadow: 0 1px 2px rgba(18, 43, 70, .04), 0 10px 26px rgba(18, 43, 70, .07);
	font-size: 13.5px;
	line-height: 1.45;
	transition: box-shadow .25s, transform .25s;
}

.adt-article__cards .adt-encart--card:hover {
	box-shadow: 0 2px 4px rgba(18, 43, 70, .06), 0 18px 36px rgba(18, 43, 70, .14);
	transform: translateY(-3px);
}

/* Le menu ••• d'ad-events s'ouvre vers le haut : la carte ne doit pas le couper. */
.adt-article__cards .adt-encart--card:has(.ade-hcta__more) {
	overflow: visible;
}

.adt-article__cards .adt-encart + .adt-encart {
	margin-top: 14px;
}

.adt-article__cards .adt-encart--card .adt-encart__title {
	font-size: 1rem;
	line-height: 1.3;
}

.adt-article__cards .adt-encart--card .adt-encart__title + .adt-encart__text,
.adt-article__cards .adt-encart--card .adt-encart__date + .adt-encart__text {
	margin-top: 5px;
}

.adt-article__cards .adt-encart--card .adt-encart__next {
	display: inline-block;
	margin-top: 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #eef3fb;
	color: #1e3a8a;
	font-size: 12.5px;
}

.adt-article__cards .adt-encart--card .adt-encart__actions {
	margin-top: 12px;
}

.adt-article__cards .adt-encart--card .adt-encart__button {
	padding: 9px 12px;
	box-shadow: 0 6px 16px rgba(226, 108, 61, .28);
	font-size: 13.5px;
	font-weight: 600;
	transition: box-shadow .2s, transform .2s;
}

.adt-article__cards .adt-encart--card .adt-encart__button:hover {
	box-shadow: 0 8px 20px rgba(226, 108, 61, .4);
	transform: translateY(-1px);
}

/* Image en tête, à bords perdus. */
.adt-article__cards .adt-encart--card > .adt-encart__image,
.adt-article__cards .adt-encart--card .adt-encart__visual {
	display: block;
	width: calc(100% + 32px);
	max-width: none;
	margin: 0 -16px 14px;
}

.adt-article__cards .adt-encart--card .adt-encart__image {
	display: block;
	border-radius: 0;
}

.adt-article__cards .adt-encart--card .adt-encart__image--photo {
	width: 100%;
	height: 100px;
	object-fit: cover;
}

.adt-article__cards .adt-encart--card > .adt-encart__image--photo {
	width: calc(100% + 32px);
}

/* Petite illustration : entière, posée sur un fond coloré avec deux halos. */
.adt-article__cards .adt-encart--card > .adt-encart__image--illu {
	height: 84px;
	padding: 9px 0;
	background:
		radial-gradient(140px 90px at 12% 0%, rgba(245, 158, 11, .28), transparent 70%),
		radial-gradient(160px 100px at 100% 100%, rgba(59, 130, 246, .2), transparent 70%),
		linear-gradient(135deg, #fff4ea 0%, #f1f5fd 100%);
	object-fit: contain;
	filter: drop-shadow(0 6px 10px rgba(18, 43, 70, .12));
}

.adt-article__cards .adt-encart--card:not(:has(.adt-encart__image)) {
	padding-top: 16px;
}

/* Événement : la date en pastille, à cheval sur le bas du visuel. */
.adt-article__cards .adt-encart--card .adt-encart__visual {
	position: relative;
	margin-bottom: 22px;
}

.adt-article__cards .adt-encart--card .adt-encart__visual::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	background: linear-gradient(to bottom, transparent, rgba(11, 18, 36, .45));
	pointer-events: none;
}

.adt-article__cards .adt-encart--card .adt-encart__day {
	position: absolute;
	z-index: 1;
	bottom: -14px;
	left: 16px;
	box-shadow: 0 6px 16px rgba(11, 18, 36, .28);
}

.adt-article__cards .adt-encart--card .adt-encart__visual:not(:has(img)) {
	margin-bottom: 12px;
	padding: 14px 16px 0;
}

.adt-article__cards .adt-encart--card .adt-encart__visual:not(:has(img))::after {
	display: none;
}

.adt-article__cards .adt-encart--card .adt-encart__visual:not(:has(img)) .adt-encart__day {
	position: static;
	display: inline-flex;
}

.adt-article__cards .adt-encart--card .adt-encart__kicker {
	margin-bottom: 2px;
	color: var(--ad-primary-hover);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.adt-article__cards .adt-encart--card .adt-encart__date {
	margin-top: 2px;
	color: var(--ad-headings-color);
	font-size: 13px;
	font-weight: 500;
}

.adt-article__cards .adt-encart--card .adt-encart__date::first-letter {
	text-transform: uppercase;
}

/* Offre : carte bleu nuit, l'illustration en vignette dans le coin. */
.adt-article__cards .adt-encart--offre {
	padding-top: 16px;
	border-color: #17224a;
	background:
		radial-gradient(260px 150px at 100% 0%, rgba(226, 108, 61, .42), transparent 70%),
		radial-gradient(220px 140px at 0% 100%, rgba(59, 130, 246, .22), transparent 70%),
		linear-gradient(140deg, #0b1224 0%, #101a36 55%, #17224a 100%);
	box-shadow: 0 12px 30px rgba(11, 18, 36, .28);
	color: #cbd5e1;
}

.adt-article__cards .adt-encart--offre:hover {
	box-shadow: 0 20px 40px rgba(11, 18, 36, .38);
}

.adt-article__cards .adt-encart--offre > .adt-encart__image--illu {
	float: right;
	width: 66px;
	height: 48px;
	margin: 0 0 8px 12px;
	padding: 0;
	border-radius: 6px;
	background: none;
	object-fit: cover;
	filter: none;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
	transform: rotate(4deg);
}

/* !important : site.css force « body h3 » en noir. */
.adt-article__cards .adt-encart--offre .adt-encart__title {
	color: #fff !important;
}

.adt-article__cards .adt-encart--offre .adt-encart__text {
	color: #b9c4d8;
}

.adt-article__cards .adt-encart--offre .adt-encart__actions {
	clear: both;
}

.adt-article__cards .adt-encart--offre .adt-encart__more {
	color: #fff;
}

.adt-article__cards .adt-encart--offre a:focus-visible {
	outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.adt-article__cards .adt-encart--card,
	.adt-article__cards .adt-encart--card:hover,
	.adt-article__cards .adt-encart--card .adt-encart__button,
	.adt-article__cards .adt-encart--card .adt-encart__button:hover {
		transition: none;
		transform: none;
	}
}

/* ---------- Commentaires des articles ----------
   Une conversation : l'avatar à gauche, le message dans une bulle, les
   réponses décalées le long d'un filet orange. Le formulaire est une carte
   à part. Limité aux articles (.adt-single__comments) ; le style de base
   des commentaires reste dans elements.css. */

.adt-single__comments .comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
}

.adt-single__comments .comments-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 1.5rem;
	font-size: 1.375rem;
}

.adt-single__comments .comments-title__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 6px;
	background: linear-gradient(135deg, #f59e0b, var(--ad-primary-color));
	box-shadow: 0 6px 14px rgba(226, 108, 61, .3);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

.adt-single__comments .comment-list > li {
	margin-bottom: 18px;
}

.adt-single__comments .comment-body {
	position: relative;
	margin: 0 0 0 62px;
	padding: 14px 18px 12px;
	border: 1px solid #e3e7ee;
	border-radius: 6px;
	background: var(--ad-content-background);
	box-shadow: 0 1px 2px rgba(18, 43, 70, .04), 0 8px 22px rgba(18, 43, 70, .06);
	transition: box-shadow .2s;
}

.adt-single__comments .comment-body:hover {
	box-shadow: 0 2px 4px rgba(18, 43, 70, .05), 0 12px 28px rgba(18, 43, 70, .1);
}

/* La pointe de la bulle, tournée vers l'avatar. */
.adt-single__comments .comment-body::before {
	content: "";
	position: absolute;
	top: 18px;
	left: -7px;
	width: 12px;
	height: 12px;
	border-bottom: 1px solid #e3e7ee;
	border-left: 1px solid #e3e7ee;
	background: var(--ad-content-background);
	transform: rotate(45deg);
}

.adt-single__comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	margin-bottom: 6px;
}

.adt-single__comments .comment-author {
	display: block;
	font-size: 15px;
}

.adt-single__comments .comment-author .avatar {
	position: absolute;
	top: 0;
	left: -62px;
	width: 46px;
	height: 46px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #e3e7ee, 0 6px 14px rgba(18, 43, 70, .14);
	object-fit: cover;
}

.adt-single__comments .comment-author .fn,
.adt-single__comments .comment-author .fn a {
	color: var(--ad-headings-color);
	font-weight: 700;
}

.adt-single__comments .comment-author .fn a:hover {
	color: var(--ad-primary-hover);
}

.adt-single__comments .comment-metadata {
	font-size: 12.5px;
}

.adt-single__comments .comment-metadata a {
	color: var(--ad-alternate-text-color);
}

.adt-single__comments .comment-metadata a:hover {
	color: var(--ad-primary-hover);
}

.adt-single__comments .comment-metadata .edit-link {
	margin-left: 8px;
}

.adt-single__comments .comment-content {
	font-size: 15.5px;
	line-height: 1.6;
}

.adt-single__comments .comment-content p {
	margin: 0 0 .6em;
}

.adt-single__comments .comment-reactions {
	margin-top: 8px;
}

/* Visiteur : pas de réaction possible, donc pas de ligne vide sous le texte. */
body:not(.logged-in) .adt-single__comments .comment-reactions:not(:has(.reactions-bar__list > *)) {
	display: none;
}

.adt-single__comments .comment-awaiting-moderation {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #eef3fb;
	color: #1e3a8a;
	font-size: 12.5px;
	font-style: normal;
}

/* « Répondre » : un petit bouton discret avec sa flèche. */
.adt-single__comments .comment-body .reply {
	margin-top: 8px;
}

.adt-single__comments .comment-reply-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid #e3e7ee;
	border-radius: 6px;
	color: var(--ad-body-text-color);
	font-size: 12.5px;
	font-weight: 600;
	transition: border-color .15s, color .15s, background .15s;
}

.adt-single__comments .comment-reply-link::before {
	content: "↩";
	font-size: 13px;
	line-height: 1;
}

.adt-single__comments .comment-reply-link:hover,
.adt-single__comments .comment-reply-link:focus-visible {
	border-color: var(--ad-primary-color);
	background: #fff4ea;
	color: var(--ad-primary-hover);
}

/* L'auteur de l'article : bulle teintée et mention « Auteur ». */
.adt-single__comments .bypostauthor > .comment-body {
	border-color: #f6d3bd;
	background: linear-gradient(180deg, #fff8f2 0%, var(--ad-content-background) 70%);
}

.adt-single__comments .bypostauthor > .comment-body::before {
	border-color: #f6d3bd;
	background: #fff8f2;
}

.adt-single__comments .bypostauthor > .comment-body .comment-author .avatar {
	box-shadow: 0 0 0 2px var(--ad-primary-color), 0 6px 14px rgba(226, 108, 61, .3);
}

/* Membre : sa phrase de présentation, sous son nom. */
.adt-single__comments .comment-author-pitch {
	display: block;
	margin-top: 1px;
	color: var(--ad-alternate-text-color);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
}

.adt-single__comments .bypostauthor > .comment-body .fn > a::after {
	display: inline-block;
	content: "Auteur";
	margin-left: 8px;
	padding: 1px 7px;
	border-radius: 4px;
	background: var(--ad-primary-color);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: 2px;
}

/* Réponses : décalées, reliées par un filet orange. */
.adt-single__comments .comment-list .children {
	position: relative;
	margin: 14px 0 0 62px;
	padding-left: 0;
}

.adt-single__comments .comment-list .children::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 12px;
	left: -40px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(to bottom, var(--ad-primary-color), rgba(226, 108, 61, 0));
}

.adt-single__comments .comment-list .children > li {
	margin-bottom: 14px;
}

.adt-single__comments .comment-list .children .children {
	margin-left: 24px;
}

/* Formulaire : une carte, le champ de texte d'abord. */
.adt-single__comments .comment-respond {
	position: relative;
	margin-top: 2rem;
	padding: 22px 24px 20px;
	overflow: hidden;
	border: 1px solid #e3e7ee;
	border-radius: 6px;
	background: var(--ad-content-background);
	box-shadow: 0 1px 2px rgba(18, 43, 70, .04), 0 12px 30px rgba(18, 43, 70, .08);
}

.adt-single__comments .comment-respond::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, #f59e0b, var(--ad-primary-color) 55%, #17224a);
}

.adt-single__comments .comment-list .comment-respond {
	margin: 12px 0 0 62px;
}

.adt-single__comments .comment-reply-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0 0 4px;
	font-size: 1.25rem;
}

.adt-single__comments .comment-reply-title small {
	font-size: 13px;
	font-weight: 500;
}

.adt-single__comments .comment-reply-title small a {
	color: var(--ad-alternate-text-color);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.adt-single__comments .comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 14px;
}

.adt-single__comments .comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.adt-single__comments .comment-form .comment-form-author,
.adt-single__comments .comment-form .comment-form-email,
.adt-single__comments .comment-form .comment-form-url {
	grid-column: auto;
}

.adt-single__comments .comment-notes,
.adt-single__comments .logged-in-as {
	color: var(--ad-alternate-text-color);
	font-size: 13px;
}

.adt-single__comments .comment-form label {
	margin-bottom: 4px;
	color: var(--ad-headings-color);
	font-size: 13.5px;
	font-weight: 600;
}

.adt-single__comments .comment-form textarea,
.adt-single__comments .comment-form input:not([type="checkbox"]):not([type="submit"]) {
	border-color: #dfe4ec;
	border-radius: 6px;
	background: #fbfcfe;
	transition: border-color .15s, box-shadow .15s, background .15s;
}

.adt-single__comments .comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.adt-single__comments .comment-form textarea:focus,
.adt-single__comments .comment-form input:not([type="checkbox"]):not([type="submit"]):focus {
	border-color: var(--ad-primary-color);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(226, 108, 61, .18);
	outline: 0;
}

.adt-single__comments .comment-form-cookies-consent label {
	margin: 0;
	color: var(--ad-body-text-color);
	font-size: 13px;
	font-weight: 400;
}

.adt-single__comments .form-submit .submit {
	padding: 11px 22px;
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(226, 108, 61, .34);
	font-size: 15px;
	font-weight: 600;
	transition: box-shadow .2s, transform .2s;
}

.adt-single__comments .form-submit .submit:hover {
	box-shadow: 0 10px 24px rgba(226, 108, 61, .45);
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.adt-single__comments .comment-body {
		margin-left: 50px;
		padding: 12px 14px 10px;
	}

	.adt-single__comments .comment-author .avatar {
		left: -50px;
		width: 38px;
		height: 38px;
	}

	.adt-single__comments .comment-list .children {
		margin-left: 22px;
	}

	.adt-single__comments .comment-list .children::before {
		left: -12px;
	}

	.adt-single__comments .comment-list .comment-respond {
		margin-left: 0;
	}

	.adt-single__comments .comment-respond {
		padding: 18px 16px 16px;
	}

	.adt-single__comments .comment-form .comment-form-author,
	.adt-single__comments .comment-form .comment-form-email,
	.adt-single__comments .comment-form .comment-form-url {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.adt-single__comments .form-submit .submit,
	.adt-single__comments .form-submit .submit:hover {
		transition: none;
		transform: none;
	}
}

/* Bandeau en haut de toutes les pages (30/11/2026) : collé sous l'en-tête,
   fond sur toute la largeur (sans marge sur les côtés), contenu recentré
   sur la largeur du site pour les grands écrans. Se range tout seul
   (article.js) ; un petit onglet le fait réapparaître. */
.adt-site-banner {
	position: relative;
	z-index: 50;
	display: grid;
	grid-template-rows: 1fr;
	margin: 0 calc(-1 * var(--adt-gutter)) 1.25rem;
	transition: grid-template-rows .45s ease, margin-bottom .45s ease;
}

.adt-site-banner__inner {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background:
		radial-gradient(620px 240px at 85% 0%, rgba(226, 108, 61, .34), transparent 70%),
		radial-gradient(520px 220px at 10% 100%, rgba(59, 130, 246, .18), transparent 70%),
		linear-gradient(120deg, #0b1224 0%, #101a36 55%, #17224a 100%);
}

.site-content:has(.msgn) .adt-site-banner {
	margin: 0;
}

.adt-site-banner .adt-encart--banner {
	max-width: var(--ad-content-width);
	margin: 0 auto;
	padding: 18px var(--adt-gutter);
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.adt-site-banner.is-collapsed {
	grid-template-rows: 0fr;
	margin-bottom: 2.5rem; /* Place de l'onglet : il ne cache pas le contenu. */
}

/* « Ranger » : petit bouton discret en haut à droite du bandeau. */
.adt-site-banner__hide {
	position: absolute;
	top: 6px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border: 0;
	border-radius: 6px;
	background: rgba(255, 255, 255, .08);
	color: #cbd5e1;
	font-size: .75rem;
	line-height: 1.4;
	cursor: pointer;
}

.adt-site-banner__hide:hover,
.adt-site-banner__hide:focus-visible {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

/* Onglet qui pend sous l'en-tête quand le bandeau est rangé. */
.adt-site-banner__tab {
	position: absolute;
	top: 0;
	right: max(var(--adt-gutter), calc((100% - var(--ad-content-width)) / 2));
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 2 * var(--adt-gutter));
	padding: 5px 12px 6px;
	border: 0;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(120deg, #0b1224 0%, #17224a 100%);
	box-shadow: 0 6px 16px rgba(11, 18, 36, .18);
	color: #fff;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.adt-site-banner.is-collapsed .adt-site-banner__tab {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: .2s, .2s, 0s;
}

.adt-site-banner__tab:hover,
.adt-site-banner__tab:focus-visible {
	background: linear-gradient(120deg, #101a36 0%, #1f2c5c 100%);
}

.adt-site-banner__label {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.adt-site-banner__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ad-primary-color, #e26c3d);
	box-shadow: 0 0 0 3px rgba(226, 108, 61, .25);
}

@media (prefers-reduced-motion: reduce) {
	.adt-site-banner,
	.adt-site-banner__tab {
		transition: none;
	}
}
