/* Page de création */
.create { max-width: 880px; margin: 0 auto; padding: 24px 16px 110px; }
.create form { display: grid; gap: 16px; }

.add-row { display: flex; gap: 8px; }
.add-row .input { flex: 1; }

/* Choix de la taille des équipes */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    font-weight: 600;
    transition: background .15s;
}
.segmented input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--primary-hover); outline-offset: 2px; }

#teams-area { margin-top: 14px; }
.team-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }

/* Zones de dépôt */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 10px;
    background: rgba(255, 255, 255, .02);
    transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--primary); background: rgba(91, 124, 250, .12); }
.dropzone.team.full:not(.over) { border-style: solid; border-color: rgba(34, 197, 94, .45); }
.zone-title { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.zone-items { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; align-items: center; }
.zone-empty { color: var(--muted); font-size: .9rem; }
.pool { margin-bottom: 14px; }

.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.team-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.team-name { min-height: 38px; padding: 6px 10px; font-weight: 700; background: transparent; border-color: transparent; }
.team-name:hover { border-color: var(--border); }
.slot {
    display: inline-block;
    width: 70px;
    height: 36px;
    border-radius: 999px;
    border: 1px dashed var(--border);
    opacity: .6;
}

/* Puces déplaçables */
.chip.draggable {
    padding: 8px 16px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.chip.draggable:hover { border-color: var(--primary); }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.dragging { opacity: .35; }
.chip.ghost {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    cursor: grabbing;
}
body.is-dragging, body.is-dragging * { cursor: grabbing !important; user-select: none; }

/* Bouton de validation collé en bas */
.create-submit {
    position: sticky;
    bottom: 0;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 70%, transparent);
}
