/*
 * Menu Defibtech. Valeurs reprises de l'ancien UberMenu (mesurées dans le navigateur) :
 * Montserrat 12 px, interlettrage 1 px, jaune #ecb002 au survol, panneaux blancs à ombre douce.
 * Bureau à partir de 992 px, volet mobile en dessous (le thème bascule l'en-tête au même seuil).
 */

/* ---------- Bureau ---------- */
.dt-menu {
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 1px;
}
.dt-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.dt-menu a {
	text-decoration: none;
}
.dt-menu__liste {
	display: flex;
	flex-wrap: wrap;
}

.dt-menu__lien {
	position: relative;
	display: block;
	padding: 15px 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: #000;
	transition: color 0.15s;
}
.dt-menu__lien:hover,
.dt-menu__lien:focus-visible,
.dt-menu__item:hover > .dt-menu__lien,
.dt-menu__item:focus-within > .dt-menu__lien,
.dt-menu__item.is-open > .dt-menu__lien {
	color: #ecb002;
}
.dt-menu__item--parent > .dt-menu__lien {
	padding-right: 25px;
}
.dt-menu__item--parent > .dt-menu__lien::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 5px;
	height: 5px;
	margin-top: -4px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

/* Les panneaux se placent par rapport à la barre d'en-tête, sauf la petite liste qui s'aligne sous son entrée. */
.sb-top-bar {
	position: relative;
}
.dt-menu__item--liste {
	position: relative;
}

.dt-menu__panneau {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	width: min(1100px, 100%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none; /* un panneau qui se ferme ne doit plus intercepter la souris */
	transition: opacity 0.15s, visibility 0s 0.15s;
}
.dt-menu__item--liste > .dt-menu__panneau {
	top: calc(100% + 26px);
	left: 0;
	width: auto;
	min-width: 347px;
}
@media (min-width: 1200px) {
	.dt-menu__item--parent:not(.dt-menu__item--liste) > .dt-menu__panneau {
		left: 32px;
		width: 1100px;
	}
}
/* Pont invisible : la souris peut traverser l'espace entre l'entrée et le panneau sans le fermer. */
.dt-menu__panneau::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: 30px;
}
.dt-menu__item:hover > .dt-menu__panneau,
.dt-menu__item:focus-within > .dt-menu__panneau,
.dt-menu__item.is-open > .dt-menu__panneau {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}
.dt-menu.is-echappe .dt-menu__panneau {
	opacity: 0;
	visibility: hidden;
}
.dt-menu__boite {
	background: #fff;
	border: 1px solid #fff;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Grille d'images */
.dt-menu__cartes {
	display: flex;
	flex-wrap: wrap;
}
.dt-menu__carte-lien {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 20px;
	color: #000;
}
.dt-menu__carte-lien:hover,
.dt-menu__carte-lien:focus-visible {
	background: #f9fafc;
}
.dt-menu__image {
	max-width: 130px;
	max-height: 125px;
	margin-bottom: 10px;
	object-fit: contain;
}
.dt-menu__texte {
	text-align: center;
}

/* Petite liste */
.dt-menu__sous-lien {
	display: block;
	padding: 15px 20px;
	color: #000;
}
.dt-menu__sous-lien:hover,
.dt-menu__sous-lien:focus-visible {
	background: #f9fafc;
}

/* Onglets : titres à gauche, contenu de l'onglet actif à droite. Les contenus se superposent dans la même
   case, donc le panneau garde la hauteur du plus grand. */
.dt-menu__onglets {
	display: grid;
	grid-template-columns: 275px 1fr;
	grid-template-rows: repeat(var(--dt-onglets), auto) 1fr;
}
.dt-menu__onglet {
	display: contents;
}
.dt-menu__onglet-lien {
	position: relative;
	grid-column: 1;
	margin: 5px 12px;
	padding: 15px 25px 15px 20px;
	font-weight: 700;
	color: #000;
}
.dt-menu__onglet-lien::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 15px;
	width: 4px;
	height: 4px;
	margin-top: -3px;
	border: solid currentColor;
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}
.dt-menu__contenu {
	grid-column: 2;
	grid-row: 1 / -1;
	border-left: 1px solid #eee;
	opacity: 0;
	visibility: hidden;
}
/* Dans un onglet, les cartes ont un peu d'air autour, comme dans l'ancien menu. */
.dt-menu__contenu .dt-menu__carte {
	padding: 5px 12px;
}
.dt-menu__onglet:hover > .dt-menu__onglet-lien,
.dt-menu__onglet:focus-within > .dt-menu__onglet-lien {
	color: #111;
	background: #eee;
}
.dt-menu__onglet:hover > .dt-menu__contenu,
.dt-menu__onglet:focus-within > .dt-menu__contenu {
	opacity: 1;
	visibility: inherit;
}
/* Sans survol ni focus, le premier onglet est affiché. « inherit » et non « visible » : sinon le contenu resterait
   cliquable, invisible, par-dessus la page quand le menu est fermé. */
