/* =====================================================================================
   Armurerie Loisir v2 (theme al) — pages CMS (body#cms) : lecture confortable du contenu saisi en back-office
   (balisage non maitrise : styles en ligne neutralises de facon defensive), sommaire, centre d'aide, categories CMS.
   ===================================================================================== */

/* #columns (overflow: hidden, clearfix herite) empeche le centre d'aide et le sommaire de rester colles : sur PC, les colonnes
   laterales etant masquees, on le remplace par un contexte de formatage qui contient toujours les flottants. */
@media screen and (min-width: 551px) {
	body#cms #columns { overflow: visible; display: flow-root; }
}

/* ---------- Mise en page : centre d'aide a gauche, article a droite (sommaire colle a droite sur PC) ---------- */
.al-cms__layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 48px; align-items: start; }
.al-cms__aside { position: sticky; top: calc(var(--al-sticky-top, 84px) + 16px); padding-top: 6px; }
.al-cms__main { min-width: 0; }
.al-cms__head { margin: 0 0 26px; padding: 0 0 22px; border-bottom: 1px solid var(--al-line); }
.al-cms__main--h1 .al-cms__head { margin-bottom: 0; padding-bottom: 0; border: 0; }
.al-cms__head .al-page-title * { font: inherit !important; color: inherit !important; text-decoration: none !important; }
.al-cms__main:not(:has(.al-cms__body.has-toc)) .al-cms__head { max-width: 720px; }
.al-cms__body { display: block; }
.al-cms__body.has-toc { display: grid; grid-template-columns: minmax(0, 720px) 224px; gap: 48px; align-items: start; }
.al-cms__body.has-toc .al-toc { grid-column: 2; grid-row: 1; }
.al-cms__body.has-toc .al-rte { grid-column: 1; grid-row: 1; }
.al-cms__admin { flex-direction: column; }
.al-cms__admin input.exclusive { margin: 8px 8px 0 0; }

/* ---------- Typographie de lecture (div.rte du back-office) ---------- */
body#cms .al-rte {
	max-width: 720px;
	color: var(--al-text);
	font: 400 16px/1.7 var(--al-font);
	overflow-wrap: break-word;
	background: none !important;
}
body#cms .al-rte:after { content: ""; display: block; clear: both; }
body#cms .al-rte * { font-family: inherit !important; }
body#cms .al-rte .rte { padding: 0; background: none; font: inherit; line-height: inherit !important; }
/* tailles et interlignes imposes en ligne (10pt, 14px...) : on garde l'echelle de lecture */
body#cms .al-rte p[style*="font-size"], body#cms .al-rte span[style*="font-size"], body#cms .al-rte div[style*="font-size"], body#cms .al-rte li[style*="font-size"],
body#cms .al-rte strong[style*="font-size"], body#cms .al-rte em[style*="font-size"], body#cms .al-rte font { font-size: inherit !important; }
body#cms .al-rte [style*="line-height"] { line-height: inherit !important; }
body#cms .al-rte [style*="justify"] { text-align: left !important; }
body#cms .al-rte [style*="background-color"] { background-color: transparent !important; }
body#cms .al-rte p, body#cms .al-rte div { margin: 0 0 1em; }
body#cms #center_column .al-rte p:not(.al-rte-h):not(.al-rte-callout), body#cms .al-rte p:not(.al-rte-h):not(.al-rte-callout) { line-height: inherit !important; font-size: inherit; text-align: inherit; }
body#cms .al-rte > div, body#cms .al-rte div div { margin: 0; }
body#cms .al-rte p, body#cms .al-rte li { max-width: 70ch; color: inherit; font-size: inherit; line-height: inherit; }
body#cms .al-rte p[style*="center"] { margin-left: auto; margin-right: auto; }
body#cms .al-rte strong, body#cms .al-rte b { color: var(--al-ink); font-weight: 700; }
body#cms .al-rte em, body#cms .al-rte i { font-style: italic; }
body#cms .al-rte span[style*="underline"] { text-decoration-thickness: 1px !important; text-underline-offset: 3px; }
body#cms .al-rte [style*="color: #ff0000"], body#cms .al-rte [style*="color:#ff0000"], body#cms .al-rte [style*="color: red"] { color: var(--al-red-deep) !important; }
body#cms .al-rte a { color: var(--al-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body#cms .al-rte a:hover { color: #004f5d; text-decoration-thickness: 2px; }
body#cms .al-rte a.button, body#cms .al-rte a.button_large, body#cms .al-rte a.button_small, body#cms .al-rte a.exclusive {
	width: auto !important;
	margin: 10px 0 4px !important;
	padding: 0 20px !important;
	text-decoration: none !important;
	vertical-align: middle;
}

