/* polices du site, servies localement */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bodoni-moda-latin-ext-400-900.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/bodoni-moda-latin-400-900.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; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-ext-400-800-i.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-400-800-i.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; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-ext-400-800.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/jost-latin-400-800.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; }

:root {
  --cre-bg: #FBF1F0;
  --cre-surface: #F3DCDC;
  --cre-text: #2B0F18;
  --cre-muted: #5A3340;
  --cre-accent: #7A5C14;
  --cre-accent2: #6B1D2F;
  --cre-gold-light: #D8B866;
  --cre-line: #2B0F18;
  --cre-serif: "Bodoni Moda", "Didot", "Bodoni 72", "Times New Roman", serif;
  --cre-sans: "Jost", "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cre-bg);
  color: var(--cre-text);
  font-family: var(--cre-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cre-accent2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cre-accent);
}

:focus-visible {
  outline: 3px solid var(--cre-accent2);
  outline-offset: 3px;
}

/* En-tête */
.cre-header {
  border-top: 1px solid var(--cre-line);
  border-bottom: 1px solid var(--cre-line);
  background: var(--cre-bg);
}

.cre-header-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.cre-brand {
  font-family: var(--cre-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cre-accent2);
  text-decoration: none;
}

.cre-brand:hover {
  color: var(--cre-text);
}

.cre-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cre-nav a {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border: 1px solid var(--cre-accent2);
  border-radius: 999px;
  color: var(--cre-accent2);
  font-size: 0.95rem;
  text-decoration: none;
}

.cre-nav a:hover {
  background: var(--cre-accent2);
  color: var(--cre-bg);
}

/* Premier écran */
.cre-hero {
  max-width: 82rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.cre-hero-text {
  border-top: 1px solid var(--cre-line);
  padding-top: 1.5rem;
  min-width: 0;
}

.cre-marker {
  margin: 0 0 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.cre-marker-figure {
  font-family: var(--cre-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cre-accent);
}

.cre-marker-caption {
  max-width: 18rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--cre-muted);
}

.cre-title {
  margin: 0 0 1.5rem;
  font-family: var(--cre-serif);
  font-size: clamp(1.8rem, 4vw + 0.6rem, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cre-text);
}

.cre-title-line {
  display: block;
}

.cre-title-line:nth-child(2) {
  font-style: italic;
  color: var(--cre-accent2);
}

.cre-lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cre-muted);
}

.cre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cre-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--cre-accent2);
  border-radius: 999px;
  background: var(--cre-accent2);
  color: var(--cre-bg);
  font-weight: 500;
  text-decoration: none;
}

.cre-btn:hover {
  background: var(--cre-text);
  border-color: var(--cre-text);
  color: var(--cre-bg);
}

.cre-btn-alt {
  background: transparent;
  color: var(--cre-accent2);
}

.cre-btn-alt:hover {
  background: var(--cre-surface);
  border-color: var(--cre-accent2);
  color: var(--cre-text);
}

.cre-chart {
  margin: 0;
  background: var(--cre-text);
  overflow: hidden;
  max-width: 32rem;
  width: 100%;
  justify-self: center;
}

.cre-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.cre-chart-bg {
  fill: var(--cre-text);
}

.cre-chart-grid {
  stroke: var(--cre-muted);
  stroke-width: 1;
}

.cre-chart-wick {
  stroke: var(--cre-surface);
  stroke-width: 2;
}

.cre-chart-up {
  fill: var(--cre-surface);
}

.cre-chart-dn {
  fill: var(--cre-gold-light);
}

.cre-chart-vol {
  fill: var(--cre-muted);
}

.cre-chart-level {
  stroke: var(--cre-gold-light);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.cre-chart-level-stop {
  stroke: var(--cre-surface);
}

.cre-chart-label {
  fill: var(--cre-gold-light);
  font-family: var(--cre-sans);
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 880px) {
  .cre-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
    gap: 3.5rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
}

/* Fiche : colonne de repères + texte */
.cre-fiche {
  max-width: 82rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.cre-aside {
  min-width: 0;
}

.cre-aside-inner {
  border-top: 1px solid var(--cre-line);
  padding-top: 1.25rem;
}

.cre-aside h2 {
  margin: 0 0 0.75rem;
  font-family: var(--cre-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cre-accent2);
}

.cre-toc {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.97rem;
  line-height: 1.4;
}

.cre-toc li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cre-surface);
}

.cre-toc a {
  color: var(--cre-text);
  text-decoration: none;
}

