/* Page « La charte du site ».
   Chargée uniquement sur /charte/, après site.css et foret.css (ouverture, chapitres, encadré de fin).
   La couleur des échantillons est ajoutée à la fin de ce fichier par le build, à partir de site.css. */

.ch .chap-grid { align-items: start; }
.ch code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .82em; color: var(--mist); font-weight: 400; }
.ch h3 { font-variation-settings: 'opsz' 30; }

/* ---------- 01 Le logo ---------- */
.ch-donts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ch-donts li { font-size: .95rem; padding: .2rem .8rem; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-2); }
.ch-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.25rem); }
.ch-tile {
  margin: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.6rem, 2vw, 1.2rem);
  font-size: .85rem; text-align: center; padding: .75rem;
}
.ch-tile--tab { background: var(--paper-2); color: var(--ink-2); }
.ch-logo svg { width: clamp(3.5rem, 9vw, 6.5rem); height: auto; }
.ch-tabs { display: flex; align-items: center; gap: 1rem; }
.ch-tab32 svg { width: 32px; height: 32px; }
.ch-tab16 svg { width: 16px; height: 16px; }

/* ---------- 02 Les couleurs ---------- */
.sw-groups { display: grid; gap: 2.5rem; }
.sw-group h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
@media (min-width: 48rem) { .sw-list { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
.sw { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); }
.sw-chips { display: grid; grid-template-columns: 1fr 1fr; height: 5rem; border-bottom: 1px solid var(--line); }
/* Les valeurs sont écrites sous les échantillons, sur le fond de la carte : lisibles quelle que soit la couleur. */
.sw-hex { display: grid; grid-template-columns: 1fr 1fr; font-size: .8rem; color: var(--mist); }
.sw-hex span { padding: .45rem .7rem 0 .95rem; }
.sw-hex span + span { padding-left: .7rem; }
.sw-hex code { display: block; font-size: .8rem; color: var(--ink-2); letter-spacing: .02em; }
.sw-name { font-weight: 700; padding: .7rem .95rem 0; }
.sw-role { padding: .15rem .95rem 1rem; font-size: .95rem; color: var(--ink-2); }

.ct { max-width: 46rem; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ct-table caption { text-align: left; font-family: 'Literata', Georgia, serif; font-weight: 560; font-size: 1.3rem; font-variation-settings: 'opsz' 30; padding-bottom: .8rem; }
.ct-table th, .ct-table td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.ct-table thead th { font-size: .9rem; color: var(--mist); font-weight: 400; }
.ct-table tbody th { font-weight: 700; }
.ct-ratio { font-family: 'Literata', Georgia, serif; font-size: 1.15rem; font-feature-settings: 'lnum', 'tnum'; color: var(--pine); }
.ct-below { font-size: .85rem; color: var(--danger); }
.ct-note { margin-top: .9rem; font-size: .95rem; color: var(--mist); max-width: 60ch; }

/* ---------- 03 La typographie ---------- */
.tf-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tf { background: var(--paper-2); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.tf-sample { color: var(--ink); line-height: 1; margin-bottom: 1.5rem; }
.tf--display .tf-sample { font-family: 'Literata', Georgia, serif; font-weight: 500; font-variation-settings: 'opsz' 72; letter-spacing: -.03em; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.tf--text .tf-sample { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; }
.tf-name { font-size: 1.45rem; }
.tf-use { font-weight: 700; margin-top: .2rem; }
.tf-text { color: var(--ink-2); margin-top: .5rem; font-size: 1rem; }
.tf-glyphs { margin-top: 1.25rem; font-size: 2rem; line-height: 1; letter-spacing: .06em; color: var(--pine); font-feature-settings: 'lnum'; }
.tf--display .tf-glyphs { font-family: 'Literata', Georgia, serif; font-weight: 450; font-variation-settings: 'opsz' 48; }

.ts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ts { display: grid; gap: .35rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 60rem) { .ts { grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: baseline; } }
.ts-label strong { display: block; }
.ts-label span { font-size: .9rem; color: var(--mist); }
.ts-sample { overflow-wrap: anywhere; }
.ts-sample--nom { font-family: 'Literata', Georgia, serif; font-weight: 500; font-variation-settings: 'opsz' 72; font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: .9; letter-spacing: -.03em; }
.ts-sample--section { font-family: 'Literata', Georgia, serif; font-weight: 560; font-variation-settings: 'opsz' 60; font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.15; letter-spacing: -.015em; }
.ts-sample--carte { font-family: 'Literata', Georgia, serif; font-weight: 560; font-variation-settings: 'opsz' 36; font-size: 1.55rem; line-height: 1.15; }
.ts-sample--corps { font-size: 1.125rem; color: var(--ink-2); }
.ts-sample--legende { font-size: .95rem; color: var(--mist); }

/* ---------- 04 Les éléments ---------- */
.el-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .el-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.el { display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.4rem 1.2rem; }
.el h3 { font-size: 1.3rem; }
.el-demo { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .6rem; min-height: 6.5rem; }
.el-demo .btn, .el-demo .tag { pointer-events: none; }
.el-demo .status { margin: 0; align-self: flex-start; font-size: .9rem; }
.el-demo .project-tags { margin: 0; }
.el-rule { font-size: .95rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .9rem; }
.ch-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.tag--on { background: var(--resin-wash); border-color: var(--resin); color: var(--ink); }
.ch-callout { padding: 1rem 1.2rem; gap: .3rem; }
.ch-callout .callout-title { font-size: 1.15rem; }
.ch-portrait {
  display: block; width: 6rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0E1D19;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--resin); margin: .3rem;
}
.ch-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 05 Les règles ---------- */
.rl-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .rl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; } }
@media (min-width: 72rem) { .rl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rl { border-top: 3px solid var(--pine); padding-top: 1.1rem; }
.rl h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.rl p { color: var(--ink-2); font-size: 1rem; }

@media print {
  .ch { break-inside: auto; }
  .sw, .tf, .el, .rl { break-inside: avoid; }
}

/* Généré par le build à partir des couleurs de site.css : ne pas modifier à la main. */
.sw-paper .sw-l { background: #F2F4F1; }
.sw-paper .sw-d { background: #0E1D19; }
.sw-paper-2 .sw-l { background: #E5EAE3; }
.sw-paper-2 .sw-d { background: #16302A; }
.sw-paper-3 .sw-l { background: #FFFFFF; }
.sw-paper-3 .sw-d { background: #12251F; }
.sw-ink .sw-l { background: #14302A; }
.sw-ink .sw-d { background: #E6ECE8; }
.sw-ink-2 .sw-l { background: #2B4740; }
.sw-ink-2 .sw-d { background: #C4D2CC; }
.sw-mist .sw-l { background: #52625C; }
.sw-mist .sw-d { background: #9EB1A9; }
.sw-pine .sw-l { background: #2E5B4F; }
.sw-pine .sw-d { background: #93C7B3; }
.sw-resin .sw-l { background: #B5741A; }
.sw-resin .sw-d { background: #E5A443; }
.sw-resin-text .sw-l { background: #87520B; }
.sw-resin-text .sw-d { background: #F0BC6A; }
.sw-resin-wash .sw-l { background: #F3E1BC; }
.sw-resin-wash .sw-d { background: #3D2E12; }
.sw-line .sw-l { background: #CBD5CE; }
.sw-line .sw-d { background: #2A443D; }
.sw-line-strong .sw-l { background: #95A79F; }
.sw-line-strong .sw-d { background: #4D6A61; }
.sw-ok .sw-l { background: #2E6B45; }
.sw-ok .sw-d { background: #8FD3A8; }
.sw-danger .sw-l { background: #A3312A; }
.sw-danger .sw-d { background: #F08A80; }
.ch-tile--light { background: #F2F4F1; color: #52625C; }
.ch-tile--dark { background: #0E1D19; color: #9EB1A9; }
