/* Menu du haut de heliciel.com (2026-11-23) - remplace Deluxe Menu.
   Les liens sont des <a href> ecrits dans la page : le script ne fait qu'ouvrir et fermer. */

.hm {
	--hm-bleu: #336699;
	--hm-bleu-fonce: #24496e;
	--hm-vert: #669933;
	--hm-vert-clair: #eef5e6;
	--hm-texte: #1f3346;
	position: relative;
	z-index: 50;
	font-family: "Trebuchet MS", Tahoma, Geneva, sans-serif;
	background: var(--hm-bleu);
	border-bottom: 3px solid var(--hm-vert);
	box-sizing: border-box;
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm ul { list-style: none; margin: 0; padding: 0; }
.hm p { text-align: left; } /* style.css justifie tous les <p> du site */

/* Bouton mobile, masque sur grand ecran */
.hm-burger { display: none; }

/* Barre de premier niveau */
.hm-bar { display: flex; flex-wrap: nowrap; }
.hm-item { flex: 1 1 auto; position: static; }
.hm-top {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 48px; padding: 0 8px;
	background: none; border: 0; cursor: pointer;
	color: #fff; font: inherit; font-size: 13.5px; line-height: 1.15; text-align: center;
	text-decoration: none;
}
.hm-top::after {
	content: ""; width: 6px; height: 6px; margin-left: 6px; flex: none;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .15s;
}
a.hm-top::after { display: none; }
.hm-top:hover, .hm-item.hm-ouvert > .hm-top { background: var(--hm-bleu-fonce); }
.hm-item.hm-ouvert > .hm-top::after { transform: translateY(1px) rotate(225deg); }
.hm-item.hm-courant > .hm-top { box-shadow: inset 0 -3px 0 #fff; }
.hm-top:focus-visible, .hm a:focus-visible, .hm-burger:focus-visible {
	outline: 2px solid #ffcc33; outline-offset: -2px;
}
.hm-langue { flex: 0 0 auto; }
.hm-langue .hm-top { font-weight: bold; letter-spacing: .03em; padding: 0 12px; background: var(--hm-vert); }
.hm-langue .hm-top:hover { background: #557f2a; }

/* Panneau deroulant : toute la largeur de la colonne */
.hm-panel {
	display: none;
	position: absolute; left: 0; right: 0; top: 100%;
	max-height: 72vh; overflow-y: auto;
	padding: 18px 22px 20px;
	background: #fff; color: var(--hm-texte);
	border-top: 3px solid var(--hm-vert);
	margin-top: -3px;
	box-shadow: 0 12px 28px rgba(20, 40, 60, .28);
	text-align: left;
}
.hm-item.hm-ouvert > .hm-panel { display: block; }
/* Sans script : le survol et le focus clavier ouvrent encore les panneaux */
.hm:not(.hm-js) .hm-item:hover > .hm-panel,
.hm:not(.hm-js) .hm-item:focus-within > .hm-panel { display: block; }

/* Groupes en colonnes qui se remplissent l'une apres l'autre : pas de trou sous un groupe court */
.hm-groupes { columns: 3 210px; column-gap: 26px; }
.hm-groupes > div { break-inside: avoid; margin-bottom: 16px; }
/* Un groupe tres long (plus de 15 liens) peut se poursuivre dans la colonne suivante */
.hm-groupes > div.hm-long { break-inside: auto; }
.hm-groupes > div.hm-long .hm-titre { break-after: avoid; }
.hm-titre {
	margin: 0 0 6px; padding-bottom: 4px;
	font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em;
	color: var(--hm-bleu); border-bottom: 1px solid #d5dde6;
}
.hm-liste { columns: 1; }
.hm-panel.hm-large .hm-liste { columns: 3 210px; column-gap: 26px; }
.hm-liste li { break-inside: avoid; }
.hm-liste a {
	display: block; padding: 4px 8px; margin: 0 -8px;
	border-radius: 4px;
	color: var(--hm-texte); font-size: 14px; line-height: 1.3; text-decoration: none;
}
.hm-liste a:hover { background: var(--hm-vert-clair); color: #2e5a10; }
/* Courte description sous un lien (logiciels du menu Telecharger) */
.hm-desc { display: block; margin-top: 1px; font-size: 12px; line-height: 1.25; color: #5d6d7c; }
.hm-liste a[aria-current="page"] .hm-desc { color: #e9f3df; }
.hm-liste a[aria-current="page"] { background: var(--hm-vert); color: #fff; }
.hm-liste .hm-intertitre {
	break-after: avoid; column-span: all;
	margin: 10px 0 4px; font-size: 12px; font-weight: bold; text-transform: uppercase;
	letter-spacing: .05em; color: var(--hm-bleu);
}
.hm-liste .hm-intertitre:first-child { margin-top: 0; }

/* === Ecran etroit : bouton Menu + accordeon === */
@media (max-width: 820px) {
	.hm-burger {
		display: flex; align-items: center; gap: 10px;
		width: 100%; height: 50px; padding: 0 16px;
		background: none; border: 0; cursor: pointer;
		color: #fff; font: inherit; font-size: 17px; font-weight: bold;
	}
	.hm-burger span, .hm-burger span::before, .hm-burger span::after {
		display: block; width: 22px; height: 2px; background: #fff; position: relative; content: "";
		transition: transform .15s, background .15s;
	}
	.hm-burger span::before { position: absolute; top: -7px; }
	.hm-burger span::after { position: absolute; top: 7px; }
	.hm.hm-menu-ouvert .hm-burger span { background: transparent; }
	.hm.hm-menu-ouvert .hm-burger span::before { transform: translateY(7px) rotate(45deg); }
	.hm.hm-menu-ouvert .hm-burger span::after { transform: translateY(-7px) rotate(-45deg); }

	.hm.hm-js .hm-bar { display: none; }
	.hm.hm-js.hm-menu-ouvert .hm-bar { display: block; }
	.hm-bar { flex-direction: column; border-top: 1px solid rgba(255,255,255,.2); }
	.hm-item { border-bottom: 1px solid rgba(255,255,255,.15); }
	.hm-top { justify-content: space-between; height: 48px; padding: 0 16px; font-size: 16px; text-align: left; }
	.hm-top br { display: none; }
	.hm-langue .hm-top { justify-content: flex-start; }
	.hm-panel {
		position: static; max-height: none; margin: 0;
		padding: 8px 16px 14px; box-shadow: none; border-top: 0;
		background: #f6f8fa;
	}
	.hm-groupes { columns: 1; }
	.hm-panel.hm-large .hm-liste { columns: 1; }
	.hm-liste a { padding: 9px 8px; font-size: 15px; }
}