.cre-toc a:hover {
  color: var(--cre-accent2);
  text-decoration: underline;
}

.cre-figures {
  margin: 0;
  padding: 0;
}

.cre-figures div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--cre-surface);
}

.cre-figures dt {
  font-family: var(--cre-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cre-accent);
}

.cre-figures dd {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--cre-muted);
}

@media (min-width: 960px) {
  .cre-fiche {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 4rem;
  }

  .cre-aside-inner {
    position: sticky;
    top: 1.5rem;
  }
}

/* Texte */
.cre-article {
  min-width: 0;
  max-width: 46rem;
}

.cre-section {
  margin: 0 0 4rem;
  scroll-margin-top: 1.5rem;
}

.cre-section h2 {
  margin: 0 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cre-line);
  font-family: var(--cre-serif);
  font-size: clamp(1.55rem, 2.4vw + 0.8rem, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cre-text);
}

.cre-section h3 {
  margin: 2rem 0 0.5rem;
  font-family: var(--cre-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cre-accent2);
}

.cre-section p {
  margin: 0 0 1.15rem;
}

.cre-section ul,
.cre-section ol {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
}

.cre-section li {
  margin-bottom: 0.4rem;
}

/* Encadré et spécimen */
.cre-note {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--cre-surface);
  border-left: 6px solid var(--cre-accent2);
}

.cre-note p:last-child {
  margin-bottom: 0;
}

.cre-specimen {
  margin: 1.75rem 0;
  border: 1px solid var(--cre-line);
  background: var(--cre-surface);
}

.cre-specimen-title {
  margin: 0;
  padding: 0.6rem 1.1rem;
  background: var(--cre-text);
  color: var(--cre-bg);
  font-family: var(--cre-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.cre-specimen dl {
  margin: 0;
}

.cre-specimen-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.55rem 1.1rem;
  border-top: 1px solid var(--cre-bg);
}

.cre-specimen-row:first-child {
  border-top: 0;
}

.cre-specimen dt {
  font-weight: 500;
  color: var(--cre-accent2);
}

.cre-specimen dd {
  margin: 0;
}

/* Tableaux */
.cre-table-wrap {
  margin: 1.75rem 0;
  overflow-x: auto;
  border: 1px solid var(--cre-line);
}

.cre-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.5;
}

.cre-table caption {
  padding: 0.7rem 1rem;
  background: var(--cre-text);
  color: var(--cre-bg);
  text-align: left;
  font-family: var(--cre-serif);
  font-weight: 700;
}

.cre-table th,
.cre-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--cre-surface);
  text-align: left;
  vertical-align: top;
}

.cre-table thead th {
  background: var(--cre-surface);
  color: var(--cre-text);
  font-weight: 600;
}

.cre-table tbody th {
  font-weight: 600;
  color: var(--cre-accent2);
}

.cre-table tbody tr:last-child th,
.cre-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Figure */
.cre-figure {
  margin: 1.75rem 0;
}

.cre-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--cre-muted);
}

/* Questions-réponses */
.cre-faq {
  margin: 0 0 2rem;
}

.cre-qa {
  padding: 1.25rem 0;
  border-top: 1px solid var(--cre-surface);
}

.cre-qa:first-of-type {
  border-top: 1px solid var(--cre-line);
}

.cre-qa-q {
  margin: 0 0 0.5rem;
  font-family: var(--cre-serif);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cre-accent2);
}

.cre-qa-a {
  margin: 0;
}

/* Pied de page */
.cre-footer {
  border-top: 1px solid var(--cre-line);
  background: var(--cre-surface);
}

.cre-footer-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.95rem;
}

.cre-footer-name {
  font-family: var(--cre-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cre-accent2);
}

.cre-footer a {
  color: var(--cre-text);
}

.cre-footer a:hover {
  color: var(--cre-accent2);
}

.cre-credits {
  margin: 0;
  color: var(--cre-muted);
}

/* Page simple (mentions légales) */
.cre-plain {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.cre-plain h1 {
  margin: 0 0 1.5rem;
  font-family: var(--cre-serif);
  font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
  line-height: 1.15;
}

.cre-plain h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--cre-serif);
  font-size: 1.3rem;
  color: var(--cre-accent2);
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .cre-specimen-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* telegram-signal-channel-track-record.html */
.cre-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cre-chart-line-gross {
  stroke: var(--cre-gold-light);
}

.cre-chart-line-net {
  stroke: var(--cre-surface);
}