/* titres (vrais titres + lignes en gras promues en titres par _content.js) */
body#cms .al-rte h1, body#cms .al-rte h2, body#cms .al-rte h3, body#cms .al-rte h4, body#cms .al-rte h5, body#cms .al-rte .al-rte-h {
	clear: both;
	max-width: 46ch;
	color: var(--al-ink) !important;
	font-weight: 700 !important;
	letter-spacing: -.01em;
	line-height: 1.3 !important;
	text-align: left !important;
	text-transform: none;
	text-wrap: balance;
	scroll-margin-top: calc(var(--al-sticky-top, 84px) + 24px);
}
body#cms .al-rte h1 { margin: 0 0 22px; font-size: 34px !important; line-height: 1.15 !important; }
body#cms .al-rte h2 { margin: 1.7em 0 .55em; font-size: 24px !important; }
body#cms .al-rte h3, body#cms .al-rte .al-rte-h { margin: 1.6em 0 .5em; font-size: 19px !important; }
body#cms .al-rte h4, body#cms .al-rte h5 { margin: 1.4em 0 .4em; font-size: 16.5px !important; }
body#cms .al-rte > :first-child, body#cms .al-rte .al-rte-first { margin-top: 0 !important; }
body#cms .al-rte .al-rte-h *, body#cms .al-rte h1 *, body#cms .al-rte h2 *, body#cms .al-rte h3 *, body#cms .al-rte h4 * {
	font-size: inherit !important;
	font-weight: inherit !important;
	text-decoration: none !important;
	color: inherit !important;
}
/* titre de document centre en capitales (ex. CONDITIONS GENERALES DE LIVRAISON) : surtitre discret */
body#cms .al-rte .al-rte-h.al-rte-h--doc { max-width: none; margin: 0 0 18px; color: var(--al-muted) !important; font-size: 12.5px !important; letter-spacing: .1em; }
/* image flottante + texte (ex. etapes de retour) regroupes par _content.js */
body#cms .al-rte .al-rte-media { display: flex; align-items: flex-start; gap: 18px; clear: both; max-width: 70ch; margin: 0 0 18px; }
body#cms .al-rte .al-rte-media > p { flex: 0 0 auto; float: none !important; margin: 0 !important; }
body#cms .al-rte .al-rte-media > p img { display: block; }
body#cms .al-rte .al-rte-media__body { flex: 1 1 auto; min-width: 0; }
body#cms .al-rte .al-rte-media__body > :last-child { margin-bottom: 0; }
/* titres « centres en capitales » du back-office (ex. VOTRE RETOUR NE SERA PAS TRAITE...) : encadre d'alerte lisible */
body#cms .al-rte .al-rte-callout {
	max-width: 70ch;
	margin: 1.6em 0;
	padding: 14px 16px 14px 18px;
	border: 1px solid var(--al-red-deep);
	border-radius: 10px;
	background: #fff; box-shadow: inset 0 0 0 4px #fcf4f4;
	color: var(--al-ink) !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	text-align: left !important;
}

