/* Motifs graphiques du pied de page : bandeau losanges/triangles (inspiration wax), trame de points et arcs concentriques.
   Purement décoratif (aria-hidden par nature : pseudo-éléments), couleurs via tokens.css (clair/sombre), masqué à l'impression. */
.v2-footer { position: relative; isolation: isolate; overflow: hidden; }
.v2-footer > .v2-container { position: relative; z-index: 1; }

/* 1. Bandeau en haut : rangée de losanges et de triangles dans le dégradé de la marque */
.v2-footer::before {
  content: ""; position: absolute; z-index: 0; inset: 0 0 auto 0; height: 12px; pointer-events: none;
  background: linear-gradient(90deg, var(--color-brand-strong), var(--color-brand), var(--color-brand-strong));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M12 0l12 6-12 6L0 6z' fill='%23000'/%3E%3Cpath d='M36 0l12 12H24z' fill='%23000' fill-opacity='.55'/%3E%3C/svg%3E") repeat-x left top / 48px 12px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M12 0l12 6-12 6L0 6z' fill='%23000'/%3E%3Cpath d='M36 0l12 12H24z' fill='%23000' fill-opacity='.55'/%3E%3C/svg%3E") repeat-x left top / 48px 12px;
}
.v2-footer { padding-top: calc(var(--space-6) + 12px); }

/* 2. Trame de points sur tout le pied de page + arcs concentriques dans le coin bas-droit */
.v2-footer::after {
  content: ""; position: absolute; z-index: 0; inset: 12px 0 0 0; pointer-events: none;
  background: var(--color-brand); opacity: .09;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='440' viewBox='0 0 440 440' fill='none' stroke='%23000'%3E%3Ccircle cx='440' cy='440' r='90' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='160' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='230' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='300' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='370' stroke-width='14'/%3E%3C/svg%3E"), radial-gradient(circle, #000 1.1px, transparent 1.6px);
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='440' viewBox='0 0 440 440' fill='none' stroke='%23000'%3E%3Ccircle cx='440' cy='440' r='90' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='160' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='230' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='300' stroke-width='14'/%3E%3Ccircle cx='440' cy='440' r='370' stroke-width='14'/%3E%3C/svg%3E"), radial-gradient(circle, #000 1.1px, transparent 1.6px);
  -webkit-mask-size: 440px 440px, 22px 22px;            mask-size: 440px 440px, 22px 22px;
  -webkit-mask-position: right bottom, 0 0;             mask-position: right bottom, 0 0;
  -webkit-mask-repeat: no-repeat, repeat;               mask-repeat: no-repeat, repeat;
}

/* 3. Ligne légale : petit ornement central (3 losanges) au-dessus du copyright */
.v2-footer__legal { position: relative; }
.v2-footer__legal::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 54px; height: 9px; transform: translateX(-50%);
  background: var(--color-brand); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='9' viewBox='0 0 54 9'%3E%3Cpath d='M5 0l5 4.5L5 9 0 4.5zM27 0l5 4.5L27 9l-5-4.5zM49 0l5 4.5L49 9l-5-4.5z' fill='%23000'/%3E%3C/svg%3E") center / 54px 9px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='9' viewBox='0 0 54 9'%3E%3Cpath d='M5 0l5 4.5L5 9 0 4.5zM27 0l5 4.5L27 9l-5-4.5zM49 0l5 4.5L49 9l-5-4.5z' fill='%23000'/%3E%3C/svg%3E") center / 54px 9px no-repeat;
}

@media (max-width: 47.99rem) { .v2-footer::after { opacity: .08; -webkit-mask-size: 300px 300px, 22px 22px; mask-size: 300px 300px, 22px 22px; } }
@media print { .v2-footer::before, .v2-footer::after, .v2-footer__legal::before { display: none; } }
