/* ============================================================
   Signature reelle de Charles Ouzeau : mise en page et animation.
   Les traces viennent de signature-data.js, genere par
   outils/signature.mjs a partir de _references/0310/signature/.
   Le SVG porte stroke="currentColor" : la couleur suit le contexte,
   sauf sur les fonds sombres ou l'on impose l'accent bleu.
   ============================================================ */

.co-signature {
  display: block;
  color: inherit;
  max-width: 100%;
  overflow: visible;
}

.co-signature g,
.co-signature path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* b. Logo en haut a gauche : signature statique, couleur du logo. */
.co-wordmark .co-signature {
  height: clamp(1.3rem, 1.85vw, 1.62rem);
  width: auto;
}

/* a (mobile). Ancien mot-symbole du heros tablette, remplace par la signature. */
.co-wordmark.home-hero-tablet-wordmark .co-signature {
  height: clamp(1.6rem, 6.2vw, 2.7rem);
}

/* c. Grande signature du pied de page. */
.co-footer-signature .co-signature {
  height: clamp(2.6rem, 4.6vw, 4rem);
  width: auto;
  margin: 0 auto;
}

/* a (heros). La signature se trace sur le portrait du heros, dans le
   cadre laisse par l'ancien canvas Rive. Entiere, jamais coupee. */
.co-identity.is-signature { overflow: visible; }
.co-identity.is-signature .co-signature {
  width: min(100%, 34rem);
  height: auto;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .co-identity.is-signature .co-signature { width: 82%; }
  .co-footer-signature { margin-bottom: 1.1rem; }
  .co-footer-signature .co-signature { height: clamp(2rem, 7vw, 2.7rem); }
}

/* d. Petit logo rond : signature a la place du monogramme C O. */
.co-round-logo__badge {
  left: 9%;
  right: 9%;
  transform: none;
  padding: 0.16rem 0.32rem 0.1rem;
}
.co-round-logo__badge .co-signature {
  width: 100%;
  height: auto;
  color: var(--co-accent);
}

/* a. Signature du heros, en surimpression, revelee au defilement.
      Les cadres viennent des anciens canvas Rive (co-brand.js). */
.co-identity.is-signature {
  box-sizing: border-box;
  padding: 4%;
}
.co-identity.is-signature .co-signature {
  color: var(--co-accent);
}

/* Restes des anciens visuels de signature : meme encombrement que l'image. */
.co-signature--fill {
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .co-signature path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