/* soulignements hors lien (faux liens du back-office) : retires ; le gras suffit a marquer l'importance */
body#cms .al-rte span[style*="underline"], body#cms .al-rte u { text-decoration: none !important; }
body#cms .al-rte a span[style*="underline"], body#cms .al-rte a u { text-decoration: inherit !important; }
/* signature (« Le Service Client, Armurerie Loisir. ») */
body#cms .al-rte p.al-rte-sign { margin: 1.6em 0 0; color: var(--al-muted); font-size: 15px; text-align: left !important; }
/* paragraphe entierement en gras et long (avertissement) : encadre */
body#cms .al-rte p.al-rte-note {
	max-width: 70ch;
	margin: 1.2em 0 1.4em;
	padding: 14px 16px 14px 18px;
	border: 1px solid #c98a00;
	border-radius: 10px;
	background: #fff; box-shadow: inset 0 0 0 4px #fffaf0;
	color: var(--al-ink);
	font-size: 15px;
	line-height: 1.55 !important;
}
body#cms .al-rte p.al-rte-note strong, body#cms .al-rte p.al-rte-note b { color: inherit; }
/* etapes des tutoriels : numero en surtitre */
body#cms .al-rte .al-rte-step { margin-top: 2.2em; }
body#cms .al-rte .al-rte-step .al-rte-step__k {
	display: table;
	margin: 0 0 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--al-yellow);
	color: var(--al-ink) !important;
	font: 700 12px/1.2 var(--al-font) !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}
