/* Page Étiquettes, composant 1 : le héros en planche technique. À droite, la coupe d'une étiquette adhésive en 3D,
   légendée couche par couche ; en bas, le cartouche de la planche, comme sur un dessin d'atelier. */
.coupe { max-width: 1440px; margin: 0 auto; padding: var(--espace-5) max(var(--espace-7), env(safe-area-inset-right, 0px)) var(--espace-8) max(var(--espace-7), env(safe-area-inset-left, 0px)); }
.ariane { margin: 0 0 var(--espace-5); font-size: 14px; line-height: 20px; color: var(--texte-doux); }
.ariane ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ariane li + li::before { content: "/"; margin-right: 6px; color: var(--filet-fort); }
.ariane a { color: inherit; }
.ariane [aria-current] { color: var(--texte); }

.coupe__planche { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--espace-7); align-items: stretch; }
.coupe__texte { align-self: center; padding: var(--espace-6) 0; }
.coupe__texte h1 { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(40px, 4.4vw, 66px); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.coupe__texte .chapo { margin: 24px 0 0; max-width: 32em; font-size: 19px; line-height: 29px; }
.coupe__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 34px; }

/* La scène : papier quadrillé fin, comme une feuille de dessin technique. */
.coupe__scene {
  --fond-scene: #f6f4f0; --legendes: 1;
  position: relative; min-height: 620px; border: 1px solid var(--filet); background-color: var(--fond-scene);
  background-image: linear-gradient(rgba(12, 77, 219, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 77, 219, 0.07) 1px, transparent 1px);
  background-size: 24px 24px; overflow: hidden;
}
.coupe__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.coupe__repli { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coupe__scene.a-3d .coupe__repli { display: none; }
.coupe__traits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--legendes); }
.coupe__traits path { fill: none; stroke: var(--texte); stroke-width: 1; }
.coupe__traits circle { fill: var(--texte); }

/* Les légendes. Sans 3D, elles forment une liste lisible sur l'image fixe. */
.coupe__couches { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: var(--legendes); }
.coupe__couches li { position: absolute; left: 0; top: 0; max-width: 230px; display: grid; gap: 1px; font-size: 13px; line-height: 17px; color: var(--texte-doux); }
.coupe__couches b { font-family: var(--font-titre); font-weight: 700; font-size: 15px; line-height: 18px; color: var(--texte); }
.coupe__scene:not(.a-3d) .coupe__couches { position: static; display: grid; gap: 10px; padding: 24px; background: rgba(246, 244, 240, 0.92); margin: 24px; width: max-content; max-width: calc(100% - 48px); }
.coupe__scene:not(.a-3d) .coupe__couches li { position: static; max-width: none; }

/* Le cartouche de la planche, en bas à droite. */
.cartouche { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto; border-top: 1px solid var(--texte); border-left: 1px solid var(--texte); background: var(--fond-scene); font-size: 11.5px; line-height: 14px; }
.cartouche > * { padding: 6px 10px; border-right: 1px solid var(--texte); border-bottom: 1px solid var(--texte); }
.cartouche > *:nth-child(2n) { border-right: 0; }
.cartouche .cle { color: var(--texte-doux); }
.cartouche .val { color: var(--texte); font-weight: 500; }
.cartouche .titre-planche { grid-column: 1 / -1; border-right: 0; font-family: var(--font-titre); font-weight: 700; font-size: 13px; }
.coupe__bouton { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 12px; border: 1px solid var(--texte); background: var(--fond-scene); font: inherit; font-size: 13px; font-weight: 600; color: var(--texte); cursor: pointer; }
.coupe__bouton:hover { background: var(--texte); color: var(--fond-scene); }

@media (max-width: 1000px) {
  .coupe { padding: var(--espace-4) max(var(--espace-4), env(safe-area-inset-right, 0px)) var(--espace-7) max(var(--espace-4), env(safe-area-inset-left, 0px)); }
  .coupe__planche { grid-template-columns: 1fr; gap: var(--espace-4); }
  .coupe__texte { padding: 0; }
  .coupe__scene { min-height: 0; aspect-ratio: 1.08; }
  .coupe__couches li span { display: none; }
  .coupe__couches li { max-width: 120px; }
  .coupe__couches b { font-size: 13px; }
  .cartouche { display: none; }
  .coupe__bouton { left: 10px; bottom: 10px; font-size: 12.5px; padding: 7px 10px; }
}
