/* Yazbeck — pages légales · direction « Plâtre & cire » */
body { background: var(--blanc); font-size: 17px; }
.lg-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(16px, 3.1vw, 44px); background: rgba(255, 255, 255, .94); box-shadow: 0 2px 0 rgba(29, 27, 34, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lg-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.lg-head nav a { text-decoration: none; font-size: 16px; font-weight: 550; padding: 9px 13px; border-radius: 12px; }
.lg-head nav a:hover { background: var(--brume); }
.lg-head nav a[aria-current=page] { background: var(--platre); font-weight: 700; }
.lg { max-width: 1240px; margin: 0 auto; padding: clamp(46px, 6vw, 90px) clamp(16px, 3.1vw, 44px) 90px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); }
.lg-title { grid-column: 1 / -1; margin-bottom: 6px; }
.lg-title h1 { font-weight: 700; font-stretch: 96%; letter-spacing: -.035em; line-height: .96; font-size: clamp(44px, 5.8vw, 92px); margin: 0 0 22px; }
.lg-title p { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 10px; background: var(--brume); font-size: 15px; font-weight: 600; color: var(--encre-2); }
.lg-draft { grid-column: 1 / -1; margin: 0; background: #FFF6CF; border-radius: 20px; padding: 16px 20px; font-size: 16px; color: #3D3000; }
.lg-toc { position: sticky; top: 100px; align-self: start; padding: 20px; border-radius: 24px; background: var(--brume); }
.lg-toc p { font-size: 15px; font-weight: 750; margin: 0 0 10px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 2px; }
.lg-toc li { counter-increment: t; }
.lg-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-size: 15.5px; font-weight: 550; line-height: 1.3; }
.lg-toc a::before { content: counter(t); flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--blanc); font-size: 13px; font-weight: 800; }
.lg-toc a:hover { background: var(--blanc); }
.lg-toc a:hover::before { background: var(--platre); }
.lg-body { max-width: 740px; }
.lg-body section { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 2px solid var(--trait); scroll-margin-top: 100px; }
.lg-body section:last-child { border-bottom: 0; }
.lg-body h2 { font-weight: 700; font-stretch: 96%; letter-spacing: -.03em; line-height: 1; font-size: clamp(30px, 3vw, 42px); margin: 0 0 16px; }
.lg-body h3 { font-size: 18px; font-weight: 750; margin: 22px 0 8px; }
.lg-body p, .lg-body li { color: var(--encre-2); line-height: 1.65; }
.lg-body strong { color: var(--encre); }
.lg-body ul { padding-left: 1.2em; }
.lg-body li::marker { color: var(--crayon); }
.lg-body a { font-weight: 650; color: var(--encre); text-decoration-color: var(--crayon); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lg-body dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; margin: 0; border-top: 2px solid var(--trait); }
.lg-body dt, .lg-body dd { padding: 11px 0; border-bottom: 2px solid var(--trait); }
.lg-body dt { font-size: 15px; font-weight: 650; color: var(--gris); padding-right: 16px; }
.lg-body dd { margin: 0; color: var(--encre); }
.lg-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 12px 0; }
.lg-body th, .lg-body td { text-align: left; padding: 11px 12px; border-bottom: 2px solid var(--trait); vertical-align: top; }
.lg-body th { font-size: 14px; font-weight: 650; color: var(--gris); }
.lg-foot { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 clamp(8px, 1.4vw, 22px); padding: 26px clamp(16px, 3.1vw, 44px); border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--platre); font-size: 15px; font-weight: 600; color: var(--encre-2); }
.lg-foot a { color: var(--encre); }
@media (max-width: 860px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; }
  .lg-body dl { grid-template-columns: 1fr; }
  .lg-body dt { padding-bottom: 0; border-bottom: 0; }
  .lg-head nav { display: none; }
}
@media (max-width: 640px) {
  .lg-body table, .lg-body tbody, .lg-body tr, .lg-body td { display: block; width: 100%; }
  .lg-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-body tr { margin-bottom: 12px; padding: 4px 16px; border-radius: 18px; background: var(--brume); }
  .lg-body td { padding: 10px 0; border-bottom: 2px solid var(--blanc); }
  .lg-body tr td:last-child { border-bottom: 0; }
  .lg-body td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13.5px; font-weight: 650; color: var(--gris); }
}
@media (max-width: 520px) {
  .lg-head { gap: 10px; }
  .lg-head .btn { padding-inline: 12px; }
  .lg-head .tile { width: 42px; height: 42px; border-radius: 12px; }
  .lg-head .brand-mark { width: 30px; height: 30px; }
  .lg-head .brand-name { font-size: 18px; }
  .lg-head .brand-sub { display: none; }
}

/* ---------------- Page introuvable (404) : même voix que l'accueil, grande typographie ---------------- */
.nf-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(44px, 6vw, 96px) clamp(16px, 3.1vw, 44px) clamp(64px, 8vw, 120px); }
.nf > * { align-self: flex-start; }
.nf-links { align-self: stretch; }
.nf-label { display: inline-flex; margin: 0; padding: 7px 12px; border-radius: 10px; background: var(--brume); font-size: 15px; font-weight: 700; }
.nf-title { font-weight: 700; font-stretch: 96%; letter-spacing: -.035em; line-height: 1; font-size: clamp(44px, 6.6vw, 104px); margin: 22px 0 0; max-width: 11em; }
.nf-lead { margin: 36px 0 0; max-width: 44em; text-wrap: balance; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--encre-2); }
.nf-links { list-style: none; margin: clamp(34px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--encre); border-radius: 24px; background: var(--blanc); overflow: hidden; }
.nf-links li + li { border-left: 2px solid var(--trait); }
.nf-links a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; padding: 24px 24px 58px; text-decoration: none; transition: background-color .2s; }
.nf-links a:focus-visible { outline-offset: -5px; border-radius: 20px; }
.nf-links li:nth-child(1) { --cat: var(--platre); }
.nf-links li:nth-child(2) { --cat: var(--menthe); }
.nf-links li:nth-child(3) { --cat: var(--cire); }
.nf-links li:nth-child(4) { --cat: var(--resine); }
.nf-links a:hover { background: var(--brume); }
.nf-links strong { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.nf-links strong::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; background: var(--cat); box-shadow: inset 0 0 0 2px var(--encre); }
.nf-links span { font-size: 15.5px; line-height: 1.4; color: var(--encre-2); text-wrap: balance; }
.nf-links i { position: absolute; left: 24px; bottom: 20px; font-style: normal; font-size: 22px; font-weight: 700; transition: transform .3s var(--ease); }
.nf-links a:hover i { transform: translateX(6px); }
@media (max-width: 860px) { .nf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nf-links li:nth-child(odd) { border-left: 0; } .nf-links li:nth-child(n+3) { border-top: 2px solid var(--trait); } }
@media (max-width: 520px) { .nf-links { grid-template-columns: minmax(0, 1fr); border-radius: 20px; } .nf-links li + li { border-left: 0; border-top: 2px solid var(--trait); } .nf-links a { padding: 18px 56px 18px 18px; } .nf-links i { left: auto; right: 22px; bottom: 50%; transform: translateY(50%); } .nf-links a:hover i { transform: translate(6px, 50%); } }
/* Très petits écrans : le logo et le bouton tiennent sur une ligne */
@media (max-width: 360px) { .lg-head { gap: 8px; } .lg-head .btn { padding-inline: 10px; font-size: 14.5px; } }
