/* Brand guidelines page (/charte/), on top of style.css. */

.charte .topnav { justify-content: flex-start; }
.nav-back { margin-left: auto; font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: color .25s; }
.nav-back::before { content: '← '; color: var(--accent-2); }
.nav-back:hover { color: var(--ink); }
.charte .lang-switch { margin-left: 22px; }

.ch-hero { padding: clamp(120px, 18vh, 190px) 0 clamp(40px, 6vh, 70px); background: radial-gradient(ellipse 55% 60% at 85% 10%, rgba(var(--accent-rgb), .16), transparent 70%), var(--bg); }
.ch-hero .lead { max-width: 640px; }
.ch-actions { margin: 30px 0 0; }
.ch-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.ch-toc a { display: inline-flex; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: border-color .2s, color .2s; }
.ch-toc a::before { counter-increment: toc; content: '0' counter(toc); font-family: var(--f-mono); font-size: 11px; line-height: 21px; color: var(--accent-2); }
.ch-toc a:hover { border-color: var(--accent-2); color: var(--ink); }

.ch-sec { padding: clamp(56px, 9vh, 100px) 0; border-top: 1px solid var(--line); scroll-margin-top: 50px; }
.ch-sec:nth-of-type(odd) { background: var(--bg-2); }
.ch-sec h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 8px; }
.ch-sec h3 { font-family: var(--f-display); font-weight: 500; font-size: 17px; margin: 0 0 14px; }
.ch-sub { margin: 0 0 34px; color: var(--ink-2); font-size: 18px; }
.ch-note { margin: 0 0 14px; color: var(--ink-3); font-size: 14.5px; }
.ch-use { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* Logo */
.ch-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ch-tile { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.ch-art { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14%; }
.ch-art img { width: 100%; height: auto; }
.ch-art .ch-icon { width: 46%; border-radius: 22%; }
.ch-art .ch-sym { width: 58%; }
.ch-art.dark { background: #0E0B09; }
.ch-art.light { background: #FFFBF8; }
.ch-art.grey { background: #F4EFEB; }
.ch-art.orange { background: #FF6A00; }
.ch-tile figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; font-size: 14px; }
.ch-tile figcaption b { font-weight: 500; }
.ch-dl { display: inline-flex; gap: 6px; }
.ch-dl a { padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--accent-2); font-family: var(--f-mono); font-size: 11.5px; text-decoration: none; }
.ch-dl a:hover { border-color: var(--accent-2); background: rgba(var(--accent-rgb), .1); }

.ch-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin-top: 20px; }
.ch-zone, .ch-donts { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-3); }
/* The clear space: x is a third of the mark (the logo is 90 px high, so x = 30 px). */
.ch-clear { position: relative; width: max-content; max-width: 100%; margin: 6px auto 22px; padding: 30px; background: #0E0B09; border-radius: 6px; outline: 1.5px dashed var(--accent-2); outline-offset: 0; }
.ch-clear img { display: block; height: 90px; width: auto; max-width: 100%; outline: 1px solid rgba(var(--tint-rgb), .25); }
.ch-x { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; background: rgba(var(--accent-rgb), .22); color: var(--accent-soft); font-family: var(--f-mono); font-size: 12px; }
.ch-x.t { left: 50%; top: 0; transform: translateX(-50%); }
.ch-x.l { left: 0; top: 50%; transform: translateY(-50%); }

.ch-dont-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; }
.ch-dont-grid li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.ch-mini { position: relative; display: grid; place-items: center; width: 100%; height: 76px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.ch-mini.light { background: #FFFBF8; }
.ch-mini.light img { width: 44px; }
.ch-mini::after { content: ''; position: absolute; right: 7px; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--sos) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ch-mini .brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }
.ch-mini .brand-mark svg { width: 32px; height: 32px; }
.d-stretch { transform: scaleX(1.7); }
.d-hue { filter: hue-rotate(150deg); }
.d-turn { transform: rotate(-24deg); }
.ch-mini .d-fx { box-shadow: 0 0 0 3px #fff, 6px 8px 0 3px #000; }
.d-font { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 26px; color: var(--ink); }

/* Colours */
.ch-main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; min-height: 230px; padding: 28px; border-radius: var(--radius); background: var(--sw); color: #fff; }
.ch-main .ch-name { margin: 0 0 6px; color: #fff; font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px); font-weight: 500; }
.ch-main .ch-use { color: #fff; max-width: 420px; font-size: 16px; }
.ch-codes { display: flex; gap: 28px; margin: 0; }
.ch-codes dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; opacity: .8; }
.ch-codes dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 18px; }
.ch-main .hex { color: #fff; font-size: 18px; border-color: rgba(255, 255, 255, .5); }
.hex { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ink); font-family: var(--f-mono); font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.hex:hover { border-color: var(--accent-2); background: rgba(var(--accent-rgb), .1); }

.ch-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-swatches li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.ch-chip { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(var(--tint-rgb), .2); }
.ch-swatches b { font-weight: 500; font-size: 15px; }
.ch-swatches .hex { justify-self: start; }
.ch-swatches small { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.ch-swatches.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ch-swatches.small .ch-chip { width: 40px; height: 40px; border-radius: 10px; }
.ch-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 44px; }

/* Fonts */
.ch-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ch-font { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.ch-font .ch-spec { margin: 0 0 6px; font-size: 76px; line-height: 1; color: var(--accent-2); }
.ch-font h3 { margin: 0; font-size: 20px; }
.ch-font a { margin-top: auto; color: var(--accent-2); font-size: 14px; }
.ch-sec .f-display .ch-spec, .ch-sec .f-display h3 { font-family: var(--f-display); }
.ch-sec .f-display .ch-spec { font-weight: 300; }
.ch-sec .f-text .ch-spec, .ch-sec .f-text h3 { font-family: var(--f-text); font-weight: 600; }
.ch-sec .f-mono .ch-spec, .ch-sec .f-mono h3 { font-family: var(--f-mono); font-weight: 500; }

/* Tone */
.ch-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-quote { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-3); }
.ch-quote > svg { width: 26px; height: 26px; color: var(--accent-2); }
.ch-q-k { margin: 14px 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-q { margin: 0 0 12px; font-family: var(--f-display); font-size: 21px; line-height: 1.25; }
.ch-quote.sig .ch-q { color: #FF6A00; }

.ch-list { display: grid; align-content: start; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ch-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ch-list li b { color: var(--ink); font-weight: 600; }
.ch-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--ok); }
.ch-list.dont svg { color: var(--sos); }
.ch-tone { margin-top: 30px; }
.ch-tone svg { color: var(--accent-2); }
.ch-zone .ch-list li { font-size: 14.5px; }
.ch-cols2 .ch-list { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
#partenaires .ch-cols2 { margin-top: 0; }
.ch-contact { display: flex; gap: 12px; align-items: center; margin: 30px 0 0; font-size: 17px; }
.ch-contact svg { flex: none; width: 24px; height: 24px; color: var(--accent-2); }

@media (max-width: 1000px) {
  .ch-logos, .ch-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-rules, .ch-fonts, .ch-quotes, .ch-cols2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nav-back { display: none; }
  .charte .lang-switch { margin-left: auto; }
  .ch-logos { grid-template-columns: minmax(0, 1fr); }
  .ch-swatches { grid-template-columns: minmax(0, 1fr); }
  .ch-dont-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-clear { padding: 20px; }
  .ch-clear img { height: 60px; }
  .ch-x { width: 20px; height: 20px; font-size: 10px; }
}
