/* =====================================================================================
   Armurerie Loisir v2 (theme al) — famille « content » : CMS, contact, plan du site, magasins, 404.
   Commun a toutes les pages de la famille (charge automatiquement, voir FrontController).
   Par page : cms.css, contact.css, sitemap.css, stores.css, pagenotfound.css.
   ===================================================================================== */

/* ---------- Colonnes : retirees sur PC (rien d'utile pour lire) ; sur mobile, la colonne gauche porte le tiroir ---------- */
@media screen and (min-width: 551px) {
	body#cms #left_column, body#cms #right_column,
	body#contact #left_column, body#contact #right_column,
	body#sitemap #left_column, body#sitemap #right_column,
	body#stores #left_column, body#stores #right_column,
	body#pagenotfound #left_column, body#pagenotfound #right_column { display: none !important; }
	body#cms #center_column, body#contact #center_column, body#sitemap #center_column,
	body#stores #center_column, body#pagenotfound #center_column {
		float: none !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
@media screen and (max-width: 550px) {
	body#cms #right_column, body#contact #right_column, body#sitemap #right_column,
	body#stores #right_column, body#pagenotfound #right_column { display: none !important; }
	/* #left_column (vide a l'ecran, porte le tiroir du menu) flotte avec 3 px de marge : on l'aplatit comme sur l'accueil */
	body#cms #left_column, body#contact #left_column, body#sitemap #left_column,
	body#stores #left_column, body#pagenotfound #left_column { float: none !important; height: 0; margin: 0 !important; padding: 0 !important; }
	body#cms #center_column, body#contact #center_column, body#sitemap #center_column,
	body#stores #center_column, body#pagenotfound #center_column { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
}
/* 404 : global.css masque le pied de page et impose 940 px ; on remet le pied de page v2 */
body#pagenotfound #footer { display: block !important; }

/* ---------- Conteneur de page ---------- */
.al-ct {
	max-width: 1240px;
	margin: 0 auto;
	padding: 8px 4px 40px;
	color: var(--al-text);
	font: 400 15px/1.55 var(--al-font);
	-webkit-text-size-adjust: 100%;
}
.al-ct ul, .al-ct ol { margin: 0; padding: 0; }
.al-ct h1, .al-ct h2, .al-ct h3, .al-ct h4 {
	position: static;
	height: auto !important;
	overflow: visible !important;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--al-ink);
	font-family: var(--al-font);
	letter-spacing: -.01em;
	text-transform: none;
	text-wrap: balance;
}
.al-ct h1:before, .al-ct h1:after, .al-ct h2:before, .al-ct h3:before, .al-ct h4:before { display: none !important; content: none !important; }
.al-ct a { color: var(--al-link); }
.al-ct a:focus-visible, .al-ct button:focus-visible, .al-ct summary:focus-visible { outline: 3px solid #24619c; outline-offset: 2px; border-radius: 6px; }
.al-ct svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.al-ct .al-btn { text-decoration: none; }

/* ---------- Fil d'Ariane : rendu commun de base.css (chevrons, une ligne defilante sur mobile, masque s'il ne reste que l'accueil) ---------- */
.al-ct .breadcrumb { margin-bottom: 16px; }
/* maison du fil sur mobile (resp7.js) : smallscreen5.css la force en blanc (ancien bandeau fonce) -> invisible sur fond blanc */
.al-ct .breadcrumb .glyphicon-home, .al-ct .breadcrumb a .glyphicon { color: var(--al-muted) !important; }
/* fil masque (accueil seul) : meme respiration au-dessus du titre que sur les autres pages */
@media screen and (min-width: 551px) {
	.al-ct:not(.al-404):not(:has(.breadcrumb .navigation-pipe)) { padding-top: 48px; }
}

/* ---------- En-tete de page ---------- */
.al-ct .al-page-title { font-size: 34px; line-height: 1.15; }
.al-ct .al-kicker { margin: 0 0 8px; }
.al-ct .al-page-sub { max-width: 62ch; }

/* ---------- Centre d'aide (partials/content-help.tpl) ---------- */
.al-ct-help { margin: 0; }
.al-ct-help__title { margin: 0 0 10px; color: var(--al-muted); font: 700 12px/1.3 var(--al-font); letter-spacing: .14em; text-transform: uppercase; }
.al-ct-help__list { list-style: none; display: grid; gap: 2px; }
.al-ct-help__list li { margin: 0; padding: 0; background: none; list-style: none; }
.al-ct-help__list li:before { content: none !important; }
.al-ct .al-ct-help__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 6px 12px 6px 8px;
	border-radius: 12px;
	color: var(--al-text);
	font: 600 14.5px/1.3 var(--al-font);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.al-ct .al-ct-help__link:hover { background: var(--al-bg); color: var(--al-ink); }
.al-ct-help__ico {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--al-bg);
	color: var(--al-ink);
	transition: background-color .15s ease;
}
.al-ct-help__ico svg { width: 19px; height: 19px; }
.al-ct .al-ct-help__link.is-current { background: #fff8cc; color: var(--al-ink); box-shadow: none; } /* plus de trait jaune a gauche (demande Nicolas 24/11) */
.al-ct .al-ct-help__link.is-current .al-ct-help__ico { background: var(--al-yellow); }
.al-ct .al-ct-help__link:hover .al-ct-help__ico { background: #e6eaec; }
.al-ct .al-ct-help__link.is-current:hover .al-ct-help__ico { background: var(--al-yellow); }

/* ---------- Mobile ---------- */
@media screen and (max-width: 550px) {
	.al-ct { padding: 14px 16px 32px; font-size: 15px; }
	.al-ct .al-page-title { font-size: 26px; line-height: 1.2; }
	.al-ct .al-ct-help__link { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.al-ct *, .al-ct *:before, .al-ct *:after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
