/* TMG Conseil - identité 2027 (papier à en-tête « A + D » du 06/11/2026).
   Chargée en dernier sur toutes les pages : redéfinit les variables et les composants du gabarit bento.
   Noir et blanc, Montserrat (titres), Sora (texte), IBM Plex Mono (libellés), losange devant les titres. */

/* Polices : Sora et Plex Mono n'ont que le latin ; le cyrillique retombe sur Montserrat. */
@font-face { font-family: "TMG Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TMG Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TMG Montserrat"; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TMG Montserrat"; font-weight: 600; font-display: swap; src: url("/fonts/montserrat-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TMG Montserrat"; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TMG Montserrat"; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TMG Montserrat"; font-weight: 800; font-display: swap; src: url("/fonts/montserrat-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TMG Montserrat"; font-weight: 800; font-display: swap; src: url("/fonts/montserrat-800-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "TMG Sora"; font-weight: 400; font-display: swap; src: url("/fonts/sora-400-latin.woff2") format("woff2"); }
@font-face { font-family: "TMG Sora"; font-weight: 600; font-display: swap; src: url("/fonts/sora-600-latin.woff2") format("woff2"); }
@font-face { font-family: "TMG Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "TMG Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/plex-mono-500-latin.woff2") format("woff2"); }

:root,
html[lang="ru"] {
  --ink: #000;
  --ink-soft: #2b2b2b;
  --paper: #fff;
  --surface: #f4f4f2;
  --line: #d6d6d3;
  --line-soft: #e8e8e5;
  --muted: #5c5c5c;
  --accent: #000;
  --accent-deep: #000;
  --tile-sage: #fff;
  --tile-cream: var(--surface);
  --tile-lavender: #fff;
  --tile-peach: var(--surface);
  --tile-mint: #fff;
  --tile-ash: var(--surface);
  --tile-ink: #000;
  --radius-xl: 4px;
  --radius-l: 4px;
  --radius-m: 3px;
  --ff-display: "TMG Montserrat", system-ui, sans-serif;
  --ff-body: "TMG Sora", "TMG Montserrat", system-ui, sans-serif;
  --ff-mono: "TMG Plex Mono", "JetBrains Mono", ui-monospace, monospace;
}
html[dir="rtl"] {
  --ff-display: "Noto Sans Arabic", "TMG Montserrat", system-ui, sans-serif;
  --ff-body: "Noto Sans Arabic", "TMG Sora", system-ui, sans-serif;
  --ff-mono: "Noto Sans Arabic", "TMG Plex Mono", ui-monospace, monospace;
}

html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--ff-body); }
::selection { background: #000; color: #fff; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.skip-link { border-radius: 2px; background: #000; }

/* ── Titres ──────────────────────────────────── */
h1, h2, h3,
.page-head h1, .hero-main h1, .section-head h2, .tile h3,
.content-card h2, .content-card h3, .link-card h3, .faq-item h3,
.proof-note h2, .proof-note h3, .footer .f-brand {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.page-head h1, .hero-main h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.page-head h1 { font-size: clamp(38px, 4.6vw, 68px); }
.hero-main h1 { font-size: clamp(38px, 4.6vw, 70px); }
.section-head h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.08; }
.page-head h1 em, .hero-main h1 em, .section-head h2 em, .footer .f-brand em {
  color: inherit;
  font-style: normal;
  font-weight: 400;
}
.page-head h1 .swash, .hero-main h1 .swash {
  background: #000;
  color: #fff;
  border-radius: 2px;
  transform: none;
  font-style: normal;
  padding: 0 .16em .04em;
}
/* Les blocs de style des pages fixent souvent un graisse 500, rendue trop maigre en Montserrat. */
:is(h1, h2, h3, h4) { font-weight: 700 !important; }
:is(.page-head, .hero-main) h1 { font-weight: 800 !important; }
:is(h1, h2, h3) em { font-weight: 400 !important; }
html[dir="rtl"] :where(h1, h2, h3) { letter-spacing: normal; }

/* Losange devant les titres de section, comme sur le papier 2027. Il est posé dans un retrait
   du titre : toutes les lignes d'un titre sur deux lignes ou plus démarrent au même endroit. */
.section-head h2,
.content-card h2,
.proof-note h2,
.legal-body h2 {
  position: relative;
  padding-inline-start: .82em;
}
.section-head h2::before,
.content-card h2::before,
.proof-note h2::before,
.legal-body h2::before {
  content: "";
  position: absolute;
  inset-inline-start: .04em;
  top: .38em;
  top: calc(.5lh - .16em);
  width: .32em;
  height: .32em;
  background: currentColor;
  transform: rotate(45deg);
}

/* En-tête de section : le libellé au-dessus du titre, tous deux calés sur le bord du contenu,
   la note ou le chapeau à droite. */
.section-head {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  row-gap: 14px;
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1; }
.section-head :is(.right-note, .lede) { grid-column: 2; align-self: end; max-width: 40ch; margin: 0; }
.section-head .right-note { max-width: 26ch; }
.faq-section .faq { margin-inline: 0; }
@media (max-width: 960px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head :is(h2, .right-note, .lede) { grid-column: 1; }
  .section-head .right-note { text-align: start; }
}

/* Libellés techniques en Plex Mono capitales. */
.eyebrow, .tile-eyebrow, .link-card .kicker, .page-head .crumbs, .page-head .head-meta,
.section-head .eyebrow, .section-head .right-note, .marquee, .hero-main .meta {
  font-family: var(--ff-mono);
  letter-spacing: .1em;
}
.page-head .crumbs .sep { color: var(--muted); }

/* ── En-tête : barre noire pleine largeur, logo blanc ─────────── */
.nav {
  background: #000;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 0;
  min-height: 78px;
}
.logo { color: #fff; gap: 0; }
.logo .mark { display: none; }
.logo img { height: 46px; width: auto; display: block; }
.nav-links a {
  white-space: nowrap;
  color: rgba(255, 255, 255, .78);
  border-radius: 2px;
  font-family: var(--ff-body);
}
.nav-links a:hover { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav-links a.is-active, .nav-links a[aria-current="page"] { background: #fff; color: #000; }
.nav .cta { background: #fff; color: #000; border-radius: 2px; font-weight: 600; }
.nav .cta .pip, .site-foot .foot-cta .pip { width: 7px; height: 7px; border-radius: 0; background: currentColor; transform: rotate(45deg); }
.nav :focus-visible { outline-color: #fff; }
/* Les menus déroulants de l'en-tête sont blancs : focus noir. */
.nav :is(.mobile-menu-panel, .lang-more-menu) :focus-visible { outline-color: #000; }

.nav .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .28); border-radius: 2px; }
.nav .lang-switch a, .nav .lang-switch summary { color: rgba(255, 255, 255, .82); border-radius: 2px; }
.nav .lang-switch a:hover, .nav .lang-switch a:focus-visible,
.nav .lang-switch summary:hover, .nav .lang-switch summary:focus-visible,
.nav .lang-switch a.active, .nav .lang-more.active > summary, .nav .lang-more[open] > summary { background: #fff; color: #000; }
.lang-more-menu { border-radius: 2px; border-color: #000; }
.nav .lang-more-menu a { color: #000; }
.nav .lang-more-menu a:hover, .nav .lang-more-menu a.active { background: #000; color: #fff; }
.mobile-menu > summary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); border-radius: 2px; }
.mobile-menu[open] > summary { background: #fff; color: #000; }
.mobile-menu-panel { border: 1px solid #000; border-radius: 2px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); color: #000; }
.mobile-menu-links a { border-radius: 2px; }
.mobile-menu-links a:hover { background: var(--surface); }
.mobile-lang-grid a { border-radius: 2px; }
.mobile-menu-cta { background: #000 !important; color: #fff !important; border-radius: 2px !important; }

/* ── Boutons ─────────────────────────────────── */
.btn, .footer .f-cta { border-radius: 2px; }
.btn-primary, .btn-accent { background: #000; color: #fff; }
.btn-primary:hover, .btn-accent:hover { background: #2b2b2b; }
.btn-tile { background: #fff; border: 1px solid #000; }
.btn-tile:hover { background: var(--surface); }
.link-card .go { color: #000; }

/* ── Accueil ─────────────────────────────────── */
.hero-main {
  border: 1px solid #000;
  border-radius: var(--radius-xl);
  background: #fff url("/brand/filigrane-noir.svg?v=9b50f3b7d760") no-repeat right -90px top 50% / min(520px, 70%);
}
.hero-main .meta .badge { background: #000; color: #fff; border-radius: 2px; }
.hero-main .bottom-row .pip { background: #000; border-radius: 0; transform: rotate(45deg); }

/* ── Tuiles et cartes : filet noir, angles serrés ─────────────── */
.tile { border: 1px solid #000; border-radius: var(--radius-l); }
.tile-accent, .tile-ink { background: #000; color: #fff; }
.tile-accent .tile-eyebrow, .tile-ink .tile-eyebrow { color: rgba(255, 255, 255, .72); }
.tile-accent .tile-eyebrow .num, .tile-ink .tile-eyebrow .num { color: #fff; }
.tile-accent .tile-foot .arrow { background: #fff; color: #000; }
.tile-accent :is(h2, h3), .tile-ink :is(h2, h3) { color: #fff; }
.tile-accent .tile-foot { color: rgba(255, 255, 255, .85); }
.tile-foot .arrow { border-radius: 2px; }
.tile .bignum {
  font-family: var(--ff-display);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .16);
}
.tile-accent .bignum, .tile-ink .bignum { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.content-card, .link-card, .faq-item { border: 1px solid #000; border-radius: var(--radius-l); }
.proof-note { background: #000; border-radius: var(--radius-l); }
.marquee { border-color: #000; }
.faq details { border-color: #000; }
.faq summary { display: block; position: relative; padding-inline-end: 36px; font-weight: 600; }
.faq summary::after { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); }
html[dir="rtl"] :is(.hero-main, .page-head) h1 { line-height: 1.3; }
.marquee .dot { color: #000; }

/* i18n.css forçait du texte noir sur le terracotta (contraste AA) : sur fond noir, il repasse en blanc. */
.tile-accent .tile-foot, .cell-5, .cell-5 .ix, .cell-5 p, .cell-5 h4,
.contact-tile.accent, .contact-tile.accent .ix, .contact-tile.accent h3, .contact-tile.accent p,
.contact-tile.accent .step-line .t, .contact-tile.accent .step-line .t b { color: #fff !important; }
.contact-tile.accent .step-line .n, .tile-accent .tile-foot .arrow { background: #fff !important; color: #000 !important; }

/* Textes posés sur un bloc noir : l'accent (devenu noir) ou l'héritage du lien les rendait invisibles. */
.manifesto .tmg-letter,
.contact-tile.ink [style*="--accent"],
.contact-tile.ink .contact-line :is(.ico, .arr),
.contact-tile.accent [style*="color:#000"],
.cell-4 .ix .arrow,
.code-tile .c-key,
.sol-5 h3 { color: #fff !important; }
/* Mots en relief : même couleur que leur titre (le bandeau final est noir ou clair selon la page). */
.manifesto blockquote em,
.cta-strip h3 em,
.flagship-main h2 em { color: inherit !important; }
.domain-side .brand-tile .lab { color: rgba(255, 255, 255, .6); }

/* Couleurs codées en dur dans les blocs de style des pages principales. */
[style*="background:var(--accent)"], [style*="background: var(--accent)"] { background: #000 !important; color: #fff !important; }
[style*="border-radius: 999px"], [style*="border-radius:999px"] { border-radius: 2px !important; }

/* ── Pied de page (réécrit par tools/rewrite_chrome.py) ───────── */
.site-foot {
  background: #000 url("/brand/filigrane-blanc.svg?v=0faac4720f14") no-repeat right -120px top 40px / 560px;
  color: #fff;
  margin-top: 96px;
  padding: 72px 0 0;
}
.site-foot .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.site-foot .foot-logo { height: 58px; width: auto; display: block; }
.site-foot .foot-tagline {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  max-width: 20ch;
  margin: 28px 0 0;
}
.site-foot .foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
}
.site-foot h2 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin: 0 0 16px;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-foot ul a { color: rgba(255, 255, 255, .86); font-size: 14.5px; }
.site-foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-foot :focus-visible { outline-color: #fff; }
.foot-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0 30px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .7);
}
.foot-legal p { margin: 0; }
.foot-legal b { color: #fff; font-weight: 500; }
.foot-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal .foot-croix { height: 44px; width: 44px; flex: none; }

/* Liens, langues et bouton ne tiennent pas sur une ligne sous 1180 px (libellés russes et espagnols) :
   menu compact dès ce seuil, au lieu de 960 px dans le gabarit d'origine. */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav .lang-switch { display: none; }
  .mobile-menu { display: block; }
  .nav-inner { grid-template-columns: auto auto !important; }
}
@media (max-width: 640px) {
  /* Montserrat 800 est large : un mot long ne doit pas sortir de l'écran. */
  h1, h2, h3, .num-card .big { overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 960px) {
  .site-foot .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-foot .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-inner { min-height: 64px; padding: 10px 0; }
  .logo img { height: 36px; }
  .site-foot { margin-top: 64px; padding-top: 52px; background-size: 360px; }
  .site-foot .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  .content-card, .link-card, .proof-note { border-radius: var(--radius-l); }
}
