/* =========================================================
   pages.css — mise en page des pages secondaires
   (bandeau de titre, colonne latérale, contact, préférences cookies)
   ========================================================= */

.ew-muted  { color: var(--ew-muted); }
.ew-center { text-align: center; }

/* ---------- Bandeau de titre ---------- */
.ew-page-hero { background: var(--ew-tint); padding: 36px 0 44px; }
.ew-crumbs { display: flex; gap: 8px; font-size: .82rem; color: var(--ew-muted); margin-bottom: 18px; }
.ew-crumbs a { color: var(--ew-muted); text-decoration: none; }
.ew-crumbs a:hover { color: var(--ew-blue); text-decoration: underline; }
.ew-page-hero__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.ew-page-hero__lead { font-size: 1.05rem; color: var(--ew-muted); max-width: 48em; }
.ew-page-hero__meta { font-size: .78rem; color: var(--ew-muted); margin-top: 16px; }

/* ---------- Pages légales : colonne + contenu ---------- */
.ew-legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.ew-legal__body { min-width: 0; } /* évite qu'un tableau large déborde de la grille */

.ew-side { position: sticky; top: 92px; font-size: .88rem; }
.ew-side__label { font-family: var(--ew-font-title); font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ew-muted); margin-bottom: 10px; }
.ew-side__pages { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ew-border); }
.ew-side__pages a { display: block; padding: 8px 14px; border-radius: 6px; color: var(--ew-text); text-decoration: none; }
.ew-side__pages a:hover { background: var(--ew-tint); }
.ew-side__pages a.is-current { background: var(--ew-blue-light); color: var(--ew-blue); font-weight: 600; }
.ew-side__toc li a { display: flex; gap: 8px; padding: 4px 0; color: var(--ew-muted); text-decoration: none; font-size: .82rem; line-height: 1.4; }
.ew-side__toc li a:hover { color: var(--ew-blue); }
.ew-side__num { color: var(--ew-blue); font-variant-numeric: tabular-nums; }
.ew-side__ask { margin-top: 24px; padding: 16px 18px; background: var(--ew-tint); border-radius: var(--ew-radius); font-size: .8rem; color: var(--ew-muted); }
.ew-side__ask-title { font-weight: 600; color: var(--ew-blue-dark); margin-bottom: 4px; font-size: .88rem; }
.ew-side__ask a, .ew-help a, .ew-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ew-blue); font-weight: 600; text-decoration: none; font-size: .85rem; }
.ew-side__ask a:hover, .ew-help a:hover, .ew-link:hover { text-decoration: underline; }

.ew-help { margin-top: 40px; padding: 24px 28px; background: var(--ew-tint); border-radius: 14px; font-size: .88rem; color: var(--ew-muted); }
.ew-help__title { font-family: var(--ew-font-title); font-weight: 600; font-size: 1.15rem; color: var(--ew-blue-dark); margin-bottom: 8px; }

/* ---------- Page 404 ---------- */
.ew-404 { background: var(--ew-tint); display: flex; align-items: center; }
.ew-404 > .ew-container { width: 100%; }
.ew-404__inner { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 72px; padding-bottom: 88px; }
.ew-404__code {
	font-family: var(--ew-font-title); font-weight: 700; line-height: 1;
	font-size: clamp(5rem, 16vw, 9rem); letter-spacing: -.04em;
	color: var(--ew-blue-light); -webkit-text-stroke: 2px var(--ew-blue);
	margin-bottom: 16px;
}
.ew-404__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 14px; }
.ew-404__lead { color: var(--ew-muted); font-size: 1.05rem; max-width: 36em; margin-bottom: 32px; }
.ew-404__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.ew-404__actions .ew-link { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.ew-legal { grid-template-columns: 1fr; gap: 32px; }
	.ew-side { position: static; order: 2; } /* sur mobile, le texte d'abord, la navigation ensuite */
	.ew-side__toc { display: none; } /* sommaire inutile sur mobile : la page se lit d'un trait */
}