.dt-menu__onglets:not(:has(> .dt-menu__onglet:hover, > .dt-menu__onglet:focus-within)) > .dt-menu__onglet:first-child > .dt-menu__onglet-lien {
	color: #111;
	background: #eee;
}
.dt-menu__onglets:not(:has(> .dt-menu__onglet:hover, > .dt-menu__onglet:focus-within)) > .dt-menu__onglet:first-child > .dt-menu__contenu {
	opacity: 1;
	visibility: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.dt-menu__panneau,
	.dt-menu__lien {
		transition: none;
	}
}

/* ---------- Mobile ---------- */
/* Mêmes codes que le site : Montserrat en capitales grasses, jaune #fcc33f, fond beige #f8f3ee. */
.dt-burger {
	display: inline-flex;
	padding: 0;
	color: #000;
	background: none;
	border: 0;
	cursor: pointer;
}
.dt-burger:focus-visible {
	outline: 2px solid #000;
	outline-offset: 4px;
}

.dt-mobile {
	position: fixed;
	inset: 0;
	z-index: 3000000;
	font-family: Montserrat, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.dt-mobile[hidden] {
	display: none;
}
.dt-mobile__fond {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.25s;
}
.dt-mobile__panneau {
	position: absolute;
	inset: 0 auto 0 0;
	display: flex;
	flex-direction: column;
	align-items: stretch; /* le thème centre tous les <nav> : on le remet à plat */
	justify-content: flex-start;
	width: 320px;
	max-width: 88vw;
	background: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
	transform: translateX(-100%);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dt-mobile.is-open .dt-mobile__fond {
	opacity: 1;
}
.dt-mobile.is-open .dt-mobile__panneau {
	transform: none;
}

.dt-mobile__entete {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 10px 0 20px;
	border-bottom: 1px solid #eee;
}
.dt-mobile__logo img {
	display: block;
	width: auto;
	height: 28px;
}
.dt-mobile__fermer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #000;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.dt-mobile__fermer:hover,
.dt-mobile__fermer:active {
	background: #f8f3ee;
}

.dt-mobile__defile {
	flex: 1;
	padding: 6px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.dt-mobile ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dt-mobile__ligne {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #f1ece6;
}
.dt-mobile__lien {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 8px 8px 8px 20px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
}
.dt-mobile__lien:active,
.dt-mobile__plus:active {
	background: rgba(252, 195, 63, 0.25);
}
.dt-mobile__image {
	flex: none;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

/* Niveaux suivants : fond beige, texte plus sobre. */
.dt-mobile__sous {
	display: grid;
	grid-template-rows: 0fr;
	background: #f8f3ee;
	transition: grid-template-rows 0.25s ease;
}
.dt-mobile__sous > ul {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s 0.25s;
}
.dt-mobile__item.is-open > .dt-mobile__sous {
	grid-template-rows: 1fr;
}
.dt-mobile__item.is-open > .dt-mobile__sous > ul {
	visibility: visible;
	transition-delay: 0s;
}
.dt-mobile__sous .dt-mobile__ligne {
	border-bottom-color: rgba(0, 0, 0, 0.06);
}
.dt-mobile__liste--1 .dt-mobile__lien {
	min-height: 52px;
	padding-left: 28px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: none;
}
.dt-mobile__liste--2 .dt-mobile__lien {
	min-height: 52px;
	padding-left: 36px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: none;
}
.dt-mobile__sous .dt-mobile__sous {
	background: #efe7db;
}

/* Page courante et entrée ouverte : liseré jaune. */
.dt-mobile__liste--0 > .dt-mobile__item.is-open > .dt-mobile__ligne {
	box-shadow: inset 4px 0 0 #fcc33f;
}
.dt-mobile__item.is-current > .dt-mobile__ligne {
	background: rgba(252, 195, 63, 0.18);
	box-shadow: inset 4px 0 0 #fcc33f;
}

/* Flèche : pastille beige, jaune quand le sous-menu est ouvert. */
.dt-mobile__plus {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.dt-mobile__plus::before {
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	background: #f1ece6;
	border-radius: 50%;
	transition: background 0.2s;
}
.dt-mobile__plus::after {
	content: "";
	position: relative;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border: solid #000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform 0.2s, margin 0.2s;
}
.dt-mobile__plus[aria-expanded="true"]::before {
	background: #fcc33f;
}
.dt-mobile__plus[aria-expanded="true"]::after {
	margin-top: 3px;
	transform: rotate(-135deg);
}
.dt-mobile__plus:focus-visible,
.dt-mobile__lien:focus-visible {
	outline: 2px solid #000;
	outline-offset: -2px;
}

/* Pied : téléphone et raccourcis, toujours visibles. */
.dt-mobile__pied {
	flex: none;
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid #eee;
}
.dt-mobile__appel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	background: #fcc33f;
}
.dt-mobile__appel:active {
	background: #f0b52e;
}
.dt-mobile__liens {
	display: flex;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 13px;
}
.dt-mobile__liens a {
	color: #000;
	text-decoration: underline;
}

html.dt-mobile-ouvert {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.dt-mobile__fond,
	.dt-mobile__panneau,
	.dt-mobile__sous,
	.dt-mobile__plus::after {
		transition: none;
	}
}
