/* =========================================================================
 * Accessibilité DN — Centre d'Affaires Athéna
 * Styles du second système de navigation (Critère RGAA 12.1) et du
 * bouton pause des carrousels (Critère RGAA 13.8).
 * ====================================================================== */

/* --- Bloc recherche + plan du site injecté en pied de page (12.1) ---
 * Bande utilitaire sobre, centrée, responsive. box-sizing local pour ne pas
 * dépendre du reset du thème. */
.dn-a11y-footer-nav {
	box-sizing: border-box;
	width: 100%;
	margin: 2.5rem 0 0;
	padding: 1.75rem 1rem;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-family: inherit;
	font-size: 0.95rem;
	color: #1e293b;
}
.dn-a11y-footer-nav *,
.dn-a11y-footer-nav *::before,
.dn-a11y-footer-nav *::after {
	box-sizing: border-box;
}

.dn-a11y-footer-nav__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.85rem 1.75rem;
}

.dn-a11y-footer-nav__title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #64748b;
}

.dn-a11y-footer-nav form,
.dn-a11y-footer-nav .search-form {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0;
}

/* Champ de recherche */
.dn-a11y-footer-nav input[type="search"],
.dn-a11y-footer-nav input.search-field {
	box-sizing: border-box;
	width: clamp(180px, 38vw, 320px);
	min-height: 2.75rem;
	padding: 0.55rem 0.9rem;
	font-size: 0.95rem;
	color: #1e293b !important;
	background: #fff !important;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-shadow: none;
}
.dn-a11y-footer-nav input[type="search"]:focus,
.dn-a11y-footer-nav input.search-field:focus {
	border-color: #1e293b;
	outline: 2px solid #1d4ed8;
	outline-offset: 1px;
}

/* Bouton de recherche (sélecteurs larges car le markup varie selon le thème) */
.dn-a11y-footer-nav button,
.dn-a11y-footer-nav input[type="submit"],
.dn-a11y-footer-nav .search-submit,
.dn-a11y-footer-nav .wp-block-search__button {
	box-sizing: border-box;
	width: auto;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.55rem 1.3rem;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff !important;
	background: #1e293b !important;
	border: 1px solid #1e293b;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dn-a11y-footer-nav button:hover,
.dn-a11y-footer-nav input[type="submit"]:hover,
.dn-a11y-footer-nav .search-submit:hover,
.dn-a11y-footer-nav .wp-block-search__button:hover {
	background: #334155;
	border-color: #334155;
}

/* Lien « Plan du site » présenté en bouton secondaire */
.dn-a11y-footer-nav .dn-a11y-plan-link {
	margin: 0;
}
.dn-a11y-footer-nav .dn-a11y-plan-link a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.55rem 1.2rem;
	font-weight: 600;
	color: #1e293b !important;
	text-decoration: none !important;
	background: #fff !important;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dn-a11y-footer-nav .dn-a11y-plan-link a:hover {
	background: #fff;
	border-color: #1e293b;
}
.dn-a11y-footer-nav .dn-a11y-plan-link a:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

/* Bouton de bascule « Rechercher sur le site » (toujours visible) */
.dn-a11y-search-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.55rem 1.3rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff !important;
	background: #1e293b !important;
	border: 1px solid #1e293b;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.dn-a11y-search-toggle:hover,
.dn-a11y-search-toggle[aria-expanded="true"] {
	background: #334155 !important;
}
.dn-a11y-search-toggle__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.dn-a11y-search-toggle:focus-visible {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
}

/* Panneau de recherche repliable */
.dn-a11y-search-panel[hidden] {
	display: none !important;
}
.dn-a11y-search-panel {
	margin-top: 1.1rem;
	animation: dn-a11y-reveal 0.18s ease;
}
.dn-a11y-search-panel__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
@keyframes dn-a11y-reveal {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

/* Responsive : empilement propre sur mobile */
@media (max-width: 600px) {
	.dn-a11y-footer-nav__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
	.dn-a11y-footer-nav form {
		justify-content: center;
	}
	.dn-a11y-footer-nav input[type="search"],
	.dn-a11y-footer-nav input.search-field {
		width: 100%;
	}
	.dn-a11y-footer-nav .dn-a11y-plan-link a {
		justify-content: center;
	}
}

/* --- Plan du site (page dédiée) (12.1 / 12.3) ---
 * Couleurs et tailles FORCÉES (!important) : la couleur de lien globale du
 * thème/Elementor (ici un accent crème prévu pour les fonds sombres) écrase
 * sinon ces styles et rend les liens illisibles sur fond blanc. La typo, elle,
 * est héritée du site (font-family: inherit) pour rester cohérente. */
.dn-a11y-plan {
	max-width: 1040px;
	margin: 2.5rem auto;
	padding: 2rem clamp(1rem, 4vw, 2.5rem);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	color: #1e293b !important;
	font-family: inherit;
	line-height: 1.5;
}
.dn-a11y-plan h2 {
	margin: 2rem 0 1.25rem !important;
	padding-bottom: 0.5rem !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	border-bottom: 2px solid #e2e8f0 !important;
}
.dn-a11y-plan h2:first-child {
	margin-top: 0 !important;
}
.dn-a11y-plan h3 {
	margin: 1.5rem 0 0.5rem !important;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	color: #334155 !important;
}
.dn-a11y-plan ul {
	margin: 0 0 1.5rem !important;
	padding: 0 !important;
	list-style: none !important;
	columns: 2;
	column-gap: 2.5rem;
}
.dn-a11y-plan ul ul {
	margin: 0.25rem 0 0.25rem 1rem !important;
	columns: 1;
}
.dn-a11y-plan li {
	margin: 0 !important;
	padding: 0.45rem 0 !important;
	break-inside: avoid;
	list-style: none !important;
	border-bottom: 1px solid #f1f5f9;
}
.dn-a11y-plan a {
	color: #1e293b !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.dn-a11y-plan a:hover {
	color: #0f172a !important;
	border-bottom-color: #1e293b !important;
	text-decoration: none !important;
}
.dn-a11y-plan a:focus-visible {
	outline: 2px solid #1d4ed8 !important;
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.dn-a11y-plan {
		padding: 1.5rem 1.25rem;
	}
	.dn-a11y-plan ul {
		columns: 1;
	}
}

/* --- Bouton pause/lecture des carrousels (13.8, expérimental) ---
 * Propriétés de dimensionnement forcées (!important) pour résister aux styles
 * globaux de bouton du thème / d'Elementor (largeur 100 %, gros padding, etc.)
 * qui rendaient le bouton démesuré. */
.dn-a11y-carousel-toggle {
	position: absolute !important;
	z-index: 50;
	top: 0.5rem !important;
	right: 0.5rem !important;
	left: auto !important;
	bottom: auto !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.75rem !important;
	min-width: 2.75rem !important;
	max-width: none !important;
	height: 2.75rem !important;
	min-height: 2.75rem !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	color: #fff !important;
	background: #1e293b !important;
	border: 2px solid #fff !important;
	border-radius: 8px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
	cursor: pointer !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.dn-a11y-carousel-toggle svg {
	display: block !important;
	width: 20px !important;
	height: 20px !important;
}

.dn-a11y-carousel-toggle:hover {
	background: #334155 !important;
}

.dn-a11y-carousel-toggle:focus-visible {
	outline: 3px solid #1d4ed8 !important;
	outline-offset: 2px !important;
}