/* document PDF : bouton de telechargement */
body#cms .al-rte a.al-rte-dl {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	width: auto !important;
	min-height: 48px;
	margin: 6px 0 !important;
	padding: 0 20px 0 16px !important;
	border: 1px solid #c9d1d5 !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--al-ink) !important;
	font: 700 15px/1.25 var(--al-font) !important;
	text-align: left;
	text-decoration: none !important;
	vertical-align: middle;
	transition: border-color .15s ease, background-color .15s ease;
}
body#cms .al-rte a.al-rte-dl:hover { border-color: #9aa6ab !important; background: var(--al-bg) !important; }
body#cms .al-rte a.al-rte-dl:before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2312191d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") no-repeat center;
}
body#cms .al-rte a.al-rte-dl .al-rte-pdf { margin-left: 2px; vertical-align: 0; }
body#cms .al-rte p.al-rte-dlp { margin: 0 0 1.2em; text-align: left !important; }
body#cms .al-rte p.al-rte-dlp a.al-rte-dl {
	display: flex !important;
	gap: 14px;
	max-width: 560px;
	min-height: 76px;
	margin: 0 !important;
	padding: 14px 18px 14px 14px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: var(--al-shadow-card) !important;
	font-size: 16px !important;
}
body#cms .al-rte p.al-rte-dlp a.al-rte-dl:hover { background: #fff !important; box-shadow: var(--al-shadow-hover) !important; }
body#cms .al-rte p.al-rte-dlp a.al-rte-dl:before { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background-color: var(--al-yellow); background-size: 22px; }
body#cms .al-rte p.al-rte-dlp a.al-rte-dl .al-rte-pdf { margin-left: auto; }
/* photos en hauteur : on garde le texte a l'ecran */
body#cms .al-rte img.al-rte-portrait { display: block; width: auto !important; max-height: min(65vh, 480px) !important; }
/* FAQ en accordeon (_content.js) */
.al-faq { max-width: 720px; }
.al-faq__item:first-child > .al-faq__q { padding-top: 4px; min-height: 52px; }
.al-faq__item { border-bottom: 1px solid var(--al-line); }
.al-faq__q { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 14px 4px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.al-faq__q::-webkit-details-marker { display: none; }
.al-faq__q::marker { content: ""; }
.al-faq__q:after {
	content: "";
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--al-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312191d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
	transition: transform .2s var(--al-ease), background-color .15s ease;
}
.al-faq__q:hover:after { background-color: #e6eaec; }
.al-faq__item[open] > .al-faq__q:after { transform: rotate(180deg); background-color: var(--al-yellow); }
.al-faq__q:focus-visible { outline: 3px solid #24619c; outline-offset: 2px; border-radius: 8px; }
body#cms .al-rte .al-faq__q > * { flex: 1 1 auto; max-width: none; margin: 0 !important; font-size: 17px !important; }
.al-faq__a { padding: 0 52px 18px 4px; }
.al-faq__a > :last-child { margin-bottom: 0 !important; }

/* listes */
body#cms .al-rte ul, body#cms .al-rte ol { margin: 0 0 1.1em; padding: 0 0 0 1.35em; }
body#cms .al-rte ul { list-style: disc outside; }
body#cms .al-rte ol { list-style: decimal outside; }
body#cms .al-rte li { margin: .4em 0; padding: 0 0 0 .2em; background: none; list-style: inherit; }
body#cms .al-rte ul li::marker { color: var(--al-red); }
body#cms .al-rte ol li::marker { color: var(--al-muted); font-weight: 700; }
body#cms .al-rte li > p { margin: 0; }
body#cms .al-rte li > p + p { margin-top: .4em; }

/* medias */
body#cms .al-rte img { max-width: 100% !important; height: auto !important; border-radius: 12px; vertical-align: middle; }
body#cms .al-rte img[width="90"], body#cms .al-rte img[src*="icon"] { border-radius: 0; }
body#cms .al-rte p[style*="float"] { clear: both; margin-bottom: .6em; }
body#cms .al-rte iframe, body#cms .al-rte video, body#cms .al-rte embed, body#cms .al-rte object { max-width: 100%; border: 0; border-radius: 12px; }
body#cms .al-rte hr { height: 0; margin: 2em 0; border: 0; border-top: 1px solid var(--al-line); }
body#cms .al-rte blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--al-line); color: var(--al-muted); }
body#cms .al-rte .al-rte-empty { display: none !important; }

/* liens vers des PDF : pastille de format */
body#cms .al-rte .al-rte-pdf {
	display: inline-flex;
	align-items: center;
	height: 20px;
	margin-left: 6px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--al-red-deep);
	color: #fff;
	font: 700 10.5px/1 var(--al-font);
	letter-spacing: .06em;
	text-decoration: none;
	vertical-align: 2px;
}

/* tableaux (enveloppes par _content.js pour defiler sans casser la page) */
body#cms .al-rte .al-rte-table { max-width: 100%; margin: 1.2em 0 1.6em; overflow-x: auto; border: 1px solid var(--al-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
body#cms .al-rte table { width: 100% !important; height: auto !important; margin: 0; border: 0 !important; border-collapse: collapse; border-spacing: 0; background: #fff; font-size: 14px; line-height: 1.5; }
body#cms .al-rte table td, body#cms .al-rte table th { padding: 12px 14px; border: 0 !important; border-bottom: 1px solid var(--al-line) !important; color: var(--al-text); text-align: left; vertical-align: top; }
body#cms .al-rte table tr:last-child td { border-bottom: 0 !important; }
body#cms .al-rte table th, body#cms .al-rte table .al-rte-thead td { background: var(--al-bg); color: var(--al-muted); font: 700 11.5px/1.35 var(--al-font) !important; letter-spacing: .07em; text-transform: uppercase; }
body#cms .al-rte table .al-rte-thead td strong, body#cms .al-rte table th strong { color: inherit; }
body#cms .al-rte table tr:nth-child(even) td { background: #fafbfb; }
body#cms .al-rte table tr.al-rte-thead td { background: var(--al-bg); }

/* ---------- Sommaire (genere) ---------- */
.al-toc { margin: 0 0 24px; }
.al-toc[hidden] { display: none !important; }
.al-toc__sum { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.al-toc__sum::-webkit-details-marker { display: none; }
.al-toc__sum::marker { content: ""; }
.al-toc__label { color: var(--al-muted); font: 700 12px/1.3 var(--al-font); letter-spacing: .14em; text-transform: uppercase; }
.al-toc__count { display: none; }
.al-ct .al-toc__list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: altoc; border-left: 2px solid var(--al-line); }
.al-toc__list li { margin: 0; padding: 0; list-style: none; background: none; }
.al-ct .al-toc__list a {
	position: relative;
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 14px;
	border-left: 2px solid transparent;
	color: var(--al-muted);
	font: 600 13.5px/1.4 var(--al-font);
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}
.al-ct .al-toc__list a:hover { color: var(--al-ink); }
.al-ct .al-toc__list a.is-active { border-left-color: var(--al-ink); color: var(--al-ink); }
.al-ct .al-toc__list li.is-sub a { padding-left: 28px; font-weight: 400; font-size: 13px; }
.al-cms__body.has-toc .al-toc { position: sticky; top: calc(var(--al-sticky-top, 84px) + 16px); max-height: calc(100vh - var(--al-sticky-top, 84px) - 40px); margin: 0; overflow: auto; overscroll-behavior: contain; }
.al-cms__body.has-toc .al-toc__sum { pointer-events: none; cursor: default; }

/* ---------- Encart contact en fin d'article ---------- */
.al-cms__ask {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 720px;
	margin: 40px 0 0;
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--al-bg);
}
.al-cms__ask-ico { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--al-yellow); color: var(--al-ink); }
.al-cms__ask-ico svg { width: 22px; height: 22px; }
.al-cms__ask-txt { flex: 1 1 auto; color: var(--al-text); font-size: 15px; line-height: 1.4; }
.al-cms__ask-txt b { color: var(--al-ink); }
.al-cms__ask .al-btn { flex: 0 0 auto; }

