html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: var(--leading-body);
}

.front-page #block-cp-page-title {
  h1 {
    display: none;
  }
}

/* Fluid copy scale only for article content: 100% at 980px -> 120% at 1290px and above. */
@media (min-width: 980px) {
  .content-section .container article {
    font-size: clamp(1em, calc(0.36774rem + 1.0323vw), 1.2em);
  }
}

* {
  border-radius: 0;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--warn);
  outline-offset: 3px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  border: 2px solid var(--focus);
  background: var(--header-bg);
  color: var(--header-ink);
  z-index: 9999;
  font-family: var(--font-label);
  letter-spacing: 0;
  font-size: var(--type-xs);
}

.skip:focus {
  left: 12px;
}

/* Typography */
.brand span,
header nav,
.heroMeta,
.btn,
.sectionHead h2,
.code,
.adHeader,
.small,
.footLinks {
  font-family: var(--font-label);
  letter-spacing: 0;
}

.footLinks nav h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--type-lg);
  letter-spacing: 0;
  text-transform: none;
}

.brand {
  /* Keep the clickable brand sized to the logo only */
  position: relative;
  display: inline-block;
  span {
    font-size: var(--type-xs);
    color: var(--muted);
  }
}

.brand__logo {
  height: 60px;
  display: inline-block;
  text-indent: -9999px;
}

.brand__type {
  /* Do not take horizontal space; sit under the logo within the brand box */
  position: absolute;
  /* Align under the wordmark (after the circular icon area) */
  left: 71px;
  /* Slightly below the bottom of the 60px-tall logo box */
  bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.09em !important;;
  color: var(--accent) !important;
}

@media (max-width: 550px) {
  .brand__logo {
    width: 60px;
    background: url('/themes/custom/cp/logo.svg') no-repeat center / contain;
  }

  footer .brand__logo {
    width: 298px;
  }

  @media (prefers-color-scheme: light) {
    footer .brand__logo {
      background: url('/themes/custom/cp/logo-cp-dark.svg') no-repeat center / contain;
    }
  }

  @media (prefers-color-scheme: dark) {
    footer .brand__logo {
      background: url('/themes/custom/cp/logo-cp.svg') no-repeat center / contain;
    }
  }

  header .brand__type {
    left: -9999px;
  }
}

@media (min-width: 550px) {
  .brand__logo {
    width: 298px;
    background: url('/themes/custom/cp/logo-cp.svg') no-repeat center / contain;
  }
  @media (prefers-color-scheme: light) {
    footer .brand__logo {
      background: url('/themes/custom/cp/logo-cp-dark.svg') no-repeat center / contain;
    }
  }
}

h1, .h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: var(--type-3xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: 0;
  text-transform: none;
}

/* Content typography */
.content-section {
  font-family: var(--font-body);
  line-height: var(--leading-body);
  font-size: var(--type-md);
  h1 {
    font-size: var(--type-2xl);
    margin-top: 2ex;
  }
  h2 {
    font-size: var(--type-xl);
    margin-top: 2.6ex;
    margin-bottom: -0.1ex;
  }
  h3 {
    font-size: var(--type-lg);
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--leading-heading);
    letter-spacing: 0;
  }
  h1,
  h2 {
    color: var(--ink);
  }
}

/* Keep text-oriented page content width controlled on large screens. */
.content-section .container article {
  width: min(100%, 1200px);
  max-width: 1200px;
}

/* Book-style paragraph flow for article content. */
.content-section .container article p {
  margin-block: 0;
  text-align: left;
  text-indent: 0;
}

.content-section .container article p:first-of-type,
.content-section .container article :is(h1, h2, h3, h4, h5, h6) + p {
  margin-top: 1ex;
}

.content-section .container article p + p {
  text-indent: 2em;
}

.content-section h1,
.content-section h2,
.content-section h3 {
  text-wrap: balance;
  line-height: 1.18;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--type-md);
  line-height: var(--leading-body);
  max-width: 80ch;
}

.sectionHead h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--type-lg);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sm);
  line-height: 1.55;
  max-width: 78ch;
}

.item h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--type-lg);
  font-weight: 600;
  line-height: var(--leading-heading);
  text-transform: none;
  letter-spacing: 0;
}

.item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-base);
  line-height: var(--leading-body);
  max-width: 90ch;
}

/* Borders / separators (Variante C) */
header {
  border-bottom: 2px solid var(--line2);
  background: var(--header-bg);
  color: var(--header-ink);
}

header nav {
  /*border-top: 1px solid var(--line);*/
  color: var(--header-secondary-text);
}

.heroBox {
  border: 2px solid var(--line2);
}

.heroMeta {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.heroMeta b {
  color: var(--ink);
  font-weight: 700;
}

.actions {
  border-top: 1px solid var(--line);
}

.sectionHead {
  border-top: 2px solid var(--line2);
  border-bottom: 1px solid var(--line);
}

.list {
  border: 2px solid var(--line2);
  border-top: 0;
}

.item {
  border-top: 1px solid var(--line);
}

.item:first-child {
  border-top: 0;
}

.code {
  border: 1px solid var(--line);
  padding: 6px 8px;
  font-size: var(--type-xs);
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 2px solid var(--line2);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: var(--type-xs);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--focus);
  color: var(--focus);
  text-decoration: none;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--header-bg);
}

.btn.primary:hover {
  background: transparent;
  color: var(--focus);
}

/* Header CTA */
.topCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 2px solid var(--header-accent);
  background: transparent;
  color: var(--header-text);
  font-family: var(--font-label);
  font-size: var(--type-xs);
  letter-spacing: 0;
  font-weight: 700;
  white-space: nowrap;
}

.topCta:hover {
  background: var(--header-accent);
  color: var(--header-bg);
  text-decoration: none;
}

/* Ad (PUBLICITÉ) */
.ad {
  border: 3px solid var(--accent);
  background: var(--surface-alt);
  color: var(--ink);
}

.adHeader {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font-size: var(--type-xs);
}

.adHeader b {
  background: var(--accent);
  color: var(--header-bg);
  padding: 6px 8px;
  font-weight: 800;
}

.adBody strong {
  font-size: var(--type-base);
  text-transform: none;
  letter-spacing: 0;
}

.adBody p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-sm);
  line-height: 1.55;
  max-width: 80ch;
}

.adActions {
  border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Footer */
footer {
  border-top: 2px solid var(--line2);
  color: var(--muted);
}

.small {
  font-size: var(--type-xs);
}

.footLinks a {
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  color: var(--muted);
}

.footLinks a:hover {
  color: var(--ink);
  border-bottom-color: var(--warn);
  text-decoration: none;
}

 #block-cp-enelaboration {
   /*max-width: min(1120px, calc(100% - 32px));*/
   margin: 32px auto 48px;
   padding: clamp(28px, 4vw, 56px);
   background: #f7f6f1;
   border: 1px solid #ddd6cb;
   border-radius: 28px 28px 12px 12px;
   color: #4a5a60;
   box-shadow: 0 18px 48px rgba(24, 35, 38, 0.08);

   h2 {
     margin: 0 0 18px;
     color: #182326;
     font-size: clamp(2.25rem, 5vw, 3rem);
     line-height: 0.98;
     font-weight: 700;
     letter-spacing: -0.02em;
   }

   p + p {
     margin-top: 14px;
   }
 }
