/* =====================================================================
   BailSecurity - pages des textes : conditions générales, politique de confidentialité (14/10/2026)
   Même allure que l'accueil (css/accueil.css : navigation claire, étiquette, titre, chapô, pastilles, pied) ;
   un sommaire qui suit la lecture, un texte en colonne lisible, des tableaux sobres, une impression propre.
   ===================================================================== */
body.tx { background: var(--canvas); }
.tx-page { max-width: 1240px; margin: 0 auto; padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) clamp(16px, 5vw, 72px) clamp(64px, 9vw, 120px); }

/* ----------------------------------------------- en-tête */
.tx-tete { max-width: 900px; }
.tx-tete .titre { font-size: clamp(32px, 4.6vw, 62px); max-width: 20ch; }
.tx-tete .chapo { font-size: clamp(15px, 1.25vw, 18px); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); max-width: 70ch; }
.tx-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; font-size: 14px; color: var(--ink-2); }
.tx-meta span { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.tx-meta .tx-version { background: var(--accent-soft); border-color: transparent; color: var(--accent-2); font-weight: 600; }
.tx-meta a { color: var(--accent-2); }
.tx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.tx-actions .pastille { border: 0; cursor: pointer; }

/* ----------------------------------------------- sommaire + texte */
.tx-grille { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(36px, 5vw, 64px); }
.tx-sommaire { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; padding: 20px 18px; background: rgba(255,255,255,.72);
	border: 1px solid var(--line); border-radius: var(--radius-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tx-sommaire-titre { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.tx-sommaire ol { margin: 0; padding: 0 0 0 1.6em; display: grid; gap: 4px; font-size: 14px; line-height: 1.35; color: var(--ink-3); }
.tx-sommaire li::marker { font: 500 12px var(--mono); color: var(--ink-3); }
.tx-sommaire a { display: block; padding: 4px 6px; margin-left: -6px; border-radius: 8px; color: var(--ink-2); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tx-sommaire a:hover { background: var(--canvas-2); color: var(--ink); }
.tx-sommaire a.actif { background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }

.tx-texte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4.5vw, 64px); min-width: 0;
	font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.tx-texte > * { max-width: 74ch; }
.tx-texte h2 { font: 700 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 2.2em 0 .7em; padding-top: .9em; border-top: 1px solid var(--line);
	scroll-margin-top: calc(var(--nav-h) + 24px); }
.tx-texte h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tx-texte h3 { font: 700 17px/1.3 var(--font); color: var(--ink); margin: 1.6em 0 .5em; }
.tx-texte p { margin: 0 0 1em; }
.tx-texte strong { color: var(--ink); font-weight: 700; }
.tx-texte ul { margin: 0 0 1.1em; padding: 0 0 0 1.3em; }
.tx-texte li { margin: 0 0 .35em; }
.tx-texte li::marker { color: var(--accent); }
.tx-texte a { color: var(--accent-2); text-underline-offset: 3px; }
.tx-table { max-width: none !important; overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tx-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tx-table th { text-align: left; font: 600 12.5px/1.3 var(--font); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); background: var(--canvas); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tx-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tx-table tr:last-child td { border-bottom: 0; }
.tx-table td:first-child { color: var(--ink); width: 42%; }
.tx-empreinte { margin: 2.4em 0 0 !important; padding-top: 1.2em; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-3); }
.tx-empreinte code { font: 500 12.5px var(--mono); }

/* ----------------------------------------------- téléphone et tablette */
@media (max-width: 960px) {
	.tx-grille { grid-template-columns: 1fr; }
	.tx-sommaire { position: static; max-height: none; }
	.tx-sommaire ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 18px; }
}
@media (max-width: 640px) {
	.tx-texte { font-size: 16px; border-radius: var(--radius-sm); }
	.tx-table table { font-size: 14px; }
	.tx-table td:first-child { width: auto; }
	.tx-meta span { white-space: normal; }
}

/* ----------------------------------------------- impression (ou enregistrement en PDF) */
@media print {
	@page { margin: 16mm 16mm 18mm; }
	html, body, body.tx { background: #fff !important; }
	body { animation: none !important; font-size: 10.5pt; color: #111; }
	.nav, .ambiance, .tx-sommaire, .tx-actions, .pied, .lien-evitement { display: none !important; }
	.tx-page { padding: 0; max-width: none; }
	.tx-tete .titre { font-size: 22pt; }
	.tx-meta span { border: 0; padding: 0; background: none !important; color: #333 !important; }
	.tx-grille { display: block; margin-top: 8mm; }
	.tx-texte { border: 0; box-shadow: none; padding: 0; color: #111; font-size: 10.5pt; line-height: 1.5; }
	.tx-texte > * { max-width: none; }
	.tx-texte h2 { break-after: avoid; page-break-after: avoid; border-top: 0; padding-top: 0; font-size: 13pt; margin-top: 1.4em; }
	.tx-table { border-color: #999; break-inside: avoid; }
	.tx-table th, .tx-table td { border-color: #bbb; color: #111; }
	.tx-texte a { color: #111; text-decoration: underline; }
}
