/* Outils image « création » : profil rond, collage, texte sur image, GIF, pipette. */
.ic-corps { display: grid; gap: 14px; }
.ic-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; align-items: start; }
.ic-cote { display: grid; gap: 12px; min-width: 0; }
.ic-cote > .calc-note { text-align: center; }
.ic-mini { width: 56px; height: 38px; flex: none; }
.ic-opt { display: flex; align-items: center; gap: 6px; min-height: 38px; }
.ic-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }

/* Scène : l'aperçu qu'on manipule. Damier = transparence. */
.ic-scene { position: relative; width: 100%; margin: 0 auto; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.ic-scene > canvas:first-child { display: block; width: 100%; height: auto; border-radius: 12px; pointer-events: none;
  background: repeating-conic-gradient(#ececf1 0 25%, #fff 0 50%) 0 0 / 20px 20px; box-shadow: 0 0 0 1px var(--line); }
.ic-collage { cursor: grab; }
.ic-collage:active { cursor: grabbing; }
.ic-pipette { cursor: crosshair; }

/* Photo de profil */
.ic-rond { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 16px; overflow: hidden; line-height: 0; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background: repeating-conic-gradient(#ececf1 0 25%, #fff 0 50%) 0 0 / 20px 20px; box-shadow: 0 0 0 1px var(--line); }
.ic-rond:active { cursor: grabbing; }
.ic-rond canvas { display: block; width: 100%; height: auto; pointer-events: none; }

/* Collage : choix du modèle par petits schémas */
.ic-nom-modele { color: var(--red-deep); font-weight: 600; }
.ic-modeles { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-modele { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s; }
.ic-modele:hover { box-shadow: 0 0 0 1.5px rgba(238, 47, 59, .45); }
.ic-modele[aria-pressed="true"] { background: var(--tint); box-shadow: 0 0 0 2px var(--red); }
.ic-schema { position: relative; display: block; width: 32px; height: 32px; }
.ic-schema i { position: absolute; box-sizing: border-box; display: grid; place-items: center; border: 1.5px solid #fff; border-radius: 4px; background: #b9b9c6; }
.ic-modele[aria-pressed="true"] .ic-schema i { background: var(--red); border-color: var(--tint); }
.ic-schema b { font: 700 13px/1 var(--head); color: #fff; }

/* Vignettes à réordonner */
.ic-vignettes { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-vignette { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 1px var(--line); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ic-vignette canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.ic-vignette.porte { z-index: 5; cursor: grabbing; box-shadow: 0 0 0 2px var(--red), 0 16px 26px -12px rgba(12, 12, 24, .55); }
.ic-num { position: absolute; left: 5px; bottom: 5px; min-width: 22px; padding: 3px 6px; border-radius: 7px; background: rgba(12, 12, 24, .74); font: 600 13px/1.2 var(--head); color: #fff; text-align: center; pointer-events: none; }
.ic-retire { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.ic-retire svg { width: 15px; height: 15px; }
.ic-retire:hover { background: var(--tint); color: var(--red-deep); }
.ic-vignette .ic-retire { position: absolute; right: 3px; top: 3px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(12, 12, 24, .3); }

/* Texte sur image : boîte du texte choisi, avec ses deux poignées (32 px de prise) */
.ic-boite { position: absolute; box-sizing: border-box; border: 1.5px dashed #fff; outline: 1px solid rgba(12, 12, 24, .55); pointer-events: none; }
.ic-poignee { position: absolute; width: 32px; height: 32px; margin: -16px; pointer-events: auto; }
.ic-poignee::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--red), 0 2px 6px rgba(12, 12, 24, .45); }
.ic-poignee[data-p="taille"] { left: 100%; top: 100%; cursor: nwse-resize; }
.ic-poignee[data-p="taille"]::after { border-radius: 4px; }
.ic-poignee[data-p="tourne"] { left: 50%; top: -26px; cursor: grab; }
.ic-poignee[data-p="tourne"]::before { content: ""; position: absolute; left: 50%; top: 24px; width: 1.5px; height: 18px; margin-left: -.75px; background: #fff; box-shadow: 0 0 0 .5px rgba(12, 12, 24, .5); }
.ic-texte { cursor: default; }
.ic-fiche { display: grid; gap: 12px; }
.ic-saisie { min-height: 0; height: 76px; resize: vertical; }
.acts .btn svg { width: 16px; height: 16px; }

/* GIF */
.ic-gif { display: grid; place-items: center; padding: 10px; border-radius: 16px; background: var(--soft); line-height: 0; }
.ic-gif canvas { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* Pipette */
.ic-ecran { width: 100%; }
.ic-loupe { position: absolute; z-index: 3; width: 132px; height: 132px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px rgba(12, 12, 24, .7), 0 14px 26px -10px rgba(12, 12, 24, .6); pointer-events: none; image-rendering: pixelated; }
.ic-lecture { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--soft); }
.ic-pastille { flex: none; width: 76px; height: 76px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), inset 0 0 0 3px #fff; }
.ic-codes { display: grid; gap: 2px; min-width: 0; }
.ic-code { padding: 3px 8px; border-radius: 8px; text-align: left; font: 600 16px/1.35 var(--head); color: var(--ink); cursor: pointer; transition: color .2s, background .2s; }
.ic-code:hover { background: #fff; color: var(--red-deep); }
.ic-codes .ic-code + .ic-code { font: 500 14px/1.4 var(--body); color: var(--text); }
.ic-garde { display: grid; gap: 12px; }
.ic-palette { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-jeton { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ic-teinte { width: 34px; height: 34px; border-radius: 9px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(12, 12, 24, .12); }
.ic-jeton .ic-code { font-size: 15px; }

@media (max-width: 760px) {
  .ic-deux { grid-template-columns: minmax(0, 1fr); }
  .ic-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ic-vignette { width: 72px; height: 72px; }
  .ic-modele { width: 46px; height: 46px; }
}
