/* ═══ Polices self-hébergées (ex-Google Fonts, v1.2) ═══ */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/caveat-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/caveat-500-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/caveat-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/caveat-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/fraunces-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/fraunces-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/fraunces-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/fraunces-900-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/spacegrotesk-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/spacegrotesk-500-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/spacegrotesk-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/wp-content/mu-plugins/nx-fonts/spacegrotesk-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+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */

/* ═══════════════════════════════════════════════════════════════
   Technobriez — skin « Cahier de classe » (2026-07)
   Chargé APRÈS les styles Kadence. Rollback = retirer le mu-plugin.
   Spec : sites/technobriez.fr/design/SPEC-SKIN-CAHIER-2026-07.md
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* réchauffe la palette Kadence sitewide (1/2 = teal conservés) */
  --global-palette3: #1d1c1a;   /* texte fort */
  --global-palette4: #4a453c;   /* texte courant */
  --global-palette5: #6b6455;
  --global-palette6: #8a8272;
  --global-palette7: #efe9db;   /* fond léger */
  --global-palette8: #f5efe3;   /* fond accent doux */
  --global-palette9: #faf6ee;   /* fond de base : papier */
  /* tokens du skin */
  --nx-paper: #faf6ee;
  --nx-line: #e8e0d0;
  --nx-ink: #1d1c1a;
  --nx-ink-soft: #4a453c;
  --nx-teal: #26947d;
  --nx-teal-dark: #1f7765;
  --nx-marker: #ffe86b;
  --nx-coral: #e8604c;
}

body { background-color: var(--nx-paper); }
::selection { background: var(--nx-marker); color: var(--nx-ink); }

/* ── Typographies ────────────────────────────────────────────── */
h1, h2, h3, .entry-title, .site-title {
  font-family: "Fraunces", Georgia, serif !important;
  color: var(--nx-ink);
}
h1 { font-weight: 900 !important; }
h2, h3 { font-weight: 700 !important; }
h4, h5, h6,
.main-navigation, .secondary-navigation, .mobile-navigation,
.breadcrumbs, .entry-meta {
  font-family: "Space Grotesk", "Lato", sans-serif !important;
}

/* ── Header / navigation ─────────────────────────────────────── */
.site-header, #masthead { border-bottom: 2px solid var(--nx-ink); }
.main-navigation a, .secondary-navigation a { font-weight: 500; }
.main-navigation a:hover, .secondary-navigation a:hover { color: var(--nx-teal-dark); }
/* entrée « Jeux » au marqueur (apparaîtra avec le menu du 28/08) */
.main-navigation a[href*="jeux-technologie-college"],
.mobile-navigation a[href*="jeux-technologie-college"] {
  background: var(--nx-marker);
  border: 1.5px solid var(--nx-ink);
  border-radius: 4px;
  padding: 2px 12px !important;
  transform: rotate(-2deg);
  font-weight: 700;
}

/* ── Boutons (Gutenberg + Kadence, PAS ceux des jeux .nxq/.nxc) ─ */
.wp-block-button__link, .kb-button, .kt-button,
button[type="submit"]:not([class*="nxq"]):not([class*="nxc"]),
input[type="submit"] {
  font-family: "Space Grotesk", sans-serif !important;
  border: 2px solid var(--nx-ink) !important;
  border-radius: 6px !important;
  box-shadow: 3px 3px 0 rgba(29, 28, 26, 0.22);
  transition: transform .12s, box-shadow .12s;
}
.wp-block-button__link:hover, .kb-button:hover, .kt-button:hover,
input[type="submit"]:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(29, 28, 26, 0.22);
}

