/* Pages juridiques (templates/juridique/) : mêmes couleurs que le site public (site.css), lecture confortable, impression propre. */
.jur { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.jur-grille { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; max-width: 1240px; }
.jur-menu { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.jur-menu-titre { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px 6px; }
.jur-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.jur-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--r-md); color: var(--text-main); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.jur-menu a i { width: 18px; text-align: center; color: var(--primary); }
.jur-menu a:hover { background: var(--primary-soft); }
.jur-menu a.actif { background: var(--primary-soft); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.jur-imprimer { margin-top: 14px; width: 100%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-main); border-radius: var(--r-md); padding: 9px 10px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.jur-imprimer:hover { border-color: var(--primary); color: var(--primary); }

.jur-doc { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 56px); box-shadow: var(--shadow-sm); min-width: 0; }
.jur-tete { border-bottom: 1px solid var(--border-color); padding-bottom: 22px; margin-bottom: 8px; }
.jur-pastille { display: inline-flex; gap: 8px; align-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.jur-tete h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 900; margin: 14px 0 10px; letter-spacing: -.02em; }
.jur-version { color: var(--text-muted); font-size: .95rem; margin: 0; }
.jur-alerte { background: rgba(245, 158, 11, .12); border-left: 4px solid #f59e0b; padding: 12px 14px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 0; }

.jur-section { padding-top: 26px; }
.jur-section h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; margin: 0 0 12px; scroll-margin-top: 96px; }
.jur-section h3 { font-size: 1.02rem; font-weight: 800; margin: 18px 0 8px; }
.jur-section p, .jur-section li { color: var(--text-main); font-size: 1rem; line-height: 1.72; }
.jur-section p { margin: 0 0 12px; }
.jur-section ul, .jur-section ol { margin: 0 0 14px; padding-left: 22px; }
.jur-section li { margin-bottom: 6px; }
.jur-section a, .jur-avertissement a, .jur-alerte a { color: var(--primary); font-weight: 700; }
.jur-sommaire { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--r-lg); padding: 16px 20px; margin-top: 22px; }
.jur-sommaire p { font-weight: 800; margin: 0 0 8px; }
.jur-sommaire ol { columns: 2 260px; margin: 0; padding-left: 20px; }
.jur-sommaire li { font-size: .93rem; margin-bottom: 4px; break-inside: avoid; }
.jur-sommaire a { color: var(--text-main); text-decoration: none; }
.jur-sommaire a:hover { color: var(--primary); text-decoration: underline; }
.jur-encart { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 14px 0; }
.jur-encart p:last-child { margin-bottom: 0; }
.jur-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .93rem; display: block; overflow-x: auto; }
.jur-table th, .jur-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-color); line-height: 1.5; }
.jur-table th { font-weight: 800; background: var(--primary-soft); white-space: nowrap; }
.a-completer { background: rgba(239, 68, 68, .12); color: #b91c1c; border: 1px dashed #ef4444; border-radius: 6px; padding: 1px 6px; font-weight: 800; }
html.dark-mode .a-completer { color: #fca5a5; }
.jur-avertissement { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: .92rem; }

@media (max-width: 900px) {
    .jur-grille { grid-template-columns: 1fr; }
    .jur-menu { position: static; }
}
@media print {
    .bandeau-offre, .site-nav, .drawer, .drawer-overlay, .jur-menu, footer, .skip-link, .cc-bandeau { display: none !important; }
    .jur, .jur-doc { padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
    .jur-grille { display: block; }
    .jur-section a { color: #000; }
}

/* Fenêtre d'acceptation des conditions générales (application connectée) */
.jur-fenetre { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); font-family: inherit; }
.jur-fenetre[hidden] { display: none; }
.jur-boite { background: #fff; color: #0f172a; width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
body.dark-mode .jur-boite, html.dark-mode .jur-boite { background: #131c2e; color: #f1f5f9; }
.jur-boite h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 900; display: flex; gap: 10px; align-items: center; }
.jur-boite h2 i { color: #2563eb; }
.jur-boite p { margin: 0 0 10px; line-height: 1.6; font-size: .97rem; }
.jur-boite ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; font-size: .95rem; }
.jur-boite a { color: #2563eb; font-weight: 700; }
.jur-case { display: flex; gap: 10px; align-items: flex-start; background: rgba(37, 99, 235, .07); border: 1px solid rgba(37, 99, 235, .25); border-radius: 12px; padding: 12px; margin: 12px 0; cursor: pointer; font-weight: 600; line-height: 1.5; }
.jur-case input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.jur-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.jur-btn { border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 800; cursor: pointer; }
.jur-btn-p { background: #2563eb; color: #fff; }
.jur-btn-p:disabled { opacity: .5; cursor: not-allowed; }
.jur-btn-g { background: transparent; color: inherit; border: 1px solid rgba(100, 116, 139, .4); }
.jur-erreur { color: #dc2626; font-weight: 700; font-size: .9rem; min-height: 1em; margin: 0; }