/* ---------- Categorie CMS (ex. Tutoriels) ---------- */
.al-cmscat { margin: 0; padding: 0; border: 0; background: none; }
.al-cmscat .al-cms__head { margin-bottom: 28px; }
.al-ct .al-cmscat__title {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--al-muted);
	font: 700 12px/1.3 var(--al-font);
	letter-spacing: .14em;
	text-transform: uppercase;
}
.al-ct .al-cmscat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.al-ct .al-cmscat__grid li { margin: 0; padding: 0; background: none; list-style: none; }
.al-ct .al-cmscat__grid li:before { content: none !important; }
.al-ct .al-cmscat__card {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	min-height: 84px;
	padding: 16px 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--al-shadow-card);
	color: var(--al-ink);
	text-decoration: none;
	transition: box-shadow .2s var(--al-ease), transform .2s var(--al-ease);
}
.al-ct .al-cmscat__card:hover { box-shadow: var(--al-shadow-hover); transform: translateY(-1px); }
.al-cmscat__ico { display: inline-flex; flex: 0 0 48px; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--al-yellow); color: var(--al-ink); }
.al-cmscat__ico svg { width: 24px; height: 24px; }
.al-cmscat__num { font: 700 20px/1 var(--al-font); font-variant-numeric: tabular-nums; }
.al-cmscat__name { flex: 1 1 auto; min-width: 0; font: 700 16px/1.35 var(--al-font); }
.al-cmscat__name small { display: block; margin-top: 4px; color: var(--al-muted); font: 400 13.5px/1.4 var(--al-font); }
.al-cmscat__go { flex: 0 0 20px; width: 20px; height: 20px; color: var(--al-muted); transition: transform .2s var(--al-ease); }
.al-ct .al-cmscat__card:hover .al-cmscat__go { color: var(--al-ink); transform: translateX(3px); }
.al-cmscat__help { padding: 22px 22px 18px; border-radius: 16px; background: var(--al-bg); }
.al-cmscat__help .al-ct-help__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.al-cmscat__help .al-ct-help__ico { background: #fff; }
.al-ct .al-cmscat__help .al-ct-help__link:hover { background: #fff; }

/* Tutoriels : cartes avec photo */
.al-ct .al-tuto__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.al-ct a.al-tuto {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--al-shadow-card);
	color: var(--al-ink);
	text-decoration: none;
	transition: box-shadow .2s var(--al-ease), transform .2s var(--al-ease);
}
.al-ct a.al-tuto:hover { box-shadow: var(--al-shadow-hover); transform: translateY(-2px); }
.al-tuto__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--al-media); }
.al-tuto__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--al-ease); }
.al-ct a.al-tuto:hover .al-tuto__media img { transform: scale(1.03); }
.al-tuto__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--al-muted); }
.al-tuto__ph svg { width: 48px; height: 48px; }
.al-tuto__num { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--al-yellow); color: var(--al-ink); font: 700 16px/1 var(--al-font); font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(18, 25, 29, .2); }
.al-tuto__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.al-tuto__name { font: 700 18px/1.3 var(--al-font); letter-spacing: -.01em; text-wrap: balance; }
.al-tuto__desc { color: var(--al-muted); font-size: 14.5px; line-height: 1.45; }
.al-tuto__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 6px; }
.al-tuto__steps { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--al-bg); color: var(--al-text); font: 600 13px/1 var(--al-font); }
.al-tuto__go { display: inline-flex; align-items: center; gap: 4px; color: var(--al-link); font: 700 14.5px/1.2 var(--al-font); }
.al-tuto__go svg { width: 16px; height: 16px; transition: transform .2s var(--al-ease); }
.al-ct a.al-tuto:hover .al-tuto__go { text-decoration: underline; }
.al-ct a.al-tuto:hover .al-tuto__go svg { transform: translateX(3px); }
.al-cmscat__ask { max-width: none; margin-top: 24px; }
.al-cmscat__help + .al-cmscat__ask { margin-top: 20px; }