/* ── Cartes d'archives / listes d'articles ───────────────────── */
.loop-entry, .entry.loop-entry, article.entry {
  border: 2px solid var(--nx-ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(29, 28, 26, 0.16);
}
.loop-entry:hover { transform: translateY(-3px); transition: transform .15s; }
.post-thumbnail img, .entry-content-wrap .wp-post-image {
  border-radius: 8px 8px 0 0;
}

/* ── Image à la une des articles ─────────────────────────────── */
.single .article-post-thumbnail img, .single .post-thumbnail-inner img {
  border: 2px solid var(--nx-ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(29, 28, 26, 0.16);
}

/* ── Encadrés maison ─────────────────────────────────────────── */
.tbz-intro-editorial {
  background: #fff !important;
  border: 2px solid var(--nx-ink) !important;
  border-radius: 10px !important;
  box-shadow: 4px 4px 0 rgba(38, 148, 125, 0.35);
}
.tbz-intro-editorial p { color: var(--nx-ink-soft) !important; }
.tbz-retiens {
  background: #fff8dd !important;
  border: 2px solid var(--nx-ink) !important;
  border-radius: 10px !important;
  box-shadow: 4px 4px 0 rgba(255, 232, 107, 0.9);
  transform: rotate(-0.35deg);
}
.tbz-retiens h3 { transform: rotate(0.35deg); }

/* ── Tableaux ────────────────────────────────────────────────── */
.wp-block-table table { border: 2px solid var(--nx-ink); }
.wp-block-table thead th, .wp-block-table thead {
  background: var(--nx-marker) !important;
  color: var(--nx-ink) !important;
  font-family: "Space Grotesk", sans-serif;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f5efe3; }

/* ── Citations ───────────────────────────────────────────────── */
blockquote {
  font-family: "Caveat", cursive;
  font-size: 1.45em;
  line-height: 1.35;
  border-left: 4px solid var(--nx-marker) !important;
  background: #fff;
}

/* ── Liens dans le contenu ───────────────────────────────────── */
.entry-content a:not(.wp-block-button__link):not([class*="nx"]) {
  color: var(--nx-teal-dark);
  text-decoration-color: var(--nx-marker);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ── Jeux (.nxq quiz / .nxc chaîne / .nxg hub) accordés au skin ─ */
.nxq, .nxc {
  border: 2px solid var(--nx-ink) !important;
  box-shadow: 5px 5px 0 rgba(29, 28, 26, 0.16) !important;
}
.nxg .nxg-card {
  border: 2px solid var(--nx-ink) !important;
  box-shadow: 3px 3px 0 rgba(29, 28, 26, 0.16) !important;
}
.nxg .nxg-card:nth-child(odd) { transform: rotate(-0.4deg); }
.nxg .nxg-card:nth-child(even) { transform: rotate(0.4deg); }
.nxg .nxg-card:hover { transform: translateY(-3px) rotate(0); }

/* ── Footer encre ────────────────────────────────────────────── */
.site-footer, #colophon {
  background: var(--nx-ink) !important;
  color: #cfc9bd;
  border-top: none;
}
.site-footer a, #colophon a { color: #cfc9bd; }
.site-footer a:hover, #colophon a:hover { color: var(--nx-marker); }
.site-footer .widget-title, #colophon .widget-title { color: #fff; }

/* ── Divers ──────────────────────────────────────────────────── */
.breadcrumbs { color: var(--nx-ink-soft); }
hr, .wp-block-separator { border-color: var(--nx-line); }

/* ═══════════════ v1.1 — nav, footer, gabarits articles ═══════ */

/* ── Nav : une seule ligne, hover marqueur ───────────────────── */
.main-navigation ul.menu, .secondary-navigation ul.menu { flex-wrap: nowrap; }
.main-navigation .menu > li > a,
.secondary-navigation .menu > li > a {
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
  padding-left: 0.6em !important;
  padding-right: 0.6em !important;
  color: var(--nx-ink);
}
.main-navigation .menu > li > a:hover,
.secondary-navigation .menu > li > a:hover {
  background: linear-gradient(transparent 52%, var(--nx-marker) 52%);
  color: var(--nx-ink);
}
.search-toggle-open, .menu-toggle-open { color: var(--nx-ink); }
/* tiroir mobile assorti */
.popup-drawer .drawer-inner { background: var(--nx-paper) !important; }
.popup-drawer .drawer-inner a { color: var(--nx-ink) !important; font-family: "Space Grotesk", sans-serif; }
.popup-drawer .drawer-header .drawer-toggle { color: var(--nx-ink); }

/* ── Footer : encre forcée sur les rangées Kadence ───────────── */
.site-footer,
.site-footer .site-footer-wrap,
.site-footer .site-footer-row-container,
.site-footer .site-footer-row-container-inner,
.site-footer .site-footer-section {
  background: var(--nx-ink) !important;
  color: #cfc9bd;
}
.site-footer .widget-title,
.site-footer h1, .site-footer h2, .site-footer h3,
.site-footer h4, .site-footer h5, .site-footer h6 {
  color: #fff !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer a, .site-footer .menu a { color: #cfc9bd !important; }
.site-footer a:hover { color: var(--nx-marker) !important; }
.site-footer p, .site-footer li { color: #cfc9bd; }
/* logo footer : petit et posé sur un sticker papier (sinon noir sur noir) */
.site-footer img[src*="logo_technobriez"] {
  max-width: 140px !important;
  height: auto !important;
  background: var(--nx-paper);
  padding: 10px 14px;
  border-radius: 10px;
  transform: rotate(-1.5deg);
}
/* reliquat de template boutique : bandeau « payments » masqué */
.site-footer img[src*="payments"] { display: none !important; }
.site-footer img { max-width: 160px; height: auto; }

/* ── Bande « Pour aller plus loin » (gabarit #f7fafc) ────────── */
.entry-content .wp-block-group[style*="background-color:#f7fafc"] {
  background-color: #f5efe3 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 12px;
  border-top: 2px dashed var(--nx-line);
}
.wp-block-group[style*="background-color:#f7fafc"] .wp-block-column[style*="background-color:#ffffff"] {
  border: 2px solid var(--nx-ink);
  box-shadow: 3px 3px 0 rgba(29, 28, 26, 0.15);
}
.wp-block-group[style*="background-color:#f7fafc"] .wp-block-column:nth-child(odd)  { transform: rotate(-0.5deg); }
.wp-block-group[style*="background-color:#f7fafc"] .wp-block-column:nth-child(even) { transform: rotate(0.5deg); }
.wp-block-group[style*="background-color:#f7fafc"] h3 { font-family: "Space Grotesk", sans-serif !important; }

/* ── Composants single post ──────────────────────────────────── */
.entry-author {
  border: 2px solid var(--nx-ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(29, 28, 26, 0.16);
  padding: 20px;
}
.entry-author .author-image img { border: 2px solid var(--nx-ink); border-radius: 50%; transform: rotate(-2deg); }
.post-navigation .nav-links a {
  font-family: "Space Grotesk", sans-serif;
  color: var(--nx-teal-dark);
}
.comments-area, #comments {
  border-top: 2px dashed var(--nx-line);
  padding-top: 24px;
}
/* pagination archives */
.pagination .page-numbers {
  font-family: "Space Grotesk", sans-serif;
  border: 2px solid var(--nx-ink);
  border-radius: 6px;
  background: #fff;
}
.pagination .page-numbers.current { background: var(--nx-marker); }