/* page inexistante / desactivee */
/* .error.al-plain (base.css) retire l'habillage du message ; la carte est portee par l'enfant .al-empty */
#cms #center_column .al-cms__gone-wrap { margin: 8px 0 32px; }
.al-ct .al-cms__gone { max-width: 640px; margin: 0 auto; padding: 40px 24px; border: 1px solid var(--al-line); }
.al-ct .al-cms__gone .al-empty__t { font-size: 22px; }
.al-cms__gone-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 10px 0 0; }
#cms .al-ct .al-cms__gone-act .al-btn { color: var(--al-ink) !important; }

/* ---------- PC etroit ---------- */
@media screen and (min-width: 551px) and (max-width: 1199px) {
	.al-cms__layout { grid-template-columns: 236px minmax(0, 1fr); gap: 28px; }
	.al-cms__body.has-toc { display: block; }
	.al-cms__body.has-toc .al-toc { position: static; max-height: none; margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; background: var(--al-bg); }
	.al-cms__body.has-toc .al-toc__list { column-count: 2; column-gap: 24px; border: 0; }
	.al-cms__body.has-toc .al-toc__list li { break-inside: avoid; }
	.al-cmscat__help .al-ct-help__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 550px) {
	.al-cms__layout { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
	.al-cms__aside { position: static; order: 2; padding: 20px 16px 12px; border-radius: 16px; background: var(--al-bg); }
	.al-cms__aside .al-ct-help__ico { background: #fff; }
	.al-ct .al-cms__aside .al-ct-help__link:hover { background: #fff; }
	.al-cms__main { order: 1; }
	.al-cms__head { margin-bottom: 20px; padding-bottom: 18px; }
	.al-rte { font-size: 15.5px; line-height: 1.65; }
	body#cms .al-rte h1 { font-size: 26px !important; line-height: 1.2 !important; }
	body#cms .al-rte h2 { font-size: 21px !important; }
	body#cms .al-rte h3, body#cms .al-rte .al-rte-h { font-size: 17.5px !important; }
	body#cms .al-rte img[style*="float"], body#cms .al-rte p[style*="float"] img { width: 64px !important; }
	body#cms .al-rte .al-rte-media { align-items: flex-start; gap: 14px; }
	.al-faq__q { min-height: 56px; padding: 12px 0; gap: 12px; }
	body#cms .al-rte .al-faq__q > * { font-size: 16px !important; }
	.al-faq__a { padding: 0 0 16px; }
	.al-ct .al-toc__list li.is-sub a { padding-left: 16px; font-size: 14px; }

	/* tableau large (ex. traitements RGPD) : une carte par ligne, libelles de colonne repetes */
	body#cms .al-rte .al-rte-table--stack { overflow: visible; border: 0; border-radius: 0; }
	body#cms .al-rte .al-rte-table--stack table, body#cms .al-rte .al-rte-table--stack tbody,
	body#cms .al-rte .al-rte-table--stack tr, body#cms .al-rte .al-rte-table--stack td { display: block; width: 100% !important; background: none; }
	body#cms .al-rte .al-rte-table--stack tr.al-rte-thead { display: none; }
	body#cms .al-rte .al-rte-table--stack tr { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--al-line); border-radius: 14px; background: #fff; }
	body#cms .al-rte .al-rte-table--stack tr:nth-child(even) td { background: #fff; }
	body#cms .al-rte .al-rte-table--stack td { padding: 10px 14px; border-bottom: 1px solid var(--al-line) !important; }
	body#cms .al-rte .al-rte-table--stack td:first-child { background: var(--al-bg) !important; color: var(--al-ink); font-weight: 700; }
	body#cms .al-rte .al-rte-table--stack td:last-child { border-bottom: 0 !important; }
	body#cms .al-rte .al-rte-table--stack td[data-label]:before { content: attr(data-label); display: block; margin: 0 0 2px; color: var(--al-muted); font: 700 11px/1.3 var(--al-font); letter-spacing: .07em; text-transform: uppercase; }
	body#cms .al-rte .al-rte-table--stack td:first-child:before { display: none; }

	/* sommaire repliable, au-dessus du texte */
	.al-cms__body.has-toc { display: block; }
	.al-cms__body.has-toc .al-toc { position: static; max-height: none; margin: 0 0 22px; overflow: visible; }
	.al-cms__body.has-toc .al-toc__sum { pointer-events: auto; cursor: pointer; }
	.al-toc { margin: 0 0 22px; border-radius: 14px; background: var(--al-bg); }
	.al-toc__sum { min-height: 50px; padding: 0 16px; }
	.al-toc__sum:after {
		content: "";
		width: 16px;
		height: 16px;
		margin-left: auto;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312191d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
		transition: transform .2s var(--al-ease);
	}
	.al-toc[open] .al-toc__sum:after { transform: rotate(180deg); }
	.al-toc__label { color: var(--al-ink); font-size: 12.5px; }
	.al-toc__count { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--al-muted); font: 700 12px/1 var(--al-font); }
	.al-ct .al-toc__list { margin: 0 16px 0; padding: 0 0 12px; border: 0; }
	.al-ct .al-toc__list a { min-height: 44px; display: flex; align-items: center; margin: 0; padding: 8px 0; border: 0; border-top: 1px solid #e3e7ea; color: var(--al-text); font-size: 14.5px; }

	.al-cms__ask { flex-wrap: wrap; margin-top: 32px; padding: 16px; }
	.al-cms__ask-txt { flex: 1 1 200px; }
	.al-cms__ask .al-btn { width: 100%; }

	.al-ct .al-cmscat__grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
	.al-ct .al-cmscat__card { min-height: 76px; padding: 14px; }
	.al-cmscat__help { padding: 20px 16px 12px; }
	.al-cmscat__help .al-ct-help__list { grid-template-columns: 1fr; }
	.al-ct .al-tuto__grid { grid-template-columns: 1fr; gap: 14px; }
	.al-tuto__body { padding: 16px; }
	.al-tuto__name { font-size: 17px; }
	.al-ct .al-cms__gone { padding: 28px 16px; }
	#cms #center_column .al-cms__gone-wrap { margin-bottom: 20px; }
	.al-cms__gone-act .al-btn { flex: 1 1 100%; }
}

/* ---------- Contenu seul (fenetre surgissante) ---------- */
.al-rte--bare { max-width: none; padding: 16px; }

@media print {
	.al-cms__aside, .al-toc, .al-cms__ask { display: none !important; }
	.al-cms__layout, .al-cms__body.has-toc { display: block; }
}
